/* Hero test v3 only (never deployed). Michroma display + Space Grotesk text. */
@font-face{font-family:"Michroma";src:url("fonts/Michroma-Regular.ttf") format("truetype");font-weight:400;font-display:block}
@font-face{font-family:"Krona One";src:url("fonts/KronaOne-Regular.ttf") format("truetype");font-display:block}
@font-face{font-family:"Unbounded";src:url("fonts/Unbounded-Variable.ttf") format("truetype");font-weight:200 900;font-display:block}
@font-face{font-family:"Archivo";src:url("fonts/Archivo-Variable.ttf") format("truetype");font-weight:100 900;font-stretch:62% 125%;font-display:swap}
@font-face{font-family:"Space Grotesk";src:url("fonts/SpaceGrotesk-Variable.ttf") format("truetype");font-weight:300 700;font-display:swap}
:root{--text-x:clamp(28px,6vw,120px);--text-bottom:clamp(48px,11vh,130px);--bg:#000;--fg:#f2f2f2;--muted:#8a8a8a;--line:#1c1c1c;--display:"Michroma",system-ui,sans-serif;--ui:"Space Grotesk",system-ui,sans-serif;--edge:clamp(20px,3vw,44px);--ease:cubic-bezier(.77,0,.18,1)}
*{box-sizing:border-box;margin:0;padding:0}
html,body{background:var(--bg);color:var(--fg);overflow-anchor:none}
body{font-family:var(--ui);-webkit-font-smoothing:antialiased;overflow-x:hidden}
button{font:inherit}
button:focus-visible,a:focus-visible,[role=button]:focus-visible{outline:2px solid #f2f2f2;outline-offset:3px}
html.intro-on,html.intro-on body,html.viewer-open,html.viewer-open body{overflow:hidden}

/* Intro card */
/* ---- Intro: a slit that opens vertically onto the cover reel as it loads, framed by small editorial text
   in the corners, a tall count bottom-left and a short loading line bottom-centre. At 100% the bars slide
   away. Everything starts blurred and faint and comes into focus. ---- */
.intro{position:fixed;inset:0;z-index:200;pointer-events:none;--open:0}
html.intro-on .intro{pointer-events:auto}
.lb{position:absolute;left:0;right:0;height:50%;background:#000;will-change:transform}
.lb-top{top:0;transform:translateY(calc(var(--open) * -50%))}
.lb-bot{bottom:0;transform:translateY(calc(var(--open) * 50%))}
.pl-tl,.pl-tr,.pl-bl,.pl-bc{position:absolute;z-index:2;opacity:0;filter:blur(8px);transition:opacity 1.4s ease .2s,filter 1.6s ease .2s}
.intro.play .pl-tl,.intro.play .pl-tr,.intro.play .pl-bl,.intro.play .pl-bc{opacity:1;filter:none}
.pl-tl,.pl-tr{top:clamp(28px,4.5vh,48px);display:flex;gap:2rem;font-family:"Archivo",var(--ui);font-stretch:100%;font-weight:500;font-size:12px;line-height:1.35;color:#a9a9a9}
.pl-tl{left:var(--text-x)}
.pl-tr{right:var(--text-x);flex-direction:column;gap:0;text-transform:uppercase;letter-spacing:.06em}
.pl-col p{white-space:nowrap}
.pl-dim{color:#6f6f6f;font-weight:300}
.pl-in1{margin-left:12px}.pl-in3{margin-left:36px}
.pl-bl{left:var(--text-x);right:var(--text-x);bottom:clamp(28px,4.5vh,48px);display:flex;justify-content:space-between;align-items:flex-end;color:#e9e9e9}
.pl-name p{font-family:"Archivo",var(--ui);font-stretch:125%;font-weight:600;font-size:12px;line-height:1.5;letter-spacing:.2em;text-transform:uppercase;color:#9a9a9a;white-space:nowrap}
.pl-load{display:flex;align-items:baseline;gap:.5rem}
.pl-word{font-family:"Archivo",var(--ui);font-stretch:125%;font-weight:500;font-size:clamp(16px,1.6vw,28px);text-transform:uppercase;letter-spacing:.02em}
.pl-num{text-align:right;min-width:3.3ch}
.pl-num{font-family:"Archivo",var(--ui);font-stretch:125%;font-weight:800;font-size:clamp(30px,3.2vw,58px);line-height:.8;font-variant-numeric:tabular-nums;letter-spacing:-.01em}
.pl-pct{font-family:"Archivo",var(--ui);font-stretch:125%;font-weight:500;font-size:clamp(16px,1.6vw,28px);line-height:.8;text-transform:uppercase}
.pl-bc{left:0;right:0;bottom:clamp(28px,4.5vh,48px);display:flex;justify-content:center}
.pl-line{width:20%;height:1px;background:#2e2e2e}
.pl-line i{display:block;height:100%;width:100%;background:#cfcfcf;transform:scaleX(0);transform-origin:left}
/* The reel behind the slit starts blurred and dim and comes into focus with loading. */
/* (Removed: an old intro blur/brightness filter on the cover. It sat at no-op values but its removal at the end of the intro made Chrome re-layer the video and the blur band, which flashed.) */
.cover-slide{transition:filter .6s ease}
/* The finish: text fades, the bars slide fully off screen. */
.intro.leave .pl-tl,.intro.leave .pl-tr,.intro.leave .pl-bl,.intro.leave .pl-bc{opacity:0;transition:opacity .35s ease}

/* Top bar: gradual blur behind the name and contact */
.topbar{position:fixed;top:0;left:0;right:0;z-index:50;height:clamp(96px,11vh,130px);pointer-events:none}
.gblur{position:absolute;inset:0;pointer-events:none}
.topbar-inner{position:relative;display:flex;justify-content:space-between;align-items:center;padding:var(--edge) var(--edge) 0;pointer-events:auto}
.brand{font-family:var(--display);font-size:clamp(12px,1vw,15px);letter-spacing:.14em;text-transform:uppercase;color:var(--fg);text-decoration:none}
.nav-contact{font:500 12px/1 var(--ui);letter-spacing:.18em;text-transform:uppercase;color:var(--fg);background:none;border:0;padding:6px 0;cursor:pointer}
.copy-wrap{position:relative;display:inline-block}
.copied-pop{position:absolute;top:calc(100% + 10px);right:0;padding:6px 12px;border-radius:6px;background:#1c1c1c;border:1px solid #2a2a2a;color:#f2f2f2;font-size:13px;white-space:nowrap;pointer-events:none;opacity:0;transform:translateY(-4px);transition:opacity .2s ease,transform .2s ease}
.copied-pop.show{opacity:1;transform:none}
.topbar,.project-text{opacity:0;transition:opacity 1s ease .4s}
html.intro-done .topbar,html.intro-done .project-text{opacity:1}

/* Each project: a full-screen header */
.project-hero{position:relative;height:100vh;height:100svh;overflow:hidden;background:#000}
.hero-media,.deck-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.deck-bg{filter:blur(40px) brightness(.4) saturate(1.2);transform:scale(1.2)}
.deck-cover{position:absolute;top:50%;right:9vw;height:78%;width:auto;transform:translateY(-50%);box-shadow:0 30px 80px rgba(0,0,0,.6)}
.project-hero .gblur{top:auto;height:42%}
.project-text{position:absolute;left:var(--text-x);right:var(--text-x);bottom:var(--text-bottom);z-index:2;pointer-events:none}
/* Big letters carry built-in side space; the negative margins line their ink up with the index. */
.project-index{font:500 12px/1 var(--ui);letter-spacing:.2em;color:#cfcfcf;margin-bottom:18px}
.project-title{font-family:var(--display);font-weight:400;-webkit-text-stroke:.065em currentColor;paint-order:stroke fill;font-size:clamp(40px,8vw,150px);line-height:1;letter-spacing:.01em;text-transform:uppercase;max-width:min(92vw,1500px);margin-left:-.058em}
.project-blurb{font-size:clamp(15px,1.25vw,19px);line-height:1.5;color:#dcdcdc;margin-top:18px;max-width:56ch;margin-left:-.06em}
.is-deck .project-title{max-width:56vw}

/* The work under each header */
.work{padding:clamp(40px,7vh,90px) var(--edge) clamp(80px,14vh,160px);max-width:1500px;margin:0 auto}
.clips,.pages{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.clip{position:relative;aspect-ratio:16/9;background:#000;overflow:hidden;cursor:pointer}
.clip.wide,.page-thumb.wide{grid-column:1/-1}
.clip video{width:100%;height:100%;object-fit:cover;display:block}
.page-thumb{position:relative;cursor:pointer;background:#000}
.page-thumb img{width:100%;height:auto;display:block}
.still{aspect-ratio:16/9;overflow:hidden}.still img{width:100%;height:100%;object-fit:cover}
.fs{position:absolute;right:10px;bottom:10px;width:36px;height:36px;padding:0;border:0;background:none;color:#fff;display:grid;place-items:center;cursor:pointer;opacity:.7;filter:drop-shadow(0 1px 4px rgba(0,0,0,.9))}
.fs svg{width:20px;height:20px}
.section-label{font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:var(--muted);margin:56px 0 16px}

/* Cursor: the normal arrow stays; a glass bubble follows it (mouse only) */
*{cursor:default !important}
.glass-defs{position:absolute;width:0;height:0;overflow:hidden}
.cursor{position:fixed;top:0;left:0;z-index:150;pointer-events:none;opacity:0;transition:opacity .3s ease}
.cursor.on{opacity:1}
.cursor-ring{position:absolute;left:0;top:0;width:44px;height:44px;margin:-22px 0 0 -22px;border-radius:50%;display:grid;place-items:center;overflow:hidden;
  transition:width .45s var(--ease),height .45s var(--ease),margin .45s var(--ease),transform .2s ease;
  -webkit-backdrop-filter:blur(10px) saturate(1.5) brightness(1.06);backdrop-filter:blur(10px) saturate(1.5) brightness(1.06);background:hsl(0 0% 100% / .06);
  box-shadow:inset 0 1px 0 0 hsl(0 0% 100% / .35),inset 0 -1px 0 0 hsl(0 0% 100% / .1),0 0 2px 1px color-mix(in oklch,white,transparent 70%) inset,0 0 12px 3px color-mix(in oklch,white,transparent 88%) inset,0 4px 16px rgba(0,0,0,.18),0 12px 40px rgba(0,0,0,.18)}
html.glass-refract .cursor-ring{backdrop-filter:url(#glass-filter) saturate(1.2);background:transparent;
  box-shadow:0 0 2px 1px color-mix(in oklch,white,transparent 65%) inset,0 0 10px 4px color-mix(in oklch,white,transparent 85%) inset,0 4px 16px rgba(0,0,0,.15),0 12px 40px rgba(0,0,0,.15)}
.cursor-ring::after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:linear-gradient(135deg,hsl(0 0% 100% / .22) 0%,transparent 42%,transparent 64%,hsl(0 0% 100% / .08) 100%)}
.cursor-label{position:relative;z-index:1;font:600 11px/1.2 var(--ui);letter-spacing:.14em;text-transform:uppercase;color:#fff;text-shadow:0 1px 8px rgba(0,0,0,.55);text-align:center;opacity:0;transition:opacity .2s ease;padding:0 10px}
.cursor.has-label .cursor-ring{width:104px;height:104px;margin:-52px 0 0 -52px;background:hsl(0 0% 0% / .16)}
.cursor.has-label .cursor-label{opacity:1;transition-delay:.1s}
.cursor.down .cursor-ring{transform:scale(.9)}
html.viewer-open .cursor{opacity:0}

/* Full screen viewer */
.viewer{position:fixed;inset:0;z-index:300;background:#000;display:none;align-items:center;justify-content:center}
.viewer.open{display:flex}
.viewer video,.viewer img{width:100%;height:100%;object-fit:contain;background:#000}
.viewer [hidden]{display:none}
.viewer .close{position:absolute;top:20px;right:24px;z-index:2;width:48px;height:48px;border:0;border-radius:50%;background:rgba(0,0,0,.6);color:#fff;display:grid;place-items:center;cursor:pointer}
.viewer .close svg{width:22px;height:22px}

/* Shown only when the browser refuses autoplay */
.tap-to-play{position:fixed;left:50%;bottom:max(20px,env(safe-area-inset-bottom));transform:translateX(-50%);z-index:60;display:grid;grid-template-columns:auto auto;align-items:center;column-gap:10px;padding:12px 20px;border-radius:999px;border:1px solid #2a2a2a;background:rgba(22,22,22,.94);color:#f2f2f2;cursor:pointer}
.tap-to-play[hidden]{display:none}
.tap-to-play svg{width:18px;height:18px;grid-row:span 2}
.tap-to-play span{font-size:15px;text-align:left}.tap-to-play small{font-size:12px;color:#8a8a8a;text-align:left}

.project-hero,.clip,.page-thumb,.fs,.nav-contact,.brand,.tap-to-play,.viewer{touch-action:manipulation}

/* Touch screens: the browser's own magnet snap, one project per screen */
@media (pointer:coarse){html{scroll-snap-type:y mandatory}.project{scroll-snap-align:start;scroll-snap-stop:always}}

/* Phones */
@media (max-width:760px){
  .brand{font-size:11px;letter-spacing:.1em}.nav-contact{font-size:11px}
  .deck-bg{display:none}
  .deck-cover{inset:0;top:0;right:auto;height:100%;width:100%;object-fit:cover;object-position:center top;transform:none;box-shadow:none}
  .is-deck .project-title{max-width:none}
  .project-title{font-size:clamp(34px,11vw,60px)}
  .project-blurb{font-size:15px}
  .clips,.pages{grid-template-columns:1fr;gap:10px}
  .section-label{margin-top:36px}
  .fs{opacity:.9}
}
@media (prefers-reduced-motion:reduce){.intro,.topbar,.project-text,.cursor-ring{transition:none}}

/* Subtle screen vignette (test) */
body::after{content:"";position:fixed;inset:0;z-index:40;pointer-events:none;background:radial-gradient(ellipse at center,transparent 50%,rgba(0,0,0,.28) 78%,rgba(0,0,0,.55) 100%)}
.project-text{z-index:45}   /* titles sit above the vignette so it never dims them */
html.moving .hero-media,html.moving .deck-bg,html.moving .deck-cover{filter:url(#motion-blur)}
/* Reels are 12% taller than the frame and cropped by it, so motion blur never pulls a dark edge into view */
.hero-media{top:-6%;height:112%}

/* Cursor: a thin pure-white ring around the pointer, no fill or shadow. Over a project it opens up and
   "OPEN PROJECT" rides beside it on one line. */
.cursor{mix-blend-mode:normal}
.cursor-ring,html.glass-refract .cursor-ring{width:38px;height:38px;margin:-19px 0 0 -19px;background:transparent;border:1.5px solid #fff;-webkit-backdrop-filter:none;backdrop-filter:none;box-shadow:none}
.cursor-ring::after{display:none}
.cursor-label{display:none}
.cursor.has-label .cursor-ring{width:66px;height:66px;margin:-33px 0 0 -33px;background:transparent}
.cursor.on-link .cursor-ring{width:56px;height:56px;margin:-28px 0 0 -28px}
.cursor-tag{position:absolute;left:46px;top:0;transform:translate(-6px,-50%);white-space:nowrap;font:600 12px/1 var(--ui);letter-spacing:.18em;text-transform:uppercase;color:#fff;opacity:0;transition:opacity .25s ease,transform .45s var(--ease)}
.cursor.has-label .cursor-tag{opacity:1;transform:translate(0,-50%);transition-delay:.06s}
/* No native scrollbar: the page moves one project at a time, so the bar only adds a grey strip. */
html{scrollbar-width:none}html::-webkit-scrollbar{display:none}
/* Scroll-scrubbed slide effect (scroll-fx.js). Only applies while that script is loaded. */
html.fx .project-hero{background:#000}
html.fx .hero-media,html.fx .deck-bg{transform-origin:50% 50%;will-change:transform,filter,opacity}
html.fx.fx-live .project-text{transition:none}
/* ---- Project view (detail.js) ---- */
html.detail-open,html.detail-open body{overflow:hidden}
.detail{position:fixed;inset:0;z-index:39;background:#000;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:none;visibility:hidden}
.detail::-webkit-scrollbar{display:none}
.detail.open{visibility:visible}   /* black at once: the reel covers the screen at that moment; its blur band rides along in the flyer and fades there */
.detail-flyer{position:fixed;inset:0;z-index:5;overflow:hidden;pointer-events:none}
.detail-flyer .gblur{top:auto;bottom:0;height:42%}
.hero-media.in-detail{position:absolute;inset:auto;left:0;top:0;transform-origin:0 0;filter:none;will-change:transform}
/* The vignette fades away under the project view instead of vanishing (the view sits beneath it). */
body::after{transition:opacity 1.1s cubic-bezier(.45,0,.55,1)}
html.detail-open body::after{opacity:0}
/* One centred column: wide enough to feel big, short enough that the reel frame fits on the first screen. */
.detail-inner{width:min(76vw,1500px,calc((100vh - clamp(96px,11vh,130px) - 70px) * 1.7778));margin:0 auto;padding:clamp(96px,11vh,130px) 0 clamp(64px,10vh,120px)}
.detail-back{display:inline-flex;align-items:center;gap:10px;margin:0 0 16px;padding:0;border:0;background:none;color:#cfcfcf;font:500 12px/1 var(--ui);letter-spacing:.2em;text-transform:uppercase;opacity:0;transition:opacity .5s ease}
.detail-back svg{width:14px;height:14px}
.detail-back:hover{color:#fff}
.detail-lead{position:relative;aspect-ratio:16/9;overflow:hidden;background:#000}
/* Under the reel: name on the left, description and counts on the right. */
.detail-info{display:grid;grid-template-columns:1fr 1fr;gap:clamp(20px,3vw,56px);align-items:start;margin-top:clamp(20px,2.6vh,32px);padding-bottom:clamp(28px,4vh,48px);border-bottom:1px solid #1e1e1e;opacity:0;transform:translateY(16px);transition:opacity .8s ease,transform 1s var(--ease)}
.d-index{font:500 12px/1 var(--ui);letter-spacing:.2em;color:#8a8a8a;margin-bottom:12px}
.d-name{font-family:var(--display);font-weight:400;font-size:clamp(22px,2vw,36px);line-height:1.15;text-transform:uppercase}
.d-blurb{font-size:clamp(15px,1.05vw,18px);line-height:1.55;color:#d6d6d6;max-width:46ch}
.d-meta{margin-top:12px;font:500 12px/1 var(--ui);letter-spacing:.14em;text-transform:uppercase;color:#7a7a7a}
.detail.shown .detail-info{opacity:1;transform:none}
.d-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:clamp(14px,1.4vw,24px);margin-top:clamp(28px,4vh,48px)}
.d-item{margin:0;opacity:0;transform:translateY(40px);transition:opacity .8s ease,transform 1s var(--ease)}
.d-item figcaption{display:flex;gap:14px;margin-top:12px;font:500 12px/1 var(--ui);letter-spacing:.14em;text-transform:uppercase;color:#bdbdbd}
.d-item figcaption span{color:#6f6f6f}
.d-label{margin:clamp(56px,8vh,110px) 0 0;font:500 12px/1 var(--ui);letter-spacing:.2em;text-transform:uppercase;color:#9a9a9a}
.d-label + .d-grid{margin-top:18px}
/* Revealed once the frame has landed (and hidden again before it flies back). */
.detail.shown .detail-back{opacity:1}
.detail.shown .d-item{opacity:1;transform:none}
.detail.shown .d-item:nth-child(2){transition-delay:.08s}.detail.shown .d-item:nth-child(3){transition-delay:.16s}
.detail.shown .d-item:nth-child(4){transition-delay:.24s}.detail.shown .d-item:nth-child(5){transition-delay:.32s}
.detail.shown .d-item:nth-child(n+6){transition-delay:.4s}
@media (max-width:1100px){.d-grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:760px){
  .detail-inner{width:auto;padding-left:var(--edge);padding-right:var(--edge)}
  .detail-info{grid-template-columns:1fr}
  .d-grid{grid-template-columns:1fr}
}
.detail-back:focus{outline:none}.detail-back:focus-visible span{text-decoration:underline;text-underline-offset:4px}
/* ---- Contact slide (design test) ---- */
.contact-slide{position:relative;height:100vh;height:100svh;overflow:hidden;background:#000;display:grid;align-items:center;justify-items:start;padding:0 var(--text-x)}
.contact-line{max-width:14ch;font-family:var(--display);font-weight:400;-webkit-text-stroke:.035em currentColor;paint-order:stroke fill;font-size:clamp(30px,4.6vw,88px);line-height:1.08;letter-spacing:-.01em;text-align:left;text-transform:uppercase;color:#f2f2f2;margin-left:-.072em}
/* ---- Film grain over the whole site (main.js): above every layer but the full-screen viewer ---- */
.film-grain{position:fixed;inset:0;z-index:250;overflow:hidden;pointer-events:none}
.film-grain canvas{position:absolute;left:0;top:0}
/* ---- Mouse camera (main.js): the reel's slight 3D turn. Its depth comes from perspective() inside the
   transform, not a perspective on the slide, which would trap the titles under the vignette. ---- */
.hero-media{transform:perspective(1400px) translate3d(var(--cam-x, 0px), var(--cam-y, 0px), 0) rotateY(var(--cam-ry, 0deg)) rotateX(var(--cam-rx, 0deg)) scale(var(--cam-s, 1))}
/* Floating: the ring and its label bob gently, out of step with each other (the label also trails the
   ring while moving, in main.js). Uses the separate translate property so it never fights the transforms. */
.cursor-tag-wrap{position:absolute;left:0;top:0}
.cursor-ring{animation:cursor-bob 3.2s ease-in-out infinite alternate}
.cursor-tag{animation:cursor-bob 2.6s ease-in-out -1.1s infinite alternate}
@keyframes cursor-bob{from{translate:0 -2.5px}to{translate:0 2.5px}}
@media (prefers-reduced-motion:reduce){.cursor-ring,.cursor-tag{animation:none}}
/* The cursor ring fades out over the top bar so it doesn't distract there. */
.cursor-ring{transition:width .45s var(--ease),height .45s var(--ease),margin .45s var(--ease),opacity .3s ease}
.cursor.in-bar .cursor-ring{opacity:0}
/* ---- Slide bars down the left edge (main.js) ---- */
.slide-bars{position:fixed;left:max(8px,calc(var(--edge) * .38));top:50%;transform:translateY(-50%);z-index:46;display:flex;flex-direction:column;gap:12px;opacity:0;transition:opacity .8s ease .4s}
html.intro-done .slide-bars{opacity:1}
html.detail-open .slide-bars{opacity:0;pointer-events:none;transition-delay:0s}
.slide-bar{position:relative;width:4px;height:34px;padding:0;border:0;border-radius:3px;background:rgba(255,255,255,.45);transition:height .6s var(--ease),background-color .4s ease}
.slide-bar::before{content:"";position:absolute;inset:-6px -12px}   /* a bigger, invisible click area */
.slide-bar:hover{background:rgba(255,255,255,.75)}
.slide-bar.on{height:72px;background:#fff}
.slide-bar:focus{outline:none}.slide-bar:focus-visible{outline:1px solid #fff;outline-offset:4px}
/* ---- Cover slide (design test): full-screen reel; name centred at the top ---- */
.cover-slide{position:relative;height:100vh;height:100svh;overflow:hidden;background:#000}
/* A gentle dark fade from the top edge, on this slide only. */
.cover-slide::before{content:"";position:absolute;left:0;right:0;top:0;height:60%;z-index:1;pointer-events:none;background:linear-gradient(to bottom,rgba(0,0,0,.6) 0%,rgba(0,0,0,.28) 45%,rgba(0,0,0,0) 100%)}
.cover-top{position:absolute;left:0;right:0;top:clamp(120px,15vh,200px);z-index:51;text-align:center;pointer-events:none}   /* above the top-bar blur, so only the reel behind it is blurred */
.cover-name{display:inline-block;font-family:var(--display);font-weight:400;font-size:clamp(40px,7vw,230px);line-height:1;letter-spacing:.02em;text-transform:uppercase;white-space:nowrap}
.cover-studio{margin-top:.9em;font-family:var(--display);font-size:clamp(13px,1.15vw,22px);letter-spacing:.9em;margin-right:-.9em;text-transform:uppercase}
.cover-pitch{position:absolute;left:var(--text-x);bottom:var(--text-bottom);z-index:45;max-width:44ch;font-size:clamp(17px,1.35vw,24px);line-height:1.55;color:#dcdcdc}
/* Solid white name, thickened with an outline. */
.cover-name{color:#f2f2f2;-webkit-text-stroke:.085em currentColor;paint-order:stroke fill}
.cover-studio{color:#e6e6e6;-webkit-text-stroke:.03em currentColor;paint-order:stroke fill}
/* On the cover the top-bar blur reaches further down, behind the name. */
.topbar{transition:height .9s var(--ease)}
html.at-cover .topbar{height:clamp(260px,44vh,480px)}
/* Short lines under the titles: Archivo Expanded in small tracked capitals (long descriptions keep Space Grotesk). */
.project-blurb.is-short{font-family:"Archivo",var(--ui);font-stretch:125%;font-weight:500;font-size:clamp(11px,.82vw,14px);letter-spacing:.22em;text-transform:uppercase;line-height:1.6;color:#ececec;max-width:none}   /* stays on one line */
/* ---- Title font trial: Unbounded (free, OFL) replaces Michroma everywhere the display font is used.
   It has real bold weights, so the outline used to thicken Michroma is switched off. ---- */
:root{--display:"Unbounded","Michroma",system-ui,sans-serif}
.project-title,.cover-name,.contact-line,.d-name{-webkit-text-stroke:0;font-weight:700;letter-spacing:-.015em}
.cover-studio{-webkit-text-stroke:0;font-weight:500}
.brand{font-weight:500}
/* ---- Title font trial: Krona One (free, OFL). One weight only, so no bold is requested (no faux bold). ---- */
:root{--display:"Krona One","Michroma",system-ui,sans-serif}
.project-title,.cover-name,.contact-line,.d-name,.cover-studio,.brand{font-weight:400}
.project-title,.cover-name,.contact-line,.d-name{letter-spacing:-.01em}
/* ---- Title font trial: Archivo Expanded ExtraBold (free, OFL; the same family as the short lines) ---- */
:root{--display:"Archivo","Michroma",system-ui,sans-serif}
.brand,.project-title,.cover-name,.cover-studio,.contact-line,.d-name{font-stretch:125%}
.project-title,.cover-name,.contact-line,.d-name{font-weight:800;letter-spacing:-.01em}
.cover-studio{font-weight:600}
.brand{font-weight:700}
/* ---- One layout for every slide (like the reference): small type label, a two-line stacked title at
   the same size everywhere, then one short line. The full description lives in the project view. ---- */
.project-type{font-family:"Archivo",var(--ui);font-stretch:125%;font-weight:600;font-size:clamp(14px,1.15vw,20px);letter-spacing:.22em;text-transform:uppercase;color:#f2f2f2;margin-bottom:clamp(12px,1.8vh,22px)}
.project-title{font-size:clamp(40px,6.6vw,128px);line-height:.94;max-width:none}
.title-line{display:block;white-space:nowrap}
.project-blurb.is-short{margin-top:clamp(16px,2.2vh,26px)}
/* Cover: bigger STUDIO and a bigger, shorter pitch line. */
.cover-studio{font-size:clamp(18px,1.75vw,34px);letter-spacing:.7em;margin-right:-.7em}
.cover-pitch{font-size:clamp(22px,2.1vw,40px);line-height:1.3;max-width:min(30ch,84vw);text-wrap:balance;letter-spacing:-.01em;color:#ececec}
.cover-pitch{left:50%;transform:translateX(-50%);text-align:center;width:max-content}   /* centred under the name */
/* ---- Cover layout: EJ mark top left, Contact top right, the name bottom left (left aligned) and the
   pitch bottom right. The darkening moves from the top of the reel to the bottom, under the text. ---- */
@font-face{font-family:"Noto Serif Display";src:url("fonts/NotoSerifDisplay-Italic.ttf") format("truetype");font-style:italic;font-weight:100 900;font-display:block}
.brand.brand-ej{font-family:"Noto Serif Display",serif;font-style:italic;font-weight:900;font-stretch:100%;font-size:clamp(30px,2.6vw,46px);line-height:1;letter-spacing:-.06em;text-transform:none;padding-right:.1em}
html.at-cover .topbar{height:clamp(96px,11vh,130px)}
.cover-slide::before{top:auto;bottom:0;height:62%;background:linear-gradient(to top,rgba(0,0,0,.62) 0%,rgba(0,0,0,.3) 45%,rgba(0,0,0,0) 100%)}
.cover-top{top:auto;left:var(--text-x);right:auto;bottom:var(--text-bottom);z-index:45;text-align:left}
.cover-name{display:block}
.cover-studio{text-align:left;margin-top:.6em}
.cover-pitch{left:auto;right:var(--text-x);transform:none;text-align:right;bottom:var(--text-bottom);width:auto;max-width:min(22ch,34vw);font-size:clamp(17px,1.4vw,26px);line-height:1.35}
@media (max-width:760px){
  .cover-top{bottom:calc(var(--text-bottom) + 7.5em)}
  .cover-pitch{left:var(--text-x);right:var(--text-x);text-align:left;max-width:none}
}
/* EJ mark in the title font at regular weight; Contact as a bigger outlined pill that fills on hover. */
.brand.brand-ej{font-family:"Archivo",var(--ui);font-style:normal;font-stretch:125%;font-weight:400;font-size:clamp(24px,2vw,34px);letter-spacing:.02em;text-transform:uppercase;padding-right:0}
.nav-contact{font-family:"Archivo",var(--ui);font-stretch:125%;font-weight:600;font-size:clamp(12px,.95vw,15px);letter-spacing:.22em;padding:.95em 1.6em .95em 1.82em;border:1px solid rgba(255,255,255,.4);border-radius:999px;transition:background-color .35s ease,color .35s ease,border-color .35s ease}
.nav-contact:hover,.nav-contact:focus-visible{background:#f2f2f2;color:#000;border-color:#f2f2f2;outline:none}
@media (max-width:760px){.nav-contact{font-size:11px;padding:.85em 1.3em .85em 1.5em}}

/* ==== Selling pass: one accent colour, full-width name, a plain "what I do" line, nav links, and the
   Work list / Services / About slides. ==== */
:root{--accent:#e63a22}
/* Header: EJ left, three section links in the middle, Contact pill right. */
.topbar-inner{display:grid;grid-template-columns:1fr auto 1fr;align-items:center}
.topbar-inner .copy-wrap{justify-self:end}
.nav-links{display:flex;gap:clamp(20px,2.6vw,44px)}
.nav-link{font-family:"Archivo",var(--ui);font-stretch:125%;font-weight:500;font-size:clamp(11px,.85vw,14px);letter-spacing:.2em;text-transform:uppercase;color:#cfcfcf;background:none;border:0;padding:6px 0;cursor:pointer;position:relative;transition:color .3s ease}
.nav-link::after{content:"";position:absolute;left:0;right:.2em;bottom:0;height:1px;background:var(--accent);transform:scaleX(0);transform-origin:left;transition:transform .45s var(--ease)}
.nav-link:hover{color:#fff}.nav-link:hover::after{transform:scaleX(1)}
.nav-link:focus{outline:none}.nav-link:focus-visible{color:#fff}
.nav-contact:hover,.nav-contact:focus-visible{background:var(--accent);border-color:var(--accent);color:#fff}
.slide-bar.on{background:var(--accent)}
@media (max-width:760px){.nav-links{display:none}.topbar-inner{grid-template-columns:1fr auto}}

/* Cover: a row with the role (left) and what I've worked on (right), the name across the full width,
   then STUDIO and a scroll hint. */
.cover-top{left:var(--text-x);right:var(--text-x);bottom:clamp(28px,6vh,72px)}
.cover-row{display:flex;justify-content:space-between;align-items:flex-end;gap:2rem}
.cover-role{font-family:"Archivo",var(--ui);font-stretch:125%;font-weight:600;font-size:clamp(15px,1.5vw,28px);letter-spacing:-.005em;text-transform:uppercase;color:#f2f2f2;white-space:nowrap}
.role-swap{position:relative;display:inline-grid;vertical-align:bottom;overflow:hidden;padding:.08em 0;margin:-.08em 0;color:var(--accent)}
.role-word{grid-area:1/1;transform:translateY(130%);transition:transform .7s var(--ease)}
.role-word.is-on{transform:none}
.role-word.is-out{transform:translateY(-130%)}
.cover-pitch{position:static;transform:none;width:auto;max-width:24ch;text-align:right;font-size:clamp(14px,1.05vw,19px);line-height:1.45;color:#cfcfcf;text-wrap:balance}
.cover-name{display:block;width:max-content;margin:clamp(10px,1.6vh,22px) 0 0 -.04em;line-height:.86;white-space:nowrap}
.cover-foot{margin-top:clamp(12px,1.8vh,22px);align-items:center}
.cover-studio{margin:0;font-size:clamp(12px,1vw,17px);letter-spacing:.9em}
.cover-scroll{font-family:"Archivo",var(--ui);font-stretch:125%;font-weight:500;font-size:clamp(11px,.8vw,13px);letter-spacing:.24em;text-transform:uppercase;color:#9a9a9a;display:flex;align-items:center;gap:.8em}
.cover-scroll::before{content:"";width:1.6em;height:1px;background:var(--accent)}
@media (max-width:760px){
  .cover-top{bottom:clamp(28px,7vh,64px)}
  .cover-row{flex-direction:column;align-items:flex-start;gap:.6rem}
  .cover-role{white-space:normal;font-size:16px}
  .cover-pitch{text-align:left;max-width:none;left:auto;right:auto}
}

/* Shared look for the info slides. */
.info-slide{position:relative;height:100vh;height:100svh;overflow:hidden;background:#000;display:flex;align-items:center;padding:clamp(110px,14vh,150px) var(--text-x) clamp(48px,8vh,96px)}
.info-inner{width:100%;position:relative;z-index:2}
.sec-label{display:flex;gap:.9em;align-items:baseline;font-family:"Archivo",var(--ui);font-stretch:125%;font-weight:600;font-size:clamp(11px,.85vw,14px);letter-spacing:.24em;text-transform:uppercase;color:#cfcfcf;margin-bottom:clamp(20px,3.4vh,40px)}
.sec-label span{color:var(--accent);letter-spacing:.06em}
.sec-head{font-family:var(--display);font-stretch:125%;font-weight:800;font-size:clamp(34px,5vw,96px);line-height:.95;letter-spacing:-.01em;text-transform:uppercase;margin-bottom:clamp(28px,5vh,64px)}

/* Work list: big numbered rows, a still follows the hovered row. */
.work-list{list-style:none;border-top:1px solid #262626}
.wl-row{width:100%;display:grid;grid-template-columns:clamp(40px,5vw,90px) 1fr auto;grid-template-areas:"num title type" "num title role";column-gap:clamp(14px,2vw,40px);align-items:center;text-align:left;background:none;border:0;border-bottom:1px solid #262626;color:#f2f2f2;padding:clamp(14px,2.6vh,30px) 0;cursor:pointer;transition:opacity .35s ease}
.wl-num{grid-area:num;font-family:"Archivo",var(--ui);font-stretch:125%;font-weight:500;font-size:clamp(12px,1vw,16px);letter-spacing:.08em;color:#8a8a8a;transition:color .3s ease}
.wl-title{grid-area:title;font-family:var(--display);font-stretch:125%;font-weight:800;font-size:clamp(28px,4.4vw,84px);line-height:1;letter-spacing:-.01em;text-transform:uppercase;transition:transform .5s var(--ease)}
.wl-type,.wl-role{font-family:"Archivo",var(--ui);font-stretch:125%;font-weight:500;font-size:clamp(10px,.8vw,13px);letter-spacing:.2em;text-transform:uppercase;text-align:right;color:#bdbdbd}
.wl-type{grid-area:type;align-self:end}.wl-role{grid-area:role;align-self:start;color:#7d7d7d;margin-top:.5em}
.work-list:hover .wl-row{opacity:.35}
.work-list .wl-row:hover{opacity:1}
.wl-row:hover .wl-num{color:var(--accent)}
.wl-row:hover .wl-title{transform:translateX(.25em)}
.wl-row:focus{outline:none}.wl-row:focus-visible .wl-title{color:var(--accent)}
.wl-preview{position:fixed;left:0;top:0;width:clamp(220px,22vw,420px);aspect-ratio:16/9;z-index:1;pointer-events:none;clip-path:inset(50% 0 50% 0);transition:clip-path .55s var(--ease);will-change:transform}   /* follows the pointer (main.js) */
.wl-preview.on{clip-path:inset(0 0 0 0)}
.wl-preview img{width:100%;height:100%;object-fit:cover;display:block}
@media (max-width:760px){.wl-preview{display:none}.wl-row{grid-template-columns:34px 1fr;grid-template-areas:"num title" "num type"}.wl-role{display:none}.wl-type{text-align:left;margin-top:.6em}}

/* Services: three numbered columns. */
.svc-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:clamp(20px,3vw,56px)}
.svc{border-top:1px solid #2e2e2e;padding-top:clamp(16px,2.4vh,28px)}
.svc-num{display:block;font-family:"Archivo",var(--ui);font-stretch:125%;font-weight:600;font-size:clamp(12px,.95vw,15px);letter-spacing:.1em;color:var(--accent);margin-bottom:clamp(18px,3vh,36px)}
.svc h3{font-family:var(--display);font-stretch:125%;font-weight:800;font-size:clamp(20px,2vw,38px);line-height:1.05;text-transform:uppercase;margin-bottom:.8em}
.svc p{font-size:clamp(14px,1.05vw,18px);line-height:1.55;color:#bdbdbd;max-width:34ch}
@media (max-width:760px){.svc-grid{grid-template-columns:1fr;gap:22px}.svc-num{margin-bottom:10px}.services-slide .sec-head{margin-bottom:22px}}

/* About: one big statement (no photo), then three short facts. */
.about-line{font-family:var(--display);font-stretch:125%;font-weight:600;font-size:clamp(24px,3.3vw,64px);line-height:1.12;letter-spacing:-.015em;max-width:24ch;text-wrap:balance;margin-bottom:clamp(32px,6vh,72px)}
.about-line em{font-style:normal;color:var(--accent)}
.about-facts{display:grid;grid-template-columns:repeat(3,auto);justify-content:start;gap:clamp(28px,6vw,120px);border-top:1px solid #2e2e2e;padding-top:clamp(16px,2.4vh,28px)}
.about-facts p{font-size:clamp(14px,1vw,17px);line-height:1.5;color:#dcdcdc}
.fact-k{font-family:"Archivo",var(--ui);font-stretch:125%;font-weight:600;font-size:clamp(10px,.75vw,12px)!important;letter-spacing:.24em;text-transform:uppercase;color:#7d7d7d!important;margin-bottom:.7em}
.about-mail{font:inherit;color:#fff;background:none;border:0;padding:0;cursor:pointer;border-bottom:1px solid var(--accent);transition:color .3s ease}
.about-mail:hover{color:var(--accent)}
@media (max-width:760px){.about-facts{grid-template-columns:1fr;gap:16px}}

/* Cover, round two: no red anywhere (the accent is plain white), the role line all white, no "worked on"
   line, a bigger STUDIO, and "Scroll to see more" with a drifting down arrow. */
:root{--accent:#f2f2f2}
.role-swap{color:#f2f2f2}
.role-word.no-anim{transition:none}
.nav-contact:hover,.nav-contact:focus-visible{color:#000}
.slide-bar.on{background:#fff}
.sec-label span,.svc-num{color:#8a8a8a}
.wl-row:hover .wl-num{color:#fff}
.about-line em{color:#fff;text-decoration:underline;text-decoration-thickness:.06em;text-underline-offset:.12em}
.cover-role{font-size:clamp(15px,1.45vw,27px)}
.cover-name{margin-top:clamp(8px,1.4vh,18px)}
.cover-foot{margin-top:clamp(14px,2.2vh,26px)}
.cover-studio{font-size:clamp(16px,1.45vw,26px);letter-spacing:.7em}
.cover-scroll{gap:.9em;color:#cfcfcf}
.cover-scroll::before{display:none}
.scroll-arrow{display:inline-block;width:.8em;height:1.3em;overflow:hidden;position:relative}
.scroll-arrow svg{position:absolute;inset:0;width:100%;height:100%;animation:scroll-drop 1.8s cubic-bezier(.65,0,.35,1) infinite}
@keyframes scroll-drop{0%{transform:translateY(-110%)}45%,55%{transform:translateY(0)}100%{transform:translateY(110%)}}
@media (prefers-reduced-motion:reduce){.scroll-arrow svg{animation:none}}
.role-swap{vertical-align:baseline}

/* STUDIO as part of the wordmark: same heavy expanded face, letters spread to exactly the width of "JAMES",
   tucked right under it. The scroll hint moves to the left, arrow first. */
.cover-foot{margin-top:calc(var(--name-size, 120px) * .1)}
.cover-studio{display:flex;justify-content:space-between;width:var(--last-w, auto);margin:0;font-family:var(--display);font-stretch:125%;font-weight:800;font-size:calc(var(--name-size, 120px) * .2);letter-spacing:0;line-height:1;color:#f2f2f2;-webkit-text-stroke:0}
.cover-scroll{gap:.8em}
@media (max-width:760px){.cover-row.cover-foot{flex-direction:row;align-items:center}.cover-scroll{font-size:10px;letter-spacing:.16em}}

/* STUDIO lockup, take two: a hairline that runs into STUDIO, together exactly as wide as "JAMES" and
   flush with its right edge, so the three read as one mark. */
.cover-studio{display:flex;align-items:center;gap:.7em;justify-content:flex-end;width:var(--last-w, auto);margin-right:var(--last-gap, 0);font-size:calc(var(--name-size, 120px) * .2);font-weight:700;letter-spacing:.42em}
.cover-studio span{margin-right:-.42em}
.studio-rule{flex:1;height:max(1px,.06em);background:#f2f2f2;opacity:.85}
@media (max-width:760px){.cover-scroll{display:none}.cover-row.cover-foot{justify-content:flex-end}.cover-studio{font-size:max(12px,calc(var(--name-size, 40px) * .26))}}
.scroll-arrow{height:1.5em}
.scroll-arrow svg{animation-duration:2.2s;animation-name:scroll-drop2}
@keyframes scroll-drop2{0%{transform:translateY(-110%)}28%,72%{transform:translateY(0)}100%{transform:translateY(110%)}}

/* STUDIO, take three: no line, same size, left aligned under ELIJAH; the scroll hint goes back to the right. */
.cover-studio{width:auto;margin-right:0;justify-content:flex-start}
.studio-rule{display:none}
@media (max-width:760px){.cover-row.cover-foot{justify-content:flex-start}}

/* A soft blur band behind the name so it reads over busy footage (same technique as the project slides). */
.cover-slide .cover-blur{top:auto;bottom:0;height:52%;z-index:2}

/* ==== Intro v-next: kinetic type with film burns (intro.js builds it) ==== */
.intro{background:#000}
.kt-stage{position:absolute;inset:0}
.kt-frame{position:absolute;inset:0;display:grid;place-items:center;overflow:hidden}
.kt-black{background:#000;color:#f2f2f2}
.kt-white{background:#ececec;color:#0a0a0a}
.kt-frame p{margin:0;white-space:nowrap;text-transform:uppercase;line-height:.84}
.kt-giant,.kt-big,.kt-stack p,.kt-line-big{font-family:"Archivo",var(--ui);font-stretch:62%;font-weight:900;letter-spacing:-.01em}
.kt-stack{display:grid;justify-items:center;gap:.02em;font-size:clamp(60px,15vw,260px)}
.kt-out{color:transparent;-webkit-text-stroke:2px currentColor}
.kt-black .kt-out{-webkit-text-stroke-color:#f2f2f2}.kt-white .kt-out{-webkit-text-stroke-color:#0a0a0a}
.kt-pair{display:grid;justify-items:start;gap:.6em}
.kt-small,.kt-micro,.kt-block{font-family:"Archivo",var(--ui);font-stretch:125%;font-weight:700;letter-spacing:.2em;font-size:clamp(11px,.9vw,15px)}
.kt-bar{display:flex;align-items:center;gap:0}
.kt-block{display:inline-block;padding:.7em 1.1em;margin-right:-.4em;position:relative;z-index:1}
.kt-black .kt-block{background:#f2f2f2;color:#000}.kt-white .kt-block{background:#0a0a0a;color:#ececec}
.kt-lines{display:grid;justify-items:center;gap:.35em;font-family:"Archivo",var(--ui);font-stretch:125%;font-weight:700;font-size:clamp(10px,.8vw,13px);letter-spacing:.3em}
.kt-lines p{opacity:.55}
.kt-lines .kt-line-big{opacity:1;font-size:clamp(70px,12vw,220px);letter-spacing:-.01em;margin:.08em 0}
.kt-split{display:flex;gap:.12em}.kt-split span:last-child{transform:translateY(.18em)}
.kt-micro{position:absolute;opacity:.85}
.kt-tl{left:var(--edge);top:var(--edge)}.kt-br{right:var(--edge);bottom:var(--edge)}
/* The spelled name: same font and size as the cover's name, letters pop on one at a time. */
.kt-title{position:fixed;margin:0;z-index:5;white-space:nowrap;font-family:var(--display);font-stretch:125%;font-weight:800;text-transform:uppercase;color:#f2f2f2;will-change:transform}
.kt-title span{display:inline-block;visibility:hidden}
.kt-title span.on{visibility:visible;animation:kt-pop .14s steps(2,end)}
@keyframes kt-pop{0%{transform:scale(1.22) translateY(-6%)}100%{transform:none}}
.intro.kt-dark .kt-stage{display:none}
/* Leave: the black cuts away at once (the burn on top sells it). */
.intro.leave{background:transparent;transition:none}
/* Film burns, screened over everything: black drops out, only the burn shows. */
.kt-burns{position:fixed;inset:0;z-index:260;pointer-events:none;mix-blend-mode:screen}
.kt-burns video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0}
.kt-burns video.on{opacity:1}
/* The rest of the cover comes in after the name lands. */
.cover-role,.cover-foot{transition:opacity .6s ease,transform .7s var(--ease)}
html:not(.intro-done) .cover-role{opacity:0;transform:translateY(40%)}
html:not(.intro-done) .cover-foot{opacity:0;transform:translateY(60%)}
html.intro-done .cover-role{transition-delay:.15s}
html.intro-done .cover-foot{transition-delay:.3s}
html.intro-done .topbar{transition:opacity .8s ease .45s}
html:not(.intro-done) .cover-name{visibility:hidden}
.kt-burns.mute video{visibility:hidden}

/* ==== Intro, credit-card version (intro.js): near-black, small cream tracked capitals decoding on two
   staggered lines, tiny marks, a flash cut to the reel, then the name jumps to its cover size. ==== */
.intro{background:#0a0710}
.intro.cr-flash{background:transparent}
.intro.cr-flash .cr{visibility:hidden}
.cr{position:absolute;inset:0;color:#e9ddb8;font-family:"Archivo",var(--ui);font-stretch:125%;font-weight:600;text-transform:uppercase}
.cr-block{position:absolute;left:50%;top:47%;transform:translate(-50%,-50%);width:max-content}
.cr-line{margin:0;font-size:clamp(20px,2.3vw,40px);letter-spacing:.42em;line-height:1.5;white-space:pre}
.cr-line-2{padding-left:3.1em}
.cr-sq{position:absolute;right:-5.5em;top:-1.6em;width:.75em;height:.75em;background:#e9ddb8;font-size:clamp(20px,2.3vw,40px)}
.cr-dot{position:absolute;right:-7.2em;top:-.2em;width:4px;height:4px;border-radius:50%;background:#e9ddb8;opacity:.8;font-size:clamp(20px,2.3vw,40px)}
.cr-hollow{position:absolute;left:0;bottom:-2.4em;width:.55em;height:.55em;border:1.5px solid #e9ddb8;font-size:clamp(20px,2.3vw,40px)}
.cr-tag{position:absolute;right:-5.6em;top:-.5em;font-size:7px;letter-spacing:.2em;opacity:.7}
.cr-edge{position:absolute;top:47%;margin:0;font-size:9px;letter-spacing:.32em;white-space:pre;opacity:.75}
.cr-edge-l{left:6px}.cr-edge-r{right:calc(var(--edge) + 2px)}
.cr-count{position:absolute;left:50%;bottom:var(--edge);transform:translateX(-50%);margin:0;font-size:9px;letter-spacing:.3em;opacity:.6}
.cr-title{position:fixed;margin:0;z-index:5;white-space:nowrap;font-family:var(--display);font-stretch:125%;font-weight:800;text-transform:uppercase;color:#f2f2f2;will-change:transform}
.intro .kt-stage{display:none}

/* Less negative space: the credit card is about twice the size; the burn is gentler. */
.cr-line,.cr-sq,.cr-dot,.cr-hollow{font-size:clamp(30px,4.4vw,84px)}
.cr-line{letter-spacing:.36em}
.cr-tag{font-size:10px}
.cr-edge,.cr-count{font-size:11px}
.kt-burns video.on{opacity:.5}
.cr-sq{right:-1.6em;top:-1.05em;width:.42em;height:.42em}
.cr-dot{right:-2.3em;top:-.2em;width:5px;height:5px}
.cr-tag{right:-1.7em;top:-.1em}
.cr-hollow{bottom:-1.3em;width:.3em;height:.3em}
/* Credit card, more going on: a progress hairline under the name, micro text typing in bottom left,
   timecode bottom right, colour-split frames, a blinking square. */
.cr-line{transition:none;will-change:transform}
.cr-bar{position:absolute;left:0;right:-.4em;bottom:-.55em;height:1px;background:rgba(233,221,184,.18);font-size:clamp(30px,4.4vw,84px)}
.cr-bar i{position:absolute;inset:0;background:#e9ddb8;transform:scaleX(0);transform-origin:left}
.cr-sq.off{visibility:hidden}
.cr.cr-split .cr-line{text-shadow:-3px 0 rgba(255,70,70,.55),3px 0 rgba(70,200,255,.55)}
.cr-log{position:absolute;left:var(--edge);bottom:var(--edge);display:grid;gap:5px;font-size:10px;letter-spacing:.24em;opacity:.7}
.cr-log p{margin:0;white-space:pre}
.cr-tc{position:absolute;right:var(--edge);bottom:var(--edge);margin:0;font-size:10px;letter-spacing:.24em;opacity:.7;font-variant-numeric:tabular-nums}

/* Site colours (black and off-white), no typing log, and the black fades out at the end. */
.intro{background:#000}
.cr{color:#f2f2f2}
.cr-sq,.cr-dot{background:#f2f2f2}
.cr-hollow{border-color:#f2f2f2}
.cr-bar{background:rgba(242,242,242,.18)}.cr-bar i{background:#f2f2f2}
.cr.cr-split .cr-line{text-shadow:-3px 0 rgba(255,255,255,.35),3px 0 rgba(120,120,120,.5)}
.cr-log{display:none}
.intro.leave{background:transparent;transition:background-color .8s ease}

/* The name card is the cover's own lockup, smaller: heavy expanded name, STUDIO left aligned under it. */
.cr.cr-final .cr-line{font-family:var(--display);font-stretch:125%;font-weight:800;font-size:var(--fn);letter-spacing:-.01em;line-height:.86;width:max-content}
.cr.cr-final .cr-line-2{font-weight:700;font-size:var(--fs);letter-spacing:.42em;padding-left:0;margin-top:.55em;line-height:1}
.cr.cr-final .cr-bar{bottom:-.9em;font-size:var(--fs)}
.cr.cr-final .cr-tag{display:none}
.cr.cr-final .cr-line{overflow:visible}

/* Spacing pass on the loading card: one gap (--gap) between the lines, the loading line and the marks;
   the loading line is exactly as wide as the words; the marks sit on the block's edges. */
.cr{--gap:clamp(14px,1.5vw,26px)}
.cr-line{line-height:1.12;margin-right:-.36em}
.cr-line-2{margin-top:calc(var(--gap) * .35)}
.cr-bar,.cr.cr-final .cr-bar{font-size:inherit;left:0;right:0;bottom:calc(-1 * var(--gap) - 1px);height:1px}
.cr-sq{right:0;top:calc(-1 * var(--gap) - 12px);width:12px;height:12px;font-size:inherit}
.cr-dot{right:24px;top:calc(-1 * var(--gap) - 7px);width:4px;height:4px;font-size:inherit}
.cr-hollow{left:0;bottom:calc(-2 * var(--gap) - 11px);width:10px;height:10px;font-size:inherit;border-width:1px}
.cr-tag{display:none}
.cr.cr-final .cr-line{margin-right:0}
.cr.cr-final .cr-line-2{margin-top:var(--gap);margin-right:-.42em}
.cr{--bar:var(--gap)}
.cr.cr-final{--bar:calc(var(--gap) * 2.4)}
.cr-bar,.cr.cr-final .cr-bar{bottom:calc(-1 * var(--bar) - 1px)}
.cr-hollow{bottom:calc(-1 * var(--bar) - var(--gap) - 11px)}
.cr.cr-final .cr-sq{top:calc(-1 * var(--bar) - 12px)}
.cr.cr-final .cr-dot{top:calc(-1 * var(--bar) - 7px)}

/* ==== Intro glitch pass ==== */
.cr-line .g{display:inline-block}
.g-inv{background:#f2f2f2;color:#000}
.g-flip{transform:scaleX(-1)}
.g-rot{transform:rotate(180deg)}
.g-up{transform:translateY(-.24em)}
.g-dn{transform:translateY(.24em)}
.g-thin{font-weight:200;font-stretch:62%}
.g-ring{border-radius:50%;outline:1.5px solid #f2f2f2;outline-offset:.06em}
.g-st{clip-path:inset(0 0 52% 0)}
.g-sb{clip-path:inset(48% 0 0 0)}
.g-sl{clip-path:inset(0 52% 0 0)}
.g-sr{clip-path:inset(0 0 0 48%)}
.g-sq{transform:scaleY(.42)}
.g-tall{transform:scaleY(1.45)}
.g-gone{visibility:hidden}
/* The circle that inverts what it passes over. */
.cr-orb{position:absolute;border-radius:50%;background:#fff;mix-blend-mode:difference;pointer-events:none;display:none;z-index:3}
.cr-orb.on{display:block}
/* MOTION & DESIGN's loading line glitches apart as the card leaves; the name card has no loading line. */
.cr-bar.glitch-out{animation:bar-glitch .26s steps(1,end) forwards}
@keyframes bar-glitch{
  0%{clip-path:inset(0 0 0 0);transform:none}
  20%{clip-path:inset(0 62% 0 0);transform:translateX(18px)}
  40%{clip-path:inset(0 12% 0 58%);transform:translateX(-26px) scaleY(3)}
  60%{clip-path:inset(0 70% 0 8%);transform:translateX(40px)}
  80%{clip-path:inset(0 0 0 88%);transform:translateX(-10px) scaleY(2)}
  100%{clip-path:inset(0 100% 0 0)}
}
.cr-bar.gone,.cr.cr-final .cr-bar{display:none}
.cr.cr-final .cr-line-2{width:max-content}
/* STUDIO lands with the name, so it stays in place on the cover (no slide in); the scroll hint still comes in. */
html:not(.intro-done) .cover-foot{opacity:1;transform:none}
html:not(.intro-done) .cover-studio{visibility:hidden}
.cover-scroll{transition:opacity .6s ease .35s}
html:not(.intro-done) .cover-scroll{opacity:0}

/* More slicing and stretching (no thin or squashed letters). */
.g-cut-r{clip-path:inset(0 0 46% 0);transform:translateX(.18em)}
.g-cut-l{clip-path:inset(54% 0 0 0);transform:translateX(-.18em)}
.g-tall{transform:scaleY(1.6);transform-origin:50% 100%}
.g-tall-up{transform:scaleY(1.6);transform-origin:50% 0}
.g-wide{transform:scaleX(1.55)}

/* Marks: a different set per card, glitching in. */
.cr-marks{position:absolute;inset:0;pointer-events:none;color:#f2f2f2}
.m{position:absolute;display:block;animation:m-in .18s steps(3,end) backwards}
.m.off{visibility:hidden}
@keyframes m-in{0%{opacity:0;transform:translateX(-8px)}50%{opacity:1;transform:translateX(6px)}100%{opacity:1;transform:none}}
.m svg{display:block}
.m-sq{width:12px;height:12px;background:#f2f2f2}
.m-dot{width:4px;height:4px;border-radius:50%;background:#f2f2f2}
.m-hollow{width:10px;height:10px;border:1px solid #f2f2f2}
.m-dash{width:22px;height:2px;background:#f2f2f2}
.m-tr{right:0;top:calc(-1 * var(--bar) - 12px)}
.m-tr2{right:24px;top:calc(-1 * var(--bar) - 7px)}
.m-bl{left:0;bottom:calc(-1 * var(--bar) - var(--gap) - 11px)}
.m-tl{left:0;top:calc(-1 * var(--bar) - 12px)}
.m-tr3{right:-18px;top:-2px}
.m-r{right:-40px;top:42%}
.m-r2{right:-40px;top:calc(42% + 6px);width:12px}
.m-br{right:0;bottom:calc(-1 * var(--bar) - var(--gap) - 12px)}
/* The loading line comes back for the name card, in a new place: right aligned, shorter, under STUDIO. */
.cr.cr-final .cr-bar{display:block}
.cr-bar.moved{left:auto;right:0;width:42%}
.cr-bar.glitch-in{animation:bar-glitch .3s steps(1,end) reverse both}
.cr-bar.gone{display:block}
.cr.cr-final .cr-bar.moved,.cr .cr-bar.moved{left:auto;right:0;width:42%}

/* Letter trails instead of stretches: one side of the letter smears out into a streak. */
.g-trail-l{text-shadow:-.08em 0 rgba(242,242,242,.55),-.18em 0 3px rgba(242,242,242,.3),-.34em 0 6px rgba(242,242,242,.14);clip-path:inset(0 0 0 -60%)}
.g-trail-r{text-shadow:.08em 0 rgba(242,242,242,.55),.18em 0 3px rgba(242,242,242,.3),.34em 0 6px rgba(242,242,242,.14);clip-path:inset(0 -60% 0 0)}
/* Depth: the card sits in perspective and slowly turns; light pours out from behind the words in soft
   shafts (volumetric), and the letters carry a faint glow. */
.cr{perspective:1100px}
.cr-block{transform:translate(-50%,-50%) rotateY(-11deg) rotateX(5deg);animation:cr-turn 3.2s cubic-bezier(.45,0,.55,1) forwards;transition:transform .16s ease-out}
@keyframes cr-turn{from{transform:translate(-50%,-50%) rotateY(-14deg) rotateX(6deg)}to{transform:translate(-50%,-50%) rotateY(7deg) rotateX(-3deg)}}
.cr-block.flat{animation:none;transform:translate(-50%,-50%)}
.cr-line{text-shadow:0 0 .5em rgba(255,255,255,.22),0 0 1.4em rgba(255,255,255,.12)}
.cr-rays{position:absolute;left:50%;top:47%;width:150vmax;height:150vmax;transform:translate(-50%,-50%);pointer-events:none;mix-blend-mode:screen;opacity:.5;
  background:repeating-conic-gradient(from 0deg,rgba(255,255,255,.09) 0deg 2.2deg,rgba(255,255,255,0) 2.2deg 7deg);
  -webkit-mask-image:radial-gradient(circle,rgba(0,0,0,1) 0%,rgba(0,0,0,.55) 14%,rgba(0,0,0,0) 42%);mask-image:radial-gradient(circle,rgba(0,0,0,1) 0%,rgba(0,0,0,.55) 14%,rgba(0,0,0,0) 42%);
  filter:blur(14px);animation:cr-rays 6s linear infinite}
.cr-rays::after{content:"";position:absolute;inset:0;background:radial-gradient(ellipse 22% 12% at 50% 50%,rgba(255,255,255,.16),rgba(255,255,255,0) 70%)}
@keyframes cr-rays{to{transform:translate(-50%,-50%) rotate(30deg)}}
@media (prefers-reduced-motion:reduce){.cr-block,.cr-rays{animation:none}}
.cr:not(.cr-final) .cr-line{font-family:"Michroma",var(--ui);font-weight:400;font-stretch:100%;letter-spacing:.4em;margin-right:-.4em}
.cr-rays{display:none}.cr-line{text-shadow:none}
.cr-block{animation:none;transform:translate(-50%,-50%);transition:none}.cr{perspective:none}

/* ==== Intro vignette: the background stays pure black; a dark lens vignette sits on top of everything
   in the intro, so the grain and anything near the edges falls off into black. It fades out with
   the black when the name moves. ==== */
.intro::after{content:"";position:absolute;inset:0;pointer-events:none;z-index:2;
  background:radial-gradient(ellipse 75% 70% at 50% 50%,rgba(0,0,0,0) 40%,rgba(0,0,0,.55) 75%,rgba(0,0,0,.92) 100%)}
.intro.leave::after{opacity:0;transition:opacity .8s ease}
.intro .cr-title{z-index:3}

/* ==== Intro light: a window-light texture (media/light-overlay.jpg, made from iStock-1678062781 with
   ffmpeg: gray16 -> scale 1920 -> gblur sigma 24 -> curves 0/0.2 0.66/0.55 0.78/0.72 0.88/0.93 0.93/1 -> light noise)
   multiplied over the intro, so the
   black stays black and the white text picks up soft light and shadow streaks. It drifts slowly, sits
   over the moving name too, and fades out with the black. ==== */
.intro::before{content:"";position:absolute;inset:-6%;pointer-events:none;z-index:6;
  background:url("media/light-overlay.jpg") center/cover no-repeat;mix-blend-mode:multiply;
  animation:light-drift 9s ease-in-out infinite alternate}
.intro.leave::before{opacity:0;transition:opacity .6s ease}
@keyframes light-drift{from{transform:translate3d(-2%,-1.5%,0) scale(1.02)}to{transform:translate3d(2%,1.5%,0) scale(1.06)}}

/* Rolling words swap faster (1.5s each, .45s slide). */
.role-word{transition-duration:.45s}

/* ==== Intro bloom: a film-style glow around the white, a tight halo plus a wide soft one. It's a
   filter on the whole block so it follows every glitch, slice and cut. The moving name starts with
   the same bloom and loses it on the way down, so the hand-off to the cover's plain name is clean. ==== */
.cr-block,.intro .cr-title{filter:drop-shadow(0 0 2px rgba(255,255,255,.34)) drop-shadow(0 0 10px rgba(255,255,255,.16)) drop-shadow(0 0 34px rgba(255,255,255,.09))}
.intro.leave .cr-title{filter:drop-shadow(0 0 0 rgba(255,255,255,0)) drop-shadow(0 0 0 rgba(255,255,255,0)) drop-shadow(0 0 0 rgba(255,255,255,0));transition:filter 1.1s ease}
.cr-edge,.cr-count,.cr-tc{filter:drop-shadow(0 0 6px rgba(255,255,255,.25))}

/* ==== Intro grain on the letters: SVG filters built in intro.js (#cr-grain, #cr-grain-fly). The grain
   goes on before the bloom, so the glow comes off the grainy letters. On the moving name the grain
   sits on an inner span, so the bloom on the outer element can still fade by transition. ==== */
.intro > svg{position:absolute;width:0;height:0}
.cr-line{filter:url(#cr-grain)}
.intro .cr-title-in{display:inline-block;filter:url(#cr-grain-fly)}

/* Light overlay scaled up about 1.6x around its brightest streak, and that streak moved toward the
   middle of the screen, so the lit part covers more of the text. */
.intro::before{transform-origin:62% 58%;animation-name:light-drift-big}
@keyframes light-drift-big{from{transform:translate3d(-14%,-9%,0) scale(1.58)}to{transform:translate3d(-10%,-7%,0) scale(1.66)}}

/* ==== Film look on the big type in the slides (design test): the same bloom as the intro plus
   fuzzy crawling edges (#site-grain, built in main.js). The moving intro name carries both, so it
   lands on the cover name with no change. ==== */
.site-fx{position:absolute;width:0;height:0}
.cover-name,.cover-studio span,.project-title,.contact-line,.sec-head,.wl-title,.svc h3,.about-line,.intro .cr-title{
  filter:url(#site-grain) drop-shadow(0 0 2px rgba(255,255,255,.34)) drop-shadow(0 0 10px rgba(255,255,255,.16)) drop-shadow(0 0 34px rgba(255,255,255,.09))}
.intro.leave .cr-title{transition:none;filter:url(#site-grain) drop-shadow(0 0 2px rgba(255,255,255,.34)) drop-shadow(0 0 10px rgba(255,255,255,.16)) drop-shadow(0 0 34px rgba(255,255,255,.09))}
.intro .cr-title-in{filter:none}

/* Glow turned down a touch everywhere (above). The film look also goes on the smaller cover and project
   lines: "Designer for", "Scroll to see more", the project type and the logline. */
.cover-role,.cover-scroll,.project-type,.project-blurb.is-short{
  filter:url(#site-grain) drop-shadow(0 0 1.5px rgba(255,255,255,.38)) drop-shadow(0 0 8px rgba(255,255,255,.16))}
/* The light falls across the big titles, barely: a faint version of the window-light texture
   (media/light-text.jpg, curves lifted so it only ranges from about 78% to 100%) fills the letters. */
.cover-name,.cover-studio span,.project-title,.contact-line,.sec-head,.wl-title,.svc h3,.about-line,.intro .cr-title{
  background:url("media/light-text.jpg") 60% 55%/cover no-repeat;-webkit-background-clip:text;background-clip:text;color:transparent}
.about-line em{color:transparent}

/* Glow in Add mode, like After Effects: the text and its bloom add their light onto the picture
   behind (plus-lighter), so the halo brightens the footage instead of laying grey over it.
   Grain edges up a bit (displacement 2.4) and the glow down a touch (above). */
.cover-name,.cover-studio span,.project-title,.contact-line,.sec-head,.wl-title,.svc h3,.about-line,
.cover-role,.cover-scroll,.project-type,.project-blurb.is-short{mix-blend-mode:plus-lighter}

/* ==== Hand-off and small-text grain ====
   The cover name and STUDIO stay in normal blending, the same as the intro's moving copy, so nothing
   changes at the swap. The intro's vignette and light fade across the whole move instead of snapping off
   early. Smaller lines use a lighter grain (#site-grain-sm). */
.cover-name,.cover-studio span{mix-blend-mode:normal}
.intro.leave::after{transition:opacity 1.1s ease}
.intro.leave::before{transition:opacity 1.1s ease}
.cover-studio span,.cover-role,.cover-scroll,.project-type,.project-blurb.is-short,.svc h3,.wl-title{
  filter:url(#site-grain-sm) drop-shadow(0 0 1.5px rgba(255,255,255,.3)) drop-shadow(0 0 8px rgba(255,255,255,.13))}

/* ==== Intro exit: the black breaks into a grid of square tiles (built in intro.js) that drop out in
   random order, uncovering the reel tile by tile. The intro's own black goes at once, the tiles carry
   it. Tiles sit under the vignette, the light and the moving name. ==== */
.intro.grid-out,.intro.leave.grid-out{background:transparent;transition:none}
.cr-grid{position:absolute;inset:0;display:grid;z-index:0;pointer-events:none;overflow:hidden}
.cr-grid i{background:#000;margin:-.5px}

/* Grid tiles: bigger, with grainy soft edges (#cr-grain-tiles in intro.js). */
.cr-grid{filter:url(#cr-grain-tiles);inset:-14px}

/* The light overlay multiplies onto black; once the grid opens there is no black under it and it would show
   as a white wash over the reel, so it fades out fast as the grid starts. */
.intro.grid-out::before{opacity:0;transition:opacity .25s ease}

/* ==== A very faint version of the window light on the intro's black itself (same image, same drift and
   placement as the light on the text, at 7% opacity). Goes with the black when the grid opens. ==== */
.intro .cr::before{content:"";position:absolute;inset:-6%;z-index:-1;pointer-events:none;opacity:.07;
  background:url("media/light-overlay.jpg") center/cover no-repeat;transform-origin:62% 58%;
  animation:light-drift-big 9s ease-in-out infinite alternate;transition:opacity .25s ease}
.intro.grid-out .cr::before{opacity:0}

/* The faint light on the intro's black, redone: its own very dark image (media/light-bg.png, 0 to 4 of 255,
   blurred hard and dithered so there are no bands or blocks), shown 1:1 with only a slow small drift. */
.intro .cr::before{background:url("media/light-bg.png") 62% 58%/cover no-repeat;opacity:1;inset:-3%;
  animation:light-bg-drift 9s ease-in-out infinite alternate}
.intro.grid-out .cr::before{opacity:0}
@keyframes light-bg-drift{from{transform:translate3d(-1.5%,-1%,0)}to{transform:translate3d(1.5%,1%,0)}}

/* Gate weave on all text (values from main.js). Uses the separate `translate` property so it never
   fights the transforms the slides and the intro already animate. */
.topbar-inner,.cover-top,.project-text,.info-inner,.contact-line,.intro .cr,.cr-title{translate:var(--weave-x,0) var(--weave-y,0)}

/* The cover text sits at z-index 45, above the project page (39), so it showed through when a project
   opened. Hide it while a project page is open. */
html.detail-open .cover-top{opacity:0;visibility:hidden;transition:opacity .3s ease,visibility 0s .3s}

/* Project text always blends as its own group. Its Add-mode type used to blend with the reel only once the
   slide had fully settled (the fade-in blur ends), so the text brightened in one step at the end. */
.project-text{isolation:isolate}

/* The slide bars on the left get the same film look as the type: soft grain edges, a slight glow and
   the gate weave. */
.slide-bars{filter:url(#site-grain-sm) drop-shadow(0 0 1.5px rgba(255,255,255,.3)) drop-shadow(0 0 6px rgba(255,255,255,.12));translate:var(--weave-x,0) var(--weave-y,0)}

/* ==== Project page, restyled ====
   Big title on the reel (bottom-left, like the slides), a short story beside the meta line, an edited
   clip grid (wide clips take a full row, the rest pair up), and an ending: the next project as a big
   image link, then a contact line. Same film look as the slides (grain, glow, faint light, gate weave). */
.d-stage{position:relative}
.d-stage .d-hero{position:absolute;left:clamp(18px,2.2vw,40px);bottom:clamp(16px,2.4vw,40px);z-index:3;pointer-events:none;opacity:0;transform:translateY(14px);transition:opacity .7s ease .1s,transform .9s var(--ease) .1s}
.detail-lead::after{content:"";position:absolute;inset:auto 0 0 0;height:55%;z-index:2;pointer-events:none;background:linear-gradient(to top,rgba(0,0,0,.62),rgba(0,0,0,0));opacity:0;transition:opacity .7s ease}
.detail.shown .d-stage .d-hero{opacity:1;transform:none}
.detail.shown .detail-lead::after{opacity:1}
.d-type{font-family:"Archivo",var(--ui);font-stretch:125%;font-weight:600;font-size:clamp(10px,.75vw,13px);letter-spacing:.24em;text-transform:uppercase;color:#f2f2f2;margin:0 0 clamp(8px,1.2vh,16px)}
.d-title{margin:0;font-family:var(--display);font-stretch:125%;font-weight:800;font-size:clamp(34px,5vw,96px);line-height:.94;letter-spacing:-.01em;text-transform:uppercase}
.d-title span{display:block;white-space:nowrap}
.detail-info{grid-template-columns:minmax(0,1fr) minmax(0,1.25fr)}
.d-name{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}   /* the big title on the reel carries it; kept for screen readers */
.d-meta{margin-top:0}
.d-story{margin:0;font-size:clamp(17px,1.35vw,24px);line-height:1.5;color:#e4e4e4;max-width:40ch}
.d-grid{grid-template-columns:repeat(2,1fr);row-gap:clamp(28px,4vh,52px)}
.d-grid .d-wide{grid-column:1 / -1}
.d-grid-stills{grid-template-columns:repeat(3,1fr)}
.d-item figcaption{font-size:13px;margin-top:14px}
@media (max-width:760px){.d-grid,.d-grid-stills{grid-template-columns:1fr}}
.d-end{margin-top:clamp(80px,12vh,160px);opacity:0;transition:opacity .8s ease .3s}
.detail.shown .d-end{opacity:1}
.d-next{position:relative;display:block;width:100%;aspect-ratio:21/9;overflow:hidden;border:0;padding:0;background:#000;color:#f2f2f2;text-align:left;cursor:pointer}
.d-next-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.42;filter:blur(6px) saturate(.85);transform:scale(1.06);transition:opacity .7s ease,filter .9s var(--ease),transform 1.2s var(--ease)}
.d-next:hover .d-next-bg{opacity:.8;filter:none;transform:scale(1)}
.d-next::after{content:"";position:absolute;inset:auto 0 0 0;height:60%;background:linear-gradient(to top,rgba(0,0,0,.6),rgba(0,0,0,0));pointer-events:none}
.d-next-k{position:absolute;left:clamp(18px,2.2vw,40px);top:clamp(16px,2.4vw,40px);z-index:1;font:500 12px/1 var(--ui);letter-spacing:.2em;text-transform:uppercase;color:#cfcfcf}
.d-next-t{position:absolute;left:clamp(18px,2.2vw,40px);bottom:clamp(16px,2.4vw,40px);z-index:1;font-family:var(--display);font-stretch:125%;font-weight:800;font-size:clamp(34px,5vw,96px);line-height:.94;letter-spacing:-.01em;text-transform:uppercase}
.d-next-t span{display:block;white-space:nowrap}
.d-cta{display:flex;justify-content:space-between;align-items:center;gap:24px;flex-wrap:wrap;margin-top:clamp(48px,7vh,90px);padding-top:clamp(28px,4vh,44px);border-top:1px solid #1e1e1e}
.d-cta-line{margin:0;font-family:var(--display);font-stretch:125%;font-weight:800;font-size:clamp(20px,2vw,38px);text-transform:uppercase;letter-spacing:-.005em}
.d-cta-btn{display:inline-flex;align-items:baseline;gap:14px;padding:16px 28px;border:1px solid rgba(242,242,242,.55);border-radius:999px;background:none;color:#f2f2f2;font-family:"Archivo",var(--ui);font-stretch:125%;font-weight:600;font-size:14px;letter-spacing:.2em;text-transform:uppercase;cursor:pointer;transition:background .35s ease,color .35s ease}
.d-cta-btn span{font-size:11px;letter-spacing:.16em;color:#9a9a9a;transition:color .35s ease}
.d-cta-btn:hover{background:#f2f2f2;color:#000}.d-cta-btn:hover span{color:#333}
/* film look on the new type */
.d-title,.d-next-t,.d-cta-line{filter:url(#site-grain) drop-shadow(0 0 2px rgba(255,255,255,.34)) drop-shadow(0 0 10px rgba(255,255,255,.16)) drop-shadow(0 0 34px rgba(255,255,255,.09));
  background:url("media/light-text.jpg") 60% 55%/cover no-repeat;-webkit-background-clip:text;background-clip:text;color:transparent}
.d-type,.d-next-k,.d-meta,.d-index,.d-item figcaption{filter:url(#site-grain-sm) drop-shadow(0 0 1.5px rgba(255,255,255,.22))}
.detail-inner{translate:var(--weave-x,0) var(--weave-y,0)}

/* The project title travels with the reel: while flying (and while open) the page's own title is shown
   at once, above the flying reel; the reel frame stays see-through until the reel lands in it. */
.detail-inner{position:relative;z-index:6}
.detail.fly .d-stage .d-hero{opacity:1;transform:none;transition:none}
.detail:not(.shown) .detail-lead{background:transparent}

/* ==== Project page, round 2 ====
   Story: two big balanced lines. Role: a label, a hairline that draws across, then the role.
   Next project: its reel plays blurred, the cursor paints it clear (canvas on top), type label at the
   top. Switching to it happens in place (.d-switch is the reel growing into the next page's frame). */
.detail-info{display:block}
.d-index{margin:0 0 clamp(14px,2vh,22px)}
.d-story{max-width:none;font-family:"Archivo",var(--ui);font-stretch:125%;font-weight:600;font-size:clamp(22px,2.15vw,44px);line-height:1.18;letter-spacing:-.01em;color:#f2f2f2;text-wrap:balance}
.d-role{display:flex;align-items:center;gap:clamp(14px,1.6vw,26px);margin-top:clamp(22px,3.4vh,40px)}
.d-role-k,.d-role-v{font-family:"Archivo",var(--ui);font-stretch:125%;font-weight:600;font-size:clamp(11px,.85vw,14px);letter-spacing:.24em;text-transform:uppercase;white-space:nowrap}
.d-role-k{color:#8a8a8a}
.d-role-v{color:#f2f2f2}
.d-role-rule{flex:1;height:1px;background:linear-gradient(to right,rgba(242,242,242,.6),rgba(242,242,242,.18));transform:scaleX(0);transform-origin:left;transition:transform 1.2s var(--ease) .35s}
.detail.shown .d-role-rule{transform:none}
.d-role-k,.d-role-v{filter:url(#site-grain-sm) drop-shadow(0 0 1.5px rgba(255,255,255,.22))}

.d-next-v{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;filter:blur(10px) saturate(.9);transform:scale(1.06);opacity:.75}
.d-next-c{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.d-next-bg{display:none}
.d-next-type{position:absolute;left:clamp(18px,2.2vw,40px);top:clamp(16px,2.4vw,40px);z-index:1;font-family:"Archivo",var(--ui);font-stretch:125%;font-weight:600;font-size:clamp(10px,.75vw,13px);letter-spacing:.24em;text-transform:uppercase;color:#f2f2f2;line-height:1.2;filter:url(#site-grain-sm) drop-shadow(0 0 1.5px rgba(255,255,255,.22))}
.d-next-k{left:auto;right:clamp(18px,2.2vw,40px)}
.d-next::after{z-index:0}
.d-switch{position:fixed;inset:0;z-index:5;overflow:hidden;pointer-events:none}
.d-switch-v{position:absolute;left:0;top:0;object-fit:cover;filter:none;opacity:1;transform-origin:0 0;will-change:transform}

/* Next project lifting off: its backing and paint layer go so the lifted reel (under the page) shows. */
.d-next.d-next-lift{background:transparent}
.d-next.d-next-lift .d-next-c,.d-next.d-next-lift::after{display:none}

/* Gate weave on the project page: on the text and lines only, never on the videos (moving a video by
   a fraction of a pixel showed a thin flickering edge). Next project: hovering clears the blur. */
.detail-inner{translate:none}
.detail-back,.d-stage .d-hero,.detail-info,.d-item figcaption,.d-label,.d-next-type,.d-next-k,.d-next-t,.d-cta{translate:var(--weave-x,0) var(--weave-y,0)}
.d-next-v{transition:filter .7s ease,transform 1.1s var(--ease),opacity .7s ease}
.d-next:hover .d-next-v{filter:none;transform:scale(1);opacity:1}

/* Next project block: "Next project" larger at the top left; the type sits right above the title at the
   bottom left, laid out exactly like the title in the project page's reel frame, so on the switch both
   just slide and shrink together without rearranging. While switching, the cursor label and the slides'
   text stay hidden (they could flash through for a frame). */
.d-next-k{left:clamp(18px,2.2vw,40px);right:auto;top:clamp(16px,2.4vw,40px);font-family:"Archivo",var(--ui);font-stretch:125%;font-weight:600;font-size:clamp(14px,1.25vw,24px);letter-spacing:.2em;color:#f2f2f2;filter:url(#site-grain-sm) drop-shadow(0 0 1.5px rgba(255,255,255,.25))}
.d-next-head{position:absolute;left:clamp(18px,2.2vw,40px);bottom:clamp(16px,2.4vw,40px);z-index:1;text-align:left}
.d-next-head .d-next-type{position:static;display:block;margin:0 0 clamp(8px,1.2vh,16px)}
.d-next-head .d-next-t{position:static;display:block}
html.d-switching .cursor-tag,html.d-switching .cursor-label{opacity:0}
html.d-switching .project-text{visibility:hidden}
.d-type{line-height:1.2}

/* Back: bigger and easier to spot. Story: letters start faint and fill in as you scroll (detail.js). */
.detail-back{gap:12px;font-size:15px;letter-spacing:.22em;margin-bottom:20px;padding:6px 0;color:#e6e6e6}
.detail-back svg{width:18px;height:18px}
.d-story .w{display:inline-block;white-space:nowrap}
.d-story .c{color:rgba(242,242,242,.16);transition:color .25s ease}
.d-story .c.on{color:#f2f2f2}
.detail-back{font-family:"Archivo",var(--ui);font-stretch:125%;font-weight:600;font-size:14px;letter-spacing:.24em}

/* ==== Before/after wipe (project page) ====
   The finished shot plays underneath; the original photograph sits on top, clipped to the left of the
   handle (--x, 0 to 100). Labels sit in the top corners, a hairline handle with a round grip, and a
   caption laid out like a credit block: big number, title, text, tags, source line. */
.d-body{margin:clamp(18px,2.6vh,30px) 0 0;max-width:60ch;font-size:clamp(15px,1.05vw,19px);line-height:1.6;color:#bdbdbd}
.cmp{--x:100;position:relative;aspect-ratio:16/9;overflow:hidden;background:#000;cursor:ew-resize;touch-action:pan-y;user-select:none}
.cmp video,.cmp-before img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;pointer-events:none}
.cmp-before{position:absolute;inset:0;clip-path:inset(0 calc(100% - var(--x) * 1%) 0 0)}
.cmp-before img{filter:contrast(1.04)}
.cmp-handle{position:absolute;top:0;bottom:0;left:calc(var(--x) * 1%);width:0;pointer-events:none}
.cmp-handle i{position:absolute;top:0;bottom:0;left:-.5px;width:1px;background:rgba(242,242,242,.85);box-shadow:0 0 12px rgba(255,255,255,.35)}
.cmp-handle span{position:absolute;top:50%;left:0;width:54px;height:54px;margin:-27px 0 0 -27px;border-radius:50%;border:1px solid rgba(242,242,242,.8);display:grid;place-items:center;color:#f2f2f2;background:rgba(0,0,0,.25);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);transition:transform .3s var(--ease)}
.cmp-handle span svg{width:20px;height:12px}
.cmp.dragging .cmp-handle span{transform:scale(.88)}
.cmp-tag{position:absolute;top:clamp(14px,1.8vw,26px);z-index:2;font-family:"Archivo",var(--ui);font-stretch:125%;font-weight:600;font-size:clamp(10px,.72vw,12px);letter-spacing:.22em;text-transform:uppercase;color:#f2f2f2;pointer-events:none;transition:opacity .4s ease}
.cmp-tag-l{left:clamp(16px,2vw,30px)}
.cmp-tag-r{right:clamp(16px,2vw,30px)}
.cmp:not(.dragging) .cmp-tag-l{opacity:calc(var(--x) / 30)}
.cmp:not(.dragging) .cmp-tag-r{opacity:calc((100 - var(--x)) / 30)}
.cmp .cmp-fs{z-index:3}
.cmp-cap{display:grid;grid-template-columns:auto minmax(0,1fr);gap:clamp(18px,2.4vw,44px);margin-top:clamp(22px,3vh,36px);align-items:start}
.cmp-n{font-family:var(--display);font-stretch:125%;font-weight:800;font-size:clamp(40px,4.4vw,84px);line-height:.8;color:transparent;-webkit-text-stroke:1px rgba(242,242,242,.55)}
.cmp-title{margin:0 0 12px;font-family:"Archivo",var(--ui);font-stretch:125%;font-weight:700;font-size:clamp(18px,1.6vw,30px);text-transform:uppercase;letter-spacing:-.005em;color:#f2f2f2}
.cmp-text{margin:0;max-width:62ch;font-size:clamp(15px,1.05vw,19px);line-height:1.6;color:#cfcfcf}
.cmp-tags{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0 0}
.cmp-tags span{padding:7px 12px;border:1px solid rgba(242,242,242,.28);border-radius:999px;font-family:"Archivo",var(--ui);font-stretch:125%;font-weight:600;font-size:11px;letter-spacing:.18em;text-transform:uppercase;color:#dcdcdc}
.cmp-credit{margin:16px 0 0;font-size:12px;letter-spacing:.04em;color:#6f6f6f}
.cmp-title,.cmp-tag{filter:url(#site-grain-sm) drop-shadow(0 0 1.5px rgba(255,255,255,.22))}
.cmp-cap{translate:var(--weave-x,0) var(--weave-y,0)}
@media (max-width:760px){.cmp-cap{grid-template-columns:1fr}}

/* ==== Project page copy, round 3, and the before/after wipe redone ==== */
.d-top{display:flex;justify-content:space-between;align-items:center;margin:0 0 20px}
.d-top .detail-back{margin:0}
.d-top .d-index{margin:0;font-family:"Archivo",var(--ui);font-stretch:125%;font-weight:600;font-size:14px;letter-spacing:.24em;color:#8a8a8a;opacity:0;transition:opacity .5s ease}
.detail.shown .d-top .d-index{opacity:1}
.d-top{translate:var(--weave-x,0) var(--weave-y,0)}
.detail-info .d-role{margin:0 0 clamp(22px,3.4vh,40px)}
.d-body{display:none}

/* Wipe: the original sits over the finished shot, clipped at the handle. The handle is a fine line with
   a soft glow, a slim grip, and BEFORE / AFTER tags that ride along either side of it. */
.cmp-tag,.cmp-handle span:not(.cmp-grip):not(.cmp-side){display:none}
.cmp{cursor:grab}
.cmp.dragging{cursor:grabbing}
.cmp-line{position:absolute;top:0;bottom:0;left:-1px;width:2px;background:#f2f2f2;box-shadow:0 0 18px rgba(255,255,255,.45),0 0 2px rgba(255,255,255,.9)}
.cmp-handle .cmp-grip{display:block;border:0;backdrop-filter:none;-webkit-backdrop-filter:none;position:absolute;top:50%;left:0;width:10px;height:64px;margin:-32px 0 0 -5px;border-radius:999px;background:#f2f2f2;box-shadow:0 0 0 6px rgba(242,242,242,.14),0 4px 24px rgba(0,0,0,.5);transition:transform .35s var(--ease),box-shadow .35s ease}
.cmp:hover .cmp-handle .cmp-grip{transform:scaleY(1.12);box-shadow:0 0 0 9px rgba(242,242,242,.18),0 4px 24px rgba(0,0,0,.5)}
.cmp.dragging .cmp-handle .cmp-grip{transform:scaleY(.9)}
.cmp-handle .cmp-side{display:block;width:auto;height:auto;margin:0;border:0;border-radius:0;background:none;backdrop-filter:none;-webkit-backdrop-filter:none;left:auto;position:absolute;top:50%;transform:translateY(-50%);font-family:"Archivo",var(--ui);font-stretch:125%;font-weight:600;font-size:11px;letter-spacing:.24em;text-transform:uppercase;color:#f2f2f2;white-space:nowrap;text-shadow:0 1px 10px rgba(0,0,0,.7);transition:opacity .3s ease}
.cmp-handle .cmp-side-l{right:22px;left:auto}
.cmp-handle .cmp-side-r{left:22px}
.cmp-handle .cmp-side-l{opacity:clamp(0,calc((var(--x) - 8) / 10),1)}
.cmp-handle .cmp-side-r{opacity:clamp(0,calc((92 - var(--x)) / 10),1)}

/* Caption: the same language as the role line, then the text in the story's typeface. */
.cmp-cap{display:block;margin-top:clamp(24px,3.4vh,40px);grid-template-columns:none}
.cmp-n,.cmp-tags,.cmp-credit{display:none}
.cmp-head{display:flex;align-items:center;gap:clamp(14px,1.6vw,26px);margin:0 0 clamp(14px,2vh,22px)}
.cmp-k,.cmp-title{font-family:"Archivo",var(--ui);font-stretch:125%;font-weight:600;font-size:clamp(11px,.85vw,14px);letter-spacing:.24em;text-transform:uppercase;white-space:nowrap;margin:0}
.cmp-k{color:#8a8a8a}
.cmp-title{color:#f2f2f2}
.cmp-rule{flex:1;height:1px;background:linear-gradient(to right,rgba(242,242,242,.5),rgba(242,242,242,.15))}
.cmp-text{margin:0;max-width:52ch;font-family:"Archivo",var(--ui);font-stretch:125%;font-weight:500;font-size:clamp(16px,1.25vw,22px);line-height:1.45;letter-spacing:-.005em;text-transform:none;color:#d6d6d6}
.cmp-k,.cmp-title,.cmp-side{filter:url(#site-grain-sm) drop-shadow(0 0 1.5px rgba(255,255,255,.22))}
.d-item figcaption.cmp-cap{display:block;font:inherit;letter-spacing:normal;text-transform:none;color:inherit}

/* Wipe: no halo ring on the grip; the caption is a single centred line of copy with room around it. */
.cmp-handle .cmp-grip,.cmp:hover .cmp-handle .cmp-grip{box-shadow:0 4px 24px rgba(0,0,0,.5)}
.d-item figcaption.cmp-cap{margin:clamp(44px,7vh,84px) auto clamp(36px,6vh,72px);text-align:center}
.cmp-text{margin:0 auto;max-width:48ch;font-size:clamp(18px,1.5vw,28px);line-height:1.5;color:#e2e2e2;text-wrap:balance}

/* The wipe runs itself now: no drag cursor, no grab hand. */
.cmp,.cmp.dragging{cursor:default}
.cmp{cursor:grab}.cmp.dragging{cursor:grabbing}

/* Wipe caption, restyled: a short centred line in the role-line type (small caps, wide tracking), framed
   by two fine rules, instead of a big paragraph. */
.d-item figcaption.cmp-cap{display:flex;align-items:center;gap:clamp(16px,2vw,32px);margin:clamp(30px,4.5vh,52px) 0 clamp(40px,6vh,72px)}
.d-item figcaption.cmp-cap::before,.d-item figcaption.cmp-cap::after{content:"";flex:1;height:1px;background:rgba(242,242,242,.2)}
.cmp-text{flex:0 1 auto;max-width:62ch;margin:0;font-family:"Archivo",var(--ui);font-stretch:125%;font-weight:600;font-size:clamp(11px,.85vw,14px);line-height:1.9;letter-spacing:.2em;text-transform:uppercase;text-align:center;color:#d8d8d8;text-wrap:balance;filter:url(#site-grain-sm) drop-shadow(0 0 1.5px rgba(255,255,255,.2))}
/* Caption left-aligned to match the text above, a bit larger; the rule runs off to the right of it. */
.d-item figcaption.cmp-cap::before{display:none}
.cmp-text{text-align:left;max-width:58ch;font-size:clamp(13px,1.05vw,17px);line-height:1.8}
.cmp-text{text-wrap:pretty;max-width:64ch}
/* The big story paragraph uses the caption's type (wide-tracked capitals), just larger. The caption
   itself drops the grain and glow so it reads crisp. */
.d-story{font-family:"Archivo",var(--ui);font-stretch:125%;font-weight:600;font-size:clamp(18px,1.6vw,30px);line-height:1.6;letter-spacing:.14em;text-transform:uppercase;text-wrap:pretty;max-width:none}
.cmp-text{filter:none}

/* EJ in the name's lettering (same family, weight, width and tracking as ELIJAH JAMES). */
.brand.brand-ej{font-family:var(--display);font-weight:800;font-stretch:125%;letter-spacing:-.01em;-webkit-text-stroke:0;text-transform:uppercase}
/* Slide titles: plain off-white fill instead of the faint light texture (background-clip:text), and
   normal blending. The textured fill can fail to draw while its slide is fading in, so the title
   would sit invisible and then appear at once. */
.project-title{background:none;-webkit-background-clip:border-box;background-clip:border-box;color:#f2f2f2;mix-blend-mode:normal}
/* "EJ Studio": EJ in the name's lettering, STUDIO beside it in the cover's STUDIO style. */
.brand.brand-ej{display:inline-flex;align-items:baseline;gap:.55em;cursor:pointer}
.brand-studio{font-family:"Archivo",var(--ui);font-stretch:125%;font-weight:700;font-size:.42em;letter-spacing:.42em;text-transform:uppercase;margin-right:-.42em}

/* Slide titles follow the scroll from the moment the intro ends. (They used to keep the intro's delayed
   fade for another 1.5 s, so scrolling right after a refresh held the title invisible, then snapped it in.) */
html.intro-done .project-text{transition:none}

/* EJS: one size. Home slides into the nav when you're away from the cover and slides back out on it. */
.brand-studio{display:none}
.brand.brand-ej{gap:0}
.nav-home{max-width:0;opacity:0;overflow:hidden;white-space:nowrap;margin-right:calc(-1 * clamp(20px,2.6vw,44px));pointer-events:none;
  transition:max-width .7s var(--ease),margin-right .7s var(--ease),opacity .45s ease}
html.show-home .nav-home{max-width:8em;opacity:1;margin-right:0;pointer-events:auto;transition:max-width .7s var(--ease),margin-right .7s var(--ease),opacity .5s ease .15s}

/* Top bar: EJS on the left; the page links and Contact together on the right. Contact is a white rounded
   rectangle with the word cut out of it (Screen blending turns the black letters see-through), in the
   cover STUDIO lettering. */
.topbar-inner{display:flex;justify-content:space-between;align-items:center}
.topbar-inner .nav-links{margin-left:auto;margin-right:clamp(24px,2.8vw,48px)}
.nav-contact,.nav-contact:hover,.nav-contact:focus-visible{font-family:"Archivo",var(--ui);font-stretch:125%;font-weight:700;letter-spacing:.42em;text-transform:uppercase;
  padding:.9em 1.15em .9em 1.57em;border:0;border-radius:6px;background:#fff;color:#000;mix-blend-mode:screen;outline:none}
.nav-contact{transition:transform .35s var(--ease),opacity .35s ease}
.nav-contact:hover{transform:translateY(-1px);opacity:.9}
/* Real cut-out Contact (SVG mask, main.js): the label text itself is invisible and only sizes the box. */
.nav-contact,.nav-contact:hover,.nav-contact:focus-visible{position:relative;background:none;color:transparent;mix-blend-mode:normal}
.contact-cut{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}
.contact-cut-bg{fill:#f2f2f2;transition:fill .3s ease}
.nav-contact:hover .contact-cut-bg{fill:#fff}

/* Page links in full white, and a soft dark vignette across the top of the screen (fixed, under the top
   bar) so the nav reads against bright footage. */
.nav-link{color:#fff}
.topbar::before{content:"";position:absolute;left:0;right:0;top:0;height:clamp(120px,18vh,220px);pointer-events:none;z-index:-1;
  background:linear-gradient(to bottom,rgba(0,0,0,.5) 0%,rgba(0,0,0,.28) 45%,rgba(0,0,0,0) 100%)}
/* The top vignette is its own layer under the top bar (not inside it): inside, it sat under the bar's
   blur band and made that band redraw, which flashed black as the page loaded. It fades in with the bar. */
.topbar::before{content:none}
.top-vignette{position:fixed;left:0;right:0;top:0;height:clamp(120px,18vh,220px);z-index:49;pointer-events:none;opacity:0;
  background:linear-gradient(to bottom,rgba(0,0,0,.5) 0%,rgba(0,0,0,.28) 45%,rgba(0,0,0,0) 100%);transition:opacity .8s ease .45s}
html.intro-done .top-vignette{opacity:1}

/* ==== Contact form: underlined fields in the site's small wide capitals, a white Send button in the
   Contact button's shape. ==== */
.contact-slide{align-items:center}
.contact-wrap{width:min(100%,1100px)}
.cform{margin-top:clamp(36px,6vh,72px)}
.cform-k{margin:0 0 clamp(18px,3vh,30px);font-family:"Archivo",var(--ui);font-stretch:125%;font-weight:600;font-size:clamp(11px,.85vw,14px);letter-spacing:.24em;text-transform:uppercase;color:#8a8a8a}
.cform-row{display:grid;grid-template-columns:1fr 1fr;gap:clamp(20px,3vw,48px)}
.cf{display:block;margin-bottom:clamp(20px,3vh,32px)}
.cf span{display:block;margin-bottom:8px;font-family:"Archivo",var(--ui);font-stretch:125%;font-weight:600;font-size:11px;letter-spacing:.22em;text-transform:uppercase;color:#cfcfcf}
.cf input,.cf textarea{width:100%;padding:8px 0 12px;border:0;border-bottom:1px solid rgba(242,242,242,.3);border-radius:0;background:transparent;color:#f2f2f2;
  font-family:"Archivo",var(--ui);font-stretch:125%;font-weight:500;font-size:clamp(15px,1.1vw,19px);outline:none;resize:none;transition:border-color .3s ease}
.cf input:focus,.cf textarea:focus{border-bottom-color:#f2f2f2}
.cf.bad input,.cf.bad textarea{border-bottom-color:#f2f2f2;border-bottom-width:2px}
.cf.bad span{color:#fff}
.cform-hp{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}
.cform-foot{display:flex;justify-content:space-between;align-items:center;gap:20px}
.cform-note{margin:0;font-family:"Archivo",var(--ui);font-stretch:125%;font-weight:600;font-size:12px;letter-spacing:.18em;text-transform:uppercase;color:#cfcfcf}
.cform-send{padding:.95em 1.4em .95em 1.82em;border:0;border-radius:6px;background:#f2f2f2;color:#000;cursor:pointer;
  font-family:"Archivo",var(--ui);font-stretch:125%;font-weight:700;font-size:clamp(12px,.95vw,15px);letter-spacing:.42em;text-transform:uppercase;transition:background .3s ease,transform .3s var(--ease)}
.cform-send:hover{background:#fff;transform:translateY(-1px)}
.cform.sent .cform-row,.cform.sent .cf-wide,.cform.sent .cform-send{opacity:.25;pointer-events:none;transition:opacity .5s ease}
@media (max-width:760px){.cform-row{grid-template-columns:1fr}}

/* ==== About, redone again (layout after his reference: small intro columns up top, one giant word,
   and a full-width sliver along the bottom holding the Killing Satoshi before/after) ====
   The giant word sits in shadow with the window light (media/light-about.png) falling across it and
   the wall behind; the light follows the cursor a little and flickers faintly. */
.about-slide{align-items:stretch;padding-bottom:0;padding-left:var(--ink-l,var(--text-x));padding-right:var(--ink-r,var(--text-x))}
.ab-inner{display:grid;grid-template-rows:auto auto 1fr;height:100%;gap:clamp(16px,2.6vh,32px)}
/* ABOUT top left, the facts top right, centred on it. */
.ab-head{display:flex;justify-content:space-between;align-items:center;gap:clamp(20px,3vw,60px)}
/* The paragraph runs the full width between the margins. */
.ab-intro{margin:0;font-family:"Archivo",var(--ui);font-stretch:125%;font-weight:500;font-size:clamp(15px,1.15vw,22px);line-height:1.55;color:#d6d6d6;text-wrap:pretty;
  filter:url(#site-grain-sm) drop-shadow(0 0 1.5px rgba(255,255,255,.18))}
.ab-in{opacity:0;transform:translateY(16px);transition:opacity .9s ease .2s,transform 1s var(--ease) .2s}
.ab-on .ab-in{opacity:1;transform:none}
.ab-stage{position:relative}
.ab-say{margin:0;font-family:var(--display);font-stretch:125%;font-weight:800;text-transform:uppercase;font-size:min(10vw,15vh);line-height:.9;letter-spacing:-.02em}
.ab-l{display:block;padding:.05em 0 .03em;white-space:nowrap;clip-path:inset(0 -1em 0 -1em)}
.ab-on .ab-l{clip-path:inset(-.6em -1em -.6em -1em);transition:clip-path 0s 1.5s}
.ab-l>span{display:inline-block;transform:translateY(110%);transition:transform 1.1s var(--ease) .1s}
.ab-on .ab-l>span{transform:none}
.ab-dim{color:#1d1d1d;filter:url(#site-grain)}
.ab-lit{position:absolute;inset:0;pointer-events:none;mix-blend-mode:plus-lighter;opacity:0}
.ab-on .ab-lit{opacity:var(--flk,1);animation:ab-in 1.6s ease .5s backwards}
@keyframes ab-in{from{opacity:0}}
.ab-lit .ab-l>span{color:transparent;background:url("media/light-about.png") no-repeat;-webkit-background-clip:text;background-clip:text;background-size:150vw auto;
  background-position:calc(-25vw + var(--mx,0) * -16vw - var(--ox,0px)) calc(-30vh + var(--my,0) * -14vh - var(--oy,0px));
  filter:url(#site-grain) drop-shadow(0 0 2px rgba(255,255,255,.34)) drop-shadow(0 0 10px rgba(255,255,255,.16)) drop-shadow(0 0 34px rgba(255,255,255,.09))}
.ab-haze{position:absolute;inset:0;pointer-events:none;z-index:0;opacity:0;background:url("media/light-about.png") no-repeat;background-size:150vw auto;
  background-position:calc(-25vw + var(--mx,0) * -16vw) calc(-30vh + var(--my,0) * -14vh);
  -webkit-mask-image:linear-gradient(to bottom,transparent,#000 22%,#000 60%,transparent 75%);mask-image:linear-gradient(to bottom,transparent,#000 22%,#000 60%,transparent 75%)}
.ab-on .ab-haze{opacity:calc(.07 * var(--flk,1));animation:ab-in 1.8s ease .4s backwards}

.ab-credits{margin:0;display:grid;gap:clamp(10px,1.6vh,18px);width:min(46%,620px)}
.ab-row{display:grid;grid-template-columns:auto 1fr;gap:clamp(14px,1.6vw,28px);align-items:baseline;border-top:1px solid #2e2e2e;padding-top:clamp(8px,1.2vh,14px);overflow:hidden}
.ab-row dt,.ab-row dd{margin:0;transform:translateY(110%);opacity:0;transition:transform .9s var(--ease),opacity .9s ease}
.ab-row dt{font-family:"Archivo",var(--ui);font-stretch:125%;font-weight:600;font-size:clamp(10px,.75vw,12px);letter-spacing:.24em;text-transform:uppercase;color:#7d7d7d;white-space:nowrap}
.ab-row dd{font-size:clamp(14px,1vw,17px);line-height:1.45;color:#dcdcdc;text-align:right}
.ab-on .ab-row dt,.ab-on .ab-row dd{transform:none;opacity:1}
.ab-on .ab-row:nth-child(1) *{transition-delay:.45s}
.ab-on .ab-row:nth-child(2) *{transition-delay:.55s}

/* The sliver: full width, flush to the bottom, a thin crop of the before/after. */
.ab-cmp{align-self:end;margin:0 calc(-1 * var(--ink-r,var(--text-x)) - 8px) 0 calc(-1 * var(--ink-l,var(--text-x)) - 8px);opacity:0;clip-path:inset(100% 0 0 0);transition:opacity .6s ease .3s,clip-path 1.2s var(--ease) .3s}
.ab-on .ab-cmp{opacity:1;clip-path:inset(0)}
.ab-cmp .cmp{aspect-ratio:auto;height:50vh;height:50svh;touch-action:pan-y}
.ab-cmp .cmp video,.ab-cmp .cmp-before img{object-position:50% 46%}
.ab-cmp-cap{position:absolute;left:calc(var(--ink-l,var(--text-x)) + 8px);bottom:clamp(12px,2vh,22px);z-index:2;display:flex;align-items:center;gap:clamp(12px,1.4vw,22px);font-family:"Archivo",var(--ui);font-stretch:125%;font-weight:600;font-size:clamp(10px,.75vw,12px);letter-spacing:.24em;text-transform:uppercase;color:#bdbdbd;white-space:nowrap;text-shadow:0 1px 10px rgba(0,0,0,.8);pointer-events:none}
.ab-cmp-cap span:last-child{color:#f2f2f2}
.ab-cmp-cap i{width:clamp(30px,4vw,70px);height:1px;background:rgba(242,242,242,.5)}
@media (max-width:900px){.ab-head{flex-direction:column;align-items:stretch}.ab-credits{width:auto}.ab-say{font-size:min(18vw,12vh)}.ab-cmp .cmp{height:38svh}}
@media (prefers-reduced-motion:reduce){.ab-l>span,.ab-row dt,.ab-row dd,.ab-in,.ab-cmp{transition:none}}


/* ==== About, layout pass 3 (closer to his reference) ====
   Small copy up top (paragraph left, Experience and Tools right), one giant ABOUT sitting right on the
   picture, and the before/after filling the bottom half. */
.ab-inner{grid-template-rows:auto 1fr auto;gap:0}
.ab-top{display:grid;grid-template-columns:minmax(0,1.9fr) minmax(0,1fr);gap:clamp(32px,6vw,140px);align-items:start;padding-top:clamp(4px,1vh,14px)}
.ab-intro{max-width:62ch}
.ab-credits{width:auto;margin:0;display:grid;grid-template-columns:1fr 1fr;gap:clamp(20px,2.4vw,48px);justify-self:end}
.ab-row{display:block;border:0;padding:0}
.ab-row dt{margin-bottom:1.1em}
.ab-row dd{text-align:left;white-space:nowrap}
.ab-stage{align-self:end;margin-bottom:clamp(10px,1.6vh,20px)}
.ab-say{font-size:min(12.5vw,19vh);line-height:.8}
.ab-head{display:none}

/* Brighter light up top: the bands sit higher and the wall glows a touch more. */
.ab-lit .ab-l>span{background-position:calc(-25vw + var(--mx,0) * -16vw - var(--ox,0px)) calc(-48vh + var(--my,0) * -14vh - var(--oy,0px))}
.ab-haze{background-position:calc(-25vw + var(--mx,0) * -16vw) calc(-48vh + var(--my,0) * -14vh);
  -webkit-mask-image:linear-gradient(to bottom,#000,#000 40%,transparent 52%);mask-image:linear-gradient(to bottom,#000,#000 40%,transparent 52%)}
.ab-on .ab-haze{opacity:calc(.11 * var(--flk,1))}
.ab-dim{color:#262626}

/* ==== One paragraph face across the site: the project-page story style (Archivo expanded, capitals,
   wide tracking). Sizes stay per place; the face, case and tracking are shared. ==== */
.ab-intro,.svc p,.project-blurb,.cmp-text,.ab-row dd,.about-facts p{font-family:"Archivo",var(--ui);font-stretch:125%;font-weight:600;text-transform:uppercase;letter-spacing:.14em}
.ab-intro{font-size:clamp(12px,.95vw,17px);line-height:1.75;color:#e4e4e4}
.ab-row dd{font-size:clamp(11px,.85vw,15px);line-height:1.75;color:#e4e4e4}
.svc p{font-size:clamp(11px,.85vw,14px);line-height:1.75}
.project-blurb{font-size:clamp(11px,.9vw,15px);line-height:1.7}
/* Pass 3 fixes: the facts never clip, the paragraph runs wider so it takes fewer lines, and ABOUT gets
   clear air above it. */
.ab-top{grid-template-columns:minmax(0,1fr) auto}
.ab-intro{max-width:78ch}
.ab-credits{grid-template-columns:auto auto}
.ab-row{overflow:visible}
.ab-say{font-size:min(11vw,15.5vh)}

/* Pass 4: no window light. ABOUT uses the site's normal title look and sits directly above the
   paragraph as one block (top left); the facts stay top right. */
.ab-top{align-items:start}
.ab-lead{display:grid;gap:clamp(14px,2.2vh,26px)}
.ab-stage{align-self:auto;margin:0}
.ab-say{font-size:min(8vw,11vh);line-height:.85}
.ab-dim{color:#f2f2f2;mix-blend-mode:plus-lighter;
  filter:url(#site-grain) drop-shadow(0 0 2px rgba(255,255,255,.34)) drop-shadow(0 0 10px rgba(255,255,255,.16)) drop-shadow(0 0 34px rgba(255,255,255,.09))}
.ab-dim .ab-l>span{background:url("media/light-text.jpg") 60% 55%/cover no-repeat;-webkit-background-clip:text;background-clip:text;color:transparent}
.ab-credits{padding-top:.4em}

/* Paragraph pass: bigger and calmer so it reads as one confident block under ABOUT. Lines are
   balanced (no short last line), the tracking is a little tighter for a long block, and the width is
   held to about ABOUT's width plus a bit, so it does not trail off across the screen. */
.ab-intro{font-size:clamp(13px,min(1.05vw,2.1vh),24px);line-height:1.7;letter-spacing:.1em;max-width:64ch;text-wrap:balance}


/* ==== About, layout pass 5 (after his second reference): the before/after fills the whole slide,
   ABOUT spans the top across it, and the paragraph with Experience and Tools sits in the bottom third
   over a dark fade. Text never blocks dragging the wipe. ==== */
.about-slide{padding-bottom:clamp(28px,5vh,64px)}
.ab-cmp{position:absolute;inset:0;margin:0;z-index:0;align-self:stretch;clip-path:none;opacity:0;transition:opacity 1.2s ease .1s}
.ab-on .ab-cmp{opacity:1}
.ab-cmp .cmp{height:100%}
.ab-cmp .cmp video,.ab-cmp .cmp-before img{object-position:50% 50%}
.ab-shade{position:absolute;inset:0;z-index:1;pointer-events:none;
  background:linear-gradient(to bottom,rgba(0,0,0,.72) 0%,rgba(0,0,0,.25) 26%,rgba(0,0,0,0) 42%,rgba(0,0,0,0) 52%,rgba(0,0,0,.7) 72%,rgba(0,0,0,.94) 100%)}
.ab-inner{position:relative;z-index:2;pointer-events:none;grid-template-rows:auto 1fr auto;gap:0}
.ab-inner a,.ab-inner button{pointer-events:auto}
.ab-stage{justify-self:stretch;align-self:start;margin:0}
.ab-say{line-height:.8}
.ab-dim{mix-blend-mode:normal}
.ab-bottom{grid-row:3;display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:clamp(32px,6vw,140px);row-gap:clamp(12px,2vh,22px);align-items:end}
.ab-bottom .ab-cmp-cap{position:static;grid-column:1/-1;padding:0;margin:0}
.ab-intro{max-width:70ch}
.ab-credits{justify-self:end}

/* Pass 6: ABOUT smaller and left aligned (sized in main.js). Experience and Tools stacked; the block is
   stretched to the paragraph's height and spread top to bottom, so both columns start and end level.
   A soft blur sits behind the bottom text, fading out upward. */
.ab-bottom{--fs:clamp(13px,min(1.05vw,2.1vh),24px);align-items:stretch}
.ab-intro{font-size:var(--fs);line-height:1.7}
.ab-credits{display:flex;flex-direction:column;justify-content:space-between;gap:0;padding:0;grid-template-columns:none}
.ab-row dt{margin:0;line-height:calc(var(--fs) * 1.7)}
.ab-row dd{font-size:calc(var(--fs) * .9);line-height:calc(var(--fs) * 1.7);white-space:nowrap}
.ab-blur{position:absolute;left:0;right:0;bottom:0;height:46%;z-index:1;pointer-events:none;
  -webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);
  -webkit-mask-image:linear-gradient(to top,#000 55%,transparent);mask-image:linear-gradient(to top,#000 55%,transparent)}

/* Pass 7: ABOUT and the paragraph share one line in the bottom third (Experience and Tools removed).
   Lighter blur. The picture turns with the mouse like the project reels (same camera variables, with
   its overscan so no edge shows). The handle and Before / After tags are back, with no shadows. */
.ab-bottom{grid-template-columns:auto minmax(0,1fr);column-gap:clamp(32px,4vw,90px);align-items:end}
.ab-bottom .ab-stage{grid-column:1;margin-bottom:.1em}
.ab-bottom .ab-intro{grid-column:2;max-width:68ch;justify-self:end}
.ab-blur{height:36%;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);
  -webkit-mask-image:linear-gradient(to top,#000 40%,transparent);mask-image:linear-gradient(to top,#000 40%,transparent)}
.ab-cmp .cmp{transform:perspective(1400px) translate3d(var(--cam-x,0px),var(--cam-y,0px),0) rotateY(var(--cam-ry,0deg)) rotateX(var(--cam-rx,0deg)) scale(var(--cam-s,1))}
.ab-cmp .cmp-grip{box-shadow:none}
.ab-cmp .cmp:hover .cmp-grip{box-shadow:none}
.ab-cmp .cmp-side{text-shadow:none;filter:none}
/* ABOUT's baseline and the paragraph's last line sit on the same line. */
.ab-bottom{align-items:last baseline}
.ab-bottom .ab-stage{margin-bottom:0}

/* Pass 8: the paragraph sits on the right margin, right aligned; ABOUT on the left is sized so its
   capitals match the paragraph's height, sharing its last baseline (main.js). Caption removed. No fades:
   the picture and text sharpen in and blur out with the scroll (main.js), so the reveal classes stay
   fully visible. */
.ab-bottom{grid-template-columns:auto minmax(0,1fr);align-items:end}
.ab-bottom .ab-intro{justify-self:end;text-align:right;max-width:58ch;text-wrap:balance}
.ab-cmp,.ab-on .ab-cmp{opacity:1;transition:none;transform-origin:50% 50%}
.ab-l>span,.ab-on .ab-l>span{transform:none;transition:none}
.ab-l,.ab-on .ab-l{clip-path:none}
.ab-inner{transform-origin:50% 80%}

.ab-bottom .ab-intro{max-width:none}
.ab-bottom .ab-stage{align-self:end}

/* Pass 9: one column across the bottom. ABOUT, then the paragraph spanning the full width (so it takes
   only two or three lines), then a hairline and Experience / Tools on one row. One spacing unit (--sp)
   between ABOUT and the paragraph and between the paragraph and the line, half of it under the line. */
.ab-bottom{--sp:clamp(18px,2.6vh,34px);display:block}
.ab-bottom .ab-stage{margin:0 0 var(--sp)}
.ab-dim{font-size:min(6.4vw,11.5vh)!important}
.ab-bottom .ab-intro{width:auto!important;max-width:none;text-align:left;text-wrap:pretty;justify-self:auto;margin:0}
.ab-facts{display:flex;justify-content:space-between;gap:clamp(20px,3vw,60px);flex-wrap:wrap;margin-top:var(--sp);padding-top:calc(var(--sp) * .6);border-top:1px solid rgba(242,242,242,.22)}
.ab-facts p{margin:0;display:flex;gap:1.6em;align-items:baseline;font-family:"Archivo",var(--ui);font-stretch:125%;font-weight:600;text-transform:uppercase;letter-spacing:.14em;font-size:calc(var(--fs) * .78);color:#e4e4e4}
.ab-facts span{font-size:.82em;letter-spacing:.24em;color:#8a8a8a}
.ab-blur{height:52%}

.ab-facts{column-gap:clamp(20px,2.4vw,48px);row-gap:.7em}.ab-facts p{font-size:calc(var(--fs) * .72);gap:1.3em}

/* Slide in / out now matches the project slides: scroll-fx.js treats the picture like a reel (zoom,
   blur, mouse camera) and the bottom text like a project's title block (blur, lift, opacity). The
   picture's own camera transform is dropped so it isn't applied twice. */
.ab-cmp .cmp{transform:none}
.ab-cmp{transition:none}


/* ==== Contact, redone: headline left, inquiry right ====
   Same margins as ELIJAH JAMES. A dim, soft reel plays behind (it zooms and sharpens in with the scroll
   like the project slides, via scroll-fx.js). Left: ELEVATE / YOUR / PROJECT. stacked big, with one line
   under it. Right: what-do-you-need chips, then three numbered fields with large type, and the send
   button. A thin footer closes the site. */
.contact-slide{display:block;padding:0}
.ct-bg{position:absolute;inset:0;z-index:0;overflow:hidden}
.ct-bg video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;filter:brightness(.26) saturate(.7) blur(2px)}
.ct-bg::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(0,0,0,.55),rgba(0,0,0,.15) 55%,rgba(0,0,0,.6)),linear-gradient(to bottom,rgba(0,0,0,.6),transparent 30%,transparent 70%,rgba(0,0,0,.7))}
.ct-inner{position:relative;z-index:2;height:100%;display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:clamp(40px,6vw,140px);align-items:center;
  padding:clamp(110px,14vh,150px) var(--ink-r,var(--text-x)) clamp(70px,10vh,120px) var(--ink-l,var(--text-x))}
.ct-head{display:flex;flex-direction:column;max-width:none!important;margin:0!important;font-size:min(7.6vw,15.5vh)!important;line-height:.9!important}
.ct-sub{margin:clamp(22px,3.4vh,40px) 0 0;max-width:40ch;font-family:"Archivo",var(--ui);font-stretch:125%;font-weight:600;text-transform:uppercase;letter-spacing:.12em;font-size:clamp(12px,min(.95vw,2vh),20px);line-height:1.7;color:#d6d6d6}
.ct-form{margin:0!important;width:100%;max-width:640px;justify-self:end}
.ct-k{margin:0 0 14px;font-family:"Archivo",var(--ui);font-stretch:125%;font-weight:600;font-size:11px;letter-spacing:.24em;text-transform:uppercase;color:#8a8a8a}
.ct-needs{margin-bottom:clamp(26px,4vh,44px)}
.ct-chips{display:flex;flex-wrap:wrap;gap:10px}
.ct-chip{padding:.85em 1.25em;border:1px solid rgba(242,242,242,.32);border-radius:999px;background:rgba(0,0,0,.25);color:#e8e8e8;cursor:pointer;
  font-family:"Archivo",var(--ui);font-stretch:125%;font-weight:600;font-size:clamp(10px,.72vw,13px);letter-spacing:.16em;text-transform:uppercase;transition:background .3s ease,color .3s ease,border-color .3s ease}
.ct-chip:hover{border-color:#f2f2f2}
.ct-chip[aria-pressed="true"]{background:#f2f2f2;color:#000;border-color:#f2f2f2}
.ct-form .cf{margin-bottom:clamp(20px,3.2vh,36px)}
.ct-form .cf span{display:flex;gap:1em;align-items:baseline;margin-bottom:6px;font-size:11px;letter-spacing:.24em;color:#8a8a8a}
.ct-form .cf span i{font-style:normal;color:#f2f2f2}
.ct-form .cf input,.ct-form .cf textarea{font-family:"Archivo",var(--ui);font-stretch:125%;font-weight:500;font-size:clamp(17px,1.3vw,24px);padding:10px 0 12px;border-bottom-color:rgba(242,242,242,.28);
  background:linear-gradient(#f2f2f2,#f2f2f2) 0 100%/0% 1px no-repeat;transition:background-size .6s var(--ease)}
.ct-form .cf input:focus,.ct-form .cf textarea:focus{outline:none;background-size:100% 1px}
.ct-form .cf textarea{resize:none}
.ct-form .cform-send{display:inline-flex;align-items:center;gap:.9em}
.ct-form .cform-send svg{width:1.1em;height:1.1em}
.ct-foot{position:absolute;left:var(--ink-l,var(--text-x));right:var(--ink-r,var(--text-x));bottom:clamp(20px,3.4vh,36px);z-index:2;display:flex;justify-content:space-between;align-items:center;
  padding-top:14px;border-top:1px solid rgba(242,242,242,.16);font-family:"Archivo",var(--ui);font-stretch:125%;font-weight:600;font-size:11px;letter-spacing:.22em;text-transform:uppercase;color:#7d7d7d}
.ct-mail{background:none;border:0;padding:0;color:#d6d6d6;font:inherit;letter-spacing:inherit;text-transform:inherit;cursor:pointer;transition:color .3s ease}
.ct-mail:hover{color:#fff}
@media (max-width:900px){.ct-inner{grid-template-columns:1fr;align-content:center}.ct-form{justify-self:stretch}.ct-head{font-size:min(14vw,9vh)!important}}
/* Contact fixes: headline always fits its column, the form sits on the right margin, the reel behind is
   darker and softer so it reads as texture, not a picture. */
.ct-inner{grid-template-columns:minmax(0,1.25fr) minmax(0,1fr)}
.ct-head{font-size:min(6.2vw,15vh)!important}
.ct-form{max-width:760px;margin-left:auto!important}
.ct-bg video{filter:brightness(.2) saturate(.6) blur(7px);transform:scale(1.06)}
.ct-inner{width:100%}


/* ==== Cover and Contact share one reel ====
   The cover video is fixed to the screen behind every slide (z -1); only the cover and Contact are see
   through, so it shows there and nowhere else. scroll-fx.js moves it with the page when leaving the cover
   for a project, and holds it still between the cover and Contact while the dark film (.loop-film) fades
   in over it. */
body{background:transparent}
.cover-slide,.contact-slide{background:transparent}
#heroVideo{position:fixed;left:0;width:100%;z-index:-1}
.loop-film{position:fixed;inset:0;z-index:-1;pointer-events:none;opacity:0;
  background:linear-gradient(90deg,rgba(0,0,0,.72),rgba(0,0,0,.42) 55%,rgba(0,0,0,.7)),linear-gradient(to bottom,rgba(0,0,0,.55),transparent 32%,transparent 68%,rgba(0,0,0,.7))}

/* Soft window light over the whole Contact slide: only adds light (no dark shadows), very smooth,
   scaled up so most of the frame catches some of it, and it drifts a little with the mouse. */
.ct-light{position:absolute;inset:0;z-index:3;pointer-events:none;mix-blend-mode:soft-light;opacity:.55;
  background:url("media/light-soft.png") no-repeat;background-size:230vw auto;
  background-position:calc(-55vw + var(--mx,0) * -14vw) calc(-38vh + var(--my,0) * -12vh)}

/* Buttons. Chips: squared-off pills with a plus that turns into a tick when picked. */
.ct-chip{display:inline-flex;align-items:center;gap:.75em;padding:.8em 1.15em .8em .95em;border-radius:6px;border:1px solid rgba(242,242,242,.26);background:rgba(10,10,10,.35);
  -webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.ct-chip i{position:relative;width:.8em;height:.8em;flex:none}
.ct-chip i::before,.ct-chip i::after{content:"";position:absolute;left:50%;top:50%;width:100%;height:1.5px;background:currentColor;transform:translate(-50%,-50%);transition:transform .35s var(--ease),width .35s var(--ease)}
.ct-chip i::after{transform:translate(-50%,-50%) rotate(90deg)}
.ct-chip[aria-pressed="true"] i::before{width:45%;transform:translate(-95%,10%) rotate(45deg)}
.ct-chip[aria-pressed="true"] i::after{width:85%;transform:translate(-30%,-30%) rotate(-50deg)}
.ct-chip:hover{border-color:rgba(242,242,242,.7);background:rgba(30,30,30,.45)}
.ct-chip[aria-pressed="true"]{background:#f2f2f2;color:#000;border-color:#f2f2f2}
/* Send: a full-width bar, words left, arrow right; on hover the arrow slides on and the bar brightens. */
.ct-form .cform-foot{flex-direction:column;align-items:stretch;gap:14px}
.ct-form .cform-send{display:flex;justify-content:space-between;align-items:center;width:100%;padding:1.25em 1.5em 1.25em 1.6em;border-radius:6px;
  font-size:clamp(12px,.85vw,15px);letter-spacing:.38em;transition:background .3s ease,transform .3s var(--ease)}
.ct-form .cform-send svg{width:1.3em;height:1.3em;transition:transform .45s var(--ease)}
.ct-form .cform-send:hover svg{transform:translateX(.45em)}
.ct-form .cform-note:empty{display:none}
/* Message box: grows with the text, then scrolls with a slim light bar instead of the system one. */
.ct-form .cf textarea{overflow-y:auto;scrollbar-width:thin;scrollbar-color:rgba(242,242,242,.35) transparent;min-height:3.2em}
.ct-form .cf textarea::-webkit-scrollbar{width:6px}
.ct-form .cf textarea::-webkit-scrollbar-track{background:transparent}
.ct-form .cf textarea::-webkit-scrollbar-thumb{background:rgba(242,242,242,.3);border-radius:6px}
.ct-form .cf textarea::-webkit-scrollbar-thumb:hover{background:rgba(242,242,242,.55)}
/* Contact: darker film behind, stronger light on top. */
.loop-film{background:rgba(0,0,0,.42) linear-gradient(90deg,rgba(0,0,0,.6),rgba(0,0,0,.3) 55%,rgba(0,0,0,.6)),rgba(0,0,0,.42)}
.loop-film{background-image:linear-gradient(90deg,rgba(0,0,0,.6),rgba(0,0,0,.3) 55%,rgba(0,0,0,.6)),linear-gradient(to bottom,rgba(0,0,0,.5),transparent 32%,transparent 68%,rgba(0,0,0,.65));background-color:rgba(0,0,0,.45)}
.ct-light{opacity:.9;mix-blend-mode:overlay}
.loop-film{background-color:rgba(0,0,0,.66)}

/* Contact, tighter: no service chips. The form sits a set distance after the headline instead of out on
   the right margin, and the fields are closer together. */
.ct-inner{grid-template-columns:max-content minmax(0,620px);justify-content:start;column-gap:clamp(56px,6vw,150px)}
.ct-form{max-width:620px;margin-left:0!important;justify-self:start}
.ct-form .cf{margin-bottom:clamp(14px,2.3vh,26px)}
.ct-form .cf textarea{min-height:2.6em}
.ct-form .cform-foot{margin-top:clamp(6px,1vh,12px)}

/* Send: a compact button on the left, not a full-width bar. */
.ct-form .cform-foot{flex-direction:row;justify-content:flex-start;align-items:center;gap:20px}
.ct-form .cform-send{display:inline-flex;width:auto;gap:1.4em;padding:1.05em 1.5em 1.05em 1.8em}
/* Footer copy button: its "copied" note rises just above it. */
.ct-mailwrap{position:relative}
.ct-toast{position:absolute;right:0;bottom:calc(100% + 12px);white-space:nowrap;padding:.8em 1.1em;border-radius:6px;background:#f2f2f2;color:#000;letter-spacing:.2em;
  opacity:0;transform:translateY(6px);transition:opacity .3s ease,transform .4s var(--ease);pointer-events:none}
.ct-toast.show{opacity:1;transform:none}
.ct-inner{column-gap:clamp(90px,10vw,320px)}
/* Contact balance: headline on the left margin, form on the right margin. Each takes half the line
   (minus the gap), and the form is stretched to the headline's height so its first label sits level
   with ELEVATE and the Send button with the baseline of PROJECT. */
.ct-inner{grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:clamp(60px,7vw,220px);justify-content:stretch;align-items:center}
.ct-form{max-width:none;width:100%;justify-self:stretch;align-self:stretch;display:flex;flex-direction:column;justify-content:space-between;margin:0!important;padding:.6em 0 .35em}
.ct-form .cf:last-of-type{margin-bottom:0}
.ct-form{align-self:center;height:var(--ct-h,auto)}

/* ==== About + services (the Services slide folded in) ====
   A dim Race to Rescue reel behind instead of the before/after. Under the paragraph: four services in a
   row, then the Experience / Tools line. */
.ab-cmp video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;filter:brightness(.55) saturate(.8)}
.ab-svc{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(18px,2.4vw,48px);margin-top:var(--sp);padding-top:calc(var(--sp) * .7);border-top:1px solid rgba(242,242,242,.22)}
.ab-svc i{display:block;font-style:normal;font-family:"Archivo",var(--ui);font-stretch:125%;font-weight:600;font-size:calc(var(--fs) * .62);letter-spacing:.24em;color:#8a8a8a;margin-bottom:.9em}
.ab-svc h3{margin:0 0 .55em;font-family:"Archivo",var(--ui);font-stretch:125%;font-weight:800;text-transform:uppercase;letter-spacing:-.005em;font-size:calc(var(--fs) * 1.25);line-height:1.05;color:#f2f2f2;
  filter:url(#site-grain-sm) drop-shadow(0 0 1.5px rgba(255,255,255,.22))}
.ab-svc p{margin:0;font-family:"Archivo",var(--ui);font-stretch:125%;font-weight:600;text-transform:uppercase;letter-spacing:.12em;font-size:calc(var(--fs) * .7);line-height:1.6;color:#cfcfcf}
.ab-svc+.ab-facts{margin-top:calc(var(--sp) * .9)}
@media (max-width:900px){.ab-svc{grid-template-columns:1fr 1fr}}

/* About, text only: no footage and no services. ABOUT, the paragraph, a line, then Experience and Tools,
   centred in the slide on black. */
.about-slide{padding-bottom:clamp(48px,8vh,96px)}
.about-slide .ab-inner{grid-template-rows:1fr auto 1fr}
.about-slide .ab-bottom{grid-row:2}

/* ==== Pitch deck slides and the deck view ====
   Slide: the deck's cover on black, right of the title. Open: a flat row of pages on black that
   scrolls sideways (deck.js). No 3D for now; the Blender environments come later. */
.deck-slide .project-hero{background:#000}
.deck-media{position:absolute;inset:0}
.deck-open .slide-bars{opacity:0;pointer-events:none}
.deckview{position:fixed;inset:0;z-index:39;background:rgba(0,0,0,0);visibility:hidden;transition:background .5s ease}
.deckview.open{visibility:visible;background:#000}
.deckview.leaving{background:rgba(0,0,0,0);transition-duration:.9s}
.dv-flyer{position:fixed;left:0;top:0;z-index:41;transform-origin:0 0;pointer-events:none;box-shadow:0 30px 80px rgba(0,0,0,.6)}
.dv-scroller{position:absolute;inset:0;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;overscroll-behavior:contain}
.dv-scroller::-webkit-scrollbar{display:none}
.dv-track{display:flex;align-items:center;gap:clamp(24px,2.6vw,56px);height:100%;width:max-content;padding:0 var(--text-x);box-sizing:border-box}
.dv-page{flex:none;margin:0;height:min(72vh,calc((100vw - 2 * var(--text-x)) * 4 / 3));aspect-ratio:3/4;cursor:zoom-in;margin-top:clamp(40px,6vh,80px)}
.dv-page img{display:block;width:100%;height:100%;object-fit:cover;box-shadow:0 30px 80px rgba(0,0,0,.6);user-select:none}
.dv-info{flex:none;width:clamp(260px,26vw,520px);margin-right:clamp(20px,3vw,80px);align-self:center;margin-top:clamp(40px,6vh,80px)}
.dv-title{font-size:clamp(34px,4.2vw,84px);margin:.25em 0 .5em;max-width:none}
.dv-title span{display:block}
.dv-story{margin:0;font-family:"Archivo",var(--ui);font-stretch:125%;font-weight:600;text-transform:uppercase;letter-spacing:.12em;font-size:clamp(11px,.78vw,15px);line-height:1.7;color:#cfcfcf}
.dv-hint{display:flex;align-items:center;gap:.9em;margin:2.4em 0 0;font-family:"Archivo",var(--ui);font-stretch:125%;font-weight:600;text-transform:uppercase;letter-spacing:.2em;font-size:clamp(10px,.66vw,13px);color:#8a8a8a}
.dv-hint svg{width:1.6em;height:auto}
.dv-end{flex:none;display:flex;align-items:center;padding:0 clamp(40px,6vw,140px) 0 clamp(20px,3vw,60px);margin-top:clamp(40px,6vh,80px)}
.dv-close{padding:1em 1.4em;border:1px solid rgba(242,242,242,.3);border-radius:6px;background:none;color:#f2f2f2;font-family:"Archivo",var(--ui);font-stretch:125%;font-weight:600;text-transform:uppercase;letter-spacing:.2em;font-size:clamp(11px,.72vw,14px);cursor:pointer;transition:background .3s ease,color .3s ease}
.dv-close:hover{background:#f2f2f2;color:#000}
.dv-top{position:absolute;left:var(--text-x);top:calc(clamp(96px,11vh,130px) - 6px);z-index:2}
.dv-foot{position:absolute;right:var(--text-x);bottom:clamp(28px,5vh,56px);z-index:2;display:flex;align-items:center;gap:1em;font-family:"Archivo",var(--ui);font-stretch:125%;font-weight:600;font-size:clamp(11px,.72vw,14px);letter-spacing:.14em;color:#8a8a8a}
.dv-n{color:#f2f2f2}
.dv-bar{display:block;width:clamp(60px,7vw,140px);height:1px;background:rgba(242,242,242,.2);overflow:hidden}
.dv-bar b{display:block;height:100%;background:#f2f2f2;transform-origin:left;transform:scaleX(0)}
/* Coming in: the first page is the cover that just landed; everything else eases in after it. */
.dv-first img{visibility:hidden}
.deckview.shown .dv-first img{visibility:visible}
.dv-info,.dv-page:not(.dv-first),.dv-end,.dv-top,.dv-foot{opacity:0;transform:translateX(40px);transition:opacity .45s ease,transform .45s ease}
.deckview.shown .dv-info,.deckview.shown .dv-page,.deckview.shown .dv-end,.deckview.shown .dv-top,.deckview.shown .dv-foot{opacity:1;transform:none;transition:opacity .8s ease,transform 1s cubic-bezier(.22,1,.36,1)}
.deckview.shown .dv-page:nth-child(3){transition-delay:.08s}
.deckview.shown .dv-page:nth-child(4){transition-delay:.16s}
.deckview.shown .dv-page:nth-child(n+5){transition-delay:.24s}
.dv-top .detail-back{opacity:1;margin:0}
.deck-slide .gblur{display:none}   /* on black there is nothing to soften; it only blurred the cover's foot */
.deck-slide .deck-cover{height:min(72%,calc(100vh - 2 * clamp(96px,11vh,130px)));top:calc(50% + clamp(20px,3vh,40px))}
.dv-flyer img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
/* Deck slides: the scroll effect works on the cover's own box (not a full-screen layer), with no shadow
   (invisible on black) and no SVG motion blur, which were the costly parts while scrolling. */
.deck-slide .deck-media{inset:auto;top:calc(50% + clamp(20px,3vh,40px));right:9vw;height:min(72%,calc(100vh - 2 * clamp(96px,11vh,130px)));aspect-ratio:3/4;transform-origin:50% 50%;translate:0 -50%}
.deck-slide .deck-cover{position:absolute;inset:0;top:0;right:auto;width:100%;height:100%;transform:none;box-shadow:none}
html.moving .deck-slide .deck-cover{filter:none}
@media (max-width:760px){.deck-slide .deck-media{inset:0;translate:none;height:auto;aspect-ratio:auto}}

/* Deck slide with a Blender scene (Miler): the render fills the screen like the video slides (same
   mouse camera); the box keeps the render's 16:9 so the cover card's corners stay put in %. */
.deck-slide .deck-media.deck-env{inset:auto;left:50%;top:50%;right:auto;width:max(100%,226vh);height:auto;aspect-ratio:16/9;translate:-55% -50%}
/* The scene is zoomed in (cover about 70% of the screen height on 16:9). Past 2:1 the screen is wide enough
   that the plain cover fit is already close; there it stays centred so no edge ever shows. */
@media (min-aspect-ratio:2/1){.deck-slide .deck-media.deck-env{translate:-50% -50%}}
.deck-env .env-img{position:absolute;inset:0;width:100%;height:100%;display:block;user-select:none}
.deck-env .deck-cover{opacity:0}
@media (max-width:760px){.deck-slide .deck-media.deck-env{inset:auto;left:50%;top:50%;width:177.78vh;height:auto;aspect-ratio:16/9;translate:-73% -50%}}
/* Every project slide (desktop): the title corner gets a heavier gradual blur and a dark vignette, both
   tapering off to the right so they never reach the picture on the right (the Miler cover starts ~60% across). */
@media (min-width:761px){
  .project:not(.cover-slide) .project-hero .gblur{top:auto;height:62%;right:auto;width:66%}   /* taper: data-taper, per layer (main.js) */
  .deck-slide .deck-env~.gblur{display:block;width:57%}   /* ends before the cover (starts ~59% across) */
  .project:not(.cover-slide) .project-hero::after{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;
    background:radial-gradient(85% 75% at 0% 100%,rgba(0,0,0,.55),rgba(0,0,0,.3) 45%,transparent 75%),linear-gradient(to top,rgba(0,0,0,.25),transparent 22%)}
}

/* Opening a scene deck: the cover lifts off the card, the same shot without it (env-bare) swaps in under
   the flying cover, and the whole scene blurs and darkens behind the pages. Reversed on close. */
.deck-env .env-bare{position:absolute;inset:0;width:100%;height:100%;display:block;opacity:0;transition:opacity .48s ease}
.deck-slide.scene-bare .env-bare{opacity:1}
.deck-env .env-img,.deck-env .env-bare{transition:opacity .48s ease,filter 1.1s cubic-bezier(.22,1,.36,1),transform 1.1s cubic-bezier(.22,1,.36,1)}
.deck-slide.scene-open .env-img,.deck-slide.scene-open .env-bare{filter:blur(28px) brightness(.5);transform:scale(1.08)}
.deckview.dv-scene,.deckview.dv-scene.open,.deckview.dv-scene.leaving{background:transparent}
/* Scene decks: page 1 fades in on its own (no flying copy), and fades out the same way on Back. */
.deckview.dv-scene .dv-first img{visibility:visible;opacity:0;transition:opacity .48s ease}
.deckview.dv-scene.shown .dv-first img{opacity:1}
.deckview.dv-scene .dv-page:not(.dv-first),.deckview.dv-scene .dv-info,.deckview.dv-scene .dv-top,.deckview.dv-scene .dv-foot{transition-duration:.48s}

/* Deck view title: one line per title line (deck.js shrinks it to fit), even gaps above and below. */
.dv-title span{white-space:nowrap}
.dv-title{margin:.18em 0 .32em}

/* Thumbnails section: the label reads like the project description; one big thumbnail, then a row of four. */
.d-label{font-family:"Archivo",var(--ui);font-stretch:125%;font-weight:600;font-size:clamp(18px,1.6vw,30px);line-height:1.6;letter-spacing:.14em;text-transform:uppercase;color:#f2f2f2}
.d-label + .d-grid{margin-top:clamp(18px,2.6vh,32px)}
.d-grid-stills.d-cols4{grid-template-columns:repeat(2,1fr)}

@media (max-width:760px){.d-grid-stills.d-cols4{grid-template-columns:1fr}}

/* ==== Phone pass (2026-11-08). Everything below is phone-only (max-width 760px); desktop is untouched. ==== */
@media (max-width:760px){
  /* Contact: one column. Headline on top, full-width fields under it, big tap targets. */
  .ct-inner{grid-template-columns:1fr!important;align-content:center;row-gap:clamp(26px,4.5vh,40px);column-gap:0;
    padding:clamp(88px,12vh,110px) 22px clamp(96px,14vh,128px)}
  .ct-head{font-size:min(11.2vw,7.2vh)!important;line-height:.92!important}
  .ct-form{max-width:none;width:100%;justify-self:stretch}
  .ct-form .cf{margin-bottom:clamp(14px,2.4vh,22px)}
  .ct-form .cf span{font-size:10px}
  .ct-form .cf input,.ct-form .cf textarea{font-size:17px;padding:9px 0 11px}
  .ct-form .cform-foot{flex-direction:column;align-items:stretch;gap:12px;margin-top:4px}
  .ct-form .cform-send{display:flex;width:100%;justify-content:space-between;padding:1.15em 1.4em 1.15em 1.6em;font-size:12px}
  .ct-foot{left:22px;right:22px;bottom:clamp(16px,2.6vh,26px);font-size:9.5px;letter-spacing:.18em;gap:16px}

  /* Miler and Bourbon scenes: frame the pitch deck cover whole near the top of the screen, title below it.
     The scene is sized so the cover is ~88% of the screen width; the image fades into black at the bottom. */
  .deck-slide .deck-media.deck-env{top:-13.3vh;left:50%;width:165vh;translate:-73.1% 0;
    -webkit-mask-image:linear-gradient(to bottom,#000 78%,transparent 100%);mask-image:linear-gradient(to bottom,#000 78%,transparent 100%)}

  /* Project pages: the role wraps instead of running off the screen. */
  .d-role{flex-wrap:wrap;row-gap:8px}
  .d-role-v{white-space:normal;line-height:1.6}
  .d-role-rule{flex-basis:100%}

  /* About: the facts stack as label / value pairs. */
  .ab-facts{flex-direction:column;gap:12px}
  .ab-facts p{display:grid;grid-template-columns:96px 1fr;gap:12px;line-height:1.55}
}
@media (max-width:760px){
  /* Loading screen on phones: no side labels (they collided with the words on a narrow screen) and no
     marks hanging off the right of the name. Counter and timecode stay at the bottom. */
  .cr-edge,.m-r,.m-r2,.m-tr3{display:none}
}
@media (max-width:760px){
  /* Cover on phones: clear space between the rotating "for ..." line and the name. */
  .cover-name{margin-top:16px}
}
@media (max-width:760px){
  /* main.js pulls the tagline down to match STUDIO's gap; on phones the tagline wraps to two lines, so
     that pulled it onto the name. Keep a plain gap instead. */
  .cover-role{margin-bottom:0!important}
  .cover-name{margin-top:14px}
}
@media (max-width:760px){
  /* Loading screen on phones: MOTION & DESIGN sized to fit the narrow screen with margin. */
  .cr:not(.cr-final) .cr-line{font-size:min(6.2vw,26px);letter-spacing:.32em}
}
@media (max-width:760px){
  /* Tagline word swap on phones: a crossfade in place (the slide-up overlapped the line above). */
  .role-word{transform:none!important;opacity:0;transition:opacity .45s ease}
  .role-word.is-on{opacity:1}
}
@media (max-width:760px){
  .role-word{transition:opacity .25s ease}
  .role-word.is-on{transition:opacity .35s ease .28s}
}

@media (max-width:760px){
  /* LITE (phones): no SVG grain filters or stacked glows on text (Safari redraws them in software every
     frame: fuzzy, slow, and layers drop out). A small soft glow keeps the film feel. */
  .ab-dim,
  .ab-intro,
  .ab-lit .ab-l>span,
  .ab-svc h3,
  .about-line,
  .cmp-k,
  .cmp-side,
  .cmp-tag,
  .cmp-text,
  .cmp-title,
  .contact-line,
  .cover-name,
  .cover-role,
  .cover-scroll,
  .cover-studio span,
  .cr-grid,
  .cr-line,
  .d-cta-line,
  .d-index,
  .d-item figcaption,
  .d-meta,
  .d-next-k,
  .d-next-t,
  .d-next-type,
  .d-role-k,
  .d-role-v,
  .d-title,
  .d-type,
  .intro .cr-title,
  .intro .cr-title-in,
  .intro.leave .cr-title,
  .project-blurb,
  .project-title,
  .project-type,
  .sec-head,
  .slide-bars,
  .svc h3,
  .wl-title,
  .brand,
  .nav-contact,
  .dv-title,
  .ct-head{filter:none!important;text-shadow:0 0 10px rgba(255,255,255,.14)}
  html.moving .hero-media,html.moving .deck-bg,html.moving .deck-cover{filter:none!important}
  /* Stacked blur strip replaced by a plain gradient (same purpose: keeps the titles readable). */
  .gblur{backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
  .gblur[data-position="bottom"]{background:linear-gradient(to top,rgba(0,0,0,.72),rgba(0,0,0,.4) 45%,transparent)}
  .gblur[data-position="top"]{background:linear-gradient(to bottom,rgba(0,0,0,.6),transparent)}
  .ct-light{display:none}
  /* Loading screen on phones: bigger, centred, room to breathe. */
  .cr:not(.cr-final) .cr-line{font-size:min(8.2vw,36px);letter-spacing:.24em}
  .cr-count,.cr-tc{font-size:11px}
}

/* PERF-LOW (a computer that can't keep up; main.js adds html.perf-low live): the same effects phones skip
   are dropped. Layout is untouched. */
html.perf-low .ab-dim,
html.perf-low .ab-intro,
html.perf-low .ab-lit .ab-l>span,
html.perf-low .ab-svc h3,
html.perf-low .about-line,
html.perf-low .cmp-k,
html.perf-low .cmp-side,
html.perf-low .cmp-tag,
html.perf-low .cmp-text,
html.perf-low .cmp-title,
html.perf-low .contact-line,
html.perf-low .cover-name,
html.perf-low .cover-role,
html.perf-low .cover-scroll,
html.perf-low .cover-studio span,
html.perf-low .cr-grid,
html.perf-low .cr-line,
html.perf-low .d-cta-line,
html.perf-low .d-index,
html.perf-low .d-item figcaption,
html.perf-low .d-meta,
html.perf-low .d-next-k,
html.perf-low .d-next-t,
html.perf-low .d-next-type,
html.perf-low .d-role-k,
html.perf-low .d-role-v,
html.perf-low .d-title,
html.perf-low .d-type,
html.perf-low .intro .cr-title,
html.perf-low .intro .cr-title-in,
html.perf-low .intro.leave .cr-title,
html.perf-low .project-blurb,
html.perf-low .project-title,
html.perf-low .project-type,
html.perf-low .sec-head,
html.perf-low .slide-bars,
html.perf-low .svc h3,
html.perf-low .wl-title,
html.perf-low .brand,
html.perf-low .nav-contact,
html.perf-low .dv-title,
html.perf-low .ct-head{filter:none!important;text-shadow:0 0 10px rgba(255,255,255,.14)}
html.perf-low.moving .hero-media,html.perf-low.moving .deck-bg,html.perf-low.moving .deck-cover{filter:none!important}
html.perf-low .gblur>div{display:none}
html.perf-low .gblur[data-position="bottom"]{background:linear-gradient(to top,rgba(0,0,0,.72),rgba(0,0,0,.4) 45%,transparent)}
html.perf-low .gblur[data-position="top"]{background:linear-gradient(to bottom,rgba(0,0,0,.6),transparent)}
html.perf-low .gblur[data-taper]{-webkit-mask-image:linear-gradient(to right,#000 0%,rgba(0,0,0,.9) 22%,rgba(0,0,0,.62) 45%,rgba(0,0,0,.3) 70%,rgba(0,0,0,.08) 88%,transparent 100%);mask-image:linear-gradient(to right,#000 0%,rgba(0,0,0,.9) 22%,rgba(0,0,0,.62) 45%,rgba(0,0,0,.3) 70%,rgba(0,0,0,.08) 88%,transparent 100%)}
html.perf-low .d-next-v{filter:saturate(.9)!important}
html.perf-low .deck-slide.scene-open .env-img,html.perf-low .deck-slide.scene-open .env-bare{filter:brightness(.45)!important}

/* Pitch deck view: the row ends on a Next project card (same block as on project pages), centred like a page. */
/* The Next project card is exactly as tall as the deck pages (same top margin), landscape for the reel. */
.dv-end{flex:none;padding:0;height:min(72vh,calc((100vw - 2 * var(--text-x)) * 4 / 3));aspect-ratio:3/4;width:auto;margin-top:clamp(40px,6vh,80px)}
.dv-end .d-next{width:100%;height:100%;aspect-ratio:auto;box-shadow:0 30px 80px rgba(0,0,0,.6)}
/* Black that covers a direct move between a project page and a pitch deck (under the top bar). */
.curtain{position:fixed;inset:0;z-index:42;background:#000;pointer-events:none;opacity:0}

/* Contact sent state: the form lifts away (main.js) and the thank-you line writes itself in, in the
   heading's lettering, where the form was. Disabled fields keep their colours (no grey flash). */
.cform.sent .cform-row,.cform.sent .cf-wide,.cform.sent .cform-send{opacity:1}
.ct-form{position:relative}
.cf input:disabled,.cf textarea:disabled{color:inherit;-webkit-text-fill-color:currentColor;opacity:1}
.cform-done{position:absolute;inset:0;display:flex;align-items:center;pointer-events:none}
.cform-thanks{margin:0;font-family:var(--display);font-stretch:125%;font-weight:800;font-size:clamp(30px,3.6vw,68px);line-height:1;letter-spacing:-.01em;text-transform:uppercase;color:#f2f2f2;
  filter:url(#site-grain) drop-shadow(0 0 2px rgba(255,255,255,.34)) drop-shadow(0 0 10px rgba(255,255,255,.16))}
.cform-thanks .w{display:inline-block;white-space:nowrap}
.cform-thanks .ch{display:inline-block}
html.perf-low .cform-thanks,html.lite .cform-thanks{filter:none;text-shadow:0 0 10px rgba(255,255,255,.14)}

/* Next project cards: the reel or scene shows plainly (no blur that clears on hover). */
.d-next .d-next-v,.d-next:hover .d-next-v{filter:none;transform:none;opacity:1;transition:none}
/* The deck's Next card is a page: its title sits smaller so it fits the page's width. */
.dv-end .d-next-t{font-size:clamp(28px,3.4vw,64px)}
/* Project page -> pitch deck morph: the scene grows from the card to the full screen. */
.morph-flyer{position:fixed;inset:0;z-index:41;overflow:hidden;pointer-events:none;background:transparent}
.morph-flyer img{position:absolute;left:0;top:0;display:block;transform-origin:0 0;user-select:none}
/* Pitch deck -> project morph: everything but the Next card fades and the scene goes to black. */
.deckview.dv-to-card{background:#000!important;transition:background .45s ease}
.deckview.dv-to-card .dv-info,.deckview.dv-to-card .dv-page,.deckview.dv-to-card .dv-top,.deckview.dv-to-card .dv-foot{opacity:0!important;transition:opacity .35s ease!important}
.deckview.dv-to-card .d-next-k{opacity:0;transition:opacity .3s ease}

/* Next project card tilt (main.js) moves the picture inside; the card itself never moves. */

/* Send button: the button keeps its size from a hidden copy of its label (.cs-size); over it a strip of
   three faces [Send | Sent | Send] (.cs-track) slides sideways. The faces carry the colours and the
   button is clipped with clip-path (not a light background under a dark face), so no pale fringe shows
   around the black at the rounded corners. */
.cform-send{position:relative;background:transparent!important;clip-path:inset(0 round 6px);transform:none!important}
.cform-send:disabled{cursor:default;opacity:1}
.cs-size{display:inherit;align-items:center;gap:inherit;flex:1 1 auto;justify-content:inherit;visibility:hidden}
.cs-track{position:absolute;inset:0}
.cs-p{position:absolute;inset:0;box-sizing:border-box;display:flex;align-items:center;gap:var(--cs-gap,1em);padding:var(--cs-pad,1em 1.5em);justify-content:var(--cs-justify,flex-start)}
.cs-a{background:#f2f2f2;color:#000;transition:background .3s ease}
.cform-send:hover:not(:disabled) .cs-a{background:#fff}
.cs-b{background:#000;color:#fff;transform:translateX(-101%)}
.cs-p svg{flex:none}
/* The typed text breaking away (main.js lays a copy of it over each field). */
.cf-ghost{position:absolute;margin:0;box-sizing:border-box;overflow:visible;white-space:pre-wrap;word-break:break-word;pointer-events:none;z-index:2}
.cf-ghost span{display:inline-block;white-space:pre}
.cf-ghost .w{font-style:normal;display:inline-block;white-space:nowrap}
.cf-ghost{white-space:normal}

/* ==== Phone pass 2 (2026-11-08). Phone-only (max-width 760px); desktop is untouched. ==== */
@media (max-width:760px){
  /* Project pages and pitch decks: a dark band behind EJS / Contact so scrolled pictures and labels
     never run underneath them. */
  html.detail-open .top-vignette,html.deck-open .top-vignette{height:118px;opacity:1;
    background:linear-gradient(to bottom,#000 0%,rgba(0,0,0,.92) 52%,rgba(0,0,0,0) 100%)}

  /* Next project card: a taller card so the title sits on the scene instead of covering the cover art. */
  .detail .d-next{aspect-ratio:4/5}
  .detail .d-next::after{height:75%;background:linear-gradient(to top,rgba(0,0,0,.85),rgba(0,0,0,0))}
  .detail .d-next-head{left:20px;right:20px;bottom:22px}
  .detail .d-next-k{left:20px;top:20px;font-size:12px}
  .detail .d-next-t{font-size:min(8.6vw,40px)}
  .detail .d-next-v{object-position:72% 50%}   /* the pitch deck covers sit right of centre in their scenes */

  /* Contact footer: the two items stack, both left aligned, so neither is squeezed. */
  .ct-foot{justify-content:flex-start}
  .ct-foot > span{display:none}   /* the studio name is already on every slide; the footer keeps one line */
  .ct-foot .ct-mail{text-align:left}
}
@media (max-width:760px){
  /* Swipe pager (main.js, phones): no native page scrolling or snap; each slide is exactly the visible
     screen (--app-h, measured in pixels); the page itself never bounces. */
  html.pager{scroll-snap-type:none;overscroll-behavior:none}
  html.pager,html.pager body{overflow:hidden}
  html.pager main{touch-action:none}
  html.pager .project{scroll-snap-align:none}
  html.pager .project-hero,html.pager .cover-slide,html.pager .contact-slide,html.pager .info-slide{height:var(--app-h,100svh)}
}
@media (max-width:760px){
  /* Edge to edge on iPhone (viewport-fit=cover): the slides run behind the clock and the address bar;
     the header and the bottom text keep clear of them. */
  html.pager .topbar-inner{padding-top:calc(var(--edge) + env(safe-area-inset-top,0px))}
  html.pager .project-text,html.pager .cover-foot{margin-bottom:env(safe-area-inset-bottom,0px)}
}
@media (max-width:760px){
  /* iPhone Safari shows the page ~40px further down than its fixed "screen" (it draws under the address
     bar), so every full-screen layer is sized to the measured slide height, not bottom:0. Otherwise the
     vignette, grain and overlays stop short of the reel and leave a visible edge. */
  html.pager body::after,html.pager .intro,html.pager .film-grain,html.pager .kt-burns,html.pager .viewer,
  html.pager .detail,html.pager .detail-flyer,html.pager .d-switch,html.pager .deckview,html.pager .curtain,
  html.pager .morph-flyer{bottom:auto;height:var(--app-h,100%)}
}
@media (max-width:760px){
  /* Native phone swiping (main.js default on phones): every slide is the full screen with Safari's bar
     tucked away (100lvh), a fixed size, so the page never reflows while the bar shrinks or grows. */
  html.native-snap .project-hero,html.native-snap .cover-slide,html.native-snap .contact-slide,html.native-snap .info-slide{height:var(--fill-h,100lvh)}
  html.native-snap{background:#000}   /* body stays transparent: the cover reel sits behind it (z -1) */
  /* On iPhone the slide runs down under Safari's bar (main.js, --fill-pad is the part under it): the
     full-screen layers go just as far, and the text and forms stay above the bar. */
  html.native-snap #heroVideo{top:calc(var(--fill-h,100lvh) * -.06);bottom:auto;height:calc(var(--fill-h,100lvh) * 1.12)}
  html.native-snap body::after,html.native-snap .intro,html.native-snap .film-grain,html.native-snap .kt-burns,
  html.native-snap .curtain,html.native-snap .morph-flyer{bottom:auto;height:var(--fill-h,100%)}
  html.native-snap .project-text,html.native-snap .cover-top,html.native-snap .cover-pitch{margin-bottom:var(--fill-pad,0px)}
  html.native-snap .ct-inner,html.native-snap .about-slide .ab-inner{height:calc(100% - var(--fill-pad,0px))}
  html.native-snap .loop-film{bottom:auto;height:var(--fill-h,100%)}
  /* Safari stops screen-pinned layers at its bar, so the edge vignette lives on each slide instead
     (same gradient as body::after), and runs to the slide's real bottom. */
  html.native-snap body::after{display:none}
  html.native-snap .project{position:relative}
  html.native-snap .project::after{content:"";position:absolute;inset:0;z-index:40;pointer-events:none;
    background:radial-gradient(ellipse at center,transparent 50%,rgba(0,0,0,.28) 78%,rgba(0,0,0,.55) 100%);
    transition:opacity 1.1s cubic-bezier(.45,0,.55,1)}
  html.native-snap.detail-open .project::after{opacity:0}
}
@media (max-width:760px){
  /* iPhone film look (native-snap = touch phones, main.js PHONE_FX). The blur under the titles is a
     three-layer version of the desktop stack; its dark gradient is a child layer (.gblur-shade) so a
     pitch deck opening fades both together. */
  html.native-snap .gblur[data-position]{background:none}
  html.native-snap .gblur-shade{position:absolute;inset:0}
  html.native-snap .gblur[data-position="bottom"] .gblur-shade{background:linear-gradient(to top,rgba(0,0,0,.62),rgba(0,0,0,.3) 45%,transparent)}
  html.native-snap .gblur[data-position="top"] .gblur-shade{background:linear-gradient(to bottom,rgba(0,0,0,.55),transparent)}
  html.native-snap .gblur[data-taper] .gblur-shade{-webkit-mask-image:linear-gradient(to right,#000 0%,rgba(0,0,0,.9) 22%,rgba(0,0,0,.62) 45%,rgba(0,0,0,.3) 70%,rgba(0,0,0,.08) 88%,transparent 100%);mask-image:linear-gradient(to right,#000 0%,rgba(0,0,0,.9) 22%,rgba(0,0,0,.62) 45%,rgba(0,0,0,.3) 70%,rgba(0,0,0,.08) 88%,transparent 100%)}
  /* Titles are drawn ahead of time so they fade in smoothly instead of popping in on arrival. */
  html.native-snap .project-text,html.native-snap .cover-top{will-change:opacity,transform}
  /* Pitch deck scenes: sized from the screen width (not vh) so the cover sits whole under the header,
     about 70% of the width, with the title below it. Opening fades exactly as on desktop. */
  html.native-snap .deck-slide .deck-media.deck-env{top:calc(96px - 41.4vw);width:300vw;translate:-73.1% 0}
}
@media (max-width:760px){
  /* iPhone home slides: the blur strip runs full width under the titles, a little taller and darker, and
     the small labels draw normally (their desktop "lighten" blend vanished over bright footage). Even
     spacing: type, title and credit sit 12px apart; the credit fits one line. */
  html.native-snap .project:not(.cover-slide) .project-hero .gblur{width:100%;height:60%}
  html.native-snap .gblur[data-position="bottom"] .gblur-shade{background:linear-gradient(to top,rgba(0,0,0,.74),rgba(0,0,0,.42) 50%,transparent)}
  html.native-snap .project-type,html.native-snap .project-blurb.is-short,html.native-snap .cover-role{mix-blend-mode:normal}
  html.native-snap .project-text{text-shadow:0 1px 16px rgba(0,0,0,.5)}
  /* Hierarchy in desktop proportions: the title as large as the longest word allows, the category a
     small bright label above it, the credit smaller and dimmer below it. */
  html.native-snap .project-title{font-size:min(11.8vw,48px);line-height:.92}
  html.native-snap .project-type{font-size:10.5px;letter-spacing:.26em;margin-bottom:10px;color:#ececec}
  html.native-snap .project-blurb.is-short{margin-top:14px;font-size:9.5px;letter-spacing:.2em;line-height:1.75;color:#b4b4b4}
}
@media (max-width:760px){
  /* iPhone swipe stability (Codex review): the cover reel scrolls with its own slide instead of being a
     fixed layer behind a see-through page, and nothing is pre-promoted into GPU layers. */
  html.native-snap .cover-slide{isolation:isolate}
  html.native-snap #heroVideo{position:absolute;top:-6%;bottom:auto;height:112%;z-index:0}
  html.native-snap .hero-media,html.native-snap .deck-bg,html.native-snap .project-text,html.native-snap .cover-top{will-change:auto}
  /* Loading screen: Safari stops screen-pinned layers at its bar, so on iPhone it sits on the page
     instead (the page is held at the top while it runs) and covers the full slide height. */
  html.native-snap .intro{position:absolute;top:0;left:0;right:0}
  /* A reel stays hidden over its still frame until it has painted a real frame (main.js), so a
     slide never shows black while its video wakes up. */
  html.native-snap .hero-media.v-wait{opacity:0}
  /* The still sits exactly where the reel sits (same box as .hero-media), so nothing jumps when it starts. */
  html.native-snap .hero-still{position:absolute;left:0;right:0;top:-6%;width:100%;height:112%;object-fit:cover;display:block;pointer-events:none}
  /* Top bar: a smaller Contact pill, sitting as far in from the right edge as EJS sits from the left. */
  html.native-snap .nav-contact{font-size:10px;padding:.8em 1.2em .8em 1.42em}
  /* Slide lines: thinner and shorter, closer to the edge. */
  html.native-snap .slide-bars{gap:7px;left:9px}
  html.native-snap .slide-bar{width:2px;height:14px;border-radius:2px}
  html.native-snap .slide-bar.on{height:30px}
  /* Slide copy rises in each time a slide arrives (main.js adds .txt-in); only opacity and transform move. */
  html.native-snap.intro-done .project-text .project-type,html.native-snap.intro-done .project-text .title-line,
  html.native-snap.intro-done .project-text .project-blurb{opacity:0;transform:translateY(16px);transition:opacity .25s ease,transform 0s linear .25s}
  html.native-snap.intro-done .project.txt-in .project-text .project-type,html.native-snap.intro-done .project.txt-in .project-text .title-line,
  html.native-snap.intro-done .project.txt-in .project-text .project-blurb{opacity:1;transform:none;transition:opacity .8s ease,transform 1s cubic-bezier(.22,1,.36,1)}
  html.native-snap.intro-done .project.txt-in .project-text .project-type{transition-delay:.05s}
  html.native-snap.intro-done .project.txt-in .project-text .title-line:nth-child(1){transition-delay:.13s}
  html.native-snap.intro-done .project.txt-in .project-text .title-line:nth-child(2){transition-delay:.21s}
  html.native-snap.intro-done .project.txt-in .project-text .title-line:nth-child(3){transition-delay:.29s}
  html.native-snap.intro-done .project.txt-in .project-text .project-blurb{transition-delay:.36s}
  /* Miler and Bourbon: the fade to black at the foot of the scene is a plain gradient on top instead of
     a mask (iPhone Safari redraws masks while scrolling, which flickered). */
  html.native-snap .deck-slide .deck-media.deck-env{-webkit-mask-image:none;mask-image:none}
  /* Pitch deck pages on iPhone: the scene behind them is a pre-blurred, darkened copy (main.js .env-soft)
     that fades in over it. Only opacity changes; a live blur was far too heavy for iPhone. */
  html.native-snap .deck-env .env-img,html.native-snap .deck-env .env-bare{transition:opacity .48s ease}
  html.native-snap .deck-env .env-soft{position:absolute;inset:0;width:100%;height:100%;display:block;opacity:0;transition:opacity .9s ease;user-select:none}
  html.native-snap .deck-slide.scene-open .env-soft{opacity:1}
  html.native-snap .deck-slide.scene-open .env-img,html.native-snap .deck-slide.scene-open .env-bare{filter:none!important;transform:none}
  /* Project pages: the dark band behind EJS / Contact ends above Back (it ran through the middle of it). */
  html.native-snap.detail-open .top-vignette,html.native-snap.deck-open .top-vignette{height:90px;
    background:linear-gradient(to bottom,#000 0%,rgba(0,0,0,.9) 55%,rgba(0,0,0,0) 100%)}
}
@media (max-width:760px){
  /* Miler and Bourbon on iPhone (Elijah 2026-11-09, too much black below): the scene fills the whole
     slide, top to bottom, with the pitch deck cover centred across the screen. No fade to black. */
  html.native-snap .deck-slide .deck-media.deck-env{top:0;left:50%;height:var(--fill-h,100lvh);width:auto;aspect-ratio:16/9;translate:-73% 0}
}
/* iPhone scroll effect, a phone version of the desktop one: as a slide scrolls away its picture grows a
   little and goes soft, and its copy lifts and fades; an arriving slide runs the same in reverse. Driven
   by the scroll itself (CSS scroll-driven animations, iOS 26+), so Safari runs it off the main thread.
   The softness is a pre-blurred copy fading in (only opacity and transform move; a live blur on a
   playing video is too heavy). Older iPhones simply skip it. */
@supports (animation-timeline: view()){
@media (max-width:760px){
  html.native-snap main > .project{view-timeline:--slide block}
  html.native-snap .project-hero > .hero-soft{position:absolute;left:0;right:0;top:-6%;width:100%;height:112%;object-fit:cover;display:block;opacity:0;pointer-events:none}
  html.native-snap .deck-env .env-blur{position:absolute;inset:0;width:100%;height:100%;display:block;opacity:0;pointer-events:none}
  html.native-snap .deck-slide .deck-media.deck-env{transform-origin:73% 50%}
  html.native-snap:not(.detail-open) main > .project:not(#cover) :is(.project-hero > .hero-still,.project-hero > video.hero-media,.deck-media){
    animation:ph-grow-in linear none,ph-grow-out linear none;animation-timeline:--slide,--slide;animation-range:entry 0% entry 100%,exit 0% exit 100%}
  html.native-snap:not(.detail-open) main > .project:not(#cover) .project-hero > .hero-soft{
    animation:ph-grow-in linear none,ph-grow-out linear none,ph-soft-in linear none,ph-soft-out linear none;
    animation-timeline:--slide,--slide,--slide,--slide;animation-range:entry 0% entry 100%,exit 0% exit 100%,entry 0% entry 100%,exit 0% exit 100%}
  html.native-snap:not(.detail-open) main > .deck-slide:not(.scene-open) .env-blur{
    animation:ph-soft-in linear none,ph-soft-out linear none;animation-timeline:--slide,--slide;animation-range:entry 0% entry 100%,exit 0% exit 100%}
  html.native-snap:not(.detail-open) main > .project:not(#cover) .project-text{
    animation:ph-text-out linear none;animation-timeline:--slide;animation-range:exit 0% exit 70%}
}
}
@keyframes ph-grow-in{from{transform:scale(1.1)}to{transform:none}}
@keyframes ph-grow-out{from{transform:none;animation-timing-function:cubic-bezier(.3,0,.7,1)}to{transform:scale(1.1)}}
@keyframes ph-soft-in{from{opacity:.95;animation-timing-function:cubic-bezier(.4,0,.6,1)}to{opacity:0}}
@keyframes ph-soft-out{from{opacity:0;animation-timing-function:cubic-bezier(.2,0,.6,1)}to{opacity:.95}}
@keyframes ph-text-out{from{opacity:1;transform:none}to{opacity:0;transform:translateY(-60px)}}
/* Phone-only layers (main.js adds them on phones); hidden anywhere the phone styles below do not apply. */
.hero-soft,.env-blur,.env-ext,.ct-reel{display:none}
@media (max-width:760px){
  /* iPhone text strip (Elijah 2026-11-09, titles too hard to read): a real blur under the copy plus a
     deeper vignette. The blur is one backdrop layer, shown only while the slide is resting (html.swiping
     is set while the page moves), so swipes never carry it. */
  html.native-snap .gblur-soft{position:absolute;inset:0;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);
    -webkit-mask-image:linear-gradient(to top,#000 0%,#000 38%,rgba(0,0,0,.5) 62%,transparent 90%);mask-image:linear-gradient(to top,#000 0%,#000 38%,rgba(0,0,0,.5) 62%,transparent 90%);
    opacity:0;visibility:hidden;transition:opacity .3s ease,visibility 0s linear .3s}
  html.native-snap:not(.swiping):not(.detail-open) .project.txt-in .gblur-soft{opacity:1;visibility:visible;transition:opacity .9s ease .05s,visibility 0s}
  /* Into and out of a project: the blur goes at once and only returns after the slide has settled back,
     so it never rides the open or close animation (that was the flicker). */
  html.native-snap.detail-open .gblur-soft{transition:none}
  html.native-snap:not(.swiping):not(.detail-open) .project.txt-in .gblur-soft{transition:opacity .9s ease .8s,visibility 0s linear .75s}
  html.native-snap .gblur[data-position="bottom"] .gblur-shade{background:
    radial-gradient(140% 75% at 12% 100%,rgba(0,0,0,.5),rgba(0,0,0,.18) 55%,transparent 80%),
    linear-gradient(to top,rgba(0,0,0,.78),rgba(0,0,0,.46) 45%,transparent)}
  /* Pitch deck slides get the same strip under their titles. */
  html.native-snap .deck-slide .gblur{display:block;top:auto;bottom:0;left:0;right:0;width:100%;height:58%;z-index:2}

  /* Miler and Bourbon (Elijah 2026-11-09): the cover sits whole between the header and the title, sized
     from the slide height so it fits any iPhone. The scene stops a little above the bottom; below it a
     mirrored, softened copy of the scene carries on (no fade to black), and the title sits over that. */
  html.native-snap .deck-slide .deck-media.deck-env{--dw:min(330vw,calc((var(--fill-h,100lvh) - 335px) * 3.175));
    width:var(--dw);height:auto;aspect-ratio:16/9;left:50%;translate:-73% 0;
    top:min(0px,max(calc(92px - var(--dw) * .135),calc(var(--fill-h,100lvh) - 245px - var(--dw) * .45)))}
  html.native-snap .deck-slide{overflow:hidden;overflow:clip}
  html.native-snap .deck-env .env-ext{display:block;position:absolute;left:0;top:100%;width:100%;height:60%;object-fit:cover;object-position:50% 100%;transform:scaleY(-1);pointer-events:none;user-select:none;transition:opacity .9s ease}
  html.native-snap .deck-env .env-ext-soft{opacity:0}
  html.native-snap .deck-slide.scene-open .env-ext-soft{opacity:1}
  html.native-snap .deck-slide.scene-open .env-ext:not(.env-ext-soft){opacity:0}
  html.native-snap .deck-slide .deck-media.deck-env::before{content:"";position:absolute;left:0;right:0;top:100%;height:60%;z-index:1;pointer-events:none;
    background:linear-gradient(to bottom,transparent,rgba(0,0,0,.55) 40%,rgba(0,0,0,.7))}

  /* Contact on iPhone: the softened main reel behind it, under the same dark film as desktop. */
  html.native-snap .contact-slide .ct-reel{display:block;position:absolute;inset:0;z-index:0;overflow:hidden;pointer-events:none}
  html.native-snap .ct-reel video{position:absolute;left:0;top:-6%;width:100%;height:112%;object-fit:cover;display:block}
  html.native-snap .ct-reel::after{content:"";position:absolute;inset:0;background-color:rgba(0,0,0,.5);
    background-image:linear-gradient(90deg,rgba(0,0,0,.45),rgba(0,0,0,.2) 55%,rgba(0,0,0,.45)),linear-gradient(to bottom,rgba(0,0,0,.5),transparent 30%,transparent 65%,rgba(0,0,0,.7))}
}
@media (max-width:760px){
  /* iPhone (Elijah 2026-11-09): project titles sit a little lower. */
  html.native-snap main > .project:not(#cover) .project-text{margin-bottom:calc(var(--fill-pad,0px) - 46px)}
  /* Pitch deck slides flickered mid-swipe: their scene is a ~3x screen-wide stack of five images and the
     scroll effect scaled all of it every frame. They keep the soft fade but no longer grow. */
  html.native-snap:not(.detail-open) main > .deck-slide .deck-media{animation:none!important;transform:none}
}
@media (max-width:760px){
  /* Open pitch deck on iPhone (Elijah 2026-11-09, background looked cut off): one tall pre-blurred image
     (the scene plus its mirror, blurred as one) covers the scene and the area under it, no seam. */
  html.native-snap .deck-env .env-tall{display:block;position:absolute;left:0;top:0;width:100%;height:160%;pointer-events:none;user-select:none;opacity:0;transition:opacity .9s ease}
  html.native-snap .deck-slide.scene-open .env-tall{opacity:1}
}
.env-tall{display:none}
@media (max-width:760px){
  /* Pitch deck slides on iPhone: no scroll-driven fade over their wide image stack (flicker). */
  html.native-snap main > .deck-slide .env-blur{animation:none!important;opacity:0!important}
}
.ct-top{display:none}
@media (max-width:760px){
  /* Contact on iPhone: the footer sits above Safari's bar, with a Back to top button on the right. */
  html.native-snap .ct-foot{bottom:calc(var(--fill-pad,0px) + 18px);justify-content:space-between}
  html.native-snap .ct-top{display:inline-flex;align-items:center;gap:.6em;background:none;border:0;padding:8px 0 8px 12px;margin:-8px 0;color:#d6d6d6;font:inherit;letter-spacing:inherit;text-transform:uppercase;cursor:pointer;white-space:nowrap}
  /* Room after the last slide, so Contact can always snap fully into place even when Safari's bars
     change the page height at the very bottom (it stopped short). Snapping never rests in it. */
  html.native-snap .contact-slide .ct-inner{padding-top:80px;padding-bottom:72px}   /* the form ends above the footer */
  html.native-snap .contact-slide .ct-form{height:auto}   /* desktop matches it to the heading; stacked, it must hold its fields */
}
@media (max-width:760px){
  /* Pitch deck slides on upright phones: the vertical render covers the slide (box = image, so the
     cover corners in main.js line up), the title sits on the open space below the cover. */
  html.native-snap .deck-slide .deck-media.deck-env.deck-p{top:0;left:50%;width:max(100%,calc(var(--fill-h,100lvh) * .5625));height:auto;aspect-ratio:9/16;translate:-50% 0;transform-origin:50% 40%}
  html.native-snap .deck-env.deck-p::before{display:none}
}
@media (max-width:760px){
  /* iPhone round 2026-11-09 (Elijah): every slide's copy starts a little further right, clear of the
     slide bars on the left edge; project titles sit 16px lower and their dark strip ends 16px lower too. */
  html.native-snap main{--text-x:36px}
  html.native-snap .project:not(.cover-slide) .project-hero .gblur{height:calc(60% - 16px)}
  html.native-snap .deck-slide .gblur{height:calc(58% - 16px)}
  /* Next project at the foot of a project page: the phone reels are framed centre, the pitch deck
     renders have their cover in the upper part. */
  html.native-snap .detail .d-next-v{object-position:50% 50%}
  html.native-snap .detail .d-next-v.d-next-p{object-position:50% 37%}
  /* About and Contact share one layout: content centred in the part above Safari's bar, the same side
     margins, and About's heading at the same size as Contact's. */
  html.native-snap .about-slide .ab-inner{display:flex;flex-direction:column;justify-content:center;padding:80px 24px 72px 36px;box-sizing:border-box}
  html.native-snap .about-slide .ab-say{font-size:min(11.2vw,7.2vh)!important;line-height:.92!important;margin:0}
  html.native-snap .about-slide .ab-bottom .ab-stage{margin:0 0 26px}
  html.native-snap .about-slide .ab-intro{font-size:12.5px;line-height:1.75;letter-spacing:.12em}
  html.native-snap .contact-slide .ct-inner{padding-left:36px;padding-right:24px}
  html.native-snap .contact-slide .ct-foot{left:36px;right:24px}
}
.pv-track,.pv-count{display:none}
@media (max-width:760px){
  /* iPhone picture viewer: a horizontal, natively snapping gallery (smooth on iPhone), close button
     below the clock, page count above the home bar. */
  .viewer.pv.open{display:block}
  .viewer.pv .pv-track{display:flex;position:absolute;inset:0;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;overscroll-behavior:contain;scrollbar-width:none;touch-action:pan-x pinch-zoom}
  .viewer.pv .pv-track::-webkit-scrollbar{display:none}
  .viewer.pv .pv-track figure{flex:0 0 100%;height:100%;margin:0;display:flex;align-items:center;justify-content:center;scroll-snap-align:center;scroll-snap-stop:always;padding:calc(env(safe-area-inset-top,0px) + 64px) 12px calc(env(safe-area-inset-bottom,0px) + 56px);box-sizing:border-box}
  .viewer.pv .pv-track img{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;display:block}
  .viewer.pv .pv-count{display:block;position:absolute;left:0;right:0;bottom:calc(env(safe-area-inset-bottom,0px) + 18px);margin:0;text-align:center;font:600 11px/1 "Archivo",var(--ui);font-stretch:125%;letter-spacing:.22em;color:#bdbdbd;pointer-events:none}
  .viewer.pv .pv-count[hidden]{display:none}
  .viewer .close{top:calc(env(safe-area-inset-top,0px) + 12px);right:14px;width:44px;height:44px;background:rgba(30,30,30,.72)}
}

/* A phone held sideways: the same soft reel behind Contact (the desktop backdrop is not built there),
   and the form compacted to fit the short screen. */
@media (pointer:coarse) and (max-height:500px) and (orientation:landscape){
  html.native-snap .contact-slide .ct-reel{display:block;position:absolute;inset:0;z-index:0;overflow:hidden;pointer-events:none}
  html.native-snap .ct-reel video{position:absolute;left:0;top:-6%;width:100%;height:112%;object-fit:cover;display:block}
  html.native-snap .ct-reel::after{content:"";position:absolute;inset:0;background-color:rgba(0,0,0,.5);
    background-image:linear-gradient(90deg,rgba(0,0,0,.45),rgba(0,0,0,.2) 55%,rgba(0,0,0,.45)),linear-gradient(to bottom,rgba(0,0,0,.5),transparent 30%,transparent 65%,rgba(0,0,0,.7))}
  html.native-snap .contact-slide .ct-inner{position:relative;z-index:1;padding-top:64px;padding-bottom:44px;align-items:center}
  html.native-snap .contact-slide .ct-head{font-size:min(6.4vw,15vh)!important}
  html.native-snap .contact-slide .ct-foot{z-index:2;bottom:12px}
  html.native-snap .contact-slide .ct-form{height:auto;zoom:.72}
  html.native-snap .contact-slide .ct-inner{padding-bottom:52px}
}
@media (max-width:760px){
  /* About on iPhone (Elijah 2026-11-09): a wider, smaller paragraph; each fact's label above its line. */
  html.native-snap .about-slide{padding-left:0;padding-right:0}   /* its inner box carries the margins, as on Contact */
  html.native-snap .about-slide .ab-inner{padding-right:22px}
  html.native-snap .about-slide .ab-intro{font-size:11px;line-height:1.8;letter-spacing:.09em}
  html.native-snap .about-slide .ab-facts{display:flex;flex-direction:column;gap:16px}
  html.native-snap .about-slide .ab-facts p{display:flex;flex-direction:column;align-items:flex-start;gap:6px;line-height:1.6}
  /* Contact: no bounce past the last slide, and the "copied" note opens to the right of its button. */
  html.native-snap{overscroll-behavior-y:none}
  html.native-snap .ct-toast{left:0;right:auto}
}
@media (max-width:760px){html.native-snap .ct-top{padding:14px 0 14px 16px;margin:-14px 0}}   /* a bigger target for a thumb */
@media (max-width:760px){
  /* Contact is the same fixed height as every other slide. (Sized to the visible height it changed
     height while Safari's bar slid away mid-swipe, so its snap point moved and the page jumped.) Its
     content keeps clear of the bar with padding instead, which eases as the bar comes and goes. */
  html.native-snap main > .contact-slide{height:var(--fill-h,100lvh)}
  html.native-snap .contact-slide .ct-inner{height:100%;box-sizing:border-box;padding-bottom:calc(72px + var(--fill-pad,0px));transition:padding-bottom .35s ease}
  html.native-snap .contact-slide .ct-foot{bottom:calc(18px + var(--fill-pad,0px));transition:bottom .35s ease}
  /* The cover's changing word: a slow crossfade with a small rise (the quick swap read as a flicker). */
  html.native-snap .role-word{opacity:0;transform:translateY(6px)!important;transition:opacity .5s ease,transform .6s ease}
  html.native-snap .role-word.is-on{opacity:1;transform:none!important;transition:opacity .6s ease .35s,transform .8s cubic-bezier(.22,1,.36,1) .35s}
  html.native-snap .role-word.is-out{opacity:0;transform:translateY(-6px)!important}
  html.native-snap .role-word.no-anim{transition:none}
  html.native-snap .cover-role,html.native-snap .cover-foot{transition:opacity 1s ease .3s,transform 1.1s cubic-bezier(.22,1,.36,1) .3s}
}
@media (max-width:760px){
  /* Bigger touch target for the full-screen button: 44px around the same icon in the same place. */
  html.native-snap .fs{width:44px;height:44px;right:6px;bottom:6px}
}
@media (max-width:760px) and (prefers-reduced-motion:reduce){
  /* Reduce Motion: no scroll-driven zooms, rising text or moving words on phones; things simply appear. */
  html.native-snap main > .project :is(.hero-still,video.hero-media,.deck-media,.hero-soft,.env-blur,.project-text){animation:none!important}
  html.native-snap .project-text :is(.project-type,.title-line,.project-blurb),html.native-snap .role-word,
  html.native-snap .cover-role,html.native-snap .cover-foot,html.native-snap .gblur-soft{transition:none!important;transform:none!important}
}
@media (max-width:760px){
  /* The phone reels carry the title blur in the video itself: no live blur layer over them (the dark shade stays). */
  html.native-snap.baked-blur .project:not(.deck-slide) .gblur-soft{display:none}
}
@media (max-width:760px){
  /* About: its text is centred in the area visible with Safari's bar showing, a fixed size (100svh), so the
     bar sliding in or out never moves it. (Sized from --fill-pad, the box shrank as the bar came back on a
     swipe up from Contact and the text jumped up.) */
  html.native-snap .about-slide .ab-inner{height:min(100%,100svh)}
}
@media (max-width:760px){
  /* Titles sit at a fixed height: the room left for Safari's bar is its size with the bar showing (100svh),
     not the live --fill-pad, which changed mid-swipe as the bar slid away and made the text jitter. */
  html.native-snap{--pad-rest:max(0px, calc(var(--fill-h,100lvh) - 100svh))}
  html.native-snap .project-text,html.native-snap .cover-top,html.native-snap .cover-pitch{margin-bottom:var(--pad-rest)}
  html.native-snap main > .project:not(#cover) .project-text{margin-bottom:calc(var(--pad-rest) - 46px)}
}
.tb-back{display:none}
@media (max-width:760px),(pointer:coarse) and (max-height:500px) and (orientation:landscape){
  /* Phones: EJS (top left) fades into Back while a project or pitch deck page is open. */
  html.native-snap .tb-back{display:inline-flex;position:absolute;transform:translateY(-50%);align-items:center;gap:12px;margin:0;padding:14px 14px 14px 0;border:0;background:none;color:#e6e6e6;font-family:"Archivo",var(--ui);font-stretch:125%;font-weight:600;font-size:14px;line-height:1;letter-spacing:.24em;text-transform:uppercase;
    opacity:0;visibility:hidden;pointer-events:none;transition:opacity .4s ease,visibility 0s linear .4s}
  html.native-snap .tb-back svg{width:18px;height:18px}
  html.native-snap .tb-back:focus{outline:none}
  html.native-snap .brand-ej{transition:opacity .45s ease .2s}
  html.native-snap.detail-open .brand-ej{opacity:0;pointer-events:none;transition:opacity .35s ease}
  html.native-snap.detail-open .tb-back{opacity:1;visibility:visible;pointer-events:auto;transition:opacity .45s ease .2s,visibility 0s}
  html.native-snap .detail .d-top .detail-back,html.native-snap .deckview .dv-back{visibility:hidden;pointer-events:none}
}
.tap-hint,.swipe-more{display:none}
@media (max-width:760px),(pointer:coarse) and (max-height:500px) and (orientation:landscape){
  /* Phones: "Tap to open", the same clean ring and label as the desktop cursor (main.js). */
  html.native-snap .tap-hint{display:block;position:fixed;left:50%;top:42%;z-index:45;pointer-events:none;opacity:0}
  html.native-snap .tap-hint .th-ring{position:absolute;left:0;top:0;width:104px;height:104px;margin:-52px 0 0 -52px;border-radius:50%;border:1.5px solid #fff;background:hsl(0 0% 0% / .16);display:grid;place-items:center;box-sizing:border-box}
  html.native-snap .tap-hint span{font:600 11px/1.2 var(--ui);letter-spacing:.14em;text-transform:uppercase;color:#fff;text-shadow:0 1px 8px rgba(0,0,0,.55);text-align:center;padding:0 10px}
  html.native-snap .tap-hint.on{animation:tap-hint 2.6s ease both}
  /* Swipe for more: under the slide's text, left aligned; in and out with the titles (.txt-in). */
  html.native-snap .swipe-more{display:flex;align-items:center;gap:12px;margin:20px 0 0;pointer-events:none}
  html.native-snap.intro-done .project-text .swipe-more{opacity:0;transform:translateY(16px);transition:opacity .25s ease,transform 0s linear .25s}
  html.native-snap.intro-done .project.txt-in .project-text .swipe-more{opacity:1;transform:none;transition:opacity .9s ease .5s,transform 1.1s cubic-bezier(.22,1,.36,1) .5s}
  html.native-snap .sm-dot{position:relative;width:28px;height:28px;border-radius:50%;border:1.5px solid #f2f2f2;box-sizing:border-box;color:#f2f2f2;overflow:hidden;flex:none}
  html.native-snap .sm-dot i{position:absolute;inset:0;display:grid;place-items:center;opacity:0}
  html.native-snap .sm-dot svg{width:14px;height:14px}
  /* Two arrows on one continuous track: as one drifts out the bottom, the next drifts in from the top. */
  html.native-snap .sm-dot i{animation:sm-arrow 2.8s linear infinite}
  html.native-snap .sm-dot i + i{animation-delay:-1.4s}
  /* The cover: it comes in with the cover's text once the loading animation is done. */
  html.native-snap .cover-top .swipe-more{opacity:0;transform:translateY(16px);transition:opacity .9s ease,transform 1.1s cubic-bezier(.22,1,.36,1)}
  html.native-snap.intro-done .cover-top .swipe-more{opacity:1;transform:none;transition-delay:.9s}
  html.native-snap .sm-t{font-family:"Archivo",var(--ui);font-stretch:125%;font-weight:600;font-size:10px;letter-spacing:.24em;text-transform:uppercase;color:#d9d9d9}
}
@keyframes tap-hint{0%{opacity:0;transform:scale(.92)}18%{opacity:1;transform:none}70%{opacity:1;transform:none}100%{opacity:0;transform:none}}
@keyframes sm-arrow{0%{opacity:0;transform:translateY(-9px)}50%{opacity:1;transform:translateY(0)}100%{opacity:0;transform:translateY(9px)}}
@media (prefers-reduced-motion:reduce){html.native-snap .sm-dot i{animation:none}html.native-snap .sm-dot i:first-child{opacity:1}}
@keyframes tap-hint-fade{0%{opacity:0}18%{opacity:1}70%{opacity:1}100%{opacity:0}}
@media (prefers-reduced-motion:reduce){html.native-snap .tap-hint.on{animation-name:tap-hint-fade}}   /* Reduce Motion: fade only, no scale */
/* Back to top on Contact, computers (phones style it in their own block). */
@media (pointer:fine){
  .ct-top{display:inline-flex;align-items:center;gap:.6em;background:none;border:0;padding:0;color:#d6d6d6;font:inherit;letter-spacing:inherit;text-transform:uppercase;cursor:pointer;white-space:nowrap;transition:color .3s ease}
  .ct-top:hover{color:#fff}
}
/* Back to top: a defined button in the Contact pill's style (white, rounded), computers and phones. */
.contact-slide .ct-foot .ct-top{display:inline-flex;align-items:center;gap:.7em;background:#f2f2f2;color:#0b0b0b;border:0;border-radius:6px;padding:.95em 1.3em .95em 1.5em;margin:0;font-family:"Archivo",var(--ui);font-stretch:125%;font-weight:600;letter-spacing:.22em;text-transform:uppercase;cursor:pointer;white-space:nowrap;transition:background-color .3s ease}
.contact-slide .ct-foot .ct-top:hover{background:#fff;color:#000}
/* Full screen viewer: fades in rather than snapping to black. */
.viewer.open{animation:viewer-in .28s ease both}
@keyframes viewer-in{from{opacity:0}to{opacity:1}}
@media (prefers-reduced-motion:reduce){.viewer.open{animation:none}}
/* Slide line breaks meant for computers only (e.g. the Killing Satoshi credit on two lines). */
@media (pointer:coarse){.project-blurb .mb-desk{display:none}}

/* ==== Contact people (Elijah 2026-11-23): the form is hidden (SHOW_FORM in main.js) and the two people
   show in its place, styled like the form's labels and fields. As tall as the headline on computers. ==== */
.contact-slide .ct-form[hidden],.contact-slide .ct-people[hidden],.contact-slide .ct-mailwrap[hidden]{display:none!important}
.ct-people{width:100%;justify-self:stretch;align-self:center;height:var(--ct-h,auto);display:flex;flex-direction:column;justify-content:space-between;padding:.6em 0 .35em;gap:clamp(28px,5vh,56px)}
.ct-person{display:flex;flex-direction:column;align-items:flex-start;border-bottom:1px solid rgba(242,242,242,.28);padding-bottom:clamp(14px,2.2vh,24px)}
.ct-role{display:flex;gap:1em;align-items:baseline;font-size:11px;letter-spacing:.24em;text-transform:uppercase;color:#8a8a8a}
.ct-role i{font-style:normal;color:#f2f2f2}
.ct-name{margin:.35em 0 .15em;font-family:"Archivo",var(--ui);font-stretch:125%;font-weight:600;text-transform:uppercase;letter-spacing:.02em;line-height:1;font-size:clamp(34px,3.4vw,64px);color:#f2f2f2}
.ct-email{font-family:"Archivo",var(--ui);font-stretch:125%;font-weight:500;font-size:clamp(16px,1.2vw,22px);color:#d6d6d6;text-decoration:none;transition:color .3s ease}
.ct-email:hover,.ct-email:focus-visible{color:#fff;text-decoration:underline;text-underline-offset:.25em}
@media (max-width:900px){.ct-people{height:auto;justify-content:flex-start}}
@media (max-width:760px){.ct-role{font-size:10px}.ct-name{font-size:30px}.ct-email{font-size:16px}}
html.native-snap .contact-slide .ct-people{height:auto}
/* Contact people v2 (Elijah 2026-11-23): computers get the headline on one line and one row per person,
   role above, name left and email right on the same line. Phones keep the stacked version above. */
@media (min-width:901px){
  html:not(.native-snap) .contact-slide .ct-inner{grid-template-columns:1fr!important;align-content:center;row-gap:clamp(48px,9vh,140px);column-gap:0}
  html:not(.native-snap) .contact-slide .ct-head{flex-direction:row;flex-wrap:nowrap;gap:0 .26em;white-space:nowrap;font-size:min(5.3vw,13vh)!important}
  html:not(.native-snap) .ct-people{height:auto;padding:0;gap:0;justify-content:flex-start;border-top:1px solid rgba(242,242,242,.28)}
  html:not(.native-snap) .ct-person{display:grid;grid-template-columns:1fr auto;grid-template-rows:auto auto;align-items:baseline;column-gap:2em;padding:clamp(18px,2.8vh,40px) 0}
  html:not(.native-snap) .ct-role{grid-column:1 / -1;font-size:clamp(12px,.85vw,18px);letter-spacing:.22em;color:#a5a5a5}
  html:not(.native-snap) .ct-name{margin:.25em 0 0;font-size:clamp(40px,3.6vw,96px)}
  html:not(.native-snap) .ct-email{font-size:clamp(18px,1.5vw,36px);justify-self:end}
}
