@font-face{font-family:Outfit;src:url('./assets/outfit.woff2') format('woff2');font-display:swap;font-weight:100 900}
@font-face{font-family:Bree;src:url('./assets/bree-serif.woff2') format('woff2');font-display:swap;font-weight:400}
@font-face{font-family:PlexMono;src:url('./assets/plex-mono.woff2') format('woff2');font-display:swap;font-weight:400}
:root{--ink:#10191b;--cream:#f0ead8;--muted:#b0b9b3;--teal:#8bbeb1;--line:rgba(218,228,218,.18);--gutter:clamp(24px,5vw,96px)}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:92px}body{margin:0;color:var(--cream);background:var(--ink);font-family:Outfit,Arial,sans-serif;-webkit-font-smoothing:antialiased}a{color:inherit;text-decoration:none}button,a{-webkit-tap-highlight-color:transparent}a:focus-visible{outline:2px solid var(--cream);outline-offset:7px}img{display:block;max-width:100%}h1,h2,h3,h4,p{margin:0}::selection{color:var(--ink);background:#d5ba85}.skip-link{position:fixed;top:12px;left:20px;z-index:100;padding:12px 18px;background:var(--cream);color:var(--ink);transform:translateY(-180%)}.skip-link:focus{transform:none}
.site-header{position:absolute;inset:0 0 auto;z-index:20;display:flex;align-items:center;justify-content:space-between;padding:clamp(22px,2.7vw,48px) var(--gutter);pointer-events:none;background:linear-gradient(180deg,rgba(8,15,16,.65),transparent)}.site-header a{pointer-events:auto}.brand img{width:clamp(110px,9vw,150px);height:auto}.scroll-cue{position:absolute;top:calc(100svh - 128px);right:var(--gutter);display:grid;place-items:center;width:52px;height:64px;color:var(--cream)}.scroll-cue svg{width:24px;height:40px;stroke:currentColor;stroke-width:1.35;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 1px 8px #07151b);transition:transform .25s ease,color .25s ease}.scroll-cue:hover svg{transform:translateY(4px);color:#d7ba88}.has-scene-stage .scroll-cue{position:fixed;top:auto;bottom:clamp(38px,6svh,72px)}
.visual-sequence{position:relative;isolation:isolate;background:#081416}.scene{position:relative;display:grid;min-height:100svh}.scene-visual,.scene-content{grid-area:1/1}.scene-visual{position:relative;width:100%;height:100svh;overflow:hidden}.scene-visual img{width:100%;height:100%;object-fit:cover;object-position:center}.scene-visual::after,.stage-image::after{content:"";position:absolute;inset:0;pointer-events:none}.scene-arrival .scene-visual::after,.stage-image.arrival::after{background:linear-gradient(90deg,rgba(7,11,10,.55),transparent 48%),linear-gradient(0deg,rgba(6,10,9,.38),transparent 37%)}.scene-instinct .scene-visual::after,.stage-image.instinct::after{background:linear-gradient(90deg,rgba(3,12,16,.88),rgba(3,12,16,.28) 43%,transparent 75%)}.scene-learning .scene-visual::after,.stage-image.learning::after{background:linear-gradient(90deg,rgba(3,12,16,.87),rgba(3,12,16,.45) 40%,transparent 75%)}.scene-content{position:relative;z-index:2;display:flex;align-items:center;min-height:100svh;padding:120px var(--gutter) 80px;pointer-events:none}.scene-arrival .scene-content{align-items:flex-end;padding-bottom:clamp(50px,7vh,110px)}h1{font-weight:450;font-size:clamp(45px,4.6vw,88px);line-height:1.03;letter-spacing:-.045em;max-width:35%;text-shadow:0 2px 30px rgba(0,0,0,.2)}h1 span{display:block;white-space:nowrap}.copy-block{max-width:clamp(410px,39vw,660px)}.copy-block h2{font-size:clamp(35px,3.2vw,60px);line-height:1.13;font-weight:400;letter-spacing:-.035em;text-wrap:pretty}.copy-block>p{font-size:clamp(18px,1.35vw,24px);line-height:1.55;max-width:26ch;color:#c7d5cf;margin-top:35px}.scene-learning h2{max-width:21ch}.scene-learning .searching-line{max-width:32ch}.scene-instinct .copy-block>p{max-width:34ch}
.visual-stage{position:sticky;top:0;height:100dvh;margin-bottom:-100dvh;overflow:hidden;z-index:1;pointer-events:none}.stage-image{position:absolute;inset:0;opacity:0;overflow:hidden}.stage-image:first-child{opacity:1}.stage-image img{position:relative;z-index:0;width:100%;height:100%;object-fit:cover;object-position:center}.stage-image::after{z-index:2}.stage-image.instinct img,.stage-image.learning img{transform:translate3d(var(--image-x,0px),var(--image-y,0px),0) scale(var(--image-scale,1.025));will-change:transform}.stage-image.instinct img{transform-origin:60% 50%}.stage-image.learning img{transform-origin:70% 50%}.stage-image.instinct::before,.stage-image.learning::before{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;mix-blend-mode:screen;opacity:var(--light-alpha,.4)}.stage-image.instinct::before{background:radial-gradient(ellipse at 65% 65%,rgba(82,240,232,.14),transparent 37%)}.stage-image.learning::before{background:radial-gradient(ellipse at 71% 48%,rgba(247,183,94,.13),transparent 31%)}.stage-copy{position:absolute;inset:0;z-index:3;opacity:0;pointer-events:none}.visual-sequence.enhanced .scene{min-height:135svh;display:block;pointer-events:none}.visual-sequence.enhanced .scene-visual{display:none}.visual-sequence.enhanced .stage-copy .scene-content{position:absolute;inset:0;min-height:0;height:100%;width:100%}.visual-sequence.enhanced .stage-copy.scene-instinct .scene-content{align-items:flex-start;padding-top:clamp(80px,10vh,140px)}.visual-sequence.enhanced .stage-copy.scene-learning .scene-content{align-items:flex-end;padding-bottom:clamp(50px,7vh,110px)}.visual-sequence.enhanced .scene.scene-instinct{min-height:315svh}.visual-sequence.enhanced .scene:last-child{min-height:380svh}.has-scene-stage .site-header{position:fixed}.has-scene-stage .site-header[aria-hidden="true"] a{pointer-events:none}
.brand,.footer-brand{display:inline-flex;align-items:flex-end;gap:10px;width:max-content}.brand-lab{font-size:clamp(15px,1.25vw,20px);font-weight:400;line-height:1;letter-spacing:.015em;margin-bottom:4px;color:var(--cream)}.footer-brand{gap:9px}.footer-brand .brand-lab{font-size:15px}
/* Normal-scroll editorial content. Intro opacity is controlled by the scene handoff. */
.research-shell{position:relative;z-index:2;max-width:1440px;margin:auto;padding:0 var(--gutter);background:var(--ink)}
.section-label{font-family:PlexMono,monospace;font-size:11px;line-height:1.65;letter-spacing:.13em;text-transform:uppercase;color:var(--teal)}
.environment-intro{padding:clamp(86px,8vw,138px) 0 62px;max-width:1080px}
.environment-intro h2{max-width:19ch;font-size:clamp(49px,5.7vw,88px);font-weight:350;line-height:1.06;letter-spacing:-.045em;margin-top:26px;text-wrap:balance}
.environment-intro h2 strong{font-family:Bree,Georgia,serif;font-weight:400;color:#d7ba88;letter-spacing:-.045em}
.environment-lead{max-width:61ch;margin-top:35px;font-size:clamp(19px,1.65vw,25px);line-height:1.58;color:#c7d2ca;font-weight:350}
/* David's original three-card composition, copy, crops and brand accents. */
.thesis-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.thesis-card{position:relative;height:313px;overflow:hidden;border-radius:8px;border:1px solid rgba(255,255,255,.09)}
.thesis-card.card-wide{grid-column:1/-1}
.thesis-card img{width:100%;height:100%;object-fit:cover;filter:brightness(.67)}
.thesis-card::after{content:"";position:absolute;inset:0;background:linear-gradient(transparent 35%,rgba(0,0,0,.72));pointer-events:none}
.thesis-card p{position:absolute;z-index:2;left:24px;right:24px;bottom:22px;margin:0;max-width:310px;font-size:1.15rem;line-height:1.28;color:#fff}
.thesis-card.card-wide p{left:auto;right:26px;max-width:360px;font-size:1.3rem}
.thesis-card:nth-child(1){border-bottom:3px solid #2f9e98}.thesis-card:nth-child(2){border-bottom:3px solid #edb02d}.thesis-card:nth-child(3){border-bottom:3px solid #e0562b}
.architecture{margin-top:clamp(86px,9vw,150px);padding:clamp(66px,7vw,120px) 0 clamp(70px,8vw,130px);border-top:1px solid var(--line)}
.architecture-opening{max-width:1030px}
.architecture-opening h2{font-size:clamp(43px,5vw,76px);line-height:1.07;font-weight:350;letter-spacing:-.04em;margin-top:26px;text-wrap:balance}
.architecture-lead{font-size:clamp(23px,2.3vw,35px);line-height:1.42;max-width:38ch;margin-top:32px;color:#dce1d8;font-weight:350;letter-spacing:-.018em}




.principles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(22px,3vw,48px);margin-top:54px}
.principles section{border-top:1px solid var(--line);padding-top:23px}
.principles h3{font-size:21px;font-weight:450;line-height:1.3;letter-spacing:-.015em}
.principles p{font-size:16px;line-height:1.65;color:var(--muted);margin-top:13px;max-width:32ch}
.research-note{font-family:PlexMono,monospace;font-size:11px;line-height:1.8;color:#7e9790;margin-top:38px}


.site-footer{display:grid;grid-template-columns:auto 1fr auto;gap:38px;align-items:center;padding:55px var(--gutter) 28px;background:#142022;border-top:1px solid var(--line)}.footer-brand img{width:110px;height:auto}.motto{font-size:16px;color:#d7dcd4;padding-left:20px}.back-top{display:inline-flex;gap:25px;align-items:center;min-height:44px;font-size:13px}.back-top span{font-size:22px}.footer-fine{grid-column:1/-1;display:flex;justify-content:space-between;gap:40px;padding-top:38px;font-size:11px;line-height:1.6;color:#839890}.footer-fine p:last-child{max-width:62ch;text-align:right}
@media(min-width:1800px){.copy-block{max-width:680px}.scene-arrival .scene-content{padding-bottom:8vh}}
@media(min-width:761px){.scene-instinct .scene-content{align-items:flex-start;padding-top:clamp(80px,10vh,140px)}.scene-instinct .copy-block>p{margin-top:24px}}
@media(max-width:1000px) and (min-width:761px){h1{font-size:48px;max-width:42%}.copy-block{max-width:49%}.copy-block h2{font-size:35px}.scene-content{padding-bottom:60px}.principles{gap:18px}.principles h3{font-size:18px}}
@media(max-width:760px){
 html{scroll-padding-top:25px}.site-header{padding:19px 22px;background:linear-gradient(180deg,rgba(8,15,16,.64),transparent)}.brand img{width:107px}.scroll-cue{right:17px;top:calc(100svh - 100px)}.has-scene-stage .scroll-cue{bottom:max(28px,env(safe-area-inset-bottom))}.scene{display:block;min-height:auto}.scene-visual{height:auto;aspect-ratio:4/3}.scene-visual img{object-position:52% center}.scene-visual::after{background:linear-gradient(0deg,var(--ink),transparent 28%)!important}.scene-arrival .scene-visual{aspect-ratio:1/1}.scene-arrival .scene-visual img{object-position:53% center}.scene-content{min-height:0;padding:27px 25px 65px;background:var(--ink);display:block}.scene-arrival .scene-content{padding:18px 25px 65px}h1{max-width:none;font-size:clamp(43px,10.8vw,70px);line-height:1.06;letter-spacing:-.045em;text-shadow:none}h1 span{white-space:normal;display:inline}h1 span+span::before{content:' '}.copy-block{max-width:none}.copy-block h2{font-size:clamp(30px,7.7vw,48px);line-height:1.16;max-width:19ch}.copy-block>p{font-size:17px;line-height:1.55;margin-top:24px;max-width:32ch}.scene-learning h2{max-width:20ch}.scene-instinct,.scene-learning{border-top:1px solid var(--line)}.research-shell{padding:0 25px}.environment-intro{padding:62px 0 36px}.environment-intro h2{font-size:clamp(41px,10.6vw,62px);line-height:1.08;max-width:19ch;margin-top:21px;text-wrap:pretty}.environment-lead{font-size:18px;line-height:1.6;margin-top:25px;max-width:37ch}.thesis-grid{grid-template-columns:1fr}.thesis-card.card-wide{grid-column:auto}.thesis-card{height:313px}.thesis-card.card-wide p{left:24px;right:24px;font-size:1.15rem}.architecture{margin-top:60px;padding:44px 0 60px}.architecture-opening h2{font-size:clamp(36px,9.4vw,54px);line-height:1.08;margin-top:22px}.architecture-lead{font-size:23px;line-height:1.45;margin-top:27px}.principles{display:block;margin-top:32px}.principles section{display:grid;grid-template-columns:1fr 1.45fr;gap:22px;padding:23px 0}.principles h3{font-size:18px}.principles p{font-size:14px;line-height:1.6;margin-top:0}.research-note{font-size:10px;margin-top:17px}.site-footer{padding:34px 25px 24px;grid-template-columns:1fr auto;gap:20px}.footer-brand img{width:98px}.motto{grid-column:1/-1;grid-row:2;padding:0;font-size:15px}.back-top{font-size:12px;gap:18px}.footer-fine{padding-top:17px;display:block;font-size:10px}.footer-fine p:last-child{margin-top:15px;text-align:left;max-width:48ch}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.scroll-cue svg{transition:none}.scroll-cue:hover svg{transform:none}}
/* The last still dissolves into an introduction that then returns to normal flow. */
.has-scene-stage .visual-sequence{background:var(--ink)}
.has-scene-stage .research-shell{margin-top:-100svh;background:transparent}
.has-scene-stage .environment-intro{min-height:0;display:flex;flex-direction:column;justify-content:flex-start;padding-top:clamp(86px,14svh,150px);padding-bottom:38px;opacity:0;visibility:hidden}
.has-scene-stage #research{scroll-margin-top:-92px}

/* Closing still: the same quiet, viewport-pinned treatment as the opening. */
.closing-sequence{position:relative;z-index:3;min-height:100svh;background:var(--ink)}
.closing-stage{position:relative;height:100svh;min-height:650px;overflow:hidden;background:#07151b;isolation:isolate}
.closing-visual{position:absolute;inset:0}
.closing-visual img{width:100%;height:100%;object-fit:cover;object-position:center}
.closing-visual::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(3,12,16,.88),rgba(3,12,16,.45) 38%,transparent 70%),linear-gradient(0deg,rgba(3,12,16,.45),transparent 60%)}
.closing-content{position:absolute;inset:0;z-index:1;display:flex;align-items:flex-end;padding:100px var(--gutter) clamp(60px,9vh,115px)}
.closing-content .copy-block{max-width:43vw}
.closing-content h2{font-size:clamp(40px,4vw,72px);line-height:1.08;letter-spacing:-.04em}
.closing-content h2 em{font-family:Bree,Georgia,serif;font-weight:400;font-style:normal;color:#d7ba88}
.closing-content .copy-block>p{max-width:40ch;font-size:clamp(17px,1.4vw,22px);line-height:1.6;margin-top:30px}
.closing-sequence.enhanced{min-height:320svh}
.closing-sequence.enhanced .closing-stage{position:sticky;top:0;min-height:0;opacity:0}
@media(max-width:1000px) and (min-width:761px){.closing-content .copy-block{max-width:49vw}.closing-content h2{font-size:40px}.closing-content .copy-block>p{font-size:17px}}
@media(max-width:760px){
 .closing-stage{height:100svh;min-height:740px}
 .closing-visual img{object-position:63% center}
 .closing-visual::after{background:linear-gradient(0deg,rgba(3,12,16,.98),rgba(3,12,16,.78) 32%,rgba(3,12,16,.15) 68%,transparent)}
 .closing-content{padding:45px 25px}
 .closing-content .copy-block{max-width:100%}
 .closing-content h2{font-size:clamp(36px,9.6vw,56px);max-width:none}
 .closing-content .copy-block>p{font-size:17px;line-height:1.6;max-width:37ch;margin-top:24px}
}

/* Persistent courtyard. Original stills remain opaque during reading holds. */
.world-layer-enabled{isolation:isolate}
.world-layer-enabled main{position:relative;z-index:1}
.world-backdrop{position:fixed;inset:0;z-index:0;pointer-events:none;overflow:hidden;background:#10191b}
.world-backdrop>img,.world-backdrop>canvas{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.55}
.world-backdrop>canvas{opacity:0}
.world-backdrop.is-three>canvas{opacity:.55}
.world-backdrop.is-three>img{opacity:0}
.world-backdrop::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(16,25,27,.82),rgba(16,25,27,.5) 42%,rgba(16,25,27,.12) 80%),linear-gradient(0deg,rgba(16,25,27,.28),transparent 45%,rgba(16,25,27,.24));pointer-events:none}
.world-layer-enabled .visual-sequence,.world-layer-enabled .research-shell,.world-layer-enabled .closing-sequence{background:transparent}
.world-layer-enabled .site-footer{position:relative;z-index:1;background:rgba(20,32,34,.86)}
.world-layer-enabled .environment-intro,.world-layer-enabled .architecture{text-shadow:0 1px 15px #10191b}
@media(max-width:760px){.world-backdrop>img{opacity:.35;object-position:65% center}.world-backdrop::after{background:linear-gradient(90deg,rgba(16,25,27,.72),rgba(16,25,27,.32))}.world-layer-enabled .scene-content{background:rgba(16,25,27,.88)}}

/* One reading stage on every screen. Only opacity changes between passages. */
.scene-visual picture,.stage-image picture{display:block;width:100%;height:100%}
.visual-sequence.enhanced .stage-copy .copy-block>h2,
.visual-sequence.enhanced .stage-copy .copy-block>p{will-change:opacity}
.visual-stage{will-change:opacity}
/* A fixed compositor surface replaces the old inverse-scroll translation. */
.closing-sequence.enhanced .closing-stage{position:fixed;inset:0;width:100%;height:100dvh;min-height:0;visibility:hidden;will-change:opacity;pointer-events:none;contain:paint}
.closing-sequence.enhanced.is-leaving .closing-stage{position:absolute;top:auto;bottom:0}
.closing-content{will-change:opacity}
@media(max-width:760px){
 .scene{display:grid;min-height:100svh;border:0}
 .scene-visual{height:100svh;aspect-ratio:auto}
 .scene-visual img{height:100%;object-fit:cover}
 .scene-content{display:flex;align-items:flex-start;min-height:100svh;padding:clamp(84px,12svh,125px) 25px 50px;background:transparent!important}
 .scene-arrival .scene-content{align-items:flex-end;padding:90px 25px max(42px,env(safe-area-inset-bottom))}
 .scene-arrival .scene-visual img,.stage-image.arrival img{object-position:57% center}
 .scene-instinct .scene-visual img,.stage-image.instinct img,
 .scene-learning .scene-visual img,.stage-image.learning img{object-position:center}
 .scene-instinct .scene-visual::after,.stage-image.instinct::after,
 .scene-learning .scene-visual::after,.stage-image.learning::after{background:linear-gradient(180deg,rgba(3,12,16,.58),rgba(3,12,16,.18) 39%,transparent 65%),linear-gradient(0deg,rgba(3,12,16,.78),transparent 42%)!important}
 .scene-arrival .scene-visual::after,.stage-image.arrival::after{background:linear-gradient(0deg,rgba(3,12,16,.82),transparent 44%),linear-gradient(180deg,rgba(3,12,16,.3),transparent 25%)!important}
 .visual-sequence.enhanced .stage-copy .scene-content{display:flex;background:transparent!important}
 .visual-sequence.enhanced .stage-copy.scene-instinct .scene-content,
 .visual-sequence.enhanced .stage-copy.scene-learning .scene-content{align-items:flex-start;padding:clamp(84px,12svh,125px) 25px 50px}
 .visual-sequence.enhanced .stage-copy .copy-block{display:contents}
 .visual-sequence.enhanced .stage-copy .copy-block>h2{position:absolute;top:clamp(84px,12svh,125px);left:25px;right:25px;max-width:calc(100% - 50px)}
 .visual-sequence.enhanced .stage-copy .copy-block>p{position:absolute;bottom:max(54px,8svh);left:25px;right:25px;max-width:calc(100% - 50px);margin:0;text-shadow:0 2px 18px rgba(0,0,0,.5)}
 .copy-block{max-width:100%}
 .copy-block h2{font-size:clamp(29px,7.65vw,41px);line-height:1.15;max-width:22ch;text-shadow:0 2px 18px rgba(0,0,0,.3)}
 .copy-block>p{font-size:clamp(20px,5.4vw,26px);line-height:1.5;max-width:29ch}
 .scene-learning h2{max-width:22ch}
 h1{font-size:clamp(43px,11vw,64px);max-width:8.5ch;line-height:1.03;text-shadow:0 2px 25px rgba(0,0,0,.3)}
 h1 span{display:block;white-space:nowrap}h1 span+span::before{content:none}
 .closing-stage{height:100svh;min-height:0}
 .closing-visual img{object-position:63% center}
 .closing-content{padding:45px 25px max(38px,env(safe-area-inset-bottom))}
 .closing-content h2{font-size:clamp(32px,8.5vw,45px);line-height:1.1}
 .closing-content .copy-block>p{font-size:16px;line-height:1.55;margin-top:22px}
 .has-scene-stage #research{scroll-margin-top:-25px}
 .has-scene-stage .environment-intro{min-height:0;padding-top:clamp(84px,14svh,118px);padding-bottom:28px}
}
@media(prefers-reduced-motion:reduce){
 .visual-stage,.closing-content{will-change:auto}
}

/* Registered two-state artwork: one camera and one shared environment. */
.scene-pair{position:absolute;inset:0;overflow:hidden;isolation:isolate;pointer-events:none}
.art-plane{position:absolute;left:50%;top:50%;width:max(100%,177.6833156dvh);aspect-ratio:1672/941;transform:translate(-50%,-50%)}
.pair-background,.neuron-layer,.firing-layer{position:absolute;inset:0;width:100%;height:100%}
.stage-image.paired .scene-pair img{transform:none;will-change:auto}
.stage-image.paired .pair-background img,.stage-image.paired .neuron-layer img,.stage-image.paired .firing-layer img{width:100%;height:100%;object-fit:fill}
.stage-image.paired::before{display:none}
.stage-image.paired .cat-sprite{position:absolute;display:block;max-width:none;height:auto;object-fit:contain;pointer-events:none;will-change:opacity}
.cat-sprite.sitting{opacity:var(--sitting-alpha,1)}
.cat-sprite.leaping{opacity:var(--leaping-alpha,0)}
.neuron-layer{opacity:var(--neuron-alpha,0);will-change:opacity}
.cat-contact-shadow{position:absolute;left:27%;top:69%;width:12%;height:1.8%;border-radius:50%;background:rgba(0,0,0,.6);filter:blur(6px);opacity:var(--sitting-alpha,1)}
.firing-layer{opacity:var(--firing-alpha,0);mix-blend-mode:lighten;will-change:opacity;mask-image:radial-gradient(ellipse 9% 10% at 48% 61%,#000 20%,transparent 90%),radial-gradient(ellipse 8% 12% at 58% 20%,#000 20%,transparent 90%),radial-gradient(ellipse 9% 11% at 86% 37%,#000 20%,transparent 90%),radial-gradient(ellipse 8% 10% at 82% 77%,#000 20%,transparent 90%)}
.art-unavailable .art-plane{display:none}
.stage-image.paired .pair-fallback,.stage-image.paired .pair-fallback img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
@media(max-width:760px) and (orientation:portrait){
 .cat-pair .art-plane{width:max(100%,47.3395502dvh);aspect-ratio:863/1823}
 .neural-pair .art-plane{width:max(100%,47.2328767dvh);aspect-ratio:862/1825}
 .cat-contact-shadow{left:14%;top:62.6%;width:22%;height:.8%;filter:blur(4px)}
 .firing-layer{mask-image:radial-gradient(ellipse 14% 7% at 54% 52%,#000 20%,transparent 90%),radial-gradient(ellipse 13% 7% at 91% 40%,#000 20%,transparent 90%),radial-gradient(ellipse 13% 7% at 37% 70%,#000 20%,transparent 90%),radial-gradient(ellipse 12% 7% at 75% 80%,#000 20%,transparent 90%)}
}
@media(max-width:760px) and (prefers-reduced-motion:no-preference){
 .cat-sprite.sitting{transition:opacity .45s ease-in-out}
 .cat-sprite.leaping{transition:opacity .85s ease-in-out}
}

/* Reserved title, paragraph and invitation slots reveal in sequence. */
.closing-followup{margin-top:30px;max-width:40ch}
.closing-detail{font-size:clamp(17px,1.4vw,22px);line-height:1.6;color:#c7d5cf;will-change:opacity}
.closing-invite{margin-top:28px;pointer-events:auto}
.closing-invite>p{font-family:PlexMono,monospace;font-size:10px;letter-spacing:.025em;line-height:1.7;color:#9eaea6;margin-top:17px;max-width:43ch}
.has-scene-stage .closing-invite{opacity:0;visibility:hidden;will-change:opacity}
.interest-trigger{position:relative;display:inline-flex;align-items:center;gap:15px;max-width:100%;padding:19px 21px;border:1px solid #bda675;background:linear-gradient(120deg,rgba(215,186,136,.12),rgba(23,45,46,.55));border-radius:3px;color:var(--cream);font:400 17px Outfit,Arial,sans-serif;text-align:left;cursor:pointer;pointer-events:auto;box-shadow:inset 0 0 0 4px rgba(215,186,136,.03);transition:background .2s,color .2s,border-color .2s}
.interest-trigger::before{content:'';position:absolute;left:-5px;top:-5px;width:13px;height:13px;border-left:1px solid #d7ba88;border-top:1px solid #d7ba88;pointer-events:none}
.interest-trigger svg{width:22px;height:22px;flex:none;fill:none;stroke:currentColor;stroke-width:1.3;transition:transform .2s}
.signal-dot{display:block;width:5px;height:5px;flex:none;background:#8bbeb1;box-shadow:0 0 9px #8bbeb160;border-radius:50%}
.interest-trigger:hover{background:#d7ba88;color:#10191b;border-color:#d7ba88}.interest-trigger:hover svg{transform:translateX(3px)}
button:focus-visible,input:focus-visible,textarea:focus-visible{outline:2px solid #8bbeb1;outline-offset:4px}
html:has(.interest-dialog[open]){overflow:hidden}
.interest-dialog{width:min(570px,calc(100vw - 32px));max-height:calc(100dvh - 40px);margin:auto;border:1px solid #556c62;padding:38px;color:var(--cream);background:#142022;box-shadow:0 28px 100px #0009;border-radius:4px;overscroll-behavior:contain;font-family:Outfit,Arial,sans-serif}
.interest-dialog::backdrop{background:rgba(4,12,15,.72);backdrop-filter:blur(7px)}
.interest-dialog [hidden]{display:none!important}
.dialog-close{position:absolute;top:11px;right:15px;min-width:36px;min-height:36px;background:transparent;border:0;color:#b8c5bc;font:30px/1 Outfit,Arial,sans-serif;cursor:pointer}
.dialog-intro h2{font-size:36px;font-weight:400;line-height:1.08;letter-spacing:-.03em;margin-top:19px}
.dialog-intro>p:last-child{font-size:16px;line-height:1.5;color:#adbeb3;margin-top:15px;max-width:41ch}
.interest-choices{border:0;padding:0;margin:28px 0 24px;display:grid;grid-template-columns:1fr 1fr;gap:10px}
.interest-choices legend{padding:0;margin-bottom:10px;font-size:13px;color:#c1cec3}
.interest-choices label{display:flex;align-items:center;gap:9px;min-height:59px;padding:11px 12px;border:1px solid #42574c;border-radius:3px;cursor:pointer;font-size:14px;line-height:1.35}
.interest-choices label:has(input:checked){border-color:#c9b17e;background:#d7ba8810}
.interest-choices input,.contact-consent input{accent-color:#d7ba88;flex:none;width:15px;height:15px;margin:0}
.form-field{display:grid;gap:8px;color:#c9d4c8;font-size:13px;margin-top:18px}
.form-field small{font-size:10px;color:#81988a;margin-left:5px}
.form-field input,.form-field textarea{width:100%;min-width:0;padding:12px 11px;background:#0e1a1d;color:#f0ead8;border:1px solid #3d5147;border-radius:2px;font:16px/1.4 Outfit,Arial,sans-serif;resize:vertical}
.form-field input::placeholder,.form-field textarea::placeholder{color:#70877a}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.contact-consent{display:flex;align-items:flex-start;gap:10px;margin-top:22px;font-size:12px;line-height:1.5;color:#c0cec1}
.contact-consent input{margin-top:2px}
.form-purpose{font-size:11px;line-height:1.5;color:#80998a;margin-top:10px}
.form-submit,.success-close{display:flex;justify-content:space-between;align-items:center;gap:25px;width:100%;margin-top:23px;padding:14px 16px;border:1px solid #d7ba88;background:#d7ba88;color:#10191b;font:450 16px Outfit,Arial,sans-serif;border-radius:2px;cursor:pointer}
.form-submit:disabled{opacity:.55;cursor:wait}.form-submit span,.success-close span{font-size:20px}
.form-status{font-size:13px;line-height:1.5;color:#e6bf9c;margin-top:12px}
.form-status:empty{display:none}
.form-honeypot{position:absolute;left:-10000px;top:0;width:1px;height:1px;overflow:hidden}
.interest-success{padding:25px 0 10px}.interest-success h3{font-size:34px;line-height:1.1;font-weight:400;margin-top:20px;letter-spacing:-.025em}.interest-success>p:not(.section-label){font-size:17px;line-height:1.5;color:#b3c1b7;margin-top:20px}
.nojs-contact{padding:20px var(--gutter);font-size:14px;color:#b0b9b3}
@media(max-width:760px){
 .closing-followup{margin-top:22px;max-width:37ch}
 .closing-detail{font-size:16px;line-height:1.55}
 .interest-trigger{font-size:16px;gap:11px;padding:18px 15px}
 .closing-invite{margin-top:20px}.closing-invite>p{font-size:9px;max-width:38ch}
 .interest-dialog{padding:30px 23px;max-height:calc(100dvh - 24px)}
 .dialog-intro h2{font-size:31px}.interest-choices label{font-size:13px;padding:10px 9px;gap:7px}
 .form-row{gap:10px}.interest-choices{gap:8px}
 .closing-sequence:not(.enhanced) .closing-stage{min-height:880px}
}

@media(min-width:761px) and (max-height:600px){
 .closing-content{padding:25px var(--gutter)}
 .closing-content .copy-block{max-width:min(70vw,660px)}
 .closing-content h2{font-size:30px}
 .closing-followup{margin-top:16px;max-width:55ch}
 .closing-detail{font-size:15px;line-height:1.4}
 .closing-invite{margin-top:16px}
 .interest-trigger{font-size:15px;padding:13px 17px}
 .closing-invite>p{margin-top:10px;max-width:none}
}

/* Reversible closing portrait experiment. The original stays untouched below;
   only the edited head/arm region is composited, keeping the courtyard fixed. */
.closing-visual{isolation:isolate}
.closing-visual>img:first-child{position:absolute;inset:0;z-index:0}
.closing-visual::after{z-index:2;pointer-events:none}
.closing-visual .closing-pose-state{position:absolute;inset:0;z-index:1;opacity:0;pointer-events:none;mask-image:url('./assets/closing-pose-region.svg');mask-size:cover;mask-position:center;mask-repeat:no-repeat;mask-mode:alpha;transition:opacity .95s cubic-bezier(.4,0,.2,1)}
.closing-visual.is-pose-ready .closing-pose-state{opacity:var(--closing-pose,0)}
.closing-visual.pose-reset .closing-pose-state{transition:none}
@media(max-width:760px){.closing-visual .closing-pose-state{mask-position:63% center}}
@media(prefers-reduced-motion:reduce){.closing-visual .closing-pose-state{display:none;transition:none}}
