/* ============================================================
   Kairos Systemics — continuous cinematic reel
   Palette: #57676B slate · #74847C moss · #9DABA8 sage · #B4C4BE mist
   ============================================================ */

:root{
  --ink:#0d1010;
  --paper:#eef1ec;
  --slate:#57676B;
  --moss:#74847C;
  --sage:#9DABA8;
  --mist:#B4C4BE;
  --bone:#d6dcd5;
  --gold:#c9a96b;

  --serif:"Fraunces", "Times New Roman", serif;
  --sans:"Inter", system-ui, sans-serif;
  --mono:"JetBrains Mono", ui-monospace, monospace;

  --gutter:clamp(1.25rem, 4vw, 4rem);
  --maxw:1480px;
}

*,*::before,*::after{box-sizing:border-box}
html,body{margin:0;padding:0;background:#0a0c0c;color:var(--paper);font-family:var(--sans);-webkit-font-smoothing:antialiased}
html.lenis,html.lenis body{height:auto}
.lenis.lenis-smooth{scroll-behavior:auto!important}
.lenis.lenis-smooth [data-lenis-prevent]{overscroll-behavior:contain}

img,video{display:block;max-width:100%}
a{color:inherit;text-decoration:none}
button{font:inherit;cursor:pointer;border:0;background:none;color:inherit}
::selection{background:var(--mist);color:var(--ink)}

/* Accessibility helpers — visually-hidden + skip link */
.screen-reader-text{position:absolute!important;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);width:1px;height:1px;overflow:hidden;word-wrap:normal!important;padding:0;margin:-1px;border:0}
.screen-reader-text:focus,.skip-link:focus{
  position:fixed!important;top:1rem;left:1rem;width:auto;height:auto;clip:auto;clip-path:none;
  z-index:9999;
  background:var(--mist);color:var(--ink);
  padding:.75rem 1rem;font-family:var(--mono);font-size:.72rem;letter-spacing:.22em;text-transform:uppercase;
  border:1px solid var(--paper);
}
/* Global keyboard focus ring */
:focus-visible{outline:2px solid var(--mist);outline-offset:3px}
/* Admin bar offset for fixed nav */
.admin-bar .nav{top:32px}
@media (max-width:782px){.admin-bar .nav{top:46px}}

/* film grain */
.grain{position:fixed;inset:0;z-index:200;pointer-events:none;opacity:.07;mix-blend-mode:overlay;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.55'/></svg>");
  animation:grainShift 1.4s steps(6) infinite;
}
@keyframes grainShift{
  0%{transform:translate(0,0)}20%{transform:translate(-3%,2%)}40%{transform:translate(2%,-3%)}
  60%{transform:translate(-2%,1%)}80%{transform:translate(3%,3%)}100%{transform:translate(0,0)}
}

/* subtle global vignette */
.vignette{position:fixed;inset:0;z-index:85;pointer-events:none;
  background:radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,.40) 100%)}

/* Story→pricing transition: a black curtain that draws across the stage */
.curtain{
  position:fixed;inset:0;z-index:88;pointer-events:none;
  background:#0a0c0c;
  opacity:0;
  will-change:opacity;
}

/* ----------------------------------------------------------------
   PERSISTENT STAGE — one fixed reel of 9 videos that crossfade
---------------------------------------------------------------- */
.stage{position:fixed;inset:0;z-index:0;overflow:hidden;background:#0a0c0c}
.stage__v{
  position:absolute;inset:0;width:100%;height:100%;object-fit:cover;
  opacity:0;
  transform:scale(1.16);
  transform-origin:center 55%;
  filter:saturate(.95) contrast(1.05);
  transition:opacity 1.4s cubic-bezier(.55,0,.25,1), filter 1.6s ease;
  will-change:opacity,transform,filter;
  background:#0a0c0c;
}
.stage__v.active{opacity:1;filter:saturate(1) contrast(1.06)}

/* WebCodecs canvas — mirrors .stage__v positioning. Hidden by default;
   shown only when body.webcodecs-scrub is set (feature detect passed). */
.stage__c{
  position:absolute;inset:0;width:100%;height:100%;object-fit:cover;
  opacity:0;
  transform:scale(1.16);
  transform-origin:center 55%;
  filter:saturate(.95) contrast(1.05);
  transition:opacity 1.4s cubic-bezier(.55,0,.25,1), filter 1.6s ease;
  will-change:opacity,transform,filter;
  background:#0a0c0c;
  display:none;
}
body.webcodecs-scrub .stage__c{display:block}
body.webcodecs-scrub .stage__v{display:none}
.stage__c.active{opacity:1;filter:saturate(1) contrast(1.06)}

/* veils — three flavours faded in by JS based on current scene's data-veil */
.stage__veil{
  position:absolute;inset:0;z-index:2;pointer-events:none;
  opacity:0;
  transition:opacity 1.4s cubic-bezier(.55,0,.25,1);
  background:
    radial-gradient(130% 90% at 0% 55%, rgba(8,10,11,.92), rgba(8,10,11,.30) 55%, rgba(8,10,11,0) 78%),
    linear-gradient(to top, rgba(8,10,11,.75), rgba(8,10,11,.10) 38%, rgba(8,10,11,.55));
  mix-blend-mode:multiply;
}
.stage__veil--right{
  background:
    radial-gradient(130% 90% at 100% 55%, rgba(8,10,11,.94), rgba(8,10,11,.30) 55%, rgba(8,10,11,0) 78%),
    linear-gradient(to top, rgba(8,10,11,.7), rgba(8,10,11,.05) 38%, rgba(8,10,11,.45));
}
.stage__veil--center{
  background:
    radial-gradient(45% 35% at 50% 50%, rgba(8,10,11,.72), rgba(8,10,11,.35) 65%, rgba(8,10,11,.55) 100%),
    radial-gradient(120% 90% at 50% 50%, rgba(8,10,11,.25), rgba(8,10,11,.75));
}
.stage[data-veil="left"]   .stage__veil:not(.stage__veil--right):not(.stage__veil--center){opacity:1}
.stage[data-veil="right"]  .stage__veil--right{opacity:1}
.stage[data-veil="center"] .stage__veil--center{opacity:1}

/* grade pass for cinematic split-tone */
.stage::after{
  content:"";position:absolute;inset:0;z-index:3;pointer-events:none;
  background:
    radial-gradient(60% 40% at 50% 30%, rgba(180,196,190,.05), transparent 70%),
    radial-gradient(80% 60% at 50% 100%, rgba(201,169,107,.04), transparent 70%);
  mix-blend-mode:screen;
}

/* ----------------------------------------------------------------
   Nav
---------------------------------------------------------------- */
.nav{
  position:fixed; top:0; left:0; right:0; z-index:100;
  display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:2rem;
  padding:1.1rem var(--gutter);
  background:linear-gradient(to bottom, rgba(8,10,10,.55), rgba(8,10,10,0));
  font-family:var(--mono); font-size:.72rem; letter-spacing:.14em; text-transform:uppercase;
  color:var(--bone);
}
.nav__mark{display:inline-flex;align-items:center;color:var(--paper);line-height:0}

/* Horizontal lockup logo (mathematical flower + wordmark + tagline baked in) */
.nav__lockup{
  display:block;
  width:auto;
  height:80px;
  max-width:none;
  /* Source PNG has near-black background — screen blend drops the black so
     only the silver linework + wordmark + tagline render against the nav. */
  mix-blend-mode:screen;
  filter:brightness(1.18) contrast(1.08);
  transition:filter .5s ease;
}
.nav__mark:hover .nav__lockup{filter:brightness(1.32) contrast(1.10)}

/* Hamburger trigger — only visible on mobile */
.nav__hamburger{
  display:none;
  align-items:center;justify-content:center;
  width:38px;height:38px;
  padding:0;border:1px solid rgba(180,196,190,.25);background:transparent;color:var(--bone);cursor:pointer;
  transition:background .3s,color .3s,border-color .3s;
}
.nav__hamburger:hover{background:rgba(180,196,190,.08);color:var(--paper);border-color:var(--mist)}
.nav__hamburger-bars{display:inline-flex;flex-direction:column;justify-content:center;gap:5px;width:18px;height:14px}
.nav__hamburger-bars span{display:block;height:1px;width:100%;background:currentColor}
.nav__hamburger-bars span:nth-child(2){width:70%;align-self:flex-end}

@media(max-width:1024px){
  /* Mobile/tablet nav: flex layout pins lockup left, hamburger right */
  .nav{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:.6rem;
    padding:.85rem var(--gutter);
  }
  .nav__lockup{height:72px}
  .nav__links{display:none !important}
  .nav__hamburger{display:inline-flex;width:46px;height:46px}
  .nav__hamburger-bars{width:22px}
  .nav__progress{display:none}
}
@media(max-width:480px){
  .nav__lockup{height:60px}
}

/* ─── Mobile fade-modal menu ─── */
.mobile-menu{
  position:fixed;inset:0;z-index:300;
  background:rgba(8,10,11,.92);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  opacity:0;visibility:hidden;
  transition:opacity .45s cubic-bezier(.2,.7,.2,1), visibility 0s linear .45s;
}
.mobile-menu.is-open{
  opacity:1;visibility:visible;
  transition:opacity .45s cubic-bezier(.2,.7,.2,1), visibility 0s linear 0s;
}
.mobile-menu__inner{
  position:relative;min-height:100svh;height:100%;
  display:flex;flex-direction:column;
  padding:1.4rem var(--gutter) 2rem;
  max-width:48rem;margin:0 auto;
}
.mobile-menu__head{
  display:flex;justify-content:space-between;align-items:center;gap:1rem;
  padding-bottom:1.4rem;border-bottom:1px solid rgba(180,196,190,.16);
}
.mobile-menu__eyebrow{font-family:var(--mono);font-size:.66rem;letter-spacing:.22em;text-transform:uppercase;color:var(--sage)}
.mobile-menu__close{
  width:38px;height:38px;display:inline-flex;align-items:center;justify-content:center;
  border:1px solid rgba(180,196,190,.25);background:transparent;color:var(--bone);cursor:pointer;
  transition:background .3s,color .3s,border-color .3s;
}
.mobile-menu__close:hover{background:var(--mist);color:var(--ink);border-color:var(--mist)}

.mobile-menu__nav{
  flex:1;
  display:flex;flex-direction:column;gap:.4rem;
  padding-top:3.5rem;
  opacity:0;transform:translateY(20px);
  transition:opacity .55s ease .1s,transform .55s cubic-bezier(.2,.7,.2,1) .1s;
}
.mobile-menu.is-open .mobile-menu__nav{opacity:1;transform:translateY(0)}
.mobile-menu__link{
  display:block;padding:.65rem 0;
  font-family:var(--serif);font-weight:400;
  font-size:clamp(2rem,7vw,3rem);line-height:1.1;letter-spacing:-.015em;
  color:var(--paper);
  font-variation-settings:"opsz" 32;
  border-bottom:1px solid rgba(180,196,190,.08);
  transition:color .3s,padding-left .3s;
}
.mobile-menu__link:hover{color:var(--mist);padding-left:.3rem}
.mobile-menu__link:last-child{border-bottom:0}

.mobile-menu__foot{
  padding-top:2rem;
  display:flex;flex-direction:column;gap:1.5rem;align-items:flex-start;
  border-top:1px solid rgba(180,196,190,.16);
  opacity:0;transform:translateY(20px);
  transition:opacity .55s ease .25s,transform .55s cubic-bezier(.2,.7,.2,1) .25s;
}
.mobile-menu.is-open .mobile-menu__foot{opacity:1;transform:translateY(0)}
/* Controls row: language + motion side by side */
.mobile-menu__controls{display:flex;gap:2.5rem;align-items:flex-start;flex-wrap:wrap}
.mobile-menu__controls .eyebrow{display:block;margin-bottom:.7rem;font-family:var(--mono);font-size:.62rem;letter-spacing:.22em;text-transform:uppercase;color:var(--sage)}

.mobile-menu__lang-row{display:flex;align-items:center;gap:0}
.mobile-menu__lang-item{
  position:relative;
  padding:.3rem .7rem;
  font-family:var(--mono);font-size:.72rem;letter-spacing:.22em;text-transform:uppercase;
  color:rgba(214,220,213,.55);
  transition:color .3s;
}
.mobile-menu__lang-item:first-child{padding-left:0}
.mobile-menu__lang-item + .mobile-menu__lang-item{border-left:1px solid rgba(180,196,190,.22)}
.mobile-menu__lang-item:hover{color:var(--paper)}
.mobile-menu__lang-item.is-active{color:var(--paper)}
.mobile-menu__lang-item.is-active::after{content:"";position:absolute;left:.7rem;right:.7rem;bottom:.1em;height:1px;background:var(--mist)}
.mobile-menu__lang-item:first-child.is-active::after{left:0}

/* Motion button — wider, no wrap, inside menu */
.mobile-menu__motion-btn{
  display:inline-flex !important;align-items:center;gap:.7rem;
  width:auto !important;height:auto !important;
  padding:.55rem 1rem !important;
  font-family:var(--mono);font-size:.7rem;letter-spacing:.2em;text-transform:uppercase;
  white-space:nowrap;
}

.mobile-menu__cta{margin-top:1rem;align-self:flex-start}

/* Belt-and-suspenders: hide the fixed nav entirely while the modal is open
   so nothing from the header bleeds through behind the modal blur */
body.mobile-menu-open .nav,
body.mobile-menu-open .vignette,
body.mobile-menu-open .grain{visibility:hidden}

body.mobile-menu-open{overflow:hidden}

.nav__links{display:flex;justify-content:flex-end;gap:1.6rem;align-items:center}
.nav__links a{position:relative;color:var(--bone);transition:color .3s}
.nav__links a:hover{color:var(--paper)}
.nav__links a:not(.nav__cta):not(.lang-switcher__item)::after{content:"";position:absolute;left:0;right:0;bottom:-.4em;height:1px;background:currentColor;transform:scaleX(0);transform-origin:left;transition:transform .4s}
.nav__links a:not(.nav__cta):not(.lang-switcher__item):hover::after{transform:scaleX(1)}
.nav__links a.nav__cta{
  padding:.7rem 1.1rem;
  border:1px solid var(--mist);
  border-radius:0;
  color:var(--paper);
  font-family:var(--mono);
  font-size:.68rem;
  letter-spacing:.22em;
  text-transform:uppercase;
  transition:background .35s ease,color .35s ease,letter-spacing .35s ease;
}
.nav__links a.nav__cta:hover{background:var(--mist);color:var(--ink);letter-spacing:.28em}
.nav__links a.nav__cta:hover::after{display:none}
/* Default: show full label, hide short label. Mobile media query inverts these. */
.nav__cta-full{display:inline}
.nav__cta-short{display:none}
/* ─── Motion toggle (WCAG 2.2.2 Pause/Stop/Hide for autoplaying content) ─── */
.nav__motion-toggle{
  display:inline-flex;align-items:center;justify-content:center;
  width:30px;height:30px;
  padding:0;
  background:transparent;
  border:1px solid rgba(180,196,190,.25);
  color:var(--bone);cursor:pointer;
  transition:background .3s,color .3s,border-color .3s;
}
.nav__motion-toggle:hover{background:rgba(180,196,190,.08);color:var(--paper);border-color:var(--mist)}
.nav__motion-toggle[aria-pressed="true"]{background:var(--mist);color:var(--ink);border-color:var(--mist)}
.nav__motion-toggle[aria-pressed="true"] .nav__motion-pause{display:none}
.nav__motion-toggle[aria-pressed="true"] .nav__motion-play{display:inline!important}
@media(max-width:780px){.nav__motion-toggle{width:26px;height:26px}}

/* ─── Language switcher ─── */
.lang-switcher{display:inline-flex;align-items:center;gap:0;font-family:var(--mono);font-size:.65rem;letter-spacing:.18em;text-transform:uppercase;color:var(--bone)}
.lang-switcher__item{
  position:relative;
  padding:.35rem .6rem;
  color:rgba(214,220,213,.5);
  transition:color .25s ease;
}
.lang-switcher__item:hover{color:var(--paper)}
.lang-switcher__item.is-active{color:var(--paper)}
.lang-switcher__item.is-active::after{
  content:"";position:absolute;left:.6rem;right:.6rem;bottom:.05em;
  height:1px;background:var(--mist);
}
.lang-switcher__item + .lang-switcher__item{border-left:1px solid rgba(180,196,190,.18)}
@media(max-width:900px){
  .lang-switcher{font-size:.62rem;letter-spacing:.16em}
  .lang-switcher__item{padding:.3rem .5rem}
}

.nav__progress{grid-column:1/-1;height:1px;background:rgba(180,196,190,.15);position:relative;margin-top:.5rem}
.nav__progress span{position:absolute;left:0;top:0;bottom:0;background:linear-gradient(90deg,var(--sage),var(--mist));width:0%}
@media (max-width:780px){ .nav__links a:not(.nav__cta):not(.lang-switcher__item){display:none} }

/* ----------------------------------------------------------------
   Scene primitive — pure scroll runway holding copy only
---------------------------------------------------------------- */
.scene{position:relative;height:var(--scene-h, 240vh);z-index:2}
.scene__pin{position:sticky;top:0;height:100vh;display:grid;align-items:center}
.scene__copy{
  position:relative;z-index:6;
  width:100%; max-width:var(--maxw); margin:0 auto;
  padding:7rem var(--gutter) 5rem;
  display:flex; flex-direction:column; gap:1.6rem;
  max-inline-size:min(46rem, 100%);
}
.scene--right .scene__copy{margin-left:auto;margin-right:0;align-items:flex-end;text-align:right}
.scene--right .scene__copy > *{max-width:46rem}
.scene__copy--center{margin-left:auto;margin-right:auto;align-items:center;text-align:center;max-inline-size:62rem;isolation:isolate}
/* soft scrim behind centered title cards for legibility over busy videos */
.scene__copy--center::before{
  content:"";position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);
  width:min(110%,80rem);height:min(120%,28rem);
  z-index:-1;pointer-events:none;
  background:radial-gradient(50% 50% at 50% 50%, rgba(8,10,11,.62), rgba(8,10,11,.25) 60%, rgba(8,10,11,0) 78%);
  filter:blur(4px);
}
.scene__copy--center.manifesto::before{height:min(120%,46rem)}
.scene__copy--center h2,.scene__copy--center .display{text-shadow:0 1px 22px rgba(0,0,0,.55)}
.scene__copy--hero{padding-top:9rem;padding-bottom:7rem;max-inline-size:min(72rem,100%)}
/* wide editorial scenes — let the layout breathe across the viewport */
#s5 .scene__copy,#s7 .scene__copy{max-inline-size:min(104rem,100%)}
#s5 .title,#s5 .body,#s7 .title{max-width:none}
#s7 .method article{padding:1.6rem 1.6rem 2rem;min-height:16rem;gap:.75rem}
#s7 .method article h3{font-size:1.5rem;line-height:1.1}
#s7 .method article p{font-size:.95rem;line-height:1.55}
.scene__copy--hero .display{max-width:none;white-space:nowrap}
@media(max-width:900px){.scene__copy--hero .display{white-space:normal}}

