:root {
    --ink: #11161c;
    --graphite: #222a32;
    --steel: #596775;
    --blue: #00539c;
    --blue-2: #0072bc;
    --orange: #ff9800;
    --green: #52796f;
    --paper: #f6f3ed;
    --panel: #ffffff;
    --line: #d7dde4;
    --soft: rgba(255, 255, 255, 0.16);
    --shadow: 0 22px 70px rgba(17, 22, 28, 0.18);
    --radius: 8px;
    --header: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html,
body {
    width: 100%;
    overflow-x: clip;
}
body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Inter, Arial, sans-serif;
    line-height: 1.55;
}
body.nav-open,
body.modal-open { overflow: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
input, textarea, select { font-size: 16px; }
[hidden] { display: none !important; }

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 1000;
    padding: 10px 14px;
    background: var(--orange);
    color: var(--ink);
    transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.shell {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
}

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 100;
    height: var(--header);
    color: var(--ink);
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(17, 22, 28, 0.12);
    backdrop-filter: blur(18px);
    transition: background 0.24s ease, box-shadow 0.24s ease;
}
.site-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 12px 34px rgba(17, 22, 28, 0.12);
}
.header-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 24px;
}
.brand { display: inline-flex; align-items: center; min-width: 190px; }
.brand img { max-height: 48px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a {
    padding: 10px 12px;
    border-radius: 6px;
    color: var(--graphite);
    font-size: 0.94rem;
    font-weight: 800;
    text-decoration: none;
}
.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
    color: var(--ink);
    background: rgba(0, 83, 156, 0.1);
}
.site-nav .nav-cta {
    margin-left: 8px;
    color: var(--ink);
    background: var(--orange);
}
.site-nav .nav-cta:hover,
.site-nav .nav-cta:focus-visible,
.site-nav .nav-cta[aria-current="page"] {
    color: var(--ink);
    background: #ffb547;
}
.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 1px solid rgba(17, 22, 28, 0.18);
    border-radius: 6px;
    background: rgba(17, 22, 28, 0.04);
    cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; margin: 5px 0; background: var(--ink); }

.hero,
.page-hero {
    position: relative;
    color: #fff;
    overflow: hidden;
    background: var(--ink);
}
.home-hero { min-height: 92vh; padding: calc(var(--header) + 84px) 0 78px; }
.hero-video,
.hero-shade,
.page-hero-bg {
    position: absolute;
    inset: 0;
}
.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.94) contrast(1.03) saturate(1.02);
}
.hero-shade {
    background:
        linear-gradient(90deg, rgba(7, 10, 14, 0.66) 0%, rgba(17, 22, 28, 0.46) 38%, rgba(17, 22, 28, 0.12) 68%, rgba(17, 22, 28, 0.22) 100%),
        linear-gradient(to top, rgba(7, 10, 14, 0.66), rgba(17, 22, 28, 0.08) 56%),
        radial-gradient(circle at 72% 28%, rgba(255, 152, 0, 0.12), transparent 30%);
}
.hero-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: end;
    gap: 48px;
    min-height: calc(92vh - var(--header) - 162px);
}
.hero-copy {
    max-width: 820px;
    text-shadow:
        0 2px 2px rgba(0, 0, 0, 0.66),
        0 10px 34px rgba(0, 0, 0, 0.46);
}
.eyebrow {
    margin: 0 0 14px;
    color: var(--orange);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}
h1, h2, h3 { letter-spacing: 0; }
.hero h1,
.page-hero h1 {
    margin: 0;
    max-width: 920px;
    font-size: clamp(2.7rem, 7vw, 5.8rem);
    line-height: 0.94;
    font-weight: 900;
}
.hero h1 {
    -webkit-text-stroke: 0.7px rgba(0, 0, 0, 0.38);
    paint-order: stroke fill;
}
.hero-lede,
.page-hero p:not(.eyebrow) {
    max-width: 760px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.2rem;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 18px;
    border: 0;
    border-radius: 6px;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
    text-shadow: none;
}
.button.primary,
.form-button {
    color: var(--ink);
    background: var(--orange);
}
.button.primary:hover,
.form-button:hover { background: #ffb547; }
.button.ghost {
    color: #fff;
    background: rgba(17, 22, 28, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.38);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
}
.button.ghost:hover { background: rgba(17, 22, 28, 0.42); }
.button.secondary {
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
}
.button.secondary:hover { border-color: var(--blue); }
.hero-panel {
    display: grid;
    gap: 10px;
}
.hero-panel div,
.metric-row article,
.process-rhythm article,
.service-panels article {
    border: 1px solid var(--soft);
    border-radius: var(--radius);
    background: rgba(17, 22, 28, 0.3);
    backdrop-filter: blur(12px);
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.14);
}
.hero-panel div { padding: 20px; }
.hero-panel strong {
    display: block;
    font-size: 2.25rem;
    line-height: 1;
}
.hero-panel span {
    display: block;
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.92rem;
}

