/* Brushed steel: a small, local SVG tile keeps the background lightweight. */
.hero,
.page-hero,
.contact-band {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.hero::before,
.page-hero::before,
.contact-band::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: -60px 0;
    pointer-events: none;
    background-image: url("steel-grain.svg"),
        repeating-linear-gradient(0deg, transparent 0 3px, #d8eaff18 4px, transparent 5px 8px),
        linear-gradient(115deg, #ffffff12, transparent 36%, #091d3715 65%, #ffffff0d);
    background-size: 240px 240px, auto, auto;
    mix-blend-mode: soft-light;
    opacity: .34;
    transform: translate3d(0, var(--steel-shift, 0px), 0);
}

.workshop-heading {
    margin-top: 28px;
}

/* The image itself lifts gently, without moving the surrounding layout. */
.project-card img,
.gallery-item img,
.service-photo,
.detail-photo > img,
.hero-photo {
    transition: transform .4s cubic-bezier(.2, .65, .3, 1),
        box-shadow .4s ease, filter .4s ease;
}

@media (hover: hover) and (pointer: fine) {
    .project-card:hover img,
    .project-card:focus-visible img,
    .gallery-item:hover img,
    .gallery-item:focus-visible img {
        transform: translateY(-3px) scale(1.025);
        box-shadow: 0 15px 28px -12px #102e5860;
        filter: brightness(1.035);
    }

    .service-photo:hover,
    .detail-photo:hover > img,
    .hero-visual:hover .hero-photo {
        transform: scale(1.018);
        box-shadow: 0 18px 35px -15px #071d455c;
    }
}

/* Decorative TIG seam, entirely within the desktop page gutter. */
.weld-rail {
    position: fixed;
    z-index: 20;
    right: 15px;
    top: 175px;
    bottom: 48px;
    width: 32px;
    pointer-events: none;
    opacity: .66;
    --weld-position: 0px;
    --weld-length: 0px;
    transition: opacity .4s ease;
}

.weld-track,
.weld-seam {
    position: absolute;
    left: 18px;
    top: 0;
    border-radius: 4px;
}

.weld-track {
    width: 2px;
    height: 100%;
    background: #7592b43b;
    box-shadow: 1px 0 #dbe8f336;
}

.weld-seam {
    left: 17px;
    width: 4px;
    height: var(--weld-length);
    background-image:
        repeating-radial-gradient(ellipse 4px 5px at 50% -1px,
            #dfebf2 0 1px, #8eacca 1.6px 2.5px, #55769a 3.2px 4.5px, #b9cbdc 5px 6px);
    background-size: 4px 7px;
    box-shadow: -1px 0 2px #244e8633, 1px 0 2px #edf5ff59;
}

.weld-head {
    position: absolute;
    top: 0;
    left: 19px;
    width: 0;
    height: 0;
    transform: translate3d(0, var(--weld-position), 0);
}

.weld-torch {
    position: absolute;
    width: 32px;
    height: 38px;
    left: -24px;
    top: -35px;
    overflow: visible;
    opacity: .85;
    filter: drop-shadow(0 1px 1px #16335230);
}

.weld-arc {
    position: absolute;
    left: -3px;
    top: -3px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #dcecf7;
    opacity: .4;
    transition: opacity .35s ease, box-shadow .35s ease;
}

.is-welding .weld-arc {
    background: #f4fdff;
    opacity: 1;
    box-shadow: 0 0 4px 1px #e8faffcc, 0 0 10px 3px #86c7fa80,
        0 0 17px 5px #78a7eb2b;
}

.weld-vapor {
    position: absolute;
    left: -3px;
    top: -8px;
    opacity: 0;
    transition: opacity .8s ease;
}

.is-welding .weld-vapor { opacity: 1; }

.weld-haze {
    position: absolute;
    width: 9px;
    height: 15px;
    border-radius: 50%;
    background: radial-gradient(ellipse, #adc3dd66, #b8cad626 48%, transparent 72%);
    filter: blur(2px);
    animation: weld-haze 2.1s ease-out infinite;
    animation-play-state: paused;
}

.is-welding .weld-haze { animation-play-state: running; }
.haze-two { animation-delay: -.7s; left: -3px; }
.haze-three { animation-delay: -1.4s; left: 2px; }

@keyframes weld-haze {
    0% { transform: translate(0, 0) scale(.4); opacity: 0; }
    18% { opacity: .6; }
    100% { transform: translate(-8px, -35px) scale(1.8); opacity: 0; }
}

.modal-open .weld-rail { opacity: 0; }

@media (max-width: 1199px) {
    .weld-rail { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .weld-rail { display: none; }
    .hero::before, .page-hero::before, .contact-band::before { transform: none; }
    .project-card:hover img, .project-card:focus-visible img,
    .gallery-item:hover img, .gallery-item:focus-visible img,
    .service-photo:hover, .detail-photo:hover > img,
    .hero-visual:hover .hero-photo { transform: none; }
}

@media print {
    .weld-rail { display: none; }
}