/* HUD label */
.hud{display:inline-flex;align-items:center;gap:.85rem;font-family:var(--mono);font-size:.7rem;letter-spacing:.22em;text-transform:uppercase;color:var(--mist)}
.hud__num{color:var(--gold)}
.hud__line{flex:0 0 3rem;height:1px;background:currentColor;opacity:.5}
.hud--center{justify-content:center}

/* Typography */
.display{
  font-family:var(--serif); font-weight:400;
  font-size:clamp(2.8rem, 7.2vw, 7.5rem);
  line-height:.96; letter-spacing:-.02em; margin:0;
  /* opsz 32 = text optical size: lowercase 'e' crossbar stays thick and
     horizontal even when displayed at large pixel sizes. Decouples Fraunces'
     internal "display" voice from the visible size on screen. */
  font-variation-settings:"opsz" 32;
}
.display span{display:block}
.display__em{font-style:italic;color:var(--mist);font-weight:300}
.display--quiet{font-size:clamp(2rem, 4.2vw, 4rem); line-height:1.1; font-weight:400; max-width:36ch; margin:0 auto;
  font-variation-settings:"opsz" 32;
}
.display--quiet em{font-style:italic;color:var(--sage)}

.title{font-family:var(--serif);font-weight:400;font-size:clamp(2.1rem, 5vw, 4.4rem);line-height:1;letter-spacing:-.015em;margin:0;
  font-variation-settings:"opsz" 32;
}
.title em{font-style:italic;color:var(--sage)}

.lede{font-family:var(--serif);font-style:italic;font-weight:300;font-size:clamp(1.05rem,1.4vw,1.35rem);line-height:1.5;color:var(--bone);max-width:34ch;margin:0}
.body{font-size:1rem;line-height:1.65;color:var(--bone);max-width:38ch;margin:0;font-weight:300}
.body--narrow{max-width:30ch}

.scroll-hint{display:inline-flex;flex-direction:column;align-items:flex-start;gap:.4rem;margin-top:auto;font-family:var(--mono);font-size:.65rem;letter-spacing:.3em;text-transform:uppercase;color:var(--sage);opacity:.75}
.scroll-hint svg{animation:drop 1.8s ease-in-out infinite}
@keyframes drop{0%,100%{transform:translateY(0);opacity:.7}50%{transform:translateY(8px);opacity:1}}

.marker{list-style:none;padding:0;margin:.5rem 0 0;display:flex;flex-direction:column;gap:.5rem;font-family:var(--mono);font-size:.78rem;letter-spacing:.04em;color:var(--sage);text-transform:uppercase}
.scene--right .marker{align-items:flex-end}
.marker li{position:relative;padding-left:1.2em}
.scene--right .marker li{padding-left:0;padding-right:1.2em}
.marker li::before{content:"›";position:absolute;left:0;color:var(--gold)}
.scene--right .marker li::before{left:auto;right:0}

.diptych{display:grid;grid-template-columns:1fr 1fr;gap:0;border-top:1px solid rgba(180,196,190,.2);border-bottom:1px solid rgba(180,196,190,.2);margin-top:1.5rem;max-width:34rem;margin-left:auto}
.diptych > div{padding:1.1rem 1.2rem;display:flex;flex-direction:column;gap:.25rem;text-align:left}
.diptych > div + div{border-left:1px solid rgba(180,196,190,.2)}
.diptych__k{font-family:var(--serif);font-style:italic;font-size:1.4rem;color:var(--paper)}
.diptych__v{font-family:var(--mono);font-size:.7rem;letter-spacing:.18em;text-transform:uppercase;color:var(--sage)}

/* ───────────────────────── Districts (Scene 5) ─────────────────────────
   The 8 districts are a scroll-driven 3D STACKED CAROUSEL: every card is
   absolutely stacked in one spot inside a perspective stage; main.js maps
   scroll progress → a continuous active index and writes a transform/opacity
   per card (front card sharp at z:0, upcoming cards recede in depth behind it,
   the exited card flies toward the viewer and fades). The background video
   scrubs in lockstep with the same scroll. Pure transform+opacity = 60fps.
   Mobile uses the identical deck (sticky-pinned) driven by a scroll listener;
   reduced-motion falls back to a clean static list. */