.industries-section {
    overflow: hidden;
    padding: 58px 0 44px;
    background: #fff;
    border-bottom: 1px solid var(--line);
}
.industries-section h2 {
    margin: 0 0 34px;
    color: var(--ink);
    text-align: center;
    font-size: clamp(1.8rem, 3vw, 2.65rem);
    line-height: 1.08;
    font-weight: 900;
}
.logos-container {
    display: grid;
    gap: 18px;
    overflow: hidden;
}
.logo-row {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    min-height: 104px;
    border-block: 1px solid rgba(17, 22, 28, 0.07);
}
.logo-row::before,
.logo-row::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 2;
    width: min(12vw, 130px);
    pointer-events: none;
}
.logo-row::before {
    left: 0;
    background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0));
}
.logo-row::after {
    right: 0;
    background: linear-gradient(270deg, #fff, rgba(255, 255, 255, 0));
}
.logo-slide {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    min-width: max-content;
    will-change: transform;
    backface-visibility: hidden;
    animation: scroll-left 56s linear infinite;
}
.bottom-row .logo-slide {
    animation-name: scroll-right;
}
.logo-set {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    min-width: max-content;
}
.logo-slide img {
    display: block;
    flex: 0 0 auto;
    max-width: 174px;
    max-height: 76px;
    width: auto;
    height: auto;
    margin: 0 28px;
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.72;
    transition: filter 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
}
.logo-slide img:hover {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.04);
}

.section { padding: 96px 0; }
.section-kicker { max-width: 820px; margin-bottom: 36px; }
.section-kicker h2,
.split-motion h2,
.feature-copy h2,
.cta-layout h2,
.career-layout h2,
.quote-copy h2,
.about-grid h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.35rem);
    line-height: 1.02;
    font-weight: 900;
}
.section-kicker p:not(.eyebrow),
.split-motion p,
.feature-copy p,
.cta-layout p,
.career-layout p,
.quote-copy p,
.about-grid p {
    margin: 18px 0 0;
    color: var(--steel);
    font-size: 1.04rem;
}

.service-tile-grid,
.service-index-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.service-tile {
    position: relative;
    display: grid;
    align-content: end;
    min-height: 390px;
    padding: 22px;
    overflow: hidden;
    border-radius: var(--radius);
    color: #fff;
    text-decoration: none;
    isolation: isolate;
    box-shadow: 0 14px 40px rgba(17, 22, 28, 0.14);
}
.service-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(to top, rgba(10, 14, 19, 0.9), rgba(10, 14, 19, 0.2) 58%),
        linear-gradient(135deg, rgba(0, 83, 156, 0.34), transparent 44%);
}
.service-tile img {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.service-tile:hover img,
.service-tile.active img { transform: scale(1.06); }
.service-tile h3 {
    margin: 10px 0 8px;
    color: var(--orange);
    font-size: 1.28rem;
    line-height: 1.12;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.38);
}
.service-tile p {
    margin: 0;
    color: #fff;
}

.about-home-section { background: #fff; }
.image-stack {
    position: relative;
    min-height: 440px;
    overflow: hidden;
    border-radius: var(--radius);
    isolation: isolate;
    background: #e9edf0;
    box-shadow: var(--shadow);
}
.image-stack::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    border: 1px solid rgba(255, 255, 255, 0.34);
    box-shadow: inset 0 0 0 1px rgba(17, 22, 28, 0.06);
    pointer-events: none;
}
.image-stack img {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.025);
    filter: saturate(0.98) contrast(1.02);
    transition:
        opacity 1.65s cubic-bezier(0.4, 0, 0.2, 1),
        transform 8.5s ease;
    will-change: opacity, transform;
}
.image-stack img.active {
    z-index: 2;
    opacity: 1;
    transform: scale(1.07);
}
.image-stack img.leaving { z-index: 1; }

