/* ================================
   Travis Hurlock — Portfolio
   ================================ */

:root{
  --bg:#0a0b0f;
  --bg-alt:#111319;
  --surface:#171a22;
  --surface-2:#1d212b;
  --border:#272c38;
  --text:#f2f1ee;
  --text-dim:#9aa0ad;
  --text-faint:#666d7d;
  --accent:#ff5a3c;
  --accent-2:#E5FF53;
  /* Lighter reading tone for the longer-form copy on individual project
     pages — the standard --text-dim is already ~7:1+ against --bg, this is
     a further, deliberate perceptual bump for extended reading, not a
     contrast fix. Scoped to .proj-main/.proj-status only; homepage
     work-item copy keeps --text-dim. */
  --text-body:#adb3c0;
  --navy:#1c2b4a;
  --red:#c41e3a;
  --bone:#f5f0e8;
  --radius:14px;
  --maxw:1180px;
  --font:'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  /* Adobe Fonts target: Dharma Gothic Condensed Heavy (normal, 900).
     Big Shoulders Display 900 is loaded as the intentional emergency
     fallback, followed by Impact. No light generic narrow face can silently
     take over. Inter still handles every piece of reading/interface copy. */
  --font-display:'dharma-gothic-c', 'Dharma Gothic C', 'Big Shoulders Display', Impact, sans-serif;
}

*,*::before,*::after{ box-sizing:border-box; }
/* overflow-x:hidden was previously set on body only. html (the root
   scrolling element on iOS Safari) was left at its default `visible`, and
   the .orgs marquee track is a genuinely ~9000px-wide element (clipped
   visually by .orgs's own overflow:hidden, but that clip doesn't reliably
   constrain the ROOT document's horizontal scroll bounds on iOS). Net
   effect: a vertical swipe could register as horizontal drag and pan the
   whole page sideways. Both fixes below close it — the overflow-x here
   stops the layout viewport from ever growing wider than the device, and
   touch-action:pan-y on body stops horizontal drag gestures from being
   interpreted as scroll input at all, belt-and-braces. */