.scene--districts .scene__pin{
  display:flex;flex-direction:column;justify-content:center;align-items:center;
  gap:clamp(1.4rem,3vh,2.4rem);
  box-sizing:border-box;padding:clamp(4.5rem,8vh,6rem) var(--gutter) clamp(3rem,6vh,4.5rem);
}
/* heading block — KILL the inherited `.scene__copy{padding:7rem .. 5rem}` (that
   bottom padding was the visible "gap") and the `#s5 .scene__copy` 104rem width.
   The #s5 prefix is needed to beat those higher-specificity rules above. Result:
   a tight, centered section anchor sitting close to the card. */
#s5 .scene__copy--districts{
  padding:0;margin-inline:auto;text-align:center;flex:0 0 auto;gap:1rem;
  max-inline-size:min(52rem,92vw);
}
#s5 .scene__copy--districts .hud{justify-content:center}
#s5 .title--districts{margin-bottom:.5rem}
#s5 .scene__copy--districts .body{margin-inline:auto;max-width:60ch}

/* the perspective stage — sized to the card (NOT flex:1, which created the gap);
   the heading + deck now sit together as one vertically-centered group. */
.deck{
  position:relative;flex:0 0 auto;width:100%;
  min-height:clamp(296px,40vh,392px);
  perspective:1900px;perspective-origin:50% 48%;
  transform-style:preserve-3d;
}

/* wide, SHORT editorial card — a numeral rail on the left, content spanning the
   full width on the right (uses the section's width, keeps the height low).
   Numeral watermark sits behind for depth. */
.district{
  position:absolute;top:50%;left:50%;
  width:min(860px,92%);box-sizing:border-box;
  min-height:clamp(238px,30vh,308px);
  display:grid;grid-template-columns:minmax(0,auto) 1fr;align-items:center;
  gap:clamp(1.5rem,3.2vw,3.2rem);
  padding:clamp(2.1rem,2.8vw,2.9rem) clamp(1.9rem,3vw,2.8rem);
  overflow:hidden;
  border:1px solid rgba(180,196,190,.22);
  border-radius:7px;
  background:
    radial-gradient(120% 140% at 0% 50%, rgba(116,132,124,.16), rgba(116,132,124,0) 55%),
    linear-gradient(162deg, rgba(17,20,21,.9), rgba(8,10,11,.82));
  backdrop-filter:blur(11px) saturate(.92);-webkit-backdrop-filter:blur(11px) saturate(.92);
  box-shadow:
    0 40px 90px -34px rgba(0,0,0,.86),
    inset 0 1px 0 rgba(238,241,236,.07),
    inset 0 0 0 1px rgba(0,0,0,.2);
  /* JS owns transform/opacity; baseline centers the card before paint. */
  transform:translate(-50%,-50%);
  transform-style:preserve-3d;backface-visibility:hidden;
  will-change:transform,opacity;
}
/* gold cap along the top edge */
.district::before{
  content:"";position:absolute;top:0;left:0;right:0;height:2px;z-index:2;
  background:linear-gradient(90deg, var(--gold), rgba(201,169,107,.12));
}
/* giant faint numeral watermark behind the left rail */
.district__ghost{
  position:absolute;left:-.6rem;top:50%;transform:translateY(-52%);z-index:0;pointer-events:none;
  font-family:var(--serif);font-style:italic;font-weight:300;line-height:1;
  font-size:clamp(7rem,15vw,11rem);letter-spacing:-.05em;color:rgba(201,169,107,.06);
}
.district > :not(.district__ghost){position:relative;z-index:1}

/* left rail — kicker + big numeral, divided from the content */
.district__aside{
  display:flex;flex-direction:column;justify-content:center;gap:.7rem;
  padding-right:clamp(1.4rem,3vw,3rem);
  border-right:1px solid rgba(180,196,190,.16);
}
.district__kicker{
  font-family:var(--mono);font-size:.6rem;letter-spacing:.26em;text-transform:uppercase;color:var(--sage);line-height:1.8;
}
.district__numeral{
  font-family:var(--serif);font-style:italic;font-weight:300;line-height:.9;color:var(--gold);
  font-size:clamp(3rem,5.4vw,4.8rem);text-shadow:0 2px 22px rgba(0,0,0,.45);
}

/* right column — content using the width */
.district__main{min-width:0}
.district__name{
  margin:0;font-family:var(--serif);font-weight:400;font-size:clamp(1.6rem,2.7vw,2.3rem);
  letter-spacing:-.02em;line-height:1.04;color:var(--paper);
}
.district__rule{
  display:block;width:2.4rem;height:2px;margin:.95rem 0;background:var(--gold);
  box-shadow:0 0 16px rgba(201,169,107,.5);
}
.district__services{
  margin:0;font-family:var(--mono);font-size:.76rem;line-height:1.7;letter-spacing:.02em;color:var(--bone);
}
.district__outcome{
  margin:.85rem 0 0;font-family:var(--serif);font-style:italic;
  font-size:clamp(1rem,1.5vw,1.15rem);line-height:1.4;color:var(--mist);
}

/* progress dots (one per district) */
.districts__nav{
  position:absolute;left:50%;transform:translateX(-50%);bottom:-2rem;z-index:50;
  display:flex;gap:.5rem;list-style:none;margin:0;padding:0;
}
.districts__dot{
  width:16px;height:2px;background:rgba(180,196,190,.22);
  transition:background .4s ease, width .4s ease;
}
.districts__dot.is-active{background:var(--gold);width:28px}

/* ── Mobile: a self-contained SWIPE carousel (NOT scroll-pinned) ──────────────
   The section is a normal one-viewport scene, so it can't hijack the page scroll
   or overlap the next scene. The deck stays the 3D stack; main.js advances it on
   horizontal swipe (touch-action:pan-y lets vertical page-scroll through). The
   background video keeps autoplaying behind it. */
body.is-mobile .scene.scene--districts{min-height:100svh}
body.is-mobile .scene--districts .scene__pin{
  justify-content:center;padding-top:clamp(4.5rem,11vh,6.5rem);
  touch-action:pan-y;  /* horizontal gestures → JS swipe; vertical → page scroll */
}
body.is-mobile .deck{perspective:1300px;min-height:clamp(300px,44svh,420px);margin-top:1.2rem}
body.is-mobile .district{width:min(460px,92%);grid-template-columns:1fr;gap:1rem;padding:1.6rem 1.5rem}
body.is-mobile .district__aside{flex-direction:row;align-items:baseline;gap:1rem;border-right:0;border-bottom:1px solid rgba(180,196,190,.16);padding-right:0;padding-bottom:.9rem}
body.is-mobile .district__numeral{font-size:2.6rem}
body.is-mobile .district__ghost{font-size:8rem}
/* compact heading on mobile so the deck + swipe indicator stay above the fold */
body.is-mobile #s5 .title--districts{font-size:clamp(1.85rem,7.6vw,2.5rem);line-height:1.06;margin-bottom:.5rem}
body.is-mobile #s5 .scene__copy--districts .body{font-size:.92rem;line-height:1.55;max-width:34ch}
body.is-mobile .scene--districts .scene__pin{gap:1rem}

/* bigger, tappable progress dots */
body.is-mobile .districts__nav{bottom:-1.3rem;gap:.6rem}
body.is-mobile .districts__dot{height:3px;width:22px}
body.is-mobile .districts__dot.is-active{width:34px}

/* animated SWIPE indicator — a gold dot tracking left↔right under the deck, with
   a label. Injected by main.js on the mobile carousel; fades out on first swipe. */
.deck-swipe{
  position:absolute;left:50%;bottom:-3.7rem;transform:translateX(-50%);
  display:flex;flex-direction:column;align-items:center;gap:.4rem;
  pointer-events:none;opacity:.9;transition:opacity .45s ease;
}
.deck-swipe.is-hidden{opacity:0}
.deck-swipe__track{position:relative;width:54px;height:2px;border-radius:2px;background:rgba(180,196,190,.22)}
.deck-swipe__dot{position:absolute;top:50%;left:0;width:9px;height:9px;border-radius:50%;
  background:var(--gold);box-shadow:0 0 10px rgba(201,169,107,.6);
  transform:translate(-50%,-50%);animation:deckSwipeDot 1.9s cubic-bezier(.45,0,.55,1) infinite}
.deck-swipe__label{font-family:var(--mono);font-size:.56rem;letter-spacing:.32em;text-transform:uppercase;color:var(--sage)}
@keyframes deckSwipeDot{0%,100%{left:16%}50%{left:84%}}
@media (prefers-reduced-motion: reduce){ .deck-swipe__dot{animation:none;left:50%} }

/* ── Reduced-motion: no 3D, no scroll dependency — a clean static list ─────── */
body.reduced-motion .scene--districts{min-height:0}
body.reduced-motion .scene--districts .scene__pin{position:relative;height:auto;min-height:0;display:block;padding-block:clamp(4rem,9vh,6rem)}
body.reduced-motion .deck{display:flex;flex-direction:column;gap:1rem;perspective:none;min-height:0;margin-top:1.6rem}
body.reduced-motion .district{
  position:relative;top:auto;left:auto;width:100%;min-height:auto;overflow:visible;
  transform:none!important;opacity:1!important;filter:none!important;
  will-change:auto;box-shadow:none;backdrop-filter:none;
}
body.reduced-motion .district__ghost{display:none}
body.reduced-motion .districts__nav{display:none}

.defs{margin:.6rem 0 0;display:flex;flex-direction:column;gap:1.1rem;text-align:right}
.defs > div{padding:1rem 0;border-top:1px solid rgba(180,196,190,.18);display:flex;flex-direction:column;gap:.35rem}
.defs > div:last-child{border-bottom:1px solid rgba(180,196,190,.18)}
.defs dt{font-family:var(--serif);font-size:1.35rem;font-weight:400}
.defs dd{margin:0;font-size:.92rem;line-height:1.5;color:var(--bone);max-width:36ch;margin-left:auto}

.method{display:grid;grid-template-columns:repeat(4,1fr);gap:0;border-top:1px solid rgba(180,196,190,.2);margin-top:1.4rem}
.method article{padding:1.4rem 1.2rem 1.6rem;border-right:1px solid rgba(180,196,190,.15);display:flex;flex-direction:column;gap:.55rem;min-height:14rem;position:relative}
.method article:last-child{border-right:0}
.method article > span{font-family:var(--mono);font-size:.7rem;letter-spacing:.22em;color:var(--gold)}
.method article h3{margin:0;font-family:var(--serif);font-weight:400;font-size:1.25rem}
.method article p{margin:0;color:var(--bone);font-size:.86rem;line-height:1.5}
.method article::before{content:"";position:absolute;top:-1px;left:0;width:0;height:2px;background:var(--mist);transition:width .9s ease}
.method article.in::before{width:100%}
@media(max-width:880px){.method{grid-template-columns:1fr 1fr}.method article{border-bottom:1px solid rgba(180,196,190,.15)}}
@media(max-width:520px){.method{grid-template-columns:1fr}}

.manifesto{gap:1rem;max-inline-size:64rem}
.manifesto p{font-family:var(--serif);font-weight:300;font-size:clamp(1.4rem,3.4vw,2.6rem);line-height:1.25;margin:0;color:var(--bone)}
.manifesto p[data-align="l"]{align-self:flex-start;text-align:left}
.manifesto p[data-align="r"]{align-self:flex-end;text-align:right}
.manifesto p em{font-style:italic;color:var(--mist)}