.dark-section {
    color: #fff;
    background: var(--ink);
}
.dark-section p:not(.eyebrow) { color: rgba(255, 255, 255, 0.74); }
.split-motion {
    display: grid;
    grid-template-columns: 0.75fr 1.25fr;
    gap: 54px;
}
.process-rhythm,
.service-panels {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.process-rhythm article,
.service-panels article {
    padding: 24px;
}
.process-rhythm span {
    color: var(--orange);
    font-weight: 900;
}
.process-rhythm h3,
.service-panels h3 { margin: 10px 0 8px; font-size: 1.18rem; }
.service-panels h3 { margin-top: 0; }
.process-rhythm p,
.service-panels p { margin: 0; color: rgba(255, 255, 255, 0.74); }

.photo-strip {
    overflow: hidden;
    background: #fff;
}
.home-photo-strip { background: var(--ink); }
.photo-strip-track {
    display: flex;
    width: max-content;
    gap: 14px;
    padding: 18px 0;
    animation: marquee var(--marquee-duration, 42s) linear infinite;
}
.photo-strip img,
.photo-strip video {
    width: 360px;
    height: 220px;
    object-fit: cover;
    border-radius: var(--radius);
    background: transparent;
}
.photo-strip img[src$=".png"],
.photo-strip img[src$=".PNG"] {
    object-fit: contain;
}

.gallery-section {
    background:
        linear-gradient(180deg, #f5f2ec 0%, #fff 42%, #eef3f7 100%);
}
.gallery-hero .page-hero-bg {
    background-position: center 54%;
}
.gallery-intro {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(220px, 0.32fr);
    align-items: end;
    gap: 34px;
    margin-bottom: 34px;
}
.gallery-intro h2 {
    max-width: 820px;
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.04;
    font-weight: 900;
}
.gallery-intro p:not(.eyebrow) {
    margin: 0;
    color: var(--steel);
    font-size: 1.02rem;
}
.gallery-grid {
    columns: 4 235px;
    column-gap: 16px;
}
.gallery-card {
    position: relative;
    display: block;
    margin: 0 0 16px;
    overflow: hidden;
    break-inside: avoid;
    border-radius: var(--radius);
    background: transparent;
    box-shadow: 0 18px 42px rgba(17, 22, 28, 0.13);
    cursor: pointer;
    transform: translateY(0);
    transition: transform 0.45s ease, box-shadow 0.45s ease;
}
.gallery-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255, 152, 0, 0.08), transparent 36%),
        linear-gradient(to top, rgba(17, 22, 28, 0.22), transparent 42%);
    opacity: 0;
    transition: opacity 0.45s ease;
    pointer-events: none;
}
.gallery-card img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    box-sizing: border-box;
    transform: scale(1.002);
    filter: saturate(0.98) contrast(1.01);
    transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.7s ease;
}
.gallery-card img[src^="Media/parts/"][src$=".png"],
.gallery-card img[src^="Media/parts/"][src$=".PNG"],
.gallery-card img[src^="Media/gallery-optimized/parts-"] {
    padding: 10px;
    object-fit: contain;
}
.gallery-card:nth-child(4n + 1) img { aspect-ratio: 4 / 5; }
.gallery-card:nth-child(4n + 2) img { aspect-ratio: 1 / 1; }
.gallery-card:nth-child(5n) img { aspect-ratio: 16 / 10; }
.gallery-card:hover,
.gallery-card:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 24px 54px rgba(17, 22, 28, 0.18);
    outline: 0;
}
.gallery-card:focus-visible {
    box-shadow: 0 0 0 3px rgba(255, 153, 0, 0.5), 0 24px 54px rgba(17, 22, 28, 0.18);
}
.gallery-card:hover::after,
.gallery-card:focus-visible::after { opacity: 1; }
.gallery-card:hover img,
.gallery-card:focus-visible img {
    transform: scale(1.045);
    filter: saturate(1.08) contrast(1.04);
}
.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 340;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(7, 11, 16, 0.88);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}
.gallery-lightbox[hidden] { display: none; }
.gallery-lightbox.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.gallery-lightbox-shell {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    width: min(1120px, 100%);
    max-height: calc(100dvh - 48px);
    transform: translateY(18px) scale(0.98);
    transition: transform 0.24s ease;
}
.gallery-lightbox.active .gallery-lightbox-shell {
    transform: translateY(0) scale(1);
}
.gallery-lightbox-stage {
    display: grid;
    justify-items: center;
    gap: 10px;
    margin: 0;
}
.gallery-lightbox-stage img {
    display: block;
    max-width: 100%;
    max-height: calc(100dvh - 132px);
    width: auto;
    height: auto;
    border-radius: var(--radius);
    background: #f7f4ee;
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
    object-fit: contain;
}
.gallery-lightbox-stage figcaption {
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.88rem;
    font-weight: 800;
}
.gallery-lightbox-close,
.gallery-lightbox-nav {
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--ink);
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.gallery-lightbox-close {
    position: absolute;
    top: -14px;
    right: -14px;
    z-index: 2;
    width: 44px;
    height: 44px;
    font-size: 1.55rem;
    line-height: 1;
}
.gallery-lightbox-nav {
    width: 52px;
    height: 52px;
    font-size: 1.4rem;
}
.gallery-lightbox-close:hover,
.gallery-lightbox-close:focus-visible,
.gallery-lightbox-nav:hover,
.gallery-lightbox-nav:focus-visible {
    background: var(--orange);
    color: var(--ink);
    outline: 0;
    transform: translateY(-1px);
}
.gallery-empty {
    padding: 28px;
    border: 1px dashed rgba(17, 22, 28, 0.22);
    border-radius: var(--radius);
    color: var(--steel);
    background: rgba(255, 255, 255, 0.7);
}

