/* =========================================================
   DOLL · Personal Portfolio — Leonardo Gonzalez
   Type system : SF Pro Display Semibold + Basis Grotesque Pro
   Monochrome base with rainbow accent.
   ========================================================= */

/* =========================================================
   TYPEFACES
   - Display : SF Pro Display (native on Apple OS), Inter fallback
   - Body    : Basis Grotesque Pro (self-hosted in /fonts/)
   ========================================================= */
@font-face {
  font-family: 'Basis Grotesque Pro';
  src: url('fonts/Basis Grotesque/Web Fonts/fb3ddfb68f7942d3a38bb6b63f96ac89.woff2') format('woff2'),
       url('fonts/Basis Grotesque/Web Fonts/fb3ddfb68f7942d3a38bb6b63f96ac89.woff')  format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Basis Grotesque Pro';
  src: url('fonts/Basis Grotesque Pro Italic/Web Fonts/8ce60fb425a6d82095ccc5ec72e15f7a.woff2') format('woff2'),
       url('fonts/Basis Grotesque Pro Italic/Web Fonts/8ce60fb425a6d82095ccc5ec72e15f7a.woff')  format('woff');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Basis Grotesque Pro';
  src: url('fonts/Basis Grotesque Pro Medium/Web Fonts/1d46ed49ac2b61f10bd7a1c088c4bdc5.woff2') format('woff2'),
       url('fonts/Basis Grotesque Pro Medium/Web Fonts/1d46ed49ac2b61f10bd7a1c088c4bdc5.woff')  format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink:     #000000;
  --ink-2:   #0a0a0a;
  --paper:   #ffffff;
  --paper-2: #f3eee5;
  --paper-3: #e8e1d3;
  --line:    rgba(255, 255, 255, 0.12);
  --line-d:  rgba(0, 0, 0, 0.12);
  --muted:   rgba(255, 255, 255, 0.6);
  --muted-d: rgba(0, 0, 0, 0.6);

  /* Spectrum tokens — the six-stop rainbow from DESIGN.md. Named
     roles so components can reach for the identity directly instead
     of literal hexes. --glow-mint is the "live/active" signal per
     the design system. */
  --spectrum-blue:   #3B6FFF;
  --spectrum-violet: #8A5BFF;
  --spectrum-pink:   #E14FB8;
  --spectrum-orange: #FF7A4F;
  --spectrum-yellow: #FFD24F;
  --spectrum-mint:   #A2FFD8;
  --glow-mint:       #6CFFB0;

  /* Muted-text token ladder on ink. All three clear WCAG AA on #000.
       strong:   ~.72 → 7.4:1  · use for uppercase small labels
       standard: ~.62 → 6.5:1  · default muted body / captions
       weak:     ~.55 → 5.7:1  · large text only (≥18px) */
  --muted-strong:   rgba(255, 255, 255, .72);
  --muted-standard: rgba(255, 255, 255, .62);
  --muted-weak:     rgba(255, 255, 255, .55);

  /* Focus ring — spectrum blue on ink, offset for the custom cursor.
       Every interactive element uses this via :focus-visible. */
  --focus-ring: 0 0 0 3px #3B6FFF, 0 0 0 5px rgba(0, 0, 0, .8);

  /* Semantic z-index scale. Named layers, no magic numbers. */
  --z-base:       0;
  --z-elevated:   1;
  --z-nav:        100;
  --z-drawer:     200;
  --z-preview:    300;
  --z-cursor:     400;
  --z-loader:     500;
  --z-transition: 600;

  /* DOLL signature gradient — derived from the brand mark stripe */
  --rainbow: linear-gradient(
    90deg,
    #3B6FFF 0%,
    #8A5BFF 18%,
    #E14FB8 36%,
    #FF7A4F 56%,
    #FFD24F 74%,
    #FFE96B 88%,
    #A2FFD8 100%
  );

  /* Type stack
     Display : SF Pro Display (native macOS/iOS) → system → sans
     Body    : Basis Grotesque Pro (self-hosted) → system → sans
     Logo    : Inter Tight Black — independent of the display stack
     No Google Fonts / Inter dependency on the public surface. */
  --f-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro", system-ui, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --f-sans:    "Basis Grotesque Pro", -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --f-logo:    "Inter Tight", "Helvetica Neue Bold", "Arial Black", sans-serif;
  --f-mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --ease:      cubic-bezier(.2, .8, .2, 1);
  --ease-out:  cubic-bezier(.16, 1, .3, 1);

  --pad-x: clamp(20px, 4vw, 64px);
  --maxw:  1680px;

  /* Rounded token ladder — align with DESIGN.md */
  --rounded-pill: 999px;
  --rounded-card: clamp(16px, 1.5vw, 24px);
  --rounded-md:   14px;
  --rounded-sm:   2px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* ────────────────────────────────────────────────────────────
   Global focus policy — because the site uses `cursor: none`,
   the ONLY feedback keyboard users get is the focus ring.
   Every focusable element (native or role-assigned) gets the
   spectrum-blue ring on :focus-visible, offset from the
   element and wrapped in a black outer ring for legibility
   on light and colored surfaces alike.
   Reference: WCAG 2.4.7, DESIGN.md focus contract.
   ──────────────────────────────────────────────────────────── */
:focus { outline: none; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[role="button"]:focus-visible,
[tabindex]:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--rounded-sm);
  transition: box-shadow .12s var(--ease-out);
}

/* Focus ring adapts on pill-shaped controls */
.bar__menu:focus-visible,
.bar__pill:focus-visible,
.drawer__social a:focus-visible,
.what-reel__audio:focus-visible {
  border-radius: var(--rounded-pill);
}

/* Focus ring for larger surfaces (cards, stages) uses the card radius */
.what-service-card:focus-visible,
.what-reel__stage:focus-visible {
  border-radius: var(--rounded-card);
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: var(--paper);
  background: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;   /* match the antialiasing on Firefox/macOS so
                                           light-on-dark text stays crisp, not heavy */
  text-rendering: optimizeLegibility;
  font-optical-sizing: auto;            /* let the display stack pick its optical master
                                           at the oversized hero sizes */
  cursor: none;
  font-feature-settings: "ss01", "kern";
}

@media (hover: none), (pointer: coarse) { body { cursor: auto; } }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: none; }
ul, ol { list-style: none; }

::selection {
  background: var(--spectrum-pink);
  color: var(--paper);
}

/* All display-family elements share one typographic voice:
   SF Pro Display Semibold — confident, tight, Apple-clean.
   Inter Semibold acts as the cross-platform fallback. */
.hero__title, .section-head__title, .marquee__track, .card__title,
.about__intro, .about__stats dt, .service__name, .service__arrow,
.contact__title, .contact__mail, .contact__social i, .more__arrow {
  font-family: var(--f-display);
  font-style: normal;
  font-feature-settings: "ss01", "cv11";
}

/* =========================================================
   DOLL WORDMARK (reusable — independent of display font stack)
   ========================================================= */
.doll {
  position: relative;
  display: inline-block;
  font-family: var(--f-logo);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1;
  color: currentColor;
  user-select: none;
}
.doll__word { display: block; }
.doll__stripe {
  position: absolute;
  left: 3%; right: 3%;
  top: 56%;
  height: 0.12em;
  background: var(--rainbow);
  border-radius: 999px;
  transform: translateY(-50%);
  pointer-events: none;
}
.doll--sm   { font-size: 28px; }
.doll--md   { font-size: 56px; }
.doll--lg   { font-size: clamp(80px, 14vw, 200px); }
.doll--mega { font-size: clamp(120px, 30vw, 560px); }

/* =========================================================
   HIGHLIGHT (rainbow underline on key words)
   ========================================================= */
.hl {
  position: relative;
  font-style: normal;
  white-space: nowrap;
  display: inline-block;
}
.hl::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: 0.04em;
  height: 0.08em;
  background: var(--rainbow);
  border-radius: 999px;
  transform-origin: left;
  animation: hlDraw 1.1s var(--ease-out) .4s both;
}
@keyframes hlDraw {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* =========================================================
   GRAIN OVERLAY
   ========================================================= */
.grain {
  position: fixed; inset: -100px;
  pointer-events: none;
  z-index: var(--z-transition);
  opacity: .06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  animation: grainShift 1.6s steps(6) infinite;
}
@keyframes grainShift {
  0%   { transform: translate(0,0); }
  20%  { transform: translate(-10px, 8px); }
  40%  { transform: translate(12px, -6px); }
  60%  { transform: translate(-6px, -10px); }
  80%  { transform: translate(8px, 14px); }
  100% { transform: translate(0,0); }
}
@media (prefers-reduced-motion: reduce) {
  .grain { animation: none; }
}

/* =========================================================
   CUSTOM CURSOR
   ========================================================= */
.cursor {
  position: fixed; top: 0; left: 0;
  pointer-events: none;
  z-index: var(--z-cursor);
  mix-blend-mode: difference;
  transform: translate3d(-100px,-100px,0);
}
.cursor__dot,
.cursor__ring {
  position: absolute; left: 50%; top: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width .4s var(--ease), height .4s var(--ease), background .3s var(--ease), border-color .3s var(--ease), opacity .3s var(--ease);
}
.cursor__dot  { width: 0; height: 0; background: transparent; }
.cursor__ring {
  width: 22px; height: 22px;
  background: var(--paper);
  border: 0;
  opacity: 1;
}
.cursor__label {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  font: 500 11px/1 var(--f-sans);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--paper);
  opacity: 0;
  white-space: nowrap;
  transition: opacity .25s var(--ease);
}
.cursor.is-hover .cursor__ring { width: 56px; height: 56px; }
.cursor.is-view  .cursor__ring { width: 96px; height: 96px; }
.cursor.is-view  .cursor__label { opacity: 1; color: var(--ink); mix-blend-mode: normal; }

@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* =========================================================
   LOADER — cinematic brand reveal
   1. Rainbow stripe expands from centre to full viewport width
   2. DOLL letters fade in around the stripe
   3. Stripe contracts back to its natural position inside the logo
   ========================================================= */
.loader {
  position: fixed; inset: 0; z-index: var(--z-loader);
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  overflow: hidden;
  transition: opacity .8s var(--ease) .15s, visibility 0s linear 1.7s, background .5s var(--ease);
}
/* Docking phase: the black backdrop fades to transparent so the hero shows
   through while the logo flies to the corner (transform set in script.js). */
.loader.is-docking { background: transparent; }
.loader.is-docking .loader__stage { will-change: transform; }
/* Home dock: the loader vanishes in one frame as the identical centred wordmark
   takes its place — no lingering scaled logo, so no perceived zoom on handoff. */
.loader.is-handed { opacity: 0 !important; transition: none !important; }
body:not(.is-loading) .loader { opacity: 0; visibility: hidden; }

/* =========================================================
   PAGE TRANSITION
   Rainbow liquid blobs (same palette/feel as the menu drawer)
   fade in across the whole screen when leaving a page, drift
   while the new page loads, then fade out revealing the new
   section. No curtains — just gradients playing.
   ========================================================= */
.transition {
  position: fixed;
  inset: 0;
  z-index: var(--z-transition);
  pointer-events: none;
  overflow: hidden;
  background: #050507;
  opacity: 0;
  visibility: hidden;
  /* Long, S-curve fade so colours diffuse gradually instead of popping in */
  transition: opacity .9s cubic-bezier(.65, 0, .35, 1), visibility 0s linear .9s;
}
.transition__blob {
  position: absolute;
  border-radius: 50%;
  /* Softer blur + lower saturation = colours are present but not aggressive */
  filter: blur(140px) saturate(120%);
  mix-blend-mode: screen;
  will-change: transform;
  opacity: .68;
}
.transition__blob--1 {
  width: 70vmin; height: 70vmin; background: var(--spectrum-blue);
  top: -12%; left: -12%;
  animation: tDrift1 5.5s ease-in-out infinite alternate;
}
.transition__blob--2 {
  width: 65vmin; height: 65vmin; background: var(--spectrum-pink);
  top: -8%; right: -12%;
  animation: tDrift2 6s ease-in-out infinite alternate;
}
.transition__blob--3 {
  width: 75vmin; height: 75vmin; background: var(--spectrum-mint);
  bottom: -18%; left: 8%;
  animation: tDrift3 6.5s ease-in-out infinite alternate;
}
.transition__blob--4 {
  width: 60vmin; height: 60vmin; background: var(--spectrum-orange);
  bottom: -8%; right: -8%;
  animation: tDrift4 5.8s ease-in-out infinite alternate;
}
.transition__blob--5 {
  width: 55vmin; height: 55vmin; background: var(--spectrum-yellow);
  top: 38%; left: 42%;
  animation: tDrift5 4.8s ease-in-out infinite alternate;
}
.transition__blob--6 {
  width: 62vmin; height: 62vmin; background: var(--spectrum-violet);
  top: 28%; left: 22%;
  animation: tDrift6 6.2s ease-in-out infinite alternate;
}

/* While leaving OR entering, the overlay is fully visible.
   Leaving = fade in (cover). Entering = held at full until
   .is-revealed triggers the fade-out. */
body.is-leaving .transition,
body.is-entering .transition {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity .9s cubic-bezier(.65, 0, .35, 1), visibility 0s;
}
body.is-entering.is-revealed .transition {
  opacity: 0;
  transition-delay: .22s;
}

/* Fast, energetic drift keyframes so the blobs "play" within the
   ~1.2s the overlay is on screen. */
@keyframes tDrift1 {
  from { transform: translate3d(0, 0, 0)        scale(1); }
  to   { transform: translate3d(28vw, 20vh, 0)  scale(1.25); }
}
@keyframes tDrift2 {
  from { transform: translate3d(0, 0, 0)        scale(1); }
  to   { transform: translate3d(-24vw, 28vh, 0) scale(1.3); }
}
@keyframes tDrift3 {
  from { transform: translate3d(0, 0, 0)        scale(1); }
  to   { transform: translate3d(32vw, -24vh, 0) scale(1.2); }
}
@keyframes tDrift4 {
  from { transform: translate3d(0, 0, 0)        scale(1); }
  to   { transform: translate3d(-28vw, -20vh, 0) scale(1.28); }
}
@keyframes tDrift5 {
  from { transform: translate3d(0, 0, 0)        scale(1); }
  to   { transform: translate3d(-18vw, -26vh, 0) scale(1.4); }
}
@keyframes tDrift6 {
  from { transform: translate3d(0, 0, 0)        scale(1); }
  to   { transform: translate3d(26vw, -22vh, 0) scale(1.22); }
}

@media (prefers-reduced-motion: reduce) {
  .transition__blob { animation: none !important; }
}

.loader__stage {
  position: relative;
  display: inline-block;
  font-family: var(--f-logo);
  font-weight: 900;
  /* Big intro logo that scales DOWN to dock. Its tracking MUST match the final
     home logo (var below) so that, once scaled to the same width, the letters
     line up exactly — otherwise the hand-off shows a little "jump". */
  font-size: clamp(120px, 20vw, 320px);
  letter-spacing: -.03em;   /* == .home2__wordmark tracking, for a clean swap */
  line-height: 1;
  color: var(--paper);
  user-select: none;
}

.loader__doll {
  display: block;
  opacity: 0;
  transform: translateY(14px) scale(.96);
  animation: loaderDollIn .8s var(--ease-out) .35s forwards;
}

/* ── Real DOLL logo artwork ──────────────────────────────────────────────
   The wordmark now renders the brand's OWN letterforms (a white "sliced" PNG —
   letters cut by the rainbow gap), so it's pixel-identical on every device
   instead of depending on a system fallback font. The rainbow itself stays in
   the sibling __stripe, so the loader's sweep animation and the loader→corner
   dock hand-off keep working unchanged. Height ≈ the cap-height the text held,
   so layout, the dock target and the stripe position don't shift. */
.loader__doll, .navpill__doll, .home2__doll {
  display: block;
  height: .72em;
  width: 2.334em;                 /* .72em × 3.2417 (logo aspect ratio) */
  background: url('uploads/logo/DOLL-WHITE-SLICED.png') center / contain no-repeat;
  text-indent: -200vw; overflow: hidden; white-space: nowrap; color: transparent;
}

.loader__stripe {
  position: absolute;
  top: 51.1%;               /* == the real logo's stripe centre (and home2/nav), for a clean dock */
  left: 50%;
  height: .056em;           /* == logo stripe thickness (~7.8% of the cap height) */
  background: var(--rainbow);
  border-radius: 999px;
  transform: translate(-50%, -50%);
  width: 0;
  animation: loaderStripeIn 1.7s cubic-bezier(.7, 0, .25, 1) forwards;
  box-shadow:
    0 0 30px rgba(225, 79, 184, .35),
    0 0 80px rgba(138, 91, 255, .22),
    0 0 140px rgba( 59, 111, 255, .14);
}

@keyframes loaderDollIn {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes loaderStripeIn {
  0%   { width: 0;     }
  22%  { width: 110vw; }   /* expand to full viewport (with overshoot) */
  50%  { width: 110vw; }   /* hold full-screen for a cinematic beat */
  100% { width: 100%;  }   /* contract back to the logo's natural width */
}

@media (prefers-reduced-motion: reduce) {
  .loader__doll, .loader__stripe { animation-duration: 0.4s; }
}

/* =========================================================
   TOP BAR (cockpit chrome — replaces NAV)
   Default: spans full width.
   On scroll: converges into a centered floating pill.
   ========================================================= */
/* Default: wide bar — elements pinned to the viewport edges (Menu left,
   DOLL centered, icon right). On scroll, .is-compact collapses it into
   a 620px floating pill with all three packed close. */
.bar {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: var(--z-nav);
  color: var(--paper);
  box-sizing: border-box;
}

/* ── Brand logo, fixed in the top-left corner ────────────────────────────
   Pulled out of the nav pill so it reads larger and stays visible on its own.
   A soft dark drop-shadow keeps the white wordmark legible over any background
   (video / gradient / light section). Sized responsively for web + mobile. */
.brand-corner {
  position: fixed;
  top:  clamp(14px, 2vh, 24px);
  left: clamp(16px, 3.2vw, 42px);
  z-index: var(--z-nav);
  display: inline-flex;
  line-height: 0;
  /* Hidden until the loader logo finishes docking here, then it fades up as the
     loader hands the logo off (see the loader-dock code in script.js). */
  opacity: 0;
  pointer-events: none;
  transition: opacity .55s var(--ease);
}
.brand-corner__logo {
  display: block;
  height: clamp(34px, 4vw, 52px);   /* ~2x the old in-bar logo; scales down on mobile */
  width: auto;
  filter: drop-shadow(0 2px 12px rgba(0, 0, 0, .5));
  transition: transform .35s var(--ease-out);
}
.brand-corner:hover .brand-corner__logo { transform: scale(1.05); }
.brand-corner:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--spectrum-violet) 70%, #fff);
  outline-offset: 4px; border-radius: 8px;
}
body:not(.is-loading) .brand-corner { opacity: 1; pointer-events: auto; }
body.menu-open .brand-corner {
  opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease);
}
/* On narrow screens the centred nav pill spans nearly the full width and would
   sit under the corner logo — stack them: logo on top, pill dropped below. */
@media (max-width: 700px) {
  .brand-corner       { top: 16px; left: 16px; }
  .brand-corner__logo { height: 32px; }
  .bar                { top: 64px; }
}

/* ── Mobile hamburger (inner pages) — mirrors the home's in-hero burger.
   Two lines, top-right corner; opens the shared #drawer. Hidden on desktop,
   where the .bar inline nav is used; the home uses its own .home2__burger. ── */
.menu-burger {
  display: none;                 /* revealed on mobile (media query below) */
  position: fixed;
  top: clamp(12px, 1.8vh, 20px);
  right: clamp(14px, 3.2vw, 40px);
  z-index: var(--z-nav);
  width: 44px; height: 44px; padding: 0; margin: 0;
  flex-direction: column; align-items: flex-end; justify-content: center;
  gap: 8px;
  background: none; border: 0; cursor: pointer;
  opacity: 0; pointer-events: none;                 /* hidden until the loader lifts */
  transition: opacity .55s var(--ease);
}
.menu-burger__line {
  display: block; width: 30px; height: 2px; border-radius: 2px;
  background: #fff;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, .5));
  transition: width .3s var(--ease);
}
.menu-burger:active .menu-burger__line { width: 24px; }
body:not(.is-loading) .menu-burger { opacity: 1; pointer-events: auto; }
/* When the drawer is open its own × button takes over — fade the burger out. */
body.menu-open .menu-burger { opacity: 0; pointer-events: none; transition: opacity .3s var(--ease); }

@media (max-width: 767px) {
  .menu-burger { display: inline-flex; }   /* show the hamburger on phones */
  .bar         { display: none; }           /* replace the inline nav pill with it */
}

/* ════════════════════════════════════════════════════════════════════════
   NAV PILL — the site's single navigation element.
   A centred, floating rounded pill holding the logo (left) + hamburger (right).
   Identical on every page and every screen size, so it adapts to any width by
   construction. The hamburger opens the shared #drawer (links + social).
   The glass chrome sits on ::before so it can fade in independently while the
   logo lands instantly from the loader hand-off ("the pill materialises around
   the docked logo"). ════════════════════════════════════════════════════════ */
.navpill {
  position: fixed;
  top: clamp(14px, 2vh, 26px);
  left: 0; right: 0;
  z-index: var(--z-nav);
  /* No pill container — a full-width, INVISIBLE bar: the logo pins to the
     top-left corner, the hamburger to the top-right. Clicks pass through the
     empty middle so it never blocks the content below. */
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--pad-x);
  pointer-events: none;
  isolation: isolate;
}
.navpill::before { display: none; }   /* pill chrome removed */
.navpill__logo,
.navpill__right { pointer-events: auto; }
/* Slide the whole nav up on scroll-down, back on scroll-up (body.nav-hidden). */
.navpill { transition: transform .45s var(--ease), opacity .4s var(--ease); }
body.nav-hidden .navpill { transform: translateY(-160%); opacity: 0; pointer-events: none; }

/* Right group: inline links + hamburger, aligned to the right. */
.navpill__right { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 38px); }

/* Desktop inline menu — every section visible, on the RIGHT. Hidden on mobile.
   Official DOLL type (Basis Grotesque) + palette: white on ink, the rainbow as
   the only accent (no flat colour). */
.navpill__links { display: flex; align-items: center; gap: clamp(20px, 2vw, 36px); }
.navpill__link {
  position: relative;
  font-family: var(--f-sans); font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em;
  font-size: clamp(16px, 1.5vw, 22px);
  color: var(--paper); text-decoration: none; opacity: .78;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .55);
  transition: opacity .25s var(--ease);
}
@media (hover: hover) { .navpill__link:hover { opacity: 1; } }
/* Active page: full white + a rainbow underline (the DOLL stripe motif). */
.navpill__link.is-active { opacity: 1; }
.navpill__link.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 3px; border-radius: 999px; background: var(--rainbow);
}
.navpill__link:focus-visible { opacity: 1; outline: 2px solid var(--paper); outline-offset: 4px; border-radius: 4px; }

/* Logo — an HTML wordmark + rainbow stripe in the top-left corner, matched to
   the loader so the hand-off is a seamless swap (no crossfade, no size "zoom"). */
.navpill__logo { display: inline-flex; text-decoration: none; line-height: 0; }
.navpill__wordmark {
  position: relative; display: inline-block;
  font-family: var(--f-logo); font-weight: 900;
  letter-spacing: -.03em; line-height: 1; color: #fff;
  font-size: clamp(28px, 3vw, 44px);
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, .5));
}
.navpill__doll { display: block; }
.navpill__stripe {
  position: absolute; left: 0; right: 0; top: 51.1%;
  transform: translateY(-50%);
  height: .056em; border-radius: 999px;
  background: var(--rainbow);
  box-shadow: 0 0 18px rgba(225, 79, 184, .3), 0 0 40px rgba(138, 91, 255, .18);
}

/* Hamburger — two lines, right side; a proper 44px touch target. */
.navpill__burger {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 7px;
  width: 44px; height: 44px; padding: 0; margin: 0;
  background: none; border: 0; cursor: pointer;
}
.navpill__burger-line {
  display: block; width: 30px; height: 3px; border-radius: 3px;
  background: #fff;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, .5));
  transition: width .3s var(--ease);
}
@media (hover: hover) { .navpill__burger:hover .navpill__burger-line { width: 34px; } }
.navpill__burger:active .navpill__burger-line { width: 24px; }
.navpill__burger:focus-visible {
  outline: 2px solid #fff; outline-offset: 4px; border-radius: 8px;
}

/* Intro: logo + burger + links hidden under the loader, revealed on hand-off.
   The wordmark is instant (matches the docked loader logo); the rest fade. */
body.is-loading .navpill__wordmark,
body.is-loading .navpill__burger,
body.is-loading .navpill__links { opacity: 0; }
body:not(.is-loading) .navpill__wordmark { opacity: 1; }
body:not(.is-loading) .navpill__burger,
body:not(.is-loading) .navpill__links { opacity: 1; transition: opacity .5s var(--ease) .2s; }

/* When the drawer is open, its own × takes over — hide the nav. */
body.menu-open .navpill { opacity: 0; pointer-events: none; transition: opacity .3s var(--ease); }

/* Inline links on desktop/tablet; hamburger on phones — INCLUDING landscape
   phones (wide but short), hence the height query. */
@media (max-width: 767px), (max-height: 500px) {
  .navpill__links { display: none; }
  /* More edge clearance so the logo + hamburger never sit under a rounded
     corner / safe-area. In landscape the notch is on a side, so the horizontal
     safe-area insets matter here too. */
  .navpill {
    padding-left:  max(26px, env(safe-area-inset-left, 0px));
    padding-right: max(26px, env(safe-area-inset-right, 0px));
  }
}
@media (min-width: 768px) and (min-height: 501px) {
  .navpill__burger { display: none; }
}

/* ── The nav form — a dark outlined bar ──────────────────────
   A flex row of segments (logo · nav · CTA) over ONE smooth dark-glass bar.
   The current section carries a raised glossy pill with a white label; the
   others sit as muted labels that brighten with a faint pill on hover. */
.bar__petals {
  position: relative;
  display: flex;
  align-items: stretch;
  height: 53px;                 /* +15% */
  isolation: isolate;
  border-radius: 999px;
}
/* ── Liquid-glass surface (a web approximation, not Apple's real material) ──
   A heavy backdrop blur + saturation refracts whatever scrolls behind; a thin
   light tint keeps white labels legible on busy/bright backgrounds; layered
   inset rims fake the bevelled glass edge — a lit top, a shaded belly. */
.bar__petals::before {
  content: "";
  position: absolute; inset: 0; z-index: 0;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.04) 42%, rgba(255,255,255,0) 66%),
    rgba(16, 18, 24, .34);
  -webkit-backdrop-filter: blur(22px) saturate(180%) brightness(1.06);
          backdrop-filter: blur(22px) saturate(180%) brightness(1.06);
  box-shadow:
    inset 0 1px .5px rgba(255,255,255,.55),     /* lit top rim (glass edge) */
    inset 0 0 0 1px rgba(255,255,255,.14),      /* hairline outline */
    inset 0 -12px 24px rgba(0,0,0,.30),         /* shaded belly = depth */
    0 22px 50px -14px rgba(0,0,0,.6);           /* ambient drop */
}
/* Specular sheen — a soft light band drifts across so the glass reads as a
   living, refractive material rather than a flat panel. */
.bar__petals::after {
  content: "";
  position: absolute; inset: 0; z-index: 0;
  border-radius: 999px;
  background: linear-gradient(100deg, transparent 34%, rgba(255,255,255,.13) 50%, transparent 64%);
  background-size: 250% 100%;
  background-position: 210% 0;
  opacity: .6;
  pointer-events: none;
  animation: barSheen 8s ease-in-out infinite;
}
@keyframes barSheen {
  0%, 12%   { background-position: 210% 0; }
  62%, 100% { background-position: -70% 0; }
}
/* The moving lens — a brighter glass lozenge that glides to the active tab and
   follows the pointer / focus. Positioned by script.js via the --lens-* vars so
   the motion runs on the compositor (transform + width). */
.bar__lens {
  position: absolute; z-index: 1;
  top: 5px; bottom: 5px; left: 0;
  width: var(--lens-w, 0px);
  transform: translateX(var(--lens-x, 0px));
  opacity: var(--lens-o, 0);
  border-radius: 999px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.24), rgba(255,255,255,.09));
  -webkit-backdrop-filter: blur(4px) saturate(160%) brightness(1.18);
          backdrop-filter: blur(4px) saturate(160%) brightness(1.18);
  box-shadow:
    inset 0 1px .5px rgba(255,255,255,.75),       /* bright rim */
    inset 0 0 0 1px rgba(255,255,255,.20),
    inset 0 -6px 14px rgba(0,0,0,.22),
    0 6px 18px -4px rgba(0,0,0,.5),
    0 0 26px -8px var(--lens-hue, transparent);   /* spectrum halo (colour = event) */
  transition:
    transform  .55s var(--ease-out),
    width      .55s var(--ease-out),
    opacity    .38s var(--ease-out),
    box-shadow .5s  var(--ease-out);
}
.bar__lens.is-instant { transition: none; }
@media (prefers-reduced-motion: reduce) {
  .bar__petals::after { animation: none; opacity: 0; }   /* stop the sheen sweep */
  .bar__lens { transition: opacity .2s linear; }         /* snap, don't glide */
}

/* Each segment — sits above the moving lens so the label is never dimmed. */
.bar__seg {
  position: relative; z-index: 2;
  display: inline-flex; align-items: center; justify-content: center;
  height: 100%;
  padding: 0 clamp(15px, 1.7vw, 25px);   /* +15% */
  text-decoration: none;
  color: #fff;                           /* all labels white from the start */
  white-space: nowrap;
  --c: var(--spectrum-blue);
  transition: color .28s var(--ease);
}
.bar__seg > * { position: relative; z-index: 2; }
/* Hover / focus just brightens the label — the shared .bar__lens (a glass
   lozenge positioned in JS) is the visible highlight now. */
.bar__seg:hover { color: #fff; }
.bar__seg:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--c) 70%, #fff);
  outline-offset: -3px; border-radius: 999px;
}
/* Logo petal — the white wordmark sits straight on the canvas (no lens, so it
   never gets hidden behind a white bloom). */
/* Logo petal — the wordmark sits straight on the glass (no lens) so it never
   hides behind a bright bloom. */
.bar__seg--logo { padding: 0 clamp(17px, 1.95vw, 28px); }
/* Explicit width — an <img> flex-item with width:auto collapses to 0 in this
   row; a definite width + object-fit keeps the wordmark's proportions. */
.bar__brand-logo {
  display: block;
  height: 25px;
  width: 70px;
  flex: 0 0 auto;
  object-fit: contain;
  transition: transform .4s var(--ease-out);
}
.bar__seg--logo:hover .bar__brand-logo { transform: scale(1.07); }
body.is-loading .bar { opacity: 0; pointer-events: none; }
.bar { animation: navFade .8s var(--ease-out) 1s both; }
/* Keep the centering translateX(-50%) in BOTH keyframes — the bar is centered
   via transform, so animating transform without it shoved the bar off to the
   right for the whole entrance (a diagonal slide-in + a scrollWidth overflow).
   Now it just fades and drops straight down, centered throughout. */
@keyframes navFade {
  from { opacity: 0; transform: translateX(-50%) translateY(-12px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.bar__menu {
  position: relative;
  display: inline-flex; align-items: center;
  gap: 7px;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: transparent;
  border: 0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -.005em;
  color: inherit;
  transition: background .25s var(--ease);
}
.bar__menu:hover { background: rgba(255,255,255,.10); }
.bar__menu-text { position: relative; display: inline-block; min-width: 38px; height: 1em; line-height: 1; overflow: hidden; }
.bar__menu-text span { position: absolute; inset: 0; transition: transform .45s var(--ease), opacity .35s var(--ease); }
.bar__menu-text [data-menu-close] { transform: translateY(110%); opacity: 0; }
body.menu-open .bar__menu-text [data-menu-open]  { transform: translateY(-110%); opacity: 0; }
body.menu-open .bar__menu-text [data-menu-close] { transform: translateY(0); opacity: 1; }

.bar__menu-glyph {
  position: relative;
  width: 12px; height: 10px;
  transition: transform .45s var(--ease);
}
.bar__menu-glyph::before,
.bar__menu-glyph::after {
  content: "";
  position: absolute; left: 0; right: 0;
  height: 1.2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform .45s var(--ease), top .45s var(--ease);
}
.bar__menu-glyph::before { top: 1px; }
.bar__menu-glyph::after  { top: 7px; }
body.menu-open .bar__menu-glyph::before { top: 4.4px; transform: rotate(45deg); }
body.menu-open .bar__menu-glyph::after  { top: 4.4px; transform: rotate(-45deg); }

.bar__brand {
  display: inline-flex; align-items: center;
  flex-shrink: 0;   /* never let the wordmark get squeezed to 0 on narrow bars */
}
.doll--xs { font-size: 19px; }

/* Nav brand logo — real DOLL PNG uploaded to /uploads/logo.
   Height sized to sit visually equivalent to the previous
   .doll--xs wordmark component (word + rainbow stripe).
   Width auto preserves the logo's natural aspect ratio. */
.bar__brand-logo {
  display: block;
  height: 22px;
  width: auto;
  flex-shrink: 0;
}

.bar__right {
  display: inline-flex; align-items: center; gap: 6px;
}
.bar__pill {
  display: inline-flex; align-items: center; gap: 8px;
  height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  background: transparent;
  border: 0;
  font-size: 12px;
  letter-spacing: -.005em;
  color: inherit;
  transition: background .25s var(--ease);
}
.bar__pill:hover { background: rgba(255,255,255,.10); }
.bar__time i {
  font-style: normal;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .05em;
}
.bar__time i + i { opacity: .8; }
.bar__icon { width: 32px; height: 32px; padding: 0; justify-content: center; }

/* ── Nav + CTA petals — text styling on top of the shared .bar__seg ──
   The petal shape, hue pool and hover live on .bar__seg above; these rules
   just set the type and the section-active / CTA specifics. */
.bar__nav-link,
.bar__cta {
  font-family: var(--f-sans);
  font-size: clamp(14.5px, 1.2vw, 16.5px);   /* +15% */
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  text-shadow: 0 1px 2px rgba(0,0,0,.28);   /* keep white labels legible over glass */
}
.bar__nav-txt { white-space: pre; }
.bar__nav-link.is-active { color: #fff; }
/* No-JS fallback — if the moving lens never initialises, the active tab still
   gets a static glass lozenge. Hidden once script.js marks the bar lens-ready. */
.bar__petals:not(.is-lens-ready) .bar__nav-link.is-active::after {
  content: "";
  position: absolute; z-index: 0;
  inset: 5px 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,.08));
  box-shadow:
    inset 0 1px .5px rgba(255,255,255,.7),
    inset 0 0 0 1px rgba(255,255,255,.18),
    0 4px 14px -4px rgba(0,0,0,.5);
}
/* CTA — plain like the nav links (no persistent highlight); just the arrow
   nudge on hover, and the shared hover bloom. */
.bar__cta { gap: 8px; }
.bar__cta-arrow { display: inline-block; transition: transform .3s var(--ease-out); }
.bar__cta:hover .bar__cta-arrow { transform: translateX(3px); }

/* Touch-target polish — extend the invisible hit area on coarse
   pointers so pill controls hit the 44×44 WCAG AAA target while
   staying visually compact on desktop. */
@media (pointer: coarse) {
  .bar__menu,
  .bar__pill,
  .bar__icon {
    position: relative;
  }
  .bar__menu::after,
  .bar__pill::after,
  .bar__icon::after {
    content: "";
    position: absolute;
    inset: -6px;
    z-index: -1;
  }
}

@media (max-width: 720px) {
  .bar__time i:first-child { display: none; }
  .bar__pill { padding: 0 12px; }
}

.nav__mark {
  display: flex; align-items: center; gap: 14px;
}
.nav__mark small {
  font-family: var(--f-mono);
  font-size: 10px; letter-spacing: .15em;
  text-transform: uppercase;
  opacity: .55;
  display: none;
}
@media (min-width: 720px) {
  .nav__mark small { display: inline; }
}

.nav__menu {
  display: flex; gap: clamp(20px, 3vw, 40px);
  justify-self: center;
}
.nav__menu a {
  position: relative;
  display: inline-flex; align-items: baseline; gap: 6px;
  font-size: 13px; letter-spacing: .01em;
  font-weight: 500;
}
.nav__menu a i {
  font-family: var(--f-mono); font-style: normal;
  font-size: 9px; letter-spacing: .15em; opacity: .55;
  transform: translateY(-3px);
}
.nav__menu a span { position: relative; overflow: hidden; display: inline-block; }
.nav__menu a span::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--ease);
}
.nav__menu a:hover span::after { transform: scaleX(1); transform-origin: left; }

.nav__cta {
  justify-self: end;
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: .04em;
  font-weight: 500;
  border: 1px solid var(--line);
  padding: 10px 16px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.nav__cta:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.nav__cta-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #6CFFB0;
  box-shadow: 0 0 0 0 rgba(108,255,176,.4);
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0   rgba(108,255,176,.55); }
  70%  { box-shadow: 0 0 0 10px rgba(108,255,176,0);  }
  100% { box-shadow: 0 0 0 0   rgba(108,255,176,0);  }
}

@media (max-width: 860px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav__menu { display: none; }
}

/* =========================================================
   COCKPIT — single-screen home (MetaLab pattern)
   Top bar above (fixed). Centerpiece visual + left rail of
   project pills + right-top bio + bottom headline.
   ========================================================= */
.cockpit {
  position: relative;
  min-height: 100svh;
  padding: clamp(96px, 12vh, 140px) var(--pad-x) clamp(40px, 5vh, 60px);
  overflow: hidden;
  /* No isolation here — the rail (z-index 96) needs to live in the body
     stacking context so it stays above the preview takeover (z-index 95). */
}

/* Fluid gradient field (monopo.london-style) — 6 ambient blobs + 1 cursor blob */
.cockpit__visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  transition: opacity .6s var(--ease);
}
body.menu-open .cockpit__visual { opacity: .55; }

/* Hide legacy ambient pad — the blob field replaces it */
.cockpit__ambient { display: none; }

/* Prism-rays layer stays parked; the ambient blob field — the same animated
   gradient the other sections use — is the hero background again. The
   cursor-follower blob is hidden here since nothing drives it on this page. */
.cockpit__prism { display: none; }
.cockpit .blob--cursor { display: none; }

/* ── Optional CMS background video ───────────────────────────────────────
   When Home → Background video is set, this cover-fit video replaces the blob
   field; a directional scrim (darker to the left, where the headline sits)
   keeps the white type legible over any footage. */
.cockpit__video { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.cockpit__video video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.cockpit__video-scrim {
  position: absolute; inset: 0;
  /* Centred darkening — seats the centred headline over the video, with a soft
     even base so the whole frame keeps contrast without a hard dark blob. */
  background:
    radial-gradient(78% 62% at 50% 48%, rgba(0,0,0,.55), rgba(0,0,0,0) 80%),
    linear-gradient(0deg, rgba(0,0,0,.32) 0%, rgba(0,0,0,0) 52%),
    rgba(0,0,0,.2);
}
.cockpit--video .cockpit__visual { display: none; }   /* video takes over from the blobs */

/* ── Prismatic light field (geometric, cursor-reactive) ──────────────────
   A slow-rotating six-stop conic "fan" masked into radiating rays gives the
   geometric prism look; an iridescent sheen and grain sit over it. The whole
   field parallax-shifts with the cursor (transform set in script.js). Screen-
   blended over black so colour reads as light, and it blooms in on load for
   the first-impact moment. */
.cockpit__prism {
  position: absolute; inset: -12%;   /* overshoot so cursor tilt/parallax never bares a black corner */
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  animation: prismIn 1.9s var(--ease-out) .45s forwards;
  transition: opacity .6s var(--ease);
}
@keyframes prismIn { to { opacity: 1; } }
body.menu-open .cockpit__prism { opacity: .5; }

/* Radiating spectrum rays — the geometric core. The conic gradient colours the
   fan; the repeating-conic mask cuts it into rays. Rotation is a cheap
   compositor animation; cursor parallax lives on the parent. */
.prism__rays {
  position: absolute;
  top: 50%; left: 50%;
  width: 165vmax; height: 165vmax;
  margin: -82.5vmax 0 0 -82.5vmax;
  background: conic-gradient(from 0deg at 50% 50%,
    var(--spectrum-blue), var(--spectrum-violet), var(--spectrum-pink),
    var(--spectrum-orange), var(--spectrum-yellow), var(--spectrum-mint), var(--spectrum-blue));
  -webkit-mask: repeating-conic-gradient(from 0deg at 50% 50%,
    #000 0deg 2.6deg, transparent 2.6deg 12deg);
          mask: repeating-conic-gradient(from 0deg at 50% 50%,
    #000 0deg 2.6deg, transparent 2.6deg 12deg);
  filter: blur(28px) saturate(155%);
  mix-blend-mode: screen;
  opacity: .34;
  will-change: transform;
  animation: prismSpin 72s linear infinite;
}
@keyframes prismSpin { to { transform: rotate(360deg); } }

/* Iridescent sheen — a broad off-centre oil-slick wash that adds the
   holographic depth of the reference renders. */
.prism__sheen {
  position: absolute; inset: -20%;
  background:
    radial-gradient(60% 55% at 32% 30%,
      color-mix(in srgb, var(--spectrum-violet) 55%, transparent), transparent 70%),
    radial-gradient(55% 50% at 72% 62%,
      color-mix(in srgb, var(--spectrum-orange) 45%, transparent), transparent 68%),
    radial-gradient(65% 60% at 55% 88%,
      color-mix(in srgb, var(--spectrum-blue) 50%, transparent), transparent 72%);
  filter: blur(46px);
  mix-blend-mode: screen;
  opacity: .5;
}

/* Fine grain — the poster-print texture from the references. Pure CSS noise via
   a tiled SVG turbulence data-URI; soft-light keeps it a texture, not a veil. */
.prism__grain {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
  mix-blend-mode: soft-light;
  opacity: .5;
}

@media (prefers-reduced-motion: reduce) {
  .prism__rays { animation: none; }
  .cockpit__prism { animation: none; opacity: 1; }
}
/* Perf: the rotating masked conic + blur is the heaviest layer — drop the rays
   on coarse pointers / small screens and keep the sheen + grain. */
@media (hover: none), (pointer: coarse), (max-width: 760px) {
  .prism__rays { display: none; }
}

.blob {
  position: absolute;
  width: 540px; height: 540px;
  border-radius: 50%;
  filter: blur(110px);
  mix-blend-mode: screen;
  opacity: .85;
  will-change: transform;
  pointer-events: none;
}

/* Six ambient blobs — one per DOLL rainbow stop, each on its own slow orbit */
.blob--1 {
  --c: var(--spectrum-blue);
  background: radial-gradient(circle, var(--c) 0%, transparent 65%);
  top: 14%; left: 18%;
  animation: blobDrift1 26s ease-in-out infinite alternate;
}
.blob--2 {
  --c: var(--spectrum-violet);
  background: radial-gradient(circle, var(--c) 0%, transparent 65%);
  top: 56%; left: 8%;
  width: 620px; height: 620px;
  animation: blobDrift2 32s ease-in-out infinite alternate;
}
.blob--3 {
  --c: var(--spectrum-pink);
  background: radial-gradient(circle, var(--c) 0%, transparent 65%);
  top: 28%; left: 58%;
  width: 580px; height: 580px;
  animation: blobDrift3 24s ease-in-out infinite alternate;
}
.blob--4 {
  --c: var(--spectrum-orange);
  background: radial-gradient(circle, var(--c) 0%, transparent 65%);
  top: 62%; left: 52%;
  width: 520px; height: 520px;
  animation: blobDrift4 30s ease-in-out infinite alternate;
}
.blob--5 {
  --c: var(--spectrum-yellow);
  background: radial-gradient(circle, var(--c) 0%, transparent 65%);
  top: 8%; left: 70%;
  width: 460px; height: 460px;
  opacity: .55;
  animation: blobDrift5 36s ease-in-out infinite alternate;
}
.blob--6 {
  --c: var(--spectrum-mint);
  background: radial-gradient(circle, var(--c) 0%, transparent 65%);
  top: 70%; left: 78%;
  width: 500px; height: 500px;
  opacity: .65;
  animation: blobDrift6 28s ease-in-out infinite alternate;
}

/* Cursor-follower blob — driven by JS */
.blob--cursor {
  top: 0; left: 0;
  width: 460px; height: 460px;
  background: radial-gradient(circle,
    color-mix(in srgb, var(--spectrum-pink) 60%, transparent) 0%,
    color-mix(in srgb, var(--spectrum-violet) 40%, transparent) 35%,
    transparent 70%);
  filter: blur(80px);
  opacity: .9;
  transform: translate3d(50vw, 50vh, 0) translate(-50%, -50%);
}


@keyframes blobDrift1 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(28vw, -8vh) scale(1.18); }
}
@keyframes blobDrift2 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(22vw, -18vh) scale(1.25); }
}
@keyframes blobDrift3 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-20vw, 12vh) scale(1.2); }
}
@keyframes blobDrift4 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-18vw, -16vh) scale(1.15); }
}
@keyframes blobDrift5 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-26vw, 18vh) scale(1.3); }
}
@keyframes blobDrift6 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-24vw, -22vh) scale(1.22); }
}

/* Reduced motion: freeze the ambient drift, keep the field static. */
@media (prefers-reduced-motion: reduce) {
  .blob { animation: none !important; }
}

/* Perf (phones + tablets, About page): the blurred blob-field is pure ambience
   there — pausing its continuous drift removes the single biggest per-frame GPU
   cost on mobile (large-radius blur repaints), while the colour wash stays.
   The cursor-follower orb is dropped since touch devices have no cursor. Also
   release the ~100 permanent compositor layers the bio words hold via
   will-change: at this breakpoint the pinned reveal timeline is off, so they
   never animate. */
@media (max-width: 1024px) {
  .page-about-body .blob { animation: none !important; }
  .page-about-body .blob--cursor { display: none; }
  /* Beat the `html.is-scripted .hero-bio-word` rule that sets will-change. */
  html.is-scripted .page-about-body .hero-bio-word { will-change: auto; }
}

/* Perf: JS adds .anim-off to a [data-anim-scope] section while it is fully
   scrolled out of view (see script.js), pausing every ambient CSS animation
   inside it — the blob-field, floating tiles, glows and rainbows don't burn
   frames when nobody's looking. Only touches animation-play-state, so GSAP
   reveals and CSS transitions are unaffected. */
.anim-off,
.anim-off * { animation-play-state: paused !important; }

/* Left rail of project pills — stays above the hover preview takeover */
.cockpit__rail {
  position: absolute;
  left: var(--pad-x);
  top: 50%;
  transform: translateY(-50%);
  z-index: var(--z-nav);
  transition: opacity .4s var(--ease), transform .5s var(--ease);
}
.cockpit__rail ul { display: flex; flex-direction: column; gap: 8px; }
.cockpit__rail a {
  display: inline-flex; align-items: center;
  height: 34px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -.005em;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background .35s var(--ease), padding .35s var(--ease), border-color .35s var(--ease);
}
.cockpit__rail a:hover {
  background: rgba(255,255,255,.16);
  border-color: rgba(255,255,255,.2);
  padding-right: 22px;
}
.cockpit__rail-all { margin-top: 8px; }
.cockpit__rail-all::after {
  content: "↗";
  margin-left: 8px;
  font-family: var(--f-display);
  font-size: 14px;
  opacity: .7;
}
body.menu-open .cockpit__rail { opacity: 0; pointer-events: none; transform: translate(-12px, -50%); }

/* Small mono hint under the rail so first-time visitors know the pills
   unlock the work. The custom cursor's "VIEW" label reinforces this when
   the cursor enters the rail (see data-cursor="view" in index.php). */
.cockpit__rail-hint {
  display: block;
  margin-top: 18px;
  padding-left: 4px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .42);
  pointer-events: none;
}
.cockpit__rail-hint--touch { display: none; }
@media (hover: none), (pointer: coarse) {
  .cockpit__rail-hint--desktop { display: none; }
  .cockpit__rail-hint--touch { display: inline; }
}
body.cockpit-preview .cockpit__rail-hint,
body.menu-open .cockpit__rail-hint {
  opacity: 0;
  transition: opacity .25s var(--ease);
}

/* Right brand statement — sits above the phrase zone so it does not
   collide with the centered phrase on narrower desktop viewports. */
.cockpit__lede {
  position: absolute;
  right: var(--pad-x);
  top: clamp(120px, 22vh, 220px);
  max-width: 540px;
  z-index: 3;
  text-align: right;
  transition: opacity .4s var(--ease), transform .5s var(--ease);
}
.cockpit__lede p {
  font-size: 17.5px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--paper);
  letter-spacing: -.008em;
  text-wrap: balance;
}
body.menu-open .cockpit__lede { opacity: 0; pointer-events: none; transform: translateX(12px); }

/* Brand statement — "Create boldly. / Exist loudly."
   Centred dead-middle of the cockpit, two lines, bold display.
   Constant rainbow glow that breathes + continuous levitation float.
   Per-letter cursor reactivity cycles through the six rainbow stops. */
.phrase {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;   /* centred on the page, both axes */
  padding: 0 var(--pad-x);
  pointer-events: none;
}

.phrase__core {
  pointer-events: none;
  font-family: var(--f-display);
  font-weight: 800;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .35);   /* keep white crisp over video / gradient */
}

/* Each pair of words shares one line — the medium pair on top, the oversized
   pair below. Within a line the two words are STACKED and crossfade letter by
   letter (CREATE⇄EXIST, BOL⇄LOU). When the two words share a trailing run
   (BOL·DLY / LOU·DLY) that suffix is pulled out as a fixed element that never
   fades or moves. */
.phrase__line {
  display: flex;
  justify-content: center;
  align-items: baseline;
  font-size: clamp(38px, 6.6vw, 110px);
  line-height: .92;
  letter-spacing: -.03em;
  text-transform: uppercase;
  color: #fff;
}
.phrase__line--lg {
  font-size: clamp(64px, 14vw, 220px);
  line-height: .82;
  letter-spacing: -.04em;
}

/* The two crossfading words occupy the same grid cell (same position). Pairs
   that share a trailing run right-align, so that suffix (…DLY) sits in the same
   place in both words and dissolves in place instead of jumping. */
.phrase__swap { display: grid; justify-items: center; }
.phrase__swap > .phrase__w { grid-area: 1 / 1; }
.phrase__swap--end { justify-items: end; }

.phrase__w i {
  display: inline-block;
  font-style: normal;
  will-change: opacity, filter, transform;
}
/* Every letter starts hidden until the loader lifts, so the intro never plays
   behind the loader overlay. */
html.is-scripted .phrase__w i { opacity: 0; }

/* On load: a one-time staggered intro (rise + un-blur) across the whole state-A
   word — every letter, the shared suffix included. Then the crossfade loop takes
   over (its delay waits out the intro) and EVERY letter dissolves: B/L, O/O, L/U
   and the D·L·Y all animate alike. The B-word skips the intro (hidden) and only
   runs the loop. */
body:not(.is-loading) .phrase__w--a i {
  animation:
    heroIn    .7s var(--ease-out) calc(.12s + var(--i, 0) * .06s)   both,
    heroSwapA 11s ease-in-out     calc(1.5s + var(--i, 0) * .15s)   infinite;
}
body:not(.is-loading) .phrase__w--b i {
  animation: heroSwapB 11s ease-in-out calc(1.5s + var(--i, 0) * .15s) infinite;
}

@keyframes heroIn {
  /* Titles just fade in — no rise/blur "expand", per request, so they don't
     appear to bloom open at the moment the logo docks. */
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes heroSwapA {
  0%, 26%  { opacity: 1; filter: blur(0); }
  50%, 76% { opacity: 0; filter: blur(7px); }
  100%     { opacity: 1; filter: blur(0); }
}
@keyframes heroSwapB {
  0%, 26%  { opacity: 0; filter: blur(7px); }
  50%, 76% { opacity: 1; filter: blur(0); }
  100%     { opacity: 0; filter: blur(7px); }
}

/* Fade hidden when the menu drawer is open */
body.menu-open .phrase {
  opacity: 0; pointer-events: none;
  transition: opacity .35s var(--ease);
}

@media (max-width: 720px) {
  .phrase__line    { font-size: clamp(26px, 8vw, 52px); }
  .phrase__line--lg { font-size: clamp(46px, 16vw, 104px); }
}

@media (prefers-reduced-motion: reduce) {
  /* Show state A (Create Boldly) static — no intro, no dissolve. */
  .phrase__w--b { display: none; }
  html.is-scripted .phrase__w--a i,
  body:not(.is-loading) .phrase__w--a i {
    animation: none;
    opacity: 1;
    filter: none;
    transform: none;
  }
}

/* Bottom rainbow stripe */
.cockpit__stripe {
  position: absolute;
  left: var(--pad-x); right: var(--pad-x);
  bottom: 0;
  height: 2px;
  background: var(--rainbow);
  border-radius: 999px;
  transform-origin: left center;
  transform: scaleX(0);
  animation: stripeDraw 1.4s var(--ease-out) 1.2s forwards;
  z-index: 3;
  opacity: .9;
}
@keyframes stripeDraw { to { transform: scaleX(1); } }

/* Tablet & mobile */
@media (max-width: 900px) {
  .cockpit__lede { max-width: 240px; top: clamp(100px, 16vh, 160px); }
  .cockpit__rail a { font-size: 12px; height: 30px; padding: 0 12px; }
}
/* Below 600px the cockpit collapses to a stacked composition: lede pinned
   to the top-left, phrase centered, rail anchored near the bottom.
   All three keep absolute positioning so they don't fight in normal flow. */
@media (max-width: 600px) {
  .cockpit__lede {
    top: clamp(72px, 10vh, 100px);
    right: auto;
    left: var(--pad-x);
    max-width: 80vw;
    text-align: left;
  }
  .cockpit__rail {
    top: auto;
    bottom: clamp(60px, 12vh, 110px);
    transform: none;
  }
  .cockpit__rail ul { gap: 6px; }
  .cockpit__rail-hint { margin-top: 12px; }
}

/* =========================================================
   DRAWER — opens when Menu is clicked
   ========================================================= */
.drawer {
  position: fixed;
  top: 0;
  left: 0; right: 0; bottom: 0;
  z-index: var(--z-drawer);
  padding: clamp(84px, 12vh, 124px) var(--pad-x) clamp(26px, 4.5vh, 46px);
  pointer-events: none;
  opacity: 0;
  transform: translateX(100%);   /* parked off-screen right → slides in to 0 */
  /* Solid frosted background covers whatever page sits behind */
  background: rgba(8, 8, 12, .97);
  backdrop-filter: blur(40px) saturate(160%);
  -webkit-backdrop-filter: blur(40px) saturate(160%);
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  /* Deploys from the right; ease-out-expo departs fast, settles soft. */
  transition: transform .55s var(--ease-out), opacity .3s var(--ease);
}
body.menu-open .drawer { opacity: 1; transform: translateX(0); pointer-events: auto; }

/* Drawer close button — sits top-right of the overlay, mirrors the .bar
   right-side rhythm. Fixed so it stays put while drawer content scrolls. */
.drawer__close {
  position: fixed;
  top: clamp(20px, 3.2vh, 32px);
  right: var(--pad-x);
  z-index: 2;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .14);
  color: var(--paper);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: scale(.92);
  transition:
    opacity .35s var(--ease),
    transform .5s var(--ease-out),
    background .3s var(--ease),
    border-color .3s var(--ease);
}
body.menu-open .drawer__close {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
  transition-delay: .12s;
}
.drawer__close:hover {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .28);
}
.drawer__close:hover .drawer__close-glyph { transform: rotate(90deg); }
.drawer__close:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}
.drawer__close-glyph {
  position: relative;
  width: 14px;
  height: 14px;
  transition: transform .4s var(--ease-out);
}
.drawer__close-glyph::before,
.drawer__close-glyph::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 1.4px;
  background: currentColor;
  border-radius: 1px;
}
.drawer__close-glyph::before { transform: translate(-50%, -50%) rotate(45deg); }
.drawer__close-glyph::after  { transform: translate(-50%, -50%) rotate(-45deg); }
@media (prefers-reduced-motion: reduce) {
  .drawer__close,
  .drawer__close-glyph { transition: none; }
}

/* Hide scrollbar but keep scroll functionality */
.drawer::-webkit-scrollbar { width: 0; height: 0; }
.drawer { scrollbar-width: none; -ms-overflow-style: none; }

.drawer__inner {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  min-height: 100%;
}

/* =========================================================
   DRAWER LIQUID BACKGROUND
   Layered rainbow blobs that drift slowly + a cursor-tracking
   blob that follows the mouse with lerp easing. Mimics the
   "fluid" feel from monopo.london, in the DOLL palette.
   ========================================================= */
.drawer__liquid {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}
body.menu-open .drawer__liquid { opacity: 1; }
/* Vignette overlay: darkens the centre so the menu copy reads cleanly
   on top of the rainbow mixture, while edges keep their colour. */
.drawer__liquid::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 75% 65% at center, rgba(0,0,0,.62) 0%, rgba(0,0,0,.42) 35%, rgba(0,0,0,.15) 65%, transparent 90%);
  pointer-events: none;
}

.drawer-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px) saturate(115%);
  will-change: transform;
  mix-blend-mode: screen;
  opacity: .55;
}
.drawer-blob--1 {
  width: 60vmin; height: 60vmin;
  background: var(--spectrum-blue);
  top: -12%; left: -10%;
  animation: drawerDrift1 22s ease-in-out infinite alternate;
}
.drawer-blob--2 {
  width: 55vmin; height: 55vmin;
  background: var(--spectrum-pink);
  top: -8%; right: -10%;
  animation: drawerDrift2 26s ease-in-out infinite alternate;
}
.drawer-blob--3 {
  width: 65vmin; height: 65vmin;
  background: var(--spectrum-mint);
  bottom: -18%; left: 15%;
  animation: drawerDrift3 24s ease-in-out infinite alternate;
}
.drawer-blob--4 {
  width: 50vmin; height: 50vmin;
  background: var(--spectrum-orange);
  bottom: -5%; right: -8%;
  animation: drawerDrift4 28s ease-in-out infinite alternate;
}
.drawer-blob--5 {
  width: 45vmin; height: 45vmin;
  background: var(--spectrum-yellow);
  top: 35%; left: 38%;
  animation: drawerDrift5 20s ease-in-out infinite alternate;
}
.drawer-blob--6 {
  width: 50vmin; height: 50vmin;
  background: var(--spectrum-violet);
  bottom: 25%; left: 0%;
  animation: drawerDrift6 30s ease-in-out infinite alternate;
}
/* Cursor-tracking blob: position driven by --drawer-mx / --drawer-my from JS */
.drawer-blob--cursor {
  width: 42vmin; height: 42vmin;
  background: radial-gradient(circle, #8A5BFF 0%, #E14FB8 45%, transparent 75%);
  filter: blur(80px) saturate(130%);
  left: 0; top: 0;
  transform: translate3d(
    calc(var(--drawer-mx, 50vw) - 50%),
    calc(var(--drawer-my, 50vh) - 50%),
    0
  );
  mix-blend-mode: screen;
  opacity: .5;
}

@keyframes drawerDrift1 {
  0%   { transform: translate3d(0, 0, 0)        scale(1); }
  100% { transform: translate3d(28vw, 18vh, 0)  scale(1.18); }
}
@keyframes drawerDrift2 {
  0%   { transform: translate3d(0, 0, 0)        scale(1); }
  100% { transform: translate3d(-22vw, 26vh, 0) scale(1.22); }
}
@keyframes drawerDrift3 {
  0%   { transform: translate3d(0, 0, 0)        scale(1); }
  100% { transform: translate3d(30vw, -22vh, 0) scale(1.15); }
}
@keyframes drawerDrift4 {
  0%   { transform: translate3d(0, 0, 0)        scale(1); }
  100% { transform: translate3d(-26vw, -18vh, 0) scale(1.2); }
}
@keyframes drawerDrift5 {
  0%   { transform: translate3d(0, 0, 0)        scale(1); }
  100% { transform: translate3d(-18vw, -28vh, 0) scale(1.3); }
}
@keyframes drawerDrift6 {
  0%   { transform: translate3d(0, 0, 0)        scale(1); }
  100% { transform: translate3d(24vw, -20vh, 0) scale(1.18); }
}

@media (prefers-reduced-motion: reduce) {
  .drawer-blob { animation: none !important; }
  .drawer-blob--cursor { transition: none; }
}

/* =========================================================
   SHARED HOVER PREVIEW — full-viewport takeover when hovering
   any drawer link or cockpit rail pill. Background fills the
   screen, name renders huge in centre, secondary detail card
   sits bottom-right with service tags below it.
   ========================================================= */
.preview {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: var(--z-preview);
}
.preview__card {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .5s var(--ease);
  color: var(--paper);
}
.preview__card.is-active { opacity: 1; }

.preview__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.preview__bg::after {
  /* Soft vignette top + bottom to keep text legible */
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.18) 0%, transparent 22%, transparent 78%, rgba(0,0,0,.32) 100%);
}

.preview__caption {
  position: absolute;
  top: clamp(110px, 18vh, 200px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
  max-width: 320px;
  font-weight: 400;
  color: var(--paper);
  letter-spacing: -.005em;
}

.preview__name {
  position: absolute;
  top: 56%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(72px, 11vw, 196px);
  line-height: .92;
  letter-spacing: -.04em;
  white-space: nowrap;
  text-align: center;
  color: var(--paper);
}

.preview__detail {
  position: absolute;
  right: var(--pad-x);
  bottom: clamp(110px, 16vh, 220px);
  z-index: 2;
  width: clamp(180px, 20vw, 320px);
  aspect-ratio: 9 / 16;
  border-radius: var(--rounded-card);
  box-shadow:
    0 30px 70px rgba(0, 0, 0, .45),
    0 0 0 1px rgba(255, 255, 255, .06);
}

.preview__tags {
  position: absolute;
  right: var(--pad-x);
  bottom: clamp(48px, 7vh, 90px);
  z-index: 2;
  width: clamp(180px, 20vw, 320px);
  font-size: 13px;
  line-height: 1.4;
  text-align: right;
  color: var(--paper);
  opacity: .85;
  letter-spacing: -.005em;
}

@media (max-width: 720px) {
  .preview__caption { top: clamp(96px, 14vh, 140px); font-size: 12px; max-width: 260px; }
  .preview__name { font-size: clamp(48px, 14vw, 80px); }
  .preview__detail { width: clamp(120px, 32vw, 200px); bottom: clamp(80px, 14vh, 140px); }
  .preview__tags { font-size: 11px; width: clamp(140px, 36vw, 220px); }
}

/* =========================================================
   PREVIEW LAYOUT VARIANTS — each project gets a distinct
   composition, alternating positions to feel editorial,
   not templated. Active on desktop only.
   ========================================================= */
@media (min-width: 721px) {
  /* Layout B — name pushed right, detail card on the left (clear of the rail).
     Applies to cards 2, 5, 8, 11 (about, imox, latorre, trent). */
  .preview__card:nth-of-type(3n+2) .preview__name {
    left: auto;
    right: var(--pad-x);
    transform: translateY(-50%);
    text-align: right;
    white-space: normal;
    max-width: 60vw;
  }
  .preview__card:nth-of-type(3n+2) .preview__detail {
    right: auto;
    left: clamp(26%, 28vw, 34vw);
  }
  .preview__card:nth-of-type(3n+2) .preview__tags {
    right: auto;
    left: clamp(26%, 28vw, 34vw);
    text-align: left;
  }

  /* Layout C — large name anchored bottom-right, detail card top-right
     (under the bar), caption left-aligned. Applies to cards 3, 6, 9, 12
     (contact, beaura, markcira, all). */
  .preview__card:nth-of-type(3n) .preview__name {
    top: auto;
    left: auto;
    bottom: clamp(60px, 11vh, 130px);
    right: var(--pad-x);
    transform: none;
    text-align: right;
    max-width: 70vw;
  }
  .preview__card:nth-of-type(3n) .preview__detail {
    bottom: auto;
    top: clamp(130px, 16vh, 200px);
    right: var(--pad-x);
    width: clamp(160px, 18vw, 280px);
    aspect-ratio: 4 / 3;
  }
  .preview__card:nth-of-type(3n) .preview__caption {
    left: auto;
    right: var(--pad-x);
    transform: none;
    text-align: right;
    top: 50%;
    max-width: 260px;
  }
  .preview__card:nth-of-type(3n) .preview__tags {
    bottom: auto;
    top: calc(clamp(130px, 16vh, 200px) + clamp(160px, 18vw, 280px) * 3 / 4 + 16px);
    right: var(--pad-x);
  }
}

/* Dim non-active drawer items when previewing from the menu */
body.drawer-preview .drawer__link,
body.drawer-preview .drawer__projects a {
  opacity: .32;
  transition: opacity .35s var(--ease);
}
body.drawer-preview .drawer__link:hover,
body.drawer-preview .drawer__projects a:hover,
body.drawer-preview .drawer__link.is-active,
body.drawer-preview .drawer__projects a.is-active {
  opacity: 1;
}

/* =========================================================
   DRAWER PREVIEW MODE — collapse the full takeover into a
   small centered card with just background + name.
   Cockpit-mode (full takeover) layout stays untouched.
   ========================================================= */
body.drawer-preview .preview {
  inset: auto;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(280px, 36vw, 480px);
  aspect-ratio: 3 / 4;
}
body.drawer-preview .preview__card {
  border-radius: var(--rounded-card);
  overflow: hidden;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, .45),
    0 0 0 1px rgba(255, 255, 255, .04);
}
body.drawer-preview .preview__caption,
body.drawer-preview .preview__detail,
body.drawer-preview .preview__tags {
  display: none;
}
/* Force the project name into the bottom-left of the small card,
   overriding every layout variant. */
body.drawer-preview .preview__name,
body.drawer-preview .preview__card:nth-of-type(3n+2) .preview__name,
body.drawer-preview .preview__card:nth-of-type(3n) .preview__name {
  position: absolute;
  top: auto;
  bottom: clamp(18px, 5%, 32px);
  left: clamp(18px, 5%, 32px);
  right: clamp(18px, 5%, 32px);
  transform: none;
  font-size: clamp(22px, 2.6vw, 36px);
  line-height: 1.05;
  letter-spacing: -.025em;
  white-space: normal;
  text-align: left;
  max-width: none;
}

/* Cockpit rail: fade the centre phrase / lede during preview,
   but keep every pill at full opacity (MetaLab behaviour).
   When a preview is active, the pills get a darker, more solid
   background so they stay highly legible on any vibrant project colour. */
.cockpit__rail a,
.phrase {
  transition: opacity .35s var(--ease), background .35s var(--ease), padding .35s var(--ease), border-color .35s var(--ease);
}
body.cockpit-preview .phrase,
body.cockpit-preview .cockpit__lede {
  opacity: 0;
  pointer-events: none;
}
body.cockpit-preview .cockpit__rail {
  z-index: calc(var(--z-preview) + 1);
}
body.cockpit-preview .cockpit__rail a {
  background: rgba(15, 15, 25, .48);
  border-color: rgba(255, 255, 255, .18);
}
body.cockpit-preview .cockpit__rail a:hover {
  background: rgba(15, 15, 25, .72);
  border-color: rgba(255, 255, 255, .32);
}

@media (max-width: 900px) {
  .preview { width: clamp(220px, 38vw, 360px); }
}
/* Mobile preview: the fullscreen takeover stays on, activated on tap
   (see script.js touch handling on the rail). Rail is z-elevated above
   the preview during cockpit-preview state so users can switch between
   projects or tap outside to dismiss. */
@media (max-width: 720px) {
  /* The scrim only belongs during an ACTIVE preview takeover — otherwise the
     panel is an invisible, transparent overlay. Without this gate its dark
     background showed as a permanent half-screen bar down the middle. */
  body.cockpit-preview .preview,
  body.drawer-preview .preview {
    background: rgba(0, 0, 0, .35);
  }
}

/* Centered drawer layout — everything on the page sits in the middle */
.drawer__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;      /* LEFT-aligned per the reference */
  justify-content: center;      /* the menu block sits in the vertical middle */
  text-align: left;
  gap: clamp(24px, 4vh, 48px);
  min-height: 100%;
}

.drawer__main {
  display: flex; flex-direction: column;
  align-items: flex-start;      /* left */
  gap: clamp(4px, 0.8vh, 12px);
  width: 100%;
}

/* Big nav links — left-aligned, bold, slide in from the RIGHT (staggered). */
.drawer__link {
  display: inline-block;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(38px, 11vw, 72px);
  line-height: 1.04;
  letter-spacing: -.03em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #fff;
  position: relative;
  padding: 2px 0;
  transform: translateX(48px);   /* enters from the right */
  opacity: 0;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .55), 0 0 1px rgba(0, 0, 0, .8);
  transition: transform .6s var(--ease-out), opacity .5s var(--ease-out), color .25s var(--ease);
}
/* Menu items stay white (official palette — no flat accent colour). */
@media (hover: hover) { .drawer__link:hover { opacity: .78; } }

body.menu-open .drawer__link { transform: translateX(0); opacity: 1; }
body.menu-open .drawer__link:nth-child(1) { transition-delay: .18s; }
body.menu-open .drawer__link:nth-child(2) { transition-delay: .26s; }
body.menu-open .drawer__link:nth-child(3) { transition-delay: .34s; }
body.menu-open .drawer__link:nth-child(4) { transition-delay: .42s; }

/* Labels hidden — the visual rhythm comes from spacing between sections */
.drawer__label { display: none; }

/* Case study pills — wrap and centre, colour by position on hover */
.drawer__projects {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 10px;
  max-width: 720px;
  margin-top: clamp(36px, 5vh, 64px);
}
.drawer__projects li {
  transform: translateY(12px);
  opacity: 0;
  transition: transform .55s var(--ease-out), opacity .5s var(--ease-out);
}
.drawer__projects a {
  display: inline-flex; align-items: center;
  height: 36px;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.12);
  color: var(--paper);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -.005em;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform .35s var(--ease-out), background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
/* Each project gets its own rainbow accent — coloured pill on hover */
.drawer__projects li:nth-child(9n+1) a:hover { background: var(--spectrum-blue); border-color: #3B6FFF; color: #fff; box-shadow: 0 8px 24px rgba(59,111,255,.4); }
.drawer__projects li:nth-child(9n+2) a:hover { background: var(--spectrum-violet); border-color: #8A5BFF; color: #fff; box-shadow: 0 8px 24px rgba(138,91,255,.4); }
.drawer__projects li:nth-child(9n+3) a:hover { background: var(--spectrum-pink); border-color: #E14FB8; color: #fff; box-shadow: 0 8px 24px rgba(225,79,184,.4); }
.drawer__projects li:nth-child(9n+4) a:hover { background: var(--spectrum-orange); border-color: #FF7A4F; color: #fff; box-shadow: 0 8px 24px rgba(255,122,79,.4); }
.drawer__projects li:nth-child(9n+5) a:hover { background: var(--spectrum-yellow); border-color: #FFD24F; color: #1a1a1a; box-shadow: 0 8px 24px rgba(255,210,79,.4); }
.drawer__projects li:nth-child(9n+6) a:hover { background: var(--spectrum-mint); border-color: #A2FFD8; color: #1a1a1a; box-shadow: 0 8px 24px rgba(162,255,216,.4); }
.drawer__projects li:nth-child(9n+7) a:hover { background: var(--spectrum-blue); border-color: #3B6FFF; color: #fff; box-shadow: 0 8px 24px rgba(59,111,255,.4); }
.drawer__projects li:nth-child(9n+8) a:hover { background: var(--spectrum-pink); border-color: #E14FB8; color: #fff; box-shadow: 0 8px 24px rgba(225,79,184,.4); }
.drawer__projects li:nth-child(9n+9) a:hover { background: var(--spectrum-mint); border-color: #A2FFD8; color: #1a1a1a; box-shadow: 0 8px 24px rgba(162,255,216,.4); }
.drawer__projects a:hover {
  transform: translateY(-3px) scale(1.06);
}
/* Dim others while hovering */
.drawer__projects:hover a { opacity: .4; }
.drawer__projects a:hover { opacity: 1; }

/* Hide the centred preview card — we want the menu itself to be the experience */
body.drawer-preview .preview { display: none; }
body.menu-open .drawer__projects li { opacity: 1; transform: translateY(0); }
body.menu-open .drawer__projects li:nth-child(1) { transition-delay: .50s; }
body.menu-open .drawer__projects li:nth-child(2) { transition-delay: .54s; }
body.menu-open .drawer__projects li:nth-child(3) { transition-delay: .58s; }
body.menu-open .drawer__projects li:nth-child(4) { transition-delay: .62s; }
body.menu-open .drawer__projects li:nth-child(5) { transition-delay: .66s; }
body.menu-open .drawer__projects li:nth-child(6) { transition-delay: .70s; }
body.menu-open .drawer__projects li:nth-child(7) { transition-delay: .74s; }
body.menu-open .drawer__projects li:nth-child(8) { transition-delay: .78s; }
body.menu-open .drawer__projects li:nth-child(9) { transition-delay: .82s; }

.drawer__news {
  display: flex; flex-direction: column;
  gap: 14px;
  align-self: start;
  max-height: 100%;
  overflow-y: auto;
}
.drawer__news .drawer__label { transition-delay: .35s; }

.news-card {
  position: relative;
  padding: 16px 18px 18px;
  border-radius: 14px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transform: translateY(16px);
  opacity: 0;
  transition: transform .65s var(--ease-out), opacity .55s var(--ease-out), background .35s var(--ease);
  cursor: pointer;
}
.news-card:hover { background: rgba(255,255,255,.1); }
.news-card__date {
  display: block;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .15em;
  text-transform: uppercase;
  opacity: .55;
  margin-bottom: 8px;
}
.news-card__title {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -.005em;
  color: var(--paper);
  max-width: 36ch;
}
body.menu-open .news-card { opacity: 1; transform: translateY(0); }
body.menu-open .news-card:nth-of-type(1) { transition-delay: .42s; }
body.menu-open .news-card:nth-of-type(2) { transition-delay: .48s; }
body.menu-open .news-card:nth-of-type(3) { transition-delay: .54s; }
body.menu-open .news-card:nth-of-type(4) { transition-delay: .60s; }

@media (max-width: 760px) {
  .drawer__inner { grid-template-columns: 1fr; gap: 32px; overflow-y: auto; }
  .drawer__news { max-height: none; }
}

.hero__meta {
  display: flex; justify-content: space-between;
  position: relative; z-index: 2;
}
.kicker {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: .15em;
  text-transform: uppercase;
  opacity: .7;
}
.hero__meta-col--right { text-align: right; }

.hero__title {
  position: relative; z-index: 2;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(56px, 13vw, 220px);
  line-height: .94;
  letter-spacing: -0.032em;
  color: var(--paper);
  text-wrap: balance;
}
.line { display: block; overflow: hidden; padding-bottom: 4px; }
.line__inner {
  display: block;
  transform: translateY(110%);
  opacity: 0;
}
body:not(.is-loading) .hero__title .line__inner {
  animation: lineRise 1.1s var(--ease-out) forwards;
}
.hero__title .line:nth-child(1) .line__inner { animation-delay: .15s; }
.hero__title .line:nth-child(2) .line__inner { animation-delay: .28s; }
.hero__title .line:nth-child(3) .line__inner { animation-delay: .41s; }
@keyframes lineRise { to { transform: translateY(0); opacity: 1; } }

.hero__foot {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: end;
}
.hero__lede {
  max-width: 460px;
  display: flex; gap: 12px;
  font-size: 14px; line-height: 1.6;
  color: var(--muted);
}
.hero__lede strong { color: var(--paper); font-weight: 500; }
.hero__lede .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--rainbow);
  flex-shrink: 0; margin-top: 8px;
}

/* Subtle rainbow ambient light bottom-right */
.hero__ambient {
  position: absolute;
  bottom: -40%; right: -10%;
  width: 80vw; height: 80vw;
  max-width: 1100px; max-height: 1100px;
  background: radial-gradient(circle at center,
    rgba(225, 79, 184, .18) 0%,
    rgba(138, 91, 255, .12) 24%,
    rgba(59, 111, 255, .08) 44%,
    transparent 62%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 1;
  animation: ambientDrift 22s var(--ease) infinite alternate;
}
@keyframes ambientDrift {
  to { transform: translate(-6%, -8%); }
}

/* Thin rainbow stripe at the bottom of the hero — brand motif */
.hero__stripe {
  position: absolute;
  left: var(--pad-x); right: var(--pad-x);
  bottom: 0;
  height: 2px;
  background: var(--rainbow);
  border-radius: 999px;
  transform-origin: left center;
  transform: scaleX(0);
  animation: stripeDraw 1.4s var(--ease-out) 1.2s forwards;
  z-index: 2;
  opacity: .9;
}
@keyframes stripeDraw { to { transform: scaleX(1); } }

/* =========================================================
   MARQUEE  — SF Pro Display medium sweep
   ========================================================= */
.marquee {
  position: relative;
  border-bottom: 1px solid var(--line);
  padding: 32px 0;
  overflow: hidden;
  background: var(--ink);
}
.marquee__track {
  display: flex; gap: clamp(40px, 6vw, 80px);
  white-space: nowrap;
  font-family: var(--f-display);
  font-size: clamp(40px, 7vw, 96px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.028em;
  width: max-content;
  animation: marqueeRun 42s linear infinite;
}
.marquee__dot {
  align-self: center;
  font-size: .35em;
  opacity: .55;
  background: var(--rainbow);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 400;
}
@keyframes marqueeRun {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* =========================================================
   GENERIC SECTION HEAD
   ========================================================= */
.section-head {
  padding: clamp(80px, 12vh, 160px) var(--pad-x) clamp(48px, 6vh, 80px);
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
.section-head__index {
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: .18em;
  text-transform: uppercase;
  opacity: .6;
}
.section-head__title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(36px, 7vw, 112px);
  line-height: .96;
  letter-spacing: -.028em;
  max-width: 18ch;
}
.section-head__lede {
  font-size: 15px;
  line-height: 1.6;
  max-width: 56ch;
  color: var(--muted);
}

.section-head--light .section-head__index { opacity: .55; color: var(--ink); }

/* =========================================================
   WORK GRID
   ========================================================= */
.work {
  position: relative;
  padding-bottom: clamp(80px, 10vh, 160px);
}
.grid {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(24px, 4vw, 56px) clamp(20px, 3vw, 40px);
  align-items: end;
}

.card {
  display: block;
  position: relative;
  color: var(--paper);
}
.card__media {
  position: relative;
  overflow: hidden;
  background: var(--ink-2);
  will-change: transform;
}
.card__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(0,0,0,.3));
  pointer-events: none;
  opacity: 0;
  transition: opacity .6s var(--ease);
}
.card__media svg {
  width: 100%; height: 100%; display: block;
  transition: transform 1.4s var(--ease-out), filter .8s var(--ease);
  transform: scale(1.02);
}
.card:hover .card__media svg { transform: scale(1.08); }
.card:hover .card__media::after { opacity: 1; }

/* Rainbow line that draws under each project title on hover */
.card__info {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 18px;
  padding: 22px 2px 0;
  border-top: 1px solid var(--line);
  margin-top: 22px;
  position: relative;
  transition: border-color .4s var(--ease);
}
.card__info::before {
  content: "";
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 2px;
  background: var(--rainbow);
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .8s var(--ease-out);
}
.card:hover .card__info::before { transform: scaleX(1); }

.card__num {
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: .15em;
  opacity: .55;
}
.card__title {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(20px, 2.3vw, 34px);
  line-height: 1.15;
  letter-spacing: -.018em;
}
.card__tags {
  display: flex; gap: 14px;
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .65;
}
.card__tags li + li { position: relative; padding-left: 14px; }
.card__tags li + li::before {
  content: ""; position: absolute; left: 0; top: 50%;
  width: 4px; height: 4px; border-radius: 50%;
  background: currentColor; transform: translateY(-50%); opacity: .5;
}

/* Asymmetric placement */
.card--xl      { grid-column: 1 / span 7; }
.card--xl + .card--md { grid-column: 9 / span 4; }
.card--wide    { grid-column: 1 / span 8; }
.card--sq      { grid-column: 9 / span 4; }
.card--tall    { grid-column: 1 / span 4; }
.card--tall + .card--xl { grid-column: 6 / span 7; }

.card--offset  { margin-top: clamp(40px, 8vh, 120px); }

.card--xl  .card__media { aspect-ratio: 4 / 5; }
.card--md  .card__media { aspect-ratio: 3 / 4; }
.card--wide .card__media { aspect-ratio: 16 / 10; }
.card--sq  .card__media { aspect-ratio: 1 / 1; }
.card--tall .card__media { aspect-ratio: 5 / 7; }

.card--right { align-self: end; }
.card--right .card__info { grid-template-columns: auto 1fr auto; }

@media (max-width: 900px) {
  .grid { grid-template-columns: 1fr; gap: 56px; }
  .card,
  .card--xl, .card--md, .card--wide, .card--sq, .card--tall,
  .card--xl + .card--md, .card--tall + .card--xl { grid-column: 1 / -1; }
  .card--offset { margin-top: 0; }
}

.more {
  display: flex; align-items: center; gap: 24px;
  max-width: var(--maxw);
  margin: clamp(60px, 10vh, 120px) auto 0;
  padding: 0 var(--pad-x);
  font-family: var(--f-mono);
  font-size: 12px; letter-spacing: .15em;
  text-transform: uppercase;
}
.more__line {
  flex: 1; height: 1px; background: var(--line);
  position: relative;
}
.more__line::after {
  content: ""; position: absolute; inset: 0;
  background: var(--rainbow);
  transform: scaleX(0); transform-origin: right;
  transition: transform .8s var(--ease-out);
}
.more:hover .more__line::after { transform: scaleX(1); transform-origin: left; }
.more__arrow {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 20px;
  transition: transform .4s var(--ease);
}
.more:hover .more__arrow { transform: translate(4px, -4px); }

/* =========================================================
   ABOUT  (cream contrast section)
   ========================================================= */
.about {
  background: var(--paper-2);
  color: var(--ink);
  position: relative;
  padding-bottom: clamp(80px, 10vh, 160px);
}
.about__inner { max-width: var(--maxw); margin: 0 auto; }
.about__inner .section-head { padding-bottom: clamp(32px, 4vh, 56px); color: var(--ink); }

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 5vw, 96px);
  padding: 0 var(--pad-x);
  align-items: start;
}
.about__portrait {
  position: relative;
  aspect-ratio: 3 / 4;
  background: var(--paper-3);
  overflow: hidden;
}
.about__portrait svg { width: 100%; height: 100%; }
.about__caption {
  position: absolute; bottom: 16px; left: 16px;
  font-family: var(--f-mono);
  font-size: 10px; letter-spacing: .15em;
  text-transform: uppercase;
  background: var(--paper-2);
  padding: 6px 10px;
  border: 1px solid var(--line-d);
}

.about__body { padding-top: 12px; }
.about__intro {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(26px, 3vw, 46px);
  line-height: 1.18;
  letter-spacing: -.022em;
  margin-bottom: 32px;
  max-width: 24ch;
  text-wrap: balance;
}
.about__intro strong { font-weight: 700; }
.about__copy {
  font-size: 15px; line-height: 1.7;
  max-width: 56ch;
  color: rgba(0,0,0,.72);
  margin-bottom: 56px;
}

.about__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 28px 0;
  border-top: 1px solid var(--line-d);
  border-bottom: 1px solid var(--line-d);
  margin-bottom: 40px;
}
.about__stats dt {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(36px, 4.2vw, 60px);
  line-height: 1;
  letter-spacing: -.028em;
}
.about__stats dd {
  font-family: var(--f-mono);
  font-size: 10px; letter-spacing: .15em;
  text-transform: uppercase;
  opacity: .55;
  margin-top: 8px;
}
@media (max-width: 720px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__stats { grid-template-columns: repeat(2, 1fr); }
}

.about__press {
  display: grid; gap: 0;
}
.about__press li {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 16px 0;
  border-top: 1px solid var(--line-d);
  font-size: 14px;
  font-weight: 400;
}
.about__press li:last-child { border-bottom: 1px solid var(--line-d); }
.about__press i {
  font-style: normal;
  font-family: var(--f-mono);
  font-size: 11px;
  opacity: .55;
  letter-spacing: .1em;
  font-weight: 400;
}

/* Override hl underline color/animation when on light bg to stay vibrant */
.about .hl::after { animation: hlDraw 1.1s var(--ease-out) both; }

/* =========================================================
   SERVICES
   ========================================================= */
.services {
  position: relative;
  padding-bottom: clamp(40px, 6vh, 80px);
}
.services__list {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  border-top: 1px solid var(--line);
}
.service {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 5fr) minmax(0, 5fr) 32px;
  gap: clamp(20px, 3vw, 56px);
  align-items: center;
  padding: clamp(28px, 4vh, 44px) 0;
  border-bottom: 1px solid var(--line);
  transition: padding .5s var(--ease), color .4s var(--ease);
  isolation: isolate;
}
.service::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--paper);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform .6s var(--ease-out);
  z-index: -1;
}
.service::after {
  content: "";
  position: absolute; left: 0; right: 0; top: 0;
  height: 2px;
  background: var(--rainbow);
  transform: scaleX(0); transform-origin: left;
  transition: transform .6s var(--ease-out) .05s;
}
.service:hover { color: var(--ink); padding-left: 28px; padding-right: 28px; }
.service:hover::before { transform: scaleY(1); transform-origin: top; }
.service:hover::after  { transform: scaleX(1); }

.service__num {
  font-family: var(--f-mono);
  font-size: 12px; letter-spacing: .15em;
  opacity: .55;
}
.service__name {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(30px, 5.2vw, 88px);
  line-height: .98;
  letter-spacing: -.03em;
}
.service__desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 44ch;
  transition: color .4s var(--ease);
}
.service:hover .service__desc { color: rgba(0,0,0,.7); }
.service__arrow {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 28px;
  transition: transform .4s var(--ease);
}
.service:hover .service__arrow { transform: translate(8px, -8px); }

@media (max-width: 900px) {
  .service {
    grid-template-columns: 32px 1fr 28px;
    gap: 16px;
  }
  .service__desc { grid-column: 2 / 4; max-width: none; }
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact {
  position: relative;
  padding: clamp(80px, 14vh, 200px) var(--pad-x) clamp(60px, 8vh, 120px);
  overflow: hidden;
}
.contact::before {
  content: "";
  position: absolute; inset: -10% -10% auto auto;
  width: 60vw; height: 60vw;
  max-width: 900px; max-height: 900px;
  background: radial-gradient(circle at center,
    rgba(225, 79, 184, .16) 0%,
    rgba(138, 91, 255, .08) 40%,
    transparent 65%);
  filter: blur(40px);
  pointer-events: none;
}
.contact__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  gap: clamp(28px, 4vh, 56px);
  position: relative; z-index: 1;
}
.contact__title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(64px, 13vw, 220px);
  line-height: .92;
  letter-spacing: -.036em;
}

.contact__mail {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(28px, 3.6vw, 56px);
  letter-spacing: -.02em;
  line-height: 1;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
  width: fit-content;
}
.contact__mail svg {
  transition: transform .4s var(--ease);
}
.contact__mail:hover svg { transform: translate(4px, -4px); }
.contact__mail::before,
.contact__mail::after {
  content: ""; position: absolute; left: 0; right: 0;
  height: 2px; border-radius: 999px;
  background: var(--rainbow);
  transform: scaleX(0); transform-origin: right;
  transition: transform .6s var(--ease-out);
}
.contact__mail::before { top: -1px; }
.contact__mail::after  { bottom: -1px; transition-delay: .05s; }
.contact__mail:hover::before,
.contact__mail:hover::after { transform: scaleX(1); transform-origin: left; }

.contact__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 56px);
  padding-top: clamp(28px, 4vh, 56px);
  border-top: 1px solid var(--line);
}
.contact__cols p { font-size: 14px; line-height: 1.6; color: var(--muted); max-width: 32ch; }
.contact__cols strong { color: var(--paper); font-weight: 500; }
.contact__label {
  display: block;
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: .18em;
  text-transform: uppercase;
  opacity: .55;
  margin-bottom: 14px;
}
.contact__social li { border-bottom: 1px solid var(--line); }
.contact__social a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0;
  font-size: 15px;
  font-weight: 400;
  transition: padding .4s var(--ease);
  position: relative;
}
.contact__social a::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--rainbow);
  transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--ease-out);
}
.contact__social a:hover { padding-left: 8px; }
.contact__social a:hover::after { transform: scaleX(1); transform-origin: left; }
.contact__social i {
  font-style: normal;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 18px;
  transition: transform .3s var(--ease);
}
.contact__social a:hover i { transform: translate(4px, -4px); }

@media (max-width: 720px) {
  .contact__cols { grid-template-columns: 1fr; }
}

/* =========================================================
   FOOTER
   ========================================================= */
.foot {
  position: relative;
  padding: 32px var(--pad-x) 0;
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.foot__row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: .15em;
  text-transform: uppercase;
  opacity: .75;
}
.foot__col--right { text-align: right; }
.foot__col--center { text-align: center; }
.foot__time { display: inline-flex; gap: 8px; }
.foot__back {
  display: inline-flex; align-items: center; gap: 8px;
  transition: color .3s var(--ease);
}
.foot__back i {
  font-style: normal;
  transition: transform .35s var(--ease);
}
.foot__back:hover i { transform: translateY(-4px); }

.foot__mega {
  margin-top: clamp(40px, 8vh, 96px);
  margin-left: -2vw;
  margin-right: -2vw;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  user-select: none;
  line-height: .8;
  padding-bottom: 8px;
}
.foot__mega .doll { color: var(--paper); }

@media (max-width: 720px) {
  .foot__row { grid-template-columns: 1fr; gap: 8px; text-align: center; }
  .foot__col--right, .foot__col--center { text-align: center; }
}

/* =========================================================
   REVEAL UTILITY
   Hidden state is gated on `.is-scripted` on <html> so headless
   crawlers, no-JS clients, and prerender bots see the content
   at rest. JS adds the class synchronously on load; if it never
   fires, [data-reveal] elements stay visible.
   ========================================================= */
html.is-scripted [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out);
}
html.is-scripted [data-reveal].is-in {
  opacity: 1;
  transform: translateY(0);
}

/* Tame text reveal inside contact title */
.contact__title .line__inner {
  display: block;
  transform: translateY(110%);
  transition: transform 1s var(--ease-out);
}
.contact__title.is-in .line__inner { transform: translateY(0); }
.contact__title .line:nth-child(2) .line__inner { transition-delay: .08s; }
.contact__title .line:nth-child(3) .line__inner { transition-delay: .16s; }

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .line__inner { opacity: 1 !important; transform: none !important; }
  /* Reduce, don't remove. Keep the brand alive with a gentle, vestibular-safe
     opacity fade on scroll reveals — no translate, no movement. This is the one
     motion we intentionally preserve under prefers-reduced-motion so the site
     doesn't read as dead. */
  html.is-scripted [data-reveal] {
    opacity: 0;
    transform: none !important;
    transition: opacity .7s ease !important;
    transition-duration: .7s !important;
  }
  html.is-scripted [data-reveal].is-in { opacity: 1 !important; }
}

/* =========================================================
   PAGE: WHAT I DO
   Editorial, large display type, numbered service rows with
   per-service rainbow accent colour and smooth scroll reveals.
   ========================================================= */
.page-what-body {
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 100svh;
  background: var(--ink);
}
.page-what {
  position: relative;
  min-height: 100svh;
  padding-bottom: clamp(40px, 6vh, 80px);
}

/* ── Hero ───────────────────────────────────────────────── */
.what-hero {
  padding: clamp(140px, 22vh, 240px) var(--pad-x) clamp(80px, 12vh, 160px);
  max-width: var(--maxw);
  margin: 0 auto;
  position: relative;
}
.what-hero::after {
  /* Subtle ambient glow behind the hero text */
  content: "";
  position: absolute;
  top: 10%; right: -15%;
  width: 60vw; max-width: 800px; aspect-ratio: 1 / 1;
  background:
    radial-gradient(circle at center, rgba(225, 79, 184, .18), transparent 55%),
    radial-gradient(circle at 30% 70%, rgba(138, 91, 255, .12), transparent 60%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}
.what-hero > * { position: relative; z-index: 1; }

/* =========================================================
   GLOBAL FOOTER — present on every sub-page.
   Two-zone layout: big CTA + email on the left, three meta
   columns (Studio · Elsewhere · Navigate) on the right.
   Animated rainbow bar in between, copyright + circular
   TOP↑ button at the bottom.
   ========================================================= */
.site-foot {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  border-top: 1px solid var(--line);
  overflow: hidden;
}

/* ── Small DOLL mark anchored top-left ───────────────────── */
.site-foot__mark {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(40px, 6vh, 80px) var(--pad-x) 0;
}
.site-foot__mark .doll { color: var(--paper); }

/* ── Main two-zone grid ──────────────────────────────────── */
.site-foot__main {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(40px, 6vh, 80px) var(--pad-x) clamp(80px, 14vh, 180px);
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.5fr);
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "cta resume"
    "cta links";
  column-gap: clamp(40px, 6vw, 120px);
  row-gap: clamp(36px, 7vh, 80px);
  align-items: end;
  isolation: isolate;
}
.site-foot__cta-zone  { grid-area: cta;  align-self: end; }
.site-foot__meta-cols { grid-area: links; align-self: end; }
.site-foot__main::before {
  /* Soft ambient glow behind the CTA */
  content: "";
  position: absolute;
  bottom: 0; left: -8%;
  width: 50vw; max-width: 640px; aspect-ratio: 1 / 1;
  background:
    radial-gradient(circle at center, rgba(225, 79, 184, .18), transparent 55%),
    radial-gradient(circle at 30% 70%, rgba(138, 91, 255, .12), transparent 60%);
  filter: blur(90px);
  pointer-events: none;
  z-index: -1;
}

/* ── Left zone: big CTA + blurb + email ──────────────────── */
.site-foot__cta-zone { display: flex; flex-direction: column; gap: clamp(28px, 4vh, 48px); }

.site-foot__cta {
  display: inline-block;
  text-decoration: none;
  color: var(--paper);
  width: fit-content;
}
.site-foot__cta-big {
  display: block;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(56px, 9vw, 160px);
  line-height: .92;
  letter-spacing: -.04em;
  color: var(--paper);
  transition: transform .5s var(--ease-out);
  text-wrap: balance;
}
.site-foot__cta:hover .site-foot__cta-big { transform: translateY(-4px); }

.site-foot__cta-blurb {
  font-family: var(--f-sans);
  font-size: clamp(13px, 1.1vw, 15px);
  line-height: 1.55;
  color: var(--paper);
  opacity: .55;
  max-width: 32ch;
  letter-spacing: -.005em;
}

.site-foot__cta-email {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--f-mono);
  font-size: clamp(16px, 1.6vw, 22px);
  letter-spacing: -.005em;
  color: var(--paper);
  width: fit-content;
  position: relative;
  padding-bottom: 6px;
}
.site-foot__cta-email::after {
  content: "→";
  font-family: var(--f-display);
  font-size: 1em;
  transition: transform .35s var(--ease);
}
.site-foot__cta-email::before {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--paper);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .5s var(--ease-out);
}
.site-foot__cta-email:hover::after  { transform: translateX(8px); }
.site-foot__cta-email:hover::before { transform: scaleX(1); transform-origin: left; }

/* ── Right zone: three meta columns ──────────────────────── */
.site-foot__meta-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 80px);
  padding-bottom: 4px;
}
.site-foot__col { display: flex; flex-direction: column; gap: 12px; }
.site-foot__col-label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--paper);
  font-weight: 500;
  margin-bottom: 14px;
}
.site-foot__col ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex; flex-direction: column;
  gap: 6px;
}
.site-foot__col li {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -.005em;
  color: var(--paper);
}
.site-foot__col a {
  color: var(--paper);
  opacity: .65;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: opacity .25s var(--ease), color .25s var(--ease);
}
.site-foot__col a:hover { opacity: 1; color: var(--paper); }
/* Keyboard focus for the footer links (CTA, email, nav, back-to-top). */
.site-foot__cta:focus-visible,
.site-foot__cta-email:focus-visible,
.site-foot__col a:focus-visible,
.site-foot__top:focus-visible { outline: 2px solid var(--paper); outline-offset: 4px; }
.site-foot__col a:focus-visible { opacity: 1; }
.site-foot__col a i {
  font-style: normal;
  font-size: 12px;
  opacity: .6;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.site-foot__col a:hover i { transform: translate(3px, -3px); opacity: 1; }

/* ── Footer social — compact brand-glyph buttons ────────────
   The same icons as the Get in Touch tiles, sized down to sit neatly in
   the footer. Each li carries a spectrum hue (--c, set inline) that lights
   the button on hover — the living-spectrum accent, as an event. */
/* `.site-foot__col ul` forces column direction; match its specificity so the
   icons lay out as a horizontal, wrapping row instead of a tall stack. */
.site-foot__col ul.foot-social {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
}
.foot-social li { list-style: none; --c: var(--spectrum-blue); }
.foot-social a {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  border-radius: 13px;
  color: var(--paper);
  opacity: 1;                       /* override the text-link .65 above */
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .10);
  transition:
    transform .35s var(--ease-out),
    background .3s ease,
    border-color .3s ease,
    box-shadow .4s ease;
}
.foot-social__icon {
  display: grid; place-items: center;
  width: 18px; height: 18px;
}
.foot-social__icon svg { width: 100%; height: 100%; color: #fff; }
.foot-social a:hover {
  transform: translateY(-3px);
  background: color-mix(in srgb, var(--c) 16%, rgba(255, 255, 255, .03));
  border-color: color-mix(in srgb, var(--c) 55%, transparent);
  box-shadow:
    0 0 20px -4px color-mix(in srgb, var(--c) 75%, transparent),
    0 10px 24px -12px rgba(0, 0, 0, .7);
}
.foot-social a:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--c) 80%, #fff);
  outline-offset: 3px;
}

/* ── Animated rainbow accent bar (preserved from prev) ───── */
.site-foot__rainbow {
  position: relative;
  height: 6px;
  margin: 0 var(--pad-x);
  border-radius: 999px;
  background: linear-gradient(90deg,
    #3B6FFF, #8A5BFF, #E14FB8, #FF7A4F, #FFD24F, #A2FFD8,
    #3B6FFF, #8A5BFF, #E14FB8, #FF7A4F, #FFD24F, #A2FFD8);
  background-size: 200% 100%;
  animation:
    footRainbowFlow   9s linear  infinite,
    footRainbowBreath 4s ease-in-out infinite alternate;
}
.site-foot__rainbow::after {
  content: "";
  position: absolute;
  inset: -18px -4px -4px -4px;
  background: linear-gradient(90deg,
    rgba(59,111,255,.45), rgba(138,91,255,.45), rgba(225,79,184,.45),
    rgba(255,122,79,.45), rgba(255,210,79,.45), rgba(162,255,216,.45));
  background-size: 200% 100%;
  filter: blur(20px);
  border-radius: 999px;
  opacity: .55;
  pointer-events: none;
  z-index: -1;
  animation: footRainbowFlow 9s linear infinite;
}
@keyframes footRainbowFlow {
  from { background-position: 0% 0%; }
  to   { background-position: -200% 0%; }
}
@keyframes footRainbowBreath {
  from { transform: scaleY(1);   filter: brightness(1); }
  to   { transform: scaleY(1.45); filter: brightness(1.15); }
}

/* ══ About-page motion pass ═══════════════════════════════════════════
   Four layers on top of the pinned-hero timeline: a choreographed footer
   entrance, a signature glow on the primary CTA, tactile press feedback on
   every interactive, and a breathing accent on the DOLL section. */

/* Layer 1 · Footer entrance — the existing [data-reveal] IO reveals each
   zone; here we just orchestrate the order into a staggered arrival. */
html.is-scripted .site-foot__cta[data-reveal]       { transition-delay: 0s; }
html.is-scripted .site-foot__cta-blurb[data-reveal] { transition-delay: .09s; }
html.is-scripted .site-foot__cta-email[data-reveal] { transition-delay: .17s; }
html.is-scripted .site-foot__meta-cols .site-foot__col[data-reveal]:nth-of-type(1) { transition-delay: .26s; }
html.is-scripted .site-foot__meta-cols .site-foot__col[data-reveal]:nth-of-type(2) { transition-delay: .34s; }
html.is-scripted .site-foot__cta[data-reveal]       { transform: translateY(40px); }   /* the big CTA rises a touch further */
html.is-scripted .site-foot__cta[data-reveal].is-in { transform: translateY(0); }

/* Layer 2 · Signature glow — a soft spectrum field blooms behind the CTA on
   hover (colour as an event; glow, not shadow). */
.site-foot__cta { position: relative; }
.site-foot__cta::before {
  content: "";
  position: absolute;
  left: -6%; right: 42%; top: 4%; bottom: 4%;
  z-index: -1;
  background: radial-gradient(60% 72% at 28% 52%,
    color-mix(in srgb, var(--spectrum-violet) 55%, transparent) 0%,
    color-mix(in srgb, var(--spectrum-pink) 28%, transparent) 46%, transparent 72%);
  filter: blur(48px);
  opacity: 0;
  transform: scale(.88);
  transition: opacity .5s var(--ease-out), transform .6s var(--ease-out);
  pointer-events: none;
}
.site-foot__cta:hover::before { opacity: .85; transform: scale(1); }

/* Layer 3 · Tactile press — a quick dip on press (fast in; base transition,
   where present, smooths the release). The page had almost no click feedback. */
.site-foot__cta:active .site-foot__cta-big { transform: translateY(0) scale(.99); transition-duration: .1s; }
.site-foot__cta-email:active { transform: translateY(1px) scale(.98); transition: transform .1s var(--ease-out); }
.site-foot__col a:active     { transform: translateX(2px) scale(.97); transition: transform .1s var(--ease-out); }
.bar__menu:active            { transform: scale(.93); transition: transform .1s var(--ease-out); }
.bar__pill:active            { transform: scale(.9);  transition: transform .1s var(--ease-out); }
.site-foot__top:active       { transform: scale(.92); transition: transform .1s var(--ease-out); }

/* Layer 4 · DOLL section — the ambient spectrum glow breathes so the
   "meaning behind" beat feels alive between block changes. */
.doll-why__glow { animation: dollGlowBreath 7s ease-in-out infinite alternate; }
@keyframes dollGlowBreath {
  from { opacity: .28; transform: translate(-50%, -50%) scale(.96); }
  to   { opacity: .42; transform: translate(-50%, -50%) scale(1.06); }
}

@media (prefers-reduced-motion: reduce) {
  .site-foot__cta::before, .doll-why__glow { animation: none; transition: none; }
  .site-foot__cta:hover::before { opacity: .5; transform: none; }
}

/* ── Bottom row: copyright + circular TOP↑ button ────────── */
.site-foot__bottom {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  padding: clamp(40px, 6vh, 64px) var(--pad-x) clamp(28px, 4vh, 48px);
}
.site-foot__meta {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  opacity: .55;
}

.site-foot__top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: clamp(76px, 7vw, 110px);
  height: clamp(76px, 7vw, 110px);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .22);
  color: var(--paper);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  background: transparent;
  transition: background .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease-out);
}
.site-foot__top:hover {
  background: rgba(255, 255, 255, .07);
  border-color: rgba(255, 255, 255, .5);
  transform: translateY(-4px);
}
.site-foot__top i {
  font-style: normal;
  transition: transform .35s var(--ease-out);
}
.site-foot__top:hover i { transform: translateY(-3px); }

/* ── Touch targets ───────────────────────────────────────────
   On coarse pointers (touch / stylus) grow the small controls to the
   44×44px comfortable-tap minimum. We key off the INPUT method, not the
   screen width, so a touchscreen laptop benefits too and a desktop mouse
   keeps its compact chrome. The header buttons and footer links were the
   sub-44px offenders flagged in the audit. */
@media (pointer: coarse) {
  .bar__menu           { min-height: 44px; padding: 0 14px; }
  .bar__pill           { min-height: 44px; }
  .bar__icon           { width: 44px; height: 44px; }
  .drawer__close       { width: 44px; height: 44px; }
  .site-foot__col a    { padding-block: 12px; }   /* stacked links → ≥44px tall */
  .site-foot__cta-email { padding-block: 5px; }
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .site-foot__main {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-template-areas: "cta" "resume" "links";
    gap: clamp(40px, 6vh, 80px);
    padding-bottom: clamp(60px, 10vh, 120px);
  }
  .site-foot__cta-zone, .site-foot__resume-zone, .site-foot__meta-cols { align-self: auto; }
  .site-foot__meta-cols { gap: clamp(20px, 3vw, 40px); }
}
@media (max-width: 600px) {
  .site-foot__meta-cols { grid-template-columns: 1fr; gap: 32px; }
  .site-foot__bottom { grid-template-columns: 1fr; gap: 28px; justify-items: center; text-align: center; }
  .site-foot__top { width: 88px; height: 88px; }
}

/* =========================================================
   DRAWER · social section
   Adds "Elsewhere" group at the bottom of the menu drawer.
   ========================================================= */
/* Social row — centred pills, similar treatment to case studies */
/* Social — a left-aligned row of accent-coloured abbreviations (per the ref);
   slides in from the right just after the menu items. */
.drawer__social {
  display: flex; flex-wrap: wrap; justify-content: flex-start;
  gap: clamp(16px, 5vw, 30px);
  margin: clamp(22px, 3.4vh, 40px) 0 0;
  padding: 0;
  list-style: none;
  transform: translateX(48px); opacity: 0;
  transition: transform .6s var(--ease-out) .52s, opacity .5s var(--ease-out) .52s;
}
body.menu-open .drawer__social { transform: translateX(0); opacity: 1; }
.drawer__social li { border: 0; }
.drawer__social a {
  display: inline-block;
  color: var(--paper);
  font-family: var(--f-sans);
  font-size: clamp(13px, 3.6vw, 16px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  opacity: .6;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .5);
  transition: opacity .25s var(--ease);
}
@media (hover: hover) { .drawer__social a:hover { opacity: 1; } }
.drawer__social a:active { opacity: 1; }

/* Drawer logo — top-left, mirrors the closed nav. */
.drawer__logo {
  position: fixed;
  top: clamp(14px, 2vh, 26px);
  left: var(--pad-x);
  z-index: 2;
  display: inline-flex; text-decoration: none; line-height: 0;
  opacity: 0; transform: translateX(20px);
  transition: opacity .5s var(--ease) .15s, transform .5s var(--ease-out) .15s;
}
body.menu-open .drawer__logo { opacity: 1; transform: translateX(0); }
.drawer__wordmark {
  position: relative; display: inline-block;
  font-family: var(--f-logo); font-weight: 900;
  letter-spacing: -.03em; line-height: 1; color: #fff;
  font-size: clamp(26px, 3vw, 40px);
}
.drawer__doll { display: block; }
.drawer__stripe {
  position: absolute; left: 0; right: 0; top: 54%;
  transform: translateY(-50%);
  height: .11em; border-radius: 999px;
  background: var(--rainbow);
  box-shadow: 0 0 18px rgba(225, 79, 184, .3), 0 0 40px rgba(138, 91, 255, .18);
}

/* Copyright — pinned bottom-left, muted. */
.drawer__copyright {
  position: fixed;
  bottom: clamp(18px, 3.5vh, 36px);
  left: var(--pad-x);
  right: var(--pad-x);
  z-index: 2;
  margin: 0;
  font-family: var(--f-mono, monospace);
  font-size: clamp(10px, 2.6vw, 12px);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .42);
  opacity: 0; transition: opacity .5s var(--ease) .55s;
}
body.menu-open .drawer__copyright { opacity: 1; }

/* Landscape phones (short height) — shrink the drawer so the four items +
   social + copyright fit without cramping, and tuck the corners in. */
@media (max-height: 500px) {
  .drawer { padding-top: clamp(54px, 16vh, 82px); padding-bottom: clamp(12px, 5vh, 26px); }
  .drawer__inner { gap: clamp(10px, 3vh, 22px); }
  .drawer__main { gap: 0; }
  .drawer__link { font-size: clamp(20px, 9vh, 40px); }
  .drawer__social { margin-top: clamp(8px, 3vh, 18px); }
  .drawer__wordmark { font-size: clamp(22px, 7vh, 34px); }
  .drawer__logo { top: clamp(8px, 3vh, 16px); }
  .drawer__copyright { bottom: clamp(6px, 3vh, 14px); }
}

/* =========================================================
   WHAT I DO · v2 layout
   Hero → reel → intro → carousel → services → CTA
   Bar compacts on scroll. Reel uses the custom cursor as a
   play / pause affordance.
   ========================================================= */

/* No persistent surface anymore, so there's nothing to frost on scroll — the
   floating sections stay as they are. */

/* Nav responsive — the +15% is a desktop move; on phones the petals form
   scales back down so all five stay on one line inside the viewport. */
@media (max-width: 820px) {
  .bar__petals { height: 46px; }
  .bar__seg { padding: 0 clamp(11px, 1.5vw, 16px); }
  .bar__nav-link, .bar__cta { font-size: 13px; letter-spacing: .03em; }
  .bar__brand-logo { height: 21px; width: 59px; }
}
@media (max-width: 620px) {
  .bar__petals { height: 42px; }
  .bar__nav-link, .bar__cta { font-size: 11.5px; }
  .bar__seg { padding: 0 8px; }
  .bar__seg--logo { padding: 0 10px; }
  .bar__brand-logo { height: 18px; width: 51px; }
}
@media (max-width: 430px) {
  .bar__petals { height: 38px; }
  .bar__brand-logo { height: 15px; width: 42px; }
  .bar__seg { padding: 0 6px; }
  .bar__seg--logo { padding: 0 8px; }
  .bar__nav-link, .bar__cta { font-size: 10px; letter-spacing: .005em; }
  .bar__cta-arrow { display: none; }        /* drop the arrow, keep the label */
}

/* ── Hero v2 — centred landing statement, leaves room for reel peek ─ */
.what-hero--v2 {
  padding: clamp(110px, 18vh, 200px) var(--pad-x) clamp(24px, 4vh, 56px);
  min-height: 65vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: var(--maxw);
  margin: 0 auto;
  position: relative;
}
.what-hero--v2::after {
  content: "";
  position: absolute;
  top: 30%; right: -10%;
  width: 60vw; max-width: 800px; aspect-ratio: 1 / 1;
  background:
    radial-gradient(circle at center, rgba(225, 79, 184, .14), transparent 55%),
    radial-gradient(circle at 30% 70%, rgba(138, 91, 255, .10), transparent 60%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}
.what-hero--v2 > * { position: relative; z-index: 1; }

.what-hero__big {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(40px, 6.4vw, 108px);
  line-height: 1.02;
  letter-spacing: -.032em;
  color: var(--paper);
  text-wrap: balance;
  margin: clamp(20px, 3vh, 40px) 0 0;
  max-width: 16ch;
}
.what-hero__line {
  display: block;
  overflow: hidden;
  padding-bottom: 4px;
}
.what-hero__line > span {
  display: block;
  transform: translateY(110%);
  opacity: 0;
  transition: transform 1.2s var(--ease-out), opacity 1s var(--ease-out);
}
.what-hero__big[data-reveal].is-in .what-hero__line:nth-child(1) > span { transform: translateY(0); opacity: 1; transition-delay: .15s; }
.what-hero__big[data-reveal].is-in .what-hero__line:nth-child(2) > span { transform: translateY(0); opacity: 1; transition-delay: .28s; }
.what-hero__big[data-reveal].is-in .what-hero__line:nth-child(3) > span { transform: translateY(0); opacity: 1; transition-delay: .41s; }

/* Rainbow-underlined phrase inside the hero headline (e.g. "stand out") */
.what-hero__rainbow {
  font-style: normal;
  position: relative;
  white-space: nowrap;
}
.what-hero__rainbow::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: .04em;
  height: .06em;
  background: var(--rainbow);
  border-radius: 999px;
}
/* Mobile-only line break inside the headline (hidden on desktop). */
.what-hero__mbr { display: none; }

/* ── Video reel — scroll-driven scaling to full screen ────────────
   Section is 200vh tall: 100vh sticky stage + 100vh scroll runway.
   The stage starts contained (55vw, 16:9) at the top of the sticky
   container — it peeks under the hero at scrollY=0. As the user
   scrolls, JS interpolates width/height to fill the full viewport. */
.what-reel {
  position: relative;
  height: 200vh;
  padding: 0;
  margin: 0;
  max-width: none;
  /* Isolate scroll-scale animation paint from the rest of the page */
  contain: layout paint;
}
.what-reel__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
  contain: layout paint;
}
.what-reel__stage {
  all: unset;
  display: block;
  position: relative;
  /* Initial dimensions — JS interpolates from these to 100vw × 100vh on scroll */
  width: 55vw;
  height: calc(55vw * 9 / 16);
  border-radius: 22px;
  overflow: hidden;
  cursor: none;
  background: var(--ink-2);
  box-shadow:
    0 40px 100px rgba(0, 0, 0, .55),
    0 0 0 1px rgba(255, 255, 255, .05);
  will-change: width, height, border-radius;
}
.what-reel__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  /* Taps never reach the <video>, so mobile browsers don't pop their native
     media controls — the stage handles play/pause inline instead. */
  pointer-events: none;
}

/* Placeholder ambient gradient blobs that simulate a "reel" */
.what-reel__media {
  position: absolute; inset: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 60%, var(--ink-2) 0%, var(--ink) 70%);
}
.what-reel__blob {
  position: absolute;
  width: 60%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  filter: blur(80px);
  mix-blend-mode: screen;
  opacity: .85;
  will-change: transform;
}
.what-reel__blob--1 {
  background: radial-gradient(circle, #3B6FFF, transparent 65%);
  top: 5%; left: 5%;
  animation: reelBlob1 14s ease-in-out infinite alternate;
}
.what-reel__blob--2 {
  background: radial-gradient(circle, #E14FB8, transparent 65%);
  top: 30%; left: 55%;
  animation: reelBlob2 18s ease-in-out infinite alternate;
}
.what-reel__blob--3 {
  background: radial-gradient(circle, #FF7A4F, transparent 65%);
  bottom: -10%; left: 25%;
  animation: reelBlob3 16s ease-in-out infinite alternate;
}
.what-reel__blob--4 {
  background: radial-gradient(circle, #A2FFD8, transparent 65%);
  top: -10%; right: 5%;
  animation: reelBlob4 20s ease-in-out infinite alternate;
}
@keyframes reelBlob1 { to { transform: translate(30%, 20%) scale(1.15); } }
@keyframes reelBlob2 { to { transform: translate(-20%, -25%) scale(1.2); } }
@keyframes reelBlob3 { to { transform: translate(20%, -30%) scale(1.1); } }
@keyframes reelBlob4 { to { transform: translate(-25%, 25%) scale(1.18); } }

/* When paused, freeze the gradient animation */
.what-reel__stage:not(.is-playing) .what-reel__blob {
  animation-play-state: paused;
}

/* Reel chrome (mono labels in the corners) */
.what-reel__chrome {
  position: absolute;
  top: clamp(18px, 2vw, 28px); left: clamp(20px, 2.5vw, 32px);
  right: clamp(20px, 2.5vw, 32px);
  display: flex; justify-content: space-between; align-items: center;
  z-index: 2;
  pointer-events: none;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--paper);
  opacity: .85;
}
/* Live pulse — mint per DESIGN.md live/active signal (not the
   generic streaming-red convention). Uses --glow-mint token. */
.what-reel__dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--glow-mint);
  margin-right: 8px;
  box-shadow: 0 0 0 0 rgba(108, 255, 176, .5);
  animation: reelPulse 2s ease-out infinite;
}
@keyframes reelPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(108, 255, 176, .55); }
  60%      { box-shadow: 0 0 0 12px rgba(108, 255, 176, 0); }
}
.what-reel__caption {
  position: absolute;
  bottom: clamp(18px, 2vw, 28px);
  left: clamp(20px, 2.5vw, 32px);
  right: clamp(20px, 2.5vw, 32px);
  z-index: 2;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(16px, 1.6vw, 22px);
  letter-spacing: -.012em;
  color: var(--paper);
  opacity: .92;
  text-shadow: 0 2px 12px rgba(0,0,0,.45);
  max-width: 40ch;
}

/* ── Reel play hint — centred pill that appears in preview mode ──
   Shown while the video is autoplaying muted as a "preview". Once
   the user clicks the stage and the video restarts with sound, the
   .is-playing class on the stage fades the hint out permanently. */
.what-reel__playhint {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  background: rgba(8, 8, 10, .58);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, .18);
  color: var(--paper);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  pointer-events: none;
  box-shadow: 0 10px 32px rgba(0, 0, 0, .4);
  opacity: 0;
  transition: opacity .55s var(--ease), transform .55s var(--ease-out);
}
/* Fade in once the stage is hovered so the hint isn't always-on noise */
.what-reel__stage:hover .what-reel__playhint {
  opacity: 1;
}
/* After the first click (watch mode), the hint is permanently hidden */
.what-reel__stage.is-playing .what-reel__playhint {
  opacity: 0 !important;
  transform: translate(-50%, -50%) scale(.85);
  pointer-events: none;
}
.what-reel__playhint svg { display: block; }

/* Stage cursor — always pointer so the user knows clicking toggles
   pause / play (in addition to the preview → watch transition). */
.what-reel__stage { cursor: pointer; }
.what-reel__video { cursor: pointer; }

/* ── Resume badge — big centred play icon when paused mid-watch ─ */
.what-reel__resumehint {
  position: absolute;
  top: 50%; left: 50%;
  z-index: 3;
  width:  clamp(72px, 6vw, 96px);
  height: clamp(72px, 6vw, 96px);
  border-radius: 999px;
  background: rgba(8, 8, 10, .58);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, .22);
  color: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .45);
  opacity: 0;
  transform: translate(-50%, -50%) scale(.85);
  transition: opacity .35s var(--ease), transform .4s cubic-bezier(.16, 1, .3, 1);
}
.what-reel__resumehint svg {
  width: 38%;
  height: 38%;
  margin-left: 6%; /* visually centre the asymmetric play triangle */
}
/* Only visible when in watch mode AND the video is paused */
.what-reel__stage.is-playing.is-paused .what-reel__resumehint {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* ── Reel audio toggle — floating circular button bottom-right ──
   Default state shows the muted icon (autoplay forces start muted
   per browser policy). Clicking unmutes and swaps to the on icon. */
.what-reel__audio {
  position: absolute;
  bottom: clamp(24px, 2.4vw, 36px);
  right:  clamp(24px, 2.4vw, 36px);
  z-index: 3;
  width:  clamp(64px, 5.2vw, 84px);
  height: clamp(64px, 5.2vw, 84px);
  border-radius: 999px;
  background: rgba(20, 20, 24, .6);
  border: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  color: var(--paper);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition:
    background .3s var(--ease),
    border-color .3s var(--ease),
    transform .35s cubic-bezier(.16, 1, .3, 1);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .45);
}
.what-reel__audio:hover {
  background: rgba(20, 20, 24, .82);
  border-color: rgba(255, 255, 255, .4);
  transform: scale(1.06);
}
.what-reel__audio-icon {
  width:  58%;
  height: 58%;
  display: block;
  stroke-width: 1.9;
}
/* Default: video is muted → show the OFF icon, hide the ON icon */
.what-reel__audio-icon--on  { display: none; }
.what-reel__audio.is-unmuted .what-reel__audio-icon--off { display: none; }
.what-reel__audio.is-unmuted .what-reel__audio-icon--on  { display: block; }

/* ── Intro paragraph ─────────────────────────────────────── */
.what-intro {
  /* The statement gets a full screen to itself — centred, with air on every
     side so it breathes between the reel above and the cards below. */
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(64px, 12vh, 140px) var(--pad-x);
  box-sizing: border-box;
}
.what-intro__lede {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(28px, 4.4vw, 64px);
  line-height: 1.15;
  letter-spacing: -.025em;
  color: var(--paper);
  max-width: 28ch;
  text-wrap: balance;
}
.what-intro__lede em {
  font-style: normal;
  position: relative;
  white-space: nowrap;
}
.what-intro__lede em::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: .05em;
  height: .08em;
  background: var(--rainbow);
  border-radius: 999px;
}

/* ── Intro statement · kinetic Marmeladz composition ──────────────────
   Mixed-scale lines in the iridescent white-core gradient, revealed word by
   word on scroll — the same treatment as the contact-page closing. */
.wi {
  --marmel: linear-gradient(100deg,
    #FFC97E 0%, #FF9DC4 15%, #F3D6E6 30%, #FFFFFF 46%, #FFFFFF 56%,
    #C0CCFF 72%, #C3A6FF 85%, #FF9AD4 100%);
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  text-align: center;
  font-family: var(--f-display);
  filter: drop-shadow(0 3px 34px rgba(0, 0, 0, .45));
}
.wi-line { display: block; }
.wi-line + .wi-line { margin-top: clamp(4px, .9vh, 14px); }
/* A committed three-step ladder — quiet lead-in (500) → connective (600) →
   huge display word (700). Each step clears the 1.25 ratio so the hierarchy
   reads instantly instead of sm/md sitting at nearly the same size. */
.wi-sm { font-weight: 500; font-size: clamp(24px, 3vw, 46px); letter-spacing: -.02em; line-height: 1.1; }
.wi-md { font-weight: 600; font-size: clamp(32px, 4.6vw, 68px); letter-spacing: -.026em; line-height: 1.1; text-wrap: balance; }
.wi-xl {
  font-weight: 700; font-size: clamp(65px, 11.25vw, 165px);
  letter-spacing: -.03em; line-height: .92; text-transform: uppercase; white-space: nowrap;
  margin: clamp(2px, .6vh, 10px) 0;
}
.wi-word {
  display: inline-block;
  background-image: var(--marmel); background-size: 100% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  will-change: transform, filter, opacity;
}
/* The two big words become playful hover toys once resolved (JS adds .is-set). */
.wi-word--big.is-set { transition: transform .5s var(--ease-out), filter .45s var(--ease-out); }
.wi-word--big.is-set:hover { transform: scale(1.06); animation: ccHoverGlow 2.6s linear infinite; }
/* Reveal gating: hidden until JS scrubs them in; visible without JS / reduced motion. */
html.is-scripted .wi-word { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .wi-word { opacity: 1 !important; filter: none !important; transform: none !important; }
  .wi-word--big.is-set:hover { animation: none; transform: scale(1.04); }
}
@media (max-width: 860px) {
  .wi-sm { font-size: clamp(20px, 5vw, 32px); }
  .wi-md { font-size: clamp(28px, 7.4vw, 52px); }
  /* xl capped so the long words never overrun the narrow gutter */
  .wi-xl { font-size: clamp(46px, 15vw, 108px); }
}

/* ── Portrait · scroll-driven polaroid overlay ─────────────
   Section is 200vh tall: 100vh sticky stage + 100vh runway.

   The PHOTO stays at 100vw × 100vh centered on the viewport
   AT ALL TIMES — it never moves, never scales. It's rendered
   as a plain <img> pinned with position:absolute; inset:0.

   The polaroid FRAME is a separate overlay card centred on
   top. Its interior is transparent (photo shows through), a
   border grows to become the black polaroid mount, and a
   huge box-shadow paints the light-grey stage around the
   card as it shrinks. Only the card's dimensions + border +
   quote max-height animate; the photo layer is untouched. */
/* ── About hero — editorial-system variant ─────────────────
   Retrofits to the Editorial System (`ed-hero`, `ed-stack`,
   `ed-headline`, `ed-caption`, `ed-grid`, `ed-image--cutout`).
   Only About-specific tuning lives here: the radial vignette and
   the tonal per-line color ramp that gives the composition its
   architectural "light-from-above" feel. */

/* Home-style fluid gradient field — reusable container for the global
   .blob classes (same 6 rainbow orbs + cursor follower as the cockpit).
   Used behind the About hero so it shares the home's living-spectrum
   backdrop. Sits at z-0, behind all content. */
.blob-field {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Ambient atmosphere — a radial "wall glow" plus a bottom fade so the
   subject emerges from darkness. Softened the central darkening (was
   .55) so the blob field reads through behind the portrait; the bottom
   fade stays strong to seat the scrim + quote. Scoped to .ed-hero__inner
   so it sits at the sticky viewport (100vh), not the 220vh runway.
   z-1 keeps it above the blob field (z-0) but below the content. */
.ed-hero--about .ed-hero__inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 45% at 50% 42%, rgba(255, 255, 255, .04), transparent 60%),
    radial-gradient(ellipse 80% 60% at 50% 62%, rgba(0, 0, 0, .32), transparent 68%),
    linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .5) 90%, rgba(0, 0, 0, .8) 100%);
  pointer-events: none;
  z-index: 1;
}
/* On the pinned-variant hero we also need the section (200vh)
   itself to stay black so nothing shows around the sticky frame. */
.ed-hero--pinned { background: var(--ink); }

/* Polished-metal backdrop title (Dylan-Brouwer reference). Two layers,
   both clipped to text on the parent headline:

   1. VERTICAL ILLUMINATION — the whole title reads as one sheet of metal
      lit from above: bright silver at the top of the viewport, fading to
      deep steel at the bottom. Viewport-continuous, so EVOKING (top) is
      brightest and EMOTIONS (bottom) darkest, exactly like the reference.
      Stitched by script.js: each line's background-position Y cancels its
      own viewport offset so all lines sample one shared vertical field.

   2. MOVING SHEEN — a soft diagonal highlight band that glides across the
      plate as the cursor moves, like a reflection catching light. Also
      stitched + cursor-shifted by script.js.

   Monochrome silver/steel only — no rainbow (that lives on the spectrum
   stripe + hover reveals elsewhere; here the metal itself is the event).

   Per-line brightness rides on --plate-a: back line (EVOKING) dim at .28,
   front lines (REAL, EMOTIONS) at .35 per art direction — semi-transparent
   so the portrait reads through the letters. */
/* All three lines are SOLID WHITE now (Leo, 2026-10-06) — the iridescent
   "polished-metal" plate was removed. Flat white also stops the outer letters
   (G / S) fading into the black edges, which read as if they were cut. */
.ed-hero--about .ed-stack .ed-headline {
  color: #fff;
  -webkit-text-fill-color: #fff;
  background: none;
}

/* Reference layout — JS fits the widest line (EMOTIONS) to the width (see
   fitLines) and scales all lines by that one factor, so proportions hold. All
   three lines are page-centred; the portrait stays centred. REAL uses an
   ~20%-smaller base so it stays the shorter, quieter accent line, and drops a
   little lower to balance the gap to EMOTIONS. */
.ed-hero--about .ed-headline--xl      { font-size: clamp(72px, 14.5vw, 224px); }
.ed-hero--about .ed-headline--massive { font-size: clamp(58px, 11.6vw, 179px); }
@media (min-width: 641px) {
  .ed-hero--about .ed-headline--massive {   /* REAL nudged a touch lower, but kept
       well clear of EMOTIONS — the old 8vh offset collided with it on tall/wide
       viewports (the fit-to-fill lines are large, so the gap is small). */
    position: relative;
    top: clamp(2px, 1.3vh, 18px);
  }
}

/* ── Black scrim (phase 2) ───────────────────────────────────
   A bottom-up black gradient over the lower part of the photo,
   so the centered quote reads cleanly against the bright shirt.
   Sits between the cutout (z-3) and the quote (z-5). Hidden at
   rest; the GSAP phase-2 timeline fades it in with the quote. */
.ed-hero__scrim {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 58%;
  z-index: 4;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, .94)  0%,
    rgba(0, 0, 0, .82) 24%,
    rgba(0, 0, 0, .5)  55%,
    rgba(0, 0, 0, .18) 80%,
    transparent       100%
  );
  opacity: 0;
  pointer-events: none;
  will-change: opacity;
}

/* ── Biography (phase 3+) ────────────────────────────────────
   After the quote, the portrait slides right and these paragraphs
   appear on the LEFT, one at a time, word by word. Stacked in the
   same spot; the pinned timeline swaps them on scroll. */
.ed-hero__bio {
  position: absolute;
  left: clamp(24px, 6vw, 110px);
  /* Right edge tracks the viewport (not a fixed px) so the copy keeps a
     consistent, tight gutter to the portrait at every width. Narrowed a touch
     so the prose wraps before the photo, letting the portrait sit closer
     without the copy crowding it. */
  right: 49vw;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  pointer-events: none;
}
.hero-bio-para {
  position: absolute;
  top: 50%;
  left: 0; right: 0;
  transform: translateY(-50%);
  margin: 0;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(23px, 2.75vw, 42px);
  line-height: 1.34;
  letter-spacing: -.016em;
  color: var(--paper);
  text-align: left;
  text-wrap: pretty;
}
.hero-bio-lines { display: block; }
.hero-bio-word {
  display: inline-block;
  color: var(--paper);
  text-shadow: 0 2px 20px rgba(0, 0, 0, .6), 0 1px 4px rgba(0, 0, 0, .5);
}
/* Scripted: words start hidden; the timeline reveals them per paragraph. */
html.is-scripted .hero-bio-word { opacity: 0; will-change: opacity, transform; }

/* ── "Practice" beat — emphasised lead + floating spectrum tiles ─────────
   Paragraph 1 opens with a large lead line that stands apart from the rest,
   a quiet connector, then the activities as tiles that drift gently and glow
   in their spectrum hue. Each tile is a .hero-bio-word so the timeline still
   staggers it in; the drift lives on an inner element so it never fights the
   reveal transform. */
.bio-practice__lead {
  margin: 0 0 clamp(20px, 2.6vh, 32px);  /* bottom gap works with OR without a connector */
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(30px, 4.1vw, 60px);   /* the dominant statement — oversized display, the DOLL DNA */
  line-height: 1.05; letter-spacing: -.03em;
  color: var(--paper);
  text-wrap: balance;
  max-width: 20ch;                       /* a monolithic block that leads the beat (wide enough to keep long leads to ~4 lines) */
}
.bio-practice__connector {
  margin: 0 0 clamp(20px, 2.6vh, 34px);
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(18px, 1.44vw, 23px);   /* +20% */
  color: rgba(255, 255, 255, .55);
}
.bio-practice__tiles {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 24px);
  max-width: 720px;                    /* bolder, more monumental cards */
}
.bio-practice__tiles .bio-tile {
  display: block;              /* override .hero-bio-word inline-block — it's a grid cell */
  pointer-events: auto;        /* re-enable hover (the bio container is pointer-events:none) */
}
/* The ambient motion (bob-and-tilt drift + breathing spectrum glow) lives on
   this wrapper, so the visible .bio-tile__face is free to react to hover
   without fighting the running animation. Reveal transform is on .bio-tile. */
.bio-tile__float {
  display: block;
  border-radius: 20px;
  animation: bioTileFloat 5.2s ease-in-out infinite alternate;   /* gentle drift; the glow now lives on the face */
  will-change: transform;
}
.bio-practice__tiles .bio-tile:nth-child(1) .bio-tile__float { animation-delay:  0s;   }
.bio-practice__tiles .bio-tile:nth-child(2) .bio-tile__float { animation-delay: -1.6s; }
.bio-practice__tiles .bio-tile:nth-child(3) .bio-tile__float { animation-delay: -.8s;  }
.bio-practice__tiles .bio-tile:nth-child(4) .bio-tile__float { animation-delay: -2.3s; }
/* Same neon-glass frame as the What I Do cards — warm rim on the top bevel, a
   neon rim in the tile's own hue on the bottom, an interior vignette, and an
   ambient bloom that breathes (shared svcCardBreathe keyframe via --accent). */
.bio-tile__face {
  --accent: var(--c, var(--spectrum-blue));
  --bevel:
    inset 0 1.5px 1.5px rgba(255, 196, 138, .5),
    inset 0 -3px 9px color-mix(in srgb, var(--accent) 55%, rgba(255, 255, 255, .5)),
    inset 0 0 34px rgba(0, 0, 0, .5);
  display: flex; align-items: center;
  gap: clamp(12px, 1.1vw, 16px);
  padding: clamp(18px, 2.3vh, 27px) clamp(16px, 1.5vw, 22px);
  border-radius: 20px;
  background: radial-gradient(120% 88% at 50% 0%, #15111d 0%, #0b0a10 55%, #08070c 100%);
  border: 1px solid rgba(255, 255, 255, .06);
  box-shadow:
    var(--bevel),
    0 0 34px -10px color-mix(in srgb, var(--accent) 72%, transparent),
    0 0 72px -14px color-mix(in srgb, var(--accent) 46%, transparent),
    0 20px 44px -24px rgba(0, 0, 0, .82);
  animation: svcCardBreathe 6s ease-in-out infinite alternate;
  transition:
    transform .4s var(--ease-out, cubic-bezier(.22, 1, .36, 1)),
    border-color .4s ease,
    filter .4s ease;
}
.bio-practice__tiles .bio-tile:nth-child(2) .bio-tile__face { animation-delay: -1.8s; }
.bio-practice__tiles .bio-tile:nth-child(3) .bio-tile__face { animation-delay: -3.4s; }
.bio-practice__tiles .bio-tile:nth-child(4) .bio-tile__face { animation-delay: -4.7s; }
/* Hover: lift + brighter hue edge (box-shadow is left to the breathing glow, so
   the hover uses transform + border + a light brighten instead of fighting it). */
.bio-tile:hover .bio-tile__face {
  transform: translateY(-6px) scale(1.03);
  border-color: color-mix(in srgb, var(--accent) 42%, rgba(255, 255, 255, .16));
  filter: brightness(1.12) saturate(1.08);
}
.bio-tile__icon {
  flex: none; display: grid; place-items: center;
  width: clamp(36px, 3.6vw, 49px); aspect-ratio: 1;
  color: var(--c, var(--spectrum-blue));
  animation: bioTileIconPulse 3.3s ease-in-out infinite alternate;   /* glow + gentle scale */
}
.bio-practice__tiles .bio-tile:nth-child(2) .bio-tile__icon { animation-delay: -1.1s; }
.bio-practice__tiles .bio-tile:nth-child(3) .bio-tile__icon { animation-delay: -.6s; }
.bio-practice__tiles .bio-tile:nth-child(4) .bio-tile__icon { animation-delay: -1.9s; }
.bio-tile__icon svg { width: 100%; height: 100%; display: block; }
.bio-tile__label {
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(16px, 1.5vw, 22px);
  line-height: 1.1; letter-spacing: -.012em;
  color: var(--paper);
}
/* A 3-tile beat sits as one clean row of thirds instead of a lopsided 2 + 1. */
.bio-practice__tiles[data-count="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Industry tags — a light spectrum-dotted row under the tiles (secondary to
   the cards). Each is a reveal unit so it staggers in with the beat. */
.bio-practice__tags {
  list-style: none; margin: clamp(16px, 2vh, 24px) 0 0; padding: 0;
  display: flex; flex-wrap: wrap;
  gap: clamp(10px, 1vw, 16px) clamp(16px, 1.7vw, 26px);
}
.bio-tag {
  display: inline-flex; align-items: center; gap: 11px;
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(18px, 1.44vw, 23px);      /* same size as the connector */
  letter-spacing: -.005em; text-transform: none;
  color: var(--paper);                        /* white */
}
.bio-tag__dot {
  flex: none;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--c, var(--spectrum-blue));
  box-shadow: 0 0 12px 1px var(--c, var(--spectrum-blue));   /* spectrum glow */
}
/* Closing note — same size + white as the connector, landing after the tags. */
.bio-practice__note {
  display: block;
  margin: clamp(18px, 2.4vh, 30px) 0 0;
  max-width: 44ch;
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(18px, 1.44vw, 23px);      /* same size as the connector */
  line-height: 1.55; letter-spacing: 0;      /* light-on-dark: looser leading, neutral tracking */
  color: var(--paper);                        /* white */
  text-wrap: pretty;
}
/* ── Finale beat (the last one): its closing note still builds word by word
   (the reveal staggers each .hero-bio-word), but the tiles are now identical
   to the other beats' — the light-sweep was removed so the finale cards don't
   read differently from the rest of the set. ── */
@keyframes bioTileFloat {
  0%   { transform: translateY(-6px) rotate(-.7deg); }
  50%  { transform: translateY(3px)  rotate(.4deg) scale(1.014); }
  100% { transform: translateY(7px)  rotate(.7deg); }
}
@keyframes bioTileIconPulse {
  from { filter: drop-shadow(0 0 9px  var(--c, var(--spectrum-blue))); transform: scale(1); }
  to   { filter: drop-shadow(0 0 22px var(--c, var(--spectrum-blue))); transform: scale(1.11); }
}

/* Spectrum rule — a short rainbow bar under each paragraph that draws
   left→right once the words land. Per-paragraph hue slice so the accent
   colour shifts beat to beat (color arrives as an event, per DESIGN.md). */
.hero-bio-rule {
  display: block;
  margin-top: clamp(18px, 2.2vh, 34px);
  width: clamp(120px, 16vw, 210px);
  height: 3px;
  border-radius: 2px;
  transform-origin: left center;
  background: var(--rainbow);
}
.hero-bio-para:nth-of-type(1) .hero-bio-rule {
  background: linear-gradient(90deg, var(--spectrum-blue), var(--spectrum-violet), var(--spectrum-pink));
}
.hero-bio-para:nth-of-type(2) .hero-bio-rule {
  background: linear-gradient(90deg, var(--spectrum-pink), var(--spectrum-orange), var(--spectrum-yellow));
}
.hero-bio-para:nth-of-type(3) .hero-bio-rule {
  background: linear-gradient(90deg, var(--spectrum-mint), var(--spectrum-blue), var(--spectrum-violet));
}
/* Scripted: rule starts undrawn; GSAP scales it in per paragraph. */
html.is-scripted .hero-bio-rule { transform: scaleX(0); }

/* Living-spectrum aura — a soft colour field behind the copy that bleeds
   toward the gutter. One layer per paragraph; the timeline cross-fades them
   so the hue advances with the beats. Concentrated left-of-centre so it
   glows behind the text and fades before it reaches the portrait. */
.ed-hero__bio-aura {
  position: absolute;
  top: 50%;
  left: -6%;
  width: 128%;
  height: min(76vh, 660px);
  transform: translateY(-50%);
  z-index: -1;
  pointer-events: none;
}
.bio-aura__layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  filter: blur(84px) saturate(140%);
  will-change: opacity, transform;
}
.bio-aura__layer--1 {
  background: radial-gradient(46vmin 42vmin at 34% 48%, var(--spectrum-violet) 0%, var(--spectrum-blue) 34%, transparent 68%);
  animation: bioAuraDrift 24s ease-in-out infinite alternate;
}
.bio-aura__layer--2 {
  background: radial-gradient(46vmin 42vmin at 34% 48%, var(--spectrum-pink) 0%, var(--spectrum-orange) 36%, transparent 68%);
  animation: bioAuraDrift 27s ease-in-out infinite alternate-reverse;
}
.bio-aura__layer--3 {
  background: radial-gradient(46vmin 42vmin at 34% 48%, var(--spectrum-mint) 0%, var(--spectrum-blue) 38%, transparent 68%);
  animation: bioAuraDrift 22s ease-in-out infinite alternate;
}
@keyframes bioAuraDrift {
  0%   { transform: translate3d(-4%, -3%, 0) scale(1.04); }
  50%  { transform: translate3d( 5%,  3%, 0) scale(1.16); }
  100% { transform: translate3d(-2%,  5%, 0) scale(1.1); }
}

/* Mobile: pinned mode is off — stack the bio in normal flow, all visible. */
@media (max-width: 1024px) {
  /* Tablet + phone: the hero is unpinned (see the .ed-hero--pinned /
     .ed-hero__inner collapse), so the bio flows normally, full-width. */
  .ed-hero__bio {
    position: relative;
    left: auto; right: auto; top: auto;   /* reset the base right:49vw or it shifts the block off-screen left */
    transform: none;
    width: 100%;
    margin-top: clamp(24px, 5vh, 48px);
  }
  .hero-bio-para { position: relative; top: auto; transform: none; }
  .hero-bio-para + .hero-bio-para { margin-top: clamp(28px, 5vh, 48px); }
  html.is-scripted .hero-bio-word { opacity: 1; }
  html.is-scripted .hero-bio-rule { transform: scaleX(1); }
  .ed-hero__bio-aura { display: none; }
}
/* Phone only: collapse the tile beats to a single column. On tablet the bio is
   full-width, so the natural 2/3-col row still fits (capped at max-width:720px)
   and reads better than one stretched tile. The `[data-count]` attribute lifts
   specificity to beat the `[data-count="3"]` 3-col rule; otherwise 3-tile beats
   stay 3-across at 375px and clip their labels under the tile's overflow:hidden. */
@media (max-width: 640px) {
  .bio-practice__tiles[data-count] { grid-template-columns: 1fr; max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html.is-scripted .hero-bio-word { opacity: 1; }
  html.is-scripted .hero-bio-rule { transform: scaleX(1); }
  .bio-aura__layer { animation: none !important; }
  .bio-tile__float, .bio-tile__icon, .bio-tile__face { animation: none !important; }   /* no drift/pulse/breathe */
  .bio-tile__icon { filter: drop-shadow(0 0 11px var(--c, var(--spectrum-blue))); }
  .bio-tile:hover .bio-tile__face { transform: none; filter: brightness(1.1); }        /* keep a quiet brighten, drop the motion */
}

/* ── Portrait quote (phase 2 reveal) ─────────────────────────
   Centered over the lower third of the portrait, sitting on the
   black scrim. Hidden at load (opacity 0 via `.is-scripted` gate);
   the GSAP timeline rises it into view as the backdrop type fades. */
.ed-hero__quote {
  position: absolute;
  left: 50%;
  bottom: clamp(56px, 11vh, 130px);
  transform: translateX(-50%);
  z-index: 5;
  width: 100%;
  max-width: min(78vw, 760px);
  margin: 0;
  text-align: center;
  color: var(--paper);
  will-change: transform, opacity;
  pointer-events: none;
}
/* Words + attribution hidden individually so the timeline can
   stagger them (see script.js pinned-hero phase 2). The figure
   itself stays visible — the block slides in from the left as
   a unit, while its content cascades in per word. */
html.is-scripted .ed-hero__quote-word,
html.is-scripted .ed-hero__quote figcaption { opacity: 0; }

.ed-hero__quote-word {
  display: inline-block;
  will-change: opacity, transform;
}

.ed-hero__quote blockquote {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(26px, 2.9vw, 44px);   /* +30% */
  line-height: 1.32;
  letter-spacing: -.012em;
  color: rgba(255, 255, 255, .94);
  text-wrap: balance;
}
/* Smart quotes attached to the FIRST and LAST word spans (not
   the blockquote itself), so they inherit the word's opacity
   gate. Otherwise the pseudo-quotes stay visible on the
   blockquote while the words are still hidden pre-animation —
   the "phantom opening quote" bug. Now the opening " appears
   with the first word, closing " with the last. */
.ed-hero__quote-word:first-child::before {
  content: "\201C";
  margin-right: .04em;
  opacity: .55;
}
.ed-hero__quote-word:last-child::after {
  content: "\201D";
  opacity: .55;
}
.ed-hero__quote figcaption {
  margin-top: clamp(20px, 2.6vh, 40px);
  font-family: var(--f-sans);              /* official DOLL type (Basis Grotesque Pro) */
  font-weight: 600;
  font-size: clamp(13px, 1vw, 15px);
  letter-spacing: .08em;                   /* modest tracking for the caps, not mono-wide */
  text-transform: uppercase;
  color: rgba(255, 255, 255, .7);
}

/* Reduced motion: scrim + quote (and its words + attribution) visible
   at rest, no animation, no blur. The quote keeps its translateX(-50%)
   centering (transform: none would knock it off-center). Cutout ambient
   pulse also cancelled. */
@media (prefers-reduced-motion: reduce) {
  html.is-scripted .ed-hero__scrim { opacity: 1 !important; }
  html.is-scripted .ed-hero__quote {
    opacity: 1 !important;
    transform: translateX(-50%) !important;
  }
  html.is-scripted .ed-hero__quote-word,
  html.is-scripted .ed-hero__quote figcaption {
    opacity: 1 !important;
    transform: none !important;
  }
  html.is-scripted .ed-hero .ed-image--cutout {
    animation: none !important;
    filter: none !important;
  }
  html.is-scripted .ed-hero .ed-headline {
    filter: none !important;
  }
}

/* ── Ambient portrait pulse ─────────────────────────────────
   Very subtle brightness + saturate loop on the cutout while
   the hero is at rest. Makes the composition feel alive without
   drawing attention. Filter is separate from transform, so it
   doesn't conflict with the GSAP timeline that owns the
   cutout's transform in both phase 1 and phase 2. */
@keyframes ed-hero-portrait-breathe {
  0%, 100% { filter: brightness(1) saturate(1); }
  50%      { filter: brightness(1.04) saturate(1.05); }
}
html.is-scripted .ed-hero .ed-image--cutout {
  animation: ed-hero-portrait-breathe 8s ease-in-out infinite;
}

/* ── Per-letter cursor magnetic reaction ────────────────────
   Each character in the hero headlines is split into its own
   .ed-letter span (see the split helper in about.php). The
   letters then react individually to cursor proximity: as the
   mouse gets closer to a letter, that letter lifts up (translateY)
   and grows (scale). Falloff is radial and quadratic so the
   effect concentrates on the letter the cursor is over.

   JS uses `gsap.quickTo` per letter for smoothed interpolation;
   CSS just declares each letter as an animation-ready
   inline-block with a pivot below its centre so the "lift"
   feels grounded. */
.ed-letter {
  display: inline-block;
  will-change: transform;
  transform-origin: center 65%;
}
/* Letters inside the About hero: the metallic plate is clipped to text
   on the PARENT headline, so the letters themselves must not be
   composited into their own layers — will-change: transform (from the
   global .ed-letter rule) would break background-clip: text through
   them. Neutralize it here. */
.ed-hero--about .ed-letter {
  pointer-events: auto;
  will-change: auto;
}
/* Same constraint for the <em> around EMOTIONS: positioned descendants
   are excluded from the parent's background-clip: text paint (they
   render in a separate pass), which left the whole line invisible.
   Static here; its ::after underline re-anchors to the .ed-headline
   --front line (position: relative), and since the em IS the entire
   line, the underline geometry is unchanged. */
.ed-hero--about .ed-stack .ed-headline em {
  position: static;
}

/* ── Intro cascade — the three display lines assemble letter-by-letter ──
   On load the whole stack (EVOKING · REAL · EMOTIONS) sweeps in one
   continuous wave: each letter rises, sharpens from blur and fades up,
   staggered by its inline --i (set continuously across all lines in
   about.php). The hero is always above the fold, so this runs on load
   (no IntersectionObserver dependency) — and because the letters' resting
   state is fully visible, the title can NEVER ship blank if JS/animation
   never runs.

   Movement uses the `translate` LONGHAND, not `transform`: GSAP owns each
   letter's `transform` for the cursor-magnetism reaction, and the two
   compose independently, so the intro and the magnetism never fight. No
   clip-path either (it risked clipping the large display glyphs). */
@keyframes edLetterIntro {
  from { opacity: 0; filter: blur(12px); translate: 0 0.3em; }
  55%  { filter: blur(0); }
  to   { opacity: 1; filter: blur(0);   translate: 0 0; }
}

/* The three lines no longer fade in as blocks — the per-letter cascade
   carries the whole entrance. Keeping the line itself visible at rest also
   removes the "blank hero if the reveal observer never fires" risk for the
   H1. GSAP still writes the line's transform/opacity on scroll (inline). */
html.is-scripted .ed-hero--about .ed-stack .ed-headline[data-reveal] {
  opacity: 1;
  transform: none;
  transition: none;
}
html.is-scripted .ed-hero--about .ed-stack .ed-letter {
  animation: edLetterIntro 0.72s var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 34ms + 140ms);
  will-change: opacity, filter;
}
@media (prefers-reduced-motion: reduce) {
  html.is-scripted .ed-hero--about .ed-stack .ed-letter {
    animation: none !important;
    opacity: 1 !important;
    translate: 0 0 !important;
    filter: none !important;
  }
}

/* Mobile: pinned mode is off, layout is flow — quote just stacks
   with the other content, always visible (no scroll-driven reveal). */
@media (max-width: 640px) {
  .ed-hero__quote {
    position: relative;
    top: auto;
    left: auto;
    max-width: 100%;
    pointer-events: auto;
  }
  html.is-scripted .ed-hero__quote { opacity: 1; }
}

/* Mobile ordering — captions before the cutout in flow when the
   Editorial System collapses .ed-hero to a single column. */
@media (max-width: 1024px) {
  .ed-hero--about .ed-caption--tl { grid-row: 2; }
  .ed-hero--about .ed-caption--br { grid-row: 4; }

  /* Pinned hero collapses on tablet + mobile — no sticky, no runway.
     The composition becomes normal flow content (same as the
     base .ed-hero mobile layout above). GSAP's pinned timeline
     is also disabled at this breakpoint from the JS side.
     NOTE: the compound selectors below are intentional — the base
     `.ed-hero--pinned` / `.ed-hero__inner` rules live LATER in the
     file, so at equal specificity they'd win by source order and
     re-pin the hero on mobile (clipping the bio + stats behind a
     100vh overflow:hidden box). The extra class raises specificity
     so this collapse always wins. */
  .ed-hero.ed-hero--pinned {
    height: auto;
    min-height: auto;
    overflow: visible;
    padding: clamp(80px, 12vh, 120px) var(--pad-x) clamp(40px, 6vh, 60px);
  }
  .ed-hero--pinned .ed-hero__inner {
    position: relative;
    height: auto;
    overflow: visible;
    padding: 0;
    isolation: isolate;   /* preserve the layer stacking context on mobile too */
    display: grid;
    grid-template-rows: auto auto auto;
    row-gap: clamp(20px, 3vh, 32px);
  }
}

/* ── Selected work · scroll-driven tilted-poster gallery ──────────────
   A horizontal strip of tilted posters (photo only). JS pins the strip and
   scrubs it sideways as you scroll the section (.is-live), revealing the rest;
   without JS / reduced motion it stays a plain horizontal-scroll strip. */
.works { position: relative; }
.works__pin {
  position: sticky; top: 0;
  height: 100vh;
  display: flex; align-items: center;
  overflow-x: auto; overflow-y: hidden;      /* fallback: native horizontal scroll */
  scrollbar-width: none;
}
.works__pin::-webkit-scrollbar { display: none; }
.works.is-live .works__pin { overflow: hidden; }   /* JS drives the transform */
.works__track {
  display: flex; align-items: center;
  gap: clamp(28px, 4vw, 72px);
  padding-inline: clamp(24px, 8vw, 160px);
  padding-block: 6vh;
  will-change: transform;
}
.works__item {
  flex: 0 0 auto;
  transform: rotate(var(--rot, 0deg));   /* fallback tilt (no-JS / small screens) */
  transition: transform .6s var(--ease-out);
}
/* When JS drives the arc every frame, the transition would smear it. */
.works.is-live .works__item,
.works.is-arc .works__item { transition: none; will-change: transform; }
.works__card {
  display: block; position: relative;
  width: clamp(230px, 25vw, 348px);
  aspect-ratio: 3 / 4;
  border-radius: clamp(8px, .9vw, 14px);
  overflow: hidden;
  background: var(--ink-2, #111114);
  box-shadow: 0 40px 72px -30px rgba(0, 0, 0, .8), 0 8px 24px -12px rgba(0, 0, 0, .6);
  transition: transform .55s var(--ease-out), box-shadow .55s var(--ease-out);
}
.works__media, .works__bg { position: absolute; inset: 0; }
.works__media img, .works__media video {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
/* Hover / keyboard focus — the poster lifts forward (its arc tilt is kept). */
.works__item:hover,
.works__item:has(.works__card:focus-visible) { z-index: 2; }
.works__item:hover .works__card,
.works__card:focus-visible {
  transform: translateY(-12px) scale(1.03);
  box-shadow: 0 56px 96px -30px rgba(0, 0, 0, .85), 0 0 0 1px rgba(255, 255, 255, .08);
}
.works__card:focus-visible { outline: 2px solid var(--paper); outline-offset: 4px; }
@media (max-width: 700px) {
  .works__card { width: clamp(200px, 62vw, 300px); }
  .works__track { gap: clamp(20px, 6vw, 40px); }
  /* Swipe snaps a poster to centre (that one rides the top of the arc). */
  .works__pin { scroll-snap-type: x proximity; scroll-padding: 0 50%; }
  .works__item { scroll-snap-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .works__item, .works__card { transition: none; }
  .works__item:hover { transform: rotate(var(--rot, 0deg)); }
  .works__item:hover .works__card,
  .works__card:focus-visible { transform: none; }
}

/* ── Section header (above services) ─────────────────────── */
.what-section {
  padding-top: clamp(56px, 9vh, 110px);
}
.what-section__head {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(28px, 4vw, 72px);
  align-items: end;
  margin-bottom: clamp(40px, 6vh, 80px);
}
.what-section__head .kicker {
  grid-column: 1 / -1;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  opacity: .55;
}
.what-section__title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(40px, 7vw, 110px);
  line-height: .96;
  letter-spacing: -.035em;
  color: var(--paper);
  text-wrap: balance;
}
.what-section__lede {
  font-size: clamp(14px, 1.4vw, 18px);
  line-height: 1.5;
  color: var(--paper);
  opacity: .65;
  max-width: 36ch;
}
@media (max-width: 800px) {
  .what-section__head { grid-template-columns: 1fr; }
}

/* ── WHAT I DO · one card per section, with a service accordion ───────
   Each card carries a glowing orb + section title up top, and the section's
   services as collapsible subtitles below — each reveals its description on
   hover or click. Colour-coded per section. */
.svc-cards {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2vw, 34px);
  align-items: start;
}
.svc-card {
  /* Neon-glass frame — same treatment as the "Find me elsewhere" tiles:
     warm rim-light on the top bevel, a neon rim in the section colour on the
     bottom, an interior vignette, and an ambient bloom that breathes. */
  --bevel:
    inset 0 1.5px 1.5px rgba(255, 196, 138, .5),
    inset 0 -3px 9px color-mix(in srgb, var(--accent) 55%, rgba(255, 255, 255, .5)),
    inset 0 0 42px rgba(0, 0, 0, .5);
  display: flex;
  flex-direction: column;
  min-height: clamp(460px, 58vh, 600px);
  padding: clamp(24px, 2vw, 36px);
  border-radius: clamp(24px, 2.2vw, 36px);
  background: radial-gradient(120% 72% at 50% 0%, #15111d 0%, #0b0a10 52%, #08070c 100%);
  border: 1px solid rgba(255, 255, 255, .06);
  box-shadow:
    var(--bevel),
    0 0 42px -10px color-mix(in srgb, var(--accent) 75%, transparent),
    0 0 92px -14px color-mix(in srgb, var(--accent) 48%, transparent),
    0 26px 54px -26px rgba(0, 0, 0, .85);
  overflow: hidden;
  animation: svcCardBreathe 6s ease-in-out infinite alternate;
  animation-delay: var(--breathe-delay, 0s);
}

/* Hero — glowing orb with the section title centred over it */
.svc-card__hero {
  position: relative;
  display: grid; place-items: center;
  min-height: clamp(180px, 24vh, 260px);
  margin-bottom: clamp(18px, 3vh, 40px);
}
.svc-card__orb {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: min(76%, 230px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 50% 44%,
    var(--accent) 0%, color-mix(in srgb, var(--accent) 62%, #000) 52%,
    color-mix(in srgb, var(--accent) 30%, transparent) 74%, transparent 100%);
  filter: blur(4px);
  box-shadow: 0 0 90px -12px var(--accent);
  animation: svcOrbBreathe 6s ease-in-out infinite alternate;
  /* Reacts (below) when its services are explored — filter/shadow only, so it
     never fights the breathe animation's transform. */
  transition: filter .55s var(--ease), box-shadow .55s var(--ease);
}
/* Delight — exploring a service in a card makes that card's orb flare, as if
   the section lights up in response to your curiosity. Hover on desktop; open
   state so it also fires on tap (mobile, where there is no hover). */
.svc-card:has(.svc-acc__head:hover) .svc-card__orb,
.svc-card:has(.svc-acc.is-open) .svc-card__orb {
  filter: blur(3px) saturate(1.25) brightness(1.16);
  box-shadow: 0 0 128px -6px var(--accent);
}
.svc-card__title {
  position: relative; z-index: 2;
  margin: 0; text-align: center;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(30px, 2.4vw, 40px);
  line-height: 1.08;
  letter-spacing: -.03em;
  color: var(--paper);
  text-shadow: 0 2px 26px rgba(0, 0, 0, .55);
  text-wrap: balance;
}

/* Accordion — anchored to the bottom of the card (no dividers) */
.svc-card__list { margin-top: auto; display: flex; flex-direction: column; }
.svc-acc__head {
  all: unset; box-sizing: border-box;
  position: relative;                       /* anchor for the right-edge chevron */
  isolation: isolate;
  display: flex; align-items: center; justify-content: center;
  width: 100%; padding: clamp(13px, 1.5vh, 17px) 26px;
  cursor: pointer;
}
.svc-acc__head:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent) 70%, #fff);
  outline-offset: 3px; border-radius: 4px;
}
/* Delight — the section's accent glow BLOOMS behind the label on hover/open
   ("colour arrives as an event"), echoing the card's orb. */
.svc-acc__head::before {
  content: "";
  position: absolute; inset: 1px 10px;
  border-radius: 16px;
  background: radial-gradient(58% 132% at 50% 50%,
    color-mix(in srgb, var(--accent) 42%, transparent) 0%, transparent 70%);
  opacity: 0; transform: scale(.86);
  transition: opacity .45s var(--ease), transform .55s var(--ease-out);
  pointer-events: none; z-index: -1;
}
.svc-acc__name {
  position: relative; z-index: 1;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(21px, 1.55vw, 26px);
  letter-spacing: -.015em;
  text-align: center;
  color: var(--paper);
  transition: color .3s var(--ease), transform .4s var(--ease-out);
}
/* Expand indicator — a "+" that morphs to "−" when the item opens. Two bars
   (::before horizontal, ::after vertical); on open the vertical bar spins flat. */
.svc-acc__chev {
  position: absolute; right: 2px; top: 50%; z-index: 1;
  width: 16px; height: 16px;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, .5);
  transition: color .3s var(--ease);
}
.svc-acc__chev::before,
.svc-acc__chev::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 16px; height: 2px; border-radius: 2px;
  background: currentColor;
  transition: transform .4s var(--ease-out);
}
.svc-acc__chev::before { transform: translate(-50%, -50%); }                 /* horizontal bar */
.svc-acc__chev::after  { transform: translate(-50%, -50%) rotate(90deg); }   /* vertical bar → + */
/* Collapsible description */
.svc-acc__panel {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .5s var(--ease-out);
}
.svc-acc__panel-inner { overflow: hidden; min-height: 0; }
.svc-acc__desc {
  margin: 0; padding: 0 clamp(4px, 1.4vw, 16px) clamp(14px, 1.6vh, 18px);
  font-family: var(--f-sans);   /* official body sans (was an undefined --f-body) */
  font-size: clamp(18px, 1.25vw, 20px);
  line-height: 1.55;
  letter-spacing: .003em;   /* light-on-dark reads lighter; open the tracking a hair */
  color: rgba(255, 255, 255, .74);
  text-align: center;       /* match the centred title + subtitles */
  text-wrap: balance;       /* even, centred lines */
  /* Delight — the copy lifts + fades in a beat after the panel opens. */
  opacity: 0; transform: translateY(7px);
  transition: opacity .45s var(--ease-out) .06s, transform .5s var(--ease-out) .06s;
}
/* OPEN state (tap/click) — works on every device, incl. touch. */
.svc-acc.is-open .svc-acc__panel { grid-template-rows: 1fr; }
.svc-acc.is-open .svc-acc__head::before { opacity: 1; transform: scale(1); }
.svc-acc.is-open .svc-acc__name {
  color: color-mix(in srgb, var(--accent) 55%, #fff);
  transform: translateY(-1px);
}
.svc-acc.is-open .svc-acc__desc { opacity: 1; transform: none; }
.svc-acc.is-open .svc-acc__chev { color: color-mix(in srgb, var(--accent) 60%, #fff); }
/* + → −  : the vertical bar spins flat onto the horizontal one. */
.svc-acc.is-open .svc-acc__chev::after { transform: translate(-50%, -50%) rotate(0deg); }

/* HOVER-preview — pointer devices only, so touch never gets a sticky :hover
   (on phones the panel opens ONLY on tap). */
@media (hover: hover) {
  .svc-acc:hover .svc-acc__panel { grid-template-rows: 1fr; }
  .svc-acc:hover .svc-acc__head::before { opacity: 1; transform: scale(1); }
  .svc-acc:hover .svc-acc__name {
    color: color-mix(in srgb, var(--accent) 55%, #fff);
    transform: translateY(-1px);
  }
  .svc-acc:hover .svc-acc__desc { opacity: 1; transform: none; }
  .svc-acc:hover .svc-acc__chev { color: color-mix(in srgb, var(--accent) 60%, #fff); }
  .svc-acc:hover .svc-acc__chev::after { transform: translate(-50%, -50%) rotate(0deg); }
}

@keyframes svcOrbBreathe {
  from { opacity: .8; transform: translate(-50%, -50%) scale(.96); }
  to   { opacity: 1;  transform: translate(-50%, -50%) scale(1.06); }
}
/* Frame bloom breathing (bevel stays constant; only the outer halo pulses) */
@keyframes svcCardBreathe {
  from { box-shadow: var(--bevel),
    0 0 34px -12px color-mix(in srgb, var(--accent) 64%, transparent),
    0 0 72px -16px color-mix(in srgb, var(--accent) 40%, transparent),
    0 26px 54px -26px rgba(0, 0, 0, .85); }
  to   { box-shadow: var(--bevel),
    0 0 48px -8px color-mix(in srgb, var(--accent) 86%, transparent),
    0 0 108px -10px color-mix(in srgb, var(--accent) 56%, transparent),
    0 26px 54px -26px rgba(0, 0, 0, .85); }
}

@media (max-width: 900px) {
  .svc-cards { grid-template-columns: 1fr; max-width: 560px; gap: clamp(18px, 3vh, 28px); }
  .svc-card { min-height: 0; }
  .svc-card__hero { min-height: clamp(160px, 26vh, 220px); }
}

@media (prefers-reduced-motion: reduce) {
  .svc-card, .svc-card__orb { animation: none; }
  .svc-acc__panel, .svc-acc__chev, .svc-acc__name,
  .svc-acc__chev::before, .svc-acc__chev::after,
  .svc-acc__desc, .svc-acc__head::before, .svc-card__orb { transition: none; }
}

/* ── Reduced motion / mobile tweaks ──────────────────────── */
@media (max-width: 720px) {
  .what-reel__caption { font-size: 14px; }
  /* No scroll-scale on mobile — the reel is a FIXED block that already fills
     most of the screen, so you scroll past it quickly (no 200vh runway). */
  .what-reel {
    height: auto;
    contain: none;
    padding: clamp(4px, 1vh, 12px) 0 clamp(22px, 4vh, 44px);
  }
  .what-reel__sticky {
    position: static;
    height: auto;
    overflow: visible;
    contain: none;
  }
  .what-reel__stage {
    /* Keep the reel at the video's native 16:9 so the landscape frame shows
       in full — a tall portrait stage cropped the sides heavily on phones. */
    width: 92vw;
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: 20px;
    cursor: pointer;
  }
  .what-reel__video { object-fit: contain; background: var(--ink-2); }
}

/* Phones — compact hero (title sits near the top, close to the reel — no huge
   dead air) and a much larger four-line headline. */
@media (max-width: 640px) {
  .what-hero--v2 {
    min-height: auto;
    padding-top: clamp(92px, 14vh, 128px);   /* just clears the fixed nav */
    padding-bottom: clamp(12px, 2.4vh, 24px);
    justify-content: flex-start;
  }
  .what-hero__mbr { display: inline; }        /* activate the mid-line break */
  .what-hero__big {
    font-size: clamp(46px, 13.5vw, 74px);
    line-height: 1.0;
    letter-spacing: -.035em;
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .what-hero__line > span,
  .what-reel__blob {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

/* =========================================================
   PAGE: ABOUT
   ========================================================= */
.page-about-body {
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 100svh;
  background: var(--ink);
}
.page-about { position: relative; padding-bottom: clamp(40px, 6vh, 80px); }

/* Biography now lives INSIDE the pinned hero timeline (.ed-hero__bio),
   revealed one paragraph at a time as the portrait slides right. See the
   .ed-hero__bio block earlier in this file + the phase-3 timeline in
   script.js. The old standalone .about-bio pinned section was retired. */

/* Stats — integrated into the pinned hero finale (see .ed-hero__stats +
   the phase-3 timeline in script.js). The metric styles here are shared;
   numbers count up as you scroll, each draws a spectrum rule as it lands,
   and the country tags stagger in — colour arriving as an event. */
.about-stats__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 5vw, 88px);
  justify-items: center;
  align-items: end;                    /* values share one baseline */
  text-align: center;
}
.about-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(14px, 1.8vh, 22px);
}
.about-stat__num {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(58px, 7.8vw, 116px);
  line-height: .9;
  letter-spacing: -.045em;
  color: var(--paper);
  font-variant-numeric: tabular-nums;  /* stable digits while counting up */
  font-feature-settings: "tnum" 1;
  /* The counted number lands inside its stat's hue — the finale's colour event
     reaches the loudest elements, not only the thin rule. Stays white + legible;
     the glow is additive light on black. Two layers: a tight tint + a soft bloom. */
  text-shadow:
    0 0 16px color-mix(in srgb, var(--c, var(--spectrum-violet)) 34%, transparent),
    0 0 46px color-mix(in srgb, var(--c, var(--spectrum-violet)) 26%, transparent);
}
/* "Worldwide" is a word, not a number — smaller but weighty, nudged onto the
   numerals' baseline so the row still reads as one landed line. */
.about-stat__num--word {
  font-size: clamp(34px, 4.7vw, 70px);
  letter-spacing: -.02em;
  line-height: 1.02;
  padding-bottom: clamp(6px, 1vh, 15px);
}
/* Spectrum rule — draws in under each value as it lands. Per-stat hue; the
   worldwide stat carries the full rainbow (global reach) + a wider stroke. */
.about-stat__rule {
  width: clamp(40px, 4.5vw, 64px);
  height: 4px;
  border-radius: 2px;
  transform-origin: center;
  background: var(--rainbow);
  box-shadow: 0 0 16px -2px currentColor;   /* the spectrum stroke glows — a committed colour event */
  color: var(--spectrum-violet);
}
/* Per-stat hue drives both the rule and the number's halo (see .about-stat__num). */
.about-stat--1 { --c: var(--spectrum-blue); }
.about-stat--2 { --c: var(--spectrum-pink); }
.about-stat--3 { --c: var(--spectrum-mint); }
.about-stat--1 .about-stat__rule { color: var(--spectrum-blue); }
.about-stat--2 .about-stat__rule { color: var(--spectrum-pink); }
.about-stat--3 .about-stat__rule { color: var(--spectrum-mint); }
.about-stat--1 .about-stat__rule { background: linear-gradient(90deg, var(--spectrum-blue), var(--spectrum-violet)); }
.about-stat--2 .about-stat__rule { background: linear-gradient(90deg, var(--spectrum-pink), var(--spectrum-orange)); }
.about-stat--3 .about-stat__rule { background: var(--rainbow); width: clamp(56px, 7vw, 104px); }
.about-stat__label {
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(15px, 1.2vw, 19px);
  letter-spacing: .07em;   /* uppercase: open the tracking so the caps breathe */
  text-transform: uppercase;
  color: var(--paper);
}

/* Country band — the receipts behind "Worldwide". Spectrum-dotted mono tags
   in a centred flowing row; each reveals with a stagger. */
.about-stats__countries {
  list-style: none;
  margin: clamp(40px, 6vh, 76px) 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(18px, 3vw, 46px);
}
.about-country {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(15px, 1.3vw, 19px);
  letter-spacing: .06em;   /* uppercase tracking, matched to the stat labels */
  text-transform: uppercase;
  color: var(--paper);
  /* The stats panel is pointer-events:none (cursor parallax passes through);
     re-enable it here so the tags can actually be hovered, like the bio tiles. */
  pointer-events: auto;
  /* Tactile reward on hover: the dot swells + blooms and the label warms toward
     its hue. No tag-level transform — GSAP owns the tag's transform during the
     finale reveal, so a hover translate would just be overridden. */
  transition: color .32s var(--ease-out), text-shadow .32s var(--ease-out);
}
.about-country:hover {
  text-shadow: 0 0 20px color-mix(in srgb, var(--c) 60%, transparent);
}
.about-country__dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 14px 1px var(--c);   /* spectrum glow — colour as event */
  transition: transform .32s var(--ease-out), box-shadow .32s var(--ease-out);
}
.about-country:hover .about-country__dot {
  transform: scale(1.5);
  box-shadow: 0 0 20px 3px var(--c);
}
@media (prefers-reduced-motion: reduce) {
  /* Keep the hue bloom, drop the movement. */
  .about-country:hover .about-country__dot { transform: none; }
}
.about-country--1 { --c: var(--spectrum-blue); }
.about-country--2 { --c: var(--spectrum-violet); }
.about-country--3 { --c: var(--spectrum-pink); }
.about-country--4 { --c: var(--spectrum-orange); }
.about-country--5 { --c: var(--spectrum-yellow); }
.about-country--6 { --c: var(--spectrum-mint); }

/* ── Hero placement — right-side stat panel ─────────────────
   The metrics form a structured panel on the RIGHT of the frame: each stat
   is a row with its LABEL toward the centre and its big VALUE anchored to
   the page edge, joined by a full-width spectrum rule. The labels reaching
   inward + the rules spanning the zone fill the right side evenly, so the
   panel balances the copy on the left instead of a thin edge-hugging column.
   Vertically centred to sit on the paragraph's optical line. Hidden until
   the finale, where the portrait slides out and this reveals + counts. */
.ed-hero__stats {
  position: absolute;
  left: 57vw;                     /* starts just right of centre, past the copy */
  right: clamp(24px, 6vw, 110px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  pointer-events: none;
}
.ed-hero__stats .about-stats__row {
  display: flex;
  flex-direction: column;
  /* Bigger vertical breath between the three large values (they read as
     ~95px each) so the panel doesn't feel stacked-tight. */
  gap: clamp(24px, 3.4vh, 46px);
}
/* Each stat is a row: label (left, toward centre) + big value (right, at the
   edge) sharing a baseline, with a full-width spectrum rule drawn beneath. */
.ed-hero__stats .about-stat {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  column-gap: clamp(14px, 1.8vw, 36px);
  row-gap: clamp(10px, 1.4vh, 18px);
  width: 100%;
}
.ed-hero__stats .about-stat__label {
  grid-column: 1; grid-row: 1;
  justify-self: start;
  font-size: clamp(14px, 1.1vw, 17px);
  white-space: nowrap;
}
.ed-hero__stats .about-stat__num {
  grid-column: 2; grid-row: 1;
  justify-self: end;
  font-size: clamp(58px, 7.6vw, 122px);   /* the count-up climax — monumental */
  line-height: .84;
}
.ed-hero__stats .about-stat__num--word {
  font-size: clamp(38px, 4.9vw, 76px);
  padding-bottom: 0;
}
.ed-hero__stats .about-stat__rule {
  grid-column: 1 / -1; grid-row: 2;
  width: 100%;
  transform-origin: left center;
}
/* Countries — a filled footer row under the panel, spread edge to edge. */
.ed-hero__stats .about-stats__countries {
  margin-top: clamp(20px, 2.8vh, 38px);
  padding-top: clamp(16px, 2vh, 26px);
  border-top: 1px solid var(--line);
  justify-content: space-between;
  gap: clamp(10px, 1.4vw, 22px);
}
.ed-hero__stats .about-country { font-size: clamp(13px, 1.05vw, 16px); }

/* GSAP owns the reveal on the pinned hero — kill CSS transitions so the
   scrubbed timeline renders crisply, and origin the rule from the left. */
.ed-hero__stats .about-stat__num,
.ed-hero__stats .about-stat__rule,
.ed-hero__stats .about-stat__label,
.ed-hero__stats .about-stats__countries,
.ed-hero__stats .about-country { transition: none; }
html.is-scripted .ed-hero__stats .about-stat__rule { transform-origin: left center; }
/* …but let the country label's hover glow ease (never opacity/transform —
   GSAP drives those in the reveal, so they stay untransitioned). */
.ed-hero__stats .about-country { transition: color .32s var(--ease-out), text-shadow .32s var(--ease-out); }

/* Pre-JS / initial hidden state (GSAP animates from here on desktop). The
   countries <ul> is hidden too — its top border would otherwise show from
   page load, before the finale reveal. */
html.is-scripted .about-stat__num   { opacity: 0; }
html.is-scripted .about-stat__rule  { transform: scaleX(0); }
html.is-scripted .about-stat__label { opacity: 0; }
html.is-scripted .about-country     { opacity: 0; }
html.is-scripted .ed-hero__stats .about-stats__countries { opacity: 0; }

/* Tablet + mobile: the pinned timeline is off — the panel sits in normal flow
   after the bio paragraphs, full-width, all visible. Rows keep the label|value
   shape, which reads well compact. */
@media (max-width: 1024px) {
  .ed-hero__stats {
    position: relative;
    left: auto; right: auto; top: auto;
    transform: none;
    margin: clamp(44px, 7vh, 76px) auto 0;
    width: 100%;
    max-width: 460px;
  }
  .ed-hero__stats .about-stat__num       { font-size: clamp(52px, 15vw, 82px); }
  .ed-hero__stats .about-stat__num--word { font-size: clamp(32px, 9vw, 50px); }
  html.is-scripted .about-stat__num,
  html.is-scripted .about-stat__label,
  html.is-scripted .about-country { opacity: 1; }
  html.is-scripted .about-stat__rule { transform: scaleX(1); }
  html.is-scripted .ed-hero__stats .about-stats__countries { opacity: 1; }
}

/* ── Résumé download button ─────────────────────────────────
   Integrated into the footer beside the email (secondary action). At rest a
   clean dark pill; on hover a rainbow glow BLOOMS behind it and tracks the
   cursor, the arrow dips, the pill lifts. It's also magnetic — leans toward
   the pointer (script.js). Colour as an event, per DESIGN.md. */
.resume-btn {
  /* Glow stays centred (--gx/--gy fixed at 50%); on hover it simply blooms
     behind the pill — no cursor-tracking or magnetic offset. */
  --gx: 50%; --gy: 50%;
  position: relative;
  display: inline-block;
  border-radius: 999px;
  text-decoration: none;
  isolation: isolate;
}
.resume-btn__glow {
  position: absolute;
  inset: -6px;                 /* tight halo hugging the pill (was -34%) */
  z-index: 0;
  border-radius: 999px;
  background:
    conic-gradient(from 0deg at var(--gx) var(--gy),
      var(--spectrum-blue), var(--spectrum-violet), var(--spectrum-pink),
      var(--spectrum-orange), var(--spectrum-yellow), var(--spectrum-mint),
      var(--spectrum-blue));
  filter: blur(10px) saturate(155%);   /* was blur(30px) */
  opacity: 0;
  transition: opacity .5s var(--ease-out);
  will-change: opacity;
}
.resume-btn__face {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px clamp(26px, 2.6vw, 36px);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(10, 10, 12, .82);
  color: var(--paper);
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(15px, 1.15vw, 17px);
  letter-spacing: -.01em;
  transition:
    border-color .5s var(--ease-out),
    transform .38s var(--ease-out),
    background .5s var(--ease-out);
}
.resume-btn__arrow {
  display: inline-flex;
  transition: transform .42s var(--ease-out);
}
.resume-btn:hover .resume-btn__glow  { opacity: .95; }
.resume-btn:hover .resume-btn__face  { border-color: rgba(255, 255, 255, .5); background: rgba(10, 10, 12, .72); transform: translateY(-3px); }
.resume-btn:hover .resume-btn__arrow { transform: translateY(5px); }
.resume-btn:active .resume-btn__face { transform: translateY(-1px) scale(.985); }
.resume-btn:focus-visible { outline: none; }
.resume-btn:focus-visible .resume-btn__face { border-color: var(--paper); box-shadow: 0 0 0 3px rgba(255, 255, 255, .25); }

/* Footer placement — pinned to the top-right of the footer, filling the
   otherwise-empty right side. Falls back to normal flow (under the email)
   once the footer stacks to one column. */
/* Footer résumé — a legend above the spectrum button, sitting at the TOP of
   the footer's right side (its own grid cell), above the link columns. As a
   grid item it stays clear of the columns on footers of any height. */
.site-foot__resume-zone {
  grid-area: resume;
  align-self: start;
  width: max-content;
  max-width: 100%;
}
.site-foot__resume-title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(30px, 3.4vw, 52px);
  line-height: 1.04;
  letter-spacing: -.03em;
  color: var(--paper);
  margin: 0 0 clamp(18px, 2.4vh, 28px);
  white-space: nowrap;             /* keep it on one line, one paragraph */
}
.site-foot__resume { margin: 0; }
@media (max-width: 900px) {
  .site-foot__resume-zone { width: auto; }
  .site-foot__resume-title { font-size: clamp(24px, 6.4vw, 34px); white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  .resume-btn, .resume-btn__face, .resume-btn__arrow, .resume-btn__glow { transition: none; }
  .resume-btn:hover .resume-btn__face { transform: none; }
}

/* ═════════════════════════════════════════════════════════════════
   ABOUT — page entrance choreography
   Each section gets a purpose-fit motion, not the same fade+rise on
   everything. All motion is gated on `html.is-scripted` so the page
   renders at rest for no-JS clients, crawlers, and prerender bots.
   Each overrides the default [data-reveal] utility with something
   that fits the content it's revealing.
   ═════════════════════════════════════════════════════════════════ */

/* ── Editorial Hero entrance choreography ────────────────────
   Generic to every .ed-hero on the site. Layers land in reading
   order: headlines cascade top→bottom, cutout image rises last,
   captions fade in at the corners. Spectrum <em> underline is
   the terminal beat — the ONE color event on the canvas. */
html.is-scripted .ed-hero .ed-headline[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 800ms var(--ease-out),
    transform 800ms var(--ease-out);
}
html.is-scripted .ed-hero .ed-headline[data-reveal].is-in {
  opacity: 1;
  transform: none;
}
/* Per-line stagger — 120ms between headlines inside an ed-stack.
   Uses nth-child so it works regardless of how many lines exist. */
html.is-scripted .ed-hero .ed-stack .ed-headline:nth-child(1)[data-reveal] { transition-delay: 0ms; }
html.is-scripted .ed-hero .ed-stack .ed-headline:nth-child(2)[data-reveal] { transition-delay: 120ms; }
html.is-scripted .ed-hero .ed-stack .ed-headline:nth-child(3)[data-reveal] { transition-delay: 240ms; }
html.is-scripted .ed-hero .ed-stack .ed-headline:nth-child(4)[data-reveal] { transition-delay: 360ms; }

html.is-scripted .ed-hero .ed-image--cutout[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 4vh, 0);
  transition:
    opacity 900ms var(--ease-out) 300ms,
    transform 900ms var(--ease-out) 300ms;
}
html.is-scripted .ed-hero .ed-image--cutout[data-reveal].is-in {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

html.is-scripted .ed-hero .ed-caption[data-reveal] {
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 600ms var(--ease-out) 1000ms,
    transform 600ms var(--ease-out) 1000ms;
}
/* Diagonal-corner staggering — pair each caption with its opposite */
html.is-scripted .ed-hero .ed-caption--tl[data-reveal] { transition-delay: 1000ms; }
html.is-scripted .ed-hero .ed-caption--br[data-reveal] { transition-delay: 1150ms; }
html.is-scripted .ed-hero .ed-caption--bl[data-reveal] { transition-delay: 1300ms; }
html.is-scripted .ed-hero .ed-caption--tr[data-reveal] { transition-delay: 1050ms; }
html.is-scripted .ed-hero .ed-caption[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* Spectrum <em> underline — draws AFTER everything has assembled.
   Starts at scaleX(0), animates to scaleX(1) via .is-in. */
html.is-scripted .ed-hero .ed-headline em::after {
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 900ms var(--ease-out);
}
html.is-scripted .ed-hero .ed-headline[data-reveal].is-in em::after {
  transform: scaleX(1);
  transition-delay: 1400ms;
}

/* ── Pinned hero — entrance is opacity-only ──────────────
   GSAP owns transform on pinned heroes (it drives the scroll
   timeline that reveals lines and slides the portrait right).
   These rules only neutralize the [data-reveal] entrance offset
   at rest; they must NOT use !important, or the CSS would beat
   GSAP's inline transforms and freeze the portrait in place. */
html.is-scripted .ed-hero--pinned .ed-headline[data-reveal],
html.is-scripted .ed-hero--pinned .ed-image--cutout[data-reveal] {
  transform: none;
  transition: opacity 800ms var(--ease-out);
}
html.is-scripted .ed-hero--pinned .ed-headline[data-reveal].is-in,
html.is-scripted .ed-hero--pinned .ed-image--cutout[data-reveal].is-in {
  transform: none;
}

/* ── Résumé entrance ────────────────────────────────────────
   The section fades + rises via the generic [data-reveal] utility; the
   button's own hover interaction carries the spectrum energy. Reduced
   motion falls back to the guard below. */

/* ── Reduced motion ─────────────────────────────────────────
   All choreographed sections land at rest. The site's global
   reduced-motion guard (line ~2368) already zeros durations, but
   we still need to reset transforms and clip-path so nothing
   stays hidden. */
@media (prefers-reduced-motion: reduce) {
  html.is-scripted .ed-hero .ed-headline,
  html.is-scripted .ed-hero .ed-caption {
    opacity: 1 !important;
    clip-path: none !important;
    transform: none !important;
    transition: none !important;
  }
  html.is-scripted .ed-hero .ed-image--cutout {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  html.is-scripted .ed-hero .ed-headline em::after {
    transform: scaleX(1) !important;
  }
}

/* ═════════════════════════════════════════════════════════════════
   WHAT I DO — entrance choreography
   Same principle as the About page: each section enters with a motion that
   FITS it, so no two reveals feel the same (kills the "fade+rise on every
   section" tell). Four distinct materials —
     · Hero      → line-mask rise (words climb from behind a clip)
     · Intro     → focus-in (blur → sharp), then the "inevitable" underline draws
     · Carousel  → lateral slide (items enter along the scroll axis)
     · Services  → the pillar underline sweeps in
   Each only neutralizes the generic [data-reveal] offset where a child
   animation already carries the reveal, so there's no double motion.
   ═════════════════════════════════════════════════════════════════ */

/* Hero — the words already rise from behind their line-mask, so the outer
   block must NOT also fade+rise; the lines are the whole reveal. */
html.is-scripted .what-hero__big[data-reveal] {
  opacity: 1;
  transform: none;
  transition: none;
}

/* Intro statement — a different material: it comes into FOCUS (blur → sharp)
   instead of sliding, then the rainbow underline on "inevitable" sweeps in as
   the terminal accent, tying the motion to the sentence's own emphasis. */
html.is-scripted .what-intro__lede[data-reveal] {
  opacity: 0;
  transform: translateY(8px);
  filter: blur(12px);
  transition:
    opacity 1s var(--ease-out),
    transform 1s var(--ease-out),
    filter 1s var(--ease-out);
}
html.is-scripted .what-intro__lede[data-reveal].is-in {
  opacity: 1;
  transform: none;
  filter: blur(0);
}
html.is-scripted .what-intro__lede[data-reveal] em::after {
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 800ms var(--ease-out);
}
html.is-scripted .what-intro__lede[data-reveal].is-in em::after {
  transform: scaleX(1);
  transition-delay: 650ms;
}

/* Reduced motion — the global guard (~line 2396) zeros durations and resets
   opacity/transform on [data-reveal], but it can't reach the intro's blur
   filter or the underline scale; reset those so nothing stays hidden/blurred. */
@media (prefers-reduced-motion: reduce) {
  html.is-scripted .what-intro__lede[data-reveal] { filter: none !important; }
  html.is-scripted .what-intro__lede[data-reveal] em::after { transform: none !important; }
}

.about-cta {
  padding: clamp(60px, 10vh, 140px) var(--pad-x) clamp(40px, 6vh, 80px);
  max-width: var(--maxw);
  margin: 0 auto;
}

/* =========================================================
   PAGE: CONTACT
   ========================================================= */
.page-contact-body {
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 100svh;
  background: var(--ink);
}
.page-contact { position: relative; } /* no bottom padding — the closing gradient reaches the very edge */

.contact-hero {
  padding: clamp(140px, 22vh, 220px) var(--pad-x) clamp(60px, 10vh, 120px);
  max-width: var(--maxw);
  margin: 0 auto;
  position: relative;
}
.contact-hero::after {
  content: "";
  position: absolute;
  top: 30%; right: -10%;
  width: 60vw; max-width: 800px; aspect-ratio: 1 / 1;
  background:
    radial-gradient(circle at center, rgba(162, 255, 216, .14), transparent 55%),
    radial-gradient(circle at 30% 70%, rgba(225, 79, 184, .10), transparent 60%);
  filter: blur(80px);
  pointer-events: none;
}
.contact-hero > * { position: relative; z-index: 1; }
.contact-hero__kicker {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  opacity: .55;
  color: var(--paper);
}
.contact-hero__title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(48px, 10vw, 180px);
  line-height: .95;
  letter-spacing: -.035em;
  color: var(--paper);
  margin-bottom: clamp(28px, 4vh, 56px);
  text-wrap: balance;
}
.contact-hero__title em {
  font-style: normal;
  position: relative;
  white-space: nowrap;
}
.contact-hero__title em::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: .05em;
  height: .08em;
  background: var(--rainbow);
  border-radius: 999px;
}
.contact-hero__intro {
  font-size: clamp(16px, 1.8vw, 22px);
  line-height: 1.5;
  color: var(--paper);
  opacity: .8;
  max-width: 56ch;
  margin-bottom: clamp(40px, 6vh, 80px);
}

/* Channels (email rows) */
.contact-channels {
  list-style: none;
  margin: 0; padding: 0;
  border-top: 1px solid var(--line);
}
.contact-channel a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: clamp(20px, 4vw, 60px);
  align-items: center;
  padding: clamp(20px, 3vh, 36px) 0;
  border-bottom: 1px solid var(--line);
  color: var(--paper);
  transition: padding-left .35s var(--ease);
}
.contact-channel a:hover { padding-left: clamp(12px, 2vw, 24px); }
.contact-channel__label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  opacity: .55;
}
.contact-channel__value {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(20px, 2.6vw, 36px);
  letter-spacing: -.018em;
  color: var(--paper);
  display: inline-flex; align-items: center; gap: 12px;
}
.contact-channel__value i {
  font-style: normal;
  font-family: var(--f-display);
  font-size: .7em;
  opacity: .55;
  transition: transform .35s var(--ease), opacity .35s var(--ease);
}
.contact-channel a:hover .contact-channel__value i { transform: translate(6px, -6px); opacity: 1; }
@media (max-width: 720px) { .contact-channel a { grid-template-columns: 1fr; gap: 6px; } }

/* ═════════════════════════════════════════════════════════════════
   GET IN TOUCH · reach — a sticky headline whose verb swaps as three
   scroll-driven panels (Contact · Project · Elsewhere) pass the viewport
   centre. Same mechanism as the About "meaning behind" section; black
   canvas, spectrum arrives as an event on the swapping verb + the accents.
   ═════════════════════════════════════════════════════════════════ */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ── Living-spectrum field — one fixed layer of drifting rainbow orbs behind
   the whole contact page. A soft vignette keeps content legible over it. ── */
.contact-field {
  position: fixed; inset: 0; z-index: 0;
  overflow: hidden; pointer-events: none;
}
.contact-field .blob { opacity: .5; }        /* softer than the About hero */
.contact-field .blob--5 { opacity: .34; }
.contact-field .blob--6 { opacity: .4; }
.contact-field::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(130% 90% at 50% 45%, transparent 42%, rgba(0, 0, 0, .32) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, .3) 0%, transparent 26%, transparent 72%, rgba(0, 0, 0, .34) 100%);
}

.contact-reach {
  position: relative; z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  /* No top padding on desktop: the first 100vh panel centres at the viewport
     middle, exactly matching the sticky headline. */
  padding: 0 var(--pad-x) clamp(60px, 12vh, 140px);
}
.contact-reach__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(40px, 7vw, 130px);
  align-items: start;
}

/* LEFT · a full-height sticky column; the headline flex-centres inside it so it
   lands on the exact viewport centre — the same centre each 100vh panel hits. */
.contact-reach__pin {
  position: sticky;
  top: 0;
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  align-self: start;
}
.contact-reach__headline {
  margin: 0;
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(46px, 6.4vw, 132px);
  line-height: .95; letter-spacing: -.04em;
  color: var(--paper); text-wrap: balance;
}
.contact-reach__headline > span { display: block; }
/* The arrow gently reaches toward "you" — a quiet, on-brand invitation. */
.contact-reach__you i {
  font-style: normal; display: inline-block;
  animation: reachArrowNudge 3s var(--ease-out) infinite;
}
@keyframes reachArrowNudge {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(.09em); }
}
/* The swappable verb: a solid spectrum hue per panel (colour as event — a
   single solid colour, never a gradient on text). */
.contact-reach__verb {
  color: var(--vc, var(--spectrum-blue));
  transition: color .5s var(--ease-out);
  text-shadow: 0 0 42px color-mix(in srgb, var(--vc, var(--spectrum-blue)) 40%, transparent);
}
.contact-reach__verb.is-swap { animation: reachVerbSwap .55s var(--ease-out); }
@keyframes reachVerbSwap {
  0%   { opacity: 0; transform: translateY(.12em); filter: blur(6px); }
  100% { opacity: 1; transform: translateY(0);     filter: blur(0); }
}

/* RIGHT · the three panels, each filling the viewport so exactly one is
   centred at a time (drives the verb swap). */
.contact-reach__panels { min-width: 0; }
.reach-panel {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(36px, 7vh, 90px) 0;
}
.reach-panel:first-child { padding-top: 0; }

/* ── Panel reveal — each panel's content rises + fades in, staggered, exactly
   as the panel reaches centre (the SAME page-local observer that swaps the
   verb adds `.is-in`, so reveal and verb land together). Its own `data-preveal`
   hook keeps it clear of the site-wide on-enter `[data-reveal]` system. Gated on
   `html.is-scripted` (set before paint), so no-JS / prerender shows content at
   rest. The divider draws in from the left instead of rising. ── */
html.is-scripted .reach-panel [data-preveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s var(--ease-out), transform .75s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 70ms);
}
html.is-scripted .reach-panel.is-in [data-preveal] { opacity: 1; transform: none; }
html.is-scripted .reach-panel__rule[data-preveal] {
  opacity: 1; transform: scaleX(0); transform-origin: left;
  transition: transform .8s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 70ms);
}
html.is-scripted .reach-panel.is-in .reach-panel__rule[data-preveal] { transform: scaleX(1); }
/* Safety fallback (JS adds `.reveal-shown` to on-screen panels shortly after
   load): snaps content visible with no transition, so a renderer that pauses
   transitions — the exact headless case — never ships this section blank. */
html.is-scripted .reach-panel.reveal-shown [data-preveal],
html.is-scripted .reach-panel.reveal-shown .reach-panel__rule[data-preveal] {
  opacity: 1; transform: none; transition: none;
}
@media (prefers-reduced-motion: reduce) {
  html.is-scripted .reach-panel [data-preveal],
  html.is-scripted .reach-panel__rule[data-preveal] {
    opacity: 1 !important; transform: none !important; transition: none;
  }
}
.reach-panel__rule {
  display: block; width: 100%; height: 1px;
  margin-bottom: clamp(28px, 4vh, 48px);
  background: linear-gradient(90deg,
    var(--vc, rgba(255, 255, 255, .5)) 0%,
    rgba(255, 255, 255, .14) 32%, rgba(255, 255, 255, .14) 100%);
}
.reach-panel__lede {
  margin: 0; max-width: 30ch;
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(20px, 1.9vw, 30px);
  line-height: 1.4; letter-spacing: -.01em;
  color: rgba(255, 255, 255, .82); text-wrap: pretty;
}
.reach-panel__lede--sm { font-size: clamp(16px, 1.4vw, 20px); color: rgba(255, 255, 255, .62); }
.reach-panel__title {
  margin: 0 0 clamp(14px, 2vh, 22px);
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(32px, 3.6vw, 56px);
  line-height: 1.02; letter-spacing: -.03em;
  color: var(--paper); text-wrap: balance;
}
/* *asterisk-wrapped* phrases take this panel's spectrum hue — the same colour
   (and soft glow) as the pinned verb, so the two read as one accent. */
.reach-panel__title em {
  font-style: normal;
  color: var(--vc, var(--spectrum-blue));
  text-shadow: 0 0 32px color-mix(in srgb, var(--vc, var(--spectrum-blue)) 32%, transparent);
}
.reach-panel__email {
  position: relative; width: fit-content;
  display: inline-flex; align-items: baseline; gap: 10px;
  margin: clamp(24px, 4vh, 40px) 0 clamp(16px, 2vh, 22px);
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(22px, 2.4vw, 40px);
  letter-spacing: -.02em; color: var(--paper);
}
.reach-panel__email::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -.08em;
  height: 2px; background: var(--rainbow);
  transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease-out);
}
.reach-panel__email:hover::after { transform: scaleX(1); }
.reach-panel__email i { font-style: normal; font-size: .7em; transition: transform .3s var(--ease-out); }
.reach-panel__email:hover i { transform: translate(4px, -4px); }
.reach-panel__meta {
  margin: 0; font-family: var(--f-mono); font-size: 12px;
  letter-spacing: .04em; color: rgba(255, 255, 255, .5);
}

/* ── Project form (composes a mailto — no backend) ── */
/* ── Project form — restrained, brand-typeset (Basis Grotesque Pro throughout).
   Airy underline fields; the label lifts and the rule warms on focus. ── */
.reach-form { margin-top: clamp(30px, 4.5vh, 52px); max-width: 540px; }
.reach-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(22px, 2.4vw, 40px); }
.reach-field { display: block; margin-bottom: clamp(26px, 3.6vh, 40px); }
.reach-field__label {
  display: block; margin-bottom: 12px;
  font-family: var(--f-sans); font-weight: 600;         /* official DOLL type — Basis Grotesque Pro */
  font-size: clamp(16px, 1.25vw, 19px); letter-spacing: -.005em;
  color: var(--paper);                                   /* white, high-contrast over the field */
  text-shadow: 0 1px 14px rgba(0, 0, 0, .45);
}
.reach-field__label i { color: var(--spectrum-pink); font-style: normal; margin-left: 3px; }
.reach-field input,
.reach-field textarea {
  width: 100%; border-radius: 0;
  background: transparent;
  border: 0; border-bottom: 1px solid rgba(255, 255, 255, .34);
  padding: 12px 0;
  font-family: var(--f-sans); font-weight: 400;
  font-size: clamp(18px, 1.5vw, 22px); letter-spacing: -.01em;
  color: var(--paper);
  transition: border-color .4s var(--ease-out);
}
.reach-field input::placeholder,
.reach-field textarea::placeholder { color: rgba(255, 255, 255, .4); }
.reach-field textarea { resize: vertical; min-height: 3.6em; line-height: 1.5; }
.reach-field input:focus,
.reach-field textarea:focus {
  outline: none;
  border-bottom-color: var(--spectrum-pink);
}
.reach-field input:user-invalid,
.reach-field textarea:user-invalid { border-bottom-color: var(--spectrum-orange); }
.reach-form__foot {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  margin-top: clamp(12px, 2vh, 22px);
}
.reach-form__submit {
  display: inline-flex; align-items: center; gap: 11px;
  padding: 15px 32px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .22);
  background: transparent; color: var(--paper); cursor: pointer;
  font-family: var(--f-sans); font-weight: 500; font-size: 16px; letter-spacing: -.005em;
  transition: background .35s var(--ease-out), border-color .35s var(--ease-out), color .35s var(--ease-out), transform .12s var(--ease-out);
}
.reach-form__submit i { font-style: normal; transition: transform .3s var(--ease-out); }
.reach-form__submit:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.reach-form__submit:hover i { transform: translateX(4px); }
.reach-form__submit:active { transform: scale(.97); }
.reach-form__note { margin: 0; font-family: var(--f-sans); font-weight: 500; font-size: 14px; color: var(--spectrum-mint); }

/* ── Elsewhere · social tiles — 3D neon squircles. Each glossy black tile is a
   little extruded app-icon: a warm rim-light catches the top bevel, a bright
   spectrum rim glows along the bottom bevel, and an ambient bloom in the tile's
   own hue radiates behind it into the black. The glyph burns neon-white; the
   whole thing breathes at rest and flares on hover ("press to activate"). ── */
.reach-social--tiles {
  list-style: none; padding: 0;
  margin: clamp(30px, 4.5vh, 48px) 0 0;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 26px);
}
.social-tile { list-style: none; }
.social-tile a {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  text-decoration: none; color: var(--paper);
}
.social-tile__icon {
  /* Fixed bevel: warm key-light on the top edge + a neon rim on the bottom
     edge (the tile's own hue), plus an interior vignette for glassy depth.
     Kept in a var so the breathe/hover keyframes only swap the outer bloom. */
  --bevel:
    inset 0 1.5px 1.5px rgba(255, 196, 138, .5),
    inset 0 -3px 6px color-mix(in srgb, var(--c) 60%, rgba(255, 255, 255, .5)),
    inset 0 0 24px rgba(0, 0, 0, .62);
  position: relative; isolation: isolate;
  width: 100%; max-width: 106px; aspect-ratio: 1;
  display: grid; place-items: center;
  border-radius: 27px;
  background:
    radial-gradient(70% 58% at 50% 44%, color-mix(in srgb, var(--c) 24%, #0b0b11), #060609 80%);
  border: 1px solid rgba(255, 255, 255, .05);
  box-shadow:
    var(--bevel),
    0 0 34px -6px color-mix(in srgb, var(--c) 80%, transparent),
    0 0 72px -6px color-mix(in srgb, var(--c) 50%, transparent),
    0 20px 42px -16px rgba(0, 0, 0, .82);
  animation: socialTileBreathe 5.5s ease-in-out infinite alternate;
  animation-delay: calc(var(--d, 0s) * -1);
  transition: transform .5s var(--ease-out), border-color .4s ease, box-shadow .5s ease;
}
/* Glass sheen: a top-down gloss highlight + a hue light-pool rising from the
   bottom bevel, so the surface reads as a lit, curved solid. */
.social-tile__icon::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  pointer-events: none; z-index: 1; mix-blend-mode: screen; opacity: .9;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 34%),
    radial-gradient(88% 58% at 50% 116%, color-mix(in srgb, var(--c) 46%, transparent), transparent 72%);
}
.social-tile__icon svg {
  position: relative; z-index: 2;
  width: 42%; height: 42%; color: #fff;
  filter:
    drop-shadow(0 0 10px color-mix(in srgb, var(--c) 80%, #fff))
    drop-shadow(0 0 24px color-mix(in srgb, var(--c) 55%, transparent));
  transition: filter .4s ease, transform .5s var(--ease-out);
}
.social-tile a:hover .social-tile__icon {
  transform: translateY(-6px) scale(1.025);
  border-color: rgba(255, 255, 255, .14);
  animation-play-state: paused;
  box-shadow:
    var(--bevel),
    inset 0 -4px 9px color-mix(in srgb, var(--c) 72%, #fff),
    0 0 52px -2px color-mix(in srgb, var(--c) 92%, transparent),
    0 0 118px 2px color-mix(in srgb, var(--c) 62%, transparent),
    0 28px 54px -18px rgba(0, 0, 0, .85);
}
.social-tile a:hover .social-tile__icon svg {
  transform: scale(1.1);
  filter:
    drop-shadow(0 0 14px #fff)
    drop-shadow(0 0 34px color-mix(in srgb, var(--c) 85%, transparent));
}
.social-tile a:focus-visible .social-tile__icon {
  outline: 2px solid color-mix(in srgb, var(--c) 80%, #fff); outline-offset: 3px;
}
.social-tile__label {
  font-family: var(--f-sans); font-weight: 500; font-size: 13px;
  letter-spacing: -.005em; color: rgba(255, 255, 255, .52);
  transition: color .3s ease;
}
.social-tile a:hover .social-tile__label { color: color-mix(in srgb, var(--c) 32%, #fff); }
@keyframes socialTileBreathe {
  from { box-shadow: var(--bevel),
    0 0 28px -8px color-mix(in srgb, var(--c) 70%, transparent),
    0 0 56px -8px color-mix(in srgb, var(--c) 42%, transparent),
    0 20px 42px -16px rgba(0, 0, 0, .82); }
  to   { box-shadow: var(--bevel),
    0 0 42px -4px color-mix(in srgb, var(--c) 90%, transparent),
    0 0 88px -2px color-mix(in srgb, var(--c) 60%, transparent),
    0 20px 42px -16px rgba(0, 0, 0, .82); }
}

/* ── Closing statement — the former hero, now the sign-off (no footer here). ── */
.contact-close {
  position: relative; z-index: 1;
  /* Tall section with a pinned headline — LOUD / UNIQUE / MEMORABLE reveal one
     by one across the scroll through it (not all at once). */
  height: 240vh;
  margin-top: -20vh;   /* still follows the socials a little sooner */
}
/* The headline pins to the viewport centre while you scroll the section. */
.contact-close__inner {
  position: sticky; top: 0; z-index: 3;
  height: 100vh;
  display: grid; place-content: center; justify-items: center;
  width: 100%;                                 /* full-bleed — the headline fills the page */
  padding: clamp(60px, 10vh, 120px) clamp(14px, 2vw, 40px);
  text-align: center;
}
.contact-close__title {
  --marmel: linear-gradient(100deg,
    #FFC97E 0%, #FF9DC4 15%, #F3D6E6 30%, #FFFFFF 46%, #FFFFFF 56%,
    #C0CCFF 72%, #C3A6FF 85%, #FF9AD4 100%);   /* iridescent, white-core (Marmeladz) */
  margin: 0;
  font-family: var(--f-display);
  filter: drop-shadow(0 3px 34px rgba(0, 0, 0, .45));
}
/* The particle-assembled intro line — smaller, sentence case.
   JS `fit()` sizes it to fill the screen; the clamp is the no-JS fallback. */
.cc-intro {
  display: block; white-space: nowrap;
  font-weight: 500; font-size: var(--cc-intro, clamp(24px, 3.4vw, 52px));
  letter-spacing: -.02em; margin-bottom: clamp(6px, 1.4vh, 22px);
  background-image: var(--marmel);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
/* LOUD • UNIQUE / MEMORABLE — the loud statement, sized to span the viewport. */
.cc-big {
  display: block; white-space: nowrap;
  font-weight: 700; font-size: var(--cc-big, clamp(52px, 11.5vw, 168px));
  line-height: .9; letter-spacing: -.03em; text-transform: uppercase;
}
.cc-word {
  display: inline-block;
  background-image: var(--marmel); background-size: 100% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  will-change: transform, filter, opacity;
}
/* Once a word has resolved, it becomes a playful hover toy: springs up with an
   iridescent glow and a slow hue shimmer. (JS adds .is-set so the transition
   never fights the scroll-scrubbed reveal.) */
.cc-word.is-set { transition: transform .5s var(--ease-out), filter .45s var(--ease-out); cursor: pointer; }
.cc-word.is-set:hover {
  transform: scale(1.12);
  animation: ccHoverGlow 2.6s linear infinite;
}
@keyframes ccHoverGlow {
  0%   { filter: drop-shadow(0 0 42px rgba(214, 192, 255, .55)) drop-shadow(0 0 12px rgba(255, 255, 255, .4)) hue-rotate(0deg); }
  100% { filter: drop-shadow(0 0 42px rgba(214, 192, 255, .55)) drop-shadow(0 0 12px rgba(255, 255, 255, .4)) hue-rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) { .cc-word.is-set:hover { animation: none; transform: scale(1.06); } }
.cc-sep {
  display: inline-block; margin: 0 .12em; vertical-align: .16em;
  font-size: .5em; color: #E7DDF2; -webkit-text-fill-color: #E7DDF2;
}
/* The whole headline reveals in sequence on scroll (intro → LOUD → • → UNIQUE →
   MEMORABLE); JS drives it. No-JS and reduced-motion keep everything visible. */
html.is-scripted .cc-intro,
html.is-scripted .cc-word,
html.is-scripted .cc-sep { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .cc-intro, .cc-word, .cc-sep { opacity: 1 !important; filter: none !important; transform: none !important; }
}
/* The primary email now leads the first reach panel, above the two cards. */
/* Sits below the panel-1 blurb as the direct way in. */
.reach-panel__email--lead { margin: clamp(22px, 3.5vh, 38px) 0 0; }

/* ── Responsive — stack; the headline stops pinning and sits above the panels. ── */
@media (max-width: 860px) {
  /* ── Mobile: KEEP the headline pinned so the verb-swap stays on-screen. ──
     In one column the old `position:static` headline scrolled away and the
     "hear from → work with → share with" change happened off-screen, which
     made the whole section read as noise. Instead the headline sticks to the
     top as a scrimmed header band and the three panels scroll UNDER it — so
     the verb visibly changes and each panel reveals as it becomes active. */
  .contact-reach { padding-top: 0; padding-bottom: 0; }
  .contact-reach__grid { grid-template-columns: 1fr; gap: 0; }
  .contact-reach__pin {
    position: sticky; top: 0; z-index: 3;
    min-height: 0; display: block;
    /* Clear the fixed nav on first paint; the scrim fades to transparent so
       panels dissolve under the headline rather than hitting a hard edge. */
    padding: calc(clamp(78px, 19vw, 110px) + env(safe-area-inset-top, 0px)) var(--pad-x) clamp(40px, 6vh, 56px);
    margin: 0 calc(-1 * var(--pad-x));               /* bleed the scrim edge-to-edge */
    /* Opaque ink behind the whole headline (text ends ~78% of the box), then a
       soft runway fades the bottom so panels dissolve under it with no ghost. */
    background: linear-gradient(to bottom,
      var(--ink) 0%, var(--ink) 85%,
      color-mix(in srgb, var(--ink) 55%, transparent) 94%,
      transparent 100%);
    pointer-events: none;                            /* headline is non-interactive; let taps reach panels */
  }
  .contact-reach__headline { font-size: clamp(33px, 9.2vw, 58px); }
  /* Each panel is roughly content-height with a modest top offset that clears
     the pinned header. No tall min-height: a short panel (e.g. the first) would
     otherwise trail a big empty gap before the next section. Because an active
     panel centres at ~50vh, its own height already drops its content below the
     header, so this top offset can stay small and the gaps stay tight. */
  .reach-panel {
    min-height: 34vh;
    padding: 7vh 0 5vh;
    justify-content: flex-start;
  }
  .reach-panel:first-child { padding-top: clamp(14px, 3vh, 26px); }
  /* Shrink the long email so it never runs past the panel edge. */
  .reach-panel__email--lead { font-size: clamp(15px, 5vw, 22px); }
  .reach-form__row { grid-template-columns: 1fr; }
  .reach-social--tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 3vw, 18px); }
  /* Pull the tall closing section up and shorten it so "Let's build something"
     rises in soon after the last reach panel — no empty screen in between —
     while still giving LOUD / UNIQUE / MEMORABLE room to resolve on scroll. */
  .contact-close { margin-top: -32vh; height: 180vh; }
  .cc-intro { font-size: clamp(20px, 5.5vw, 34px); }
  .cc-big { font-size: clamp(44px, 15vw, 96px); }
}
@media (prefers-reduced-motion: reduce) {
  .contact-reach__verb { transition: none; }
  .contact-reach__verb.is-swap { animation: none; }
  .contact-reach__you i { animation: none; }
  .reach-panel__email::after { transition: none; }
  .social-tile__icon { animation: none !important; transition: none; }
  .social-tile__icon svg { transition: none; }
  .social-tile a:hover .social-tile__icon { transform: none; }
  .social-tile a:hover .social-tile__icon svg { transform: none; }
  .contact-field .blob { animation: none !important; }
}

/* ═══════════════════════════════════════════════════════════════════
   EDITORIAL SYSTEM · v1
   ═══════════════════════════════════════════════════════════════════

   Reusable graphic-editorial primitives inspired by fashion publications,
   Swiss typography, and contemporary studio work. Composable across the
   portfolio so every page reads as part of the same visual language.

   THE FIVE LAYERS
   ---------------
   Layer 1  ed-bg-word          — background wall type (deepest)
   Layer 2  ed-headline, images — foreground composition
   Layer 3  ed-caption, ed-label, ed-number — editorial marks
   Layer 4  navigation           — page chrome
   Layer 5  ed-grid              — decorative overlay (behind or above)

   USAGE — full editorial hero
   ---------------------------
   <section class="ed-hero">
     <div class="ed-grid ed-grid--v ed-grid--cols-5" aria-hidden="true"></div>
     <span class="ed-bg-word">Studio</span>
     <h1 class="ed-stack">
       <span class="ed-headline ed-headline--l">Evoking</span>
       <span class="ed-headline ed-headline--massive">Real</span>
       <span class="ed-headline ed-headline--xl ed-headline--italic">Emotions.</span>
     </h1>
     <img class="ed-image ed-image--cutout ed-layer--mid" src="/leo.png" />
     <p class="ed-caption ed-caption--tl">Leonardo Gonzalez [33]<br>Guadalajara, Mexico</p>
     <p class="ed-caption ed-caption--br">Creative direction, identity & motion — 2018→now.</p>
   </section>

   USAGE — project header
   ----------------------
   <header class="ed-project-header">
     <div class="ed-project-header__marks">
       <span class="ed-number">05</span>
       <span class="ed-label">Identity · Art Direction</span>
       <span class="ed-label">2026</span>
     </div>
     <h2 class="ed-headline ed-headline--xl">Studio Malva</h2>
     <p class="ed-statement">A cosmetics brand for the color-forward generation.</p>
   </header>

   MOTION — GSAP + ScrollTrigger, opt-in via data attributes
   ---------------------------------------------------------
   data-ed-parallax="0.4"    — layered scroll speed (0=static, 1=normal)
   data-ed-parallax="slow"   — preset (0.7)
   data-ed-parallax="slower" — preset (0.4)
   data-ed-parallax="ghost"  — preset (0.2, for background words)
   data-ed-fade              — fade opacity across scroll range

   ═══════════════════════════════════════════════════════════════════ */

/* ── Editorial tokens ─────────────────────────────────────
   Only add tokens that don't already exist on :root. Sizes
   are clamp() so each headline scales without breakpoints. */
:root {
  --ed-size-s:       clamp(40px,  6vw,  96px);
  --ed-size-m:       clamp(56px,  9vw,  140px);
  --ed-size-l:       clamp(76px,  13vw, 200px);
  --ed-size-xl:      clamp(96px,  17vw, 260px);
  --ed-size-massive: clamp(120px, 23vw, 360px);
  --ed-size-bg-word: clamp(160px, 32vw, 480px);

  --ed-caption-size: 11px;
  --ed-caption-tracking: .14em;

  --ed-op-dim:   .55;
  --ed-op-ghost: .22;
  --ed-op-hint:  .06;
}

/* ═════ CONTAINER PRIMITIVES ═════════════════════════════ */

/* Full-viewport editorial composition container. Full-bleed
   past parent padding, black canvas, isolated stacking context. */
.ed-hero {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  min-height: 100vh;
  padding: clamp(72px, 12vh, 130px) var(--pad-x) clamp(48px, 6vh, 80px);
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  isolation: isolate;
}

/* Inner staging layer — use when the composition needs a bounded
   inner box (e.g. project spread with .ed-frame borders). */
.ed-stage {
  position: relative;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  min-height: inherit;
}

/* Editorial page frame — thin border ring, magazine-cover style */
.ed-frame {
  position: relative;
  border: 1px solid rgba(255, 255, 255, .12);
  padding: clamp(40px, 6vh, 96px) clamp(24px, 4vw, 72px);
}

/* ── Pinned hero variant ──────────────────────────────────
   Creates a scroll runway by extending the outer .ed-hero to
   200vh; the interior .ed-hero__inner is sticky-pinned to
   viewport height so the composition stays visible while the
   user scrolls through the runway. GSAP timelines play against
   the pinned viewport to reveal / drift elements on scroll.

   Requires `overflow: clip` on the outer (NOT `hidden`, which
   would establish a scroll container and break sticky). */
.ed-hero--pinned {
  /* Taller runway: the pinned timeline runs hero title → portrait shifts
     right → three bio paragraphs (focus-in + rule + aura) → the stats band
     integrating under the last paragraph, all on scroll. (The portrait-quote
     beat was removed, so the runway is shorter than before — keeps the same
     per-beat pacing without the empty stretch where the quote used to hold.) */
  height: 520vh;
  min-height: 520vh;
  padding: 0;
  overflow: clip;
}
.ed-hero__inner {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  padding: clamp(72px, 12vh, 130px) var(--pad-x) clamp(48px, 6vh, 80px);
  isolation: isolate;
}

/* ═════ LAYER UTILITIES ══════════════════════════════════ */

.ed-layer--grid { z-index: 0; }
.ed-layer--bg   { z-index: 1; }
.ed-layer--mid  { z-index: 2; }
.ed-layer--fg   { z-index: 3; }
.ed-layer--top  { z-index: 4; }

/* ═════ HEADLINE TYPE ════════════════════════════════════ */

/* Huge condensed uppercase display type. Base rule; sizes and
   variants layer on top via modifiers. Typography IS a graphic
   element here — it's meant to overflow, get cropped, stack. */
.ed-headline {
  display: block;
  margin: 0;
  padding: 0;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: var(--ed-size-m);
  line-height: .84;
  letter-spacing: -.05em;
  color: var(--paper);
  text-transform: uppercase;
  text-wrap: balance;
}
.ed-headline--s       { font-size: var(--ed-size-s); }
.ed-headline--m       { font-size: var(--ed-size-m); }
.ed-headline--l       { font-size: var(--ed-size-l); }
.ed-headline--xl      { font-size: var(--ed-size-xl); }
.ed-headline--massive { font-size: var(--ed-size-massive); font-weight: 900; letter-spacing: -.06em; }

/* Weight modifiers */
.ed-headline--regular { font-weight: 500; letter-spacing: -.03em; }
.ed-headline--bold    { font-weight: 700; }
.ed-headline--black   { font-weight: 900; letter-spacing: -.06em; }

/* Color / density modifiers — turn any headline into background
   type by dropping opacity. Deliberate, not accidental. */
.ed-headline--dim     { color: rgba(255, 255, 255, var(--ed-op-dim)); }
.ed-headline--ghost   { color: rgba(255, 255, 255, var(--ed-op-ghost)); }
.ed-headline--hint    { color: rgba(255, 255, 255, var(--ed-op-hint)); }

/* Behavior modifiers */
.ed-headline--nowrap    { white-space: nowrap; text-wrap: auto; }   /* letters can run off — magazine convention */
.ed-headline--overflow  { white-space: nowrap; margin-inline: calc(var(--pad-x) * -1); text-align: center; text-wrap: auto; }
.ed-headline--tight     { letter-spacing: -.06em; }
.ed-headline--wide      { letter-spacing: -.02em; }

/* Italic + spectrum underline — the ONE color moment.
   Living Spectrum arrives as event, per DESIGN.md. */
.ed-headline--italic,
.ed-headline em {
  font-style: normal;
  position: relative;
  white-space: nowrap;
}
.ed-headline--italic::after,
.ed-headline em::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: .04em;
  height: .07em;
  background: var(--rainbow);
  border-radius: 999px;
}

/* Multi-line headline stack — compositional container that lets
   text wrap around a subject. Fills its parent vertically so lines
   spread across the viewport.

   NOTE — deliberately no z-index. The stack paints in DOM order
   against its parent's stacking context. That means anything
   declared LATER in the same section (like .ed-image--cutout)
   naturally paints in front. To bring a specific line IN FRONT
   of the image, use .ed-headline--front on that line. */
.ed-stack {
  position: absolute;
  inset: clamp(72px, 12vh, 130px) 0 clamp(48px, 6vh, 80px);
  margin: 0;
  padding: 0 var(--pad-x);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  text-align: center;
}
.ed-stack .ed-headline { white-space: nowrap; }
.ed-stack--left  { align-items: flex-start; text-align: left; }
.ed-stack--right { align-items: flex-end;   text-align: right; }

/* Layer modifiers for individual headlines within a stack.
   --front  → sits ABOVE .ed-image--cutout (subject-sandwich pattern)
   --back   → explicit "behind everything" — rarely needed, default is fine */
.ed-headline--front {
  position: relative;
  z-index: 4;
}
.ed-headline--back {
  position: relative;
  z-index: 1;
}

/* ═════ BACKGROUND WORD (LAYER 1) ════════════════════════ */

/* Deepest layer — huge dim type sitting behind everything.
   Used sparingly, one per composition, as scenery. */
.ed-bg-word {
  position: absolute;
  z-index: 1;
  font-family: var(--f-display);
  font-weight: 900;
  font-size: var(--ed-size-bg-word);
  line-height: .82;
  letter-spacing: -.06em;
  color: rgba(255, 255, 255, var(--ed-op-hint));
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}
.ed-bg-word--tl { top: 4vh;    left: -.05em; }
.ed-bg-word--tr { top: 4vh;    right: -.05em; }
.ed-bg-word--bl { bottom: 4vh; left: -.05em; }
.ed-bg-word--br { bottom: 4vh; right: -.05em; }
.ed-bg-word--center {
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}

/* ═════ EDITORIAL MARKS (LAYER 3) ════════════════════════ */

/* Small mono uppercase caption — the magazine-annotation voice.
   Positional variants make it easy to pin to corners of a hero. */
.ed-caption {
  display: block;
  margin: 0;
  padding: 0;
  font-family: var(--f-mono);
  font-size: var(--ed-caption-size);
  line-height: 1.55;
  letter-spacing: var(--ed-caption-tracking);
  text-transform: uppercase;
  color: rgba(255, 255, 255, .62);
  max-width: 26ch;
}
.ed-caption--tl,
.ed-caption--tr,
.ed-caption--bl,
.ed-caption--br { position: absolute; z-index: 4; max-width: 26ch; }
.ed-caption--tl { top: clamp(88px, 13vh, 160px); left:  var(--pad-x); text-align: left; }
.ed-caption--tr { top: clamp(88px, 13vh, 160px); right: var(--pad-x); text-align: right; }
.ed-caption--bl { bottom: clamp(48px, 7vh, 88px); left:  var(--pad-x); text-align: left; }
.ed-caption--br { bottom: clamp(48px, 7vh, 88px); right: var(--pad-x); text-align: right; max-width: 32ch; }
.ed-caption--center {
  position: absolute; z-index: 4;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}
.ed-caption--dim   { color: rgba(255, 255, 255, .38); }
.ed-caption--bright { color: rgba(255, 255, 255, .9); }

/* Inline chip label — same voice, no positioning */
.ed-label {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: var(--ed-caption-size);
  letter-spacing: var(--ed-caption-tracking);
  text-transform: uppercase;
  color: rgba(255, 255, 255, .68);
  vertical-align: middle;
}
.ed-label + .ed-label { margin-left: 1.4em; }
.ed-label--divider::before { content: "·"; margin-right: 1.2em; opacity: .5; }

/* Big display numeral — project marker, section number.
   Its own component because scale + weight are distinctive. */
.ed-number {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(56px, 9vw, 128px);
  line-height: .9;
  letter-spacing: -.04em;
  color: var(--paper);
  display: inline-block;
}

/* Coordinate / location micrograph — mono with a small glyph gap */
.ed-coord {
  display: inline-flex;
  align-items: baseline;
  gap: .6em;
  font-family: var(--f-mono);
  font-size: var(--ed-caption-size);
  letter-spacing: .1em;
  color: rgba(255, 255, 255, .62);
}
.ed-coord::before {
  content: "◆";
  font-size: .6em;
  color: rgba(255, 255, 255, .4);
}

/* ═════ DECORATIVE GRID (LAYER 5) ════════════════════════ */

/* Thin editorial guide grid — visible enough to feel like art
   direction, dim enough to disappear as scaffolding. */
.ed-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  display: grid;
  grid-auto-flow: column;
  grid-template-columns: repeat(var(--ed-grid-cols, 5), 1fr);
}
.ed-grid > span {
  border-right: 1px solid rgba(255, 255, 255, .045);
}
.ed-grid > span:last-child { border-right: 0; }

/* Grid column-count modifiers — set a custom property so the
   above rule adapts without duplicating the layout code. */
.ed-grid--cols-3  { --ed-grid-cols: 3; }
.ed-grid--cols-4  { --ed-grid-cols: 4; }
.ed-grid--cols-5  { --ed-grid-cols: 5; }
.ed-grid--cols-8  { --ed-grid-cols: 8; }
.ed-grid--cols-12 { --ed-grid-cols: 12; }

/* Horizontal-lines variant — for spreads that want row rhythm */
.ed-grid--h {
  grid-auto-flow: row;
  grid-template-columns: 1fr;
  grid-template-rows: repeat(var(--ed-grid-rows, 5), 1fr);
}
.ed-grid--h > span { border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, .045); }
.ed-grid--h > span:last-child { border-bottom: 0; }

/* ═════ IMAGE COMPONENT ═════════════════════════════════ */

.ed-image {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Cutout — transparent PNG that "stands" in the composition.
   Centering via margin-inline:auto instead of translateX(-50%) so
   the transform property stays free for GSAP parallax + entrance
   reveal (see script.js / [data-ed-parallax]).

   Sized to OVERFLOW the section vertically (115vh) — the subject's
   head extends above the viewport top and gets clipped by the
   hero's overflow:hidden, so his figure feels architectural, not
   framed. Width scales up too so he fills the composition. */
.ed-image--cutout {
  position: absolute;
  left: 0;
  right: 0;
  top: 13vh;
  bottom: auto;
  margin-inline: auto;
  z-index: 3;
  height: 88vh;
  max-width: min(52vw, 690px);
  width: auto;
  /* Cover-fit + focused object-position lets us frame the subject
     tightly regardless of how much padding the PNG has around him.
     22% down from image top is where the face lands for most
     head-and-shoulders portraits, matching the editorial-cover
     placement of the reference. */
  object-fit: cover;
  object-position: center 22%;
  /* Dissolve mask — head at top stays fully visible; the body
     dissolves into darkness at the bottom third so the crop reads
     as atmospheric, not chopped. No top fade — the face is the
     anchor point of the composition and must not be softened. */
  mask-image: linear-gradient(180deg,
    #000 0%,
    #000 72%,
    rgba(0, 0, 0, .5) 88%,
    transparent 100%);
  -webkit-mask-image: linear-gradient(180deg,
    #000 0%,
    #000 72%,
    rgba(0, 0, 0, .5) 88%,
    transparent 100%);
  pointer-events: none;
}

/* Frame — bordered image with editorial padding */
.ed-image--frame {
  padding: clamp(12px, 1.5vw, 22px);
  background: var(--ink);
  border: 1px solid rgba(255, 255, 255, .1);
}

/* Clip masks — subtle, never gimmicky */
.ed-image--mask-arch   { clip-path: path("M 0 100 L 0 40 A 50 50 0 0 1 100 40 L 100 100 Z"); clip-path: url(#ed-mask-arch); }
.ed-image--mask-slash  { clip-path: polygon(0 8%, 100% 0, 100% 100%, 0 92%); }
.ed-image--mask-square { clip-path: inset(0 round 4px); }

/* ═════ TEXT BLOCKS ═════════════════════════════════════ */

/* Pull statement — between headline and body. The medium voice. */
.ed-statement {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(20px, 2.4vw, 36px);
  line-height: 1.28;
  letter-spacing: -.02em;
  color: rgba(255, 255, 255, .92);
  max-width: 42ch;
  text-wrap: balance;
}

/* Lede — body-size intro paragraph */
.ed-lede {
  margin: 0;
  font-family: var(--f-sans);
  font-weight: 400;
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.6;
  color: rgba(255, 255, 255, .78);
  max-width: 62ch;
  text-wrap: pretty;
}

/* Editorial quote — smart-quoted, tight leading, medium size */
.ed-quote {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(22px, 2.6vw, 40px);
  line-height: 1.28;
  letter-spacing: -.012em;
  color: var(--paper);
  max-width: 32ch;
  text-wrap: balance;
}
.ed-quote::before { content: "\201C"; margin-right: .06em; opacity: .8; }
.ed-quote::after  { content: "\201D"; opacity: .8; }

.ed-quote__attribution {
  display: block;
  margin-top: clamp(16px, 2vh, 28px);
  font-family: var(--f-mono);
  font-style: normal;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .58);
}

/* ═════ COMPOSITE BLOCKS ════════════════════════════════ */

/* Project header — marks row + headline + statement */
.ed-project-header {
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 4vh, 44px);
  padding: clamp(72px, 12vh, 140px) var(--pad-x);
}
.ed-project-header__marks {
  display: flex;
  align-items: baseline;
  gap: clamp(20px, 3vw, 40px);
  flex-wrap: wrap;
}

/* Large centered statement page — one thought, big space */
.ed-large-statement {
  min-height: 60vh;
  display: grid;
  place-items: center;
  padding: clamp(80px, 14vh, 160px) var(--pad-x);
  text-align: center;
}
.ed-large-statement .ed-statement {
  font-size: clamp(28px, 4vw, 64px);
  max-width: 20ch;
}

/* ═════ SCROLL / HOVER MOTION STATES ═════════════════════ */

/* Parallax layers — GSAP writes transform on scroll. We only hint
   the browser to promote the element to its own GPU layer; we do
   NOT set a baseline transform here, because it would clobber any
   centering-via-transform the element already carries (see
   .ed-image--cutout which uses margin-inline: auto instead). */
[data-ed-parallax] { will-change: transform; }

/* Scroll-driven opacity fade — micrographs breathing softly. */
[data-ed-fade] { transition: opacity 400ms var(--ease-out); }

/* Hover micro-interactions — the "elegant" register. */
.ed-headline--hover:hover,
.ed-caption--hover:hover { opacity: .6; transition: opacity 300ms var(--ease-out); }

/* Magnetic hint — apply on interactive labels for tactile hover */
.ed-hoverable {
  transition:
    transform 400ms var(--ease-out),
    opacity 300ms var(--ease-out),
    filter 300ms var(--ease-out);
}
.ed-hoverable:hover {
  transform: translateY(-2px);
  filter: brightness(1.12);
}

/* ═════ RESPONSIVE — recompose, don't shrink ═════════════ */

@media (max-width: 1024px) {
  .ed-hero { padding-top: clamp(64px, 10vh, 110px); }
  .ed-headline--massive { font-size: clamp(96px, 20vw, 260px); }
  .ed-hero--about .ed-headline--massive { font-size: clamp(82px, 17vw, 221px); }
  .ed-image--cutout { height: 80vh; max-width: min(58vw, 560px); }
}
@media (max-width: 640px) {
  /* Mobile: the layered composition doesn't work at portrait
     aspect. Stack layers instead — captions above, headline stack
     next, image below. Everything becomes flow content. */
  .ed-hero {
    min-height: auto;
    padding: clamp(80px, 12vh, 120px) var(--pad-x) clamp(40px, 6vh, 60px);
    display: grid;
    grid-template-rows: auto auto auto;
    row-gap: clamp(20px, 3vh, 32px);
  }
  .ed-stack {
    position: relative;
    inset: auto;
    padding: 0;
    align-items: flex-start;
    text-align: left;
    gap: clamp(4px, 1vh, 12px);
  }
  .ed-stack .ed-headline { white-space: normal; }
  .ed-headline--s       { font-size: clamp(32px, 10vw, 56px); }
  .ed-headline--m       { font-size: clamp(40px, 12vw, 72px); }
  .ed-headline--l       { font-size: clamp(48px, 14vw, 88px); }
  .ed-headline--xl      { font-size: clamp(56px, 16vw, 104px); }
  .ed-headline--massive { font-size: clamp(64px, 18vw, 120px); }
  .ed-hero--about .ed-headline--massive { font-size: clamp(54px, 15.3vw, 102px); }
  .ed-bg-word           { font-size: clamp(80px, 22vw, 160px); }
  .ed-image--cutout {
    position: relative;
    left: auto; right: auto; bottom: auto;
    margin: 0 auto;
    height: auto;
    max-height: 60vh;
    max-width: 82vw;
  }
  .ed-caption--tl,
  .ed-caption--tr,
  .ed-caption--bl,
  .ed-caption--br {
    position: relative;
    top: auto; left: auto; right: auto; bottom: auto;
    text-align: left;
    max-width: 100%;
  }
  .ed-grid { display: none; }
}

/* The pinned About hero un-layers into stacked flow all the way up to 1024px:
   its two-column composition only clears the portrait at ~1180px+, so below
   that the bio overlapped the photo and the headline layered over both. This
   mirrors the generic ≤640 stacking above, but scoped to .ed-hero--pinned so
   the other (non-pinned) editorial heroes keep their own tablet composition. */
@media (max-width: 1024px) {
  .ed-hero--pinned .ed-stack {
    position: relative;
    inset: auto;
    padding: 0;
    align-items: flex-start;
    text-align: left;
    gap: clamp(4px, 1vh, 12px);
  }
  .ed-hero--pinned .ed-stack .ed-headline { white-space: normal; }
  /* Shrink the display type so single long words ("EMOTIONS.") don't overflow
     the now-full-width column. */
  .ed-hero--pinned.ed-hero--about .ed-headline--xl      { font-size: clamp(56px, 13vw, 150px); }
  .ed-hero--pinned.ed-hero--about .ed-headline--massive { font-size: clamp(64px, 16vw, 188px); }
  .ed-hero--pinned .ed-image--cutout {
    position: relative;
    top: auto; left: auto; right: auto; bottom: auto;   /* clear the desktop top offset or it shifts into the bio */
    margin: 0 auto;
    height: auto;
    max-height: 60vh;
    max-width: min(78vw, 520px);
  }
  .ed-hero--pinned .ed-grid { display: none; }
}

/* Reduced motion — parallax off, no fade animation */
@media (prefers-reduced-motion: reduce) {
  [data-ed-parallax] { transform: none !important; }
  [data-ed-fade] { opacity: 1 !important; transition: none !important; }
}

/* ═══════════════ END EDITORIAL SYSTEM ═══════════════════ */

/* ═══════════════════════════════════════════════════════════════════
   WHY DOLL · sticky intro + scroll-lit story blocks  (last section)
   ═══════════════════════════════════════════════════════════════════
   Left column pins (statement + lead + CTA) while the right column scrolls
   through numbered blocks. Each block ILLUMINATES in its spectrum hue as it
   enters focus (IntersectionObserver in script.js toggles .is-active), and
   the ambient glow + the left "DOLL" shift to match via the --glow var.
   The spectrum is meaningful here — pride + brand as one. Responsive: on
   narrow screens the columns stack and blocks stay lit as they enter view.
   ═══════════════════════════════════════════════════════════════════ */

.doll-why {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  padding: clamp(56px, 9vh, 120px) var(--pad-x);
  isolation: isolate;
  /* Contains the easter-egg spark ring so its burst can't push the viewport
     into horizontal scroll. `clip` (not hidden) keeps the sticky intro intact. */
  overflow-x: clip;
  /* JS updates this to the active block's hue; everything tinted follows it. */
  --glow: var(--spectrum-blue);
}

/* Ambient glow — a soft field low in the section that takes the active hue. */
.doll-why__bg {
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none; overflow: clip;
}
.doll-why__glow {
  position: absolute;
  left: 50%; top: 50%;
  width: 80vmax; height: 52vmax;
  transform: translate(-50%, -50%);   /* centred in the section, visible */
  background: radial-gradient(50% 55% at 50% 50%, var(--glow) 0%, transparent 68%);
  opacity: .34;
  filter: blur(50px) saturate(150%);
  transition: background 1.1s var(--ease-out), opacity 1.1s var(--ease-out);
  will-change: background;
}

.doll-why__grid {
  position: relative; z-index: 1;
  /* Sit on the SAME grid as the hero + footer: the section carries pad-x, so
     the inner content caps at (site max − 2·pad-x). Both columns hug the centre
     divider, so this just extends the outer margins to line up with the page
     edges above and below — no longer an inset 1240 island. */
  width: 100%;
  max-width: calc(var(--maxw) - 2 * var(--pad-x));
  margin: 0 auto;
  display: grid;
  /* Blocks on the LEFT (wider), sticky intro on the RIGHT — swapped via order. */
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(40px, 7vw, 120px);
  align-items: start;
}

/* ── LEFT · sticky intro ────────────────────────────────────
   Pinned to the viewport middle so it stays put while the right column scrolls
   past. Centred via `top: 50vh` + a half-height pull-up rather than a 100vh
   box, so it holds centre no matter how tall (or tight) the section is — the
   box trick needed the section taller than 100vh, which forced dead air. */
.doll-why__intro {
  order: 2;                        /* right column */
  position: sticky;
  top: 50vh;
  align-self: start;               /* natural height, don't stretch in the grid */
  transform: translateY(-50%);     /* CENTRED + fixed — it never moves; only the blocks scroll */
}
.doll-why__intro-in { max-width: 34ch; text-align: left; }
.doll-why__intro-in { position: relative; }   /* anchor for the spark ring */
.doll-why__mark {
  display: block;
  width: clamp(148px, 15vw, 224px); height: auto;
  margin: 0 0 clamp(28px, 4vh, 44px) 0;      /* logo flush left */
  /* The mark breathes in the active block's hue over a faint white base, so the
     fixed frame joins the spectrum walk instead of sitting cold beside it. */
  filter: drop-shadow(0 0 14px rgba(255, 255, 255, .12))
          drop-shadow(0 0 34px color-mix(in srgb, var(--glow) 52%, transparent));
  transition: filter 1.1s var(--ease-out), transform .5s var(--ease-out);
}
/* Easter egg: JS makes the mark clickable — a subtle lift invites the press. */
.doll-why__mark[role="button"] { cursor: pointer; }
.doll-why__mark[role="button"]:hover { transform: scale(1.03) rotate(-.5deg); }
.doll-why__mark[role="button"]:active { transform: scale(.97); }
.doll-why__mark[role="button"]:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--glow) 70%, #fff);
  outline-offset: 8px; border-radius: 6px;
}
/* Click ignites the whole identity: the mark cycles the full spectrum once… */
.doll-why__mark.is-sparking { animation: dollMarkSpark 850ms var(--ease-out); }
@keyframes dollMarkSpark {
  0%   { filter: drop-shadow(0 0 16px #fff) drop-shadow(0 0 42px var(--spectrum-blue)); }
  22%  { filter: drop-shadow(0 0 18px #fff) drop-shadow(0 0 48px var(--spectrum-violet)); }
  44%  { filter: drop-shadow(0 0 18px #fff) drop-shadow(0 0 48px var(--spectrum-pink)); }
  66%  { filter: drop-shadow(0 0 18px #fff) drop-shadow(0 0 48px var(--spectrum-orange)); }
  88%  { filter: drop-shadow(0 0 18px #fff) drop-shadow(0 0 48px var(--spectrum-mint)); }
  100% { filter: drop-shadow(0 0 14px rgba(255,255,255,.12))
                 drop-shadow(0 0 34px color-mix(in srgb, var(--glow) 52%, transparent)); }
}
/* …and a rainbow ring bursts outward from it (element built in script.js). */
.doll-spark-ring {
  position: absolute; z-index: 3;
  border-radius: 999px; pointer-events: none;
  background: conic-gradient(from 0deg,
    var(--spectrum-blue), var(--spectrum-violet), var(--spectrum-pink),
    var(--spectrum-orange), var(--spectrum-yellow), var(--spectrum-mint), var(--spectrum-blue));
  -webkit-mask: radial-gradient(closest-side, transparent 56%, #000 62%, #000 80%, transparent 84%);
          mask: radial-gradient(closest-side, transparent 56%, #000 62%, #000 80%, transparent 84%);
  filter: saturate(140%);
  opacity: 0;
  animation: dollSparkRing 900ms var(--ease-out) forwards;
}
@keyframes dollSparkRing {
  0%   { transform: scale(.2); opacity: 0; }
  14%  { opacity: .95; }
  100% { transform: scale(2.7); opacity: 0; }
}
/* Story blocks catch the spark in sequence — lit in their own hue for a beat,
   independent of the scroll-driven .is-active so it never fights the observer. */
.doll-block.is-spark { opacity: 1; }
.doll-block.is-spark .doll-block__title {
  color: var(--hue);
  text-shadow: 0 0 12px var(--hue), 0 0 46px var(--hue);
  transform: translateY(0); filter: blur(0);
}
.doll-why__title {
  font-family: var(--f-display); font-weight: 600;
  /* Quieter than the story beats — the fixed frame, not the headline. */
  font-size: clamp(32px, 3.8vw, 58px);
  line-height: 1.02; letter-spacing: -.03em;
  color: var(--paper); margin: 0;
  text-wrap: balance;
}
.doll-why__title span { color: var(--glow); -webkit-text-fill-color: currentColor; transition: color 1.1s var(--ease-out); }
/* Some global heading styles set -webkit-text-fill-color (for the metallic
   hero); pin it to currentColor here so these tinted words actually recolour. */
.doll-block__title { -webkit-text-fill-color: currentColor; }
.doll-why__lead {
  margin: clamp(20px, 3vh, 32px) 0 0;
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.6; color: rgba(255, 255, 255, .68);
  max-width: 34ch; text-wrap: pretty;
}

/* ── RIGHT · scroll-lit blocks ──────────────────────────────
   Right-aligned, no numbers or markers, tightened rhythm. One block still
   owns the viewport centre at a time for the scroll-lit highlight; a hairline
   divider runs up the left edge as the column separator. */
.doll-why__list {
  order: 1;                        /* left column */
  list-style: none; margin: 0;
  /* Just enough top/bottom lead-in to bring the FIRST block level with the
     centred intro on arrival and let the LAST block reach centre — kept tight
     so the section doesn't leave dead air on either side. */
  padding: 15vh 0;
  border-right: 1px solid rgba(255, 255, 255, .1);   /* divider now on the right */
}
.doll-block {
  padding: clamp(5vh, 6.5vh, 8vh) 0;
  text-align: right;               /* hugs the centre divider */
  opacity: .3;
  transition: opacity .6s var(--ease-out);
}
.doll-block.is-active { opacity: 1; }

/* Scroll reveal — as a block becomes active, its copy rises + focuses in
   (blur → sharp) so the text is "revealed" on scroll rather than just dimmed. */
.doll-block__title {
  font-family: var(--f-display); font-weight: 600;
  /* The loud, illuminating beats — larger than the fixed frame. */
  font-size: clamp(38px, 4.9vw, 78px);
  line-height: 1.0; letter-spacing: -.035em;
  color: var(--paper); margin: 0 0 clamp(16px, 2vh, 24px);
  transform: translateY(28px);
  filter: blur(7px);
  transition:
    color .6s var(--ease-out),
    text-shadow .6s var(--ease-out),
    transform .8s var(--ease-out),
    filter .7s var(--ease-out);
}
.doll-block.is-active .doll-block__title {
  color: var(--hue);
  text-shadow: 0 0 42px var(--hue);
  transform: translateY(0);
  filter: blur(0);
}
.doll-block__body {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(17px, 1.55vw, 23px);
  /* Light-on-dark comfort for the longest read on the page: a touch more
     leading and neutral (not negative) tracking so the letters don't thin out. */
  line-height: 1.6; letter-spacing: 0;
  color: rgba(255, 255, 255, .84);
  margin: 0 0 0 auto;              /* right-aligned box (hugs the divider) */
  max-width: 46ch; text-wrap: pretty;
  transform: translateY(24px);
  transition: transform .8s var(--ease-out);
}
.doll-block.is-active .doll-block__body { transform: translateY(0); transition-delay: .09s; }
.doll-block__body em {
  font-style: italic; color: var(--paper);
  transition: color .6s var(--ease-out), text-shadow .6s var(--ease-out);
}
/* The emphasised word ("DOLL") ignites in the block's own hue as the block
   lights — an inline colour event on the word that carries the meaning. Lifted
   toward white so every hue clears contrast on black at body size. */
.doll-block.is-active .doll-block__body em {
  color: color-mix(in srgb, var(--hue) 80%, #fff);
  text-shadow: 0 0 24px color-mix(in srgb, var(--hue) 55%, transparent);
}

/* ── Reduced motion ─────────────────────────────────────────*/
@media (prefers-reduced-motion: reduce) {
  .doll-why__glow, .doll-why__title span, .doll-block,
  .doll-block__title, .doll-block__body { transition: none !important; }
  .doll-block__title, .doll-block__body { transform: none !important; filter: none !important; }
  /* Easter egg still rewards the click — as an instant colour flash, no motion.
     JS skips the ring + stagger; the spark just crossfades blocks + mark. */
  .doll-why__mark[role="button"]:hover,
  .doll-why__mark[role="button"]:active { transform: none !important; }
  .doll-why__mark.is-sparking { animation: none !important; }
  .doll-block.is-spark .doll-block__title { transform: none !important; }
}

/* ── Responsive — stack; intro no longer sticky, blocks flow beneath.
   Single-column mobile reads LEFT-aligned for legibility. ──*/
@media (max-width: 860px) {
  .doll-why__grid { grid-template-columns: 1fr; gap: clamp(24px, 5vh, 44px); }
  /* Stacked: intro back on top (order reset), left-aligned, no divider. */
  .doll-why__intro { order: 0; position: static; height: auto; display: block; justify-content: normal; padding-top: 0; transform: none; align-self: auto; }
  .doll-why__intro-in { max-width: 100%; text-align: left; }
  .doll-why__mark { margin: 0 0 clamp(28px, 4vh, 44px) 0; }
  .doll-why__list { order: 0; border-right: none; padding: 0; }  /* no centring lead-in when stacked */
  .doll-block {
    padding: clamp(5vh, 7vh, 9vh) 0;
    text-align: left;
    opacity: .5;
  }
  .doll-block__body { margin: 0; max-width: 62ch; }
}
@media (max-width: 640px) {
  /* Keep the desktop hierarchy: story beats stay the dominant type,
     the fixed intro stays quieter. */
  .doll-why__title { font-size: clamp(30px, 8vw, 44px); }
  .doll-why__mark { width: clamp(140px, 44vw, 200px); }
  .doll-block__title { font-size: clamp(33px, 9.5vw, 50px); }
  .doll-block__body { font-size: clamp(17px, 4.6vw, 20px); }
}

/* ═══════════════════════════════════════════════════════════════════
   ALL WORK — gallery page (work.php)
   A dark gallery of project tiles. At rest each tile's spectrum gradient
   is desaturated (a monochrome archive); hovering blooms it to full
   colour — DOLL's "colour arrives as an event, never a resting wash".
   ═══════════════════════════════════════════════════════════════════ */
.page-work-body { background: var(--ink); color: var(--paper); }
.work-main { position: relative; }

/* ── Header ─────────────────────────────────────────────── */
/* ── Hero — plain black canvas with the title + lede/meta foot ── */
.work-hero {
  position: relative;
  min-height: clamp(42vh, 50vh, 60vh);
  padding: clamp(116px, 17vh, 180px) 0 clamp(30px, 5vh, 54px);
  overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.work-hero__inner {
  position: relative; z-index: 1;
  width: 100%; max-width: var(--maxw); margin: 0 auto;
  padding: 0 var(--pad-x);
}
.work-hero__eyebrow {
  margin: 0 0 clamp(16px, 2vh, 24px);
  font-family: var(--f-mono);
  font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(255, 255, 255, .68);
}
.work-hero__title {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(64px, 13vw, 210px);
  line-height: .88;
  letter-spacing: -.04em;
  color: var(--paper);
  text-shadow: 0 4px 40px rgba(0, 0, 0, .35);
}
/* The title stays plain white — no per-letter colour (Leo, 2026-10-01). */
.work-hero__foot {
  display: flex; flex-wrap: wrap; align-items: flex-end;
  justify-content: space-between; gap: clamp(16px, 3vw, 40px);
  margin-top: clamp(24px, 4vh, 46px);
}
.work-hero__lede {
  margin: 0; max-width: 46ch;
  font-family: var(--f-sans);
  font-size: clamp(16px, 1.3vw, 19px);      /* body never < 16px */
  line-height: 1.62;                         /* light-on-dark: more leading */
  letter-spacing: .004em;                    /* light-on-dark: a touch open */
  color: rgba(255, 255, 255, .84);           /* light-on-dark: lift legibility */
  text-wrap: pretty;                         /* kill orphans */
  text-shadow: 0 1px 18px rgba(0, 0, 0, .4);
}
.work-hero__meta {
  margin: 0;
  display: inline-flex; align-items: center; gap: .65em;
  font-family: var(--f-mono);
  font-size: clamp(12px, 1vw, 14px); letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255, 255, 255, .72);
  white-space: nowrap;
}

/* ── Category filter ────────────────────────────────────────
   Pill tabs (All + the used categories), each with a live count. */
.work-filter {
  display: flex; flex-wrap: wrap; gap: clamp(12px, 1.4vw, 20px);
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(28px, 5vh, 56px) var(--pad-x) 0;
}
/* Dark-face pills sharing the site's button language (resume button): a SOLID
   black face on top of a spectrum halo. Two layers, like the resume button —
   ::before is the glow (behind), ::after is the opaque black face (in front of
   the glow, behind the label), so the face never goes translucent. */
.work-filter__btn {
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center;
  padding: 13px clamp(20px, 2vw, 30px);
  border: 0; background: transparent;
  border-radius: 999px;
  color: rgba(255, 255, 255, .74);
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(14px, 1.05vw, 16px); letter-spacing: -.01em;
  cursor: pointer;
  transition: color .4s var(--ease-out), transform .38s var(--ease-out);
}
.work-filter__label { position: relative; z-index: 1; }
/* Spectrum halo — a conic rainbow that blooms around the pill (furthest back). */
.work-filter__btn::before {
  content: "";
  position: absolute; inset: -5px; z-index: -2;   /* tight halo, hugs the pill */
  border-radius: 999px;
  background:
    conic-gradient(from 0deg at 50% 50%,
      var(--spectrum-blue), var(--spectrum-violet), var(--spectrum-pink),
      var(--spectrum-orange), var(--spectrum-yellow), var(--spectrum-mint), var(--spectrum-blue));
  filter: blur(9px) saturate(160%);
  opacity: 0;
  transition: opacity .5s var(--ease-out);
}
/* Solid black face — covers the glow's centre so only the halo shows around. */
.work-filter__btn::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  border-radius: 999px;
  background: #0a0a0c;
  border: 1px solid rgba(255, 255, 255, .18);
  transition: border-color .45s var(--ease-out);
}
.work-filter__btn:hover { color: #fff; transform: translateY(-2px); }
.work-filter__btn:hover::before { opacity: .5; }
.work-filter__btn:hover::after  { border-color: rgba(255, 255, 255, .42); }
.work-filter__btn.is-active { color: #fff; }
.work-filter__btn.is-active::before { opacity: 1; }
.work-filter__btn.is-active::after  { border-color: rgba(255, 255, 255, .6); }

/* Filtered-out tiles drop out of the grid; the rest re-pack (dense flow). */
.work-card.is-hidden { display: none !important; }
.work-empty {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(48px, 10vh, 110px) var(--pad-x);
  font-family: var(--f-sans); font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.55; color: rgba(255, 255, 255, .68); text-align: center;
}
.work-empty em { font-style: normal; color: rgba(255, 255, 255, .82); }

/* ── Gallery — justified grid ────────────────────────────────
   A 6-column grid with a UNIFORM row height, so every row is aligned (harmony).
   Widths vary per a balanced pattern (--cspan, set in PHP from row modules that
   each sum to 6) → varied scales AND full rows, no leftover gaps. */
.work-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: clamp(230px, 26vw, 410px);
  gap: clamp(10px, 1.1vw, 18px);
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(8px, 1.6vh, 22px) var(--pad-x) clamp(56px, 9vh, 110px);
}

/* ── Card ───────────────────────────────────────────────── */
.work-card {
  position: relative;
  display: block;
  grid-column: span var(--cspan, 2);      /* justified width (PHP pattern) */
  grid-row: span 1;                        /* uniform height → rows align */
  height: 100%;
  border-radius: clamp(5px, .5vw, 9px);    /* less rounding (per Leo) */
  overflow: clip;                          /* clips like hidden but is NOT a scroll
                                              container, so the cover's view() parallax
                                              timeline tracks the page, not the card */
  isolation: isolate;
  text-decoration: none;
  color: var(--paper);
  background: #0a0a0f;
  box-shadow: 0 14px 34px -18px rgba(0, 0, 0, .8);
  transition: transform .55s var(--ease-out), box-shadow .55s var(--ease-out);
}
/* Media layer = the project gradient (or heroMedia image on top). Full colour
   at rest (per Leo); hover just lifts + zooms. */
.work-card__media {
  position: absolute; inset: 0; z-index: 0;
  background: var(--grad, linear-gradient(135deg, #3B6FFF, #E14FB8));
  background-size: cover; background-position: center;
  filter: none;
  transform: scale(1.03);
  transition: filter .65s var(--ease-out), transform .8s var(--ease-out);
}
.work-card__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
/* ── Scroll-driven cover parallax (overdrive) — each cover drifts inside its
   frame as the card travels the viewport, giving the gallery depth. Runs on the
   compositor via a `view()` scroll timeline. Progressive: where scroll timelines
   aren't supported (or reduced-motion is on), the cover is simply centred and
   static — no JS, no jank, nothing missing. The cover is over-sized so the drift
   never exposes an edge. ── */
@keyframes work-cover-parallax {
  from { transform: translateY(-10%); }
  to   { transform: translateY(10%); }
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .work-card__img {
      inset: auto 0 auto 0; top: -12%; height: 124%;
      animation: work-cover-parallax linear both;
      animation-timeline: view();
      will-change: transform;
    }
  }
}
/* A faint diagonal sheen that sweeps across on hover. */
.work-card__sheen {
  position: absolute; inset: -40% -10%;
  background: linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, .16) 50%, transparent 58%);
  transform: translateX(-60%);
  opacity: 0;
  transition: transform .9s var(--ease-out), opacity .5s ease;
  pointer-events: none;
}
.work-card__scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top,
    rgba(0, 0, 0, .84) 0%, rgba(0, 0, 0, .42) 40%, rgba(0, 0, 0, 0) 74%);
  transition: opacity .5s var(--ease-out);
  pointer-events: none;
}
.work-card__body {
  position: relative; z-index: 2;
  height: 100%;
  padding: clamp(20px, 2.4vw, 36px);
  display: flex; flex-direction: column; justify-content: flex-end;
}
.work-card__foot { display: flex; flex-direction: column; gap: clamp(12px, 1.6vw, 18px); }
/* Title scales with the card's width span (--cspan) → the feature project reads
   as a headline, small cards stay quiet. Uppercase + heavy = DOLL's monolithic
   voice. The work is the hero, amplified. */
.work-card__name {
  display: block;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(24px, calc(6px + var(--cspan, 2) * 1.05vw), 62px);
  line-height: .94;
  letter-spacing: -.03em;
  text-transform: uppercase;
  text-wrap: balance;
  color: var(--paper);
  text-shadow: 0 2px 24px rgba(0, 0, 0, .5);
}
/* ── Hover: the colour event ────────────────────────────── */
@media (hover: hover) and (pointer: fine) {
  .work-card:hover {
    transform: translateY(-8px);
    box-shadow:
      0 40px 70px -26px rgba(0, 0, 0, .82),
      0 0 70px -12px color-mix(in srgb, var(--glow, #8A5BFF) 55%, transparent);
  }
  .work-card:hover .work-card__media {
    filter: saturate(1.06) brightness(1.03);
    transform: scale(1.07);
  }
  .work-card:hover .work-card__scrim { opacity: .92; }
  .work-card:hover .work-card__sheen { opacity: 1; transform: translateX(60%); }
}
.work-card:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--glow, #fff) 80%, #fff);
  outline-offset: 3px;
}
@media (hover: none) { .work-card__media { filter: none; } }

/* Subtle within-row entrance stagger (right column trails the left). */
.work-grid .work-card:nth-child(2n) { transition-delay: 90ms; }

/* Filter change — surviving covers settle in with a quick staggered pop. */
@keyframes work-filter-pop {
  from { opacity: 0; transform: translateY(10px) scale(.985); }
  to   { opacity: 1; transform: none; }
}
.work-card.is-filtering {
  animation: work-filter-pop .5s var(--ease-out) both;
  animation-delay: calc(var(--fi, 0) * 26ms);
}
@media (prefers-reduced-motion: reduce) {
  .work-card.is-filtering { animation: none; }
}

/* ── Responsive ─────────────────────────────────────────── */
/* Tablet — two equal columns (uniform), ignore the desktop pattern. */
@media (max-width: 1080px) {
  .work-grid { grid-auto-rows: clamp(200px, 30vw, 300px); }
  .work-card { grid-column: span 3; }
  .work-card__name { font-size: clamp(26px, 4.4vw, 44px); }   /* fixed — layout is uniform here */
}
/* Phone — single column with a fixed aspect. */
@media (max-width: 560px) {
  .work-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .work-card { grid-column: 1 / -1; height: auto; aspect-ratio: 4 / 3; }
  .work-card__name { font-size: clamp(30px, 8vw, 48px); }
  .work-grid .work-card:nth-child(2n) { transition-delay: 0ms; }
}

/* =========================================================
   HOME REDESIGN  (index.php only, gated by body.home-redesign)
   A centred stack — logo · titles · menu — over the hero video/gradient.
   The top bar, corner logo and bio line are hidden HERE only; every other
   page keeps its normal chrome. Intro cascade: the loader DOLL docks onto
   the centred logo (see the loader-dock code in script.js), the titles
   rise (the existing crossfade), then the menu items rise in, staggered.
   ========================================================= */
.home-redesign .bar,
.home-redesign .brand-corner,
.home-redesign .cockpit__lede { display: none !important; }

/* Home nav lives BELOW the titles (.home2__menu) while in the hero, so hide the
   nav-pill's inline links there. The pill keeps the logo (the loader's dock
   target) and, on mobile, its hamburger → drawer. */
.home-redesign .navpill__links { display: none; }
/* Once scrolled past the hero (into the reel / footer), the below-title menu is
   gone — so bring the pill's inline links back on desktop. (Mobile keeps the
   hamburger; the mobile media query above still hides these links there.) */
@media (min-width: 768px) and (min-height: 501px) {
  .home-redesign.past-hero .navpill__links { display: flex; }
}

.home-redesign .home2 {
  position: absolute; inset: 0; z-index: 3;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  /* Tight base gap groups the logo with the titles (brand + statement read as
     one unit). The menu breaks that rhythm with its own margin below. */
  gap: clamp(14px, 2.4vh, 30px);
  padding: 0 var(--pad-x);
  text-align: center;
}

/* Logo — docked to the TOP-LEFT corner (matches the other pages' brand-corner
   and the mobile home). Rebuilt in HTML (text + CSS stripe) rather than the
   PNG, so it can be the loader's live dock target. The statement + menu stay
   centred in the hero; the logo is lifted out of that flow into the corner. */
.home-redesign .home2__logo {
  display: inline-flex; text-decoration: none;
  position: absolute;
  top: clamp(18px, 2.4vw, 34px);
  left: var(--pad-x);
  z-index: 5;
}
.home-redesign .home2__wordmark {
  position: relative;
  display: inline-block;
  font-family: var(--f-logo);
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: 1;
  color: #fff;
  font-size: clamp(34px, 3.6vw, 52px);   /* corner size, on par with .brand-corner */
  filter: drop-shadow(0 2px 16px rgba(0, 0, 0, .55));
}
.home-redesign .home2__doll { display: block; }
.home-redesign .home2__stripe {
  position: absolute; left: 0; right: 0; top: 51.1%;
  transform: translateY(-50%);
  height: .056em; border-radius: 999px;
  background: var(--rainbow);
  box-shadow: 0 0 20px rgba(225, 79, 184, .3), 0 0 46px rgba(138, 91, 255, .18);
}

/* Hamburger — only surfaces on the mobile home (see the mobile block below),
   where it replaces the inline menu and opens the shared #drawer. Hidden on
   desktop, which keeps the centred inline menu. */
.home-redesign .home2__burger { display: none; }

/* Reuse the crossfade titles, but drop them into the flow of the stack
   instead of being absolutely centred on their own. */
.home-redesign .phrase {
  position: static; inset: auto;
  display: block; place-items: initial;
  padding: 0; pointer-events: none;
}

/* Menu — horizontal, centred, below the titles. A generous margin (≈2x the
   base stack gap) sets it apart as its own navigation layer, giving the hero
   statement room to breathe before the eye drops to the links. */
.home-redesign .home2__menu {
  margin-top: clamp(16px, 3vh, 40px);
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: clamp(18px, 3vw, 52px);
  font-family: var(--f-sans);
  font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  font-size: clamp(16px, 1.6vw, 24px);
  pointer-events: auto;
}
.home-redesign .home2__menu a {
  color: #fff; text-decoration: none; opacity: .82;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .45);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
/* Input-method aware states. The lift is gated to hover-capable pointers so a
   tapped link on touch never sticks in the "lifted" state; press + keyboard
   feedback is given separately so every input method gets a response. */
@media (hover: hover) {
  .home-redesign .home2__menu a:hover { opacity: 1; transform: translateY(-2px); }
}
.home-redesign .home2__menu a:active { opacity: 1; transform: translateY(1px); }
.home-redesign .home2__menu a:focus-visible {
  opacity: 1; outline: 2px solid #fff; outline-offset: 6px; border-radius: 4px;
}

/* Touch adaptation — the home menu is the ONLY navigation on this page (the top
   bar is hidden on the home), so on coarse pointers each link must be a proper
   thumb target. Grow to a ≥44px hit area without touching the pointer-fine
   layout the user approved. */
@media (pointer: coarse) {
  .home-redesign .home2__menu a {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 44px; padding-inline: 10px;
  }
}

/* ── Mobile home (per the approved layout): the logo docks to the TOP-LEFT
   corner and a hamburger sits TOP-RIGHT; the statement is centred; the inline
   menu is removed — navigation moves into the #drawer the hamburger opens.
   Gated to PORTRAIT up to 767px (covers phones + portrait phablets like
   720×1280); landscape phones keep the desktop centred stack + inline menu. ── */
@media (max-width: 767px) and (orientation: portrait) {
  .home-redesign .home2 {
    justify-content: center;   /* the statement is the only in-flow child → centred */
    gap: 0;
    padding: 0 var(--pad-x);
  }

  /* Logo → top-left corner. Still the loader's live dock target. */
  .home-redesign .home2__logo {
    position: absolute;
    top: clamp(20px, 3.2vh, 34px);
    left: var(--pad-x);
    z-index: 5;
  }
  .home-redesign .home2__wordmark { font-size: clamp(30px, 8.5vw, 44px); }

  /* Hamburger → top-right corner: two lines, a proper 44px touch target. */
  .home-redesign .home2__burger {
    display: inline-flex; flex-direction: column; align-items: flex-end; justify-content: center;
    gap: 8px;
    position: absolute;
    top: clamp(20px, 3.2vh, 34px);
    right: var(--pad-x);
    z-index: 5;
    width: 44px; height: 44px; padding: 0; margin: 0;
    background: none; border: 0; cursor: pointer; pointer-events: auto;
  }
  .home-redesign .home2__burger-line {
    display: block; width: 30px; height: 2px; border-radius: 2px;
    background: #fff;
    filter: drop-shadow(0 1px 4px rgba(0, 0, 0, .5));
    transition: width .3s var(--ease);
  }
  .home-redesign .home2__burger:active .home2__burger-line { width: 24px; }

  /* Inline menu removed — it now lives in the drawer. */
  .home-redesign .home2__menu { display: none; }

  /* Statement scaled to fill the width like the reference, centred. */
  .home-redesign .phrase__line     { font-size: clamp(30px, 10vw, 60px); }
  .home-redesign .phrase__line--lg { font-size: clamp(52px, 19vw, 120px); }
}

/* ── Intro cascade ──────────────────────────────────────────────────────
   Logo stays hidden until the loader docks onto it, then it fades up as the
   loader hands off; the menu items rise in a beat after the titles. */
body.home-redesign.is-loading .home2__logo { opacity: 0; }
/* Instant, not a fade — the loader hands off in one frame onto this identical
   wordmark, so the logo simply lands (no crossfade "zoom"). */
body.home-redesign:not(.is-loading) .home2__logo { opacity: 1; }

/* Hamburger (mobile) fades in a beat after the logo docks, so the corner
   settles as one gesture rather than popping in with the loader. */
body.home-redesign.is-loading .home2__burger { opacity: 0; }
body.home-redesign:not(.is-loading) .home2__burger {
  opacity: 1; transition: opacity .6s var(--ease) .9s;
}

body.home-redesign.is-loading .home2__menu a { opacity: 0; }
body.home-redesign:not(.is-loading) .home2__menu a { animation: menuRise .7s var(--ease-out) backwards; }
body.home-redesign:not(.is-loading) .home2__menu a:nth-child(1) { animation-delay: .85s; }
body.home-redesign:not(.is-loading) .home2__menu a:nth-child(2) { animation-delay: .97s; }
body.home-redesign:not(.is-loading) .home2__menu a:nth-child(3) { animation-delay: 1.09s; }
body.home-redesign:not(.is-loading) .home2__menu a:nth-child(4) { animation-delay: 1.21s; }
@keyframes menuRise { from { opacity: 0; transform: translateY(14px); } to { opacity: .82; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  body.home-redesign:not(.is-loading) .home2__menu a { animation: none; opacity: .82; }
}

/* =========================================================
   RECENT WORK REEL  (home only)
   A scroll-pinned carousel: the section is N×100vh tall; an inner sticky panel
   pins for that scroll and script.js swaps the active project by scroll progress.
   Each project carries its own colour backdrop — they crossfade so the whole
   background morphs to the work on screen (monopo-inspired, DOLL-styled).
   ========================================================= */
.reel {
  position: relative;
  z-index: 1;
  background: var(--ink);          /* fallback under the colour backdrops */
}
.reel__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  isolation: isolate;
}

/* Colour backdrops — stacked, crossfading. */
.reel__bgs { position: absolute; inset: 0; z-index: 0; }
.reel__bg {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity .85s var(--ease);
  will-change: opacity;
}
.reel__bg.is-active { opacity: 1; }
/* Cover-matched ambient: the same cover photo, scaled past the edges and blurred
   into a soft colour wash that matches what's on screen. Static (no per-frame
   cost); scale hides the blur's transparent edges. */
.reel__bg--img {
  background-size: cover;
  background-position: center;
  transform: scale(1.22);
  filter: blur(clamp(44px, 6vw, 82px)) saturate(1.18) brightness(.6);
}

/* Mouse-reactive aura — two big blurred colour blobs (sampled from the active
   cover by JS) that FLOW with the cursor, screen-blended on the black canvas so
   they read as living light (monopo.london-style). @property makes the colour
   vars animatable so they recolour smoothly as you scroll between projects. */
@property --aura-c1 { syntax: '<color>'; inherits: true; initial-value: #3B6FFF; }
@property --aura-c2 { syntax: '<color>'; inherits: true; initial-value: #E14FB8; }
.reel__aura {
  position: absolute; inset: 0; z-index: 1;
  overflow: hidden; pointer-events: none;
  transition: --aura-c1 .9s var(--ease), --aura-c2 .9s var(--ease);
}
.reel__aura-blob {
  position: absolute;
  width: 68vmax; height: 68vmax;
  border-radius: 50%;
  mix-blend-mode: screen;
  will-change: transform;
  /* --bx/--by are the mouse-driven offsets set by script.js. The two blobs are
     anchored off-centre on a diagonal so the colour FLOWS across the canvas
     (light pooling in two corners) rather than one dead-centre sun. */
  transform: translate3d(calc(-50% + var(--bx, 0px)), calc(-50% + var(--by, 0px)), 0);
}
.reel__aura-blob--1 {
  top: 38%; left: 36%; opacity: .4;
  background: radial-gradient(circle, var(--aura-c1) 0%, transparent 60%);
}
.reel__aura-blob--2 {
  top: 66%; left: 66%; opacity: .32;
  background: radial-gradient(circle, var(--aura-c2) 0%, transparent 60%);
}
@media (prefers-reduced-motion: reduce) {
  .reel__aura-blob { transform: translate3d(-50%, -50%, 0) !important; }
}
/* Scrim: a near-black core (behind the left text) that fades out at the edges,
   so the project colour survives only as a soft glow framing the composition —
   the black-gallery canvas of the reference. */
.reel__scrim {
  position: absolute; inset: 0;
  background:
    radial-gradient(135% 108% at 33% 48%, rgba(0,0,0,.92) 0%, rgba(0,0,0,.66) 40%, rgba(0,0,0,0) 100%),
    linear-gradient(0deg, rgba(0,0,0,.26), rgba(0,0,0,.26));
}

/* ── Overlap composition (reference / wireframe-matched) ─────────────────────
   The big cover image sits to the RIGHT, vertically centred. The meta block
   (eyebrow + crossfading project title + discipline) is anchored top-left and
   OVERLAPS the cover's upper-left corner — the title reads across the black
   canvas onto the image, exactly like the reference. A progress rail hugs the
   far-left edge; the CTA is centred to the page along the bottom. */
.reel__inner {
  position: relative; z-index: 2;
  height: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
}

/* Meta — absolute, top-left, sitting OVER the cover (higher z-index). It's purely
   decorative text, so it passes pointer events through to the cover link beneath. */
.reel__meta {
  position: absolute; z-index: 3;
  top: clamp(84px, 16vh, 152px);
  left: clamp(52px, 6vw, 104px);
  width: min(56%, 760px);
  display: flex; flex-direction: column; align-items: flex-start;
  text-align: left;
  pointer-events: none;
}
.reel__eyebrow {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 12px; letter-spacing: .24em; text-transform: uppercase;
  color: rgba(255, 255, 255, .72);
  margin-bottom: clamp(14px, 2vw, 24px);
}

/* Crossfading project title — all titles share one grid cell so the block sizes
   to the tallest and they fade over one another as the active project changes.
   Sits over the cover, so it carries a soft shadow to stay legible on any image. */
.reel__titles { display: grid; width: 100%; }
.reel__title {
  grid-area: 1 / 1;
  margin: 0;
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(34px, 4.4vw, 74px); line-height: .98;
  letter-spacing: -.03em; text-transform: uppercase;
  color: var(--paper);
  text-shadow: 0 4px 30px rgba(0, 0, 0, .55);
  opacity: 0; transform: translateY(6px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
.reel__title.is-active { opacity: 1; transform: none; }

/* Discipline label under the title. */
.reel__cats { position: relative; display: grid; width: 100%; margin-top: clamp(14px, 1.8vw, 26px); }
.reel__cat {
  grid-area: 1 / 1;
  font-family: var(--f-mono);
  font-size: 13px; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255, 255, 255, .6);
  text-shadow: 0 2px 16px rgba(0, 0, 0, .5);
  opacity: 0; transition: opacity .5s var(--ease);
}
.reel__cat.is-active { opacity: 1; }

/* ── The large cover image (right), vertically centred with auto-margins so the
   data-reveal entrance can own `transform`. Covers slide vertically as you scroll
   (translateY per scroll-progress in script.js); the window clips them. ── */
.reel__media {
  position: absolute; z-index: 1;
  inset: 0; margin: auto;                  /* centre both axes, no transform */
  width: min(60%, 1040px);
  height: clamp(340px, 72vh, 700px);
  overflow: hidden;
  border-radius: clamp(10px, 1vw, 16px);
  box-shadow: 0 48px 110px -28px rgba(0, 0, 0, .7);
}
.reel__card {
  position: absolute; inset: 0;
  display: block;
  text-decoration: none;
  transform: translateY(calc(var(--k, 0) * 100%));   /* no-JS fallback stack; JS crossfades via opacity */
  will-change: opacity;
}
/* Keyboard focus — inset so the ring shows inside the clipped media frame. */
.reel__card:focus-visible { outline: 2px solid var(--paper); outline-offset: -3px; }
.reel__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  background-size: cover; background-position: center;
}
.reel__img--grad::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 120% at 30% 20%, rgba(255, 255, 255, .16), transparent 58%);
}
/* Darken the cover's upper-left so the overlapping title stays legible. */
.reel__card-scrim {
  position: absolute; inset: 0;
  /* A soft wash confined to the top-left so the overlapping title stays legible,
     fading to clear well before the middle. No full-card darken — that heavy
     flat layer is what read as a "marked shadow" at each slide seam. */
  background: linear-gradient(122deg, rgba(0,0,0,.46) 0%, rgba(0,0,0,.12) 24%, rgba(0,0,0,0) 46%);
}
@media (hover: hover) {
  .reel__card:hover .reel__img { transform: scale(1.04); transition: transform .6s var(--ease-out); }
}

/* ── Progress rail (far-left edge) — one tick per project; the active tick grows
   to full width, turns solid and shows a ▸ marker, like the reference ruler. ── */
.reel__progress {
  /* Aligned to the title height (top area), not vertically centred. */
  position: absolute; left: clamp(14px, 2.4vw, 40px);
  top: calc(clamp(84px, 16vh, 152px) + clamp(26px, 3.4vh, 40px));
  z-index: 3;
  display: flex; flex-direction: column; gap: 14px;
}
.reel__tick {
  position: relative;
  width: 34px; height: 2px; border-radius: 2px;
  background: rgba(255, 255, 255, .28);
  transform: scaleX(.5); transform-origin: left center;
  transition: background .4s var(--ease), transform .4s var(--ease);
}
.reel__tick.is-active { background: var(--paper); transform: scaleX(1); }
.reel__tick.is-active::before {
  content: "\25B8";                       /* ▸ current-position marker */
  position: absolute; right: calc(100% + 8px); top: 50%;
  transform: translateY(-50%);
  font-size: 11px; line-height: 1; color: var(--paper);
}

/* ── CTA — centred to the page along the bottom ── */
.reel__discover {
  /* Centred with auto-margins (not translateX) so the data-reveal entrance can
     own `transform` without knocking the button off-centre. */
  position: absolute; bottom: clamp(30px, 5.5vh, 60px);
  left: 0; right: 0; margin-inline: auto; width: fit-content;
  z-index: 3;
  display: inline-flex; align-items: center; gap: .7em;
  padding: 14px clamp(24px, 2.4vw, 34px);
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 999px;
  font-family: var(--f-sans); font-weight: 600;
  font-size: clamp(13px, 1vw, 15px); letter-spacing: .12em; text-transform: uppercase;
  color: var(--paper); text-decoration: none;
  background: rgba(0, 0, 0, .1);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.reel__discover:hover { background: rgba(255, 255, 255, .14); border-color: var(--paper); }
.reel__discover:focus-visible { outline: 2px solid var(--paper); outline-offset: 3px; }
.reel__discover-arrow { transition: transform .3s var(--ease-out); }
.reel__discover:hover .reel__discover-arrow { transform: translateX(4px); }

/* ── Mobile / narrow: stack meta ABOVE the cover (no overlap); hide the rail ── */
@media (max-width: 820px) {
  .reel__inner {
    display: flex; flex-direction: column; justify-content: center;
    align-items: flex-start;
    gap: clamp(18px, 3vh, 30px);
    padding: clamp(84px, 12vh, 120px) var(--pad-x) clamp(104px, 15vh, 132px);
  }
  .reel__meta {
    position: static; z-index: auto;
    top: auto; left: auto; width: 100%;
    pointer-events: auto;
  }
  .reel__title { font-size: clamp(32px, 8vw, 56px); }
  .reel__media {
    /* relative (not static) so it stays in flow AND remains the containing block
       for the absolute .reel__card filmstrip. */
    position: relative; margin: 0; inset: auto;
    width: 100%; height: clamp(280px, 50vh, 460px);
  }
  .reel__progress { display: none; }   /* rail off on mobile — no room */
}

@media (prefers-reduced-motion: reduce) {
  .reel__bg, .reel__title, .reel__cat { transition: opacity .2s linear; }
  .reel__title, .reel__card { transform: none !important; }
  /* With the slide off, stacked covers would all pile up (last on top) and taps
     would hit the wrong project. Crossfade them instead, and make only the
     visible (active) cover tappable so tapping a cover reliably opens it. */
  .reel__card { opacity: 0; transition: opacity .4s ease; pointer-events: none; }
  .reel__card.is-active { opacity: 1; pointer-events: auto; z-index: 2; }
}

/* Arrival choreography — when the reel first scrolls into view its parts rise in,
   staggered (eyebrow → title → category → cover). Reuses the site's [data-reveal]
   IntersectionObserver, which already reveals everything on no-JS / reduced-motion,
   so the section is never gated blank. The cover fades up with a slight scale for a
   more deliberate "settle". The CTA is intentionally NOT reveal-gated: it sits
   sticky at the bottom of the viewport, which lands in the observer's bottom
   dead-zone, so it must stay visible from the first frame of the reel. */
html.is-scripted .reel__eyebrow[data-reveal]  { transition-delay: 0s; }
html.is-scripted .reel__titles[data-reveal]   { transition-delay: .08s; }
html.is-scripted .reel__cats[data-reveal]     { transition-delay: .16s; }
html.is-scripted .reel__media[data-reveal]    { transition-delay: .2s; opacity: 0; transform: translateY(34px) scale(.97); }
html.is-scripted .reel__media[data-reveal].is-in { opacity: 1; transform: none; }

/* =========================================================
   PROJECT — case-study interior (project.php)
   Oversized title, centred hero frame with left disciplines +
   right "what we did", an alternating media showcase, details
   and a "more work" tail. DOLL black canvas throughout.
   ========================================================= */
.page-project-body { background: var(--ink); color: var(--paper); }
.pj-main { position: relative; z-index: 1; }
.pj-eyebrow {
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .24em;
  text-transform: uppercase; color: rgba(255, 255, 255, .5);
}
.pj-media__el { width: 100%; height: 100%; object-fit: cover; display: block; }
.pj-media__grain {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(130% 100% at 50% 0%, transparent 58%, rgba(0,0,0,.28));
}

/* ── Hero ── */
.pj-hero {
  position: relative;
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(84px, 11vh, 140px) var(--pad-x) clamp(48px, 8vh, 90px);
}
.pj-hero__back { margin: 0 0 clamp(26px, 5vh, 60px); }
.pj-hero__back a {
  display: inline-flex; gap: .6em; align-items: center;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255, 255, 255, .55); text-decoration: none; transition: color .3s var(--ease);
}
.pj-hero__back a:hover { color: var(--paper); }

.pj-hero__title {
  position: relative; z-index: 3; margin: 0;
  text-align: center;
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(54px, 11vw, 190px); line-height: .84;
  letter-spacing: -.04em; text-transform: uppercase;
  text-wrap: balance;
  pointer-events: none;   /* the wide centred title never blocks the side columns */
}

.pj-hero__stage {
  position: relative; z-index: 1;
  /* A gentler tuck: the frame slips a touch behind the title base, but the
     side columns are no longer dragged up into the title (padding > |margin|
     keeps the top metadata clear of the title at every width). */
  margin-top: clamp(-64px, -4.5vw, -24px);
  display: grid;
  grid-template-columns: 1fr minmax(300px, 37%) 1fr;
  align-items: stretch;                        /* columns span the frame → the text block anchors to its base */
  gap: clamp(22px, 3.2vw, 56px);
}
.pj-hero__col { display: flex; flex-direction: column; gap: clamp(22px, 2.6vw, 38px); }
/* Both columns: metadata up top (padded clear of the title), the text block
   anchored to the BASE of the frame via margin-top:auto (robust when a column
   has no metadata). Each points toward the frame. */
.pj-hero__col--left  {
  align-items: flex-end; text-align: right;
  justify-content: flex-start;
  padding: clamp(80px, 9.5vw, 158px) 0 clamp(16px, 3.4vw, 54px);
}
.pj-hero__col--right {
  align-items: flex-start;
  justify-content: flex-start;
  padding: clamp(80px, 9.5vw, 158px) 0 clamp(16px, 3.4vw, 54px);
}
.pj-hero__meta  { display: flex; flex-direction: column; gap: clamp(16px, 2vw, 28px); align-items: flex-end; }
.pj-hero__col--right .pj-hero__meta { align-items: flex-start; }
.pj-hero__block { display: flex; flex-direction: column; gap: clamp(12px, 1.2vw, 18px); max-width: 42ch; margin-top: auto; }
.pj-hero__col--left  .pj-hero__block { align-items: flex-end; }
.pj-hero__col--right .pj-hero__block { align-items: flex-start; }
.pj-hero__col--right .pj-hero__client { align-items: flex-start; }  /* COUNTRY reads toward the frame */

.pj-disc {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 8px;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .2em;
  text-transform: uppercase; color: rgba(255, 255, 255, .72);
  text-align: right;
}
.pj-hero__client { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.pj-hero__client-label {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .24em;
  text-transform: uppercase; color: rgba(255, 255, 255, .6);  /* AA on black (≥4.5:1) */
}
.pj-hero__client-name {
  font-family: var(--f-display); font-weight: 700; font-size: clamp(22px, 2.3vw, 40px);
  letter-spacing: -.02em; line-height: 1.02;
}
/* "Visit website" button in the hero right column, under Country — reuses the
   footer .resume-btn look/animation (spectrum glow + lifting dark pill); this
   only positions it. */
.pj-hero__visit { align-self: flex-start; margin-top: clamp(16px, 2vw, 26px); }

.pj-hero__media {
  position: relative; margin: 0;
  width: 100%; aspect-ratio: 3 / 4;
  align-self: start;                 /* keep the frame's shape when columns stretch */
  overflow: hidden; border-radius: clamp(10px, 1vw, 16px);
  background: var(--grad);
  box-shadow: 0 44px 110px -34px rgba(0, 0, 0, .75);
}

.pj-hero__lede {
  margin: 0; font-family: var(--f-sans);
  font-size: clamp(14px, 1.05vw, 17px); line-height: 1.62;
  color: rgba(255, 255, 255, .82); max-width: 40ch;
}

/* ── Project hero — signature entrance choreography ──────────────────────
   Overrides the generic [data-reveal] fade so the hero reads as ONE authored
   move, not a uniform fade-rise (the AI tell). The portrait frame DEVELOPS in
   — a clip-path wipe up while the image settles from a touch larger (the work
   arriving as the centrepiece) — the giant title rises with weight, and the
   side blocks settle in left→right. Three materials (clip · big-rise · fade),
   staggered, not one uniform entrance. Matches how the footer / what-hero /
   ed-hero already override [data-reveal]. */
html.is-scripted .pj-hero__back[data-reveal] {
  transform: translateY(14px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
html.is-scripted .pj-hero__title[data-reveal] {
  transform: translateY(54px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
  transition-delay: .06s;
}
/* The frame develops on LOAD via keyframes, NOT the IntersectionObserver —
   a clip-path-clipped element reads as 0% intersecting, so the IO would never
   reveal it. The hero is always in view on load, so a load animation is right. */
@keyframes pj-frame-develop { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes pj-frame-settle  { from { transform: scale(1.08); }        to { transform: scale(1); } }
html.is-scripted .pj-hero__media {
  clip-path: inset(0 0 0 0);
  animation: pj-frame-develop 1s var(--ease-out) .16s both;
}
html.is-scripted .pj-hero__media .pj-media__el {
  animation: pj-frame-settle 1.2s var(--ease-out) .16s both;
}
html.is-scripted .pj-hero__col--left[data-reveal]  { transition-delay: .28s; }
html.is-scripted .pj-hero__col--right[data-reveal] { transition-delay: .4s; }
@media (prefers-reduced-motion: reduce) {
  html.is-scripted .pj-hero__media,
  html.is-scripted .pj-hero__media .pj-media__el { animation: none; }
}

/* ── Media showcase ── */
/* ── YouTube embeds — click-to-play 16:9 players. The facade (thumbnail + play)
   is all that loads up front; pressing it swaps in the player iframe. ── */
.pj-embeds {
  max-width: min(var(--maxw), 1120px); margin: 0 auto;
  padding: clamp(28px, 6vh, 72px) var(--pad-x);
  display: grid; grid-template-columns: 1fr;   /* a single video spans the row */
  gap: clamp(26px, 4.5vh, 52px);
  align-items: start;
}
/* Several videos align on one horizontal row (wrapping only when there are too
   many to fit); on narrow screens they stack. YouTube-style row of players.
   The row spans the full page width (like the full-bleed gallery photos), with
   just a small edge gutter, so a row of videos reads at the same scale. */
.pj-embeds--row {
  box-sizing: border-box;
  /* Fill the container: the full page width as its own section, or the gallery
     content width (so it lines up with the photo it sits under) when anchored.
     `width:100%` avoids both the flex-column collapse to 0 and a 100vw scrollbar. */
  max-width: none; width: 100%; margin: 0;
  padding-left: clamp(14px, 1.8vw, 32px);
  padding-right: clamp(14px, 1.8vw, 32px);
  /* Exactly N equal columns (N = video count, capped at 4) so the row fills the
     width evenly — auto-fit would leave a phantom track and an uneven gutter. */
  grid-template-columns: repeat(var(--embed-cols, 3), minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 24px);
}
/* Tablet: at most 2 across so the players don't get tiny. */
@media (min-width: 621px) and (max-width: 1040px) {
  .pj-embeds--row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Phone: stack. */
@media (max-width: 620px) {
  .pj-embeds--row { grid-template-columns: 1fr; }
}
.pj-embed-item { min-width: 0; display: flex; flex-direction: column; gap: clamp(8px, 1vw, 12px); }
.pj-embed__title {
  margin: 0; font-family: var(--f-display, sans-serif); font-weight: 700;
  font-size: clamp(15px, 1.3vw, 19px); line-height: 1.2; letter-spacing: -.01em;
  color: #fff; text-wrap: balance;
}
.pj-embed {
  position: relative; margin: 0;
  aspect-ratio: 16 / 9;
  border-radius: clamp(10px, 1.4vw, 18px);
  overflow: hidden; background: #0a0a0a;
  box-shadow: 0 30px 80px -42px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .06);
}
.pj-embed__facade {
  position: absolute; inset: 0; width: 100%; height: 100%;
  padding: 0; border: 0; cursor: pointer; background: #0a0a0a;
  display: grid; place-items: center;
  border-radius: inherit; overflow: hidden;
}
.pj-embed__thumb {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .6s var(--ease-out, ease), filter .4s var(--ease, ease);
}
.pj-embed__play {
  position: relative; z-index: 2; width: clamp(62px, 7.5vw, 90px);
  filter: drop-shadow(0 8px 26px rgba(0, 0, 0, .55));
  transition: transform .35s var(--ease-out, ease);
}
.pj-embed__play svg { width: 100%; height: auto; display: block; }
.pj-embed__play-bg { fill: #1a1a1a; opacity: .82; transition: fill .3s var(--ease, ease), opacity .3s var(--ease, ease); }
@media (hover: hover) {
  .pj-embed__facade:hover .pj-embed__thumb { transform: scale(1.03); filter: brightness(.88); }
  .pj-embed__facade:hover .pj-embed__play { transform: scale(1.08); }
  .pj-embed__facade:hover .pj-embed__play-bg { fill: var(--spectrum-pink, #E14FB8); opacity: 1; }
}
.pj-embed__facade:active { transform: scale(.996); }
.pj-embed__facade:focus-visible { outline: 3px solid var(--spectrum-pink, #E14FB8); outline-offset: 3px; }
/* border-radius on the iframe itself (not just the clipped parent): Safari/iOS
   does NOT clip an <iframe> to a parent's overflow+radius, so a PLAYING video
   would otherwise show square corners while the unplayed ones stay rounded. */
.pj-embed__iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; border-radius: inherit; }
@media (prefers-reduced-motion: reduce) {
  .pj-embed__thumb, .pj-embed__play { transition: none; }
}

.pj-showcase {
  max-width: var(--maxw); margin: 0 auto;
  padding: 0 var(--pad-x) clamp(48px, 9vh, 96px);
  display: flex; flex-direction: column; gap: clamp(16px, 2.4vw, 34px);
}

/* Intro statement — an optional big text block woven between the video and the
   photos (renders only when the project fills Intro title/body in the CMS). */
.pj-statement {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(56px, 11vh, 132px) var(--pad-x);
}
.pj-statement__inner { max-width: 960px; }
.pj-statement__title {
  font-family: var(--f-display); font-weight: 800;
  font-size: clamp(30px, 5vw, 66px); line-height: 1.03; letter-spacing: -.03em;
  text-wrap: balance; color: #fff; margin: 0 0 clamp(16px, 2vw, 28px);
}
.pj-statement__body {
  font-family: var(--f-sans);
  font-size: clamp(17px, 1.5vw, 22px); line-height: 1.6;
  color: rgba(255, 255, 255, .82); max-width: 62ch; text-wrap: pretty; margin: 0;
}
.pj-shot {
  margin: 0; position: relative; overflow: hidden;
  border-radius: clamp(3px, .35vw, 6px); background: var(--grad); /* reduced rounding → tighter grid */
}
.pj-shot .pj-media__el { aspect-ratio: 4 / 5; transition: transform .8s var(--ease-out); }
.pj-shot--full .pj-media__el { aspect-ratio: 16 / 8; }
@media (hover: hover) { .pj-shot:hover .pj-media__el { transform: scale(1.03); } }

/* Standalone video — shown at its ORIGINAL aspect ratio (no crop, no zoom). The
   width + aspect-ratio are set inline per-video; here we just centre it, keep it
   from overflowing, and never scale it. */
.pj-shot--video,
.pj-shot--fit {
  background: transparent; overflow: visible; border-radius: 0;
  display: flex; justify-content: center;
}
.pj-shot--video .pj-media__el,
.pj-shot--fit .pj-media__el {
  height: auto; max-width: 100%;
  object-fit: contain; display: block;
  border-radius: clamp(3px, .35vw, 6px);
}
.pj-shot--video:hover .pj-media__el,
.pj-shot--fit:hover .pj-media__el { transform: none; }
/* "View post" link on a gallery photo/video — ALWAYS visible (no hover needed),
   a solid white pill so it reads instantly. (.pj-shot is position:relative, so
   the overlay anchors to the tile.) */
.pj-shot__view {
  position: absolute; left: 50%; bottom: clamp(14px, 2.2vw, 28px); transform: translateX(-50%);
  z-index: 3;
  display: inline-flex; align-items: center; gap: .55em;
  padding: .72em 1.4em;
  font-family: var(--f-mono); font-size: clamp(12px, 1.05vw, 14px); font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
  color: #0a0a0a;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(0, 0, 0, .3);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .25s var(--ease);
}
.pj-shot__view:hover {
  background: #fff;
  transform: translateX(-50%) translateY(-3px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, .38);
}
.pj-shot__view-arrow { transition: transform .25s var(--ease); }
.pj-shot__view:hover .pj-shot__view-arrow { transform: translate(2px, -2px); }

/* Project call-to-action — a bold button (e.g. "Ver menú digital") that opens an
   external link. One prominent action, centred, high-contrast on the canvas. */
.pj-cta {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(36px, 7vh, 88px) var(--pad-x) clamp(20px, 4vh, 52px);
  display: flex; justify-content: center;
}
.pj-cta__btn {
  display: inline-flex; align-items: center; gap: .55em;
  padding: clamp(15px, 1.7vw, 23px) clamp(28px, 3.4vw, 50px);
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(19px, 2.3vw, 32px); letter-spacing: -.01em; line-height: 1;
  text-decoration: none; white-space: nowrap;
  color: #0a0a0a; background: #fff;
  border-radius: 999px;
  box-shadow: 0 12px 44px rgba(0, 0, 0, .42);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.pj-cta__btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 64px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .12);
}
.pj-cta__arrow { font-size: .82em; transition: transform .35s var(--ease-out); }
.pj-cta__btn:hover .pj-cta__arrow { transform: translate(3px, -3px); }

/* Full-bleed media — breaks out of the showcase's max-width + gutters to span
   the whole viewport, edge to edge, with nothing beside it. */
.pj-shot--bleed {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
.pj-shot--bleed .pj-media__el { width: 100%; max-width: none; border-radius: 0; }
.pj-row { display: grid; gap: clamp(16px, 2.4vw, 34px); }
.pj-row--2 { grid-template-columns: repeat(2, 1fr); }
.pj-row--3 { grid-template-columns: repeat(3, 1fr); }
.pj-row--3 .pj-shot .pj-media__el { aspect-ratio: 3 / 4; }

/* Feature: video + note */
.pj-feature {
  display: grid; grid-template-columns: 1.7fr 1fr; gap: clamp(20px, 3vw, 52px);
  align-items: end;
}
.pj-feature__media { aspect-ratio: 16 / 9; }
.pj-feature__media .pj-media__el { aspect-ratio: 16 / 9; }
.pj-feature__text { display: flex; flex-direction: column; gap: 12px; padding-bottom: clamp(6px, 2vh, 22px); }
.pj-feature__note {
  margin: 0; font-family: var(--f-sans); font-size: clamp(14px, 1vw, 17px);
  line-height: 1.6; color: rgba(255, 255, 255, .72); max-width: 34ch;
}

/* Play button */
.pj-play {
  position: absolute; inset: 0; margin: auto;
  width: clamp(72px, 8vw, 108px); height: clamp(72px, 8vw, 108px);
  border: 0; background: transparent; cursor: pointer;
  display: grid; place-items: center;
  transition: opacity .4s var(--ease);
}
.pj-play__ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .75); background: rgba(0, 0, 0, .28);
  -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
  transition: transform .45s var(--ease-out), background .3s var(--ease);
}
.pj-play:hover .pj-play__ring { transform: scale(1.07); background: rgba(0, 0, 0, .42); }
.pj-play__tri {
  position: relative; z-index: 1; margin-left: 5px;
  width: 0; height: 0;
  border-left: 17px solid var(--paper);
  border-top: 11px solid transparent; border-bottom: 11px solid transparent;
}
.pj-play__label {
  position: absolute; bottom: -30px; left: 50%; transform: translateX(-50%);
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255, 255, 255, .7); white-space: nowrap;
}
.pj-feature__media.is-playing .pj-play { opacity: 0; }
.pj-feature__media.is-playing:hover .pj-play { opacity: 1; }

/* ── Details / credits ── */
.pj-details { max-width: var(--maxw); margin: 0 auto; padding: clamp(40px, 7vh, 84px) var(--pad-x) clamp(56px, 9vh, 110px); }
.pj-details__grid {
  margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: clamp(22px, 3vw, 52px);
  border-top: 1px solid rgba(255, 255, 255, .14); padding-top: clamp(28px, 4vh, 50px);
}
.pj-detail { display: flex; flex-direction: column; gap: 10px; }
.pj-detail--wide { grid-column: 1 / -1; }
.pj-detail dt {
  margin: 0; font-family: var(--f-mono); font-size: 11px; letter-spacing: .22em;
  text-transform: uppercase; color: rgba(255, 255, 255, .42);
}
.pj-detail dd {
  margin: 0; font-family: var(--f-display); font-weight: 600;
  font-size: clamp(16px, 1.3vw, 22px); letter-spacing: -.01em;
}
.pj-detail__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.pj-tag {
  font-family: var(--f-sans); font-weight: 500; font-size: 13px;
  padding: 6px 13px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px;
  color: rgba(255, 255, 255, .82);
}

/* ── More work ── */
.pj-more { max-width: var(--maxw); margin: 0 auto; padding: clamp(40px, 7vh, 84px) var(--pad-x) clamp(84px, 13vh, 150px); }
.pj-more__head { display: flex; flex-direction: column; gap: 10px; margin-bottom: clamp(28px, 4vw, 54px); }
.pj-more__title {
  margin: 0; font-family: var(--f-display); font-weight: 700;
  font-size: clamp(34px, 5vw, 82px); line-height: 1; letter-spacing: -.035em; text-transform: uppercase;
}
.pj-more__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 30px); }
.pj-more__item a { display: block; position: relative; text-decoration: none; color: var(--paper); }
.pj-more__media {
  display: block; position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  border-radius: clamp(8px, .9vw, 14px); background: var(--grad);
}
.pj-more__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-out); }
.pj-more__item a:hover .pj-more__media img { transform: scale(1.05); }
.pj-more__scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.5), transparent 55%); }
.pj-more__foot { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 14px; }
.pj-more__name { font-family: var(--f-display); font-weight: 700; font-size: clamp(18px, 1.6vw, 26px); text-transform: uppercase; letter-spacing: -.012em; }
.pj-more__cat { font-family: var(--f-mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: rgba(255, 255, 255, .5); }
.pj-more__arrow {
  position: absolute; top: clamp(10px, 1vw, 16px); right: clamp(10px, 1vw, 16px);
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%;
  background: rgba(0, 0, 0, .38); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  opacity: 0; transform: translateY(-6px); transition: opacity .4s var(--ease), transform .4s var(--ease-out);
}
.pj-more__item a:hover .pj-more__arrow { opacity: 1; transform: none; }
.pj-more__all {
  display: inline-flex; align-items: center; gap: .6em; margin-top: clamp(28px, 4vw, 50px);
  font-family: var(--f-mono); font-size: 13px; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255, 255, 255, .65); text-decoration: none; transition: color .3s var(--ease);
}
.pj-more__all:hover { color: var(--paper); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .pj-hero__stage {
    grid-template-columns: 1fr; margin-top: clamp(-18px, -3vw, -6px);
    gap: clamp(20px, 5vw, 34px); align-items: stretch;
  }
  .pj-hero__media { order: -1; aspect-ratio: 4 / 5; width: 100%; max-width: 560px; margin: 0 auto; align-self: auto; }
  .pj-hero__col--left, .pj-hero__col--right { padding: 0; justify-content: flex-start; align-items: flex-start; text-align: left; }
  .pj-hero__col--left .pj-disc { text-align: left; }
  .pj-hero__client,
  .pj-hero__meta,
  .pj-hero__col--left .pj-hero__block,
  .pj-hero__col--right .pj-hero__block { align-items: flex-start; }
  .pj-feature { grid-template-columns: 1fr; align-items: stretch; }
  .pj-row--2, .pj-row--3 { grid-template-columns: 1fr; }
  .pj-more__list { grid-template-columns: 1fr; }
}
@media (min-width: 561px) and (max-width: 900px) {
  .pj-more__list { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .pj-shot .pj-media__el, .pj-more__media img { transition: none; }
}

/* =========================================================
   ALL WORK — controls (filter + view toggle) & LIST view
   Grid stays the default; the toggle swaps to a big typographic
   list where each row marquees its name and a media preview
   follows the cursor (poweredby.tokyo-inspired, DOLL-styled).
   ========================================================= */
/* Controls row — the filter + view toggle share one row (toggle at the same
   height as the tabs). The row itself does NOT move; only the toggle follows the
   scroll (JS adds .is-pinned once the row scrolls under the nav). */
.work-controls {
  display: flex; align-items: center; justify-content: space-between;
  gap: clamp(16px, 2vw, 30px); flex-wrap: wrap;
  max-width: var(--maxw); margin: 0 auto;
  /* Generous break from the hero statement (top); tight to the grid it drives
     (bottom) — the controls read as one group with the work below. */
  padding: clamp(44px, 8vh, 96px) var(--pad-x) clamp(14px, 2vh, 22px);
}
.work-controls .work-filter { padding: 0; margin: 0; max-width: none; flex: 1 1 340px; }
.work-controls__spacer { flex: 1 1 auto; }

/* Grid / list segmented toggle — sits in-row with the filters (same height); when
   pinned it detaches to fixed top-right and follows the scroll. */
.work-view {
  flex: 0 0 auto;
  display: inline-flex; gap: 4px; padding: 5px;
  border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px;
  background: rgba(255, 255, 255, .04);
}
.work-view.is-pinned {
  position: fixed; z-index: 90;
  top: clamp(58px, 8vh, 82px); right: var(--pad-x);
  background: rgba(10, 10, 12, .72);
  -webkit-backdrop-filter: blur(12px) saturate(140%); backdrop-filter: blur(12px) saturate(140%);
  box-shadow: 0 12px 34px -14px rgba(0, 0, 0, .7);
}
.work-view__btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 15px; border: 0; background: transparent; border-radius: 999px;
  color: rgba(255, 255, 255, .6); cursor: pointer;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  transition: color .3s var(--ease), background .3s var(--ease);
}
.work-view__btn svg { fill: currentColor; flex: 0 0 auto; }
.work-view__btn:hover { color: #fff; }
.work-view__btn.is-active { color: var(--ink); background: var(--paper); }
/* Keyboard focus for the filter pills + view toggle (cards already have one). */
.work-filter__btn:focus-visible,
.work-view__btn:focus-visible {
  outline: 2px solid var(--paper); outline-offset: 3px;
}
/* Touch: the compact toggle buttons still need a 44px hit target. */
@media (pointer: coarse) {
  .work-view__btn { min-height: 44px; }
}

/* View switching */
.work-list { display: none; }
.work-main.is-view-list .work-grid { display: none; }
.work-main.is-view-list .work-list { display: block; }

/* ── List view ── */
.work-list { max-width: var(--maxw); margin: 0 auto; padding: clamp(10px, 2vw, 22px) var(--pad-x) 0; }
.work-row {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center;
  gap: clamp(16px, 2vw, 32px);
  padding: clamp(20px, 3.4vw, 46px) 0;
  border-top: 1px solid rgba(255, 255, 255, .13);
  text-decoration: none; color: var(--paper);
}
.work-row:last-of-type { border-bottom: 1px solid rgba(255, 255, 255, .13); }
.work-row.is-hidden { display: none !important; }
.work-row::before {
  content: ""; position: absolute; inset: 0 calc(var(--pad-x) * -1); z-index: -1;
  background: linear-gradient(90deg, rgba(255, 255, 255, .06), transparent 46%);
  opacity: 0; transition: opacity .4s var(--ease);
}
.work-row:hover::before { opacity: 1; }
.work-row:focus-visible { outline: 2px solid var(--paper); outline-offset: -6px; }
.work-row:focus-visible::before { opacity: 1; }
.work-row__main { min-width: 0; display: flex; flex-direction: column; gap: clamp(6px, .7vw, 12px); }
.work-row__name { position: relative; overflow: hidden; }
.work-row__label {
  display: block; white-space: nowrap; overflow: hidden; text-overflow: clip;
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(30px, 6.4vw, 98px); line-height: .96; letter-spacing: -.035em; text-transform: uppercase;
  color: var(--paper); transition: opacity .3s var(--ease);
}
.work-row__track {
  position: absolute; inset: 0; display: flex; align-items: center; white-space: nowrap;
  opacity: 0; pointer-events: none; will-change: transform;
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(30px, 6.4vw, 98px); line-height: .96; letter-spacing: -.035em; text-transform: uppercase;
  color: var(--paper);
}
.work-row__group { display: inline-flex; align-items: center; flex: 0 0 auto; }
.work-row__word { padding: 0 .16em; }
.work-row__star { flex: 0 0 auto; font-size: .42em; padding: 0 .1em; color: var(--spectrum-pink); transform: translateY(-.15em); }
.work-row:hover .work-row__label { opacity: 0; }
.work-row:hover .work-row__track { opacity: 1; animation: work-marquee 18s linear infinite; }
@keyframes work-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.work-row__cats {
  font-family: var(--f-mono); font-size: clamp(11px, 1vw, 13px); letter-spacing: .18em;
  text-transform: uppercase; color: rgba(255, 255, 255, .62);
}
.work-row__arrow {
  flex: 0 0 auto; width: clamp(44px, 5vw, 70px); height: clamp(44px, 5vw, 70px);
  display: grid; place-items: center; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .25); color: var(--paper);
  font-size: clamp(18px, 2vw, 26px);
  transition: background .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease), transform .45s var(--ease-out);
}
.work-row:hover .work-row__arrow { background: var(--paper); color: var(--ink); border-color: var(--paper); transform: translateX(6px); }

/* Row entrance when switching to list */
.work-main.is-view-list .work-row { animation: work-row-in .6s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 38ms); }
@keyframes work-row-in { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* ── Cursor-following media preview (list) ── */
.work-preview {
  position: fixed; top: 0; left: 0; z-index: 60;
  width: clamp(230px, 25vw, 380px); aspect-ratio: 4 / 5;
  pointer-events: none; opacity: 0; visibility: hidden;
  transform: translate(-50%, -50%);
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 34px 90px -26px rgba(0, 0, 0, .75);
  transition: opacity .35s var(--ease);
}
.work-preview.is-on { opacity: 1; visibility: visible; }
.work-preview__inner { display: block; width: 100%; height: 100%; }
.work-preview__inner img, .work-preview__inner video { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 640px) {
  .work-view__btn span { display: none; }
  .work-view__btn { padding: 9px 12px; }
  .work-preview { display: none; }
  .work-row { padding: clamp(16px, 5vw, 30px) 0; }
}
@media (prefers-reduced-motion: reduce) {
  .work-row:hover .work-row__track { animation: none; }
  .work-main.is-view-list .work-row { animation: none; }
}

/* ══════════════════════════════════════════════════════════════════════
   REEL CAROUSEL (project interior) — a coverflow of vertical reels. The
   front reel plays and shows "View post"; the rest sit back in perspective.
   ══════════════════════════════════════════════════════════════════════ */
/* ── Reel ROW — vertical reels embedded side-by-side, full-bleed ──────────
   An alternative to the coverflow (reelLayout: "row", e.g. Imox): every
   vertical reel sits in one horizontal band spanning the whole page width,
   edge-to-edge, autoplaying muted. .pj-main is full-width, so width:100% is
   already edge-to-edge (no 100vw scrollbar trick needed). */
.pj-reelrow {
  width: 100%;
  margin-block: clamp(40px, 7vh, 96px) clamp(56px, 10vh, 120px);
  padding-inline: clamp(12px, 2.2vw, 40px);   /* breathing gutters so the rounded corners read */
  overflow: hidden;
}
.pj-reelrow__track {
  display: flex;
  gap: clamp(10px, 1.6vw, 24px);              /* visible gaps between the reels */
  width: 100%;
}
.pj-reelrow__item {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  aspect-ratio: var(--reel-ar, 9 / 16);  /* defaults to 9:16; set per-carousel from content */
  max-height: 94vh;                 /* graceful cap on very large screens */
  overflow: hidden;
  border-radius: clamp(10px, 1vw, 16px);      /* subtle rounding on all corners */
  background: #0b0d1a;
  isolation: isolate;
}
.pj-reelrow__video,
.pj-reelrow__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
/* Bottom scrim so the controls stay legible over any frame. */
.pj-reelrow__item::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 38%;
  background: linear-gradient(to top, rgba(0,0,0,.6), transparent);
  opacity: 0; transition: opacity .4s var(--ease);
  pointer-events: none; z-index: 1;
}
.pj-reelrow__item:hover::after,
.pj-reelrow__item:focus-within::after { opacity: 1; }
.pj-reelrow__grain { display: none; }

/* View-post link — bottom-right, revealed on hover/focus. */
.pj-reelrow__view {
  position: absolute; right: clamp(12px, 1.4vw, 20px); bottom: clamp(12px, 1.4vw, 20px);
  z-index: 2;
  display: inline-flex; align-items: center; gap: .5em;
  padding: .55em .9em;
  font-family: var(--f-mono); font-size: clamp(11px, 1vw, 13px);
  letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  color: #fff;
  border: 1px solid rgba(255,255,255,.4); border-radius: 999px;
  background: rgba(0,0,0,.35);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; transform: translateY(6px);
  transition: opacity .4s var(--ease), transform .4s var(--ease), background .25s var(--ease), border-color .25s var(--ease);
}
.pj-reelrow__item:hover .pj-reelrow__view,
.pj-reelrow__item:focus-within .pj-reelrow__view { opacity: 1; transform: translateY(0); }
.pj-reelrow__view:hover { background: rgba(0,0,0,.6); border-color: rgba(255,255,255,.85); }
.pj-reelrow__view-arrow { transition: transform .25s var(--ease); }
.pj-reelrow__view:hover .pj-reelrow__view-arrow { transform: translate(2px, -2px); }

/* Touch / no-hover: the view link is always visible (no hover to reveal it). */
@media (hover: none) {
  .pj-reelrow__view { opacity: 1; transform: none; }
  .pj-reelrow__item::after { opacity: 1; }
}

/* Mobile: a swipeable row of watchable verticals instead of thin thirds. */
@media (max-width: 760px) {
  .pj-reelrow__track {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 8px;
    padding-inline: 12px;
    scrollbar-width: none;
  }
  .pj-reelrow__track::-webkit-scrollbar { display: none; }
  .pj-reelrow__item {
    flex: 0 0 80vw;
    max-height: none;
    scroll-snap-align: center;
    border-radius: 16px;
  }
}

.pj-reel {
  padding: clamp(40px, 7vh, 96px) var(--pad-x) clamp(56px, 10vh, 120px);
  overflow: hidden;
}
.pj-reel__stage {
  position: relative;
  height: clamp(440px, 80vh, 880px);
  perspective: 2200px;
  touch-action: pan-y;
  -webkit-user-select: none; user-select: none;
}
.pj-reel__card {
  position: absolute;
  top: 50%; left: 50%;
  height: min(80vh, 860px);
  width: auto;
  max-width: 92vw;                       /* never overflow on wide (e.g. 1:1) cards */
  aspect-ratio: var(--reel-ar, 9 / 16);  /* defaults to 9:16; set per-carousel from content */
  margin: 0;
  border-radius: clamp(18px, 1.8vw, 30px);
  overflow: hidden;
  background: #141937;
  cursor: pointer;
  transform:
    translate(-50%, -50%)
    translateX(calc(var(--pos, 0) * 64%))
    translateZ(calc(var(--abs, 0) * -110px))
    rotateY(calc(var(--pos, 0) * -3deg))
    scale(calc(1 - var(--abs, 0) * 0.06));
  opacity: calc(1 - var(--abs, 0) * 0.2);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .55);
  transition: transform .6s var(--ease-out), opacity .5s var(--ease-out), box-shadow .5s var(--ease-out);
  will-change: transform, opacity;
}
.pj-reel__card.is-far { opacity: 0; pointer-events: none; }
.pj-reel__card.is-active {
  cursor: default;
  box-shadow: 0 44px 120px rgba(0, 0, 0, .62), 0 0 0 1px rgba(255, 255, 255, .08);
}
.pj-reel__video,
.pj-reel__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.pj-reel__grain {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.4) 0%, transparent 26%, transparent 60%, rgba(0,0,0,.6) 100%);
}
/* Controls row: the counter pill (audio · progress · play) + view-post. */
.pj-reel__ctrl {
  display: flex; align-items: center; justify-content: center;
  gap: clamp(14px, 2vw, 26px);
  margin-top: clamp(22px, 3.4vh, 44px);
  flex-wrap: wrap;
}

/* Counter pill: a dark capsule holding [audio] · [progress dots/bar] · [play]. */
.pj-reel__bar {
  display: inline-flex; align-items: center; gap: clamp(8px, 1.2vw, 16px);
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(20, 20, 24, .9);
  border: 1px solid rgba(255, 255, 255, .08);
}
.pj-reel__segs { display: inline-flex; align-items: center; gap: 10px; padding: 0 clamp(2px, .8vw, 8px); }

/* Integrated icon buttons inside the pill — audio on the left, play on the right. */
.pj-reel__ibtn {
  flex: none; width: 38px; height: 38px;
  display: inline-grid; place-items: center;
  padding: 0; border: 0; border-radius: 999px;
  background: transparent; color: #fff; cursor: pointer;
  transition: background .25s var(--ease), transform .2s var(--ease-out);
}
.pj-reel__ibtn:hover { background: rgba(255, 255, 255, .12); transform: translateY(-1px); }
.pj-reel__ibtn:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.pj-reel__ico { width: 21px; height: 21px; fill: #fff; }
.pj-reel__ico--play { display: none; margin-left: 2px; }
.pj-reel__ibtn.is-paused .pj-reel__ico--pause { display: none; }
.pj-reel__ibtn.is-paused .pj-reel__ico--play { display: block; }
.pj-reel__ico--muted { display: none; }
.pj-reel__ibtn--mute.is-muted .pj-reel__ico--sound { display: none; }
.pj-reel__ibtn--mute.is-muted .pj-reel__ico--muted { display: block; }

/* Progress segments: a dot per reel; the active one is a bar that fills over 7s. */
.pj-reel__seg {
  position: relative; overflow: hidden;
  width: 8px; height: 8px; padding: 0; border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .26);
  cursor: pointer;
  transition: width .5s var(--ease-out), background .4s var(--ease);
}
.pj-reel__seg.is-on { width: clamp(44px, 6vw, 64px); background: rgba(255, 255, 255, .2); }
.pj-reel__seg:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.pj-reel__seg-fill {
  position: absolute; inset: 0; width: 0%;
  border-radius: 999px;
  background: var(--rainbow);  /* the DOLL logo spectrum bar shows the count */
}

/* View post — sits at the right of the controls row. */
.pj-reel__view {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 15px 30px;
  border-radius: 999px;
  background: #fff; color: #0a0a12;
  font-family: var(--f-sans); font-weight: 700; font-size: 14px;
  letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
  transition: background .25s var(--ease), transform .25s var(--ease-out);
}
.pj-reel__view[hidden] { display: none; }
.pj-reel__view:hover { background: var(--glow-mint, #6CFFB0); transform: translateY(-2px); }
.pj-reel__view-arrow { font-size: 15px; }
.pj-reel__view:focus-visible { outline: none; box-shadow: var(--focus-ring); }

@media (max-width: 680px) {
  .pj-reel__stage { height: clamp(380px, 66vh, 620px); }
  .pj-reel__card {
    height: min(66vh, 620px);
    transform:
      translate(-50%, -50%)
      translateX(calc(var(--pos, 0) * 52%))
      translateZ(calc(var(--abs, 0) * -70px))
      scale(calc(1 - var(--abs, 0) * 0.1));
  }
}
/* Touch: the play/mute controls are primary — give them a 44px target.
   (Progress dots stay a secondary indicator; swipe + tapping a reel card are
   the primary touch navigation and already have large targets.) */
@media (pointer: coarse) {
  .pj-reel__ibtn { width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .pj-reel__card { transition: opacity .3s; }
  .pj-reel__view { transition: opacity .2s; }
}

/* =========================================================
   TOUCH LAYER — tactile life on coarse pointers
   On touch there is no hover or cursor, so interactive elements lost their
   motion feedback. This gives them an instant tactile press instead, removes
   the default grey tap-flash, and pads the footer clear of the home indicator.
   Scoped to coarse pointers so the desktop experience is untouched. The press
   is user-initiated feedback (not autonomous motion), so it is kept even under
   reduced motion — where the global reset simply makes it instant.
   ========================================================= */
@media (hover: none), (pointer: coarse) {
  a, button, [role="button"],
  .card, .reel__card, .drawer__link, .cta-email,
  .resume-btn, .pj-shot__view, .pj-cta__btn, .pj-hero__visit,
  .pj-reel__ibtn, .pj-reelrow__item, .navpill__burger, .navpill__wordmark {
    -webkit-tap-highlight-color: transparent;
  }

  /* Buttons & controls: a quick scale + brightness the instant a finger lands. */
  .resume-btn:active, .pj-shot__view:active, .pj-cta__btn:active,
  .pj-hero__visit:active, .cta-email:active,
  .pj-reel__ibtn:active, .navpill__burger:active {
    transform: scale(.94);
    filter: brightness(1.07);
    transition: transform .13s var(--ease-out), filter .13s var(--ease-out);
  }

  /* Cards & links: a soft dim press — no transform, so it can't clash with
     their own layout transforms. */
  .card:active, .reel__card:active, .drawer__link:active,
  .pj-reelrow__item:active, .navpill__wordmark:active {
    opacity: .76;
    transition: opacity .13s var(--ease-out);
  }

  /* Comfortable tap target for the menu button. */
  .navpill__burger { min-width: 44px; min-height: 44px; }
}

/* Clear the home indicator / bottom safe area on the global footer. */
.site-foot {
  padding-bottom: max(var(--pad-x, 32px), env(safe-area-inset-bottom, 0px));
}

/* Under reduced motion the global reset snaps the loader in with no animation.
   Give the intro a soft, vestibular-safe opacity fade instead (no stripe sweep,
   no flight) so the brand still has a gentle first beat. Placed last so it wins
   over the global reduced-motion reset above. */
@keyframes loaderDollFade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .loader__doll {
    opacity: 0;
    transform: none !important;
    animation: loaderDollFade .8s ease .15s both !important;
  }
  .loader__stripe {
    width: 100% !important;
    opacity: 0;
    animation: loaderDollFade .9s ease .35s both !important;
  }
}

/* Optional section heading above a project carousel (set per reel group in the
   CMS). Display type, aligned to the page gutter, sized below the project hero. */
.pj-reel-title {
  margin: clamp(52px, 8.5vh, 100px) var(--pad-x, 32px) clamp(16px, 2.4vh, 26px);
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(28px, 5.4vw, 56px);
  line-height: 1.02;
  letter-spacing: -.03em;
  color: var(--paper, #fff);
  text-wrap: balance;
}
@media (max-width: 720px) {
  .pj-reel-title { margin-top: clamp(40px, 6vh, 64px); }
}

/* ── Mobile scroll cue for carousels ──
   Injected by project.php (coarse pointers only) so a full-bleed carousel never
   looks like the end of the page. Fixed bottom-centre, fades in while a carousel
   is centred in view and more content is below. */
.pj-scrollcue {
  position: fixed;
  left: 50%;
  bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 12px;
  opacity: 0;
  transform: translateX(-50%) translateY(10px);
  transition: opacity .45s var(--ease-out), transform .45s var(--ease-out);
  pointer-events: none;
}
.pj-scrollcue.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }
.pj-scrollcue__label {
  font-family: var(--f-mono, ui-monospace, monospace);
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .72);
  text-shadow: 0 1px 10px rgba(0, 0, 0, .65);
}
.pj-scrollcue__chev {
  width: 20px;
  height: 20px;
  color: #fff;
  filter: drop-shadow(0 1px 8px rgba(0, 0, 0, .65));
  animation: pjScrollBob 1.5s var(--ease-out) infinite;
}
@keyframes pjScrollBob {
  0%, 100% { transform: translateY(0);   opacity: .82; }
  50%      { transform: translateY(5px); opacity: 1; }
}
/* Reduced motion: no bob, just a gentle (vestibular-safe) pulse. !important to
   win over the global reduced-motion reset. */
@media (prefers-reduced-motion: reduce) {
  .pj-scrollcue__chev { animation: pjScrollPulse 1.9s ease infinite !important; }
}
@keyframes pjScrollPulse { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }

/* ── Horizontal carousel (reel row) swipe affordance · mobile ───────────────
   At ≤760px a reel row turns into a hidden-scrollbar swipe strip (items 80vw),
   so content to the side is invisible. These edge fades signal "more this way",
   and a swipe pill nudges the gesture, fading away after the first swipe.
   Elements are injected by project.php only when the row actually overflows. */
@media (max-width: 760px) {
  .pj-reelrow { position: relative; }
  .pj-reelrow__edge {
    position: absolute;
    top: 0;
    bottom: 0;
    width: clamp(46px, 15vw, 84px);
    z-index: 3;
    pointer-events: none;
    opacity: 0;
    transition: opacity .35s var(--ease-out);
  }
  .pj-reelrow__edge--right { right: 0; background: linear-gradient(to left,  rgba(0, 0, 0, .9), rgba(0, 0, 0, .35) 48%, transparent); }
  .pj-reelrow__edge--left  { left: 0;  background: linear-gradient(to right, rgba(0, 0, 0, .9), rgba(0, 0, 0, .35) 48%, transparent); }
  .pj-reelrow.has-right .pj-reelrow__edge--right { opacity: 1; }
  .pj-reelrow.has-left  .pj-reelrow__edge--left  { opacity: 1; }

  .pj-reelrow__swipe {
    position: absolute;
    z-index: 4;
    pointer-events: none;
    right: clamp(10px, 3.5vw, 18px);
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    opacity: 0;
    transition: opacity .45s var(--ease-out);
  }
  .pj-reelrow.has-right.hint-on .pj-reelrow__swipe { opacity: 1; }
  .pj-reelrow__swipe-dot {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    background: rgba(10, 10, 14, .42);
    border: 1px solid rgba(255, 255, 255, .3);
    box-shadow: 0 6px 22px rgba(0, 0, 0, .5);
    -webkit-backdrop-filter: blur(6px);
            backdrop-filter: blur(6px);
    animation: reelSwipeBob 1.5s var(--ease-out) infinite;
  }
  .pj-reelrow__swipe-dot svg { width: 18px; height: 18px; }
  .pj-reelrow__swipe-label {
    font-family: var(--f-mono, ui-monospace, monospace);
    font-size: 9px;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .85);
    text-shadow: 0 1px 8px rgba(0, 0, 0, .75);
  }
}
@keyframes reelSwipeBob { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(5px); } }
@media (prefers-reduced-motion: reduce) {
  .pj-reelrow__swipe-dot { animation: reelSwipePulse 1.9s ease infinite !important; }
}
@keyframes reelSwipePulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