.cta{display:inline-flex;align-items:center;gap:.6rem;padding:1rem 1.6rem;margin-top:1rem;border:1px solid var(--mist);font-family:var(--mono);font-size:.75rem;letter-spacing:.22em;text-transform:uppercase;color:var(--paper);transition:.3s}
.cta:hover{background:var(--mist);color:var(--ink);letter-spacing:.28em}

/* ----------------------------------------------------------------
   Pricing / Contact / Footer (light dressed sections)
---------------------------------------------------------------- */
.page{position:relative;z-index:10;padding:9rem var(--gutter);max-width:var(--maxw);margin:0 auto;color:var(--paper);background:#0a0c0c}
.page__hdr{display:grid;grid-template-columns:1fr;gap:1rem;margin-bottom:3.5rem;max-width:48rem}
.eyebrow{font-family:var(--mono);font-size:.72rem;letter-spacing:.22em;text-transform:uppercase;color:var(--sage)}
.page h2{font-family:var(--serif);font-weight:400;font-size:clamp(2rem,4.4vw,3.8rem);line-height:1.05;letter-spacing:-.015em;margin:0;max-width:24ch}

.plans{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:rgba(180,196,190,.18);border:1px solid rgba(180,196,190,.18)}
.plan{background:#0a0c0c;padding:2.4rem 2rem 2.2rem;display:flex;flex-direction:column;gap:1rem;position:relative}
.plan header{display:flex;flex-direction:column;gap:.6rem;padding-bottom:1rem;border-bottom:1px solid rgba(180,196,190,.15)}
.plan h3{margin:0;font-family:var(--serif);font-weight:400;font-size:1.7rem}
.plan__price{font-family:var(--mono);font-size:.8rem;letter-spacing:.12em;color:var(--sage)}
.plan__price b{color:var(--paper);font-weight:500;font-size:1rem}
.plan > p{margin:0;color:var(--bone);font-size:.95rem;font-style:italic;font-family:var(--serif)}
.plan ul{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:.55rem;font-size:.9rem;color:var(--bone);font-weight:300}
.plan ul li{padding-left:1.1em;position:relative}
.plan ul li::before{content:"+";position:absolute;left:0;color:var(--sage)}
.plan__cta{
  margin-top:auto;align-self:flex-start;
  padding:.95rem 1.4rem;
  border:1px solid var(--mist);
  font-family:var(--mono);font-size:.72rem;letter-spacing:.22em;text-transform:uppercase;
  color:var(--paper);
  transition:background .35s ease,color .35s ease,letter-spacing .35s ease;
}
.plan__cta:hover{background:var(--mist);color:var(--ink);letter-spacing:.28em}
.plan--featured{background:linear-gradient(180deg, rgba(157,171,168,.07), rgba(10,12,12,1) 60%)}
.plan--featured::before{content:"Featured";position:absolute;top:1rem;right:1.2rem;font-family:var(--mono);font-size:.62rem;letter-spacing:.22em;text-transform:uppercase;color:var(--gold)}
@media(max-width:920px){.plans{grid-template-columns:1fr}}

.extras{margin-top:2.5rem;display:grid;grid-template-columns:1fr 1fr;gap:1.4rem}
.extras article{padding:1.6rem 1.4rem;border:1px solid rgba(180,196,190,.18);display:flex;flex-direction:column;gap:.4rem}
.extras h4{margin:0;font-family:var(--serif);font-size:1.25rem;font-weight:400}
.extras span{font-family:var(--mono);font-size:.72rem;letter-spacing:.18em;color:var(--gold)}
.extras p{margin:0;color:var(--bone);font-size:.9rem;line-height:1.5}
@media(max-width:720px){.extras{grid-template-columns:1fr}}

.page--contact{padding-top:6rem;padding-bottom:6rem}
.contact{display:grid;grid-template-columns:1.1fr 1fr;gap:5rem;align-items:start}
.contact h2{font-family:var(--serif);font-weight:400;font-size:clamp(2.2rem,4.8vw,4rem);line-height:1.02;margin:.4rem 0 1rem}
.contact p{color:var(--bone);max-width:32ch;line-height:1.6}
.form{display:flex;flex-direction:column;gap:1.2rem}
.form label{display:flex;flex-direction:column;gap:.35rem;font-family:var(--mono);font-size:.7rem;letter-spacing:.2em;text-transform:uppercase;color:var(--sage)}
.form input,.form textarea{background:transparent;border:0;border-bottom:1px solid rgba(180,196,190,.3);padding:.6rem 0;color:var(--paper);font:inherit;font-family:var(--serif);font-size:1.05rem;transition:border-color .3s}
.form input:focus,.form textarea:focus{outline:0;border-color:var(--mist)}
.form button{
  margin-top:1rem;align-self:flex-start;
  padding:1rem 1.5rem;
  border:1px solid var(--mist);
  color:var(--paper);
  font-family:var(--mono);font-size:.72rem;letter-spacing:.22em;text-transform:uppercase;
  transition:background .35s ease,color .35s ease,letter-spacing .35s ease;
}
.form button:hover{background:var(--mist);color:var(--ink);letter-spacing:.28em}
.form__ok{font-family:var(--mono);font-size:.72rem;letter-spacing:.18em;color:var(--gold)}

/* ─── CF7 integration — mirror the .form treatment onto CF7's markup ─── */
.wpcf7-form{display:flex;flex-direction:column;gap:1.2rem}
.wpcf7-form p{margin:0}
.wpcf7-form label{display:flex;flex-direction:column;gap:.35rem;font-family:var(--mono);font-size:.7rem;letter-spacing:.2em;text-transform:uppercase;color:var(--sage)}
.wpcf7-form label > span:first-child{display:block}
.wpcf7-form .wpcf7-form-control-wrap{display:block}
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="url"],
.wpcf7-form textarea{
  width:100%;
  background:transparent;
  border:0;
  border-bottom:1px solid rgba(180,196,190,.3);
  padding:.6rem 0;
  color:var(--paper);
  font:inherit;
  font-family:var(--serif);
  font-size:1.05rem;
  transition:border-color .3s;
  border-radius:0;
  box-shadow:none;
}
.wpcf7-form textarea{resize:vertical;min-height:6rem}
.wpcf7-form input:focus,.wpcf7-form textarea:focus{outline:0;border-color:var(--mist)}
.wpcf7-form input::placeholder,.wpcf7-form textarea::placeholder{color:rgba(214,220,213,.35)}

.wpcf7-form .wpcf7-submit{
  margin-top:1rem;align-self:flex-start;
  padding:1rem 1.5rem;
  background:transparent;
  border:1px solid var(--mist);
  border-radius:0;
  color:var(--paper);
  font-family:var(--mono);font-size:.72rem;letter-spacing:.22em;text-transform:uppercase;
  cursor:pointer;
  transition:background .35s ease,color .35s ease,letter-spacing .35s ease;
}
.wpcf7-form .wpcf7-submit:hover{background:var(--mist);color:var(--ink);letter-spacing:.28em}

/* CF7 response messages — brand-aligned */
.wpcf7-response-output,
.wpcf7 form.sent .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.spam .wpcf7-response-output{
  margin:1.4rem 0 0 !important;
  padding:1rem 1.2rem !important;
  border:1px solid !important;
  border-radius:0 !important;
  font-family:var(--mono);
  font-size:.7rem;
  letter-spacing:.14em;
  text-transform:uppercase;
  line-height:1.5;
}
.wpcf7 form.sent .wpcf7-response-output{
  border-color:var(--gold) !important;
  color:var(--gold);
  background:rgba(201,169,107,.06);
}
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output,
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.spam .wpcf7-response-output{
  border-color:rgba(214,90,90,.55) !important;
  color:#e89090;
  background:rgba(180,60,60,.08);
}

/* CF7 inline field validation tip */
.wpcf7-not-valid-tip{
  display:block !important;
  margin-top:.4rem !important;
  font-family:var(--mono);
  font-size:.62rem;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:#e89090 !important;
  background:transparent !important;
  padding:0 !important;
  border:0 !important;
}
.wpcf7-not-valid{border-bottom-color:rgba(214,90,90,.55) !important}

/* CF7 loading spinner — re-style to match palette */
.wpcf7-spinner{
  background-color:rgba(180,196,190,.5) !important;
  margin-left:.8rem;
}

@media(max-width:820px){.contact{grid-template-columns:1fr;gap:2.5rem}}

.foot{position:relative;z-index:10;padding:4rem var(--gutter) 2.5rem;border-top:1px solid rgba(180,196,190,.12);background:#0a0c0c;color:var(--bone);font-family:var(--sans);font-size:.95rem}
.foot__top{
  display:grid;
  grid-template-columns:1.4fr 1fr 1fr auto;
  gap:3rem;
  align-items:start;
  max-width:var(--maxw);
  margin:0 auto 3rem;
}
.foot__top .eyebrow{display:block;margin-bottom:1rem;font-family:var(--mono);font-size:.65rem;letter-spacing:.22em;text-transform:uppercase;color:var(--sage)}

.foot__contact{display:flex;flex-direction:column;gap:.55rem}
.foot__contact-link{color:var(--bone);font-family:var(--serif);font-size:1rem;line-height:1.3;transition:color .3s}
.foot__contact-link:hover{color:var(--paper)}
.foot__contact-address{margin:0;color:var(--bone);font-family:var(--serif);font-size:.92rem;line-height:1.5;font-style:italic}
.foot__contact-address a{color:inherit;border-bottom:1px solid rgba(180,196,190,.3);transition:border-color .3s}
.foot__contact-address a:hover{border-color:var(--mist)}

.foot__links{display:flex;flex-direction:column;gap:.55rem;font-family:var(--serif);font-size:1rem;letter-spacing:0;text-transform:none}
.foot__links a{color:var(--bone);transition:color .3s}
.foot__links a:hover{color:var(--paper)}

.foot__social-list{list-style:none;padding:0;margin:0;display:flex;gap:.8rem;align-items:center}
.foot__social-list a{
  display:inline-flex;align-items:center;justify-content:center;
  width:36px;height:36px;
  border:1px solid rgba(180,196,190,.22);
  color:var(--bone);
  transition:background .35s ease,color .35s ease,border-color .35s ease,transform .35s ease;
}
.foot__social-list a:hover{background:var(--mist);color:var(--ink);border-color:var(--mist);transform:translateY(-2px)}

.foot__bottom{
  max-width:var(--maxw);margin:0 auto;
  padding-top:2rem;border-top:1px solid rgba(180,196,190,.12);
  display:flex;justify-content:space-between;align-items:center;gap:1.5rem;flex-wrap:wrap;
  font-family:var(--mono);font-size:.66rem;letter-spacing:.18em;text-transform:uppercase;color:var(--sage);
}
.foot__copy{margin:0}
.foot__tagline{margin:0;color:var(--bone)}
.foot__designer{margin:0;color:var(--sage);opacity:.7}
.foot__designer a{color:var(--bone);border-bottom:1px solid rgba(180,196,190,.3);transition:.3s}
.foot__designer a:hover{color:var(--paper);border-color:var(--mist)}

@media(max-width:920px){
  .foot__top{grid-template-columns:1fr 1fr;gap:2.5rem}
  .foot__lockup{grid-column:1/-1}
}
@media(max-width:600px){
  .foot{padding:3rem var(--gutter) 2rem}
  .foot__top{grid-template-columns:1fr;gap:2rem;margin-bottom:2rem}
  .foot__bottom{flex-direction:column;align-items:flex-start;gap:.5rem}
}

/* Contact section — direct-contact block under the intro paragraph */
.contact__direct{
  margin-top:2rem;
  display:flex;flex-direction:column;gap:1.2rem;
}
.contact__direct > div{display:flex;flex-direction:column;gap:.25rem}
.contact__direct dt{font-family:var(--mono);font-size:.65rem;letter-spacing:.22em;color:var(--sage);text-transform:uppercase}
.contact__direct dd{margin:0;font-family:var(--serif);font-size:1.05rem;line-height:1.45;color:var(--paper)}
.contact__direct a{color:inherit;border-bottom:1px solid rgba(180,196,190,.25);transition:border-color .3s,color .3s}
.contact__direct a:hover{color:var(--mist);border-color:var(--mist)}

/* Footer lockup — wide horizontal logo with mathematical mark + wordmark */
.foot__lockup{
  display:block;
  line-height:0;
  flex:0 0 auto;
}
.foot__lockup-img{
  display:block;
  width:auto;
  height:clamp(56px, 6.5vw, 84px);
  max-width:100%;
  /* Source PNG is on a near-black background — screen blend drops the black
     and lets only the silver linework + wordmark render against the footer. */
  mix-blend-mode:screen;
  filter:brightness(1.18) contrast(1.08);
  transition:filter .5s ease,opacity .4s ease;
}
.foot__lockup:hover .foot__lockup-img{filter:brightness(1.32) contrast(1.1)}

@media(max-width:600px){
  .foot{flex-direction:column;align-items:flex-start;gap:1.4rem;padding:2.4rem var(--gutter)}
  .foot__meta{align-items:flex-start;text-align:left}
  .foot__lockup-img{height:48px}
}

/* Stage fade — opacity transitions over 1.2s; then visibility:hidden kicks in
   AT END of the transition (delayed) so the layer is fully detached from the
   compositor. This stops subpixel paint cascade onto adjacent borders. */
body.no-stage .stage{
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity 1.2s ease, visibility 0s linear 1.2s;
}
/* Same trick for the curtain — once stage is gone, curtain has no purpose */
body.no-stage .curtain{
  opacity:0!important;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .3s ease, visibility 0s linear .3s;
}
/* Also force the grain animation to stop in no-stage areas — its repaint
   cycle was the second source of the subpixel cascade */
body.no-stage .grain{animation:none!important;opacity:0;transition:opacity .8s ease}
/* hide the scroll progress bar once the cinematic story is done */
body.no-stage .nav__progress{opacity:0;transition:opacity .6s ease;pointer-events:none}

/* pricing enters as a slow fade up out of the black */
#pricing > *{opacity:0;transform:translateY(28px);transition:opacity 1.4s cubic-bezier(.2,.7,.2,1),transform 1.5s cubic-bezier(.2,.7,.2,1)}
#pricing > *:nth-child(2){transition-delay:.18s}
#pricing > *:nth-child(3){transition-delay:.32s}
#pricing.in > *{opacity:1;transform:translateY(0)}

/* ----------------------------------------------------------------
   Cinematic copy reveal — blur-in, slow, staggered
---------------------------------------------------------------- */
.scene__copy > *{
  opacity:0;
  transform:translateY(22px);
  filter:blur(8px);
  transition:opacity 1.3s cubic-bezier(.2,.65,.15,1), transform 1.4s cubic-bezier(.2,.65,.15,1), filter 1.3s ease;
}
.scene__copy > *:nth-child(2){transition-delay:.18s}
.scene__copy > *:nth-child(3){transition-delay:.34s}
.scene__copy > *:nth-child(4){transition-delay:.5s}
.scene__copy > *:nth-child(5){transition-delay:.64s}
.scene.in .scene__copy > *{opacity:1;transform:translateY(0);filter:blur(0)}
.scene.out .scene__copy > *{opacity:0;transform:translateY(-16px);filter:blur(6px);transition-duration:1s;transition-delay:0s}

/* ================================================================
   IN THE FIELD — homepage feature section (3 interventions)
   ================================================================ */
.page--field{padding-block:8rem;max-width:var(--maxw);margin:0 auto;background:#0a0c0c;position:relative;z-index:10}
.field__hdr{max-width:48rem;margin-bottom:4rem}
.field__title{font-family:var(--serif);font-weight:400;font-size:clamp(2.4rem,4.8vw,4rem);line-height:1.02;letter-spacing:-.015em;margin:.4rem 0 1.4rem;font-variation-settings:"opsz" 32}
.field__title em{font-style:italic;color:var(--sage)}
.field__intro{color:var(--bone);max-width:32ch;line-height:1.6}

.field__cases{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:0;border-top:1px solid rgba(180,196,190,.16)}
.field__case{
  display:grid;grid-template-columns:1fr 1fr;gap:3rem;align-items:center;
  padding:4.5rem 0;
  border-bottom:1px solid rgba(180,196,190,.16);
}
.field__case--right .field__media{order:2}
.field__case--right .field__copy{order:1}
.field__media{
  position:relative;display:flex;align-items:center;justify-content:center;
  aspect-ratio:16/10;
  background:#11141414;
  overflow:hidden;
  border:1px solid rgba(180,196,190,.10);
  transition:border-color .4s ease,transform .8s cubic-bezier(.2,.7,.2,1);
}
.field__media:empty::before{
  content:"Upload media via Interventions admin";
  font-family:var(--mono);font-size:.62rem;letter-spacing:.18em;text-transform:uppercase;color:rgba(180,196,190,.4);
  padding:1rem;text-align:center;
}
.field__media:hover{border-color:rgba(180,196,190,.25);transform:translateY(-3px)}
.field__loop,.field__still{
  width:100%;height:100%;object-fit:cover;display:block;
  filter:saturate(.92) contrast(1.04);
  transition:filter .6s ease;
}
.field__media:hover .field__loop,.field__media:hover .field__still{filter:saturate(1) contrast(1.06)}
/* soft vignette over each piece of media */
.field__media::after{
  content:"";position:absolute;inset:0;pointer-events:none;
  background:radial-gradient(80% 65% at 50% 50%, transparent 55%, rgba(8,10,11,.45) 100%);
}
.field__copy{display:flex;flex-direction:column;gap:1.1rem;align-items:flex-start}
.field__case-title{
  font-family:var(--serif);font-weight:400;
  font-size:clamp(1.6rem,2.6vw,2.4rem);line-height:1.1;letter-spacing:-.01em;
  margin:.2rem 0 0;
  font-variation-settings:"opsz" 32;
}
.field__case-title em{font-style:italic;color:var(--mist)}
.field__case-story{margin:0;color:var(--bone);font-size:1rem;line-height:1.6;max-width:42ch}
.field__case-tags{margin:.2rem 0 0;font-family:var(--mono);font-size:.7rem;letter-spacing:.18em;color:var(--sage);text-transform:uppercase}
.field__case-more{
  margin-top:.4rem;
  font-family:var(--mono);font-size:.72rem;letter-spacing:.22em;text-transform:uppercase;color:var(--paper);
  border-bottom:1px solid rgba(180,196,190,.4);padding-bottom:.25rem;
  transition:border-color .3s,color .3s,letter-spacing .3s;
}
.field__case-more:hover{color:var(--mist);border-color:var(--mist);letter-spacing:.28em}
.field__cta-wrap{margin-top:3.5rem;text-align:center}

@media (max-width:820px){
  .page--field{padding-block:5rem}
  .field__hdr{margin-bottom:2.5rem}
  .field__case{grid-template-columns:1fr;gap:1.6rem;padding:3rem 0}
  .field__case--right .field__media,.field__case--right .field__copy{order:initial}
  .field__media{aspect-ratio:4/3}
}

/* ================================================================
   /interventions/ archive page
   ================================================================ */
.iv-archive{position:relative;z-index:10;padding:9rem var(--gutter) 6rem;max-width:var(--maxw);margin:0 auto;background:#0a0c0c}
.iv-archive__hdr{margin-bottom:4rem;max-width:52rem}
.iv-archive__title{font-family:var(--serif);font-weight:400;font-size:clamp(2.4rem,5.2vw,4.6rem);line-height:1.02;letter-spacing:-.015em;margin:.6rem 0 1.6rem;font-variation-settings:"opsz" 32}
.iv-archive__title em{font-style:italic;color:var(--sage)}
.iv-archive__intro{color:var(--bone);max-width:38ch;line-height:1.6}

.iv-filter{display:flex;flex-wrap:wrap;gap:.6rem;margin-top:2rem}
.iv-filter__chip{
  display:inline-flex;align-items:center;
  padding:.5rem .9rem;border:1px solid rgba(180,196,190,.25);
  font-family:var(--mono);font-size:.66rem;letter-spacing:.18em;text-transform:uppercase;color:var(--bone);
  transition:background .3s,color .3s,border-color .3s;
}
.iv-filter__chip:hover{background:rgba(180,196,190,.08);border-color:var(--mist);color:var(--paper)}
.iv-filter__chip.is-active{background:var(--mist);color:var(--ink);border-color:var(--mist)}

.iv-list{list-style:none;padding:0;margin:0;border-top:1px solid rgba(180,196,190,.16)}
.iv-row{
  display:grid;grid-template-columns:1fr 1fr;gap:3rem;align-items:center;
  padding:5rem 0;border-bottom:1px solid rgba(180,196,190,.16);
}
.iv-row--right .iv-row__media{order:2}
.iv-row--right .iv-row__copy{order:1}
.iv-row__media{position:relative;display:block;aspect-ratio:16/10;background:#111314;overflow:hidden;border:1px solid rgba(180,196,190,.10);transition:border-color .4s ease,transform .8s cubic-bezier(.2,.7,.2,1)}
.iv-row__media:hover{border-color:rgba(180,196,190,.25);transform:translateY(-3px)}
.iv-row__loop,.iv-row__still{width:100%;height:100%;object-fit:cover;display:block;filter:saturate(.92) contrast(1.04);transition:filter .6s ease}
.iv-row__media::after{content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(80% 65% at 50% 50%, transparent 55%, rgba(8,10,11,.45) 100%)}
.iv-row__copy{display:flex;flex-direction:column;gap:1.1rem;align-items:flex-start}
.iv-row__title{margin:.2rem 0 0;font-family:var(--serif);font-weight:400;font-size:clamp(1.8rem,3vw,2.8rem);line-height:1.05;letter-spacing:-.015em;font-variation-settings:"opsz" 32}
.iv-row__title a{color:inherit;transition:color .3s}
.iv-row__title a:hover{color:var(--mist)}
.iv-row__title em{font-style:italic;color:var(--mist)}
.iv-row__story{margin:0;color:var(--bone);font-size:1.02rem;line-height:1.6;max-width:42ch}
.iv-row__tags{margin:.2rem 0 0;font-family:var(--mono);font-size:.7rem;letter-spacing:.18em;color:var(--sage);text-transform:uppercase}
.iv-row__more{margin-top:.4rem;font-family:var(--mono);font-size:.72rem;letter-spacing:.22em;text-transform:uppercase;color:var(--paper);border-bottom:1px solid rgba(180,196,190,.4);padding-bottom:.25rem;transition:.3s}
.iv-row__more:hover{color:var(--mist);border-color:var(--mist);letter-spacing:.28em}
.iv-empty{padding:5rem 0;color:var(--sage);font-style:italic;font-family:var(--serif)}
.iv-archive__footcta{margin-top:4rem;text-align:center}

@media (max-width:820px){
  .iv-archive{padding-top:7rem}
  .iv-row{grid-template-columns:1fr;gap:1.6rem;padding:3rem 0}
  .iv-row--right .iv-row__media,.iv-row--right .iv-row__copy{order:initial}
  .iv-row__media{aspect-ratio:4/3}
}

/* ================================================================
   Single intervention
   ================================================================ */
.iv-single{position:relative;z-index:10;background:#0a0c0c}
.iv-single__hero{position:relative;width:100%;height:80vh;min-height:520px;overflow:hidden}
.iv-single__media{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.iv-single__scrim{position:absolute;inset:0;background:linear-gradient(180deg, rgba(8,10,11,.25) 0%, rgba(8,10,11,.15) 45%, rgba(8,10,11,.9) 100%)}
.iv-single__hero-copy{position:absolute;left:0;right:0;bottom:0;padding:0 var(--gutter) 4rem;max-width:var(--maxw);margin:0 auto}
.iv-single__title{font-family:var(--serif);font-weight:400;font-size:clamp(2.4rem,6vw,5rem);line-height:1.02;letter-spacing:-.02em;margin:.6rem 0 0;font-variation-settings:"opsz" 32;max-width:22ch}
.iv-single__title em{font-style:italic;color:var(--mist)}

.iv-single__body{padding:6rem var(--gutter);max-width:var(--maxw);margin:0 auto;display:grid;grid-template-columns:1fr 22rem;gap:5rem;align-items:start}
.iv-single__chips{grid-column:1/-1;list-style:none;padding:0;margin:0 0 2.5rem;display:flex;flex-wrap:wrap;gap:.6rem}
.iv-single__chips li{padding:.45rem .85rem;border:1px solid rgba(180,196,190,.22);font-family:var(--mono);font-size:.65rem;letter-spacing:.18em;color:var(--bone);text-transform:uppercase}
.iv-single__chips a{color:inherit}
.iv-single__story{font-size:1.08rem;line-height:1.75;color:var(--bone);max-width:36rem}
.iv-single__story p{margin:0 0 1.2rem}
.iv-single__story em{font-style:italic;color:var(--mist)}
.iv-single__outcome{border-left:1px solid rgba(180,196,190,.2);padding-left:1.6rem}
.iv-single__outcome .eyebrow{display:block;margin-bottom:1rem}
.iv-single__outcome ul{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:1rem}
.iv-single__outcome li{font-family:var(--serif);font-size:1.05rem;line-height:1.4;color:var(--paper)}
.iv-single__outcome li::before{content:"+";color:var(--gold);margin-right:.6rem;font-family:var(--mono);font-size:.85rem}

.iv-single__nav{
  padding:3.5rem var(--gutter);max-width:var(--maxw);margin:0 auto;
  display:flex;justify-content:space-between;align-items:center;gap:1.5rem;
  border-top:1px solid rgba(180,196,190,.16);
  font-family:var(--mono);font-size:.72rem;letter-spacing:.22em;text-transform:uppercase;
}
.iv-single__nav > a:first-child{color:var(--bone);transition:color .3s}
.iv-single__nav > a:first-child:hover{color:var(--paper)}

@media(max-width:820px){
  .iv-single__hero{height:70vh;min-height:420px}
  .iv-single__body{grid-template-columns:1fr;gap:2.5rem;padding:4rem var(--gutter)}
  .iv-single__outcome{border-left:0;border-top:1px solid rgba(180,196,190,.2);padding-left:0;padding-top:1.6rem}
  .iv-single__nav{flex-direction:column;align-items:flex-start;gap:1rem}
}

/* ================================================================
   404 — cinematic missing-thread page
   ================================================================ */
.not-found{
  position:relative;
  min-height:100svh;
  display:flex;align-items:center;
  padding:8rem var(--gutter) 6rem;
  isolation:isolate;
  overflow:hidden;
}
.not-found__stage{position:absolute;inset:0;z-index:0;overflow:hidden;background:#0a0c0c}
.not-found__video{
  position:absolute;inset:0;width:100%;height:100%;object-fit:cover;
  filter:saturate(.7) contrast(1.08) brightness(.55);
  transform:scale(1.08);
  will-change:transform,filter;
  animation:notfoundDrift 24s ease-in-out infinite;
}
@keyframes notfoundDrift{
  0%,100%{transform:scale(1.08) translate3d(0,0,0)}
  50%{transform:scale(1.12) translate3d(-1.2%,1.5%,0)}
}
.not-found__veil{
  position:absolute;inset:0;
  background:
    radial-gradient(100% 80% at 30% 50%, rgba(8,10,11,.45), rgba(8,10,11,.85) 75%),
    linear-gradient(180deg, rgba(8,10,11,.4) 0%, rgba(8,10,11,.15) 30%, rgba(8,10,11,.55) 100%);
}

.not-found__copy{
  position:relative;z-index:1;
  max-width:var(--maxw);margin:0 auto;width:100%;
  display:flex;flex-direction:column;gap:1.8rem;
  max-inline-size:48rem;
}

.not-found__title{
  font-family:var(--serif);font-weight:400;
  font-size:clamp(3rem,8.5vw,7.5rem);
  line-height:.95;letter-spacing:-.025em;
  margin:.4rem 0 0;
  font-variation-settings:"opsz" 32;
}
.not-found__title em{font-style:italic;color:var(--mist)}

.not-found__story{
  font-family:var(--serif);font-style:italic;font-weight:300;
  font-size:clamp(1.05rem,1.5vw,1.35rem);line-height:1.55;color:var(--bone);
  max-width:36ch;margin:0;
}

.not-found__meta{
  margin:.5rem 0 0;
  font-family:var(--mono);font-size:.65rem;letter-spacing:.18em;color:var(--sage);text-transform:uppercase;
  display:inline-flex;align-items:center;gap:.6rem;
}
.not-found__meta::before{content:"⟶"; color:var(--gold)}
.not-found__url{
  display:inline-block;
  max-width:60vw;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  color:var(--bone);opacity:.65;text-transform:none;letter-spacing:.05em;
}

.not-found__nav{
  margin-top:1.8rem;
  display:flex;align-items:center;flex-wrap:wrap;gap:1.6rem 2.2rem;
}
.not-found__alt{
  font-family:var(--mono);font-size:.72rem;letter-spacing:.22em;text-transform:uppercase;color:var(--bone);
  border-bottom:1px solid rgba(180,196,190,.3);padding-bottom:.25rem;
  transition:color .3s,border-color .3s,letter-spacing .3s;
}
.not-found__alt:hover{color:var(--paper);border-color:var(--mist);letter-spacing:.28em}

@media (max-width:780px){
  .not-found{padding:7rem var(--gutter) 4rem;align-items:flex-end;min-height:100svh}
  .not-found__copy{gap:1.4rem}
  .not-found__nav{flex-direction:column;align-items:flex-start;gap:1rem}
  .not-found__alt{font-size:.66rem}
}

/* Reduced-motion: stop the drift animation */
@media (prefers-reduced-motion: reduce){
  .not-found__video{animation:none}
}

/* ================================================================
   LEGAL PAGES — Privacy, Terms, etc.
   Editorial single column. Wide reading measure, hairline dividers,
   mono micro-labels, serif headings.
   ================================================================ */
.legal{
  position:relative;z-index:10;background:#0a0c0c;color:var(--paper);
  padding:9rem var(--gutter) 6rem;
  max-width:62rem;margin:0 auto;
}
.legal__hdr{margin-bottom:4rem;padding-bottom:3rem;border-bottom:1px solid rgba(180,196,190,.18)}
.legal__title{
  font-family:var(--serif);font-weight:400;
  font-size:clamp(2.4rem,5vw,4.2rem);line-height:1.02;letter-spacing:-.015em;margin:.5rem 0 1.6rem;
  font-variation-settings:"opsz" 32;
}
.legal__meta{
  display:inline-flex;align-items:center;gap:.6rem;
  margin:0;
  font-family:var(--mono);font-size:.66rem;letter-spacing:.18em;color:var(--sage);text-transform:uppercase;
}
.legal__meta span{opacity:.7}

/* Body — typographic reset for the_content() output */
.legal__body{font-family:var(--sans);font-weight:300;font-size:1.05rem;line-height:1.75;color:var(--bone);max-width:40rem}
.legal__body h2{
  font-family:var(--serif);font-weight:400;
  font-size:clamp(1.5rem,2.4vw,2rem);line-height:1.1;letter-spacing:-.01em;
  margin:3.2rem 0 1.2rem;color:var(--paper);
  font-variation-settings:"opsz" 32;
  position:relative;padding-top:1.8rem;
}
.legal__body h2::before{
  content:"";display:block;
  width:3rem;height:1px;background:var(--sage);
  margin:0 0 1.4rem;opacity:.5;
}
.legal__body h3{
  font-family:var(--serif);font-weight:400;font-style:italic;
  font-size:1.25rem;color:var(--mist);
  margin:2rem 0 .8rem;
}
.legal__body p{margin:0 0 1.2rem}
.legal__body em{font-style:italic;color:var(--mist)}
.legal__body strong{font-weight:500;color:var(--paper)}
.legal__body a{color:var(--mist);text-decoration:underline;text-underline-offset:.2em;text-decoration-thickness:1px;text-decoration-color:rgba(180,196,190,.4);transition:text-decoration-color .3s}
.legal__body a:hover{text-decoration-color:var(--mist)}
.legal__body ul,.legal__body ol{padding-left:1.4em;margin:0 0 1.4rem}
.legal__body li{margin-bottom:.5rem}
.legal__body li::marker{color:var(--sage);font-family:var(--mono);font-size:.8em}
.legal__body blockquote{
  margin:2rem 0;padding:.6rem 0 .6rem 1.4rem;
  border-left:1px solid var(--sage);
  font-family:var(--serif);font-style:italic;color:var(--bone);font-size:1.12rem;
}
.legal__body hr{border:0;border-top:1px solid rgba(180,196,190,.16);margin:3rem 0}
.legal__body code{font-family:var(--mono);font-size:.85em;background:rgba(180,196,190,.08);padding:.1em .4em;border-radius:0;color:var(--mist)}

.legal__foot{
  margin-top:4rem;padding-top:3rem;border-top:1px solid rgba(180,196,190,.18);
  display:flex;justify-content:space-between;align-items:center;gap:1.5rem;flex-wrap:wrap;
}
.legal__back{
  font-family:var(--mono);font-size:.7rem;letter-spacing:.22em;color:var(--bone);text-transform:uppercase;
  transition:color .3s;
}
.legal__back:hover{color:var(--paper)}

@media(max-width:780px){
  .legal{padding-top:7rem;padding-bottom:4rem}
  .legal__hdr{margin-bottom:2.5rem;padding-bottom:2rem}
  .legal__body h2{margin:2.5rem 0 1rem}
  .legal__foot{flex-direction:column;align-items:flex-start;gap:1.2rem}
}

/* ================================================================
   MOBILE — autoplay-loop story, native scroll, single-viewport scenes
   ================================================================ */
body.is-mobile{}
body.is-mobile .scene{height:auto;min-height:100svh}
body.is-mobile .scene__pin{position:relative;top:auto;height:auto;min-height:100svh;padding:0}
body.is-mobile .scene__copy{
  padding:6rem var(--gutter) 5rem;
  gap:1.6rem;
  min-height:100svh;
  justify-content:flex-end;
  position:relative;
}
/* landing scenes (home hero + first About scene): center the copy vertically
   instead of pushing it to the bottom on mobile */
body.is-mobile .scene__copy--hero,
body.is-mobile #about-endure .scene__copy{justify-content:center;padding-top:6rem;padding-bottom:6rem}
body.is-mobile .scene__copy--center{justify-content:center;text-align:center;padding-top:7rem;padding-bottom:7rem}

/* Mobile: no per-copy scrim — the full-viewport stage veil handles legibility */
body.is-mobile .scene__copy::before,
body.is-mobile .scene__copy--center::before{display:none!important}

/* Disable the radial corner vignette on mobile portrait — its dark corners
   read as side bars on tall narrow viewports */
body.is-mobile .vignette{display:none!important}
body.is-mobile .scene__copy > *{position:relative;z-index:1}

/* mobile copy: simpler, faster reveal — no blur (cheap on GPU), shorter duration */
body.is-mobile .scene__copy > *{
  filter:none;
  transform:translateY(14px);
  transition:opacity .7s ease, transform .8s cubic-bezier(.2,.7,.2,1);
}
body.is-mobile .scene__copy > *:nth-child(2){transition-delay:.08s}
body.is-mobile .scene__copy > *:nth-child(3){transition-delay:.16s}
body.is-mobile .scene__copy > *:nth-child(4){transition-delay:.24s}
body.is-mobile .scene__copy > *:nth-child(5){transition-delay:.32s}
body.is-mobile .scene.in .scene__copy > *{opacity:1;transform:translateY(0)}
body.is-mobile .scene.out .scene__copy > *{opacity:1;transform:translateY(0);transition-duration:.5s}

/* Stage MUST fill the entire viewport on mobile — including under the WP admin bar */
body.is-mobile .stage{
  position:fixed!important;
  top:0!important; left:0!important; right:0!important; bottom:0!important;
  width:100vw!important; height:100vh!important;
  margin:0!important;
}
/* portrait videos cover full viewport. transform:translateZ(0) (NOT none) is REQUIRED
   on iOS: a <video> inside a position:fixed container (our .stage) plays but paints only
   its poster/black unless it's promoted to its own GPU compositing layer. translateZ(0)
   is visually a no-op (no scale/translate → never clips the portrait crop) but forces
   that layer so WebKit actually paints the decoded frames. Pairing backface-visibility
   keeps the layer stable across the opacity crossfade.
   filter:none is also REQUIRED on iOS: Safari renders a <video> black when a CSS filter
   (saturate/contrast) is applied to it. The grade isn't needed on mobile (veil handles it). */
body.is-mobile .stage__v,
body.is-mobile .stage__v.active{transform:translateZ(0)!important;transform-origin:center;backface-visibility:hidden;width:100%;height:100%;object-fit:cover;filter:none!important}

/* mobile veils — covers the ENTIRE stage area (not a side band), reads as a
   soft cinematic atmosphere over the whole portrait video */
body.is-mobile .stage__veil{
  position:absolute;inset:0;
  background:linear-gradient(to bottom,
    rgba(8,10,11,.40) 0%,
    rgba(8,10,11,.10) 25%,
    rgba(8,10,11,.10) 45%,
    rgba(8,10,11,.55) 80%,
    rgba(8,10,11,.85) 100%)!important;
  opacity:1!important;
  mix-blend-mode:normal!important;
}
body.is-mobile .stage::after{display:none!important} /* split-tone grade off on mobile */

/* mobile typography compaction */
@media(max-width:820px){
  :root{--gutter:1.5rem}
  .scene__copy--hero{max-inline-size:100%}
  .scene__copy--hero .display{
    white-space:normal;
    font-size:clamp(3.2rem,13vw,5.5rem);
    line-height:.95;
    letter-spacing:-.025em;
  }
  .display--quiet{font-size:clamp(2rem,7.5vw,3rem);line-height:1.15}
  .title{font-size:clamp(2.4rem,10vw,3.8rem);line-height:1.0}
  .body{font-size:1.02rem;line-height:1.55;max-width:36ch}
  .lede{font-size:clamp(1.05rem,4vw,1.25rem);line-height:1.5}
  .hud{font-size:.68rem}

  .scene--right .scene__copy{align-items:flex-start;text-align:left;margin:0}
  .scene--right .scene__copy > *{max-width:none}
  .scene--right .marker{align-items:flex-start}
  .scene--right .marker li{padding-left:1.2em;padding-right:0}
  .scene--right .marker li::before{left:0;right:auto}

  .defs{text-align:left}
  .defs dd{margin-left:0}
  .diptych{margin-left:0;max-width:100%;grid-template-columns:1fr;border-left:0}
  .diptych > div + div{border-left:0;border-top:1px solid rgba(180,196,190,.2)}
  /* Manifesto on mobile — vertical statement stack with rhythm */
  .manifesto{gap:0;width:100%;max-inline-size:100%;padding-block:1rem}
  .manifesto p{
    font-size:clamp(1.35rem,5.6vw,1.9rem);
    line-height:1.2;
    margin:0;
    padding:1.4rem 0;
    border-top:1px solid rgba(180,196,190,.16);
    width:100%;
    text-align:left;
    position:relative;
    counter-increment:manifesto;
  }
  .manifesto p:last-of-type{border-bottom:1px solid rgba(180,196,190,.16)}
  .manifesto p[data-align="r"]{align-self:stretch;text-align:left;padding-left:1.6rem}
  .manifesto p[data-align="l"]{align-self:stretch;text-align:left}
  .manifesto p[data-align="r"]::before{
    content:counter(manifesto,decimal-leading-zero);
    position:absolute;left:0;top:1.55rem;
    font-family:var(--mono);font-size:.65rem;letter-spacing:.22em;color:var(--gold);
  }
  .manifesto p[data-align="l"]{padding-left:1.6rem}
  .manifesto p[data-align="l"]::before{
    content:counter(manifesto,decimal-leading-zero);
    position:absolute;left:0;top:1.55rem;
    font-family:var(--mono);font-size:.65rem;letter-spacing:.22em;color:var(--sage);
  }
  .manifesto p em{font-style:italic;color:var(--mist);display:inline-block;border-bottom:1px solid var(--gold);padding-bottom:.1em}
  .manifesto{counter-reset:manifesto}

  #s5 .scene__copy,#s7 .scene__copy{max-inline-size:100%}
  .levels{grid-template-columns:1fr}
  .levels li{border-right:0;border-bottom:1px solid rgba(180,196,190,.15);padding:1rem 0}
  .method{grid-template-columns:1fr;border-top:0}
  .method article{border-right:0;border-top:1px solid rgba(180,196,190,.15);min-height:auto;padding:1.2rem 0}

  /* Mobile nav: compact, no wrap, keep both brand words */
  .nav{padding:.85rem var(--gutter);gap:.8rem;background:linear-gradient(to bottom, rgba(8,10,10,.7), rgba(8,10,10,0) 120%)}
  .nav__mark span{font-size:.9rem}
  .nav__links a.nav__cta{
    padding:.55rem .85rem;
    font-size:.6rem;
    letter-spacing:.18em;
    white-space:nowrap;
  }
  /* Swap full label for short label via two spans in HTML */
  .nav__cta-full{display:none}
  .nav__cta-short{display:inline}
  .nav__progress{display:none}
  .scroll-hint{display:none}

  /* pricing/contact mobile rhythm */
  .page{padding:6rem var(--gutter)}
  .plans{grid-template-columns:1fr}
  .extras{grid-template-columns:1fr}
  .page--contact{padding-top:4rem}
}

/* prefers-reduced-motion — kill expensive animations everywhere */
@media(prefers-reduced-motion: reduce){
  *,*::before,*::after{
    animation-duration:.001ms!important;
    animation-iteration-count:1!important;
    transition-duration:.15s!important;
    transition-delay:0s!important;
  }
  .scene__copy > *{filter:none!important;transform:none!important;opacity:1!important}
  .stage__v{transform:none!important;transition:opacity .3s ease!important}
  .grain{animation:none!important}
}

/* ============================================================================
   CITY PLANS — KINETIC FILM TITLES. Oversized centered typography directly
   over each scene's video (no box; video + motion stay fully visible). Legible
   via a soft feathered radial scrim + text-shadow. Districts reveal line-by-
   line in sync with scroll (main.js toggles .is-revealed). Brand: serif display,
   mono meta, single gold accent. See page-city-plans.php.
   ========================================================================= */

/* giant ghost index behind the title — depth + editorial poster feel */
.plan-scene .scene__pin{position:sticky;top:0;height:100dvh;display:grid;place-items:center;
  box-sizing:border-box;padding:clamp(6rem,10vh,8.5rem) var(--gutter) clamp(2rem,5vh,3.2rem)}
.plan-ghost{position:absolute;top:50%;left:50%;transform:translate(-50%,-54%);z-index:1;pointer-events:none;
  font-family:var(--serif);font-weight:400;line-height:1;font-size:clamp(13rem,34vw,30rem);
  color:rgba(238,241,236,.045);font-variation-settings:"opsz" 144;letter-spacing:-.02em}

/* the centered kinetic copy — no panel, just a feathered scrim for legibility.
   Wide + short: title block on top, districts laid out in a horizontal row. */
.plan-kinetic{position:relative;z-index:6;isolation:isolate;
  width:100%;max-inline-size:min(82rem,94vw);margin:0 auto;padding:0;
  display:flex;flex-direction:column;align-items:center;text-align:center;gap:0}
.plan-kinetic::before{content:"";position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);
  width:min(128%,92rem);height:min(150%,44rem);z-index:-1;pointer-events:none;
  background:radial-gradient(58% 50% at 50% 50%, rgba(7,9,10,.74), rgba(7,9,10,.4) 56%, rgba(7,9,10,0) 80%);
  filter:blur(6px)}

.plan-kinetic__kicker{font-family:var(--mono);font-size:.72rem;letter-spacing:.34em;text-transform:uppercase;color:var(--mist);
  text-shadow:0 1px 10px rgba(0,0,0,.7)}
.plan-scene--featured .plan-kinetic__kicker{color:var(--gold)}

.plan-kinetic__name{margin:.7rem 0 0;font-family:var(--serif);font-weight:400;
  font-size:clamp(2.9rem,6.6vw,6rem);line-height:.94;letter-spacing:-.025em;color:var(--paper);
  font-variation-settings:"opsz" 144;text-shadow:0 2px 34px rgba(0,0,0,.72),0 1px 5px rgba(0,0,0,.5)}
.plan-kinetic__name--sm{font-size:clamp(2.5rem,5vw,4.4rem)}
.plan-kinetic__name--display{font-size:clamp(2.5rem,5.2vw,4.8rem);line-height:1.26}
.plan-kinetic__name em{font-style:italic;color:var(--mist)}

/* animated gold hairline under the title */
.plan-kinetic__rule{display:block;height:1px;width:0;margin:1.1rem auto 0;background:var(--gold);
  box-shadow:0 0 18px rgba(201,169,107,.5);transition:width 1.1s cubic-bezier(.16,1,.3,1) .25s}
.scene.in .plan-kinetic__rule{width:clamp(3rem,7vw,6rem)}

.plan-kinetic__tagline{margin:1.1rem 0 0;font-family:var(--serif);font-style:italic;
  font-size:clamp(1.3rem,2.1vw,1.95rem);line-height:1.18;color:var(--mist);text-shadow:0 1px 18px rgba(0,0,0,.7)}
.plan-kinetic__lede{margin:1rem auto 0;max-width:52ch;font-size:1.05rem;line-height:1.6;color:#e3e8e2;
  text-shadow:0 1px 14px rgba(0,0,0,.7)}

/* districts — a horizontal row of columns, each revealed in turn on scroll */
.plan-lines{list-style:none;margin:2rem 0 0;padding:0;width:100%;
  display:grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:0;align-items:start}
.plan-line{opacity:0;transform:translateY(24px);filter:blur(7px);
  transition:opacity .8s cubic-bezier(.16,1,.3,1),transform .8s cubic-bezier(.16,1,.3,1),filter .8s ease}
.plan-line.is-revealed{opacity:1;transform:none;filter:blur(0)}
.plan-lines .plan-line{display:flex;flex-direction:column;align-items:center;gap:.45rem;
  padding:.2rem clamp(1rem,2vw,2.2rem);text-shadow:0 1px 16px rgba(0,0,0,.72)}
.plan-lines .plan-line:not(:first-child){border-left:1px solid rgba(180,196,190,.16)}
.plan-line__head{display:inline-flex;align-items:baseline;gap:.6rem;justify-content:center}
.plan-line__num{font-family:var(--mono);font-size:.78rem;letter-spacing:.04em;color:var(--gold)}
.plan-line__name{font-family:var(--serif);font-size:clamp(1.4rem,2vw,2rem);line-height:1.04;color:var(--paper)}
.plan-line__say{font-family:var(--serif);font-style:italic;font-size:clamp(1rem,1.35vw,1.18rem);color:var(--mist);line-height:1.25}
.plan-line__svc{font-family:var(--mono);font-size:.64rem;letter-spacing:.13em;text-transform:uppercase;color:var(--sage);line-height:1.6}

/* program highlight chips + closing defs (also .plan-line for the scroll reveal) */
.plan-chips{list-style:none;margin:2rem auto 0;padding:0;display:flex;flex-wrap:wrap;justify-content:center;gap:.6rem;max-width:46rem}
.plan-chips .plan-line{font-family:var(--mono);font-size:.66rem;letter-spacing:.12em;text-transform:uppercase;color:var(--mist);
  border:1px solid rgba(180,196,190,.34);border-radius:2px;padding:.5em .85em;background:rgba(10,12,12,.35)}
.plan-chips--defs{flex-wrap:nowrap;align-items:stretch;gap:0;max-width:64rem}
.plan-chips--defs .plan-line{flex:1;display:flex;flex-direction:column;gap:.3rem;border:0;background:none;padding:.2rem clamp(1rem,2vw,2rem);text-transform:none;letter-spacing:0;text-align:center}
.plan-chips--defs .plan-line:not(:first-child){border-left:1px solid rgba(180,196,190,.16)}
.plan-chips--defs .plan-line strong{font-family:var(--serif);font-weight:400;font-size:1.35rem;color:var(--paper);text-shadow:0 1px 16px rgba(0,0,0,.7)}
.plan-chips--defs .plan-line span{font-family:var(--sans);font-size:.92rem;line-height:1.5;color:#dbe1da;text-shadow:0 1px 14px rgba(0,0,0,.7)}

/* outcome */
.plan-kinetic__outcome{margin:1.6rem auto 0;max-width:62ch;font-size:1rem;line-height:1.55;color:var(--paper);text-shadow:0 1px 16px rgba(0,0,0,.72)}
.plan-kinetic__outcome-lbl{font-family:var(--mono);font-size:.6rem;letter-spacing:.22em;text-transform:uppercase;color:var(--gold);margin-right:.55em}

/* price + CTA */
.plan-kinetic__foot{margin-top:1.8rem;display:flex;align-items:center;justify-content:center;gap:1.6rem;flex-wrap:wrap}
.plan-price{margin:0;display:inline-flex;align-items:baseline;gap:.5rem;flex-wrap:wrap;justify-content:center;
  font-variant-numeric:tabular-nums;text-shadow:0 2px 20px rgba(0,0,0,.7)}
.plan-price__label{font-family:var(--mono);font-size:.6rem;letter-spacing:.2em;text-transform:uppercase;color:var(--sage);align-self:center;margin-right:.2rem}
.plan-price__prefix{font-family:var(--mono);font-size:.66rem;letter-spacing:.18em;text-transform:uppercase;color:var(--sage)}
.plan-price__amount{font-family:var(--serif);font-size:clamp(2.6rem,4vw,4rem);color:var(--paper);line-height:.9;letter-spacing:-.015em}
.plan-price__period{font-family:var(--mono);font-size:.78rem;letter-spacing:.06em;color:var(--bone)}
.plan-cta{display:inline-flex;align-items:center;gap:.6rem;padding:1rem 2rem;border:1px solid rgba(238,241,236,.6);border-radius:2px;
  color:var(--paper);font-family:var(--mono);font-size:.72rem;letter-spacing:.2em;text-transform:uppercase;text-decoration:none;white-space:nowrap;
  transition:background .28s ease,color .28s ease,letter-spacing .28s ease,transform .2s ease}
.plan-cta:hover{background:var(--paper);color:var(--ink);letter-spacing:.27em}
.plan-cta:active{transform:scale(.985)}
.plan-cta--gold{border-color:var(--gold);color:var(--gold)}
.plan-cta--gold:hover{background:var(--gold);color:var(--ink)}

/* recommended badge — floats above the title block */
.plan-tag{align-self:center;margin-bottom:1.1rem;font-family:var(--mono);font-size:.6rem;letter-spacing:.22em;text-transform:uppercase;
  color:var(--gold);border:1px solid rgba(201,169,107,.5);border-radius:999px;padding:.45em 1em;background:rgba(201,169,107,.12);
  text-shadow:none}

/* neutralise the generic per-child blur-in on the line containers — the lines
   manage their own reveal (scroll-synced), so don't double-animate the <ul>. */
.plan-kinetic > .plan-lines,
.plan-kinetic > .plan-chips,
.plan-kinetic > .about-lines,
.plan-kinetic > .guide-grid{opacity:1 !important;transform:none !important;filter:none !important}

/* ── About Us kinetic sections ──────────────────────────────────────────────
   Reuse the City Plans kinetic shell (.plan-scene / .plan-kinetic / .plan-line
   reveal) but present the copy two ways: a centered stack of statements (Why We
   Build, Designed For What Comes Next) and a width-spanning grid of principles
   (What Guides Us). Each line carries .plan-line so main.js reveals it on scroll. */

/* statements — a centered vertical stack, each line fading up in turn */
.about-lines{list-style:none;margin:1.9rem auto 0;padding:0;width:100%;max-width:56rem;
  display:flex;flex-direction:column;align-items:center;gap:clamp(.85rem,1.7vh,1.25rem)}
.about-lines .about-stmt{font-family:var(--serif);font-weight:400;text-align:center;
  font-size:clamp(1rem,1.7vw,1.5rem);line-height:1.3;color:var(--paper);letter-spacing:-.01em;
  text-shadow:0 1px 22px rgba(0,0,0,.74),0 1px 5px rgba(0,0,0,.5)}
/* the closing statement reads as the resolution — italic mist, a touch larger */
.about-lines .about-stmt:last-child{font-style:italic;color:var(--mist);
  font-size:clamp(1.06rem,1.85vw,1.6rem);margin-top:.3rem}

/* principles — a width-spanning grid, each cell hung off a thin gold rule */
.guide-grid{list-style:none;margin:2.4rem auto 0;padding:0;width:100%;max-width:74rem;
  display:grid;grid-template-columns:repeat(auto-fit,minmax(16rem,1fr));gap:clamp(1.9rem,3.4vh,2.7rem) clamp(1.6rem,2.4vw,2.6rem)}
.guide-grid .guide{display:flex;flex-direction:column;align-items:flex-start;gap:.5rem;text-align:left;
  padding:.35rem 0 .5rem 1.15rem;border-left:1px solid rgba(201,169,107,.5);
  text-shadow:0 1px 16px rgba(0,0,0,.72)}
.guide__num{font-family:var(--mono);font-size:.62rem;letter-spacing:.2em;color:var(--gold)}
.guide__name{font-family:var(--serif);font-weight:400;font-size:clamp(1.2rem,1.8vw,1.7rem);line-height:1.18;color:var(--paper)}
.guide__desc{font-family:var(--sans);font-size:.92rem;line-height:1.55;color:#dbe1da;max-width:34ch}
/* extra breathing room between the principles grid and the diagnostic CTA
   (base value — also the mobile gap, since margin:auto collapses to 0 in block flow) */
.about-scene--guides .plan-kinetic__foot{margin-top:clamp(2.8rem,5.5vh,4rem)}
/* on desktop, keep the title + principles grid vertically CENTERED (their original
   position) but drop the CTA to the bottom edge of the section. The copy stretches to
   the full pinned height and centers its in-flow content; the foot is taken out of flow
   (absolute) so it pins to the bottom without dragging the centered group upward. */
@media(min-width:901px){
  .plan-scene.about-scene--guides .scene__pin{align-items:stretch}
  .about-scene--guides .plan-kinetic{height:100%;justify-content:center}
  .about-scene--guides .plan-kinetic__foot{position:absolute;left:0;right:0;bottom:0;margin-top:0}
}

@media(max-width:900px){
  .about-lines{max-width:94vw}
  .about-lines .about-stmt{font-size:clamp(1rem,3.5vw,1.35rem)}
  .about-lines .about-stmt:last-child{font-size:clamp(1.06rem,3.8vw,1.44rem)}
  .guide-grid{grid-template-columns:1fr;max-width:36rem;gap:0;text-align:left}
  .guide-grid .guide{padding:1.05rem 0 1.05rem 1.05rem;border-left:1px solid rgba(201,169,107,.45)}
}

/* ── reduced motion / mobile — show every line, no scroll dependency ──────── */
body.is-mobile .plan-line,
body.reduced-motion .plan-line,
body.motion-paused .plan-line{opacity:1;transform:none;filter:blur(0);transition:none}
body.is-mobile .plan-kinetic__rule,
body.reduced-motion .plan-kinetic__rule{width:clamp(3rem,7vw,6rem)}

@media(max-width:900px){
  .plan-kinetic{max-inline-size:94vw}
  .plan-ghost{font-size:38vw;opacity:.7}
  /* stack the district columns vertically on narrow screens */
  .plan-lines,.plan-chips--defs{grid-auto-flow:row;grid-auto-columns:auto;display:grid}
  .plan-lines .plan-line,.plan-chips--defs .plan-line{padding:1.1rem 0}
  .plan-lines .plan-line:not(:first-child),
  .plan-chips--defs .plan-line:not(:first-child){border-left:0;border-top:1px solid rgba(180,196,190,.16)}
  .plan-line__svc{display:none}
}
/* protect the pinned viewport from overflow on short screens (row layout is
   already short — only the title needs trimming) */
@media(max-height:780px) and (min-width:901px){
  .plan-kinetic__name{font-size:clamp(2.8rem,5vw,4.6rem)}
  .plan-kinetic__tagline{font-size:1.25rem;margin-top:.9rem}
  .plan-lines{margin-top:1.5rem}
}

/* ============================================================================
   UNIFIED CTA BUTTONS — every call-to-action matches the contact form button
   (transparent, 1px var(--mist) border, var(--paper) text, mono, sharp corners;
   hover fills with var(--mist)). The nav__cta keeps its compact navbar size but
   already shares this colour treatment.
   ========================================================================= */
.cta,
.plan__cta,
.plan-cta,
.plan-cta--gold,
.not-found__alt{
  display:inline-flex;align-items:center;gap:.6rem;
  padding:1rem 1.5rem;border:1px solid var(--mist);border-radius:0;
  background:transparent;color:var(--paper);
  font-family:var(--mono);font-size:.72rem;letter-spacing:.22em;text-transform:uppercase;text-decoration:none;
  transition:background .35s ease,color .35s ease,letter-spacing .35s ease;
}
.cta:hover,
.plan__cta:hover,
.plan-cta:hover,
.plan-cta--gold:hover,
.not-found__alt:hover{
  background:var(--mist);color:var(--ink);letter-spacing:.28em;
}

/* Anchor offset — keep the diagnostic form clear of the fixed header when an
   anchor link (#contact / #kairos-diagnostic) scrolls to it (native/mobile path;
   the Lenis desktop path applies the same offset in main.js via navOffset()). */
.page--contact,
.anchor-alias{scroll-margin-top:clamp(5.5rem,13vh,8rem)}
.anchor-alias{display:block;width:0;height:0}