.final-cta {
    color: #fff;
    background:
        linear-gradient(90deg, rgba(17, 22, 28, 0.92), rgba(17, 22, 28, 0.78)),
        url("../../Photographer-Images/JR9_8971-Zeman.jpg") center / cover no-repeat;
}
.cta-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 32px;
}
.cta-layout p:not(.eyebrow) { color: rgba(255, 255, 255, 0.78); }

.compact-hero {
    min-height: 68vh;
    padding: calc(var(--header) + 82px) 0 82px;
}
.service-detail-hero {
    min-height: 0;
    padding: calc(var(--header) + 58px) 0 56px;
}
.page-hero-bg {
    background-position: center;
    background-size: cover;
    transform: scale(1.06);
    animation: slowZoom 18s ease-in-out infinite alternate;
}
.page-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(17, 22, 28, 0.9), rgba(17, 22, 28, 0.42)),
        linear-gradient(to top, rgba(17, 22, 28, 0.74), rgba(17, 22, 28, 0.1));
}
.page-hero-layout,
.service-hero-layout {
    position: relative;
    z-index: 1;
}
.page-hero-layout { max-width: 860px; }
.service-hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.88fr) minmax(440px, 0.72fr);
    align-items: center;
    gap: 42px;
}
.service-detail-hero h1 {
    max-width: 820px;
    font-size: clamp(2.6rem, 5.6vw, 5rem);
}
.service-detail-hero p:not(.eyebrow) {
    max-width: 700px;
}
.quality-hero h1 {
    font-size: clamp(2.45rem, 5vw, 4.55rem);
}
.quality-strip { background: var(--paper); }
.detail-hero-card {
    overflow: hidden;
    border: 1px solid var(--soft);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow);
}
.detail-hero-card img {
    display: block;
    width: 100%;
    height: clamp(380px, 34vw, 500px);
    object-fit: cover;
}
.metric-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
.metric-row article {
    padding: 26px;
    color: #fff;
    background: var(--ink);
}
.metric-row strong {
    display: block;
    color: var(--orange);
    font-size: 2.3rem;
    line-height: 1;
}
.metric-row span {
    display: block;
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.76);
    font-weight: 700;
}
.feature-section { background: #fff; }
.feature-layout,
.career-layout,
.quote-layout,
.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
    align-items: center;
    gap: 58px;
}
.feature-image img,
.about-grid > img {
    width: 100%;
    min-height: 440px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.check-list {
    display: grid;
    gap: 10px;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
}
.check-list li {
    display: flex;
    gap: 12px;
    color: var(--graphite);
    font-weight: 800;
}
.check-list li::before {
    content: "";
    flex: 0 0 10px;
    width: 10px;
    height: 10px;
    margin-top: 8px;
    border-radius: 50%;
    background: var(--green);
}
.machine-capability-section {
    background: #fff;
}
.machine-section-heading {
    max-width: 820px;
    margin-bottom: 28px;
}
.machine-section-heading h2 {
    margin: 0;
    max-width: 760px;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.02;
}
.machine-section-heading p:not(.eyebrow) {
    max-width: 720px;
    margin: 18px 0 0;
    color: var(--steel);
    font-size: 1.02rem;
}
.machine-card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}
.machine-card {
    display: grid;
    grid-template-rows: 190px 1fr;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: 0 14px 38px rgba(17, 22, 28, 0.08);
}
.machine-card img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    background: #e7ecf1;
}
.machine-card div {
    display: grid;
    align-content: start;
    gap: 10px;
    padding: 18px;
}
.machine-card h3 {
    margin: 0;
    color: var(--ink);
    font-size: 1.02rem;
    line-height: 1.22;
}
.machine-card p {
    margin: 0;
    color: var(--steel);
    font-size: 0.93rem;
    line-height: 1.5;
}
.service-strip { background: var(--paper); }
.quality-proof-stack {
    display: grid;
    gap: 16px;
}
.quality-proof-photo {
    width: 100%;
    min-height: 320px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.cert-stack {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
}
.cert-stack img {
    max-height: 88px;
    width: auto;
    margin: auto;
}
.cert-trigger {
    display: grid;
    place-items: center;
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}
.cert-trigger img {
    transition: transform 0.22s ease, filter 0.22s ease;
}
.cert-trigger:hover img,
.cert-trigger:focus-visible img {
    filter: drop-shadow(0 10px 18px rgba(0, 83, 156, 0.18));
    transform: translateY(-2px);
}
.cert-trigger:focus-visible {
    outline: 3px solid rgba(255, 153, 0, 0.55);
    outline-offset: 6px;
    border-radius: 6px;
}
.image-modal {
    position: fixed;
    inset: 0;
    z-index: 320;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(17, 22, 28, 0.78);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}
.image-modal[hidden] { display: none; }
.image-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.image-modal-content {
    width: min(760px, 100%);
    max-height: min(840px, calc(100vh - 48px));
    overflow: auto;
    padding: 20px;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.38);
    transform: translateY(18px) scale(0.98);
    transition: transform 0.24s ease;
}
.image-modal.active .image-modal-content {
    transform: translateY(0) scale(1);
}
.image-modal-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}
.image-modal-header h2 {
    margin: 0;
    font-size: clamp(1.35rem, 2.5vw, 2rem);
    line-height: 1.1;
}
.image-modal-close {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--paper);
    color: var(--ink);
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
}
.image-modal-close:hover,
.image-modal-close:focus-visible {
    border-color: rgba(0, 83, 156, 0.42);
    color: var(--blue);
    outline: 0;
}
.image-modal-content > img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
}
.career-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
.job-card {
    display: grid;
    grid-template-rows: auto 1fr;
    width: 100%;
    min-height: 360px;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    color: inherit;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 16px 40px rgba(17, 22, 28, 0.08);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.job-card:hover,
.job-card:focus-visible {
    border-color: rgba(0, 83, 156, 0.42);
    box-shadow: 0 24px 62px rgba(17, 22, 28, 0.16);
    transform: translateY(-4px);
    outline: 0;
}
.job-card img {
    width: 100%;
    height: 172px;
    object-fit: cover;
    background: #e7ecf1;
}
.job-card-body {
    display: grid;
    align-content: start;
    gap: 10px;
    min-height: 188px;
    padding: 18px;
}
.job-card-meta,
.job-modal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.job-card-meta span,
.job-modal-meta span {
    padding: 4px 7px;
    border-radius: 4px;
    background: rgba(0, 83, 156, 0.09);
    color: var(--blue);
    font-size: 0.73rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.job-card-title {
    display: block;
    color: var(--ink);
    font-size: 1.08rem;
    font-weight: 900;
    line-height: 1.22;
}
.job-card-summary {
    display: block;
    color: var(--steel);
    font-size: 0.94rem;
    line-height: 1.48;
}
.job-card-action {
    display: block;
    align-self: end;
    margin-top: auto;
    color: var(--blue);
    font-size: 0.84rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}
.job-modal {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(17, 22, 28, 0.74);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}
.job-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.job-modal-content {
    width: min(880px, 100%);
    max-height: min(780px, calc(100vh - 48px));
    overflow: auto;
    padding: 32px;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.38);
    transform: translateY(18px) scale(0.98);
    transition: transform 0.24s ease;
}
.job-modal.active .job-modal-content {
    transform: translateY(0) scale(1);
}
.job-modal-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: start;
}
.job-modal-header h3 {
    margin: 0 0 12px;
    font-size: clamp(1.8rem, 3vw, 2.55rem);
    line-height: 1.04;
}
.job-modal-close {
    min-width: 82px;
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--paper);
    color: var(--ink);
    font-weight: 900;
    cursor: pointer;
}
.job-modal-close:hover,
.job-modal-close:focus-visible {
    border-color: rgba(0, 83, 156, 0.42);
    color: var(--blue);
    outline: 0;
}
.job-modal-description {
    margin: 22px 0 0;
    color: var(--steel);
    font-size: 1.02rem;
}
.job-modal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin-top: 26px;
}
.job-detail-panel,
.job-apply {
    padding-top: 18px;
    border-top: 1px solid var(--line);
}
.job-detail-panel h4,
.job-apply h4 {
    margin: 0 0 10px;
    font-size: 1rem;
}
.job-detail-panel ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding-left: 18px;
    color: var(--steel);
}
.job-apply {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
}
.job-apply p {
    margin: 0 0 16px;
    color: var(--steel);
}
.quote-section {
    padding-top: calc(var(--header) + 82px);
    color: #fff;
    background:
        linear-gradient(90deg, rgba(17, 22, 28, 0.94), rgba(17, 22, 28, 0.78)),
        url("../../Photographer-Images/JR9_0415-untitled-HDR.jpg") center / cover no-repeat;
}
.quote-layout {
    align-items: start;
    grid-template-columns: minmax(0, 0.82fr) minmax(420px, 1fr);
}
.quote-copy {
    position: sticky;
    top: calc(var(--header) + 28px);
}
.quote-copy h1 {
    margin: 0;
    font-size: clamp(2.45rem, 5vw, 4.5rem);
    line-height: 0.98;
    font-weight: 900;
}
.quote-copy p { color: rgba(255, 255, 255, 0.82); }
.quote-copy a { color: #fff; font-weight: 900; }
.contact-stack {
    display: grid;
    gap: 10px;
    margin-top: 28px;
}
.contact-stack a,
.contact-stack span {
    padding: 12px 14px;
    border: 1px solid var(--soft);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.08);
    text-decoration: none;
}
.quote-form {
    padding: 28px;
    border: 1px solid var(--soft);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.96);
    color: var(--ink);
    box-shadow: var(--shadow);
}
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.quote-form label {
    display: grid;
    gap: 7px;
    margin-bottom: 16px;
    color: var(--graphite);
    font-weight: 900;
}
.quote-form label span {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.9rem;
}
.quote-form em {
    color: var(--steel);
    font-style: normal;
    font-weight: 700;
}
.quote-form input,
.quote-form textarea {
    width: 100%;
    border: 1px solid #cbd3dc;
    border-radius: 6px;
    background: #fff;
    color: var(--ink);
    padding: 12px 13px;
}
.quote-form input:focus,
.quote-form textarea:focus {
    border-color: var(--blue);
    outline: 3px solid rgba(0, 83, 156, 0.18);
}
.quote-form textarea { resize: vertical; }
.quote-form small { color: var(--steel); font-weight: 700; }
.quote-form .error { min-height: 1em; color: #b00020; }
.form-button { width: 100%; margin-top: 4px; }
.quote-contact-section { background: #fff; }
.contact-layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
    align-items: stretch;
    gap: 28px;
}
.contact-card {
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: 0 16px 42px rgba(17, 22, 28, 0.08);
}
.contact-card h2 {
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 2.65rem);
    line-height: 1.04;
    font-weight: 900;
}
.contact-card p:not(.eyebrow) {
    margin: 14px 0 0;
    color: var(--steel);
}
.contact-info-list {
    display: grid;
    gap: 12px;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
}
.contact-info-list li {
    display: grid;
    gap: 3px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(17, 22, 28, 0.1);
}
.contact-info-list strong {
    color: var(--ink);
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.contact-info-list span,
.contact-info-list a {
    color: var(--steel);
    font-weight: 800;
    text-decoration: none;
}
.contact-info-list a:hover { color: var(--blue); }
.social-links {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}
.social-links a {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
}
.social-links img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}
.contact-map {
    min-height: 460px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: var(--shadow);
}
.contact-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 460px;
    border: 0;
}

