:root {
    color-scheme:dark;
    --bg:#101110;
    --panel:#171815;
    --text:#f4f4ec;
    --muted:#b8b9ae;
    --lime:#e6fa4b;
    --gutter:clamp(22px,5vw,84px);
    --ease:cubic-bezier(.2,.75,.25,1);
    font-family:"Onest","Segoe UI",Arial,sans-serif;
}

.portfolio {
    position: relative;
    background: var(--bg);
}
.project-reel {
    background: var(--panel);
    display: grid;
    grid-template-columns: minmax(210px, 1fr) minmax(0, 1.8fr);
    grid-template-rows: 1fr auto;
    gap: 24px var(--gutter);
}
.reel-heading h2 {
    margin: 0;
    font: 520 clamp(42px, 5.7vw, 100px)/1.05 "Unbounded", sans-serif;
    letter-spacing: -.06em;
}
.reel-heading em { color: var(--lime); }
.reel-screen {
    grid-area: 1 / 2 / 3 / 3;
    align-self: center;
    aspect-ratio: 4/3;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: var(--bg);
    isolation: isolate;
}
.reel-screen img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: contain; opacity: 0;
}
.reel-screen .current { opacity: 1; z-index: 1; }
@media (prefers-reduced-motion: no-preference) {
    .reel-screen img { transition: opacity .32s ease-out; }
    .reel-screen .current { animation: reel-arrive .48s var(--ease); }
    @keyframes reel-arrive { from { transform: scale(1.025); } to { transform: scale(1); } }
}
.reel-count { color: var(--muted); font-variant-numeric: tabular-nums; }
.reel-count span { color: var(--lime); }
.reel-name { font-size: clamp(22px, 2.4vw, 38px); line-height: 1.25; margin: .25em 0 .65em; }
.reel-controls:not([hidden]) { display: flex; gap: 8px; }
.reel-controls button {
    border: 0; background: #30322b; color: var(--text); border-radius: 100px;
    font: inherit; min-height: 50px; min-width: 50px; cursor: pointer;
    display: grid; place-items: center;
}
.reel-controls button:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.reel-controls .reel-play { min-width: 110px; background: var(--lime); color: var(--bg); }
.reel-prev svg { transform: rotate(90deg); }
.reel-next svg { transform: rotate(-90deg); }
@media (max-width: 760px) {
    .project-reel { display: flex; flex-direction: column; gap: 18px; }
    .reel-heading br { display: none; }
    .reel-heading em::before { content: " "; }
    .reel-screen { width: 100%; }
    .reel-info { display: grid; grid-template-columns: 1fr auto; align-items: baseline; }
    .reel-count { grid-column: 2; grid-row: 1; }
    .reel-name { grid-column: 1; grid-row: 1; }
    .reel-controls { grid-column: span 2; }
}
.portfolio-heading h2 {
    max-width: 13ch;
    font: 520 clamp(42px, 6.8vw, 112px)/1.06 "Unbounded", sans-serif;
    letter-spacing: -.065em;
}
.portfolio-heading em { display: block; color: var(--lime); }
.case-spread {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.65fr);
    column-gap: clamp(30px, 6vw, 100px);
    align-items: center;
    padding-block: clamp(36px, 5.5vw, 88px);
    border-bottom: 1px solid #393b33;
}
.case-spread:nth-of-type(even) { grid-template-columns: minmax(0, 1.65fr) minmax(0, .8fr); }
.case-spread:nth-of-type(even) .case-gallery { grid-column: 1; grid-row: 1; }
.case-spread:nth-of-type(even) .case-notes { grid-column: 2; }
.case-spread:last-child { border-bottom: 0; padding-bottom: 0; }
.case-type { font-size: 15px; color: var(--lime); }
.case-notes h3 {
    font: 520 clamp(31px, 3.7vw, 68px)/1.08 "Unbounded", sans-serif;
    letter-spacing: -.06em;
    margin: .35em 0 .48em;
}
.case-description { color: var(--muted); max-width: 37ch; }
.case-gallery {
    --frame-ratio: 4 / 3;
    width: min(100%, 86svh);
    justify-self: center;
}
.case-gallery:has(.case-wolf) {
    --frame-ratio: 1;
    width: min(100%, 65svh);
}
.case-frame {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    aspect-ratio: var(--frame-ratio);
    border-radius: 12px;
    background: var(--panel);
    margin: 0 auto;
}
.case-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
}
.case-open:not([hidden]) {
    position: absolute; inset: 0; z-index: 2;
    display: flex; align-items: flex-end; justify-content: flex-end;
    border: 0; padding: 14px; color: white; background: transparent;
    font: inherit; cursor: zoom-in;
}
.case-open span {
    display: inline-flex; gap: 6px; align-items: center;
    padding: 8px 12px; border-radius: 99px;
    background: rgb(15 16 15 / 82%); font-size: 14px;
}
.case-open svg { width: 16px; height: 16px; }
.case-open:focus-visible { outline: 3px solid var(--lime); outline-offset: -4px; }
.case-photo[data-current] { opacity: 1; z-index: 1; }
.case-angles:not([hidden]) { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 12px; }
.case-angles button {
    font: inherit;
    font-size: 15px;
    color: var(--text);
    background: var(--panel);
    border: 0;
    border-radius: 30px;
    padding: 0 18px;
    min-height: 48px;
    cursor: pointer;
}
.case-angles button[aria-pressed="true"] { background: var(--lime); color: var(--bg); }
.case-angles button:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) {
    .case-photo {
        transition: opacity .55s var(--ease);
        transform: scale(var(--case-zoom, 1));
    }
    .case-frame {
        transform: perspective(1100px) translateY(var(--case-lift, 0px)) rotateX(var(--case-tip, 0deg));
        clip-path: inset(var(--case-inset, 0%) 0 0 round 12px);
    }
    .case-description {
        transform: translateY(var(--case-caption-y, 0px));
        opacity: var(--case-caption-opacity, 1);
    }
}
@media (max-width: 760px) {
    .case-spread, .case-spread:nth-of-type(even) { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
    .case-notes { display: contents; }
    .case-notes h3 { margin-block: 6px 10px; }
    .case-description { order: 2; padding-top: 6px; }
    .case-type { font-size: 14px; }
    .case-angles button { min-height: 50px; }
    .case-gallery, .case-gallery:has(.case-wolf) { --frame-ratio: 1; width: min(100%, 500px); align-self: center; }
    .case-gallery:has(.case-bank-portrait) { --frame-ratio: 5 / 6; }
}

html:has(.photo-viewer[open]) { overflow: hidden; }
.photo-viewer {
    position: fixed; inset: 0; margin: 0; width: 100%; max-width: none;
    height: 100%; height: 100dvh; max-height: none; padding: 0; border: 0;
    background: #0c0d0c; color: var(--text);
}
.photo-viewer[open] { display: grid; grid-template-rows: auto minmax(0,1fr); }
.photo-viewer::backdrop { background: #0c0d0c; }
.viewer-bar { display: flex; align-items: center; gap: 8px; padding: 8px clamp(10px, 3vw, 40px); padding-top: max(8px, env(safe-area-inset-top)); }
.viewer-bar h3 { flex: 1; font-size: clamp(15px, 2vw, 23px); line-height: 1.12; }
.viewer-bar button { min-height: 50px; padding: 0 12px; border: 0; border-radius: 24px; background: var(--panel); color: var(--text); font: inherit; cursor: pointer; }
.viewer-zoom[aria-pressed="true"] { color: var(--bg); background: var(--lime); }
.viewer-stage { position: relative; overflow: auto; overscroll-behavior: contain; }
.viewer-stage img { display: block; width: 100%; height: 100%; object-fit: contain; }
.viewer-stage.zoomed img { width: var(--zoom-width); height: auto; max-width: none; margin: 0 auto; }

*,*::before,*::after {
    box-sizing:border-box;
}

html {
    scroll-behavior:smooth;
}

body {
    margin:0;
    background:var(--bg);
    color:var(--text);
    font-size:16px;
}

a {
    color:inherit;
    text-decoration:none;
}

a:focus-visible,summary:focus-visible {
    outline:2px solid var(--lime);
    outline-offset:5px;
}

svg {
    width:20px;
    height:20px;
    stroke:currentColor;
    fill:none;
    stroke-width:1.7;
    stroke-linecap:round;
    stroke-linejoin:round;
    flex:none;
}

p,h1,h2,h3,figure {
    margin:0;
}

p {
    line-height:1.6;
}

em {
    font-style:normal;
    color:var(--lime);
}

.skip {
    position:fixed;
    top:12px;
    left:12px;
    padding:12px;
    background:var(--lime);
    color:var(--bg);
    z-index:5;
    transform:translateY(-160%);
}

.skip:focus {
    transform:none;
}

.top {
    position:absolute;
    inset:0 0 auto;
    z-index:3;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:24px;
    padding:24px var(--gutter);
}

.brand {
    display:inline-flex;
    align-items:center;
    gap:9px;
    font-size:17px;
    line-height:.91;
    letter-spacing:-.045em;
    font-weight:750;
}

.lime {
    color:var(--lime);
}

.desktop-nav {
    display:flex;
    gap:clamp(18px,4vw,58px);
}

.desktop-nav a,.top-cta {
    font-size:15px;
    font-weight:550;
}

.desktop-nav a,.hero-foot a,.footer a {
    transition:color .2s;
}

.desktop-nav a:hover,.hero-foot a:hover,.footer a:hover {
    color:var(--lime);
}

.top-cta {
    display:flex;
    align-items:center;
    gap:10px;
    border-bottom:1px solid #ffffff66;
    padding:10px 0;
}

.top-cta:hover {
    color:var(--lime);
}

.mobile-nav {
    display:none;
}

.hero {
    position:relative;
    min-height:clamp(670px,100svh,1050px);
    isolation:isolate;
    display:flex;
    flex-direction:column;
    justify-content:end;
    padding:130px var(--gutter) 28px;
    overflow:hidden;
    background:#1c2016;
}

.hero-media,.hero-tone,.spot {
    position:absolute;
    inset:0;
    pointer-events:none;
}

.hero-media {
    z-index:-3;
}

.hero-media img {
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:60% 50%;
    animation:arrival .75s var(--ease) both;
}

.hero-tone {
    z-index:-2;
    background:linear-gradient(90deg,#101110f2 0%,#101110cf 25%,#10111042 69%,#10111008),linear-gradient(0deg,#101110 0%,transparent 36%,transparent 68%,#101110a6);
}

.spot {
    z-index:-1;
    inset:auto auto 0 0;
    top:0;
    width:min(92vw,1000px);
    height:min(92vw,1000px);
    background:radial-gradient(ellipse,#e7fa4b31 0%,#e7fa4b0d 31%,transparent 67%);
    mix-blend-mode:screen;
    transform:translate3d(var(--spot-x,40vw),var(--spot-y,-27vh),0);
    opacity:.8;
}

.hero-content {
    margin:auto 0;
    max-width:1040px;
    padding:22px 0 32px;
}

h1,h2 {
    font-weight:730;
    letter-spacing:-.078em;
    line-height:.9;
}

h1 {
    font-size:clamp(62px,10.35vw,174px);
}

h1 span {
    display:block;
    overflow:hidden;
    padding:0 .12em .13em 0;
    margin-bottom:-.13em;
}

h1 i {
    display:block;
    font-style:normal;
    animation:title-in .68s var(--ease) both;
}

h1 span+span i {
    animation-delay:.08s;
}

.hero-content p {
    margin:32px 0 24px;
    max-width:420px;
    font-size:clamp(16px,1.45vw,21px);
    color:#dedfd5;
}

.pill {
    display:inline-flex;
    align-items:center;
    justify-content:space-between;
    gap:24px;
    min-height:54px;
    padding:0 20px;
    border-radius:3px;
    background:var(--lime);
    color:#12130c;
    font-weight:720;
    transition:background .2s,color .2s;
}

.pill:hover {
    background:var(--text);
}

.pill svg,.top-cta svg {
    transition:transform .22s var(--ease);
}

.pill:hover svg,.top-cta:hover svg {
    transform:translate(2px,-2px);
}

.hero-foot {
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:14px;
    color:var(--muted);
}

.hero-foot a,.footer a {
    display:flex;
    align-items:center;
    gap:9px;
    min-height:44px;
    font-size:14px;
}

.hero-foot small {
    font-size:13px;
    text-align:right;
}

.section {
    padding:clamp(82px,11vw,160px) var(--gutter);
    scroll-margin-top:0;
}

.section-head {
    display:grid;
    grid-template-columns:1.4fr 1fr;
    align-items:end;
    gap:36px;
    margin-bottom:clamp(40px,7vw,90px);
}

.section-head h2,.contact h2 {
    font-size:clamp(54px,7.6vw,126px);
}

.section-head p,.contact p {
    max-width:35ch;
    color:var(--muted);
    font-size:clamp(17px,1.6vw,22px);
}

summary {
    list-style:none;
    cursor:pointer;
}

summary::-webkit-details-marker {
    display:none;
}

.counter {
    font:500 13px Consolas,"Courier New",monospace;
    color:var(--muted);
    letter-spacing:0;
}

@media(min-width:761px) {
}

.production {
    background:#191b16;
}

.steps {
    display:grid;
    grid-template-columns:repeat(3,1fr);
    list-style:none;
    margin:0;
    padding:0;
    border-top:1px solid #4a4b41;
}

.steps li {
    padding:24px 24px 29px 0;
    border-bottom:1px solid #4a4b41;
}

.steps .counter {
    color:var(--lime);
}

.steps h3 {
    font-size:clamp(22px,2.3vw,34px);
    line-height:1.12;
    letter-spacing:-.04em;
    margin:21px 0 8px;
}

.steps p {
    color:var(--muted);
    max-width:28ch;
}

.contact {
    display:grid;
    grid-template-columns:1fr .78fr;
    gap:36px;
    align-items:end;
    background:var(--lime);
    color:#17190f;
}

.contact p {
    color:#343921;
    margin-top:22px;
}

.contact-info {
    display:grid;
    gap:16px;
    justify-items:start;
}

.phone {
    display:inline-flex;
    align-items:center;
    gap:12px;
    border-bottom:1px solid currentColor;
    padding-bottom:10px;
    font-weight:730;
    line-height:1.1;
    letter-spacing:-.06em;
    font-size:clamp(25px,3.2vw,57px);
}

.contact a:focus-visible {
    outline-color:#17190f;
}

address {
    font-style:normal;
    font-size:16px;
}

.footer {
    padding:22px var(--gutter);
    display:flex;
    justify-content:space-between;
    align-items:center;
    color:var(--muted);
}

[data-reveal].enter {
    animation:appear .46s var(--ease) both;
}

@keyframes title-in {
    from {
        transform:translateY(104%);
    }
    to {
        transform:translateY(0);
    }
}

@keyframes arrival {
    from {
        transform:scale(1.035);
    }
    to {
        transform:scale(1);
    }
}

@keyframes appear {
    from {
        opacity:0;
        transform:translateY(12px);
    }
    to {
        opacity:1;
        transform:none;
    }
}

@media(max-width:760px) {
    .top {
        padding-top:13px;
        padding-bottom:13px;
    }
    .top-cta,.desktop-nav {
        display:none;
    }
    .mobile-nav {
        display:block;
        position:relative;
    }
    .mobile-nav summary {
        display:flex;
        align-items:center;
        min-height:48px;
        font-weight:650;
    }
    .mobile-nav nav {
        position:absolute;
        right:0;
        top:100%;
        min-width:205px;
        background:#212319;
        padding:8px 16px;
        box-shadow:0 12px 30px #0008;
    }
    .mobile-nav a {
        display:flex;
        align-items:center;
        min-height:48px;
    }
    .hero {
        min-height:max(620px,94svh);
        padding-top:120px;
        padding-bottom:18px;
    }
    .hero-media img {
        object-position:58% 50%;
    }
    .hero-tone {
        background:linear-gradient(0deg,#101110 0%,#101110db 18%,#10111065 68%,#101110ac),linear-gradient(90deg,#1011109e,transparent);
    }
    .spot {
        bottom:auto;
        top:7vh;
    }
    .hero-content {
        margin:auto 0 0;
        padding:0 0 45px;
    }
    h1 {
        font-size:clamp(50px,12vw,88px);
    }
    .hero-content p {
        margin:24px 0 18px;
    }
    .pill {
        width:100%;
        max-width:420px;
    }
    .section-head {
        gap:22px;
    }
    .steps {
        grid-template-columns:1fr 1fr;
    }
    .steps li {
        padding-right:14px;
    }
}

@media(max-width:360px) {
    h1 {
        font-size:45px;
    }
    .hero-foot small {
        max-width:100px;
    }
    .steps {
        grid-template-columns:1fr;
    }
}

@media(prefers-reduced-motion:reduce) {
    *,*::before,*::after {
        scroll-behavior:auto!important;
        animation:none!important;
        transition:none!important;
    }
}


/* Section entrances and scroll-linked motion */
[data-scene] {
    position: relative;
    isolation: isolate;
    overflow: clip;
}

[data-scene]::before {
    position: absolute;
    z-index: 1;
    inset: 0 0 auto;
    height: min(460px, 70vh);
    background: linear-gradient(115deg, transparent 28%, #e6fa4b15 46%, #f1ff8a38 50%, transparent 66%);
    content: "";
    opacity: 0;
    pointer-events: none;
}

.contact[data-scene]::before {
    background: linear-gradient(115deg, transparent 25%, #161a0b40 46%, #fbffd45c 52%, transparent 67%);
}

.title-line {
    display: block;
}

.title-line > * {
    display: block;
}

@media (prefers-reduced-motion: no-preference) {
    .motion-ready [data-reveal].enter {
        animation: none;
    }

    .motion-ready [data-reveal]:not(.enter):not(:focus-within) {
        opacity: 0;
    }

    .motion-ready [data-scene].enter::before {
        animation: light-pass 1.05s cubic-bezier(.27,.55,.33,1) both;
    }

    .motion-ready .title-line {
        overflow: hidden;
        padding: .08em .08em .14em 0;
        margin: -.08em -.08em -.14em 0;
    }

    .motion-ready .enter .title-line > * {
        animation: title-in .7s var(--ease) both;
    }

    .motion-ready .enter .title-line + .title-line > * {
        animation-delay: 85ms;
    }

    .motion-ready .section-head.enter p,
    .motion-ready .contact .enter > p {
        animation: appear .5s var(--ease) 135ms both;
    }

    .motion-ready .steps li.enter {
        animation: slide-in .56s var(--ease) calc(var(--step, 0) * 65ms) both;
    }

    .motion-ready .contact-info.enter {
        animation: slide-in .58s var(--ease) 145ms both;
    }

    @supports (animation-timeline: view()) {
        .hero {
            view-timeline-name: --first-scene;
        }

        .hero-media {
            animation: hero-depth linear both;
            animation-timeline: --first-scene;
            animation-range: exit 0% exit 100%;
        }

        .hero-content {
            animation: hero-exit linear both;
            animation-timeline: --first-scene;
            animation-range: exit 0% exit 78%;
        }
    }
}

@keyframes light-pass {
    from { opacity: 0; transform: translateX(-70%); }
    28% { opacity: 1; }
    76% { opacity: .75; }
    to { opacity: 0; transform: translateX(70%); }
}



@keyframes slide-in {
    from { opacity: 0; transform: translateY(28px); }
    to { opacity: 1; transform: none; }
}



@keyframes hero-depth {
    from { transform: none; }
    to { transform: translateY(16%) scale(1.09); }
}

@keyframes hero-exit {
    from { transform: none; }
    to { transform: translateY(-28px); }
}

@media (max-width: 760px) and (prefers-reduced-motion: no-preference) {
    .mobile-nav[open] nav {
        animation: menu-open .36s var(--ease) both;
    }

    .mobile-nav[open] a {
        animation: appear .28s var(--ease) both;
    }

    .mobile-nav[open] a:nth-child(2) {
        animation-delay: 48ms;
    }

    .mobile-nav[open] a:nth-child(3) {
        animation-delay: 96ms;
    }
}

@keyframes menu-open {
    from { clip-path: inset(0 0 100% 0); transform: translateY(-8px); }
    to { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); transform: none; }
}


@media (prefers-reduced-motion: no-preference) {
    .motion-ready .contact[data-scene]::after {
        position: absolute;
        z-index: 2;
        inset: 0;
        background: #191b16;
        content: "";
        pointer-events: none;
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
}

@keyframes contact-open {
    from { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
    68% { clip-path: polygon(0 0, 100% 0, 100% 8%, 0 62%); }
    to { clip-path: polygon(0 0, 100% 0, 100% 0, 0 0); }
}




@font-face {
    font-family: "Onest";
    src: url("fonts/onest.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Unbounded";
    src: url("fonts/unbounded.woff2") format("woff2");
    font-weight: 200 900;
    font-style: normal;
    font-display: swap;
}

/* Readable, linear content is also the reduced-motion and no-script view. */
.services {
    position: relative;
    z-index: 1;
    background: var(--bg);
    padding: 0;
}

.services-viewport {
    padding: 60px var(--gutter) 30px;
    background: var(--bg);
}

.services-heading {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: start;
}

.services-heading h2 {
    font-family: "Unbounded", sans-serif;
    font-size: clamp(27px, 3vw, 46px);
    font-weight: 550;
    line-height: 1.1;
    letter-spacing: -.055em;
}

.services-heading p {
    max-width: 24ch;
    color: var(--muted);
    font-size: 16px;
}

.service-scene {
    padding: 60px 0;
}

.scene-card {
    position: relative;
    width: min(600px, 65%);
    margin-left: auto;
    aspect-ratio: 5 / 4;
}

.scene-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

.scene-card figcaption {
    position: absolute;
    right: 14px;
    bottom: 12px;
    padding: 4px 8px;
    background: #101110cc;
    color: #f4f4ec;
    font-size: 12px;
}

.scene-copy p {
    max-width: 33ch;
    color: var(--muted);
    margin-bottom: 24px;
    font-size: clamp(16px, 1.3vw, 20px);
}

.scene-copy h3 {
    font-family: "Unbounded", sans-serif;
    font-size: clamp(33px, 7.4vw, 112px);
    font-weight: 600;
    letter-spacing: -.06em;
    line-height: 1.04;
    color: var(--lime);
    overflow-wrap: anywhere;
}

.scene-navigation {
    display: none;
}

.intro-transition::after {
    content: "";
    position: absolute;
    top: 0;
    width: 0;
    height: 100vh;
    height: 100svh;
    visibility: hidden;
    pointer-events: none;
}

/* A single sticky scene progresses through all four services. */
.scroll-intro {
    position: relative;
    isolation: isolate;
}

.scroll-intro .hero {
    position: sticky;
    top: var(--hero-top);
    z-index: 0;
}

.scroll-intro .hero-media,
.scroll-intro .hero-content {
    animation: none;
}

.scroll-intro .hero-media {
    transform: scale(calc(1 + var(--reveal-progress) * .07));
}

.scroll-intro .hero-content {
    transform: translateY(calc(var(--reveal-progress) * -35px));
    opacity: calc(1 - var(--reveal-progress) * .85);
}

.scroll-intro .services {
    margin-top: calc(var(--reveal-distance) - var(--hero-height));
    background: transparent;
    height: var(--services-height);
}

.kinetic-services .services-viewport {
    position: sticky;
    top: 0;
    height: var(--scene-height);
    overflow: clip;
    transform: translateY(calc((var(--reveal-progress) - 1) * var(--reveal-distance)));
    clip-path: polygon(0 var(--mask-left), 100% var(--mask-right), 100% 100%, 0 100%);
    display: flex;
    flex-direction: column;
}

.kinetic-services .service-scenes {
    position: relative;
    flex: 1;
    min-height: 0;
    perspective: 1200px;
}
.kinetic-services.services-uncovered .services-viewport {
    clip-path: none;
    transform: none;
}

.kinetic-services .service-scene {
    position: absolute;
    inset: 0;
    padding: 0;
    visibility: hidden;
    pointer-events: none;
}

.kinetic-services .service-scene.scene-visible {
    visibility: visible;
}

.kinetic-services .scene-card {
    position: absolute;
    width: clamp(340px, 43vw, 660px);
    height: min(43vh, 440px);
    top: 2%;
    right: 12%;
    margin: 0;
    transform: translate3d(var(--card-x), var(--card-y), var(--card-z)) rotateX(var(--card-rx)) rotateY(var(--card-ry)) rotateZ(var(--card-rz));
    opacity: var(--card-opacity);
    transform-style: preserve-3d;
}

.kinetic-services .scene-card > img {
    backface-visibility: hidden;
}

.kinetic-services .scene-card figcaption {
    opacity: var(--caption-opacity);
}

.kinetic-services .scene-copy {
    position: absolute;
    inset: 0;
}

.kinetic-services .scene-copy p {
    position: absolute;
    left: 0;
    top: 22%;
    width: 25%;
    opacity: var(--copy-opacity);
    transform: translateY(var(--copy-y));
}

.kinetic-services .scene-copy h3 {
    position: absolute;
    bottom: 6%;
    left: 0;
    width: 100%;
    color: transparent;
    background: linear-gradient(100deg, var(--lime) 0%, var(--lime) var(--text-fill), #6c705b calc(var(--text-fill) + 3%), #6c705b 100%);
    background-clip: text;
    -webkit-background-clip: text;
    opacity: var(--copy-opacity);
    transform: translateY(var(--copy-y));
}

.kinetic-services .scene-navigation {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    margin-top: auto;
    flex: none;
}

.scene-navigation a {
    position: relative;
    font-size: 14px;
    min-height: 52px;
    display: flex;
    align-items: center;
    color: var(--muted);
    border-top: 1px solid #3a3d32;
}

.scene-navigation a::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--lime);
    transform: scaleX(var(--nav-progress, 0));
    transform-origin: left;
}

.scene-navigation a[aria-current="true"] {
    color: var(--lime);
}

@media (max-width: 760px) {
    .services-viewport {
        padding: 30px var(--gutter) 18px;
    }

    .services-heading h2 {
        font-size: 27px;
    }

    .services-heading p {
        max-width: 19ch;
        font-size: 14px;
    }

    .services-heading {
        gap: 16px;
    }

    .scene-card {
        width: 100%;
        margin: 0 0 28px;
    }

    .scene-copy h3 {
        font-size: clamp(30px, 7.6vw, 55px);
    }

    .kinetic-services .scene-card {
        top: 5%;
        right: 8%;
        width: 84%;
        height: 37%;
    }

    .kinetic-services .scene-copy p {
        top: 49%;
        width: 100%;
        max-width: 39ch;
        font-size: 16px;
        line-height: 1.5;
    }

    .kinetic-services .scene-copy h3 {
        bottom: 3%;
    }

    .kinetic-services .scene-navigation {
        gap: 8px;
        grid-template-columns: repeat(2, 1fr);
    }

    .scene-navigation a {
        font-size: 13px;
        min-height: 46px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .service-scene {
        scroll-margin-top: 24px;
    }
}

@media (max-width: 760px) {
    .section-head,
    .contact {
        grid-template-columns: 1fr;
    }
}

/* Lenis owns wheel easing while active; anchor navigation uses the same clock. */
html.lenis {
    scroll-behavior: auto !important;
}

@media (prefers-reduced-motion: no-preference) {
    .motion-ready .contact[data-scene].enter::after {
        animation: contact-open 1.35s cubic-bezier(.4, 0, .2, 1) both;
    }

    .motion-ready .contact.enter .title-line > * {
        animation-duration: 1s;
        animation-delay: .6s;
    }

    .motion-ready .contact.enter .title-line + .title-line > * {
        animation-delay: .72s;
    }

    .motion-ready .contact .enter > p {
        animation-duration: .8s;
        animation-delay: .75s;
    }

    .motion-ready .contact-info.enter {
        animation-duration: .85s;
        animation-delay: .8s;
    }
}