html{ scroll-behavior:smooth; overflow-anchor:none; overflow-x:hidden; }
body{
  margin:0;
  font-family:var(--font);
  background:var(--bg);
  color:var(--text);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
  touch-action:pan-y;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
h1,h2,h3,h4{ margin:0; font-weight:700; line-height:1.3; letter-spacing:-0.02em; }
p{ margin:0; }
ul{ margin:0; padding:0; list-style:none; }
button{ font-family:inherit; cursor:pointer; }
.container{ max-width:var(--maxw); margin:0 auto; padding:0 32px; }
.reveal{ opacity:0; transform:translateY(24px); transition:opacity .7s ease, transform .7s ease; }
.reveal.is-visible{ opacity:1; transform:translateY(0); }
[data-depth]{ --scroll-depth:0px; transform:translate3d(0,var(--scroll-depth),0); }
.reveal--project{ transform:translateY(16px); transition-duration:.6s; }
.reveal--green-rule{ position:relative; padding-left:24px; }
.reveal--green-rule::before{
  content:''; position:absolute; left:0; top:0; bottom:0; width:2px; border-radius:2px;
  background:linear-gradient(180deg,var(--accent-2),rgba(229,255,83,.14));
  transform:scaleY(.28); transform-origin:top; opacity:.45;
  transition:transform .7s ease .12s, opacity .7s ease .12s;
}
.reveal--green-rule.is-visible::before{ transform:scaleY(1); opacity:1; }

/* ---------- Editorial display typography ----------
   Intentionally narrow scope: primary page titles, major section statements
   and a handful of short evidence signals only. Navigation, buttons, card
   copy, labels and long-form content retain the readable --font stack. */
.hero h1,
.proj-head h1,
.section-head h2,
.section-head--nested h3,
.vision h2,
.proj-main h2,
.aside h2,
.display-pair,
.hero__stat .num,
.shift__num,
.proof-card__marker{
  font-family:var(--font-display);
  font-style:normal;
  font-weight:900;
  letter-spacing:0.02em;
  font-feature-settings:'kern' 1, 'tnum' 1;
  text-transform:uppercase;
}

.hero h1{ line-height:1.0; }
.proj-head h1{ line-height:1.05; }
.section-head h2{ line-height:1.06; }
.section-head--nested h3,
.display-pair{ line-height:1.1; }
.vision h2,
.aside h2{ line-height:1.14; }
.proj-main h2{ line-height:1.08; }
.hero h1,
.proj-head h1,
.section-head h2,
.section-head--nested h3,
.vision h2,
.aside h2,
.display-pair{ text-wrap:balance; }

/* Semantic two-part headline hierarchy: the premise holds in white and the
   completing thought lands in acid yellow. Block spans preserve a clear
   editorial hand-off while leaving the accessible heading text intact. */
.display-lead,
.display-completion{ display:block; }
.display-lead{ color:var(--text); }
.display-completion{ color:var(--accent-2); }

/* ---------- Page loader ----------
   Sequence (see script.js LOADER_TOTAL_MS for the JS-side mirror of this
   timeline — the two must be kept in sync by hand, there are too many
   overlapping animations here for JS to read a single source of truth
   the way the old one-comet-lap loader could):
     0.00–1.10s  12 tool marks stagger into a ring
     1.15–2.15s  each mark flashes white → E5FF53 → white in turn,
                 clockwise starting from the 12 o'clock mark (i=0) —
                 one continuous ~1s sweep around the ring, each icon's
                 flash overlapping into the next rather than a hard
                 sequential wait
     2.15–2.60s  they converge inward and dissolve
     2.30–2.65s  the T° mark forms (overlaps the tail of convergence)
     2.65–2.95s  T pulses once, lime accent
     2.95–3.80s  T hands off to the mask: .loader__bg's clip-path hole
                 and the glow tracing its edge scale up together,
                 revealing the real hero already sitting underneath */
html.is-loading{ overflow:hidden; }
.loader{
  position:fixed; inset:0; z-index:9999;
  transition:opacity .35s ease, visibility .35s ease;
}
.loader.is-hidden{ opacity:0; visibility:hidden; pointer-events:none; }

/* Safari doesn't reliably apply CSS transform animations to elements
   referenced inside an SVG <clipPath> — the hole would just sit at its
   raw, untransformed position/size instead of animating. So #tHolePath
   and .loader__glow g's positioning is driven by script.js instead,
   writing real computed coordinates every frame (a plain attribute/style
   mutation, which every browser handles identically). Only the glow's
   opacity fade stays as a CSS animation below — that's a normal property
   on a normally-rendered element, not referenced content, so it's fine. */
.loader__bg{
  position:absolute; inset:0; background:var(--bg); pointer-events:none;
  clip-path:url(#tHoleClip); -webkit-clip-path:url(#tHoleClip);
}

.loader__glow{ position:absolute; inset:0; width:100%; height:100%; pointer-events:none; overflow:visible; }
.loader__glow g{ opacity:0; animation:loaderGlowFade .85s linear 2.95s forwards; }
.loader__glow path, .loader__glow circle{ fill:none; vector-effect:non-scaling-stroke; }
.loader__glow-outer{ stroke:var(--accent-2); stroke-width:10; opacity:.18; }
.loader__glow-mid{ stroke:var(--accent-2); stroke-width:5; opacity:.4; }
.loader__glow-core{ stroke:var(--accent-2); stroke-width:2; opacity:.95; }
@keyframes loaderGlowFade{ 0%{ opacity:0; } 12%{ opacity:1; } 78%{ opacity:1; } 100%{ opacity:0; } }

.loader__flash{
  position:absolute; inset:0; background:var(--accent-2); opacity:0; pointer-events:none;
  animation:loaderFlash .5s ease-out 2.9s forwards;
}
@keyframes loaderFlash{ 0%{ opacity:0; } 18%{ opacity:.9; } 100%{ opacity:0; } }

/* Icon stage sits in its own unclipped layer on top of .loader__bg — it
   occupies the exact same screen position as the hole, so if it were a
   child of the clipped element it would be clipped away with it from
   frame one. */
.loader__icons{ position:absolute; inset:0; pointer-events:none; display:flex; align-items:center; justify-content:center; }
.loader__stage{ position:relative; width:340px; height:340px; }

/* 12 marks stagger at 55ms apart; the last (i=11) finishes its .5s pop-in
   at 605+500=1105ms, so the flash sweep starts at 1150ms — a 45ms buffer,
   otherwise the last mark's entrance and the flash fight over transform
   mid-animation.

   Flash sweep: each mark's own JS-set --i is also its position around the
   ring (i=0 is 12 o'clock; the marks[] array in script.js is built in
   clockwise order, so ascending --i already walks the ring clockwise —
   no separate index needed). Staggering loaderMarkFlash by 68ms per
   mark, at .25s each, spans the full 12-mark ring in (11*68)+250=998ms
   — the ~1s sweep, each icon's flash overlapping into the next rather
   than waiting for a hard stop. Convergence then starts at 2.15s, right
   as the sweep finishes. */
.loader__mark{
  position:absolute; top:50%; left:50%; width:34px; height:34px; color:var(--text);
  transform:translate(-50%,-50%) scale(.3); opacity:0;
  animation:loaderMarkIn .5s cubic-bezier(.2,.8,.2,1) forwards,
            loaderMarkFlash .25s ease-in-out,
            loaderMarkConverge .45s cubic-bezier(.6,0,.85,.15) forwards;
  animation-delay:calc(var(--i) * 55ms), calc(1.15s + var(--i) * 68ms), 2.15s;
}
.loader__mark svg{ width:100%; height:100%; display:block; fill:currentColor; }
@keyframes loaderMarkIn{
  0%{ opacity:0; transform:translate(calc(-50% + var(--x)),calc(-50% + var(--y))) scale(.3); }
  100%{ opacity:.88; transform:translate(calc(-50% + var(--x)),calc(-50% + var(--y))) scale(1); }
}
@keyframes loaderMarkFlash{
  0%{ color:#fff; }
  50%{ color:#E5FF53; }
  100%{ color:#fff; }
}
@keyframes loaderMarkConverge{
  0%{ opacity:.88; transform:translate(calc(-50% + var(--x)),calc(-50% + var(--y))) scale(1); }
  100%{ opacity:0; transform:translate(-50%,-50%) scale(.15); }
}

/* No filter/drop-shadow here on purpose — filters force the browser to
   rasterize the SVG to a bitmap before compositing, and that bitmap is
   what pixelates on scale-up. The glow lives on .loader__glow instead;
   this icon only ever reaches scale(1.18), so it stays vector-crisp. */
.loader__tmark{
  position:absolute; top:50%; left:50%; width:52px; height:54.6px; color:#fff;
  transform:translate(-50%,-50%) scale(.6); opacity:0;
  animation:loaderTIn .35s cubic-bezier(.2,.8,.2,1) 2.3s forwards,
            loaderTPulse .3s ease-out 2.65s forwards,
            loaderTFadeOut .25s ease-in 2.95s forwards;
}
.loader__tmark svg{ width:100%; height:100%; display:block; }
@keyframes loaderTIn{ to{ opacity:1; transform:translate(-50%,-50%) scale(1); } }
@keyframes loaderTPulse{ 0%{ transform:translate(-50%,-50%) scale(1); } 55%{ transform:translate(-50%,-50%) scale(1.18); } 100%{ transform:translate(-50%,-50%) scale(1.02); } }
@keyframes loaderTFadeOut{ to{ opacity:0; transform:translate(-50%,-50%) scale(1.1); } }

/* ---------- Nav ---------- */
.nav{
  position:fixed; top:0; left:0; right:0; z-index:100;
  padding:20px 0;
  background:rgba(10,11,15,0.7);
  backdrop-filter:blur(10px);
  border-bottom:1px solid transparent;
  /* transform deliberately left out of this list — script.js drives it
     directly, every scroll frame, for the hide-on-scroll-down/reveal-on-
     scroll-up slide (see the "Nav hide-on-scroll" block there for why).
     A transition on transform here would fight that: each tiny per-frame
     update would itself animate over .3s, so the bar would permanently
     lag behind the actual scroll position instead of tracking it 1:1. */
  transition:border-color .3s ease, background .3s ease;
  will-change:transform;
}
.nav.scrolled{ border-bottom-color:var(--border); background:rgba(10,11,15,0.92); }
/* Same max-width + auto-margin + 32px padding as .container, so this row's
   left/right edges land exactly where the page copy's do, at any width. */
.nav__inner{
  display:flex; align-items:center; justify-content:space-between;
  max-width:var(--maxw); margin:0 auto; width:100%; padding:0 32px;
}
/* SVG mark nearly bleeds to the bar's top/bottom without changing the bar's
   own height: it's taller than the row's normal content box, then pulled
   back to that same box height with matching negative margins, so it can't
   grow .nav__inner's (and therefore .nav's) cross-axis size. */
.nav__mark{ display:flex; align-items:center; color:var(--text); }
.nav__mark svg{ height:48px; width:auto; display:block; margin:-11px 0; }
/* Explicit, on-brand focus treatment — production relies on the browser's
   own default ring here, which is faint and inconsistent across browsers;
   that omission shouldn't be carried into this prototype as a genuine
   accessibility gap. outline never affects layout, so this can't shift
   anything around it. */
.nav__mark:focus-visible{ outline:2px solid var(--accent-2); outline-offset:4px; border-radius:4px; }
.nav__links{ display:flex; gap:28px; align-items:center; }
.nav__links a{ font-size:14px; color:var(--text-dim); transition:color .2s ease; }
.nav__links a:hover{ color:var(--text); }
/* Contact and Client Area are plain typographic nav items now — same
   size, weight and spacing as every other link, distinguished only by
   colour (and colour alone isn't the only cue: focus-visible still gets
   a real outline, same as the rest of the nav). No pill background,
   border or extra padding. */
.nav__cta{ font-size:14px; font-weight:600; transition:color .2s ease; }
.nav__cta--primary{ color:var(--accent-2) !important; }
.nav__cta--primary:hover{ color:var(--text) !important; }
.nav__cta--ghost{ color:var(--accent) !important; }
.nav__cta--ghost:hover{ color:var(--text) !important; }
.nav__cta:focus-visible{ outline:2px solid var(--accent-2); outline-offset:3px; border-radius:3px; }
/* Client Area isn't live yet — a non-interactive, muted label rather
   than a link that would 404. Same primary-accent color family, just
   dimmed, so it still reads as "coming" rather than "missing". */
.nav__cta--soon{ opacity:.55; cursor:default; }
.nav__cta-soon-label{ font-weight:400; }

/* font-size was unset, inheriting whatever the ambient body/button size
   is — the ☰ glyph rendered noticeably smaller than the 48px-tall T mark
   it sits next to. 24px is half that 48px, matching Travis's explicit
   ask; padding keeps a comfortable tap target around it now that the
   glyph itself is bigger rather than relying on the glyph's own bounds. */
.nav__toggle{ display:none; background:none; border:0; color:var(--text); font-size:24px; line-height:1; padding:10px; }
@media (max-width:860px){
  .nav__links{
    position:fixed; inset:0 0 auto 0; top:64px; flex-direction:column; align-items:flex-start;
    background:var(--bg-alt); padding:24px 32px 32px; border-bottom:1px solid var(--border);
    transform:translateY(-120%); transition:transform .35s ease; gap:18px;
  }
  .nav__links.open{ transform:translateY(0); }
  .nav__toggle{ display:block; }
  .nav__cta{ font-size:15px; }
  .nav__links > li{ width:100%; }
}

/* ---------- Hero video banner ---------- */
/* New showreel, sits directly under the fixed nav. .hero-viewport is the
   shared 100svh flex column that also holds .orgs (trusted-by rail,
   further down in styles.css) — the video is flex:1 and shrinks to fill
   whatever's left after the rail's own natural height, so the rail is
   always visible in the first screen on load, on every viewport, with no
   guessed px subtraction to drift out of sync if the rail's content wraps
   differently at a breakpoint. autoplay/loop are toggled by script.js,
   not set in markup, so a reduced-motion visitor gets the static poster
   frame and never has motion forced on them. The bottom gradient exists
   purely so the cut into .orgs (which sits on --bg-alt, a hair lighter
   than --bg) reads as an intentional fade rather than a hard edge. */
.hero-viewport{
  height:100vh; height:100svh;
  display:flex; flex-direction:column;
}
.hero-video-banner{
  position:relative; width:100%; flex:1 1 auto; min-height:0;
  overflow:hidden; background:var(--bg);
}
.hero-video-banner__video{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:center;
}
.hero-video-banner::after{
  content:""; position:absolute; left:0; right:0; bottom:0; height:34%;
  background:linear-gradient(to bottom, rgba(10,11,15,0), var(--bg));
  pointer-events:none;
}
/* Foot: testimonial + chevron share one positioned wrapper so their
   spacing is a flex gap, not two separately-calculated bottom offsets
   that would drift out of sync the moment either element's size changes. */
.hero-video-banner__foot{
  position:absolute; left:50%; bottom:22px; transform:translateX(-50%);
  z-index:2; display:flex; flex-direction:column; align-items:center; gap:12px;
  width:min(92%, 640px);
}
/* Testimonial: condensed display face (matches the rest of the site's
   headline type), quote in solid white, attribution smaller and quieter
   beneath it. min-height reserves a constant two-line quote + one-line
   attribution area regardless of which quote is showing, so the chevron
   below never shifts position as shorter/longer lines rotate through. */
.hero-video-banner__testimonial{
  position:relative; width:100%;
  min-height:calc(2 * 1.15em + 6px + 1em);
  display:flex; align-items:flex-end; justify-content:center;
}
.hero-video-banner__testimonial-list{ list-style:none; margin:0; padding:0; width:100%; position:relative; }
.hero-video-banner__testimonial-item{
  position:absolute; inset:0 0 auto 0; text-align:center;
  opacity:0; transform:translateY(14px); pointer-events:none;
  transition:opacity .6s ease, transform .6s ease;
}
.hero-video-banner__testimonial-item.is-active{
  position:relative; opacity:1; transform:translateY(0); pointer-events:auto;
}
.hero-video-banner__testimonial-quote{
  margin:0; font-family:var(--font-display); font-weight:600;
  font-size:clamp(17px, 2.4vw, 24px); line-height:1.15;
}
/* Marks white, quoted words in the brand acid-green — the mark and the
   first word are now separate elements specifically so the cursor below
   can sit precisely between them; previously the quote marks were baked
   into the same text node the pseudo-element attached to, so the cursor
   had no way to land anywhere but before the whole string, opening mark
   included. */
.hero-video-banner__testimonial-mark{ color:#fff; }
.hero-video-banner__testimonial-text{ color:var(--accent-2); }
/* An underscore shape — a wide, thin bar sat right at the baseline, not
   the tall vertical block from an earlier pass (that read as a flashed
   solid square, not a cursor). Thickness is a fixed px height rather
   than leaning on font-weight, since an underscore glyph stays visually
   thin at any weight — that's a limit of the character, not something a
   CSS weight can push past. Blinks twice (flat-hold keyframe stops, so
   each blink is a crisp on/off snap, not a soft fade), settles visible
   and stays put — a fixed marker at the start of the line, not a caret
   chasing the typed text — through the typewriter reveal. Once
   script.js marks the item .is-typed (all characters revealed), the
   transition below collapses its width/margin to 0 alongside the
   opacity fade, so the mark eases into place flush against the first
   letter instead of just going invisible and leaving its reserved gap
   behind. Restarts fresh every time a new quote becomes .is-active. */
.hero-video-banner__testimonial-cursor{
  display:inline-block; width:.62em; height:3px; margin:0 .1em -2px 0;
  background:var(--accent-2); opacity:0; vertical-align:baseline;
  transition:width .25s ease, margin .25s ease, opacity .2s ease;
}
.hero-video-banner__testimonial-item.is-active .hero-video-banner__testimonial-cursor{
  animation:heroTestimonialCursor 1.1s 1 forwards;
}
.hero-video-banner__testimonial-item.is-typed .hero-video-banner__testimonial-cursor{
  width:0; margin-left:0; margin-right:0; opacity:0;
}
@keyframes heroTestimonialCursor{
  0%, 12%   { opacity:1; }
  13%, 37%  { opacity:0; }
  38%, 62%  { opacity:1; }
  63%, 87%  { opacity:0; }
  88%, 100% { opacity:1; }
}
.hero-video-banner__testimonial-cite{
  display:block; margin-top:6px; font-style:normal;
  font-family:var(--font); font-size:12px; letter-spacing:.04em;
  color:rgba(242,241,238,0.6);
}
@media (prefers-reduced-motion: reduce){
  /* Reduced-motion: the rotation timer never starts, and script.js skips
     the cursor-blink/typewriter sequence entirely for these visitors —
     the full quote is already the text's default DOM content (see
     index.html). Cursor is collapsed to zero width from the start here,
     matching the finished/completed rest-state everyone else eventually
     settles into too — just without the blink or the typing on the way
     there. */
  .hero-video-banner__testimonial-item{ transition:none; }
  .hero-video-banner__testimonial-item.is-active .hero-video-banner__testimonial-cursor{
    animation:none; transition:none; width:0; margin-left:0; margin-right:0; opacity:0;
  }
}
@media (max-width:640px){
  .hero-video-banner__testimonial-quote{ font-size:18px; }
  /* Quote and attribution stay together as one block on mobile — this
     is already default block-flow behaviour, called out explicitly so a
     future edit doesn't accidentally split them (eg. with a flex row
     that could wrap the two apart at narrow widths). */
}

/* Scroll cue: MU-03 (default) and MO-03 (hover) as two stacked <img>s
   rather than one swapped via JS or CSS background — real <img>s keep
   the assets' own baked-in glow crisp at any size and need no JS at all.
   MO-03 only fades in under (hover:hover), which a touch device can
   never match, so mobile only ever shows MU-03 — no separate "mobile
   version" of this rule is needed, the query does that on its own. No
   circular border/backdrop-blur any more — the PNGs carry their own
   presence, wrapping them in another shape would fight it. Now a plain
   flex child of .hero-video-banner__foot rather than independently
   absolutely-positioned, so its gap from the testimonial above is the
   foot's own flex gap. */
.hero-video-banner__scroll-cue{
  width:76px; height:auto; padding:0; border:0; background:none;
  cursor:pointer; line-height:0; flex:0 0 auto;
  animation:heroBannerCueBob 2.2s ease-in-out infinite;
}
.hero-video-banner__scroll-cue-img{
  display:block; width:100%; height:auto;
}
.hero-video-banner__scroll-cue-img--base{ position:relative; }
.hero-video-banner__scroll-cue-img--hover{
  position:absolute; inset:0; opacity:0; transition:opacity .2s ease;
}
@media (hover:hover) and (pointer:fine){
  .hero-video-banner__scroll-cue:hover .hero-video-banner__scroll-cue-img--hover{ opacity:1; }
}
@keyframes heroBannerCueBob{
  0%,100%{ transform:translateY(0); }
  50%{ transform:translateY(6px); }
}
@media (prefers-reduced-motion: reduce){
  .hero-video-banner__scroll-cue{ animation:none; }
}
@media (max-width:640px){
  .hero-video-banner__foot{ bottom:14px; gap:8px; }
  .hero-video-banner__scroll-cue{ width:60px; }
}

/* ---------- Hero ---------- */
/* Stage 1.1: the full-bleed autoplaying video background is gone — it
   fought the typography for attention and made the heading feel
   uncontrolled. Two-column composition instead: copy left, a static
   black-glass media stage right, evidence cards spanning beneath both. */
.hero{ position:relative; padding:152px 0 64px; background:var(--bg); }
/* Full-hero ambient video: fills the whole header (behind the fixed,
   semi-transparent nav too, since .hero starts at y:0 under it), a dark
   overlay sits on top of the video only, and the copy/container above
   that keeps the exact same contrast it had against the flat --bg. */
.hero__bg{ position:absolute; inset:0; z-index:0; overflow:hidden; }
.hero__bg-video{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.hero__bg-overlay{ position:absolute; inset:0; background:rgba(10,11,15,0.94); }
.hero .container{ position:relative; z-index:1; }
/* align-items:start (not center) + no top margin on .hero__media so the
   frame's top edge lines up with the top of the copy column (eyebrow),
   not floating lower against a vertically-centred row. Columns widened
   toward 1fr/1fr (was 1.1fr/0.9fr) so the frame — aspect-ratio locked to
   its own 1536:1024 canvas — scales proportionally taller too, closing
   more of the gap to the button row's bottom edge without distorting it.
   This is an approximation, not a pixel-measured match — flag if it still
   falls short after a live check. */
.hero__grid{
  display:grid; grid-template-columns:1fr 1fr; gap:52px; align-items:start;
  margin-bottom:170px;
  /* Was 56px. The container caps at --maxw:1180px, so each column here
     never actually gets past roughly (1180-52)/2 ≈ 564px wide regardless
     of how wide the viewport itself is beyond that — meaning the frame's
     own box height is effectively capped too (its aspect-ratio is fixed),
     and the signature's negative-bottom overflow below it (see
     .hero__signature) works out to roughly 130-140px at that box size.
     56px was nowhere near enough clearance before the next thing in flow
     (.hero__stats) — this was overlapping at ordinary desktop widths, not
     just the narrower ranges below. Generous rather than exact on
     purpose, for the same reason as the 960px block below: better a
     little extra air here than the same overlap reappearing at some
     width this wasn't specifically checked against. */
}
@media(max-width:960px){
  .hero__grid{ grid-template-columns:1fr; gap:36px; }
  /* justify-self:center (rather than the grid default of stretch) plus
     aspect-ratio on the .media-stage descendant is a known WebKit sizing
     bug on iOS Safari — measured directly off a live phone screenshot:
     the frame rendered ~46px narrower per side than .hero__stats below it
     (which uses the grid default stretch, no justify-self override, and
     lines up with the container edge exactly), even though width:100% and
     the same container padding apply to both. Removed justify-self here
     entirely so the frame stretches the same way the stats grid already
     does, rather than trying to re-centre something already the full
     column width. */
  .hero__media{ width:100%; max-width:560px; margin-top:0; }
  /* .hero__grid's margin-bottom (now 170px, see the base rule above) was
     already increased there specifically because this breakpoint's
     narrower max-width:560px frame — and the single-column stacking,
     which makes the frame the last thing before .hero__stats rather than
     sitting beside a taller text column — was where the signature's
     overflow (see .hero__signature) was most visibly colliding with the
     stats row. No separate override needed here; the base value already
     covers it. */
}

.hero__copy{ max-width:60ch; }
/* Glass utility — used only by the hero evidence cards now, not as a
   full-panel treatment over video. Restrained: fill + edge + one inner
   highlight, no extra blur stacking. */
.glass{
  background:linear-gradient(135deg, rgba(255,255,255,0.10), rgba(255,255,255,0.03));
  border:1px solid rgba(255,255,255,0.14);
  border-radius:14px;
}
.hero__eyebrow{
  display:inline-flex; align-items:center; gap:10px; font-size:12.5px; letter-spacing:0.14em; text-transform:uppercase;
  color:var(--accent); font-weight:600; margin-bottom:22px;
}
.hero__eyebrow::before{ content:''; width:7px; height:7px; border-radius:50%; background:var(--accent); box-shadow:0 0 12px var(--accent); }
.hero h1{
  font-size:clamp(31px, 3.8vw, 54px); line-height:1.0; margin-bottom:24px; max-width:100%;
  font-weight:900; text-wrap:wrap;
}
.hero h1 .display-lead,
.hero h1 .display-completion{ display:inline; }
.hero__tagline{
  font-size:clamp(16px, 1.5vw, 18px); font-weight:600; color:var(--text); opacity:0.92; margin-bottom:14px;
  max-width:62ch; text-wrap:pretty;
}
.hero__sub{
  font-size:16px; color:var(--text-dim); max-width:60ch; margin-bottom:34px; font-weight:400; text-wrap:pretty;
}
.hero__actions{ display:flex; align-items:center; gap:14px; flex-wrap:wrap; }

/* Post-loader reveal: once the mask has finished swallowing the screen
   (script.js adds html.is-revealed at that exact moment — a separate
   beat, not layered on top of the mask growth itself), the hero's own
   content stages in — headline first, then supporting copy, then the
   framed avatar, then a small pop on the Play reel tab once the frame
   has landed. Hidden by default so there's no flash-of-unstyled-content
   before is-revealed lands; the reduced-motion override below (with the
   loader's own) skips all of this and shows everything immediately. */
.hero__eyebrow, .hero h1, .hero__tagline, .hero__sub, .hero__actions, .hero__media{
  opacity:0; transform:translateY(14px);
}
html.is-revealed .hero__eyebrow{ animation:heroReveal .6s cubic-bezier(.16,1,.3,1) .05s forwards; }
html.is-revealed .hero h1{ animation:heroReveal .6s cubic-bezier(.16,1,.3,1) .16s forwards; }
html.is-revealed .hero__tagline{ animation:heroRevealDim .6s cubic-bezier(.16,1,.3,1) .3s forwards; }
html.is-revealed .hero__sub{ animation:heroReveal .6s cubic-bezier(.16,1,.3,1) .38s forwards; }
html.is-revealed .hero__actions{ animation:heroReveal .6s cubic-bezier(.16,1,.3,1) .48s forwards; }
html.is-revealed .hero__media{ animation:heroReveal .7s cubic-bezier(.16,1,.3,1) .6s forwards; }
html.is-revealed .media-stage__play{ animation:heroPlayPop .5s cubic-bezier(.34,1.2,.64,1) 1.35s forwards; }
@keyframes heroReveal{ to{ opacity:1; transform:translateY(0); } }
@keyframes heroRevealDim{ to{ opacity:.92; transform:translateY(0); } }
@keyframes heroPlayPop{ 0%{ transform:scale(1); } 45%{ transform:scale(1.07); } 100%{ transform:scale(1); } }

/* Media stage — frame graphic (originally the physical gold frame Travis
   shoots and works against, around his studio's 83" LG EVO screen; a
   dark ornate variant was swapped in 2026-08-21 — confirm with Travis
   whether that's also a real physical frame or a purely digital choice
   before reusing this comment's "physical" framing elsewhere), cut to a
   transparent-centre WebP so it can overlay any media, not just this one
   portrait. .media-stage__aperture is the real opening — sized as a % of
   the frame graphic's own canvas (measured from the source photo:
   aperture inset ~17.97% top / 14.45% left / 14.52% right / 18.55% bottom
   of a 1536x1024 frame — the dark-frame.webp swap measured to the same
   proportions within a fraction of a percent, so these insets were left
   unchanged) — so photo/video inside it lines up with the
   frame's actual inner edge at any render size. No
   corner radius: the frame itself is the edge treatment now, and a
   rounded photo under a square aperture would show as a gap at the
   corners. Same two classes (.media-stage__aperture / __frame-img) are
   reused on the reel modal below, so the frame appears "around any video
   that pops up" rather than being hero-only. */
.hero__media{ position:relative; align-self:start; }
@media(max-width:960px){
  /* Duplicate of the .hero__grid block above (search "known WebKit sizing
     bug") — same rule, same fix: justify-self:center dropped so this
     stretches full column width like .hero__stats does, instead of
     shrinking to content size under iOS Safari's aspect-ratio+justify-self
     interaction. Left as two blocks rather than merged into one, matching
     how the rest of this file is organised (each property grouped near
     the component it belongs to) — but both need to agree, since
     whichever comes later in the file wins on a tie. */
  .hero__media{ width:100%; max-width:560px; margin-top:0; }
}
@media(max-width:640px){
  /* Belt-and-braces: the 560px cap above should never actually bind
     under 640px (container content width is ~366px on a typical phone,
     well under 560), but removing it entirely here means this component
     can never again be the narrower one if that assumption stops holding
     on some future device. */
  .hero__media{ max-width:none; }
  .hero{ padding:128px 0 56px; }
  /* margin-bottom looks large on paper but .media-stage__play hangs off
     the frame on position:absolute (doesn't add to flow height) — at
     top:95% + 50px tall, it overflows the frame's own bottom edge by
     ~61px on a 390px phone up to ~69px at the 640px edge of this
     breakpoint (measured from the frame's aspect-ratio:1536/1024 box,
     not eyeballed). 108px leaves a genuine ~40-47px of visible clear
     air below the button across that range. A near-identical duplicate
     @media(max-width:640px) block further down the file (originally
     added for the newsletter/footer section, copy-pasted some hero
     rules along with it) was silently overriding this with an old 44px
     value — cascade always resolves ties in favour of whichever rule
     comes later in the file, so the earlier attempt at this fix never
     actually rendered. That duplicate has been removed; this is now the
     only rule setting this value. */
  .hero__grid{ gap:28px; margin-bottom:108px; }
  .hero__eyebrow{ margin-bottom:18px; }
  .hero__sub{ margin-bottom:30px; }
  /* See how I can help / Email me / in was wrapping onto a second line at
     this width, which pushed .hero__media (and the frame inside it) down
     the page with it. Dropping the arrow and tightening gap/padding/font
     size gets all three back on one row instead of shrinking to fit an
     arbitrary width — arrow stays on desktop, where there's room. */
  .hero__actions{ gap:8px; flex-wrap:nowrap; }
  .hero__actions .btn{ padding:12px 14px; font-size:12.5px; gap:0; white-space:nowrap; }
  .hero__actions .btn--icon{ width:40px; height:40px; font-size:13px; flex-shrink:0; }
  .btn__arrow{ display:none; }
}
.media-stage{
  position:relative; aspect-ratio:1536/1024; isolation:isolate;
}
.media-stage__aperture{
  position:absolute; overflow:hidden;
  top:17.97%; left:14.45%; right:14.52%; bottom:18.55%;
}
.media-stage__aperture img, .media-stage__aperture video{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover; display:block;
}
/* Flash/sparks, over the avatar photo now (moved off both the frame and
   the button). Inherits position/sizing from the shared rule above;
   opacity is the only thing gating visibility, driven entirely by
   script.js's .is-active toggle rather than the video's own dark frames
   — this is what actually fixes the "shadow" left behind during the
   pause between bursts, since the element is properly invisible then
   rather than just sitting on a near-black (not pure black) last frame.
   Contained by .media-stage__aperture's own overflow:hidden, so no mask
   needed here — the photo's edge is already the boundary. */
.media-stage__aperture-flash{
  z-index:2; opacity:0; pointer-events:none; mix-blend-mode:lighten;
  transition:opacity .35s ease;
}
.media-stage__aperture-flash.is-active{ opacity:1; }
.media-stage__poster{ opacity:0.88; }
/* Full-bleed portrait fill rather than a small image floating in black
   space — strong, confident crop, face kept well in frame. */
.media-stage__poster--portrait{ opacity:1; object-position:50% 25%; }
/* Idle "sign of life" layer — sits directly above the static poster,
   inherits position/sizing from the shared aperture rule, and matches
   the poster's own object-position exactly so the framing lines up
   pixel-for-pixel at any aperture size. Four videos, cycled by
   script.js's idle-life loop and never shown together: a short
   transition bumper played ahead of each gesture, then either a blink
   or a longer glance-and-return, then a flash — each fading in/playing
   once/fading out. z-index:1 keeps all four above the poster
   (z-index:auto/DOM order) but below the hover flash and frame layers
   (z-index:2/3) so Play-now's own hover effects are never blocked by
   whichever idle layer happens to be active. */
.media-stage__idle-transition,
.media-stage__idle-blink,
.media-stage__idle-glance,
.media-stage__idle-flash,
.media-stage__idle-reel,
.media-stage__idle-text{
  z-index:1; opacity:0; pointer-events:none; object-position:50% 25%;
  transition:opacity .4s ease;
}
.media-stage__idle-transition.is-active,
.media-stage__idle-blink.is-active,
.media-stage__idle-glance.is-active,
.media-stage__idle-reel.is-active,
.media-stage__idle-text.is-active{ opacity:1; }
/* Idle flash — same hero-flash.mp4 sparks footage as the Play-now hover
   effect (.media-stage__aperture-flash below), same mix-blend-mode:
   lighten so its black background does nothing and only the bright
   sparks show through. Fast in/slow-ish out rather than the shared .35s
   symmetric fade, so it reads as a quick hit rather than a crossfade. */
.media-stage__idle-flash{ mix-blend-mode:lighten; transition:opacity .08s ease-out; }
.media-stage__idle-flash.is-active{ opacity:1; transition:opacity .05s ease-in; }
/* Showreel snippets — two people in a wide shot, not a single tight
   portrait, so the shared 50%/25% crop (tuned to keep a solo face in
   frame) would sit too high. Center crop instead; the aperture's only
   slightly narrower than these clips' native 16:9, so cover barely
   trims the sides either way. */
.media-stage__idle-reel{ object-position:50% 50%; }
/* "LET'S" / "GO!" callout — full-bleed opaque stills (navy background,
   not transparent text-over-face cutouts), so they use the exact same
   position/cover rule as the idle videos above (".media-stage__aperture
   img, video") rather than a bespoke size — that's what the earlier
   transparent-PNG version needed and what broke on the live site (the
   shared cover rule out-specificities a same-weight class rule, so a
   small side-label image got stretched to fill the whole frame instead).
   Now that filling the frame is the actual intent, there's nothing left
   to override: only opacity/z-index/transition above are bespoke.
   Note: script.js swaps which of the two is visible with an instant,
   un-animated class flip (transition forced off for one frame), not a
   crossfade — two full-bleed layers fading past each other at once
   leaks the poster through underneath for a moment, which is what
   looked like "the avatar showing through" on the first pass. */
/* Reel-modal-only: overrides .media-stage__poster--portrait's own
   opacity:1 default back down to invisible at rest, faded in via
   .is-visible (script.js, on the video's 'ended' event) instead. z-index
   above the video (both are position:absolute z-index:auto from the
   shared aperture rule above, so DOM order decides — this is placed
   after <video> in the markup, which already wins, z-index:2 here is
   just belt-and-braces). pointer-events:none throughout: opacity:0
   doesn't stop an element receiving clicks, and this sits directly over
   the video and its native control bar — without this it would silently
   swallow clicks meant for them even while fully invisible. */
.reel-modal__end-poster{
  opacity:0; z-index:2; pointer-events:none;
  transition:opacity 1.8s ease;
}
.reel-modal__end-poster.is-visible{ opacity:1; }
/* Frame echo: fades to the hero's dark frame once the avatar has settled
   in behind it. Duration only here — the delay (so it starts after the
   avatar's own fade finishes, not with it) is set inline by JS per
   direction, since the fade-in needs the wait but the fade-out on replay
   should snap back immediately. Sits after the gold frame in the DOM so
   it paints on top at the same z-index without needing its own stacking
   rule. */
.reel-modal__end-frame{ opacity:0; pointer-events:none; transition:opacity 1.8s ease; }
.reel-modal__end-frame.is-visible{ opacity:1; }
.media-stage__aperture::after{
  content:''; position:absolute; inset:0; pointer-events:none;
  background:linear-gradient(180deg, rgba(0,0,0,0.12) 0%, rgba(0,0,0,0.02) 30%, rgba(0,0,0,0.35) 100%);
}
/* drop-shadow, not box-shadow — box-shadow follows the element's plain
   rectangular border-box, which produced a hard-edged rectangular halo
   sitting outside the frame's actual ornate (non-rectangular) silhouette.
   filter:drop-shadow reads the image's real alpha shape instead, so the
   shadow hugs the carved edge properly. Safe to use here (unlike the
   loader's T-mark rasterization issue earlier) because this element is
   never CSS-transform-scaled — it's sized once by the aspect-ratio layout
   and stays put, so there's no scaled bitmap to blur. */
.media-stage__frame-img{
  position:absolute; inset:0; width:100%; height:100%; z-index:2; pointer-events:none; display:block;
  filter:drop-shadow(0 14px 34px rgba(0,0,0,0.35));
}
/* Gold twin sits on top of the dark hero frame at opacity:0 (same aperture
   proportions, so the crossfade is a pure dissolve with nothing shifting
   underneath) and fades in on hover/focus of "Play now" — warms the frame
   to gold as an invitation to click rather than requiring a click first.
   :has() rather than a JS class toggle: no state to wire up, and it degrades
   safely (frame just stays dark) on the handful of older browsers without
   :has() support. Scoped to the play button specifically, not the whole
   stage, so mousing over the photo/video itself doesn't trigger it. */
.media-stage__frame-img--gold-hover{ opacity:0; z-index:3; transition:opacity .5s ease; }
.media-stage:has(.media-stage__play:hover) .media-stage__frame-img--gold-hover,
.media-stage:has(.media-stage__play:focus-visible) .media-stage__frame-img--gold-hover{ opacity:1; }
.media-stage__label{
  position:absolute; top:18px; left:18px; z-index:2; font-size:11px; font-weight:700; letter-spacing:0.08em; text-transform:uppercase;
  color:var(--text); background:rgba(10,11,15,0.55); backdrop-filter:blur(6px); -webkit-backdrop-filter:blur(6px);
  border:1px solid rgba(255,255,255,0.14); border-radius:100px; padding:7px 14px;
}
/* Hangs off the bottom of the frame, not sitting on the rail: flat top
   (flush with the frame's outer bottom edge), rounded bottom corners —
   reads as a tab dropping out of the frame into the open background.
   Spans the gap edge-to-edge rather than being centred with margins —
   left/right set directly (not left+transform) so the button's own
   border-box edges land exactly on the shell scrollwork boundaries:
   left flush with the right edge of the centre-bottom shell's gold
   accent (~58.7% across), right flush with the inside edge of the
   bottom-right corner shell's gold accent (~16.7% in from the right).
   Both measured directly off the frame graphic's dangling scrollwork,
   not eyeballed. Top edge at ~95% down. Sits on the frame (child of
   .media-stage, sibling of .media-stage__frame-img, not inside the
   aperture/photo). Site-wide hover rule: FF5A3C/white at rest,
   E5FF53/black on hover — applies here like every other interactive
   element except the top nav. */
.media-stage__play{
  position:absolute; left:58.7%; right:16.7%; top:95%; z-index:3;
  display:inline-flex; align-items:center; justify-content:center; gap:2px; height:50px; padding:0 22px;
  border-radius:0 0 18px 18px;
  background:var(--accent); color:#fff; border:none; cursor:pointer;
  font-size:15px; font-weight:800; font-family:inherit; white-space:nowrap;
  transition:background 200ms ease, color 200ms ease;
}
/* align-items:center above centres the flex line on box geometry, which
   isn't quite the same as optical centre for a short line of all-caps-ish
   bold text — it reads slightly low against the shadow weighted into the
   button's top third. Nudged up on the label alone (not the button, which
   would drag its edges out of alignment with the frame's own bottom rail)
   — a plain, un-hovered transform rather than anything tied to :hover, so
   it holds identically at rest and on hover/focus. */
.media-stage__play-label{ display:block; transform:translateY(-1px); }
/* Faint cast shadow across the top third only, full width — reads as the
   frame's own shadow falling onto the tab, so the button looks tucked in
   underneath the gold edge rather than floating free of it. z-index:-1
   (not the default auto) so it paints behind the label/icon instead of
   over them: negative z-index descendants paint before this element's
   own in-flow content in the stacking order, auto ones paint after. Layout
   is untouched — this is purely a painted overlay, nothing moves. */
.media-stage__play::before{
  content:''; position:absolute; inset:0 0 auto 0; height:33%; z-index:-1;
  background:linear-gradient(180deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0) 100%);
  pointer-events:none;
}
/* Inset topstitch, tag-style — echoes the stitched-fabric look of the
   Travis & Rhu felt reel rather than reading as a plain flat pill.
   border-color:currentColor + opacity (not a fixed rgba) so the thread
   automatically follows the same white-at-rest/near-black-on-hover flip
   as the label, no separate hover rule needed. Traces the button's own
   flat-top/rounded-bottom shape, just inset — inner radius reduced by
   the same amount as the inset so the curve stays concentric rather than
   ballooning out at the corners. 6px inset clears the label/icon by a
   wide margin (22px side padding, ~15px line height against a 50px-tall
   button) so it can't ever collide with the text regardless of paint
   order. */
.media-stage__play::after{
  content:''; position:absolute; inset:6px; z-index:1; pointer-events:none;
  border:1.5px dashed currentColor; border-top:none; opacity:0.45;
  border-radius:0 0 13px 13px;
}
/* Arrow stays understated next to the bold label rather than matching it
   at full strength — softened opacity so it reads quietly instead of the
   two competing for attention. Path itself is a hand-rounded play
   triangle (each vertex pulled back and joined with a quadratic curve),
   not the stock sharp-cornered glyph — sized up slightly to compensate,
   since rounding the points softens its apparent size a touch. */
/* Rest state: label only, centred (removing the icon from the flex row
   leaves justify-content:center to centre the text on its own — no extra
   rule needed for that). Icon reappears only on hover/focus, so the quieter
   rest state stays uncluttered and the icon reads as an interaction cue
   rather than permanent decoration. */
.media-stage__play svg{ width:23px; height:23px; opacity:0.7; display:none; }
.media-stage__play:hover svg, .media-stage__play:focus-visible svg{ display:block; }
.media-stage__play:hover, .media-stage__play:focus-visible{ background:var(--accent-2); color:#0a0b0f; }
.media-stage__play:focus-visible{ outline:2px solid var(--accent-2); outline-offset:3px; }
/* Signature — same percentage-of-.media-stage positioning convention as
   Play now above, so it scales and holds its position relative to the
   frame at any viewport width rather than drifting at a fixed px offset.
   Sits to the left of and slightly above the button, matching the
   supplied reference. Purely decorative (empty alt, aria-hidden), so it
   never becomes a genuine focus stop or gets announced. */
.hero__signature{
  position:absolute; z-index:3; pointer-events:none;
  left:18%; width:31.7%; bottom:-36%;
}
@media (max-width:860px){
  .hero__signature{ left:16%; width:28.8%; bottom:-39%; }
}
.btn{
  position:relative; isolation:isolate; overflow:hidden;
  display:inline-flex; align-items:center; gap:8px; padding:15px 26px; border-radius:100px;
  font-size:14.5px; font-weight:700; border:2px solid transparent;
  transition:transform 160ms cubic-bezier(0.23,1,0.32,1), background 200ms ease, border-color 200ms ease;
}
.btn--primary{ background:var(--accent); color:#0a0b0f; }
.btn--primary:hover{ background:#ff7256; transform:translateY(-2px); }
.btn--ghost{ background:transparent; color:var(--text); border-color:var(--border); }
.btn--ghost:hover{ border-color:var(--text-dim); transform:translateY(-2px); }
.btn:active{ transform:scale(0.97); }
.btn__play-icon{ color:var(--accent); }

/* Hover: a small comet travels the button's perimeter. clip-path keeps it
   strictly contained to the pill's own rounded shape — this is the exact
   version that worked correctly on screen; later attempts to let the glow
   spill past the edge (removing this clip-path) are what introduced the
   misalignment. Off by default, only runs on hover/focus. */
.btn::before{
  content:''; position:absolute; z-index:0; pointer-events:none;
  width:8px; height:8px; margin:-4px 0 0 -4px; border-radius:50%; background:#fff;
  left:0%; top:0%; opacity:0;
  box-shadow:
    0 0 6px 2px rgba(255,255,255,0.75),
    0 0 16px 6px rgba(255,255,255,0.45),
    0 0 30px 12px rgba(255,255,255,0.22);
  transition:opacity 220ms ease;
  animation:btnComet 2.6s linear infinite paused;
}
.btn:hover::before, .btn:focus-visible::before{ opacity:1; animation-play-state:running; }
.btn--no-comet::before{ content:none; }
@keyframes btnComet{
  0%   { left:0%;   top:0%; }
  25%  { left:100%; top:0%; }
  50%  { left:100%; top:100%; }
  75%  { left:0%;   top:100%; }
  100% { left:0%;   top:0%; }
}

/* Tertiary icon-only hero action (LinkedIn "in" glyph). Deliberately not a
   fourth equal-weight pill: same height/corner family as .btn so it sits
   comfortably in the row, but circular, unlabelled and low-contrast until
   hovered, so it reads as "profile/proof" rather than a fourth CTA competing
   with See how I can help / Play reel / Email me. Text glyph, not
   LinkedIn's brand mark, kept in the site's own palette rather than LinkedIn
   blue, so it stays part of this design system rather than looking like an
   embedded social widget. */
.btn--icon{
  display:inline-flex; align-items:center; justify-content:center;
  width:48px; height:48px; padding:0; border-radius:50%;
  border:2px solid var(--border); background:transparent; color:var(--text-dim);
  font-size:15px; font-weight:700; letter-spacing:-0.02em;
  transition:border-color 200ms ease, color 200ms ease, transform 160ms cubic-bezier(0.23,1,0.32,1);
}
.btn--icon:hover{ border-color:var(--text-dim); color:var(--text); transform:translateY(-2px); }

/* Five equal evidence signals, not paragraphs — strong numeral scale,
   minimal supporting text. Desktop: five columns, all visible at once —
   deliberately NOT a scroll/carousel here even on the narrower end of
   desktop; these are trust signals, and hiding one behind a scroll a
   mouse-and-keyboard visitor has no strong reason to discover undercuts
   the "take it all in at a glance" job this row does. Mobile: a
   horizontal snap-carousel instead of a cramped grid — swiping sideways
   is a completely native mobile gesture (unlike on desktop), it's also
   what actually solves five-into-a-tidy-grid not dividing evenly, and it
   means adding a sixth stat later never needs revisiting this layout
   again. Square corners throughout (no border-radius) and a tight gap —
   reads as one continuous strip of evidence rather than separate,
   individually-rounded cards. .hero__stat-copy wraps the number/label as
   its own element (rather than the two spans sitting loose in the card)
   specifically so mobile below can give it a real box — a solid tray,
   not just a couple of positioned text layers — see that breakpoint for
   why. */
.hero__stats{ display:grid; grid-template-columns:repeat(5,1fr); gap:8px; }
.hero__stat{ position:relative; isolation:isolate; overflow:hidden; padding:22px 20px 22px; border-radius:0; border:none; }
.hero__stat-copy{ position:relative; z-index:2; }
/* Corner indicator, all breakpoints — clip-path over a plain positioned
   square rather than a border-trick triangle hack, mainly because it's
   easier to keep perfectly flush with the card's own corner right next
   to it. Smaller by default (desktop's five columns are tighter than one
   mobile carousel card); the mobile block further down scales it up to
   match that bigger card, and also restores full colour there — desktop
   only gets the white/25%-then-colour-on-hover treatment below, since
   mobile has no hover to reveal it against, and this indicator needs to
   actually be visible there without one. */
.hero__stat::after{
  content:""; position:absolute; right:0; bottom:0; z-index:3;
  width:22px; height:22px; background:rgba(255,255,255,0.25);
  clip-path:polygon(100% 0, 100% 100%, 0 100%);
  pointer-events:none;
  transition:background .3s ease;
}
.hero__stat:hover::after{ background:var(--accent-2); }
/* font-variant-numeric:tabular-nums — otherwise the count-up in script.js
   (see "Hero stat counters") visibly jitters in width frame to frame as
   proportional digits of different widths swap in; fixed-width digits
   keep the motion reading as a clean odometer spin instead. */
.hero__stat .num{ font-size:clamp(22px,2.4vw,32px); font-weight:900; color:var(--text); display:block; margin-bottom:6px; letter-spacing:0.025em; line-height:1; font-variant-numeric:tabular-nums; }
.hero__stat .lbl{ font-size:12px; color:var(--text-faint); line-height:1.35; }
@media (max-width:760px){
  .hero__stats{
    display:flex; grid-template-columns:none; overflow-x:auto; gap:6px;
    scroll-snap-type:x mandatory; -webkit-overflow-scrolling:touch;
    padding-bottom:2px; /* clears the browser's own scrollbar, if shown, from the cards */
    scrollbar-width:none;
    /* body's touch-action:pan-y (the page-wide horizontal-drag lockup
       fix) restricts horizontal panning for the whole page by default,
       and that restriction is inherited by descendants unless they
       explicitly declare their own touch-action — this carousel never
       had that override, so it had been fighting the page lock the
       entire time rather than actually broken by anything in the recent
       rework. pan-x here restores free horizontal swipe scoped to just
       this element; the rest of the page stays correctly locked. */
    touch-action:pan-x pan-y;
  }
  .hero__stats::-webkit-scrollbar{ display:none; }
  .hero__stat{
    flex:0 0 auto; width:78%; scroll-snap-align:start;
    display:flex; flex-direction:column; padding:0; min-height:280px;
    border-radius:0; /* fully square — the triangle alone carries the corner treatment, a soft radius under it didn't read right */
  }
  .hero__stat-copy{
    flex:1 1 auto; background:var(--bg-alt); padding:16px 16px 18px;
    display:flex; flex-direction:column; justify-content:center;
  }
  .hero__stat .num{ font-size:30px; margin-bottom:6px; }
  .hero__stat .lbl{
    font-size:14px; line-height:1.3;
    display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden;
  }
  /* Green corner: a small triangle, not a badge or an icon — reads as
     "there's more here" without competing with the number for attention.
     Base size lives with the rest of the shared card rules further up
     (see .hero__stat::after there) — this just scales it up to match the
     bigger card at this breakpoint. */
  .hero__stat::after{ width:30px; height:30px; background:var(--accent-2); }
  /* .hero__stat-media and its img are deliberately NOT overridden here —
     both are also set (without a media query, so unconditionally) in
     "Hero stat proof images" further down, and with equal selector
     specificity a later unconditional rule beats an earlier conditional
     one regardless of which viewport is actually active. Overriding them
     here would just get silently re-overridden back the moment that
     section's own rules run. The real mobile versions of those two
     selectors live in the dedicated block at the very end of that
     section instead, positioned to actually win. */
}
@media (min-width:761px) and (max-width:1100px){
  /* Five real columns get tight before four did — one extra breakpoint
     just for the numeral size, same fix as the phone rule above but
     milder, so £/°C/%/+ don't start colliding with card edges on
     smaller laptop and tablet-landscape widths. */
  .hero__stat .num{ font-size:clamp(19px,2.6vw,26px); }
}

/* ---------- Hero stat proof images ----------
   Each stat card SWAPS to a real proof photo/screenshot on interaction —
   the number/label fade out, the image fades in to full opacity and takes
   over the block. Desktop: :hover. Mobile: while pressed, via .is-pressed
   toggled by touchstart/touchend in script.js (CSS :active alone is
   unreliable for a sustained press-and-hold on touch). Releasing/mousing
   off reverts fully back to the number/label — nothing stays visible or
   frozen, including mid-cycle on the 0.01°C and +£1.5m stats (see note
   below).
   .is-demo (further down) is deliberately NOT wired into any of this —
   it's a separate, much quieter treatment. A full automatic swap to the
   photo, played out unprompted across all five cards, read as showing
   off rather than a quiet hint once it was actually built and seen; see
   .is-demo below for what replaced it. */
.hero__stat-media{ position:absolute; inset:0; z-index:0; pointer-events:none; }
.hero__stat-media img{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
  opacity:0; transform:scale(1.1) translate(1%,1%);
  transition:opacity .5s ease, transform 3.4s cubic-bezier(0.16,1,0.3,1);
}
.hero__stat .num, .hero__stat .lbl{ transition:opacity .35s ease; }
.hero__stat:hover .num, .hero__stat:hover .lbl,
.hero__stat.is-pressed .num, .hero__stat.is-pressed .lbl{ opacity:0; }

/* Single-image stats (£500k, 87%, 30+): fade in to full opacity + slow zoom-in. */
.hero__stat:not(.hero__stat--cycle):not(.hero__stat--cycle5):hover .hero__stat-media img,
.hero__stat:not(.hero__stat--cycle):not(.hero__stat--cycle5).is-pressed .hero__stat-media img{
  opacity:1; transform:scale(1) translate(0,0);
}

/* The 0.01°C stat holds two stacked images that crossfade through in
   sequence for as long as the card is hovered/pressed. The animation is
   only ever applied WHILE active, not paused-in-place — so the instant
   you mouse off or release, the animation is removed outright and every
   image falls back to the base opacity:0 rule above and fades out
   cleanly, rather than freezing on whichever image was showing. */
.hero__stat--cycle:hover .hero__stat-media img,
.hero__stat--cycle.is-pressed .hero__stat-media img{
  animation:heroStatCycle 6s ease-in-out infinite;
}
/* Two images now (CA-AD and the 23.13.37 screenshot were removed) — evenly
   split across the loop, offset by half the duration so one fades out
   exactly as the other fades in, no dead gap where nothing is showing. */
.hero__stat--cycle .hero__stat-media img:nth-child(1){ animation-delay:0s; }
.hero__stat--cycle .hero__stat-media img:nth-child(2){ animation-delay:-3s; }
@keyframes heroStatCycle{
  0%{ opacity:1; transform:scale(1.08) translate(1%,1%); }
  45%{ opacity:1; transform:scale(1) translate(0,0); }
  50%{ opacity:0; }
  95%{ opacity:0; }
  100%{ opacity:1; transform:scale(1.08) translate(1%,1%); }
}
/* +£1.5m stat: same idea, five images instead of two — a 15s loop split
   into five 3s slots (0s/-3s/-6s/-9s/-12s delays) so exactly one image is
   ever in focus at a time and each gets an even turn. Kept as its own
   modifier/keyframe rather than generalising heroStatCycle to N images,
   so the existing 0.01°C card's animation and timing are completely
   undisturbed by this addition. */
.hero__stat--cycle5:hover .hero__stat-media img,
.hero__stat--cycle5.is-pressed .hero__stat-media img{
  animation:heroStatCycle5 15s ease-in-out infinite;
}
.hero__stat--cycle5 .hero__stat-media img:nth-child(1){ animation-delay:0s; }
.hero__stat--cycle5 .hero__stat-media img:nth-child(2){ animation-delay:-3s; }
.hero__stat--cycle5 .hero__stat-media img:nth-child(3){ animation-delay:-6s; }
.hero__stat--cycle5 .hero__stat-media img:nth-child(4){ animation-delay:-9s; }
.hero__stat--cycle5 .hero__stat-media img:nth-child(5){ animation-delay:-12s; }
@keyframes heroStatCycle5{
  0%{ opacity:0; transform:scale(1.08) translate(1%,1%); }
  4%{ opacity:1; transform:scale(1) translate(0,0); }
  16%{ opacity:1; transform:scale(1) translate(0,0); }
  20%{ opacity:0; }
  100%{ opacity:0; }
}
/* Demo hint: a soft, quiet nudge, not a rehearsal of the real interaction.
   The photo fades in behind the text at low opacity and no zoom — the
   number/label stay fully visible throughout, nothing is hidden or
   swapped. The scrim (::before) exists purely so the number/label stay
   legible against whatever brightness/business the photo underneath
   happens to have; without it, a light or busy proof photo could fight
   the text for a moment. Deliberately its own rule, not reusing the
   full-swap selectors above — script.js still calls this .is-demo, but
   what it now DOES is a different, gentler thing than the real
   hover/press reveal. Cycle cards (0.01°C, +£1.5m) just show their first
   image at this same low opacity during the hint — the full crossfade
   is part of the "real" reveal's fuller performance, not the nudge. */
.hero__stat::before{
  content:""; position:absolute; inset:0; z-index:1; pointer-events:none;
  background:linear-gradient(to top, rgba(10,11,15,.55), rgba(10,11,15,0) 65%);
  opacity:0; transition:opacity .5s ease;
}
.hero__stat.is-demo::before{ opacity:1; }
.hero__stat.is-demo .hero__stat-media img{ transition:opacity 1s ease; }
.hero__stat.is-demo .hero__stat-media img:first-child{ opacity:.28; }
@media (prefers-reduced-motion: reduce){
  /* Reduced-motion visitors never get .is-demo added at all (see
     script.js) — the cards simply sit at rest showing the number/label,
     same as if hover/press never happened, on top of the transform/
     animation removals here for anyone who does still hover or press. */
  .hero__stat-media img{ transition:opacity .3s ease; transform:none !important; }
  .hero__stat--cycle:hover .hero__stat-media img,
  .hero__stat--cycle.is-pressed .hero__stat-media img{ animation:none !important; }
  .hero__stat--cycle:hover .hero__stat-media img:first-child,
  .hero__stat--cycle.is-pressed .hero__stat-media img:first-child{ opacity:1; }
  .hero__stat--cycle5:hover .hero__stat-media img,
  .hero__stat--cycle5.is-pressed .hero__stat-media img{ animation:none !important; }
  .hero__stat--cycle5:hover .hero__stat-media img:first-child,
  .hero__stat--cycle5.is-pressed .hero__stat-media img:first-child{ opacity:1; }
}

/* ---------- Hero stat cards: mobile override ----------
   Positioned here deliberately, not back up in the earlier mobile block
   in the "Five equal evidence signals" section — .hero__stat-media and
   its img are also set unconditionally (no media query) just above, and
   with equal selector specificity a later unconditional rule always
   beats an earlier conditional one, whichever viewport is actually
   active. This block has to come after that one in the file to win at
   all; putting it up near the rest of the mobile layout rules would have
   looked right and silently done nothing.
   Structural fix, not another opacity tweak: text-over-photo contrast
   was never going to be reliably legible against a busy/bright proof
   photo no matter how it was tuned, and the cycling stats made it worse
   — the previous version reused desktop's full 0%-to-100%-opacity hover
   keyframe for what was meant to be a background hint, so images were
   periodically hitting full opacity right over the text, and on the
   5-image card that never stopped for as long as it stayed in view.
   Splitting the card into a photo zone and a solid tray (see the mobile
   block above) removes the fight structurally — the copy never sits on
   top of the image at all on this breakpoint, so there is no opacity
   value that needs tuning.
   With the fight gone, cycling can just be plain JS-driven opacity
   toggling between exactly two states per image (showing, or not) —
   .is-shown, added by script.js — rather than a continuously-running CSS
   animation nobody can cleanly interrupt. That also directly enables the
   "auto-advance, but tap to override" behaviour asked for: script.js
   advances .is-shown on a timer while a card is .is-slide-active (the
   one actually scrolled into view — see "Mobile stat carousel" there),
   and a tap on that same card jumps to the next image immediately and
   resets the timer, rather than just replaying from the start.
   Also explicitly neutralises hover/is-pressed text-hiding at this
   breakpoint: script.js never attaches is-pressed below 760px, but some
   mobile browsers momentarily apply :hover on tap regardless, and
   nothing here should ever hide the number/label again now that they
   have their own safe tray. */
@media (max-width:760px){
  .hero__stat-media{ position:relative; flex:0 0 56%; z-index:auto; }
  .hero__stat-media img{
    position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
    opacity:0; transform:none; transition:opacity .4s ease;
  }
  /* .is-shown is the only source of truth for which image is visible —
     script.js adds it to the first image on setup for every card (single
     -image cards get it once and that's the whole story; cycle cards
     then move it along a timer/tap), rather than this CSS also trying to
     default the first image visible via :first-child. Two separate rules
     both deciding the same thing was one rule more than this needed. */
  .hero__stat-media img.is-shown{ opacity:1; }
  .hero__stat:hover .num, .hero__stat:hover .lbl,
  .hero__stat.is-pressed .num, .hero__stat.is-pressed .lbl{ opacity:1; }
  .hero__stat::before{ content:none; } /* the old demo-hint scrim; the tray makes it redundant here */
}

/* ---------- Credibility rail: seamless single-line client carousel ---------- */
/* Restored from Stage 1.1's static two-row rail, which wrapped and read
   as broken. Calm, slow, single-line movement, continuous with no pause
   control or hover/focus interaction — runs the same way for every visitor.
   Kept as its own band, separated from #proof below by the normal
   section rhythm — not pulled back up against the Selected Proof
   heading. */
.orgs{ border-top:1px solid var(--border); border-bottom:1px solid var(--border); background:var(--bg-alt); padding:26px 0; overflow:hidden; flex:0 0 auto; }
.orgs__wrap{ position:relative; max-width:var(--maxw); margin:0 auto; overflow-x:hidden; }
.orgs__label{
  display:block; text-align:center; font-size:11px; font-weight:700;
  letter-spacing:0.14em; text-transform:uppercase; color:var(--text-faint);
  opacity:0.7; margin:0 0 14px;
}
/* --marquee-fade: soft edge dissolve so names entering/leaving the
   viewport fade rather than clip. */
.orgs__wrap{
  --marquee-fade:72px;
  -webkit-mask-image:linear-gradient(to right, transparent 0, #000 var(--marquee-fade), #000 calc(100% - var(--marquee-fade)), transparent 100%);
  mask-image:linear-gradient(to right, transparent 0, #000 var(--marquee-fade), #000 calc(100% - var(--marquee-fade)), transparent 100%);
}
/* No gap on the outer flex: the two groups sit directly side by side.
   Each group carries its own trailing 56px as padding-right (below), so
   its rendered width already equals one full "period" of the loop —
   what makes translateX(-50%) of the doubled track land on an exact
   repeat with no jump, instead of being short by half an inter-group
   gap. */
.marquee{ display:flex; white-space:nowrap; width:max-content; will-change:transform; }
/* Animation is gated behind .is-ready, added by script.js only after the
   duplicate group has been cloned in — so it can never start playing
   against the single-copy width and leave a gap at the loop boundary.
   Slow (70s) so it reads as calm, not distracting. */
.marquee.is-ready{ animation:scrollx 70s linear infinite; }
.marquee__group{ display:flex; gap:56px; padding-right:56px; white-space:nowrap; align-items:center; }
.marquee span{ font-size:15px; font-weight:600; color:var(--text-faint); letter-spacing:0.02em; white-space:nowrap; }
/* Client logos: the source PNGs are pre-baked solid white (see
   assets/img/logos/) rather than recoloured live via CSS filter — 62
   images (31 plus their clone for the seamless loop) animating at once
   with a per-frame filter was real GPU cost, not just perceived
   slowness, especially on mobile. Opacity-only now: cheap, GPU-friendly,
   same 75%-at-rest / full on hover behaviour. Fixed height / auto width
   keeps each mark's own proportions while giving the row one consistent
   rhythm. */
.marquee img{
  height:28px;
  width:auto;
  max-width:140px;
  object-fit:contain;
  opacity:0.75;
  transition:opacity .25s ease;
}
.marquee img:hover{ opacity:1; }
@media(max-width:760px){ .marquee img{ height:22px; max-width:110px; } }
@keyframes scrollx{ from{ transform:translateX(-50%); } to{ transform:translateX(0%); } }
/* Holds still on hover/keyboard focus — no visible control, just a
   passive courtesy so the row doesn't keep moving under your cursor
   while you're looking at it. */
.orgs__wrap:hover .marquee,
.orgs__wrap:focus-within .marquee{ animation-play-state:paused; }
@media(max-width:760px){ .orgs__wrap{ --marquee-fade:32px; } }

/* ---------- Section shared ---------- */
/* One spacing system for the whole page: ~136px desktop, ~96px tablet,
   ~80px mobile — comfortably inside the brief's 120–152 / 88–112 / 72–88
   ranges at every step, so #proof's own "clearly separate section" gap
   requirement (120–144 / 88–104 / 72–80) is satisfied by the same rule
   rather than a bespoke override. */
section{ padding:136px 0; }
@media(max-width:1024px){ section{ padding:96px 0; } }
@media(max-width:640px){ section{ padding:80px 0; } }
.section-head{ max-width:680px; margin-bottom:64px; }
.section-head .tag{ font-size:12.5px; letter-spacing:0.14em; text-transform:uppercase; color:var(--accent); font-weight:700; margin-bottom:16px; display:block; }
.section-head h2{ font-size:clamp(30px,3.8vw,46px); margin-bottom:20px; }
.section-head p{ color:var(--text-dim); font-size:17px; }

/* ---------- Work grid ---------- */
.work-list{ display:flex; flex-direction:column; gap:1px; background:var(--border); border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; }
.work-item{ background:var(--bg); }
.work-item__head{
  display:grid; grid-template-columns:64px 1fr auto auto; align-items:center; gap:24px;
  padding:28px 30px; cursor:pointer; transition:background .2s ease, color .2s ease;
}
.work-item__head:hover{ background:var(--accent); color:#0a0b0f; }
.work-item__head:focus-visible{ position:relative; z-index:1; outline:2px solid var(--accent-2); outline-offset:-4px; }
.work-item__index{ font-size:13px; color:var(--text-faint); font-weight:700; transition:color .2s ease; }
.work-item__head:hover .work-item__index{ color:#0a0b0f; }
.work-item__title{ font-size:clamp(19px,2.4vw,26px); font-weight:700; }
.work-item__title small{ display:block; font-size:13px; font-weight:500; color:var(--text-dim); margin-top:4px; transition:color .2s ease; }
.work-item__head:hover .work-item__title small{ color:#0a0b0f; }
.work-item__meta{ font-size:12.5px; color:var(--text-faint); text-align:right; display:none; transition:color .2s ease; }
.work-item__head:hover .work-item__meta{ color:#0a0b0f; }
@media(min-width:640px){ .work-item__meta{ display:block; } }
/* Plus circle stays black even when the row goes orange on hover — it
   has no background of its own otherwise, so it would show the orange
   through it. Explicit background pins it black regardless of the row
   state (open, hover, or both). */
.work-item__plus{
  width:34px; height:34px; border-radius:50%; border:1px solid var(--border); display:flex; align-items:center; justify-content:center;
  font-size:18px; transition:transform .3s ease, background .3s ease;
}
.work-item__head:hover .work-item__plus{ background:#0a0b0f; border-color:#0a0b0f; color:var(--text); }
.work-item.open .work-item__plus{ transform:rotate(45deg); background:#0a0b0f; border-color:#0a0b0f; color:var(--text); }
.work-item__body{ max-height:0; overflow:hidden; transition:max-height .5s ease; }
.work-item.open .work-item__body{ max-height:2400px; }
/* Top padding was 0 — copy and images butted directly against the
   header/divider above with no breathing room. Matches the head's own
   28px/30px rhythm. */
.work-item__body-in{ padding:32px 30px; display:grid; grid-template-columns:1.1fr 0.9fr; gap:40px; }
@media(max-width:860px){ .work-item__body-in{ grid-template-columns:1fr; } .work-item__head{ grid-template-columns:40px 1fr auto; } }
@media(max-width:640px){
  /* The section container already supplies a 32px phone gutter. Let the
     accordion frame use half of it, then use the other half inside each row:
     content still aligns on a composed 32px visual edge, but no longer loses
     62px per side to nested container + panel padding. */
  #more-work .work-list{ margin-left:-16px; margin-right:-16px; }
  #more-work .work-item__head{
    grid-template-columns:32px minmax(0,1fr) auto;
    gap:12px;
    padding:24px 16px;
  }
  #more-work .work-item__body-in{ padding:28px 16px 32px; gap:28px; }
}
.work-item__copy p{ color:var(--text-dim); margin-bottom:16px; font-size:15.5px; }
.work-item__copy p:last-child{ margin-bottom:0; }
/* Full-bleed row inside a work-item's two-column body grid — spans both
   the copy and carousel columns so a featured image reads as a proper
   hero rather than getting squeezed into one grid track. No aspect-ratio
   box or fill background: the image's own crop defines the box, so there
   is no letterboxing regardless of the source ratio. */
.work-item__hero{ grid-column:1 / -1; border-radius:var(--radius); overflow:hidden; }
.work-item__hero img{ width:100%; height:auto; display:block; }
.work-item__hero-caption{ grid-column:1 / -1; font-size:14px; color:var(--text-body); border-left:2px solid var(--accent-2); padding-left:12px; margin:12px 0 4px; }
.work-item__tags{ display:flex; flex-wrap:wrap; gap:8px; margin-top:20px; }
.work-item__tags span{ font-size:11.5px; padding:5px 11px; border:1px solid var(--border); border-radius:100px; color:var(--text-dim); text-transform:uppercase; letter-spacing:0.04em; }
.work-item__gallery{ display:grid; grid-template-columns:1fr; gap:10px; }
.work-item__gallery img{ border-radius:10px; border:1px solid var(--border); width:100%; height:auto; object-fit:cover; }
.work-item__gallery.two{ grid-template-columns:1fr 1fr; }
.work-item__more{ display:inline-block; margin-top:16px; color:var(--accent-2); font-weight:600; font-size:14.5px; }
.work-item__more:hover{ text-decoration:underline; }

/* ---------- Case-study image carousel ----------
   Drop-in replacement for .work-item__gallery wherever a project has more
   than a couple of source images. One slide visible at a time (crossfade),
   arrow + dot navigation, swipe on touch, arrow-key nav when focused. Degrades
   automatically to a plain single frame when there's only one slide (JS adds
   .carousel--single and strips the controls rather than showing dead arrows). */
.carousel{
  position:relative; aspect-ratio:3/2; border-radius:10px; overflow:hidden;
  border:1px solid var(--border); background:#000; outline:none;
}
/* commonSENSE-PRO's slides are mostly 16:9 app/dashboard screenshots, not the
   3:2 photography the default ratio is tuned for — at 3:2 they were getting
   cropped down both sides. Widening the frame to match fixes that without
   touching every other project's carousel. Same fix for Valcomm and the
   cinch x ITV Starstruck gallery — both are also predominantly 16:9. */
.carousel--wide{ aspect-ratio:16/9; }
/* FV.81's slides are a genuinely mixed bag — portrait phone shots, square
   crops, an ultra-wide 2.14:1 landscape — there's no single box ratio that
   fits that set without cropping most of it. Letterboxing on the existing
   black background is the only fix that doesn't cut content out of at least
   half the slides; the source images would need re-cropping to a consistent
   ratio to do better than this. */
.carousel--contain .carousel__slide img{ object-fit:contain; }
/* Some source photos are shot ~4:3 (a phone mockup on a big white canvas)
   rather than the carousel's native 16:9, and object-fit:cover's default
   50%/50% centring splits that mismatch evenly above and below — which
   reads as too much dead white space over the device's head and the
   phone's own bottom edge/screen content getting cropped into (and then
   further obscured by .carousel__dots sitting right on top of whatever's
   left at that edge). Measured directly off the actual pixel content
   (non-background bounding box), not eyeballed: the right balance for
   commonSENSE's phone shots is 89% down, not 50% — centres the crop on
   the device itself rather than the canvas it's sitting on, with even
   margins above/below the phone instead of the canvas's own off-centre
   white space. */
.carousel__slide img.is-top-heavy{ object-position:50% 89%; }
.carousel__track{ position:relative; width:100%; height:100%; }
.carousel__slide{
  position:absolute; inset:0; opacity:0; visibility:hidden; transition:opacity .5s ease;
}
.carousel__slide.is-active{ opacity:1; visibility:visible; }
.carousel__slide img{ width:100%; height:100%; object-fit:cover; display:block; }
.carousel__arrow{
  position:absolute; top:50%; transform:translateY(-50%); z-index:2;
  width:36px; height:36px; border-radius:50%; background:rgba(10,11,15,0.55); backdrop-filter:blur(6px);
  border:1px solid rgba(255,255,255,0.35); color:#fff;
  display:flex; align-items:center; justify-content:center; cursor:pointer;
  opacity:0; transition:opacity .2s ease, background .2s ease, border-color .2s ease;
}
.carousel__arrow svg{ width:16px; height:16px; }
.carousel__arrow--prev{ left:10px; }
.carousel__arrow--next{ right:10px; }
.carousel:hover .carousel__arrow, .carousel:focus-visible .carousel__arrow{ opacity:1; }
.carousel__arrow:hover{ background:var(--accent); border-color:var(--accent); }
.carousel__dots{
  position:absolute; left:50%; bottom:12px; z-index:2; transform:translateX(-50%);
  display:flex; justify-content:center; gap:6px;
  padding:6px 10px; border-radius:20px; background:rgba(10,11,15,0.4); backdrop-filter:blur(6px);
}
.carousel__dot{
  width:6px; height:6px; border-radius:50%; padding:0; border:0; cursor:pointer;
  background:rgba(255,255,255,0.4); transition:background .2s ease, width .2s ease;
}
.carousel__dot.is-active{ width:18px; border-radius:3px; background:var(--accent); }
.carousel--single .carousel__arrow, .carousel--single .carousel__dots{ display:none; }
@media(hover:none){ .carousel__arrow{ opacity:1; } }

/* ---------- Landscape video row (case-study showreels/talks, 16:9) ----------
   Reuses the .reel-facade play/pause/reset system already built for the
   weServed shorts grid — .reel-facade--wide just swaps the aspect ratio from
   9:16 to 16:9, and auto-fit means a single video sits full width instead of
   stranded in a 4-column grid built for portrait clips. */
.video-row{ display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:14px; padding:0 30px 32px; }
.reel-facade.reel-facade--wide{ aspect-ratio:16/9; }
.video-row__caption{ font-size:12px; color:var(--text-faint); margin-top:8px; text-align:center; }
.video-row__cell{ display:flex; flex-direction:column; }

/* Stacks multiple reel-facade--wide videos vertically inside a single
   work-item__body-in grid column (e.g. weServed's headline reel + a
   second video), instead of the pair wrapping into a new grid row. */
.work-item__video-stack{ display:flex; flex-direction:column; gap:20px; }

/* ---------- Case-study doc strip (e.g. Brand Guidelines PDF) ---------- */
.doc-strip{
  display:flex; align-items:center; justify-content:space-between; gap:24px;
  margin:0 30px 28px; padding:20px 24px; border:1px solid var(--border); border-radius:12px;
  background:var(--surface); transition:border-color 200ms ease, background 200ms ease;
}
.doc-strip:hover{ border-color:var(--accent-2); background:var(--surface-2); }
.doc-strip__title{ display:flex; flex-direction:column; gap:6px; font-size:16px; font-weight:700; color:var(--text); }
.doc-strip__title small{ font-size:13px; font-weight:500; color:var(--text-dim); }
.doc-strip__thumb{ position:relative; flex:0 0 auto; width:140px; aspect-ratio:16/9; border-radius:8px; overflow:hidden; border:1px solid var(--border); }
.doc-strip__thumb img{ width:100%; height:100%; object-fit:cover; display:block; }
.doc-strip__cta{
  position:absolute; inset:auto 0 0 0; padding:6px 0; font-size:11px; font-weight:700;
  letter-spacing:0.02em; text-align:center; color:#fff; background:rgba(10,11,15,0.75);
}
@media(max-width:640px){
  .doc-strip{ flex-direction:column; align-items:flex-start; margin:0 20px 24px; }
  .doc-strip__thumb{ width:100%; }
}

/* ---------- PDLC process strip ---------- */
/* One self-contained card: everything (steps, archiving/access chips, team
   loop) reads as a single unit, clearly bounded off from the reels below —
   no internal divider lines that could read as a section break. */
.pdlc{ margin:0 30px 32px; padding:28px 26px 30px; background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); }
.pdlc__head{ max-width:640px; margin-bottom:28px; }
.pdlc__tag{ font-size:12.5px; letter-spacing:0.14em; text-transform:uppercase; color:var(--accent-2); font-weight:700; margin-bottom:10px; display:block; }
.pdlc__head h4{ font-size:19px; margin-bottom:8px; }
.pdlc__head p{ font-size:14px; color:var(--text-dim); line-height:1.55; }

.pdlc__steps{ position:relative; display:flex; gap:0; margin-bottom:32px; }
.pdlc__steps::before{ content:''; position:absolute; top:15px; left:4%; right:4%; height:1px; background:var(--border); z-index:0; }
.pdlc__step{ flex:1 1 0; min-width:0; position:relative; z-index:1; display:flex; flex-direction:column; align-items:center; text-align:center; padding:0 4px; }
.pdlc__num{
  width:30px; height:30px; border-radius:50%; background:var(--surface); border:1px solid var(--border);
  display:flex; align-items:center; justify-content:center; font-size:12px; font-weight:800; color:var(--accent-2);
  margin-bottom:10px; flex-shrink:0;
}
.pdlc__step--archive .pdlc__num{ color:var(--accent); border-color:var(--accent); }
.pdlc__label{ font-size:12px; font-weight:700; color:var(--text); line-height:1.3; }
.pdlc__sub{ font-size:10.5px; color:var(--text-faint); margin-top:5px; line-height:1.4; }

.pdlc__gov{ display:grid; grid-template-columns:1fr 1fr; gap:24px; margin-bottom:24px; }
.pdlc__gov-label{ font-size:11.5px; letter-spacing:0.08em; text-transform:uppercase; color:var(--text-faint); font-weight:700; margin-bottom:10px; display:block; }
.pdlc__chips{ display:flex; flex-wrap:wrap; gap:8px; }
.pdlc__chips span{ font-size:12px; padding:7px 13px; background:var(--surface); border:1px solid var(--border); border-radius:6px; color:var(--text-dim); }
.pdlc__team{ margin-top:22px; }
.pdlc__chips--flow .is-lead{ border-color:var(--accent-2); color:var(--text); }

@media(max-width:760px){
  .pdlc__steps{ flex-wrap:wrap; row-gap:20px; }
  .pdlc__steps::before{ display:none; }
  .pdlc__step{ flex:1 1 22%; min-width:70px; }
  .pdlc__gov{ grid-template-columns:1fr; }
}

.work-item__reels{ display:grid; grid-template-columns:repeat(4,1fr); gap:14px; padding:0 30px 32px; }
.work-item__reels iframe{ width:100%; aspect-ratio:9/16; border:1px solid var(--border); border-radius:12px; background:#000; }
@media(max-width:900px){ .work-item__reels{ grid-template-columns:repeat(2,1fr); } }
@media(max-width:520px){ .work-item__reels{ grid-template-columns:1fr; padding:0 20px 32px; } }

.reel-facade{
  position:relative; width:100%; aspect-ratio:9/16; border:1px solid var(--border); border-radius:12px;
  overflow:hidden; padding:0; background:#000; cursor:pointer;
}
.reel-facade img{ width:100%; height:100%; object-fit:cover; display:block; transition:transform .4s ease; }
.reel-facade:hover img{ transform:scale(1.04); }
.reel-facade::after{ content:''; position:absolute; inset:0; background:linear-gradient(180deg, rgba(0,0,0,0.05) 55%, rgba(0,0,0,0.55) 100%); }
.reel-facade__play{
  position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); z-index:1;
  width:52px; height:52px; border-radius:50%; background:rgba(10,11,15,0.55); backdrop-filter:blur(6px);
  border:1px solid rgba(255,255,255,0.35); color:var(--accent-2);
  display:flex; align-items:center; justify-content:center; transition:transform .2s ease, background .2s ease, color .2s ease;
}
.reel-facade__play svg{ width:20px; height:20px; display:block; }
.reel-facade:hover .reel-facade__play{ transform:translate(-50%,-50%) scale(1.1); background:var(--accent); border-color:var(--accent); color:#fff; }
.reel-facade iframe, .reel-facade video{ position:absolute; inset:0; width:100%; height:100%; border:0; object-fit:cover; background:#000; }
.reel-facade video{ cursor:pointer; }

/* ---------- Brand banner (Thirty Years) ---------- */
/* Six layers (back glow, THIRTY, YEARS, avatar, signature, BUILDING
   BRANDS) reconstructing the original flat composite, each positioned
   as a percentage of .brand-banner__stage — measured directly off the
   source file (not eyeballed): see the numbered comment above each
   layer's rule for exactly where that number came from. height:auto on
   every layer lets each image's own aspect ratio drive its height, so
   only width ever needs setting.
   .brand-banner (outer) is a normal-flow wrapper that exists purely to
   reserve the correct vertical space in the page. Height comes from the
   classic height:0 + padding-top:% technique, not the newer aspect-ratio
   property — the first build used aspect-ratio alone with nothing to
   fall back on, and on desktop (where nothing else on the wrapper
   establishes a height) that turned out to be a single point of
   failure: if it doesn't resolve for whatever reason, the wrapper
   collapses to zero height and the whole banner disappears, which is
   exactly what happened. padding-top-percent has worked in every
   browser for over a decade with nothing that can fail the same way.
   .brand-banner__stage is the actual positioned box the layers size
   themselves against; on desktop it's just a plain full-size child (not
   itself positioned, so the layers' absolute positioning skips it and
   resolves against .brand-banner instead — equivalent outcome, since
   stage and wrapper are identical there). */
.brand-banner{ position:relative; width:100%; overflow:hidden; height:0; padding-top:39.4877%; }
.brand-banner__stage{ position:absolute; inset:0; }
.brand-banner__layer{ position:absolute; display:block; height:auto; }
.brand-banner__back{ inset:0; width:100%; height:100%; object-fit:cover; }
/* THIRTY and YEARS were measured wrong on the first pass: the lettering
   fades from white at the top to grey at the bottom, and the brightness
   threshold used to find each letter's edges was tuned for the bright
   top and lost the fade before it reached the true (darker) bottom —
   undermeasuring the actual height by nearly half or on both words.
   Recalibrated with a lower, tighter-tolerance threshold and confirmed
   stable across a range of threshold values, then verified by actually
   compositing the real assets at the corrected size against the
   reference image — this is why width jumps so much from the previous
   pass despite left/top barely moving: those were always correct, only
   the height (and the width that follows from scaling proportionally to
   it) was wrong.
   THIRTY: left=24.6171%, top=59.7318%, width=20.4952% */
.brand-banner__thirty{ left:24.6171%; top:59.7318%; width:20.4952%; }
/* YEARS: right-anchored (right=26.2201% i.e. 100−73.7799), top=59.4781%, width=17.8188% */
.brand-banner__years{ right:26.2201%; top:59.4781%; width:17.8188%; }
/* Avatar: left=30.4709%, top=8.0101%, width=39.0583% */
.brand-banner__avatar{ left:30.4709%; top:8.0101%; width:39.0583%; }
/* BUILDING BRANDS: left=40.2032%, top=75.9696%, width=20.1660% */
.brand-banner__building{ left:40.2032%; top:75.9696%; width:20.1660%; }
/* Signature: left=45.4988%, top=84.4871%, width=9.0024% */
.brand-banner__signature{ left:45.4988%; top:84.4871%; width:9.0024%; }

/* Entrance animation — plays once, driven by .is-visible added via
   IntersectionObserver in script.js when the banner scrolls into view
   (see "Brand banner reveal" there). Sequenced per the brief: back glow
   fades in from the centre outward: THIRTY and YEARS sweep in from
   their respective sides at the same time; the avatar wipes up from
   the bottom; the signature wipes in left-to-right over the avatar; and
   BUILDING BRANDS fades in last, after everything else has landed —
   not simultaneous with it. Before .is-visible, every layer sits in its
   pre-animation state so there's no flash of the fully-assembled image
   before the sequence plays. */
.brand-banner__back{
  opacity:0; clip-path:circle(0% at 50% 50%);
  transition:opacity 1s ease, clip-path 1.1s ease;
}
.brand-banner__thirty{
  opacity:0; transform:translateX(-60%);
  transition:opacity .8s ease .25s, transform .8s cubic-bezier(.16,1,.3,1) .25s;
}
.brand-banner__years{
  opacity:0; transform:translateX(60%);
  transition:opacity .8s ease .25s, transform .8s cubic-bezier(.16,1,.3,1) .25s;
}
.brand-banner__avatar{
  clip-path:inset(100% 0 0 0);
  transition:clip-path 1s cubic-bezier(.16,1,.3,1) .45s;
}
.brand-banner__signature{
  clip-path:inset(0 100% 0 0);
  transition:clip-path .7s ease 1.5s;
}
.brand-banner__building{
  opacity:0; transform:scale(.94);
  transition:opacity .6s ease 1.75s, transform .6s cubic-bezier(.16,1,.3,1) 1.75s;
}
.brand-banner.is-visible .brand-banner__back{ opacity:1; clip-path:circle(75% at 50% 50%); }
.brand-banner.is-visible .brand-banner__thirty{ opacity:1; transform:translateX(0); }
.brand-banner.is-visible .brand-banner__years{ opacity:1; transform:translateX(0); }
.brand-banner.is-visible .brand-banner__avatar{ clip-path:inset(0 0 0 0); }
.brand-banner.is-visible .brand-banner__signature{ clip-path:inset(0 0 0 0); }
.brand-banner.is-visible .brand-banner__building{ opacity:1; transform:scale(1); }

/* Ongoing scroll parallax — separate from, and lighter than, the one-time
   assembly above. That sequence is a genuine first-impression moment and
   only ever plays once; replaying the full multi-second sweep-and-wipe
   choreography every time someone scrolls back past this section (which
   happens constantly during ordinary reading/re-checking) would go from
   delightful to irritating fast. This is the considered middle ground
   instead: once the one-time reveal has finished (script.js waits out
   its duration before this starts), each layer very subtly drifts and
   fades along the SAME direction it originally swept in from — THIRTY
   toward the left, YEARS toward the right, the avatar downward, the back
   glow inward — as the section scrolls away, and reverses smoothly as it
   scrolls back into view. --scroll-progress is a single float from 0
   (banner not visible) to 1 (banner centred in viewport), updated by a
   throttled scroll listener; every layer below just reads it, so the
   whole effect is one continuous, cheap style recalculation per frame
   rather than several independent listeners. Magnitudes here (≤28px
   drift, opacity floor no lower than 0.35) are deliberately small — big
   enough to read as "responding to scroll", nowhere near the entrance
   sequence's own travel distance, so the two are clearly different
   registers of motion, not a rerun of the same effect at low intensity. */
.brand-banner{ --scroll-progress:1; }
.brand-banner.is-settled .brand-banner__back{
  opacity:calc(.5 + .5 * var(--scroll-progress));
  transform:scale(calc(1.015 - .015 * var(--scroll-progress)));
}
.brand-banner.is-settled .brand-banner__thirty{
  opacity:calc(.35 + .65 * var(--scroll-progress));
  transform:translateX(calc((1 - var(--scroll-progress)) * -24px));
}
.brand-banner.is-settled .brand-banner__years{
  opacity:calc(.35 + .65 * var(--scroll-progress));
  transform:translateX(calc((1 - var(--scroll-progress)) * 24px));
}
.brand-banner.is-settled .brand-banner__avatar{
  opacity:calc(.4 + .6 * var(--scroll-progress));
  transform:translateY(calc((1 - var(--scroll-progress)) * 18px));
}
.brand-banner.is-settled .brand-banner__signature,
.brand-banner.is-settled .brand-banner__building{
  opacity:calc(.4 + .6 * var(--scroll-progress));
}
.brand-banner__back, .brand-banner__thirty, .brand-banner__years,
.brand-banner__avatar, .brand-banner__signature, .brand-banner__building{
  /* Smooths the per-frame scroll updates into a gentle follow rather
     than a stepped/jittery one — short enough to still feel responsive
     to the scroll itself, not laggy behind it. */
  transition:opacity .15s linear, transform .15s linear;
}

@media (prefers-reduced-motion: reduce){
  /* Every layer just sits in its finished position with no transition —
     .is-visible still gets added (so the banner isn't stuck mid-reveal
     if JS checks for it elsewhere), it just has nothing left to animate.
     .is-settled's parallax never gets added at all for these visitors —
     see script.js — so there's no separate override needed here for it. */
  .brand-banner__back, .brand-banner__thirty, .brand-banner__years,
  .brand-banner__avatar, .brand-banner__signature, .brand-banner__building{
    transition:none !important;
    opacity:1 !important; transform:none !important; clip-path:none !important;
  }
}

@media (max-width:760px){
  /* Mobile: the whole stage bleeds past the page's usual margins, but
     two specific layers — THIRTY and YEARS — need their outermost
     letters (the T, the S) to land exactly on the same x-position the
     rest of the page's body text sits at, so the words read as flush
     with everything else despite the stage itself extending past those
     margins.
     .container's padding is a fixed 32px at every breakpoint (no
     separate mobile value exists), so: the stage is scaled so THIRTY's
     left edge to YEARS' right edge — 24.6171% to 73.7799% of the
     stage's own width, the same two numbers the layers above are
     positioned with — exactly equals the viewport's actual content
     width (100vw − 2×32px), then shifted left by however far the
     24.6171% point sits in from the stage's own left edge, landing it
     precisely on the content area's left edge and the 73.7799% point
     precisely on its right edge. Full derivation of these constants is
     unchanged from the previous single-image version of this banner.
     .brand-banner (outer) stays a normal-flow, non-bled element — its
     explicit height below reserves the correct vertical space in the
     page even though its width is the page's normal width, not the
     stage's bled width. .brand-banner__stage is what actually bleeds:
     giving IT (not the outer wrapper) the oversized width and
     position:absolute is what keeps that width from ever being able to
     force the page itself wider — this is the exact category of bug
     the marquee-track fix addressed earlier, avoided here by
     construction. overflow on the outer wrapper stays hidden regardless
     of breakpoint; it's harmless on desktop (stage matches it exactly)
     and on mobile it does nothing to the stage itself (which has
     already escaped via position:absolute) but still safely contains
     anything that isn't supposed to bleed. That containment only
     applies while the wrapper's own overflow is hidden, though — and it
     needs to switch to visible here specifically, or it would clip the
     stage's bleed right back off at the wrapper's own narrow (unbled)
     edge, defeating the entire point of this block. Still safe: the
     stage itself is what's genuinely clipped at the true page edge, by
     the site-wide overflow-x:hidden on html/body (see the base rules),
     not by this wrapper. */
  .brand-banner{
    height:calc(80.3202vw - 51.4049px);
    padding-top:0; /* cancels the desktop height:0+padding-top technique — this explicit height replaces it here */
    overflow:visible;
  }
  .brand-banner__stage{
    position:absolute; top:0;
    width:calc(203.4061vw - 130.1799px);
    left:calc(64.0466px - 50.0728vw);
    /* Same explicit-height approach as the wrapper above, not
       aspect-ratio — this is precisely the stage's own height at its
       own (bled) width: the formula was derived from the same
       6987:2759 ratio the wrapper's height uses, just applied to the
       stage's wider calc()'d width, so the two stay in sync without
       either one depending on aspect-ratio resolving correctly. */
    height:calc(80.3202vw - 51.4049px);
  }
}


/* ---------- AI Ops section ---------- */
.aiops{ background:var(--bg-alt); border-top:1px solid var(--border); border-bottom:1px solid var(--border); }
.aiops__intro{ display:grid; grid-template-columns:0.42fr 0.58fr; gap:16px; align-items:start; margin-bottom:48px; padding:36px; background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); }
@media(max-width:860px){ .aiops__intro{ grid-template-columns:1fr; gap:24px; } }
.aiops__intro-support{ padding-top:4px; }
.aiops__intro-support p{ color:var(--text-dim); font-size:14.5px; max-width:52ch; text-wrap:pretty; }
.aiops__intro-support p + p{ margin-top:16px; }
@media(min-width:861px){ .aiops__intro-support{ border-left:1px solid var(--border); padding-left:32px; } }
.sr-only{ position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }

/* Kinetic "Human:" tag — static label, one word from the cycle showing at a
   time. Sits where the old "Video coming soon" tag was, above the aiops
   intro headline. Words are stacked absolutely inside a fixed-width wrapper
   so the cycle doesn't shove the label sideways as word length changes. */
.kinetic-tag{ display:flex; align-items:baseline; gap:8px; margin-bottom:12px; font-size:12.5px; letter-spacing:0.14em; text-transform:uppercase; font-weight:700; }
.kinetic-tag__label{ color:var(--accent); }
.kinetic-tag__word-wrap{ position:relative; display:inline-block; min-width:9ch; height:1em; color:var(--text-dim); }
.kinetic-tag__word{
  position:absolute; left:0; top:0; white-space:nowrap;
  opacity:0; transform:translateY(6px);
  animation:kineticWord 8s ease-in-out infinite;
}
.kinetic-tag__word:nth-child(1){ animation-delay:0s; }
.kinetic-tag__word:nth-child(2){ animation-delay:-6s; }
.kinetic-tag__word:nth-child(3){ animation-delay:-4s; }
.kinetic-tag__word:nth-child(4){ animation-delay:-2s; }
@keyframes kineticWord{
  0%   { opacity:0; transform:translateY(6px); }
  6%   { opacity:1; transform:translateY(0); }
  20%  { opacity:1; transform:translateY(0); }
  25%  { opacity:0; transform:translateY(-6px); }
  100% { opacity:0; transform:translateY(-6px); }
}

.aiops__intro-lead h3{ font-size:clamp(19px,2.4vw,24px); margin-bottom:12px; line-height:1.3; text-wrap:balance; }
.aiops__intro-lead p{ color:var(--text-dim); font-size:14.5px; text-wrap:pretty; }
.aiops__intro-media{ max-width:340px; margin:0 auto; text-align:center; }
.aiops__intro-video{ position:relative; aspect-ratio:1/1; border-radius:50%; overflow:hidden; background:transparent; }
.aiops__intro-video img{ width:100%; height:100%; object-fit:cover; display:block; }
.aiops__intro-badge{
  display:inline-flex; align-items:center; gap:6px; margin-top:14px; font-size:11.5px; font-weight:700; letter-spacing:0.06em;
  text-transform:uppercase; color:#fff; background:rgba(10,11,15,0.6); backdrop-filter:blur(6px);
  border:1px solid rgba(255,255,255,0.3); padding:6px 12px; border-radius:100px; white-space:nowrap;
}
.aiops__intro-play{
  position:absolute; top:68%; left:50%; transform:translate(-50%,-50%) scale(1); z-index:2;
  width:48px; height:48px; border-radius:50%; background:rgba(10,11,15,0.55); backdrop-filter:blur(6px);
  border:1px solid rgba(255,255,255,0.35); color:#fff; cursor:pointer; padding:0;
  display:flex; align-items:center; justify-content:center; transition:transform .2s ease, background .2s ease, border-color .2s ease;
}
.aiops__intro-play svg{ width:19px; height:19px; display:block; }
.aiops__intro-video:hover .aiops__intro-play{ background:var(--accent); border-color:var(--accent); }
.aiops__intro-play.is-playing{ transform:translate(-50%,-50%) scale(0.92); }
.aiops__grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:1px; background:var(--border); border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; margin-bottom:56px; }
@media(max-width:860px){ .aiops__grid{ grid-template-columns:repeat(2,1fr);} }
@media(max-width:560px){ .aiops__grid{ grid-template-columns:1fr;} }
.aiops__card{ background:var(--bg); padding:28px 26px; }
.aiops__card .role{ font-size:12px; letter-spacing:0.1em; text-transform:uppercase; color:var(--accent-2); font-weight:700; margin-bottom:10px; }
.aiops__card h4{ font-size:18px; margin-bottom:10px; }
.aiops__card p{ font-size:14px; color:var(--text-dim); }
.aiops__quote{
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:40px;
  font-size:clamp(18px,2.4vw,24px); line-height:1.5; color:var(--text); font-weight:500;
}
.aiops__quote span{ color:var(--text-faint); font-size:13px; display:block; margin-top:20px; font-weight:600; }
.stack-row{ display:flex; flex-wrap:wrap; gap:10px; margin-top:16px; }
.stack-row span{ font-size:13px; padding:8px 14px; background:var(--surface); border:1px solid var(--border); border-radius:8px; color:var(--text-dim); }

/* ---------- Selected production stack ----------
   Four open editorial rows replace both the old chip list and flip cards.
   The marks drift independently, so the field feels alive without becoming
   a second ticker or hiding information behind interaction. */
.tool-system{ border-top:1px solid var(--border); }
.tool-row{
  display:grid; grid-template-columns:minmax(230px,.72fr) minmax(0,1.28fr); gap:44px; align-items:center;
  min-height:168px; padding:28px 0; border-bottom:1px solid var(--border);
}
.tool-row__intro{ display:grid; grid-template-columns:34px 1fr; gap:16px; align-items:start; }
.tool-row__num{ padding-top:4px; color:var(--accent); font-size:11px; font-weight:800; letter-spacing:.14em; }
.tool-row__intro h4{ margin-bottom:7px; font-size:18px; }
.tool-row__intro p{ max-width:30ch; color:var(--text-dim); font-size:13.5px; line-height:1.5; }
.tool-row__marks{
  position:relative; isolation:isolate; display:flex; flex-wrap:wrap; justify-content:flex-start;
  align-items:center; gap:14px 22px; min-height:108px; padding:16px 20px; overflow:hidden;
}
.tool-row__marks .tool-mark{ flex:0 0 68px; }
.tool-row__marks::before{
  content:''; position:absolute; z-index:-1; inset:8px 0;
  background:radial-gradient(ellipse at center,rgba(255,255,255,.045),transparent 68%);
  border-top:1px solid rgba(255,255,255,.035); border-bottom:1px solid rgba(255,255,255,.035);
}
.tool-mark{
  --tool-shift:7px; display:flex; min-width:0; flex-direction:column; align-items:center; justify-content:center;
  gap:8px; color:var(--text-faint); text-align:center; animation:toolFloat 7.4s ease-in-out infinite;
}
.tool-mark:nth-child(2n){ --tool-shift:-6px; animation-delay:-1.8s; animation-duration:8.6s; }
.tool-mark:nth-child(3n){ --tool-shift:9px; animation-delay:-4.1s; animation-duration:9.8s; }
.tool-mark:nth-child(5n){ --tool-shift:-8px; animation-delay:-6.3s; animation-duration:10.6s; }
.tool-row:nth-child(even) .tool-mark{ animation-direction:reverse; }
.tool-mark img{
  width:44px; height:38px; object-fit:contain; opacity:.76;
  filter:grayscale(1) brightness(0) invert(1); transition:opacity .22s ease, transform .22s ease;
}
.tool-mark span{ max-width:100%; font-size:10.5px; line-height:1.2; letter-spacing:.025em; white-space:normal; }
.tool-mark--words{ min-height:54px; justify-content:center; }
/* Metricool's real mark is a wide wordmark, not a square icon like the
   rest of this row — override the shared 44x38 icon box so it reads
   instead of shrinking to an illegible sliver. */
.tool-mark--wordmark img{ width:auto; max-width:84px; height:16px; object-fit:contain; }
.tool-mark--words::before{ content:'+'; color:var(--accent-2); font-size:18px; line-height:1; opacity:.72; }
@media(hover:hover) and (pointer:fine){
  .tool-mark:hover img{ opacity:1; transform:scale(1.08); }
  .tool-mark:hover span{ color:var(--text-dim); }
}
@keyframes toolFloat{
  0%,100%{ transform:translate3d(0,calc(var(--tool-shift) * -.45),0); }
  50%{ transform:translate3d(0,var(--tool-shift),0); }
}
.tool-system__note{
  display:flex; align-items:center; gap:10px; padding-top:20px; color:var(--text-faint);
  font-size:12.5px; letter-spacing:.02em;
}
.tool-system__note span{ color:var(--accent-2); font-size:17px; }
@media(max-width:860px){
  .tool-row{ grid-template-columns:1fr; gap:18px; padding:30px 0; }
  .tool-row__intro p{ max-width:48ch; }
  .tool-row__marks{ justify-content:center; padding-inline:8px; }
}
@media(max-width:560px){
  /* Every tool-row currently holds exactly 6 marks. flex-wrap sizes items
     off available width, which at common phone widths (~390-430px) wraps
     5 across + a single orphaned 6th item on its own line. A fixed
     3-column grid guarantees two even rows of three instead, regardless
     of exact viewport width. */
  .tool-row__marks{
    display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); justify-items:center;
    gap:20px 8px; min-height:0; padding-inline:4px;
  }
  .tool-row__marks .tool-mark{ flex-basis:auto; width:100%; max-width:64px; }
  .tool-mark img{ width:38px; height:34px; }
}

/* ---------- Approach ---------- */
.approach__grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:32px; }
@media(max-width:860px){ .approach__grid{ grid-template-columns:1fr; } }
.approach__item .n{ font-size:13px; color:var(--accent); font-weight:800; margin-bottom:14px; }
.approach__item h3{ font-size:20px; margin-bottom:12px; }
.approach__item p{ font-size:15px; color:var(--text-dim); }

/* ---------- Global delivery route ---------- */
.global{ border-top:1px solid var(--border); border-bottom:1px solid var(--border); background:var(--bg-alt); }
.route{ position:relative; display:flex; justify-content:space-between; gap:28px; flex-wrap:wrap; padding-top:8px; }
.route::before{
  content:''; position:absolute; top:6px; left:0; right:0; height:1px;
  background:linear-gradient(90deg, var(--border) 0%, var(--border) 100%); z-index:0;
}
.route__node{ position:relative; z-index:1; display:flex; flex-direction:column; align-items:flex-start; gap:8px; flex:1 1 140px; min-width:140px; }
.route__dot{
  width:13px; height:13px; border-radius:50%; background:var(--bg-alt); border:2px solid var(--accent-2);
  animation:pulseDot 2.8s ease-out infinite;
}
.route__node--home .route__dot, .route__node--more .route__dot{ border-color:var(--accent); animation-name:pulseDotAccent; }
.route__node:nth-child(2) .route__dot{ animation-delay:.3s; }
.route__node:nth-child(3) .route__dot{ animation-delay:.6s; }
.route__node:nth-child(4) .route__dot{ animation-delay:.9s; }
.route__node:nth-child(5) .route__dot{ animation-delay:1.2s; }
.route__node:nth-child(6) .route__dot{ animation-delay:1.5s; }
.route__city{ font-size:14px; font-weight:700; color:var(--text); }
.route__note{ font-size:12.5px; color:var(--text-faint); }
@keyframes pulseDot{
  0%{ box-shadow:0 0 0 0 rgba(73,224,184,0.45); }
  70%{ box-shadow:0 0 0 10px rgba(73,224,184,0); }
  100%{ box-shadow:0 0 0 0 rgba(73,224,184,0); }
}
@keyframes pulseDotAccent{
  0%{ box-shadow:0 0 0 0 rgba(255,90,60,0.45); }
  70%{ box-shadow:0 0 0 10px rgba(255,90,60,0); }
  100%{ box-shadow:0 0 0 0 rgba(255,90,60,0); }
}
@media(max-width:760px){
  .route{ flex-direction:column; gap:22px; }
  .route::before{ top:0; bottom:0; left:6px; right:auto; width:1px; height:auto; background:var(--border); }
  .route__node{ flex-direction:row; align-items:center; padding-left:26px; min-width:0; }
  .route__node .route__dot{ position:absolute; left:0; }
  .route__node > span:not(.route__dot){ margin-left:0; }
  .route__city{ margin-right:8px; }
}

/* ---------- Testimonials ---------- */
.testi{ background:var(--bg-alt); border-top:1px solid var(--border); border-bottom:1px solid var(--border); }
.testi__grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:1px; background:var(--border); border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; }
@media(max-width:900px){ .testi__grid{ grid-template-columns:repeat(2,1fr);} }
@media(max-width:600px){ .testi__grid{ grid-template-columns:1fr;} }
.testi__card{ background:var(--bg); padding:30px; display:flex; flex-direction:column; gap:18px; }
.testi__card p{ font-size:14.5px; color:var(--text-dim); flex:1; }
.testi__card .who{ font-size:13px; font-weight:700; color:var(--text); }
.testi__card .role{ font-size:12px; color:var(--text-faint); }
.testi__person{ display:flex; align-items:center; gap:10px; }
.testi__avatar{ width:30px; height:30px; border-radius:50%; object-fit:cover; flex-shrink:0; border:1px solid var(--border); background:#fff; }
.testi__prompt{ display:none; order:99; min-height:100%; padding:30px; border:0; background:var(--bg); color:var(--text); text-align:left; cursor:pointer; }
.testi__prompt-count{ display:block; margin-bottom:auto; color:var(--accent-2); font-size:clamp(42px,6vw,68px); font-weight:800; line-height:1; letter-spacing:-.05em; opacity:.75; }
.testi__prompt strong{ display:block; margin:28px 0 8px; font-size:18px; }
.testi__prompt-action{ color:var(--text-dim); font-size:13px; }
.testi__prompt:hover .testi__prompt-action{ color:var(--accent-2); }
.testi__prompt:focus-visible{ position:relative; z-index:1; outline:2px solid var(--accent-2); outline-offset:-4px; }
@media(min-width:601px) and (max-width:900px){
  .testi__prompt{ display:flex; flex-direction:column; }
  .testi__more-toggle{ display:none !important; }
}

/* ---------- About ---------- */
.about__grid{ display:grid; grid-template-columns:0.85fr 1.15fr; gap:64px; align-items:start; }
@media(max-width:900px){ .about__grid{ grid-template-columns:1fr; } }
.about__mark{
  aspect-ratio:1; border-radius:var(--radius); background:linear-gradient(155deg, var(--navy), #0f1526);
  border:1px solid var(--border); display:flex; align-items:center; justify-content:center; position:relative; overflow:hidden;
}
.about__mark::after{ content:'TH'; font-size:120px; font-weight:800; color:rgba(255,255,255,0.06); letter-spacing:-0.05em; }
.about__mark.reel-facade::after{ content:none; }
.about p{ color:var(--text-dim); font-size:16.5px; margin-bottom:18px; }
.about p:last-child{ margin-bottom:0; }
.about strong{ color:var(--text); }
.about__skills{ margin-top:28px; display:flex; flex-wrap:wrap; gap:8px; }
.about__skills span{ font-size:12.5px; padding:6px 12px; border:1px solid var(--border); border-radius:100px; color:var(--text-dim); }

/* ---------- Aside / personal (NSX) ---------- */
/* Full-width text on top at a comfortable editorial measure (not
   stretched across the whole container), then one two-column media row
   below — carousel and video share the same 16:9 aspect ratio (see the
   .carousel--wide class added to the carousel in the markup) so their
   top and bottom edges align exactly, replacing the old 3-item grid
   that stranded the video under column 1 with dead space beside it. */
.aside{ display:flex; flex-direction:column; gap:40px; }
.aside__text{ max-width:62ch; }
.aside h2{ font-size:clamp(25px,3vw,34px); line-height:1.14; margin-bottom:18px; text-wrap:balance; }
.aside p{ color:var(--text-dim); font-size:16px; margin-bottom:14px; text-wrap:pretty; }
.aside__media{ display:grid; grid-template-columns:1fr 1fr; gap:24px; align-items:start; }
@media(max-width:860px){ .aside__media{ grid-template-columns:1fr; } }
.aside__media .video-row{ padding:0; display:block; }
/* display:block on the button removes the inline-block descender gap
   that was leaving the video ~7px taller than the carousel despite
   matching aspect ratios and widths. */
.aside__media .video-row .reel-facade{ display:block; border-radius:10px; height:100%; }

/* ---------- Contact ---------- */
.contact{ text-align:center; }
.contact h2{ font-size:clamp(30px,5vw,54px); line-height:1.12; margin-bottom:24px; }
.contact p{ color:var(--text-dim); font-size:17px; max-width:520px; margin:0 auto 40px; }
.contact__actions{ display:flex; gap:16px; justify-content:center; flex-wrap:wrap; margin-bottom:56px; }
.contact__details{ display:flex; gap:36px; justify-content:center; flex-wrap:wrap; font-size:14px; color:var(--text-dim); }
.contact__details a:hover{ color:var(--text); }

/* ---------- Showreel modal ---------- */
/* flex-direction:column at every breakpoint now (used to be mobile-only)
   — #reelCaptionDisplay sits below .reel-modal__inner everywhere, not
   just under 640px, now that it's carrying live captions rather than
   being a mobile-only tagline echo. gap kept modest; desktop's version
   of this block is centred/width-capped separately below rather than
   going edge-to-edge like the mobile one. */
.reel-modal{ position:fixed; inset:0; z-index:1000; display:none; flex-direction:column; align-items:center; justify-content:center; gap:18px; padding:40px; }
.reel-modal.open{ display:flex; }
.reel-modal__backdrop{ position:absolute; inset:0; background:rgba(6,7,10,0.9); backdrop-filter:blur(6px); }
/* Same gold-frame component as the hero avatar (.media-stage__aperture /
   __frame-img, defined above) — the frame wraps whatever pops up here,
   currently the Travis & Rhu reel. Shadow lives on .media-stage__frame-img
   itself (drop-shadow, follows the ornate silhouette) rather than as a
   box-shadow here, which would cast a hard rectangular halo outside the
   carved edge. */
.reel-modal__inner{
  position:relative; width:100%; max-width:960px; z-index:1; aspect-ratio:1536/1024;
}
.reel-modal__inner video{ background:#000; }
/* ::cue / ::cue(.brand-em) rules that used to live here are gone —
   captions moved off the video canvas entirely and onto
   #reelCaptionDisplay below the frame (2026-08-21), so the browser's
   native cue renderer is never shown (the <track>'s mode stays 'hidden'
   permanently in script.js). See .reel-modal__title for the equivalent
   styling now, and .reel-modal__title .brand-em for the green emphasis. */
/* Brand watermark on the video itself, top-left, low-opacity — see the
   HTML comment for why this is scoped here rather than on the shared
   .media-stage__aperture rule. Sized as a % of the aperture (not a fixed
   px) so it scales with the player at every breakpoint instead of
   looking oversized on a small phone or lost on a large desktop window.
   pointer-events:none so it never intercepts a tap/click meant for the
   video underneath (play/pause, scrub). Placed after the <video> in the
   DOM so it paints on top without needing an explicit z-index war. */
.reel-modal__watermark{
  position:absolute; top:5%; left:4%; width:9%; height:auto; color:#fff;
  opacity:0.28; pointer-events:none;
}
.reel-modal__close{
  position:absolute; top:-46px; right:0; width:36px; height:36px; border-radius:50%;
  background:var(--surface); border:1px solid var(--border); color:var(--text); font-size:16px;
}
.reel-modal__close:hover{ background:var(--surface-2); }
/* .reel-modal__ctrl base + CC typography — unconditional (not scoped to
   the mobile breakpoint) because the desktop CC button below now needs
   them too. Originally lived inside the max-width:640px block alongside
   the mobile toolbar; moved out when CC stopped being mobile-exclusive.
   Safe to do: the other three mobile controls (#reelPlayPause,
   #reelExpand, #reelCloseMobile) still only ever become visible under
   640px, because their shared parent .reel-modal__mobile-toolbar stays
   display:none until that breakpoint — these per-button rules being
   globally available doesn't make them appear on desktop, the container
   they live in still gates that. */
.reel-modal__ctrl{
  display:inline-flex; align-items:center; justify-content:center;
  padding:8px; background:none; border:none; color:var(--text-dim);
  transition:color 160ms ease, transform 160ms cubic-bezier(0.23,1,0.32,1);
}
/* :hover wrapped in (hover:hover) — the mobile toolbar row is touch-only
   in practice, and plain :hover goes "sticky" on tap there (applied on
   touch, not cleared until something else is tapped) — CC was reading as
   permanently green after one touch instead of its real on/off state.
   (hover:hover) only matches input that can genuinely hover, so touch
   skips this and falls back to :active/:focus-visible instead. Kept
   unconditional now rather than duplicated per breakpoint, since the
   desktop CC button wants the exact same behaviour. */
@media (hover:hover){
  .reel-modal__ctrl:hover{ color:var(--accent-2); transform:translateY(-1px); }
}
.reel-modal__ctrl:focus-visible{ color:var(--accent-2); outline:2px solid var(--accent-2); outline-offset:2px; border-radius:4px; }
.reel-modal__ctrl:active{ transform:translateY(0) scale(0.94); }
.reel-modal__ctrl svg{ width:20px; height:20px; }
/* CC is typographic, not an icon — set in the display font like the H1
   rather than the UI body font, per Travis's steer. aria-pressed drives
   the on/off colour once a caption track exists to actually toggle:
   off/rest stays the same dim monotone as the other controls; on uses
   the acid green as emphasis, the same "this is active" signal the rest
   of the site already uses. disabled (track failed to load) dims it
   further and kills the hover colour-shift so it doesn't look clickable
   when it isn't. */
.reel-modal__ctrl--cc{
  font-family:var(--font-display); font-weight:800; font-size:15px; letter-spacing:0.02em;
}
.reel-modal__ctrl--cc[aria-pressed="true"]{ color:var(--accent-2); }
.reel-modal__ctrl--cc:disabled{ opacity:0.4; }
.reel-modal__ctrl--cc:disabled:hover, .reel-modal__ctrl--cc:disabled:focus-visible{ color:var(--text-dim); transform:none; }
/* Desktop/tablet CC — matches #reelClose's chip treatment (same size,
   same circular surface/border) since it's sitting right next to it in
   that same above-the-frame row, rather than the plain-glyph look used
   in the mobile toolbar below. H1 typeface still carries through per the
   brand steer — this is styling on top of the shared .reel-modal__ctrl
   base (colour transitions, focus ring), not a full reset of it. Hidden
   under 640px, where .reel-modal__mobile-toolbar's own #reelCaptions
   already covers this — see script.js's setupReelCaptionsToggle(), which
   wires both buttons to the same underlying text track and keeps them
   in sync rather than treating them as independent state. */
.reel-modal__ctrl--cc-desktop{
  position:absolute; top:-46px; right:46px; width:36px; height:36px; border-radius:50%;
  background:var(--surface); border:1px solid var(--border); font-size:14px;
  transform:none;
}
@media(hover:hover){
  .reel-modal__ctrl--cc-desktop:hover{ background:var(--surface-2); }
}
@media(max-width:640px){
  .reel-modal__ctrl--cc-desktop{ display:none; }
}
/* Mobile-only close/play-pause/expand row — see the max-width:640px block
   below for why it exists. display:none here is the desktop default:
   the frame-corner #reelClose above and native <video controls> handle
   desktop instead, and this never renders there. */
.reel-modal__mobile-toolbar{ display:none; }
/* Live at every breakpoint now (2026-08-21), not mobile-only — this is
   #reelCaptionDisplay, doubling as the tagline echo AND the caption
   display; see the HTML comment on it and setupReelCaptionsToggle() in
   script.js. Left-aligned and sized off the same clamp() as .hero h1
   itself (not an invented smaller scale) at every breakpoint, per
   Travis's steer that this should read as a genuine headline, not a
   caption-sized afterthought — width-capped to .reel-modal__inner's own
   960px on desktop/tablet so it still visually belongs to the frame
   above it. Same two-tone treatment as the hero H1 (.display-lead /
   .display-completion, colours defined once globally) for the tagline's
   default state, plus .brand-em for the caption's own selective green
   emphasis (moved here from the old ::cue(.brand-em) rule — same visual
   intent, now real DOM/CSS instead of a WebVTT pseudo-element, since
   captions render as plain HTML now).
   min-height + overflow-y:auto: this is the fix for the frame/controls
   visibly jumping position between cues. .reel-modal is a centred flex
   column (frame, then this, then the mobile toolbar) — when this
   element's own height changed with every cue's line count, the whole
   column's total height changed with it, and centring shifted the frame
   along with it. Reserving a fixed height at all times removes that:
   the frame stops moving because the box around the text never resizes,
   regardless of whether 1 line or 4 are showing. em-based, not px, so
   the reserve scales automatically with the clamp() above at every
   viewport width rather than needing separate guesses per breakpoint.
   4 lines was sized against the two longest real captions ("Maximum
   impact, minimum spend…" / "There's never been a better time…", ~13
   words each) at this font size — flag it if it still clips or looks
   oversized empty space under short lines on a real device: the
   licensed webfont's exact character metrics weren't measurable in this
   sandbox, so this is a reasoned estimate, not a pixel-measured one like
   the aperture/tab-position work elsewhere in this file. overflow-y:auto
   is the safety net if that estimate is ever wrong — a caption scrolls
   internally rather than the frame moving, which is the one outcome
   that must never happen again. */
.reel-modal__title{
  position:relative; z-index:1; margin:0; width:100%; max-width:960px; text-align:left;
  font-family:var(--font-display); text-transform:uppercase; font-weight:900;
  font-size:clamp(31px,3.8vw,54px); line-height:1.15; color:var(--text);
  min-height:calc(1.15em * 4); overflow-y:auto;
  /* Desktop/tablet only — nudges the text in from the box's left edge so
     it lines up with the gold frame's own visible left edge above it,
     not the wider invisible box the frame graphic sits in. Measured off
     gold-frame.webp's actual alpha bounds earlier this session (the
     carved wood starts ~1.43% in from the canvas's left edge, not at
     0%) — 1.43% of this box's own width, so it stays aligned even on a
     narrower tablet where .reel-modal__inner is less than the full
     960px cap. Mobile doesn't get this: the frame there is edge-to-edge
     with no equivalent "box wider than the visible frame" gap to close. */
  padding-left:1.43%;
}
.reel-modal__title .display-lead,
.reel-modal__title .display-completion{ display:inline; }
.reel-modal__title .brand-em{ color:var(--accent-2); }
@media(max-width:640px){
  /* Frame goes edge-to-edge for the biggest possible playback size on a
     small screen: .reel-modal's own padding is what was capping the
     width before, so it's removed here rather than overridden on
     .reel-modal__inner, which stays width:100% of whatever it's given. */
  .reel-modal{ padding:0; }
  .reel-modal__title{ max-width:none; padding:0 24px; }
  /* The frame-corner close button (desktop) has nowhere legible to sit on
     mobile now that the frame goes edge-to-edge — it used to be relocated
     onto the frame's own top-right corner with a glass backdrop, but that
     still meant an overlay sitting on top of the video. Hidden entirely
     here in favour of #reelCloseMobile in .reel-modal__mobile-toolbar
     below, which sits in-view under the frame+title instead. */
  .reel-modal__close{ display:none; }
  /* Native <video controls> chrome is switched off in JS on this breakpoint
     (script.js sets reelVideo.controls = false on open) — this is a
     deliberate replacement for the native scrub/play bar, not just a
     visual preference, so belt-and-braces here for any browser that still
     paints it despite the attribute being off. */
  #reelVideo::-webkit-media-controls,
  #reelVideo::-webkit-media-controls-enclosure{ display:none !important; opacity:0 !important; }
  /* CC / play-pause / expand / close, right-justified under the title,
     same horizontal padding (24px) so its right edge lines up with the
     title's text block above it rather than the frame's wider
     edge-to-edge width. Same stacking-context bug as .reel-modal__title
     above and same fix: without position:relative + z-index:1, this is a
     non-positioned in-flow element sitting next to .reel-modal__backdrop
     (position:absolute, z-index:auto) — positioned elements paint after
     non-positioned in-flow content regardless of DOM order, so the
     blurred backdrop was painting over the buttons and they were
     invisible even though the layout/style was otherwise correct. */
  .reel-modal__mobile-toolbar{
    display:flex; position:relative; z-index:1; justify-content:flex-end; align-items:center; gap:18px; padding:0 24px;
  }
  /* Play/pause visibility, take three. Round one used the `hidden`
     attribute and a display:block rule that out-specificity'd the
     browser's own `[hidden]{ display:none }` default, cancelling it —
     fixed with a `[hidden]` override. Round two was still stuck on one
     icon regardless of state, which points at `.hidden` as a *property*
     (element.hidden = true/false, what script.js actually sets) not
     reliably reflecting to the attribute on an <svg> in the first place —
     that IDL property only moved onto SVGElement's interface relatively
     recently, so depending on it is fragile. Replaced entirely: JS now
     toggles a plain .is-playing class on #reelPlayPause itself, and
     visibility is two unconditional, unambiguous rules below — no
     attribute reflection, no ::after specificity fight, nothing that
     depends on a particular element interface supporting a particular
     property. */
  #reelPlayPause .icon-pause{ display:none; }
  #reelPlayPause.is-playing .icon-play{ display:none; }
  #reelPlayPause.is-playing .icon-pause{ display:block; }
  /* Optical, not geometric: .reel-modal__mobile-toolbar centres every
     child on its flex box, and CC's box IS centred correctly — but
     Dharma Gothic C's own internal baseline sits low in its em-box
     compared to the SVG icons either side of it, so CC reads as sitting
     noticeably lower than its siblings and closer to the frame above.
     Same family of fix as the "Play now" label nudge — a plain transform,
     not touching the box model any of the flex/alignment math depends on.
     Mobile-only: the desktop CC button sits beside a circular chip, not
     SVG glyphs, so it doesn't inherit this — see .reel-modal__ctrl--cc
     (base) and .reel-modal__ctrl--cc-desktop above for that version. */
  .reel-modal__ctrl--cc{ transform:translateY(-3px); }
}

/* ---------- CV request modal ---------- */
.cv-request-trigger{ font:inherit; cursor:pointer; }
.cv-modal{ position:fixed; inset:0; z-index:1000; display:none; align-items:center; justify-content:center; padding:40px; }
.cv-modal.open{ display:flex; }
.cv-modal__backdrop{ position:absolute; inset:0; background:rgba(6,7,10,0.9); backdrop-filter:blur(6px); }
.cv-modal__inner{
  position:relative; width:100%; max-width:420px; z-index:1; background:var(--surface); border:1px solid var(--border);
  border-radius:16px; padding:40px; text-align:center; box-shadow:0 30px 80px rgba(0,0,0,0.6);
}
.cv-modal__inner h3{ font-size:22px; margin-bottom:12px; }
.cv-modal__inner p{ color:var(--text-dim); font-size:15px; margin-bottom:24px; }
.cv-modal__inner p a{ color:var(--text); }
.cv-modal__close{
  position:absolute; top:-46px; right:0; width:36px; height:36px; border-radius:50%;
  background:var(--surface); border:1px solid var(--border); color:var(--text); font-size:16px;
}
.cv-modal__close:hover{ background:var(--surface-2); }

/* ---------- Design enquiry modal ---------- */
.enquiry-modal{ position:fixed; inset:0; z-index:1150; display:none; align-items:center; justify-content:center; padding:28px; }
.enquiry-modal.open{ display:flex; }
.enquiry-modal__backdrop{ position:absolute; inset:0; background:rgba(6,7,10,.92); backdrop-filter:blur(8px); }
.enquiry-modal__inner{ position:relative; z-index:1; width:min(640px,100%); max-height:calc(100vh - 56px); overflow:auto; padding:38px; border:1px solid var(--border); border-radius:18px; background:var(--surface); box-shadow:0 30px 90px rgba(0,0,0,.65); }
.enquiry-modal__inner::before{ content:''; position:absolute; left:0; top:28px; bottom:28px; width:2px; background:linear-gradient(180deg,var(--accent-2),rgba(229,255,83,.14)); }
.enquiry-modal__inner h3{ margin:12px 0 10px; font-size:clamp(24px,4vw,34px); line-height:1.15; }
.enquiry-modal__intro{ margin-bottom:24px; color:var(--text-dim); font-size:14px; }
.enquiry-modal__close{ position:absolute; top:16px; right:16px; width:38px; height:38px; border-radius:50%; border:1px solid var(--border); background:var(--surface-2); color:var(--text); }
.enquiry-modal form,.enquiry-modal label{ display:flex; flex-direction:column; gap:8px; }
.enquiry-modal form{ gap:16px; }
.enquiry-form__row{ display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.enquiry-modal label{ color:var(--text-dim); font-size:13px; font-weight:650; }
.enquiry-modal input,.enquiry-modal select,.enquiry-modal textarea{ width:100%; padding:12px 14px; border:1px solid var(--border); border-radius:9px; background:var(--bg); color:var(--text); font:inherit; font-size:15px; }
.enquiry-modal textarea{ resize:vertical; }
.enquiry-modal input:focus-visible,.enquiry-modal select:focus-visible,.enquiry-modal textarea:focus-visible{ outline:2px solid var(--accent-2); outline-offset:1px; }
.enquiry-form__actions{ display:flex; align-items:center; gap:14px; flex-wrap:wrap; margin-top:4px; }
.enquiry-form__actions span{ color:var(--text-faint); font-size:11.5px; }
@media(max-width:560px){ .enquiry-modal{ padding:14px; }.enquiry-modal__inner{ padding:30px 22px; }.enquiry-form__row{ grid-template-columns:1fr; } }

/* ---------- Signup modal (white paper / Studio Notes) ----------
   Same shell language as .enquiry-modal (backdrop/inner/close) but its own
   selectors, not shared rules — this one is multi-step and the other is a
   single screen, and forcing them onto one ruleset got harder to read than
   it saved. Breadcrumb dots are capped at three by design: the point is the
   visitor can see at a glance this is short, before they type anything. */
.signup-modal{ position:fixed; inset:0; z-index:1150; display:none; align-items:center; justify-content:center; padding:28px; }
.signup-modal.open{ display:flex; }
/* .btn's own `display:inline-flex` is author CSS, so it silently beats the
   browser's default `[hidden]{display:none}` UA rule on the Back/Submit
   buttons this modal toggles via the hidden attribute (same trap applies
   to #signupForm/#signupSuccess). Scoped, higher-specificity override
   rather than touching .btn globally. */
.signup-modal [hidden]{ display:none!important; }
.signup-modal__backdrop{ position:absolute; inset:0; background:rgba(6,7,10,.92); backdrop-filter:blur(8px); }
.signup-modal__inner{ position:relative; z-index:1; width:min(560px,100%); max-height:calc(100vh - 56px); overflow:auto; padding:38px; border:1px solid var(--border); border-radius:18px; background:var(--surface); box-shadow:0 30px 90px rgba(0,0,0,.65); }
.signup-modal__inner::before{ content:''; position:absolute; left:0; top:28px; bottom:28px; width:2px; background:linear-gradient(180deg,var(--accent-2),rgba(229,255,83,.14)); }
.signup-modal__inner h3{ margin:12px 0 10px; font-size:clamp(22px,3.6vw,30px); line-height:1.15; }
.signup-modal__intro{ margin-bottom:20px; color:var(--text-dim); font-size:14px; }
.signup-modal__close{ position:absolute; top:16px; right:16px; width:38px; height:38px; border-radius:50%; border:1px solid var(--border); background:var(--surface-2); color:var(--text); }

.signup-modal__steps{ display:flex; align-items:center; gap:10px; margin-bottom:22px; }
.signup-modal__dot{ width:8px; height:8px; border-radius:50%; background:var(--border); transition:background .2s ease, transform .2s ease; }
.signup-modal__dot.is-active{ background:var(--accent-2); transform:scale(1.35); box-shadow:0 0 10px rgba(229,255,83,.5); }
.signup-modal__dot.is-done{ background:var(--accent-2); opacity:.55; }

.signup-modal__step{ display:none; flex-direction:column; gap:16px; border:0; margin:0; padding:0; }
.signup-modal__step.is-active{ display:flex; }
.signup-modal__step label{ display:flex; flex-direction:column; gap:8px; color:var(--text-dim); font-size:13px; font-weight:650; }
.signup-modal__step input{ width:100%; padding:12px 14px; border:1px solid var(--border); border-radius:9px; background:var(--bg); color:var(--text); font:inherit; font-size:15px; }
.signup-modal__step input:focus-visible{ outline:2px solid var(--accent-2); outline-offset:1px; }
.signup-modal__optional-note{ margin:0; font-size:12.5px; color:var(--text-faint); }

.signup-modal__summary{ font-size:13.5px; color:var(--text-dim); line-height:1.6; }
.signup-modal__summary strong{ color:var(--text); }

.signup-modal__consent{ display:flex; align-items:flex-start; gap:10px; font-size:13px; color:var(--text-dim); line-height:1.5; cursor:pointer; }
.signup-modal__consent input[type="checkbox"]{ margin-top:2px; flex-shrink:0; width:16px; height:16px; accent-color:var(--accent-2); }
.signup-modal__privacy{ margin-top:4px; font-size:12.5px; color:var(--text-faint); }
.signup-modal__privacy a{ color:var(--text-faint); text-decoration:underline; }

.signup-modal__nav{ display:flex; justify-content:flex-end; gap:10px; margin-top:26px; }
.signup-modal__nav .btn--ghost{ margin-right:auto; }

.signup-modal__success h3{ margin:12px 0 10px; }
.signup-modal__success p{ color:var(--text-dim); font-size:14.5px; line-height:1.6; }
.signup-modal__success .btn{ margin-top:16px; }

@media(max-width:560px){ .signup-modal{ padding:14px; } .signup-modal__inner{ padding:30px 22px; } }

/* ---------- White paper promo popup ----------
   Same fixed-overlay pattern as .signup-modal just above (own stacking
   context, backdrop + centred card), kept as a separate component rather
   than folded into .signup-modal because the two open independently and
   for different reasons — this one fires itself once, automatically, the
   signup one only ever opens from a deliberate click. z-index sits one
   layer under .signup-modal (1150) since the CTA inside this popup opens
   that modal on top of it (see script.js) — never the reverse — so if the
   fade-out on this one is still finishing when that happens, the signup
   modal is guaranteed to render above it, not behind it. */
.promo-modal{ position:fixed; inset:0; z-index:1140; display:none; align-items:center; justify-content:center; padding:28px; }
.promo-modal.open{ display:flex; }
.promo-modal__backdrop{
  /* Requirement is "at least 70% opacity black" — .92 matches the signup
     modal's own backdrop for one consistent overlay treatment sitewide,
     comfortably clearing that floor. */
  position:absolute; inset:0; background:rgba(6,7,10,.92); backdrop-filter:blur(8px);
}
.promo-modal__inner{
  position:relative; z-index:1; width:min(420px,100%); max-height:calc(100vh - 56px); overflow:auto;
  padding:34px 30px 30px; border:1px solid var(--border); border-radius:18px; background:var(--surface);
  box-shadow:0 30px 90px rgba(0,0,0,.65); text-align:center;
}
.promo-modal__close{
  position:absolute; top:16px; right:16px; z-index:2; width:38px; height:38px; border-radius:50%;
  border:1px solid var(--border); background:var(--surface-2); color:var(--text);
}

/* Entrance flourish — the drama this popup gets instead of reusing the
   hero's aperture-flash sparks (that footage is choreographed for the
   hero's landscape frame; rotated into this 9:16 box its fall direction
   reads sideways, and it fights the deliberately-unpolished tone of the
   slide images themselves). CSS-only: no extra asset weight on a popup
   that already opens unprompted for every visitor, and no orientation
   problem. animation (not transition) so it fires reliably the instant
   display:flex takes effect, same technique as .loader__flash above. */
.promo-modal.open .promo-modal__backdrop{ animation:promoBackdropIn .35s ease-out; }
.promo-modal.open .promo-modal__inner{ animation:promoPopIn .38s cubic-bezier(.16,1,.3,1); }
@keyframes promoBackdropIn{ from{ opacity:0; } to{ opacity:1; } }
@keyframes promoPopIn{
  0%{ opacity:0; transform:scale(.94) translateY(8px); }
  100%{ opacity:1; transform:scale(1) translateY(0); }
}

/* Reuses the case-study .carousel component as-is (see the base .carousel
   rules further up) rather than building a second carousel from scratch —
   same track/slide/dot markup, same JS already wires it up automatically.
   This variant only changes proportions (portrait 9:16, to match the
   source images exactly, not the default 3:2) and moves the dots to sit
   below the frame instead of floating on top of it, per spec ("breadcrumb
   dots beneath them"). overflow:visible on the outer element is what makes
   "beneath" possible — the image crop/corner-rounding moves onto
   .carousel__track instead, so the dots row can sit outside that box
   without being clipped by it. */
.carousel--promo{
  aspect-ratio:9/16; height:min(50vh,480px); width:auto; margin:0 auto 38px;
  border:0; background:none; overflow:visible;
}
.carousel--promo .carousel__track{
  width:100%; height:100%; border-radius:16px; overflow:hidden; cursor:pointer;
  border:1px solid var(--border); background:#000; box-shadow:0 20px 50px rgba(0,0,0,.5);
}
/* Custom prev/next chevrons — Travis's own artwork, not the generic
   circular pill .carousel__arrow uses elsewhere. Sat in the grey/dark
   gutter outside the image bounds (not overlaid on top of it) so it
   reads as "more images this way" rather than a control floating over
   the artwork, and left visible at all times (no hover-to-reveal —
   the whole point raised was that the generic hover-only arrows were
   too easy to miss). Two images per button, rest visible by default,
   hover crossfading in — same swap technique as .media-stage__frame-img
   --gold-hover elsewhere in this file. */
.carousel--promo .carousel__arrow--chevron{
  position:absolute; top:50%; transform:translateY(-50%); z-index:2;
  width:28px; height:48px; padding:0; border:0; background:none;
  opacity:1; display:flex; align-items:center; justify-content:center;
}
/* Same visual gap out from the image as the dots sit below it. The dots
   row is offset bottom:-30px but is itself 8px tall, so the actual clear
   space between image and dots is 30-8=22px. To match that same 22px
   clear space here, the offset has to account for the chevron's own
   width too (28px desktop / 18px mobile) — offset = 22 + width — not
   just copy the dots' raw -30px, which left far less breathing room on
   this axis than on that one. */
.carousel--promo .carousel__arrow--chevron.carousel__arrow--prev{ left:-50px; }
.carousel--promo .carousel__arrow--chevron.carousel__arrow--next{ right:-50px; }
.carousel--promo .carousel__arrow--chevron.is-hidden{ display:none; }
.carousel--promo .carousel__arrow-img{
  position:absolute; inset:0; width:100%; height:100%; object-fit:contain;
  transition:opacity .2s ease;
}
.carousel--promo .carousel__arrow-img--hover{ opacity:0; }
/* :hover gated to devices that actually have a pointer capable of
   hovering — on iOS Safari an ungated :hover rule on the tapped
   element itself eats the first tap just setting the hover state,
   so a second tap is needed for the click to register. Same fix the
   generic .carousel__arrow already uses (its @media(hover:none) rule
   further up) — this is that same pattern for the chevron's image
   swap. :focus-visible stays unconditional, that's keyboard use. */
@media(hover:hover){
  .carousel--promo .carousel__arrow--chevron:hover .carousel__arrow-img--rest{ opacity:0; }
  .carousel--promo .carousel__arrow--chevron:hover .carousel__arrow-img--hover{ opacity:1; }
}
.carousel--promo .carousel__arrow--chevron:focus-visible .carousel__arrow-img--rest{ opacity:0; }
.carousel--promo .carousel__arrow--chevron:focus-visible .carousel__arrow-img--hover{ opacity:1; }
@media(max-width:560px){
  .carousel--promo .carousel__arrow--chevron{ width:18px; height:32px; }
  .carousel--promo .carousel__arrow--chevron.carousel__arrow--prev{ left:-40px; }
  .carousel--promo .carousel__arrow--chevron.carousel__arrow--next{ right:-40px; }
}

.carousel--promo .carousel__dots{
  position:absolute; left:50%; bottom:-30px; transform:translateX(-50%);
  background:none; backdrop-filter:none; padding:0; gap:8px;
}
.carousel--promo .carousel__dot{ width:8px; height:8px; background:var(--border); }
.carousel--promo .carousel__dot.is-active{
  width:8px; border-radius:50%; background:var(--accent-2); transform:scale(1.35); box-shadow:0 0 10px rgba(229,255,83,.5);
}

.promo-modal__copy .tag{ margin-bottom:10px; }
.promo-modal__copy h3{ margin:0 0 8px; font-size:clamp(22px,4vw,28px); line-height:1.15; }
.promo-modal__copy p{ margin:0 0 12px; color:var(--text-dim); font-size:14.5px; line-height:1.6; }

/* LinkedIn-post excerpt, boxed to a fixed height so it never pushes the
   CTA button down or out of view — it scrolls internally instead. Left-
   aligned against the rest of .promo-modal__copy's centred text: body
   copy set centred reads badly past a line or two. The fade at the
   bottom is a plain gradient into the modal's own background colour
   (var(--surface), matches .promo-modal__inner), pinned absolutely so
   it reads as "more below" while scrolling. padding-bottom on the
   scroll container itself, exactly matching the fade's height, is
   what stops that being a false signal once you actually reach the
   end: that trailing blank space is what ends up sitting under the
   gradient at max scroll, not the real last line of copy, so the
   fade never implies hidden text that isn't there and never needs
   JS to know when to disappear. pointer-events:none so it never
   blocks the scroll/drag underneath it. */
.promo-modal__excerpt{ position:relative; margin:0 0 14px; text-align:left; }
.promo-modal__excerpt-scroll{
  max-height:70px; overflow-y:auto; padding-right:8px; padding-bottom:24px;
  color:var(--text-dim); font-size:13.5px; line-height:1.55;
  scrollbar-width:thin; scrollbar-color:var(--border) transparent;
}
.promo-modal__excerpt-scroll p{ margin:0 0 12px; }
.promo-modal__excerpt-scroll p:last-child{ margin-bottom:0; }
.promo-modal__excerpt-scroll::-webkit-scrollbar{ width:5px; }
.promo-modal__excerpt-scroll::-webkit-scrollbar-track{ background:transparent; }
.promo-modal__excerpt-scroll::-webkit-scrollbar-thumb{ background:var(--border); border-radius:3px; }
.promo-modal__excerpt-fade{
  position:absolute; left:0; right:8px; bottom:0; height:24px;
  background:linear-gradient(to bottom, rgba(23,26,34,0), var(--surface));
  pointer-events:none;
}

@media(max-width:560px){
  .promo-modal{ padding:14px; }
  .promo-modal__inner{ padding:28px 22px 24px; }
  /* Bumped from min(40vh,360px) — the text inside the framed quote card
     wasn't legible at that size on a phone. clamp() instead of a flat
     vh value: 300px floor keeps it readable even on a short viewport
     (iPhone SE-class), 420px ceiling stops it ballooning on a tall one
     (Pro Max-class) and eating the copy/CTA below. The modal itself
     already scrolls (.promo-modal__inner overflow:auto, max-height
     calc(100vh - 56px)) so a short viewport just gets a small internal
     scroll to reach the CTA rather than a cramped image. */
  .carousel--promo{ height:clamp(300px,48vh,420px); margin-bottom:34px; }
  /* Box is too short here for the desktop 24px fade/padding pairing to
     leave any real text showing at rest — scaled both down together so
     the same "trailing blank space, never real text" logic still holds. */
  .promo-modal__excerpt-scroll{ max-height:40px; padding-bottom:14px; }
  .promo-modal__excerpt-fade{ height:14px; }
}

/* ---------- Reel lightbox (project-card reels: weServed shorts, JAD
   SmartMerc, NSX rebuild, etc.) ----------
   These play full-viewport via this shared overlay rather than the browser's
   native Fullscreen API. iOS Safari only supports that API on a bare
   <video>, not on iframes, without an experimental flag almost no visitor
   has switched on — so an embedded Vimeo/YouTube reel would silently stay
   stuck at in-card size there. This layer is entirely ours to control, so
   every reel, self-hosted or embedded, gets the same true full-screen,
   letterboxed treatment on every device. object-fit:contain on the player
   itself is what keeps a portrait reel's full frame on screen — top to
   bottom — with black bars taking up the left/right rather than cropping it,
   and the same for a landscape reel on a narrow phone screen. */
.reel-lightbox{ position:fixed; inset:0; z-index:1100; display:none; align-items:center; justify-content:center; }
.reel-lightbox.open{ display:flex; }
.reel-lightbox__backdrop{ position:absolute; inset:0; background:#000; }
.reel-lightbox__stage{ position:relative; width:100%; height:100%; display:flex; align-items:center; justify-content:center; }
.reel-lightbox__stage video, .reel-lightbox__stage iframe{ width:100%; height:100%; border:0; object-fit:contain; background:#000; }
.reel-lightbox__close{
  position:absolute; top:16px; right:16px; z-index:2; width:40px; height:40px; border-radius:50%;
  background:rgba(23,26,34,0.85); border:1px solid var(--border); color:var(--text); font-size:16px;
}
.reel-lightbox__close:hover{ background:var(--surface-2); }

footer{ border-top:1px solid var(--border); padding:32px 0; }
.footer__row{ display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px; font-size:13px; color:var(--text-faint); }
.footer__row a{ color:var(--text-faint); }
.footer__row a:hover{ color:var(--text-dim); }
.footer__links{ display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:18px; }
.footer__link{ padding:0; border:0; background:none; color:var(--text-faint); font:inherit; }
.footer__link:hover{ color:var(--text-dim); }
.footer__row a:focus-visible,.footer__link:focus-visible{ outline:2px solid var(--accent-2); outline-offset:3px; border-radius:2px; }

/* ---------- Individual project pages ----------
   Shared across every dedicated case-study page under /work/<slug>/.
   Homepage accordion entries are untouched by any of this — these are new,
   additive classes for a project's own standalone page: title/meta header,
   a large contained lead image, longer-form copy set slightly larger and
   lighter than the homepage accordion for sustained reading, the existing
   .carousel component reused as-is for the gallery, and a plain link back
   to the full work list (a genuine related-projects grid can follow once
   more than one project has its own page to link to). */
.proj-head{ margin-bottom:40px; }
.proj-head__eyebrow{ font-size:12.5px; letter-spacing:0.14em; text-transform:uppercase; color:var(--accent); font-weight:700; margin-bottom:16px; display:block; }
.proj-head h1{ font-size:clamp(29px,3.7vw,44px); margin-bottom:8px; }
.proj-head__prop{ font-size:17px; color:var(--text-dim); margin-bottom:24px; font-weight:400; max-width:640px; }
.proj-head__facts{ display:flex; flex-wrap:wrap; gap:16px 40px; padding:22px 0; margin-bottom:24px; border-top:1px solid var(--border); border-bottom:1px solid var(--border); }
.proj-head__fact{ font-size:14.5px; color:var(--text-dim); }
.proj-head__fact strong{ display:block; font-size:11px; color:var(--text-faint); text-transform:uppercase; letter-spacing:0.06em; font-weight:700; margin-bottom:5px; }
.proj-head__tags{ display:flex; flex-wrap:wrap; gap:8px; }

.proj-hero{ border-radius:var(--radius); overflow:hidden; border:1px solid var(--border); margin-bottom:40px; aspect-ratio:16/10; background:#000; }
.proj-hero img{ width:100%; height:100%; object-fit:contain; }
/* Matches weserved-employment-campaign-cover.jpg's exact source ratio
   (1900x1266) so the artwork fills the box with no side pillarbox —
   scoped here rather than changing the shared 16:10 .proj-hero default. */
.proj-hero--employment{ aspect-ratio:1900/1266; }
/* Matches cs-hero-ad.jpg's exact source ratio (2500x1406) so the print
   ad fills the box with no side pillarbox — scoped here rather than
   changing the shared 16:10 .proj-hero default. */
.proj-hero--commonsense-ad{ aspect-ratio:2500/1406; }
/* weServed MKIII brand film (1920x1080 desktop, 1280x720 on phones) as
   project hero. Ambient muted loop; playback driven by script.js
   (video[data-ambient]), reduced motion respected. */
.proj-hero--film{ aspect-ratio:16/9; }
.proj-hero video{ display:block; width:100%; height:100%; object-fit:cover; cursor:pointer; }
.proj-hero video:focus-visible{ outline:2px solid var(--accent-2); outline-offset:-4px; }
/* Only present when a hero image's provenance needs an explicit, visible
   credit line (e.g. reproduced project material of unconfirmed origin) —
   pulls the hero's own margin-bottom up to sit directly under the image. */
.proj-hero + .proj-hero__caption{ margin-top:-28px; margin-bottom:40px; font-size:14px; color:var(--text-body); border-left:2px solid var(--accent-2); padding-left:12px; }

.proj-main{ max-width:65ch; margin-bottom:48px; }
.proj-main h2{ font-size:18px; margin:32px 0 14px; }
.proj-main h2:first-child{ margin-top:0; }
.proj-main h3{ font-size:12px; margin:20px 0 10px; color:var(--text-faint); text-transform:uppercase; letter-spacing:0.06em; font-weight:700; }
.proj-main p{ color:var(--text-body); font-size:17.5px; line-height:1.7; margin-bottom:20px; }
.proj-main ul{ margin:0 0 20px; padding-left:0; }
.proj-main li{ position:relative; padding-left:22px; color:var(--text-body); font-size:17.5px; line-height:1.7; margin-bottom:10px; }
.proj-main li::before{ content:''; position:absolute; left:2px; top:11px; width:6px; height:6px; border-radius:50%; background:var(--accent-2); }
.proj-main li:last-child{ margin-bottom:0; }
.proj-status{ border-top:1px solid var(--border); padding-top:16px; margin-top:8px; font-size:15px; color:var(--text-body); max-width:65ch; }
.proj-status strong{ color:var(--text-faint); display:inline; margin-right:8px; font-size:11px; text-transform:uppercase; letter-spacing:0.06em; font-weight:700; }

.proj-gallery{ margin-bottom:48px; }
.proj-gallery .carousel{ margin-bottom:14px; }
.proj-gallery__caption{ font-size:14px; color:var(--text-body); border-left:2px solid var(--accent-2); padding-left:12px; min-height:20px; }

.proj-back{ border-top:1px solid var(--border); padding-top:32px; font-size:14px; color:var(--text-dim); }
.proj-back a{ color:var(--accent-2); font-weight:600; }
.proj-back a:hover{ text-decoration:underline; }

/* .video-row's own 30px side padding is tuned for sitting inside a
   work-item accordion body, not directly inside .container (which already
   provides the page gutter) — flush variant for use on a project page. */
.video-row--flush{ padding-left:0; padding-right:0; margin-bottom:8px; }

/* Same fix for the other work-item-scoped components a video-led page like
   weServed's reuses directly inside .container: .doc-strip and .pdlc carry
   their own 30px side margin, .work-item__reels its own 30px side padding —
   all tuned for a zero-padding .work-item ancestor, not .container. */
.doc-strip--flush{ margin-left:0; margin-right:0; }
.pdlc--flush{ margin-left:0; margin-right:0; }
.work-item__reels--flush{ padding-left:0; padding-right:0; }

/* Every project page's opening section sits directly under the fixed nav
   with no hero above it to push it clear — shared id, reused per page. */
#case-study{ padding-top:160px; }

/* ==========================================================================
   ISOLATED PROTOTYPE — homepage Work section only. Everything above this
   point is untouched production CSS (hero, nav, footer, other sections,
   the base accordion). Colour logic stays production's: orange hover with
   dark ink text is untouched below; chartreuse (--accent-2, already the
   approved production token) is used only for the arrow glyph and the one
   highlighted word in the section heading — nothing here re-themes the
   accordion's default or hover states.
   ========================================================================== */

/* Short-proposition display type — reduced from V2's clamp(32-64px) and
   given tight leading (1.08 vs. body copy's inherited 1.6) so it reads as
   one composed line, not stacked/separated words. Used once, on the
   section's own six-word heading — not on paragraphs or item titles other
   than the flagship's (below). */
.section-head h2.work-section__display{
  font-size:clamp(28px, 3.6vw, 42px);
  line-height:1.1;
  font-weight:900;
  letter-spacing:0.02em;
  margin-bottom:18px;
}
.work-section__display b{ color:var(--accent-2); font-weight:900; }

/* weServed — a completely standard accordion item (same plus/close
   control, same click + keyboard behaviour, same single-open-at-a-time
   JS as every other row, and closed on every fresh load). The
   work-item--flagship class is a pure typography hook: its title reads
   larger than a compact row's, per the approved typography experiment.
   Its body content is long-form (the full case-study material), so this
   item alone gets a single-column body layout instead of the standard
   copy+gallery two-column split — every other row keeps the original grid. */
.work-item--flagship .work-item__title{
  font-size:clamp(28px, 3.6vw, 40px);
  line-height:1.2;
}
.work-item--flagship .work-item__body-in{ grid-template-columns:1fr; gap:0; }
/* Bug fix: .proj-main's own max-width:65ch (~520-580px) left it flush-left
   inside the much wider single-column body, leaving a large empty area on
   the right. Widened and centred within the available body width — the
   artwork, video stack, doc-strip, reels and process graphics below are
   deliberately left unconstrained here so they keep their intended wider
   layouts. */
.work-item--flagship .proj-main{ max-width:860px; margin-left:auto; margin-right:auto; }

/* "Learn more ↘" — replaces the old text-arrow link. Chunky geometric SVG
   (stroke-drawn diagonal + right-angle head) instead of a system-font
   glyph, so its weight and alignment are controlled. Arrow sits low and to
   the right of the label via align-items:flex-end; link and arrow share
   one hover/focus response so they read as a single control. */
.work-item__more{
  display:inline-flex; align-items:flex-end; gap:8px;
  margin-top:16px; color:var(--text); font-weight:700; font-size:14.5px;
}
.work-item__more-label{ transition:opacity .2s ease; }
.work-item__more-arrow{
  color:var(--accent-2); flex-shrink:0; transform:translateY(0);
  transition:transform .2s ease;
}
.work-item__more:hover, .work-item__more:focus-visible{ color:var(--accent-2); text-decoration:none; }
.work-item__more:hover .work-item__more-arrow,
.work-item__more:focus-visible .work-item__more-arrow{ transform:translate(3px, 3px); }
.work-item__more:focus-visible{ outline:2px solid var(--accent-2); outline-offset:4px; border-radius:2px; }


/* ==========================================================================
   CLIENT AREA — Stage 1 (front-end preview only; no backend, no live auth).
   Shared green CTA used both in the pre-footer invite and the auth card's
   Sign In action, so the two moments read as one coherent gesture.
   ========================================================================== */
.btn--client{ background:var(--accent-2); color:var(--bg); }
.btn--client:hover{ background:#eeff7a; transform:translateY(-2px); box-shadow:0 0 20px rgba(229,255,83,0.28); }
.btn--client:focus-visible{ outline:2px solid var(--accent-2); outline-offset:3px; }
.btn--client:disabled{ background:var(--surface-2); color:var(--text-faint); cursor:not-allowed; transform:none !important; box-shadow:none !important; }
.btn--client:disabled:hover{ background:var(--surface-2); }

/* ---------- Pre-footer Client Area invitation ---------- */
/* Deliberately modest: a bordered band, not another full-viewport hero. */
.client-invite{
  position:relative; overflow:hidden;
  background:var(--bg-alt); border-top:1px solid var(--border); border-bottom:1px solid var(--border);
  padding:72px 0;
}
.client-invite::before{
  content:''; position:absolute; inset:0; pointer-events:none;
  background:radial-gradient(ellipse 560px 280px at 50% 0%, rgba(229,255,83,0.07), transparent 70%);
}
.client-invite__inner{ position:relative; z-index:1; max-width:560px; margin:0 auto; text-align:center; }
.client-invite__eyebrow{
  display:inline-flex; align-items:center; gap:8px; font-size:12px; font-weight:700; letter-spacing:0.16em;
  text-transform:uppercase; color:var(--accent-2); margin-bottom:16px;
}
.client-invite__eyebrow::before{ content:''; width:6px; height:6px; border-radius:50%; background:var(--accent-2); box-shadow:0 0 10px var(--accent-2); }
.client-invite__line{ font-size:clamp(22px,2.6vw,30px); font-weight:800; letter-spacing:-0.015em; margin-bottom:12px; }
.client-invite__sub{ font-size:15px; color:var(--text-dim); line-height:1.55; margin-bottom:28px; }

/* ---------- Newsletter — "Studio Notes" ---------- */
/* Same banded treatment as .client-invite (bg-alt, bordered, radial glow),
   but laid out as copy alongside a working form rather than a single CTA,
   so it earns the extra width on wide viewports. */
.newsletter{
  position:relative; overflow:hidden;
  background:var(--bg-alt); border-top:1px solid var(--border); border-bottom:1px solid var(--border);
  padding:64px 0;
}
.newsletter::before{
  content:''; position:absolute; inset:0; pointer-events:none;
  background:radial-gradient(ellipse 560px 280px at 100% 0%, rgba(229,255,83,0.06), transparent 70%);
}
.newsletter__inner{
  position:relative; z-index:1; max-width:var(--maxw); margin:0 auto; padding:0 32px;
  display:grid; grid-template-columns:1fr 1fr; gap:48px; align-items:center;
}
.newsletter__eyebrow{
  display:inline-flex; align-items:center; gap:8px; font-size:12px; font-weight:700; letter-spacing:0.16em;
  text-transform:uppercase; color:var(--accent-2); margin-bottom:14px;
}
.newsletter__eyebrow::before{ content:''; width:6px; height:6px; border-radius:50%; background:var(--accent-2); box-shadow:0 0 10px var(--accent-2); }
.newsletter__heading{ font-size:clamp(24px,2.8vw,32px); font-weight:800; letter-spacing:-0.015em; margin-bottom:10px; }
.newsletter__sub{ font-size:15px; color:var(--text-dim); line-height:1.55; max-width:44ch; }

.newsletter__field{ display:flex; gap:10px; }
.newsletter__field input{
  flex:1; min-width:0; padding:13px 16px; border-radius:10px; border:1px solid var(--border);
  background:var(--bg); color:var(--text); font-family:var(--font); font-size:15px;
  transition:border-color .2s ease, box-shadow .2s ease;
}
.newsletter__field input::placeholder{ color:var(--text-faint); }
.newsletter__field input:focus-visible{ outline:none; border-color:var(--accent-2); box-shadow:0 0 0 3px rgba(229,255,83,0.15); }
.newsletter__field input:disabled{ opacity:0.55; cursor:not-allowed; }
.newsletter__field .btn{ flex-shrink:0; white-space:nowrap; }
.newsletter__privacy{ margin-top:12px; font-size:12.5px; color:var(--text-faint); line-height:1.5; }
.newsletter__privacy a{ color:var(--text-faint); text-decoration:underline; }

@media(max-width:860px){
  .newsletter__inner{ grid-template-columns:1fr; gap:28px; }
}
@media(max-width:520px){
  .newsletter{ padding:48px 0; }
  .newsletter__inner{ padding:0 24px; }
  .newsletter__field{ flex-direction:column; }
  .newsletter__field .btn{ width:100%; justify-content:center; }
}

/* ---------- Client Area auth page ---------- */
.auth-page{
  min-height:100vh; display:flex; flex-direction:column;
  padding-top:140px; padding-bottom:80px;
  position:relative; overflow:hidden; background:var(--bg);
}
/* Large, low-opacity version of the same T-mark used in the nav/favicon —
   not a new asset, just referenced at scale behind the card. Purely
   decorative, never interferes with form use (z-index below the card). */
.auth-page__mark{
  position:absolute; top:50%; left:50%; transform:translate(-50%,-50%);
  width:min(820px, 130vw); height:auto; opacity:0.035; color:var(--text);
  pointer-events:none; z-index:0;
}
.auth-page__glow{
  position:absolute; top:8%; left:50%; transform:translateX(-50%);
  width:900px; max-width:160vw; height:460px; pointer-events:none; z-index:0;
  background:radial-gradient(ellipse 480px 260px at 50% 0%, rgba(229,255,83,0.10), transparent 70%);
}
/* Shell's own max-width/padding is just viewport-edge safety on narrow
   screens — the card's width (440-520px target) is controlled directly on
   .auth-card below, independent of this wrapper's padding math. */
.auth-shell{ position:relative; z-index:1; width:100%; max-width:560px; margin:auto; padding:0 24px; }

.auth-card{
  width:100%; max-width:480px; margin:0 auto;
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius);
  padding:40px 36px; position:relative; overflow:hidden;
}
/* The one deliberate green accent line on the card — never a bright-green
   card fill. */
.auth-card::before{
  content:''; position:absolute; top:0; left:0; right:0; height:2px;
  background:linear-gradient(90deg, transparent, var(--accent-2), transparent);
}
.auth-card__eyebrow{
  display:inline-flex; align-items:center; gap:8px; font-size:11.5px; font-weight:700; letter-spacing:0.16em;
  text-transform:uppercase; color:var(--accent-2); margin-bottom:18px;
}
.auth-card__eyebrow::before{ content:''; width:6px; height:6px; border-radius:50%; background:var(--accent-2); box-shadow:0 0 10px var(--accent-2); }
.auth-card__title{ font-size:clamp(24px,3vw,30px); font-weight:800; letter-spacing:-0.015em; margin-bottom:10px; }
.auth-card__sub{ font-size:14.5px; color:var(--text-dim); line-height:1.55; margin-bottom:24px; }

.auth-card__status{
  display:inline-flex; align-items:center; gap:8px; font-size:11px; font-weight:800; letter-spacing:0.14em;
  text-transform:uppercase; color:var(--accent-2); background:rgba(229,255,83,0.08);
  border:1px solid rgba(229,255,83,0.3); border-radius:100px; padding:6px 14px; margin-bottom:28px;
}
.auth-card__status::before{ content:''; width:6px; height:6px; border-radius:50%; background:var(--accent-2); }

.auth-field{ margin-bottom:18px; }
.auth-field label{ display:block; font-size:13px; font-weight:600; color:var(--text-dim); margin-bottom:8px; }
.auth-field__control{ position:relative; }
.auth-field input{
  width:100%; padding:13px 16px; border-radius:10px; border:1px solid var(--border);
  background:var(--bg-alt); color:var(--text); font-family:var(--font); font-size:15px;
  transition:border-color .2s ease, box-shadow .2s ease;
}
.auth-field input::placeholder{ color:var(--text-faint); }
.auth-field input:focus-visible{ outline:none; border-color:var(--accent-2); box-shadow:0 0 0 3px rgba(229,255,83,0.15); }
.auth-field input:disabled{ opacity:0.55; cursor:not-allowed; }
.auth-field--password input{ padding-right:46px; }
.auth-field__toggle{
  position:absolute; right:6px; top:50%; transform:translateY(-50%);
  background:none; border:0; color:var(--text-faint); font-size:12.5px; font-weight:600;
  padding:6px 10px; cursor:pointer; border-radius:6px;
}
.auth-field__toggle:hover{ color:var(--text-dim); }
.auth-field__toggle:focus-visible{ outline:2px solid var(--accent-2); outline-offset:2px; }
.auth-field__toggle:disabled{ opacity:0.5; cursor:not-allowed; }

.auth-card .btn--client{ width:100%; justify-content:center; margin-top:6px; }

.auth-card__helper{ text-align:center; font-size:13px; color:var(--text-faint); margin-top:16px; line-height:1.5; }
.auth-card__links{
  display:flex; justify-content:space-between; align-items:center; margin-top:22px;
  padding-top:22px; border-top:1px solid var(--border); font-size:13.5px; flex-wrap:wrap; gap:10px;
}
.auth-card__links a{ color:var(--text-dim); }
.auth-card__links a:hover{ color:var(--accent-2); }
/* Explicit, on-brand focus ring for every plain text link across the
   Client Area surfaces — the site has no global :focus-visible rule to
   fall back on, and a default blue browser ring would clash with this
   page's palette regardless. */
.auth-card a:focus-visible,
.client-invite a:focus-visible,
.newsletter a:focus-visible{
  outline:2px solid var(--accent-2); outline-offset:2px; border-radius:2px;
}
.auth-card__privacy{ text-align:center; margin-top:20px; font-size:12px; color:var(--text-faint); }
.auth-card__privacy a{ color:var(--text-faint); text-decoration:underline; }
.auth-card__back{ text-align:center; margin-top:24px; }
.auth-card__back a{ font-size:13.5px; color:var(--text-dim); }
.auth-card__back a:hover{ color:var(--accent-2); }

@media(max-width:520px){
  .auth-card{ padding:32px 24px; }
  .auth-page{ padding-top:120px; }
}

/* ==========================================================================
   VISITOR-FIRST HOMEPAGE FLOW — prototype-only additions below. Everything
   above this point is the site's existing, unmodified design system; new
   components reuse its tokens (--accent-2, --accent, --surface, --border,
   --radius) rather than introducing a parallel palette.
   ========================================================================== */

/* ---------- Nested sub-heading (Approach, folded into How I Work) ---------- */
.section-head--nested{ max-width:680px; margin:56px 0 28px; }
.section-head--nested h3{ font-size:clamp(19px,2.4vw,23px); }
.approach__item h3, .approach__item h4{ font-size:20px; margin-bottom:12px; }

/* ---------- Visitor pathways ---------- */
.pathways__grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:1px; background:var(--border); border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; }
@media(max-width:760px){ .pathways__grid{ grid-template-columns:1fr; } }
.pathway-card{ background:var(--bg); padding:32px; display:flex; flex-direction:column; }
.pathway-card h3{ font-size:20px; margin-bottom:10px; }
.pathway-card p{ font-size:15px; color:var(--text-dim); margin-bottom:18px; }
/* Quiet inline metadata — fine centred dots, not bordered pills, so four
   repeated outlines per card don't compete with the actual content. */
.pathway-card__meta{ font-size:12.5px; color:var(--text-faint); margin-bottom:24px; line-height:1.6; }
.pathway-card__meta span{ margin:0 6px; opacity:0.6; }
/* Bottom-anchored via margin-top:auto so all four links share one
   baseline regardless of copy length above. Neutral text, orange arrow
   and hover accent — green stays reserved for Client Area. */
.pathway-card__link{ margin-top:auto; display:inline-flex; align-items:center; gap:6px; color:var(--text); font-weight:600; font-size:14px; }
.pathway-card__link span{ color:var(--accent); transition:transform .2s ease; }
.pathway-card__link:hover{ color:var(--accent); }
.pathway-card__link:hover span{ transform:translateX(3px); }
.pathway-card__link:focus-visible{ outline:2px solid var(--accent-2); outline-offset:3px; border-radius:2px; }

/* ---------- Transformation (editorial FROM/TO panels) ---------- */
/* Left-aligned throughout — no centred table. A large background numeral
   sits behind the copy at low opacity so it reads as texture, not a
   competing headline; it never sits over the FROM/TO text itself. */
.shift__grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:1px; background:var(--border); border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; margin-bottom:28px; }
@media(max-width:760px){ .shift__grid{ grid-template-columns:1fr; } }
.shift__panel{ position:relative; background:var(--bg); padding:36px 32px 32px; overflow:hidden; text-align:left; }
.shift__num{
  position:absolute; top:8px; right:20px; z-index:0; font-size:clamp(60px,6.4vw,96px); font-weight:900;
  color:var(--text); opacity:0.05; line-height:1; pointer-events:none;
  transition:color .6s ease, opacity .6s ease;
}
/* One panel "lit" at a time as it crosses the middle of the viewport while
   scrolling — script.js toggles this on whichever .shift__panel is
   currently closest to that line, so the numeral steps through
   01→02→03→04 in succession instead of all four sitting at the same
   flat, static opacity. Reduced-motion visitors never get this class
   toggled and simply keep the plain grey numerals. */
.shift__num.is-active{ color:var(--accent-2); opacity:0.22; }
.shift__label{
  position:relative; z-index:1; display:block; font-size:11px; font-weight:700; letter-spacing:0.12em;
  text-transform:uppercase; color:var(--text-faint); margin-bottom:6px;
}
.shift__from{ position:relative; z-index:1; color:var(--text-faint); font-size:16px; margin:0 0 18px; max-width:34ch; }
.shift__rule{ position:relative; z-index:1; display:block; width:32px; height:2px; background:var(--accent-2); margin-bottom:18px; }
.shift__to{ position:relative; z-index:1; color:var(--text); font-size:17px; font-weight:600; margin:0; max-width:34ch; }
.shift__note{ color:var(--text-dim); font-size:15px; max-width:640px; }

/* ---------- Early / selected proof ---------- */
/* One restrained visual system across all three cards: neutral charcoal
   surface, one fine border, white evidence numeral, muted eyebrow —
   orange is reserved for the final link/arrow and its hover state, and
   green doesn't appear here at all (it's a Client Area signal). Flex
   column with the link's margin-top:auto keeps the final link/arrow
   bottom-anchored on every card regardless of copy length above it. */
.proof-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:28px; align-items:stretch; }
@media(max-width:960px){ .proof-grid{ grid-template-columns:1fr; } }
.proof-card{ background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; display:flex; flex-direction:column; }
.proof-card:focus-visible{ outline:2px solid var(--accent-2); outline-offset:4px; }
.proof-card__media{ aspect-ratio:16/10; overflow:hidden; }
.proof-card__media img{ width:100%; height:100%; object-fit:cover; display:block; }
.proof-card__body{ padding:26px; display:flex; flex-direction:column; flex:1; }
.proof-card__eyebrow{ font-size:11.5px; letter-spacing:0.1em; text-transform:uppercase; color:var(--text-faint); font-weight:700; margin-bottom:10px; }
.proof-card__body h3{ font-size:18px; margin-bottom:14px; line-height:1.35; }
.proof-card__marker{
  display:inline-block; font-size:14px; font-weight:900; letter-spacing:0.025em; line-height:1; color:var(--text);
  margin-bottom:16px;
}
.proof-card__body p{ font-size:14px; color:var(--text-dim); line-height:1.55; margin:0 0 12px; }
.proof-card__body p strong{ color:var(--text); font-weight:700; }
.proof-card__body p:last-of-type{ margin-bottom:0; }
/* Scoped override: the shared .work-item__more link defaults to green
   elsewhere (the full work library below) — inside these three cards it
   reads orange instead, and is pinned to the bottom of the flex column. */
.proof-card .work-item__more{ margin-top:auto; padding-top:18px; }
.proof-card .work-item__more,
.proof-card .work-item__more:hover,
.proof-card .work-item__more:focus-visible{ color:var(--text); }
.proof-card .work-item__more-arrow{ color:var(--accent); }
.proof-card .work-item__more:hover .work-item__more-arrow,
.proof-card .work-item__more:focus-visible .work-item__more-arrow{ color:#ff7256; }
.proof-card:hover .work-item__more-arrow{ color:#ff7256; transform:translate(3px,3px); }
.proof-card .work-item__more:focus-visible{ outline-color:var(--accent-2); }

/* ---------- Vision ---------- */
/* Text-led editorial band — Travis's portrait already lives in the hero,
   so this stays a strong statement of copy rather than a second media
   moment. Left-aligned, comfortable measure, no centred layout. */
.vision__inner{ max-width:720px; }
.vision h2{ font-size:clamp(24px,3.1vw,34px); margin-bottom:16px; line-height:1.2; text-wrap:balance; }
.vision p{ color:var(--text-dim); font-size:16px; line-height:1.6; margin-bottom:16px; max-width:62ch; text-wrap:pretty; }

/* ---------- Testimonials: progressive disclosure ---------- */
/* Order in the DOM is: initial grid, additional grid (hidden), toggle —
   so once expanded, "Show fewer" sits at the bottom of the complete set
   rather than pinned between two grids. 52px clears the toggle from
   whichever grid is currently above it, on both sides. */
/* Cards 4-9 hide via [hidden] on the card itself — no wrapping element,
   no separate margin/border, so expanding grows the same grid rather
   than revealing a visually distinct second block. */
.testi__card--more[hidden]{ display:none; }
.testi__more-toggle{
  display:flex; align-items:center; gap:8px; margin:52px auto 0; background:none; border:1px solid var(--border);
  border-radius:100px; padding:10px 20px; color:var(--text-dim); font-size:14px; font-weight:600; cursor:pointer;
  transition:border-color .2s ease, color .2s ease;
}
.testi__more-toggle:hover{ color:var(--text); border-color:var(--text-dim); }
.testi__more-toggle:focus-visible{ outline:2px solid var(--accent-2); outline-offset:3px; }

/* Restrained oversized quotation mark — an editorial cue, not a glass
   effect. Sits above the quote, low-opacity, purely decorative. */
.testi__mark{
  display:block; font-size:44px; line-height:1; font-weight:800; color:var(--accent-2);
  opacity:0.35; margin-bottom:4px; font-family:Georgia, 'Times New Roman', serif;
}

/* ---------- Closing actions ---------- */
/* Stretching grid + flex-column cards + height:100% so all three reach
   equal visual height on desktop: headings/descriptions stay top-aligned
   in .closing__card-top, and each card's action(s) sit directly below,
   at the same row across all three cards, rather than drifting to the
   card's bottom edge. .closing__card-top gets a shared min-height on
   desktop (tallest of the three copy blocks) so "Let's talk", "Enter
   client area" and the email field all line up regardless of how many
   lines each card's paragraph wraps to. One shared border/background/
   radius/padding system across all three — .closing__card--newsletter
   only adds its own form styling below, not a different card treatment. */
.closing .container{ max-width:1080px; }
.closing__head{ max-width:680px; margin-left:auto; margin-right:auto; text-align:center; }
.closing__head p{ margin-left:auto; margin-right:auto; }
.closing__grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:18px; align-items:stretch; }
@media(max-width:960px){ .closing__grid{ grid-template-columns:1fr; } }
.closing__card{
  position:relative; overflow:hidden; background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:28px;
  height:100%; display:flex; flex-direction:column; justify-content:flex-start; gap:20px;
}
.closing__card h3{ font-size:20px; margin-bottom:10px; }
.closing__card-top p{ color:var(--text-dim); font-size:15px; margin:0; }
@media(min-width:961px){ .closing__card-top{ min-height:158px; } }
/* flex:1 gives this block the card's full remaining height (below the
   fixed-height .closing__card-top), so the trailing small-text line in
   each card — .closing__card-details, .closing__card-note or
   .newsletter__privacy — can be pushed to the bottom edge with
   margin-top:auto below, landing all three at the same baseline
   regardless of how much sits above it. */
.closing__card-bottom{ display:flex; flex-direction:column; align-items:flex-start; flex:1 1 auto; }
.closing__card-extra{ display:flex; flex-wrap:wrap; gap:16px; margin-top:14px; }
/* Quiet secondary text actions — no pill background, orange hover
   accent instead of a second and third competing button. */
.closing__card-textlink{
  background:none; border:none; padding:0; color:var(--text-dim); font-size:13.5px; font-weight:600; cursor:pointer;
}
.closing__card-textlink:hover{ color:var(--accent); }
.closing__card-textlink:focus-visible{ outline:2px solid var(--accent-2); outline-offset:3px; border-radius:2px; }
.closing__card-details{ display:flex; flex-direction:column; gap:6px; margin-top:auto; padding-top:20px; font-size:13.5px; color:var(--text-faint); }
.closing__card-details a{ color:var(--text-dim); }
.closing__card-note{ margin-top:auto; padding-top:14px; color:var(--text-faint); font-size:12.5px; line-height:1.5; }
.reveal--closing:nth-child(2){ transition-delay:.08s; }
.reveal--closing:nth-child(3){ transition-delay:.16s; }
/* The inline single-field form (.newsletter__field/.newsletter__status)
   this card used to have is gone — replaced by the signup-trigger button
   that opens #signupModal (see that modal's own CSS block). The rules that
   styled those removed elements were removed with them, 2026-09; only the
   privacy line below still applies to the current markup. */
.closing__card--newsletter .newsletter__privacy{ margin-top:auto; padding-top:12px; font-size:12.5px; color:var(--text-faint); line-height:1.5; }
.closing__card--newsletter .newsletter__privacy a{ color:var(--text-faint); text-decoration:underline; }
@media(max-width:640px){
  /* .hero/.hero__grid/.hero__eyebrow/.hero__sub rules that used to live
     here were an exact duplicate of the block above the reel modal
     section (search .media-stage__play), just with a stale 44px
     margin-bottom that was silently winning the cascade over the real
     108px value. Removed rather than reconciled — this block is for
     the newsletter/footer section below and never needed hero rules. */
  .closing__head{ text-align:left; }
  .closing__card{ padding:24px; }
  .footer__row{ align-items:flex-start; }
  .footer__links{ justify-content:flex-start; gap:12px 18px; }
  .reveal--green-rule{ padding-left:18px; }
}

.pathway-card a:focus-visible,
.proof-card a:focus-visible,
.closing__card a:focus-visible,
.vision a:focus-visible{ outline:2px solid var(--accent-2); outline-offset:2px; border-radius:2px; }

/* ---------- Reduced motion ---------- */
/* Keeps opacity/colour fades (they aid comprehension) but strips
   transform-based movement — scroll-reveal slide, card flip, marquee,
   pulsing route dots, button lift/press — for anyone with
   prefers-reduced-motion set at the OS level. */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  .reveal{ transition:opacity .3s ease; transform:none; }
  [data-depth]{ transform:none !important; }
  .tool-mark{ animation:none; transform:none; }
  .reveal--green-rule::before{ transition:none; transform:none; }
  .route__dot{ animation:none; }
  /* Carousel stops entirely and becomes a manually-scrollable strip
     instead — the animation is removed, not just paused. */
  .marquee.is-ready{ animation:none; }
  .orgs__wrap{ overflow-x:auto; -webkit-overflow-scrolling:touch; }
  .media-stage__play{ transition:none; }
  .btn, .btn:active, .btn--primary:hover, .btn--ghost:hover, .btn--icon:hover{ transform:none !important; }
  .client-invite__cta:hover{ transform:none !important; box-shadow:none !important; }
  .auth-card__glow{ animation:none !important; }
  .btn::before{ animation:none !important; opacity:0 !important; }
  .loader__mark, .loader__tmark, .loader__glow g, #tHolePath, .loader__flash{ animation:none !important; }
  .loader{ transition:opacity .3s ease; }
  .hero__eyebrow, .hero h1, .hero__tagline, .hero__sub, .hero__actions, .hero__media, .media-stage__play{
    opacity:1 !important; transform:none !important; animation:none !important;
  }
  .hero__tagline{ opacity:.92 !important; }
  .work-item__plus, .reel-facade__play, .reel-facade img{ transition:none; transform:none !important; }
  .carousel__slide{ transition:none; }
  .kinetic-tag__word{ animation:none !important; opacity:0 !important; }
  .kinetic-tag__word:first-child{ opacity:1 !important; transform:none !important; }
  .work-item__more-arrow{ transition:none; }
  /* Belt-and-braces alongside the JS gate in script.js: even if the idle
     loop somehow ran, this stops either layer ever becoming visible. */
  .media-stage__idle-transition, .media-stage__idle-blink, .media-stage__idle-glance, .media-stage__idle-flash, .media-stage__idle-reel, .media-stage__idle-text{ opacity:0 !important; transition:none !important; }
  .promo-modal.open .promo-modal__backdrop, .promo-modal.open .promo-modal__inner{ animation:none !important; }
}

/* ===================== COOKIE / CONSENT BANNER ===================== */
/* Bottom-anchored bar, same dark glass surface as the nav — deliberately
   quiet rather than a full-screen takeover. Shown once per browser via
   localStorage (see script.js); [hidden] keeps it out of layout/AT until
   JS decides whether a stored choice already exists. */
.cookie-banner{
  position:fixed; left:0; right:0; bottom:0; z-index:80;
  background:rgba(10,11,15,0.96); backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px);
  border-top:1px solid var(--border);
}
.cookie-banner__inner{
  max-width:var(--maxw,1200px); margin:0 auto; padding:18px 32px;
  display:flex; align-items:center; justify-content:space-between; gap:24px; flex-wrap:wrap;
}
.cookie-banner__inner p{ margin:0; font-size:13.5px; color:var(--text-dim); max-width:640px; line-height:1.5; }
.cookie-banner__inner a{ color:var(--text); text-decoration:underline; }
.cookie-banner__actions{ display:flex; gap:10px; flex-shrink:0; }
.cookie-banner__actions .btn{ padding:10px 20px; font-size:13px; }

/* ---- Newsletter marketing-consent checkbox ---- */
.newsletter__consent{
  display:flex; align-items:flex-start; gap:9px; margin:10px 0 4px 0;
  font-size:12.5px; color:var(--text-dim); line-height:1.45; cursor:pointer;
}
.newsletter__consent input[type="checkbox"]{
  margin-top:2px; width:15px; height:15px; flex-shrink:0; accent-color:var(--accent-2);
}
.newsletter__consent input:disabled + span{ opacity:0.55; }


/* ===================== FOOTER: SOCIAL + 3-COLUMN =====================
   Social icons left, copyright centred, links right. A 1fr/auto/1fr grid
   keeps the copyright truly centred whatever the side widths. */
footer { padding: 18px 0; }
.footer__row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px 24px;
}
.footer__copy { justify-self: center; text-align: center; white-space: nowrap; }
.footer__links { justify-self: end; }

.footer__social {
  justify-self: start;
  list-style: none;
  margin: 0 0 0 -13px; /* optical: glyph edge lines up with the container edge */
  padding: 0;
  display: flex;
  align-items: center;
}
.footer__social li { margin: 0; padding: 0; }

/* 44px hit area, 18px glyph. Understate = footer-link grey. */
.footer__social .social-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--text-faint);
  font: inherit;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.footer__social .social-icon__svg {
  display: block;
  width: 18px;
  height: 18px;
  transition: color .2s ease, filter .2s ease;
}
.footer__social .social-icon--soon .social-icon__svg,
.footer__social .social-icon--yt .social-icon__svg { height: 13.5px; }

/* Overstate: lime + soft glow */
.footer__social .social-icon:hover,
.footer__social .social-icon:focus-visible,
.footer__social .social-icon.is-open { color: var(--accent-2); }
.footer__social .social-icon:hover .social-icon__svg,
.footer__social .social-icon:focus-visible .social-icon__svg,
.footer__social .social-icon.is-open .social-icon__svg {
  filter: drop-shadow(0 0 3px rgba(229, 255, 83, .55));
}
.footer__social .social-icon:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 0;
}

/* YouTube: not live yet */
.footer__social .social-icon--soon { cursor: default; }
.social-icon__tip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 26px); /* clears the footer rule line */
  transform: translate(-50%, 4px);
  padding: 6px 11px;
  border: 1px solid rgba(229, 255, 83, .35);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .01em;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
  z-index: 5;
}
.social-icon--soon:hover .social-icon__tip,
.social-icon--soon:focus-visible .social-icon__tip,
.social-icon--soon.is-open .social-icon__tip {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition: opacity .18s ease, transform .18s ease, visibility 0s;
}

/* Small screens: stack centred. Icons, links, then copyright. */
@media (max-width: 760px) {
  footer { padding: 20px 0 24px; }
  .footer__row { grid-template-columns: 1fr; justify-items: center; gap: 10px; }
  .footer__social { justify-self: center; margin: 0; order: 1; }
  .footer__links { justify-self: center; justify-content: center; order: 2; }
  .footer__copy { order: 3; }
}

@media (prefers-reduced-motion: reduce) {
  .social-icon__svg,
  .social-icon__tip { transition: none; }
}