.site-footer {
    padding: 34px 0;
    color: #fff;
    background: #0d1116;
}
.footer-layout {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto auto;
    align-items: center;
    gap: 28px;
}
.site-footer img { max-height: 44px; margin-bottom: 10px; }
.footer-certifications {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    width: 100%;
    margin-top: 2px;
}
.footer-certifications img {
    width: auto;
    max-width: 64px;
    max-height: 34px;
    margin: 0;
    padding: 4px 6px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.92);
    object-fit: contain;
}
.site-footer p,
.site-footer span {
    margin: 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.9rem;
}
.site-footer nav,
.footer-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.footer-contact {
    justify-content: flex-end;
    max-width: 360px;
    text-align: right;
}
.site-footer a {
    color: rgba(255, 255, 255, 0.82);
    font-weight: 800;
    text-decoration: none;
}
.site-footer a:hover { color: #fff; }

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

:focus-visible {
    outline: 3px solid var(--orange);
    outline-offset: 3px;
}

@keyframes slowZoom {
    from { transform: scale(1.04); }
    to { transform: scale(1.12); }
}
@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
@keyframes scroll-left {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(-50%, 0, 0); }
}
@keyframes scroll-right {
    from { transform: translate3d(-50%, 0, 0); }
    to { transform: translate3d(0, 0, 0); }
}
@media (max-width: 1080px) {
    .hero-layout,
    .split-motion,
    .service-hero-layout,
    .feature-layout,
    .career-layout,
    .quote-layout,
    .contact-layout,
    .about-grid,
    .cta-layout {
        grid-template-columns: 1fr;
    }
    .service-tile-grid,
    .service-index-grid,
    .machine-card-grid,
    .career-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .hero-panel {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .service-detail-hero {
        padding-top: calc(var(--header) + 58px);
        padding-bottom: 58px;
    }
    .service-hero-layout {
        gap: 30px;
    }
    .detail-hero-card {
        max-width: 760px;
    }
    .detail-hero-card img {
        height: clamp(320px, 48vw, 420px);
    }
    .quote-copy { position: static; }
    .footer-layout { grid-template-columns: 1fr; }
    .footer-contact {
        justify-content: flex-start;
        max-width: none;
        text-align: left;
    }
    .footer-certifications { justify-content: flex-start; }
}

@media (max-width: 780px) {
    :root { --header: 68px; }
    .shell { width: min(100% - 28px, 1200px); }
    .brand img { max-height: 40px; }
    .nav-toggle { display: block; }
    .site-header {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.5));
        border-bottom: 1px solid rgba(255, 255, 255, 0.56);
        box-shadow: inset 0 1px rgba(255, 255, 255, 0.78), 0 16px 34px rgba(17, 22, 28, 0.12);
        backdrop-filter: blur(22px) saturate(180%);
        -webkit-backdrop-filter: blur(22px) saturate(180%);
    }
    .site-header.scrolled {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.68));
    }
    .nav-toggle {
        background: rgba(255, 255, 255, 0.36);
        backdrop-filter: blur(12px) saturate(160%);
        -webkit-backdrop-filter: blur(12px) saturate(160%);
    }
    .site-nav {
        position: fixed;
        inset: var(--header) 0 auto;
        display: grid;
        gap: 0;
        max-height: calc(100dvh - var(--header));
        overflow-y: auto;
        padding: 12px 14px 18px;
        background: rgba(255, 255, 255, 0.98);
        border-bottom: 1px solid var(--line);
        box-shadow: 0 18px 42px rgba(17, 22, 28, 0.16);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-10px);
        transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    }
    .site-nav.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }
    .site-nav a {
        padding: 14px;
        border-radius: 0;
        border-bottom: 1px solid rgba(17, 22, 28, 0.1);
    }
    .site-nav .nav-cta {
        margin: 12px 0 0;
        border: 0;
        border-radius: 6px;
        text-align: center;
    }
    .home-hero,
    .compact-hero,
    .service-detail-hero {
        min-height: 0;
        padding-top: calc(var(--header) + 46px);
        padding-bottom: 52px;
    }
    .home-hero {
        margin-top: var(--header);
        padding-top: calc(42dvh + 28px);
        background: var(--ink);
    }
    .service-detail-hero {
        padding-top: calc(var(--header) + 34px);
        padding-bottom: 38px;
    }
    .home-hero .hero-video,
    .home-hero .hero-shade {
        top: 0;
        bottom: auto;
        height: 42dvh;
    }
    .home-hero .hero-video {
        object-position: 52% top;
        filter: brightness(0.96) contrast(1.02) saturate(1.02);
    }
    .home-hero .hero-shade {
        background:
            linear-gradient(to bottom, rgba(255, 255, 255, 0) 42%, rgba(17, 22, 28, 0.12) 70%, var(--ink) 100%),
            linear-gradient(90deg, rgba(7, 10, 14, 0.18), rgba(7, 10, 14, 0.04));
    }
    .hero-layout { min-height: 0; gap: 26px; }
    .hero h1,
    .page-hero h1 {
        font-size: clamp(2.25rem, 10vw, 2.72rem);
        line-height: 1;
    }
    .hero-lede,
    .page-hero p:not(.eyebrow) { font-size: 1.03rem; }
    .hero-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .button { width: 100%; }
    .hero-panel,
    .process-rhythm,
    .service-panels,
    .metric-row,
    .service-tile-grid,
    .service-index-grid,
    .machine-card-grid,
    .job-modal-grid,
    .career-cards,
    .form-grid,
    .cert-stack {
        grid-template-columns: 1fr;
    }
    .section { padding: 70px 0; }
    .hero-panel div,
    .metric-row article,
    .process-rhythm article,
    .service-panels article {
        padding: 18px;
    }
    .service-tile {
        min-height: 290px;
        padding: 18px;
    }
    .service-tile h3 { font-size: 1.18rem; }
    .service-tile p { font-size: 0.95rem; }
    .detail-hero-card img,
    .feature-image img,
    .quality-proof-photo,
    .about-grid > img,
    .image-stack { min-height: 280px; }
    .detail-hero-card img {
        height: clamp(230px, 54vw, 340px);
        min-height: 0;
    }
    .quote-section { padding-top: calc(var(--header) + 54px); }
    .contact-card { padding: 22px; }
    .contact-map,
    .contact-map iframe { min-height: 330px; }
    .quote-form input,
    .quote-form textarea,
    .quote-form select {
        min-height: 46px;
    }
    .quote-form label span {
        display: grid;
        justify-content: start;
        gap: 2px;
    }
    .gallery-intro {
        grid-template-columns: 1fr;
        align-items: start;
        gap: 14px;
        margin-bottom: 24px;
    }
    .gallery-grid {
        columns: 2 168px;
        column-gap: 12px;
    }
    .gallery-card { margin-bottom: 12px; }
    .gallery-lightbox {
        align-items: end;
        padding: 14px;
    }
    .gallery-lightbox-shell {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    .gallery-lightbox-stage {
        grid-column: 1 / -1;
        order: 1;
    }
    .gallery-lightbox-stage img {
        max-height: calc(100dvh - 156px);
    }
    .gallery-lightbox-prev {
        order: 2;
        justify-self: start;
    }
    .gallery-lightbox-next {
        order: 3;
        justify-self: end;
    }
    .gallery-lightbox-close {
        top: 10px;
        right: 10px;
    }
    .photo-strip img,
    .photo-strip video { width: 280px; height: 180px; }
    .logo-row { min-height: 92px; }
    .logo-slide img {
        max-width: 138px;
        max-height: 58px;
        margin: 0 18px;
    }
    .job-modal {
        align-items: end;
        padding: 14px;
    }
    .job-modal-content {
        max-height: calc(100vh - 28px);
        padding: 22px;
    }
    .job-modal-header {
        grid-template-columns: 1fr;
    }
    .quote-form { padding: 20px; }
}

@media (max-width: 480px) {
    :root { --header: 64px; }
    .shell { width: min(100% - 24px, 1200px); }
    .brand { min-width: 0; }
    .brand img { max-height: 36px; }
    .nav-toggle {
        width: 42px;
        height: 42px;
    }
    .hero h1,
    .page-hero h1 { font-size: 2.05rem; }
    .hero-lede,
    .page-hero p:not(.eyebrow) { font-size: 0.98rem; }
    .home-hero,
    .compact-hero,
    .service-detail-hero {
        padding-top: calc(var(--header) + 34px);
        padding-bottom: 42px;
    }
    .home-hero {
        padding-top: calc(36dvh + 24px);
    }
    .service-detail-hero {
        padding-top: calc(var(--header) + 24px);
        padding-bottom: 34px;
    }
    .home-hero .hero-video,
    .home-hero .hero-shade {
        height: 36dvh;
    }
    .home-hero .hero-video {
        object-position: 50% top;
    }
    .section { padding: 56px 0; }
    .section-kicker h2,
    .split-motion h2,
    .feature-copy h2,
    .cta-layout h2,
    .career-layout h2,
    .quote-copy h2,
    .about-grid h2 {
        font-size: 2rem;
    }
    .gallery-intro h2 { font-size: 2rem; }
    .gallery-grid { columns: 1; }
    .quote-copy h1 { font-size: 2.18rem; }
    .service-tile { min-height: 260px; }
    .detail-hero-card img { height: 220px; }
    .machine-card img { height: 165px; }
    .photo-strip img,
    .photo-strip video { width: 236px; height: 150px; }
    .logo-row { min-height: 76px; }
    .logo-slide img {
        max-width: 116px;
        max-height: 46px;
        margin: 0 14px;
    }
    .contact-map,
    .contact-map iframe { min-height: 280px; }
    .footer-layout { gap: 20px; }
    .site-footer nav,
    .footer-contact {
        display: grid;
        justify-content: start;
    }
    .footer-certifications { justify-content: flex-start; }
    .job-modal {
        align-items: stretch;
        padding: 0;
    }
    .job-modal-content {
        max-height: 100dvh;
        border-radius: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
    .logo-slide,
    .bottom-row .logo-slide {
        animation: none !important;
        transform: none;
    }
}
