/* Maurice Brown · subway portfolio
   Layout: one route runs the page. Hero stations → platform-wall screens → signage-led sections → case views. */
:root {
  --navy: #0A1424;
  --navy-2: #13223A;
  --navy-3: #1B2E4B;
  --offwhite: #F1F1EF;
  --paper: #E7E7E3;
  --ink: #141414;
  --steel: #738195;
  --muted: #5B5D61;
  --line-red: #EE352E;
  --line-green: #00933C;
  --line-blue: #0039FF;
  --line-orange: #FF6319;
  --line-purple: #B933DF;
  --line-yellow: #FCCC0A;
  --line-gray: #A7A9AC;

  --bg: var(--offwhite);
  --fg: var(--ink);
  --fg-muted: var(--muted);
  --surface: var(--paper);
  --rule: rgba(20, 20, 20, .14);
  --header-tint: rgba(241, 241, 239, .22);
  --header-solid: rgba(241, 241, 239, .9);

  --font: "Libre Franklin", "Franklin Gothic Medium", "Helvetica Neue", Arial, sans-serif;
  --gutter: max(16px, 4vw);
  --ease-brake: cubic-bezier(.45, 0, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --header-h: 72px;
  color-scheme: light;
}
.night {
  --bg: var(--navy);
  --fg: var(--offwhite);
  --fg-muted: #A7B1C0;
  --surface: var(--navy-2);
  --rule: rgba(241, 241, 239, .14);
  --header-tint: rgba(10, 20, 36, .22);
  --header-solid: rgba(10, 20, 36, .88);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  transition: background-color .4s, color .4s;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ol { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--line-yellow); outline-offset: 3px; }

/* Film grain */
body::after {
  content: "";
  position: fixed;
  inset: -50%;
  z-index: 200;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain .6s steps(6) infinite;
}
.night body::after { opacity: .05; }
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -4%); }
  60% { transform: translate(-4%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 300; padding: 10px 16px; background: var(--ink); color: #fff; border-radius: 999px; text-decoration: none; }
.skip-link:focus { top: 12px; }

.wrap { padding-inline: var(--gutter); max-width: 1600px; margin-inline: auto; }

/* Signage */
.sign {
  display: inline-flex; align-items: center; gap: .6em;
  font: 600 12px/1 var(--font); letter-spacing: .14em; text-transform: uppercase;
  padding: 9px 16px; border-radius: 999px; background: var(--fg); color: var(--bg);
  margin-bottom: clamp(24px, 4vw, 48px);
}
.sign-dir::after { content: " →"; }
.section-title { font: 800 clamp(36px, 6vw, 96px)/.95 var(--font); letter-spacing: -.035em; text-wrap: balance; margin-bottom: clamp(32px, 5vw, 72px); }

.bullet {
  --size: 44px;
  display: inline-grid; place-items: center; flex: none;
  width: var(--size); height: var(--size); border-radius: 50%;
  background: var(--c, var(--line-gray)); color: #fff;
  font: 800 calc(var(--size) * .52)/1 var(--font);
}
/* Optically center the letter: script.js wraps each letter in a span, which is trimmed to
   the capital height so the grid centers the glyph itself, not the font's line box. */
.bullet > .ltr, .stop > .ltr { display: block; line-height: 1; text-box: trim-both cap alphabetic; }
@supports not (text-box: trim-both cap alphabetic) {
  .bullet > .ltr, .stop > .ltr { padding-top: .12em; }
}

/* Buttons */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 22px; border-radius: 999px; border: 1px solid transparent;
  font: 600 13px/1 var(--font); letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: color .3s, border-color .3s;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--c, var(--line-yellow));
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease-out);
}
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); }
/* Line icons drawn with CSS masks in the text colour. Characters like ↗ and ☀ turn into emoji tiles on iOS. */
.i { display: inline-block; flex: none; width: .95em; height: .95em; vertical-align: -.12em; background: currentColor; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.i-ext { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M9 7h8v8'/%3E%3C/svg%3E"); }
.i-vert { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v16M8 8l4-4 4 4M8 16l4 4 4-4'/%3E%3C/svg%3E"); }
.i-horiz { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h16M8 8l-4 4 4 4M16 8l4 4-4 4'/%3E%3C/svg%3E"); }
.i-skip { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 6l6 6-6 6M13 6l6 6-6 6'/%3E%3C/svg%3E"); }
.i-sun { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2.5v2.2M12 19.3v2.2M2.5 12h2.2M19.3 12h2.2M5.3 5.3l1.6 1.6M17.1 17.1l1.6 1.6M5.3 18.7l1.6-1.6M17.1 6.9l1.6-1.6'/%3E%3C/svg%3E"); }
.i-moon { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 14.5A8 8 0 1 1 9.5 4a6.5 6.5 0 0 0 10.5 10.5z'/%3E%3C/svg%3E"); }
.btn-arrow { transition: transform .3s var(--ease-out); }
.btn:hover .btn-arrow { transform: translateX(4px); }
.btn-primary { background: var(--fg); color: var(--bg); }
.btn-primary:hover { color: #fff; }
.btn-ghost { border-color: currentColor; background: transparent; }
.btn-ghost:hover { color: var(--ink); border-color: var(--line-yellow); }
.btn-lg { padding: 20px 28px; font-size: 14px; }

/* ───────── Header ───────── */
.site {
  --nav-fg: var(--ink); --nav-muted: var(--muted); --pill-bg: var(--ink); --pill-fg: #fff;
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px var(--gutter); min-height: var(--header-h);
  background: var(--offwhite); color: var(--nav-fg);
  transition: background .4s, color .4s, transform .45s var(--ease-brake);
}
.night .site { --nav-fg: #fff; --nav-muted: #A7B1C0; --pill-bg: #fff; --pill-fg: var(--navy); background: var(--navy); }
.brand { display: grid; gap: 4px; color: inherit; text-decoration: none; }
.brand b { font: 800 clamp(19px, 1.7vw, 24px)/1 var(--font); letter-spacing: -.02em; }
.brand small, .nav a { font: 500 12px/1 var(--font); letter-spacing: .1em; text-transform: uppercase; }
.brand small { color: var(--nav-muted); font-size: 11px; }
.nav { display: flex; align-items: center; gap: clamp(16px, 2vw, 26px); }
.nav a { color: inherit; text-decoration: none; font-size: 13px; }
.nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.nav .contact { background: var(--pill-bg); color: var(--pill-fg); padding: 15px 19px; border-radius: 999px; }
.nav .contact:hover { text-decoration: none; opacity: .88; }
@media (max-width: 700px) { .nav a:not(.contact) { display: none; } }
@media (min-width: 701px) {
  .site { position: fixed; left: 0; right: 0; background: var(--header-tint); }
  .night .site { background: var(--header-tint); }
  .site.is-solid, .night .site.is-solid { background: var(--header-solid); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
  .site.is-hidden { transform: translateY(-100%); }
}

/* ───────── Hero ───────── */
.hero { background: var(--navy); }
.scene { position: relative; aspect-ratio: 1914 / 822; overflow: hidden; container-type: inline-size; background: var(--navy); }
.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .6s; }
.bg-night { opacity: 0; }
.night .bg-night { opacity: 1; }
.route { position: absolute; inset: 0; width: 100%; height: 100%; }
.route path { fill: none; stroke-width: 6; }
.train {
  position: absolute; width: 18.81%; height: 7.06%; top: 79.56%; left: 40.6%; /* wheels on the rail at y≈712 of 822 */
  object-fit: contain; transition: left 1.8s var(--ease-brake); will-change: left;
}
.theme-toggle {
  position: absolute; z-index: 4; top: clamp(10px, 2.2vw, 24px); right: max(16px, 2%);
  display: flex; align-items: center; gap: 6px; padding: 9px 15px;
  border: 1px solid rgba(20, 20, 20, .18); border-radius: 999px;
  background: rgba(255, 255, 255, .72); color: var(--ink);
  font: 600 12px/1 var(--font); letter-spacing: .08em; text-transform: uppercase; cursor: pointer;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.night .theme-toggle { background: rgba(10, 20, 36, .6); color: #fff; border-color: rgba(255, 255, 255, .3); }
.tagline {
  position: absolute; z-index: 3; top: 6.5%; left: 4%; margin: 0;
  font: 800 clamp(15px, 3.7vw, 64px)/.95 var(--font); letter-spacing: -.03em;
  color: var(--ink); transition: color .4s;
}
.night .tagline { color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, .45); }
.tagline .ln { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.tagline .ln > span { display: block; }
@media (min-width: 701px) {
  .tagline { top: calc(var(--header-h) + 3%); }
  .theme-toggle { top: calc(var(--header-h) + 14px); }
}
@media (max-width: 700px) {
  .theme-toggle { top: 8px; right: 8px; width: 36px; height: 36px; padding: 0; justify-content: center; font-size: 15px; }
  .theme-toggle .label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

/* Ride hint: a platform countdown-board notice that points visitors at the stops */
.ride-hint {
  --amber: #FFB547; z-index: 120; width: min(400px, calc(100vw - 32px)); box-sizing: border-box; padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, .12); border-radius: 16px; background: #0B0D10; color: #fff; text-align: left;
  box-shadow: 0 24px 50px -18px rgba(0, 0, 0, .65); pointer-events: auto;
  opacity: 0; transform: translateY(14px) scale(.97); transition: opacity .35s var(--ease-out), transform .55s var(--ease-out);
}
.ride-hint.is-in { opacity: 1; transform: none; }
.ride-hint.is-docked { position: absolute; left: 63%; bottom: calc(29.08% + 3.4cqw); translate: -50% 0; }   /* above the line, clear of the tagline */
.ride-hint.is-docked::after { content: ""; position: absolute; left: 50%; top: 100%; translate: -50% 0; border: 10px solid transparent; border-top-color: #0B0D10; }
.ride-hint:not(.is-docked) { position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); translate: -50% 0; }
.rh-led { display: flex; align-items: center; gap: 8px; margin: 0 36px 10px 0; font: 700 11px/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .22em; text-transform: uppercase; color: var(--amber); text-shadow: 0 0 8px rgba(255, 181, 71, .55); }
.rh-led i { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 8px var(--amber); animation: rh-blink 1.2s steps(1) infinite; }
@keyframes rh-blink { 50% { opacity: .2; } }
.rh-title { margin: 0; font: 800 22px/1.1 var(--font); letter-spacing: -.02em; }
.rh-body { margin: 8px 0 14px; font: 400 14.5px/1.5 var(--font); color: #C9CED6; }
.rh-bullets { position: relative; top: -.1em; display: inline-flex; gap: 3px; margin: 0 2px; vertical-align: middle; }   /* centred on the line of text */
.rh-bullets .bullet { --size: 20px; font: 800 11px/1 var(--font); }
.rh-acts { display: flex; gap: 10px; margin: 0; }
.rh-acts button { padding: 11px 18px; border-radius: 999px; font: 700 12px/1 var(--font); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.rh-show { border: 0; background: var(--line-yellow); color: var(--ink); }
.rh-ok { border: 1px solid rgba(255, 255, 255, .35); background: none; color: #fff; }
.rh-ok:hover { border-color: #fff; }
.rh-x { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .08); color: #fff; font-size: 13px; cursor: pointer; }
.rh-x:hover { background: rgba(255, 255, 255, .16); }
.ride-hint button:focus-visible { outline: 3px solid var(--line-yellow); outline-offset: 2px; }
.stops.is-hinting .stop { animation: stop-ping 2.4s var(--ease-out) infinite; animation-delay: calc(var(--k) * .18s); }   /* stations light up in turn */
@keyframes stop-ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--c) 75%, transparent); } 60%, 100% { box-shadow: 0 0 0 1.5cqw transparent; } }
@media (prefers-reduced-motion: reduce) {
  .ride-hint { transform: none; transition: opacity .2s; }
  .rh-led i, .stops.is-hinting .stop { animation: none; }
}

/* Stops: the five case studies */
.stops { position: absolute; inset: 0; z-index: 2; pointer-events: none; } /* same box as the art, so it can drift with it */
.stops .stop { pointer-events: auto; }
.stop {
  position: absolute; z-index: 2; top: 70.92%;
  width: 2.456%; aspect-ratio: 1; padding: 0; border: 0; border-radius: 50%;
  background: var(--c); color: #fff; cursor: pointer;
  display: grid; place-items: center;
  font: 800 1.306cqw/1 var(--font);
  transform: translate(-50%, -50%);
  transition: transform .3s var(--ease-out), box-shadow .3s;
}
.stop::before { content: ""; position: absolute; inset: min(-12px, calc((100% - 44px) / 2)); border-radius: 50%; }
.stop:hover, .stop:focus-visible { transform: translate(-50%, -50%) scale(1.12); box-shadow: 0 0 0 .35cqw color-mix(in srgb, var(--c) 45%, transparent), 0 0 1.4cqw var(--c); }
.stop:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.stop.is-active::after {
  content: ""; position: absolute; inset: -.5cqw; border-radius: 50%;
  border: .2cqw solid var(--c); animation: pulse 2s var(--ease-out) infinite;
}
@keyframes pulse { 0% { transform: scale(.9); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }

/* ───────── Case studies: subway platform wall ─────────
   Desktop: the section takes the photo's own 1672:941 ratio, so the station
   sign, "9 ST" mosaic and right column all stay in frame, unstretched, and the
   display sits in the open brick area. Tablet/phone: the section grows to fit
   the display and the wall is cover-cropped (decorative edges may crop). */
.cases {
  position: relative;
  width: 100%;
  overflow-x: clip; /* off-stage panels slide in from the sides */
  isolation: isolate; /* lets the wall-mount brackets sit behind the screens but on the wall */
  aspect-ratio: 1672 / 941;
  background: #2a2a2a url("assets/img/brickwall.webp") center / 100% 100% no-repeat;
}
@media (max-width: 1000px) {
  .cases { background-image: url("assets/img/brickwall-1000.webp"); }
}
/* Night: the same wall with the station lights down. A navy wash dims the photo, and a soft blue glow
   behind the screens reads as their light spilling onto the bricks. Day mode is untouched. */
.night .cases {
  --night-wall: radial-gradient(ellipse 42% 50% at 57% 42%, rgba(70, 110, 200, .2), transparent 72%),
                linear-gradient(rgba(6, 12, 26, .58), rgba(6, 12, 26, .7));
  background-image: var(--night-wall), url("assets/img/brickwall.webp");
}
@media (max-width: 1000px) {
  .night .cases { background-image: var(--night-wall), url("assets/img/brickwall-1000.webp"); }
}
.night .cases-bench { filter: brightness(.42) saturate(.8) drop-shadow(0 3px 2px rgba(0, 0, 0, .6)); }
/* Wooden platform bench, left of the screens (desktop, where the wall keeps the photo's 1672×941 ratio).
   Feet on the floor tiles just in front of the baseboard (photo y≈852), back against the tile wall. */
.cases-bench {
  position: absolute; z-index: 0; pointer-events: none;
  left: 1.5%; width: 37%; height: auto; bottom: 8.6%; max-width: none;
  filter: drop-shadow(0 3px 2px rgba(20, 12, 4, .55)) drop-shadow(10px 16px 14px rgba(40, 24, 8, .35));
}
@media (max-width: 1100px) { .cases-bench { display: none; } }
.cases-stage {
  /* The open brick area: below the sign, between the "9 ST" mosaic and the column,
     above the dark baseboard. Two portrait screens hang here. */
  position: absolute;
  left: 16.5%; right: 9.5%; top: 15.5%; bottom: 29%;
  container-type: size;
}
.carousel {
  --arrow: clamp(52px, 4.4vw, 80px);
  --kh: 100cqh;                      /* screen height = the brick area's height */
  height: 100%;
  display: flex; align-items: center; justify-content: center;
  gap: clamp(18px, 3cqw, 48px);
}
.screens { display: flex; align-items: stretch; gap: clamp(14px, 2.4cqw, 34px); height: var(--kh); }
.panels { position: relative; width: calc(var(--kh) * .7); }

/* Kiosk: dark beveled bezel around a navy screen, hung on the tile.
   The Selected Work bezel (.panels) stays put; only its screen content slides. */
.kiosk, .panels {
  --scr: #0A1A3C; --scr-2: #0D2350; --band: #1450D8; --rule-scr: rgba(255, 255, 255, .13);
  padding: calc(var(--kh) * .022);
  border-radius: 9px;
  background: linear-gradient(160deg, #2c313a 0%, #13161c 34%, #05070b 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .22), inset 1px 0 0 rgba(255, 255, 255, .08), inset 0 -2px 0 rgba(0, 0, 0, .75),
    0 1px 0 rgba(255, 255, 255, .25),
    /* cast onto the tile behind: offset down-right, no contact shadow underneath */
    14px 22px 30px -6px rgba(70, 40, 10, .45), 4px 8px 10px -2px rgba(40, 22, 6, .35);
  color: #fff;
}
/* Wall mount: a steel bracket peeking out above each screen, with two bolts */
.kiosk { position: relative; }
.kiosk::before, .panels::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: calc(var(--kh) * -.035);
  width: 38%; height: calc(var(--kh) * .05); translate: -50% 0;
  border-radius: 3px;
  background:
    radial-gradient(circle, #9aa3ad 0 2px, #3a4049 2.5px 3.5px, transparent 4px) 22% 50% / 12px 12px no-repeat,
    radial-gradient(circle, #9aa3ad 0 2px, #3a4049 2.5px 3.5px, transparent 4px) 78% 50% / 12px 12px no-repeat,
    linear-gradient(180deg, #4b525c, #1f242b);
  box-shadow: 0 2px 4px rgba(40, 22, 6, .45);
}
.kiosk-map { width: calc(var(--kh) * .7); } /* same size as the Selected Work screen */
.panels-view { /* the glass: clips slides so they never cross the bezel */
  position: absolute; inset: calc(var(--kh) * .022);
  overflow: hidden; border-radius: 3px; background: var(--scr); touch-action: pan-y;
}
.panel {
  --c: var(--line-red);
  position: absolute; inset: 0;
  visibility: hidden; transform: translateX(100%);              /* waiting off-screen right */
  transition: transform .6s var(--ease-brake), visibility 0s .6s;
}
.panel.is-active { visibility: visible; transform: translateX(0); transition: transform .6s var(--ease-brake), visibility 0s; }
.panel.is-leaving { visibility: visible; transform: translateX(-100%); transition: transform .6s var(--ease-brake), visibility 0s .6s; }
.panel.no-anim { transition: none !important; }
.screen {
  position: relative; height: 100%; overflow: hidden;
  display: flex; flex-direction: column;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--scr-2), var(--scr) 55%);
  box-shadow: inset 0 0 0 2px #02050b, inset 0 0 28px rgba(0, 0, 0, .5);
  font-size: calc(var(--kh) * .026);
}
.screen::after { /* glass sheen */
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(118deg, rgba(255, 255, 255, .08) 0%, rgba(255, 255, 255, 0) 30%);
}
.scr-head { display: flex; align-items: center; gap: .7em; padding: 1em 1.1em .9em; }
.scr-mark { display: grid; place-items: center; width: 2.2em; aspect-ratio: 1; border-radius: 50%; background: #1E7BFF; font: 900 italic .8em/1 var(--font); letter-spacing: -.03em; flex: none; }
.scr-station { font: 700 1.35em/1 var(--font); color: #4DA3FF; letter-spacing: -.01em; }
.scr-clock { margin-left: auto; font: 700 1.25em/1 var(--font); color: #4DA3FF; font-variant-numeric: tabular-nums; }
.scr-band { display: flex; justify-content: space-between; align-items: center; gap: 1em; padding: .5em 1.1em; background: var(--band); font: 600 1em/1.1 var(--font); }

/* Project screen */
.scr-arrival { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .3em .8em; align-items: center; padding: .9em 1.1em .7em; }
.scr-arrival .bullet { --size: calc(var(--kh) * .085); font-size: calc(var(--size) * .56); grid-row: span 2; }
.slide-title { font: 700 1.55em/1.05 var(--font); letter-spacing: -.015em; }
.slide-via { font: 400 .95em/1.25 var(--font); color: #C9D6EE; }
.scr-outcome { display: flex; justify-content: space-between; align-items: baseline; gap: .8em; margin: 0 1.1em; padding: .55em 0; border-block: 1px solid var(--rule-scr); }
.scr-outcome span { font: 500 .85em/1.2 var(--font); color: #C9D6EE; }
.scr-outcome b { font: 700 1.45em/1 var(--font); font-variant-numeric: tabular-nums; white-space: nowrap; }
.scr-outcome b .arrow { color: var(--c); margin-inline: .1em; }
/* Project screenshot: fixed 16:9 frame (no layout shift), whole image shown, never stretched or cropped. */
.slide-media { position: relative; flex: none; margin: .8em 1.1em 0; overflow: hidden; border-radius: 3px; background: #F3F4F1; box-shadow: 0 0 0 1px var(--rule-scr); }
.slide-media picture, .slide-media img { display: block; width: 100%; height: auto; }   /* the image sets the frame's height, so the whole screenshot shows in every browser */
/* Selected Work screen: nothing shrinks (the 16:9 image stays whole); spacing is tighter than the Line Map's. */
.panel .screen > * { flex-shrink: 0; }
.panel .scr-head { padding: .75em 1.1em .65em; }
.panel .scr-arrival { padding: .6em 1.1em .45em; }
.panel .scr-outcome { padding: .4em 0; }
.panel .slide-media { margin-top: .55em; }
.panel .slide-desc { margin-top: .5em; }
.panel .slide-row { margin: .35em 1.1em .55em; }
.panel .slide-cta { margin: auto 1.1em .9em; padding: .75em 1em; }
/* Previous / next inside the "Now arriving" band */
.scr-step { display: inline-flex; align-items: center; gap: .45em; }
.step-btn {
  display: grid; place-items: center; width: 1.7em; height: 1.7em; padding: 0; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .08); color: #fff;
  font: 700 1.05em/1 var(--font); cursor: pointer; transition: background .2s, color .2s;
}
.step-btn:hover { background: #fff; color: var(--band); }
.slide-desc { flex: none; margin: .7em 1.1em 0; font: 400 .95em/1.4 var(--font); color: #E3EAF7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 700px) { .slide-desc { -webkit-line-clamp: 4; } }
.slide-row { display: flex; gap: .7em; margin: .5em 1.1em 0; font: 500 .85em/1.3 var(--font); }
.row-label { color: #4DA3FF; font-weight: 600; flex: none; }
.row-value .ph { font-style: italic; color: #C9D6EE; }
.slide-cta { align-self: stretch; justify-content: center; margin: .8em 1.1em 1.1em; padding: .9em 1em; background: #fff; color: var(--scr); font-size: .82em; }
.slide-cta:hover, .slide-cta:focus-visible { color: #fff; }

/* Line map screen, modeled on the platform "Next train" display */
.kiosk-map .scr-head { padding-block: 1.1em 1em; }
.map-now { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .2em .8em; align-items: center; padding: 1em 1.1em .8em; }
.map-now .bullet { --size: calc(var(--kh) * .1); font-size: calc(var(--size) * .58); grid-row: span 2; }
.map-now-title { font: 700 1.45em/1.05 var(--font); letter-spacing: -.015em; }
.map-now-via { font: 400 .95em/1.25 var(--font); color: #C9D6EE; grid-column: 2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.map-now-status { grid-column: 3; grid-row: 1 / span 2; align-self: start; text-align: right; font: 700 1.35em/1 var(--font); font-variant-numeric: tabular-nums; white-space: nowrap; }
.map-now-status small { display: block; margin-top: .35em; font: 500 .62em/1.2 var(--font); color: #C9D6EE; }

.strip {
  --node: 1.15em; --trunk: .55em; --col: 6.8em; --gap: 1.05em;         /* trunk sits after the transfer-bullet column */
  flex: 1; position: relative; list-style: none; margin: 0; padding: .6em 1.1em 1em;
  display: flex; flex-direction: column;
}
.strip li { position: relative; flex: 1; display: flex; align-items: center; }
.strip li:not(:last-child)::after { /* trunk segment from this stop's center to the next, so the line starts and ends inside the end circles */
  content: ""; position: absolute; top: 50%; height: 100%; left: calc(var(--col) - var(--trunk) / 2);
  width: var(--trunk); background: var(--map-c, var(--line-yellow)); transition: background .5s;
}
.strip-stop {
  position: relative; z-index: 1; width: 100%;
  display: grid; grid-template-columns: calc(var(--col) - var(--node) / 2 - var(--gap)) var(--node) minmax(0, 1fr); align-items: center; column-gap: var(--gap);
  padding: .25em 0; border: 0; background: transparent; color: #fff; cursor: pointer; text-align: left; font: inherit;
}
.strip-xfer { display: flex; justify-content: flex-end; gap: .25em; }
.strip-xfer .bullet { --size: calc(var(--kh) * .042); font-size: calc(var(--size) * .55); }
.strip-node { width: var(--node); height: var(--node); border-radius: 50%; background: var(--map-c, var(--line-yellow)); transition: background .5s, transform .3s var(--ease-out); }
.strip-name { justify-self: start; padding: .22em .65em; margin-left: 0; border-radius: 999px; font: 500 1.08em/1.15 var(--font); color: #E3EAF7; transition: background .3s, color .3s; }
.strip-stop:hover .strip-name { background: rgba(255, 255, 255, .1); }
.strip-stop[aria-current="true"] .strip-name { background: #F7E6CC; color: #0A1424; font-weight: 700; }
.strip-stop[aria-current="true"] .strip-node { transform: scale(1.2); box-shadow: 0 0 0 .18em var(--scr), 0 0 0 .34em #F7E6CC; }

.later-head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) auto; }
.map-later { padding: .2em 0 .6em; }
.later-row {
  display: grid; grid-template-columns: auto minmax(0, 1.2fr) minmax(0, 1fr) auto; gap: .7em; align-items: center;
  width: 100%; padding: .55em 1.1em; border: 0; background: transparent; color: #fff; text-align: left; cursor: pointer; font: inherit;
}
.later-row + .later-row { border-top: 1px solid var(--rule-scr); }
.later-row .bullet { --size: calc(var(--kh) * .045); font-size: calc(var(--size) * .55); }
.later-name { font: 600 1em/1.2 var(--font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.later-org { font: 400 .85em/1.2 var(--font); color: #C9D6EE; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.later-year { font: 600 .95em/1 var(--font); font-variant-numeric: tabular-nums; }
.later-row:hover .later-name { text-decoration: underline; text-underline-offset: 3px; }
.kiosk :focus-visible, .panel :focus-visible { outline: 3px solid var(--line-yellow); outline-offset: 2px; }

/* Tablet: section grows; screens keep a fixed comfortable height. */
@media (max-width: 1100px) {
  /* Anchor the wall to the bottom and keep the baseboard and floor clear, so the screens hang on the tile. */
  .cases { aspect-ratio: auto; background-size: cover; background-position: 100% 100%; padding: clamp(96px, 14vw, 130px) max(12px, 3vw) clamp(150px, 21vw, 230px); }
  .cases-stage { position: relative; inset: auto; container-type: normal; }
  .carousel { --kh: clamp(460px, 62vw, 560px); height: auto; gap: 14px; }
}
/* Phones only (portrait, or landscape with a short touch screen): the Selected Work screen is enough, so the Line Map is left out. */
@media (max-width: 700px), (pointer: coarse) and (max-height: 500px) {
  .kiosk-map { display: none; }
}
/* Phone: project screen full width, arrows beside the count. */
@media (max-width: 700px) {
  .cases { height: auto; padding: 150px 12px 56px; background-position: 6% 50%; }
  .carousel { --kh: 600px; display: block; }
  .screens { flex-direction: column; height: auto; gap: 34px; }
  .panels { width: 100%; height: 600px; }
  .kiosk-map { width: 100%; --kh: 600px; height: 600px; }
  .screen { font-size: 15px; }
  .slide-cta { min-height: 52px; }
  .strip-stop, .later-row { min-height: 48px; }
}

/* ───────── Station: the "Maurice's UX Design" train arrives at Fulton St ─────────
   One coordinate box (.st-scene) with the station photo's 1672×941 ratio holds every layer, so the
   background, train and foreground platform scale together. Train at 0.8× its 2172×724 artwork:
   wheels (art y 615) on the near rail at station y 774; doorway (art x 990–1184) centered at x 836.
   Kit layers: interior + door leaves inside the doorway clip (x 990, y 215, 194×282), body on top. */
.fulton { position: relative; background: #0c0d0f; }
/* Animated: the doorway's dark is a curtain over the Method car parked underneath (see script.js). */
.fulton.st-anim { z-index: 2; background: transparent; }
.fulton.st-anim + .method, .fulton.st-anim ~ .method { z-index: 1; }
.st-pin { position: relative; height: 100vh; height: 100svh; overflow: hidden; container-type: size; }
.st-scene {
  /* Cover the section and stay centered on the doorway. Sized from the section's own box (cq units, which
     ignore scrollbars) and placed with left/top instead of a CSS translate, so GSAP's zoom transform can't
     knock it off-center and leave a gap at the edge. */
  --sw: max(100cqw, 100cqh * 1672 / 941);
  position: absolute; width: var(--sw); aspect-ratio: 1672 / 941;
  left: calc(50cqw - var(--sw) / 2); top: calc(50cqh - var(--sw) * 941 / 1672 / 2);
}
.st-bg, .st-platform { position: absolute; left: 0; width: 100%; max-width: none; }
.st-bg { top: 0; height: 100%; }
.st-platform { top: 82.891%; height: 17.109%; z-index: 3; }   /* foreground lip + yellow edge */
.st-train {
  position: absolute; z-index: 2; left: -2.010%; top: 29.968%; width: 103.923%; height: 61.552%;
  will-change: transform;
}
.st-body { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; max-width: none; }
.st-doorway { position: absolute; z-index: 1; overflow: hidden; left: 45.580%; top: 29.696%; width: 8.932%; height: 38.950%; }
.st-layer { position: absolute; max-width: none; width: 1119.588%; height: 256.738%; left: -510.309%; top: -76.241%; }
.st-glow { /* warm interior light, brighter as the doors open */
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen; opacity: var(--glow, .25);
  background: radial-gradient(120% 70% at 50% 18%, rgba(255, 196, 110, .85), rgba(255, 150, 60, .25) 55%, transparent 80%);
}
.st-skip {
  position: absolute; z-index: 5; right: max(16px, 3vw); top: calc(var(--header-h) + 18px);
  padding: 11px 16px; border-radius: 999px; background: rgba(241, 241, 239, .92); color: var(--ink);
  font: 600 12px/1 var(--font); letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
}
.st-skip:hover { background: #fff; }
/* Static (reduced motion / no GSAP): train parked, doors open, interior lit. */
.fulton:not(.st-anim) .st-door-l { transform: translateX(-4.466%); }
.fulton:not(.st-anim) .st-door-r { transform: translateX(4.466%); }
.fulton:not(.st-anim) .st-glow { --glow: 1; }
.fulton:not(.st-anim) .st-pin { height: 80vh; height: 80svh; }
.st-still { display: none; }
/* Phones: a still picture instead of the scroll animation (no pin, no 11 MB of layers). */
@media (max-width: 700px) {
  .st-pin, .fulton:not(.st-anim) .st-pin { height: auto; }
  .st-scene, .st-enter, .st-skip { display: none; }
  .st-still { display: block; width: 100%; height: min(78svh, 135vw); object-fit: cover; object-position: 50% 60%; }
}

/* ───────── Method: inside the car ─────────
   Backdrop = the kit's warm interior photo (also used for the Fulton zoom, so the hand-off is seamless).
   Desktop pins: an amber LED ticker runs, the headline rises, then an "MB" rider travels the glowing route;
   every stop it passes lights, and the digital ad screen for its line comes forward. */
.car-backdrop {
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(255, 186, 100, .18), transparent 60%),
    linear-gradient(180deg, rgba(7, 9, 13, .55) 0%, rgba(7, 9, 13, .74) 45%, rgba(7, 9, 13, .9) 100%),
    url("assets/img/car-interior.webp") 50% 38% / cover no-repeat;
}
.st-enter { position: absolute; inset: 0; z-index: 6; opacity: 0; pointer-events: none; background: #07090d; }   /* through the doorway: black, then the car fades up */
.method { position: relative; background: #07090d; color: #fff; overflow: hidden; }
.m-pin { position: relative; min-height: 100vh; min-height: 100svh; }
.m-bg { position: absolute; inset: -4% 0; }
.m-ui {
  position: relative; z-index: 2; min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-rows: auto auto auto minmax(0, 1fr); row-gap: clamp(14px, 2.4vh, 26px);
  padding: calc(var(--header-h) + clamp(10px, 2vh, 20px)) var(--gutter) clamp(24px, 4vh, 44px);
}

/* Amber dot-matrix ticker */
.m-ticker {
  position: relative; overflow: hidden; border-radius: 8px; padding: 10px 0;
  background: #050505; box-shadow: inset 0 0 0 1px #24262a, 0 10px 24px -14px #000;
}
.m-ticker::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle, transparent 0 .9px, rgba(5, 5, 5, .6) 1.3px) 0 0 / 3px 3px; }
/* Seamless right-to-left loop: two identical groups; the track slides exactly one group width, then repeats. */
.m-ticker-track { display: flex; width: max-content; animation: ticker 32s linear infinite; }
.m-ticker-group { display: flex; flex: none; }
.m-ticker-track span { flex: none; padding-right: 56px; font: 700 clamp(13px, 1.05vw, 16px)/1 var(--font); letter-spacing: .24em; text-transform: uppercase; color: #FFB21E; text-shadow: 0 0 8px rgba(255, 178, 30, .7); white-space: nowrap; }
.m-ticker-track span::after { content: "◆"; margin-left: 56px; color: #8a5a10; text-shadow: none; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .m-ticker-track { animation: none; } }
.m-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.m-kicker { order: 2; display: inline-flex; align-items: center; gap: 10px; padding: 9px 14px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font: 600 12px/1 var(--font); letter-spacing: .14em; text-transform: uppercase; }
.m-live-dot { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 4px rgba(61, 220, 132, .2); animation: live 1.6s ease-in-out infinite; }
@keyframes live { 50% { box-shadow: 0 0 0 7px rgba(61, 220, 132, 0); } }
.m-title { font: 900 clamp(44px, 6.4vw, 112px)/.86 var(--font); letter-spacing: -.05em; text-wrap: balance; }
.m-title .ln { display: inline-block; overflow: hidden; padding-bottom: .24em; margin-bottom: -.18em; vertical-align: bottom; }   /* room for descenders (p, y) inside the reveal mask */
.m-title .ln > span { display: inline-block; }
.m-title .ln + .ln > span { color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .85); }

/* Glowing route with a rider */
.m-route { --p: 1; position: relative; list-style: none; margin: 0; padding: 0; height: 64px; }
.mr-seg { position: absolute; top: 12px; height: 4px; left: calc(var(--i) * 33.333%); width: 33.333%; background: color-mix(in srgb, var(--c) 35%, transparent); }
.mr-seg::after { content: ""; position: absolute; inset: 0; background: var(--c); box-shadow: 0 0 12px var(--c); transform-origin: left;
  transform: scaleX(clamp(0, calc((var(--p) - var(--i) / 3) * 3), 1)); }
.mr-stop { position: absolute; top: 0; left: calc(var(--at) * 100%); translate: -50% 0; display: grid; justify-items: center; gap: 10px; width: 10.5%; text-align: center; }
.mr-dot { width: 28px; height: 28px; border-radius: 50%; border: 3px solid color-mix(in srgb, var(--c) 55%, transparent); background: #0b0d12; transition: background .3s, border-color .3s, box-shadow .3s; }
.mr-lbl { font: 500 clamp(10px, .82vw, 12.5px)/1.25 var(--font); color: rgba(255, 255, 255, .55); transition: color .3s; }
.mr-stop.is-lit .mr-dot { background: #fff; border-color: var(--c); box-shadow: 0 0 0 3px rgba(0, 0, 0, .4), 0 0 16px var(--c); }
.mr-stop.is-lit .mr-lbl { color: #fff; }
.mr-rider { position: absolute; top: -2px; left: calc(var(--p) * 100%); translate: -50% 0; z-index: 2; }
.mr-rider span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #fff; color: #0A1424; font: 900 italic 12px/1 var(--font); box-shadow: 0 0 0 4px rgba(255, 255, 255, .2), 0 0 24px rgba(255, 255, 255, .7); }

/* Digital ad screens */
.m-screens { min-height: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 26px); align-items: stretch; }
.m-screen {
  --c: var(--line-red);
  position: relative; overflow: hidden; min-height: 0; isolation: isolate;
  display: flex; flex-direction: column; gap: clamp(8px, 1.3vh, 14px);
  padding: clamp(18px, 2vw, 30px);
  border-radius: 16px;
  background: linear-gradient(165deg, rgba(24, 27, 34, .94), rgba(6, 8, 12, .96));
  border: 1px solid rgba(255, 255, 255, .09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 24px 40px -24px #000;
  transition: opacity .5s, transform .6s var(--ease-out), box-shadow .5s, filter .5s;
}
.m-screen::before { /* LED edge in the line color */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--c); box-shadow: 0 0 18px 2px var(--c);
}
.m-screen::after { /* glass sheen + scanlines */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, .07) 0 18%, transparent 40%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 3px),
    radial-gradient(90% 70% at 100% 100%, color-mix(in srgb, var(--c) 30%, transparent), transparent 70%);
}
.ms-top { display: flex; align-items: center; gap: 10px; font: 600 11px/1 var(--font); letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.ms-bullet { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--c); color: #fff; font: 900 15px/1 var(--font); }
.ms-live { margin-left: auto; padding: 5px 8px; border-radius: 999px; border: 1px solid var(--c); color: #fff; opacity: 0; transition: opacity .4s; }
.ms-num { position: absolute; right: -.04em; bottom: -.2em; z-index: -1; font: 900 clamp(120px, 13vw, 220px)/1 var(--font); letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1.5px color-mix(in srgb, var(--c) 70%, transparent); opacity: .55; }
.m-screen h3 { font: 800 clamp(22px, 2.1vw, 34px)/1.02 var(--font); letter-spacing: -.03em; text-wrap: balance; }
.ms-desc { font: 400 clamp(14px, 1.1vw, 17px)/1.45 var(--font); color: rgba(255, 255, 255, .78); max-width: 30ch; }
.ms-stops { list-style: none; margin: auto 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ms-stops li { padding: 8px 12px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); font: 500 clamp(12px, .9vw, 14px)/1.2 var(--font); }
/* Ride state (desktop): the current line's screen comes forward */
.method.m-ride .m-screen { opacity: .42; transform: scale(.965); filter: saturate(.55); }
.method.m-ride .m-screen.is-active { opacity: 1; transform: none; filter: none; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 0 0 1px var(--c), 0 0 44px -10px var(--c), 0 30px 50px -26px #000; }
.method.m-ride .m-screen.is-active .ms-live { opacity: 1; }
.method:not(.m-ride) .mr-stop .mr-dot { background: #fff; border-color: var(--c); }
.method:not(.m-ride) .mr-lbl { color: #fff; }
.method:not(.m-ride) .mr-rider { display: none; }

@media (max-width: 900px) {
  .m-ui { grid-template-rows: none; padding-top: 48px; }
  .m-route { display: none; }
  .m-screens { grid-template-columns: 1fr; }
  .m-screen { min-height: 280px; }
}

/* ───────── About: "My route into design" (scoped to .about-routes) ─────────
   Off-white page; subway-style career map on the left, route details with circular skill badges on the right.
   Blue A/C and orange B/D follow NYC bullet colors. Stacks map-over-details on narrow screens. */
.about-routes { background: var(--offwhite); color: #101c29; }
.about-routes .am-wrap { max-width: 1500px; margin-inline: auto; padding: clamp(80px, 9vw, 140px) var(--gutter) clamp(40px, 5vw, 64px); }
.about-routes .sign { background: var(--ink); color: var(--offwhite); margin-bottom: 0; }
.about-routes .am-layout { display: grid; grid-template-columns: 1.12fr 1fr; gap: clamp(44px, 4vw, 60px); margin-top: 20px; }
.about-routes .am-map-col { min-width: 0; }
.about-routes .am-h1 { font: 900 clamp(35px, 4.5vw, 66px)/1.02 var(--font); letter-spacing: -.05em; margin: 12px 0 14px; }
.about-routes .am-hint { font-size: 15px; color: #647078; line-height: 1.6; }
.about-routes .am-map { display: block; width: 100%; overflow: visible; }
.about-routes .am-track { fill: none; stroke-width: 13; stroke-linecap: round; stroke-linejoin: round; transition: opacity .2s, filter .2s; }
.about-routes .am-route { cursor: pointer; outline: none; }
.about-routes .am-hit { fill: none; stroke: transparent; stroke-width: 40; }
.about-routes .am-route:not(.is-active) .am-track { opacity: .3; }
.about-routes .am-route.is-active .am-track { filter: url(#am-softShadow); }
.about-routes .am-route:hover:not(.is-active) .am-track { opacity: .55; }
.about-routes .am-station { fill: #fff; stroke: #182938; stroke-width: 2.5; }
.about-routes .am-route:not(.is-active) .am-station { opacity: .5; }
.about-routes .am-bullet { filter: url(#am-badgeShadow); }
.about-routes .am-route text.am-dark { fill: #111; }
.about-routes .am-route text { fill: #fff; text-anchor: middle; font: 800 25px var(--font); pointer-events: none; }
.about-routes .am-route:focus-visible .am-bullet { stroke: #101c29; stroke-width: 4; }
.about-routes .am-caption { font: 400 12px var(--font); fill: #6e777d; }
.about-routes .am-tabs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.about-routes .am-tab { grid-column: span 2; }                       /* 3 + 2 rows; the last two share the second row evenly */
.about-routes .am-tab:nth-child(4), .about-routes .am-tab:nth-child(5) { grid-column: span 3; }
/* Two per row wherever three would squeeze the labels: phones, and mid widths where the map and details sit side by side. */
@media (max-width: 520px), (min-width: 851px) and (max-width: 1180px) {
  .about-routes .am-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-routes .am-tab, .about-routes .am-tab:nth-child(4) { grid-column: span 1; }
  .about-routes .am-tab:nth-child(5) { grid-column: span 2; }
}
.about-routes .am-tab {
  display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 12px; text-align: left;
  border: 1px solid #deded8; border-radius: 9px; background: transparent; color: #34424b; cursor: pointer;
  font: 500 15px/1.2 var(--font); transition: background .2s, border-color .2s, box-shadow .2s;
}
.about-routes .am-tab:hover { border-color: #b9bdb6; }
.about-routes .am-tab[aria-selected="true"] { background: #fff; border-color: var(--route); color: #14212b; font-weight: 700; box-shadow: 0 4px 16px rgba(16, 37, 50, .06); }
.about-routes .am-mini { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--route); color: var(--route-ink, #fff); font: 800 15px/1 var(--font); box-shadow: inset 0 2px 2px rgba(255, 255, 255, .38), 0 2px 4px rgba(0, 0, 0, .13); }
.about-routes .am-details { min-width: 0; border-left: 1px solid #dcded8; padding: 24px 0 0 clamp(44px, 4vw, 60px); }
.about-routes .am-detail-top { display: flex; align-items: center; gap: 18px; }
.about-routes .am-badge {
  display: grid; place-items: center; width: 74px; height: 74px; border-radius: 50%;
  background: var(--am-active); color: var(--am-ink, #fff); font: 800 43px/1 var(--font); border: 1px solid rgba(255, 255, 255, .63);
  box-shadow: inset 0 3px 3px rgba(255, 255, 255, .4), inset 0 -4px 6px rgba(0, 0, 0, .13), 0 6px 10px rgba(0, 0, 0, .13);
  transition: background .3s;
}
.about-routes .am-line { font: 700 11px/1 var(--font); letter-spacing: .22em; text-transform: uppercase; }
.about-routes .am-headline { font: 900 clamp(34px, 4vw, 58px)/1.02 var(--font); letter-spacing: -.045em; margin: 28px 0 16px; max-width: 520px; text-wrap: balance; }
.about-routes .am-role { font: 800 20px/1.2 var(--font); letter-spacing: -.02em; margin: 0 0 14px; }
.about-routes .am-story { font-size: 17px; line-height: 1.65; color: #58636a; max-width: 530px; margin-bottom: 28px; }
.about-routes .am-label { font: 700 10px/1 var(--font); letter-spacing: .2em; text-transform: uppercase; margin: 24px 0 16px; }
.about-routes .am-skills { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 21px 12px; }
.about-routes .am-skill { min-width: 0; text-align: center; }
.about-routes .am-skill-badge {
  display: grid; place-items: center; margin: auto; width: clamp(53px, 5vw, 76px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 33% 20%, rgba(255, 255, 255, .15), transparent 60%), var(--am-active);
  color: var(--am-ink, #fff); font: 800 18px/1 var(--font); border: 1px solid rgba(255, 255, 255, .5);
  box-shadow: inset 0 2px 3px rgba(255, 255, 255, .44), inset 0 -4px 6px rgba(0, 0, 0, .13), 0 5px 7px rgba(0, 0, 0, .13);
}
.about-routes .am-skill-name { margin-top: 10px; font-size: 12.5px; line-height: 1.35; overflow-wrap: anywhere; }
.about-routes .am-methods { display: flex; flex-wrap: wrap; gap: 8px; }
.about-routes .am-method { padding: 8px 11px; border: 1px solid #d9dedc; border-radius: 30px; background: rgba(255, 255, 255, .33); font-size: 12.5px; }
.about-routes .am-foot { display: flex; justify-content: space-between; gap: 20px; margin-top: 40px; padding-top: 18px; border-top: 1px solid #dcdfda; color: #68737a; font-size: 12px; }
.about-routes .am-tab:focus-visible { outline: 3px solid #0c67b0; outline-offset: 4px; }
.about-routes .is-updated { animation: am-arrive .25s ease-out; }
/* Night: the route map follows the page theme instead of staying a light block between dark sections. */
.night .about-routes { background: var(--navy); color: var(--offwhite); }
.night .about-routes .sign { background: var(--offwhite); color: var(--navy); }
.night .about-routes .am-hint, .night .about-routes .am-story, .night .about-routes .am-foot { color: #A7B1C0; }
.night .about-routes .am-grid { stroke: #23344f; }
.night .about-routes .am-route:not(.is-active) .am-track { opacity: .42; }
.night .about-routes .am-caption { fill: #8C97A8; }
.night .about-routes .am-station { fill: var(--navy); stroke: #E3EAF7; }
.night .about-routes .am-route:focus-visible .am-bullet { stroke: #fff; }
.night .about-routes .am-tab { border-color: #2A3B57; color: #D5DCE6; }
.night .about-routes .am-tab:hover { border-color: #4A5D7C; }
.night .about-routes .am-tab[aria-selected="true"] { background: var(--navy-2); color: #fff; box-shadow: 0 4px 16px rgba(0, 0, 0, .3); }
.night .about-routes .am-tab:focus-visible { outline-color: #6FA8FF; }
.night .about-routes .am-details { border-color: #2A3B57; }
.night .about-routes .am-method { border-color: #2A3B57; background: rgba(255, 255, 255, .04); }
.night .about-routes .am-foot { border-color: #2A3B57; }
@keyframes am-arrive { from { opacity: .5; transform: translateY(7px); } to { opacity: 1; transform: none; } }
@media (max-width: 850px) {
  .about-routes .am-layout { grid-template-columns: 1fr; gap: 25px; }
  .about-routes .am-details { border-left: 0; border-top: 1px solid #dcded8; padding: 28px 0 0; }
  .about-routes .am-map { max-width: 620px; margin: auto; }
  .about-routes .am-headline { font-size: 42px; }
  .about-routes .am-skill-badge { width: 68px; }
  .about-routes .am-foot { flex-direction: column; }
}
@media (max-width: 400px) {
  .about-routes .am-skills { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .about-routes .am-tab { padding: 9px; font-size: 13px; }
  .about-routes .am-headline { font-size: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  .about-routes .is-updated { animation: none; }
  .about-routes .am-track, .about-routes .am-badge, .about-routes .am-tab { transition: none; }
}

/* ───────── Work / route map ───────── */
/* Rounded bottom corners over the dark Contact section, which tucks up underneath them. */
.work { --work-r: clamp(24px, 3.5vw, 48px); position: relative; z-index: 1; background: var(--bg); padding-top: clamp(96px, 12vw, 160px); border-radius: 0 0 var(--work-r) var(--work-r); }
.work-pin { overflow: hidden; padding-bottom: clamp(64px, 8vw, 120px); }
/* Designs: two "car cards", each riding its own line. */
.dz-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 2vw, 28px); margin-top: clamp(32px, 4vw, 56px); }
.dz-card {
  --dz: var(--line-blue); --dz-card: #fff; --dz-ink: var(--fg);
  position: relative; display: flex; flex-direction: column; gap: clamp(18px, 1.8vw, 24px);
  padding: clamp(22px, 2.6vw, 36px); padding-top: calc(clamp(22px, 2.6vw, 36px) + 6px);
  background: var(--dz-card); color: var(--dz-ink); border: 1.5px solid var(--fg); border-radius: 22px; overflow: hidden;
  box-shadow: 0 0 0 0 var(--dz); transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out);
}
.night .dz-card { --dz-card: var(--navy-2); border-color: rgba(241, 241, 239, .55); }
.dz-card::before { /* the car's colored stripe */
  content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: var(--dz);
}
.dz-card:hover { transform: translate(-4px, -4px); box-shadow: 8px 8px 0 0 var(--dz); }
.dz-top { display: flex; align-items: center; gap: 12px; }
.dz-bullet { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--dz); color: #fff; font: 800 15px/1 var(--font); }
.dz-eyebrow { flex: 1; min-width: 0; margin: 0; font: 500 12px/1.3 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-muted); }
.dz-car { flex: none; padding: 5px 9px; border: 1px solid var(--rule); border-radius: 999px; font: 600 10px/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--fg-muted); }
.dz-stat { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 6px 18px; }
.dz-num { display: flex; align-items: baseline; font: 900 clamp(64px, 7.4vw, 112px)/.82 var(--font); letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.dz-sign { color: var(--dz); font-size: .78em; margin-right: .04em; }
.dz-count { display: inline-block; min-width: 2ch; text-align: right; }
.dz-pct { font-size: .62em; margin-left: .04em; }
.dz-lede { flex: 1 1 14em; max-width: 22em; padding-bottom: .3em; font: 500 clamp(16px, 1.25vw, 18px)/1.4 var(--font); }
.dz-rail { /* a short route: line in the card's color with stops along it */
  --dz-draw: 1; position: relative; display: flex; justify-content: space-between; align-items: center; height: 14px;
}
.dz-rail::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px; border-radius: 2px; background: var(--dz); transform: scaleX(var(--dz-draw)); transform-origin: left; }
.dz-rail i { position: relative; width: 14px; height: 14px; border-radius: 50%; background: var(--dz-card); border: 3px solid var(--dz); opacity: var(--dz-draw); }
.dz-rail i:last-child { background: var(--dz); }
.dz-body { color: var(--fg-muted); font-size: clamp(15px, 1.1vw, 17px); line-height: 1.6; max-width: 46ch; }
.night .dz-body { color: #C9D2DF; }
.dz-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding: 0; list-style: none; }
.dz-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border: 1.5px solid currentColor; border-radius: 999px;
  color: var(--dz-ink); font: 700 14px/1 var(--font); text-decoration: none; cursor: pointer;
  transition: background .25s, color .25s, border-color .25s;
}
.dz-chip-arrow { display: inline-block; transition: transform .25s var(--ease-out); }
.dz-chip:hover { background: var(--dz); border-color: var(--dz); color: #fff; }
.dz-chip:hover .dz-chip-arrow { transform: translate(2px, -2px); }
.dz-chip:focus-visible { outline: 3px solid var(--dz); outline-offset: 3px; }
@media (max-width: 860px) {
  .dz-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .dz-card, .dz-chip, .dz-chip-arrow { transition: none; }
  .dz-card:hover { transform: none; }
}

/* ───────── CTA ───────── */
.cta { position: relative; overflow: hidden; background: var(--navy); color: var(--offwhite); margin-top: calc(-1 * clamp(24px, 3.5vw, 48px)); padding-top: calc(clamp(96px, 12vw, 200px) + clamp(24px, 3.5vw, 48px)); }
.cta .sign { background: var(--offwhite); color: var(--navy); }
.cta-title { font: 900 clamp(56px, 13vw, 220px)/.86 var(--font); letter-spacing: -.045em; }
.cta-title > span { display: block; }
.cta-you { color: var(--line-yellow); }
.cta-body { margin-top: 32px; max-width: 40ch; font-size: clamp(18px, 1.6vw, 24px); color: #D5DAE2; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.cta-email { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 24px; padding-bottom: clamp(72px, 9vw, 140px); font: 500 clamp(16px, 1.4vw, 20px)/1.3 var(--font); color: #D5DAE2; }
.cta-email span:first-child { user-select: all; }
.copy-btn { padding: 8px 14px; border: 1px solid rgba(241, 241, 239, .4); border-radius: 999px; background: transparent; color: var(--offwhite); font: 600 11px/1 var(--font); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.copy-btn:hover { background: var(--offwhite); color: var(--navy); }
.copy-status { font-size: 13px; color: var(--line-yellow); }
.cta .btn-primary { background: var(--offwhite); color: var(--navy); }
.cta .btn-primary:hover { color: #fff; }

/* ───────── Footer ───────── */
.footer { background: #000; color: #fff; padding: 32px var(--gutter) 24px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.footer-id { font-size: 14px; }
.footer-lines { display: flex; gap: 10px; }
.footer-lines a { text-decoration: none; }
.footer-lines .bullet { --size: 36px; transition: transform .25s var(--ease-out); }
.footer-lines a:hover .bullet { transform: scale(1.12); }
.footer-links { display: flex; flex-wrap: wrap; gap: 14px 24px; font: 500 12px/1 var(--font); letter-spacing: .1em; text-transform: uppercase; }
.footer-links a { text-decoration: none; white-space: nowrap; }   /* keep each arrow with its label */
.footer-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-legal { margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .18); font-size: 12px; color: #9AA3AF; }

/* ───────── Case study view ───────── */
.case-view { --c: var(--line-blue); background: var(--bg); outline: none; }
.case-hero { /* the project's line, at night: a deep shade of the line colour, a glow of the real colour,
                and the line itself running along the bottom with this project's stop marked */
  --line: var(--c);
  position: relative; overflow: hidden; isolation: isolate; display: grid; grid-template-rows: auto 1fr; gap: clamp(40px, 7vw, 96px);
  min-height: 72vh; min-height: 72svh;
  padding: calc(var(--header-h) + 22px) var(--gutter) clamp(84px, 9vw, 120px);
  background:
    radial-gradient(60% 80% at 88% 8%, color-mix(in srgb, var(--line) 42%, transparent), transparent 62%),
    radial-gradient(40% 60% at 0% 100%, color-mix(in srgb, var(--line) 16%, transparent), transparent 70%),
    linear-gradient(165deg, color-mix(in srgb, var(--line) 20%, #101218) 0%, color-mix(in srgb, var(--line) 9%, #08090d) 100%);
  color: #fff;
}
.ch-ghost { /* the line's letter, huge and outlined, behind everything */
  position: absolute; z-index: -1; right: -.06em; bottom: -.26em; pointer-events: none;
  font: 900 clamp(320px, 62vh, 760px)/1 var(--font); letter-spacing: -.05em;
  color: transparent; -webkit-text-stroke: 2px color-mix(in srgb, var(--line) 55%, transparent); opacity: .55;
}
.ch-track { /* the line itself, with a stop per project; this one is the big marked stop */
  --draw: 1; position: absolute; left: 0; right: 0; bottom: clamp(30px, 3.6vw, 44px); margin: 0; padding: 0 var(--gutter);
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.ch-track::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 10px; margin-top: -5px; background: var(--line); transform: scaleX(var(--draw)); transform-origin: left; }
.ch-track li { position: relative; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px var(--line); opacity: var(--draw); }
.ch-track li.is-here { width: 26px; height: 26px; box-shadow: 0 0 0 5px var(--line), 0 0 0 9px #fff, 0 0 28px 8px color-mix(in srgb, var(--line) 60%, transparent); }
.ch-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; font: 500 12px/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .16em; text-transform: uppercase; }
.ch-back { color: #fff; text-decoration: none; font-weight: 700; display: inline-flex; gap: .6em; padding: 6px 0; }
.ch-back:hover span { transform: translateX(-4px); }
.ch-back span { display: inline-block; transition: transform .25s var(--ease-out); }
.ch-count { color: rgba(255, 255, 255, .85); text-align: right; }
.ch-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 320px); align-items: end; gap: clamp(32px, 6vw, 96px); }
.ch-meta { display: flex; align-items: center; gap: 20px; font: 500 12px/1.4 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .14em; text-transform: uppercase; }
.ch-bullet { display: grid; place-items: center; flex: none; width: clamp(56px, 5vw, 72px); aspect-ratio: 1; border-radius: 50%; background: var(--line); color: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .9); font: 900 clamp(30px, 2.8vw, 40px)/1 var(--font); }
.case-hero .case-title { margin-top: clamp(14px, 1.6vw, 22px); font: 900 clamp(72px, 12vw, 200px)/.86 var(--font); letter-spacing: -.045em; }
.case-title:focus { outline: none; }   /* focused programmatically on arrival, for screen readers */
.ch-tagline { margin-top: clamp(16px, 1.8vw, 26px); max-width: 34ch; font: 400 clamp(19px, 1.9vw, 28px)/1.3 var(--font); text-wrap: pretty; }
.ch-label { font: 500 11px/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .18em; text-transform: uppercase; color: rgba(255, 255, 255, .8); }
.ch-skills { margin-top: 16px; font: 400 clamp(15px, 1.15vw, 17px)/1.55 var(--font); }
.ch-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.ch-chips li { padding: 8px 13px; border: 1px solid color-mix(in srgb, var(--line) 55%, rgba(255, 255, 255, .35)); border-radius: 999px; background: color-mix(in srgb, var(--line) 14%, transparent); font: 500 13.5px/1 var(--font); }
.ch-visit { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; padding: 15px 22px; border-radius: 999px; background: #fff; color: #10204a; font: 700 15px/1 var(--font); text-decoration: none; transition: transform .25s var(--ease-out), box-shadow .25s; }
.ch-visit:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .45); }
.ch-visit:focus-visible, .ch-back:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
/* Over the blue band the header switches to light text until it turns solid. */
@media (min-width: 701px) {
  .in-case .site:not(.is-solid) { --nav-fg: #fff; --nav-muted: rgba(255, 255, 255, .78); --pill-bg: #fff; --pill-fg: #10204a; background: rgba(0, 0, 0, .12); }
}
@media (max-width: 700px) { .case-hero { padding-top: 26px; gap: 36px; min-height: 0; } .ch-ghost { font-size: 300px; } }   /* the header isn't floating over it here */
@media (max-width: 760px) {
  .ch-main { grid-template-columns: 1fr; }
  .ch-top { font-size: 10.5px; letter-spacing: .12em; }
  .ch-meta { gap: 14px; font-size: 11px; }
}
.case-section { padding: clamp(64px, 9vw, 140px) var(--gutter); max-width: 1600px; margin-inline: auto; }
.case-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.case-label { font: 600 12px/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--fg-muted); margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.case-label::before { content: ""; width: 28px; height: 4px; background: var(--c); }
.case-outcome { font: 900 clamp(64px, 9vw, 160px)/.88 var(--font); letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.case-outcome > span { display: block; }
.case-outcome .before { color: var(--fg-muted); font-size: .55em; letter-spacing: -.035em; }
.case-outcome .arrow { color: var(--c); font-weight: 600; margin-right: .08em; }
.case-outcome-label { margin-top: 16px; font: 600 14px/1.3 var(--font); letter-spacing: .1em; text-transform: uppercase; }
.case-lead { font: 700 clamp(24px, 2.4vw, 36px)/1.2 var(--font); letter-spacing: -.02em; text-wrap: balance; }
.case-body { margin-top: 20px; font-size: clamp(16px, 1.2vw, 19px); color: var(--fg-muted); max-width: 60ch; }
.case-role { margin-top: 20px; font: 600 13px/1.4 var(--font); letter-spacing: .08em; text-transform: uppercase; }
.case-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; max-width: 62ch; }
.case-list li { position: relative; padding-left: 26px; font-size: clamp(16px, 1.15vw, 18px); color: var(--fg-muted); }
.case-list li::before { content: ""; position: absolute; left: 0; top: .45em; width: 12px; height: 12px; border-radius: 50%; border: 3px solid var(--c); }
.case-more { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 0; padding: 0; }
.case-more li { list-style: none; padding: 14px 18px; background: var(--surface); border-top: 3px solid var(--c); }
.case-more b { display: block; font: 900 clamp(26px, 2.6vw, 40px)/1 var(--font); letter-spacing: -.03em; }
.case-more small { font: 500 12px/1.3 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--fg-muted); }
.case-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.case-cta .btn-primary { --c: var(--case-c); }
.case-next {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px;
  padding: clamp(40px, 6vw, 80px) var(--gutter); background: #000; color: #fff; text-decoration: none; cursor: pointer; border: 0; width: 100%; text-align: left;
}
.case-next small { display: block; font: 600 12px/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: #9AA3AF; margin-bottom: 10px; }
.case-next b { font: 900 clamp(36px, 6vw, 96px)/.9 var(--font); letter-spacing: -.04em; }
.case-next .bullet { --size: clamp(56px, 6vw, 96px); }
.case-next-arrow { font-size: clamp(32px, 4vw, 64px); transition: transform .3s var(--ease-out); }
.case-next:hover .case-next-arrow { transform: translateX(10px); }
@media (max-width: 900px) { .case-grid { grid-template-columns: 1fr; } }
/* ───────── Long-form case story (case-stories.js) ─────────
   The project's line runs down the left as a spine; each section is a numbered stop on it. */
.cs { --spine: calc(var(--gutter) + 22px); --u-blue: #1E5AA8; --u-green: #17804B; }
.cs-sec, .cs-outcome { position: relative; max-width: 1600px; margin-inline: auto; padding: clamp(72px, 9vw, 136px) var(--gutter) 0 calc(var(--gutter) + clamp(64px, 6vw, 96px)); }
.cs-sec { display: flow-root; }   /* keep child margins inside, so the spine never breaks between sections */
.cs-sec::before, .cs-outcome::before { content: ""; position: absolute; left: var(--spine); top: 0; bottom: 0; width: 6px; margin-left: -3px; background: var(--line, var(--c)); }
.cs-sec:first-child::before { top: clamp(72px, 9vw, 136px); }
.cs-solo { grid-template-columns: minmax(0, 1fr); }
.cs-solo > div { max-width: 820px; }
.cs-outcome { --line: var(--c); --spine: calc(var(--gutter) + 22px); padding-bottom: clamp(64px, 9vw, 140px); }
.cs-outcome::before { bottom: auto; height: calc(clamp(72px, 9vw, 136px) + 22px); }
.cs-stop { position: absolute; left: var(--spine); top: clamp(72px, 9vw, 136px); translate: -50% -4px; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--bg); border: 5px solid var(--line, var(--c)); font: 800 15px/1 var(--font); z-index: 1; }
.cs-kicker { font: 600 12px/1.2 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .18em; text-transform: uppercase; color: var(--fg-muted); }
.cs-h { margin: 14px 0 clamp(28px, 3.4vw, 48px); max-width: 20ch; font: 900 clamp(34px, 4.4vw, 68px)/1 var(--font); letter-spacing: -.04em; text-wrap: balance; }
.cs-lead { font-size: clamp(17px, 1.3vw, 20px); line-height: 1.65; color: var(--fg-muted); max-width: 62ch; }
.cs-narrow { margin-bottom: clamp(32px, 4vw, 56px); }
.cs-tag { font: 700 12px/1 var(--font); letter-spacing: .16em; text-transform: uppercase; margin-bottom: 16px; }
.cs-split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 88px); align-items: center; }
.cs-split-r { align-items: start; }
.cs-stage { display: grid; place-items: center; }

/* 01 overview facts */
.cs-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; margin: 36px 0 0; }
.cs-facts .cs-wide { grid-column: 1 / -1; }
.cs-facts dt { display: flex; align-items: center; gap: 12px; font: 800 18px/1.2 var(--font); }
.cs-facts dd { margin: 8px 0 0 50px; color: var(--fg-muted); }
.cs-facts ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.cs-facts ul li { padding: 8px 14px; border: 1px solid var(--rule); border-radius: 999px; font-size: 14px; color: var(--fg); }
.cs-ico { display: grid; place-items: center; width: 38px; height: 38px; color: var(--line); flex: none; }
.cs-ico svg { width: 100%; height: 100%; }

/* 02 problem → goal */
.cs-pg { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: clamp(16px, 2vw, 28px); align-items: stretch; }
.cs-problem, .cs-goal { padding: clamp(24px, 2.6vw, 40px); border-radius: 22px; }
.cs-problem { background: var(--surface); }
.cs-goal { background: color-mix(in srgb, var(--line) 9%, var(--bg)); border: 1.5px solid color-mix(in srgb, var(--line) 45%, transparent); }
.cs-sub { font-weight: 700; margin: 18px 0 10px; }
.cs-sub:first-of-type { margin-top: 0; }
.cs-x { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cs-x li { position: relative; padding-left: 30px; color: var(--fg-muted); }
.cs-x li::before { content: "✕"; position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: color-mix(in srgb, var(--line) 16%, transparent); color: var(--line); font: 800 10px/1 var(--font); }
.cs-goal-text { font: 500 16px/1.6 var(--font); }   /* same size as the Problem panel's text */
.cs-transfer { align-self: center; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--line); color: #fff; font: 800 24px/1 var(--font); box-shadow: 0 0 0 6px var(--bg), 0 0 0 8px var(--line); }
.cs-transfer svg { width: 26px; height: 26px; }   /* a drawn arrow sits dead centre; the text glyph didn't once rotated on phones */
.cs-fan { display: flex; justify-content: center; align-items: flex-end; gap: clamp(8px, 3vw, 48px); margin-top: clamp(40px, 5vw, 72px); }
.cs-fan .ph-sm { translate: 0 28px; }   /* upright, so the screens render crisply */

/* 03 research */
.cs-insight { margin-bottom: 10px; color: var(--line); }
.cs-insight + .cs-quote { margin-top: 0; }
.cs-quote { margin: -8px 0 clamp(36px, 4vw, 56px); padding-left: clamp(20px, 2vw, 32px); border-left: 6px solid var(--line); }
.cs-quote p { max-width: 26ch; font: 800 clamp(24px, 2.8vw, 42px)/1.15 var(--font); letter-spacing: -.025em; color: var(--fg-muted); }
.cs-notes { /* a field notebook page */
  position: relative; padding: 28px 28px 26px 58px; border-radius: 6px; rotate: -1.2deg; color: #2a2a2a;
  background: linear-gradient(90deg, transparent 40px, rgba(238, 53, 46, .45) 40px 42px, transparent 42px), repeating-linear-gradient(#FFFCEF 0 31px, #CFE0F2 31px 32px);
  box-shadow: 0 18px 36px -18px rgba(0, 0, 0, .35);
}
.cs-notes-h { font: 600 30px/1 "Caveat", "Bradley Hand", cursive; margin-bottom: 10px; color: #1E3A5F; }
.cs-notes ul { margin: 0; padding: 0; list-style: none; }
.cs-notes li { font: 500 23px/32px "Caveat", "Bradley Hand", cursive; }
.cs-notes li::before { content: "— "; color: #9AA3AF; }
.cs-objective { padding: 28px; border-radius: 22px; background: var(--surface); }
.cs-objective p:last-child { font: 700 clamp(19px, 1.6vw, 24px)/1.4 var(--font); }
.cs-methods { list-style: none; margin: clamp(40px, 5vw, 72px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 36px); }
.cs-methods span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--line); color: var(--line); font: 800 16px/1 var(--font); }
.cs-methods b { display: block; margin: 16px 0 8px; font: 800 18px/1.2 var(--font); }
.cs-methods p { color: var(--fg-muted); font-size: 15px; line-height: 1.6; }

/* 04 process: the stages as stations on a line */
.cs-process { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 28px); }
.cs-process::before { content: ""; position: absolute; left: 10%; right: 10%; top: 44px; height: 6px; margin-top: -3px; background: var(--line); }
.cs-process > li { position: relative; display: grid; justify-items: center; text-align: center; align-content: start; }
.cs-station { position: relative; display: grid; place-items: center; width: 88px; height: 88px; border-radius: 50%; background: var(--bg); border: 5px solid var(--line); color: var(--line); }
.cs-station svg { width: 46%; height: 46%; }
.cs-process > li > b { margin: 16px 0 12px; font: 800 19px/1 var(--font); }
.cs-process ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; text-align: left; }
.cs-process ul li { position: relative; padding-left: 16px; font-size: 14px; line-height: 1.5; color: var(--fg-muted); }
.cs-process ul li::before { content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.cs-process .is-loop::after { /* Prototype ⇄ Understand */
  content: "⇄"; position: absolute; top: 26px; right: calc(-1 * clamp(14px, 1.6vw, 28px) / 2); translate: 50% 0; z-index: 1;
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--line); color: #fff; font: 800 18px/1 var(--font);
}
.cs-loopnote { margin-top: 24px; font: 500 13px/1.4 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .06em; color: var(--fg-muted); text-align: right; }

/* 05 pain points */
.cs-pain { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.cs-pains { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 24px); }
.cs-pains li { position: relative; padding: 26px; border-radius: 20px; background: var(--surface); border-top: 5px solid var(--line); }
.cs-pn { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--line); color: #fff; font: 800 14px/1 var(--font); }
.cs-pains b { display: block; margin: 14px 0 8px; font: 800 19px/1.2 var(--font); }
.cs-pains p { color: var(--fg-muted); font-size: 15px; line-height: 1.55; }
.cs-stat { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--rule); }
.cs-stat em { display: block; font: 900 clamp(38px, 3.6vw, 56px)/1 var(--font); font-style: normal; letter-spacing: -.04em; color: var(--line); margin-bottom: 6px; }

/* 06 journey: five stops, a mood line through them, and each stop's fix */
.cs-journey { --ch: 220px; position: relative; }
.cs-mood { position: absolute; left: 0; right: 0; top: 0; width: 100%; height: var(--ch); overflow: visible; }
.cs-mood-ref { stroke: var(--rule); stroke-width: 1; stroke-dasharray: 4 6; vector-effect: non-scaling-stroke; }
.cs-mood-line { fill: none; stroke: var(--line); stroke-width: 5; stroke-linecap: round; vector-effect: non-scaling-stroke; }
/* the line draws left to right as the journey arrives (a clip, since dashes don't mix with non-scaling strokes) */
.cs-anim .cs-journey .cs-mood { clip-path: inset(0 100% 0 0); transition: clip-path 1.8s cubic-bezier(.45, 0, .2, 1) .2s; }
.cs-anim .cs-journey.is-in .cs-mood { clip-path: inset(0 0 0 0); }
.cs-mood-axis { position: absolute; left: 0; font: 600 10.5px/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-muted); }
.cs-mood-hi { top: calc(var(--ch) * .18 - 18px); }
.cs-mood-lo { top: calc(var(--ch) * .9 + 8px); }
.cs-stops { list-style: none; margin: 0; padding: calc(var(--ch) + 28px) 0 0; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 22px); }
.cs-face { position: absolute; left: var(--x); top: calc(var(--ch) * var(--y) / 100); translate: -50% -50%; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--bg); color: var(--line); box-shadow: 0 0 0 4px var(--line); }
.cs-face svg { width: 80%; height: 80%; }
.cs-task { padding-top: 14px; border-top: 6px solid var(--line); }
.cs-tn { font: 600 11px/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-muted); }
.cs-task b { display: block; margin-top: 8px; font: 800 17px/1.25 var(--font); }
.cs-emo { margin-top: 10px; font: 600 14px/1.3 var(--font); color: var(--line); }
.cs-adj { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.cs-adj span { padding: 5px 10px; border-radius: 999px; background: var(--surface); font-size: 12.5px; }
.cs-fix { position: relative; margin-top: 16px; padding: 14px 14px 14px 16px; border-radius: 14px; background: color-mix(in srgb, #17804B 10%, var(--bg)); border-left: 4px solid #17804B; font-size: 14px; line-height: 1.5; }
.cs-fix small { display: block; margin-bottom: 6px; font: 700 10.5px/1 var(--font); letter-spacing: .16em; text-transform: uppercase; color: #17804B; }
.night .cs-fix small { color: #4CC38A; }
.night .cs-fix { border-left-color: #4CC38A; }

/* 07 hi-fi mockups */
.cs-switch { display: inline-flex; padding: 5px; border-radius: 999px; background: var(--surface); margin-bottom: clamp(28px, 3.4vw, 48px); }
.cs-switch button { padding: 12px 22px; border: 0; border-radius: 999px; background: transparent; color: var(--fg); font: 700 14px/1 var(--font); cursor: pointer; transition: background .25s, color .25s; }
.cs-switch button[aria-selected="true"] { background: var(--line); color: #fff; }
.cs-switch button:focus-visible { outline: 3px solid var(--line); outline-offset: 3px; }
.cs-set { display: flex; justify-content: center; align-items: flex-end; gap: clamp(10px, 3vw, 56px); }
.cs-set.is-on .ph { animation: cs-rise .7s cubic-bezier(.16, 1, .3, 1) both; }
.cs-set.is-on .ph:nth-child(2) { animation-delay: .08s; }
.cs-set.is-on .ph:nth-child(3) { animation-delay: .16s; }
@keyframes cs-rise { from { opacity: 0; transform: translateY(36px); } to { opacity: 1; transform: none; } }

/* outcome */
.cs-laptop { max-width: 1080px; margin: 0 auto; padding: 0 var(--gutter) clamp(72px, 9vw, 140px); overflow-x: clip; }
.cs-laptop-screen { position: relative; border: clamp(8px, 1.1vw, 14px) solid #111; border-bottom-width: clamp(14px, 1.8vw, 22px); border-radius: 16px 16px 4px 4px; background: #111; box-shadow: 0 40px 60px -40px rgba(0, 0, 0, .55); }
.cs-laptop-screen::after { content: ""; position: absolute; left: -9%; right: -9%; top: 100%; height: clamp(10px, 1.3vw, 18px); margin-top: clamp(14px, 1.8vw, 22px); border-radius: 0 0 22px 22px; background: linear-gradient(#d9dbe0, #a9adb5); }
.cs-laptop img { display: block; width: 100%; height: auto; border-radius: 2px; }
.cs-laptop figcaption { margin-top: clamp(30px, 3.4vw, 46px); text-align: center; font: 500 13px/1.4 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .06em; color: var(--fg-muted); }

/* Reveal on scroll */
.cs-anim [data-cs-in] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.cs-anim .cs-notes[data-cs-in] { transform: translateY(28px) rotate(-1.2deg); }
.cs-anim [data-cs-in].is-in { opacity: 1; transform: none; }

/* ───────── Phone frame + the DEQAct app UI (sized in em from the phone width) ───────── */
.ph { --pw: 236px; flex: none; margin: 0; width: var(--pw); }
.ph-lg { --pw: 272px; }
.ph-sm { --pw: 206px; }
.ph-screen {
  position: relative; overflow: hidden; aspect-ratio: 9 / 19.5; border-radius: calc(var(--pw) * .14);
  border: calc(var(--pw) * .036) solid #0e0f12; background: #F7F9FC; color: #1d2433;
  font: 400 calc(var(--pw) / 19)/1.35 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  box-shadow: 0 0 0 1px #2a2c31, 0 30px 50px -28px rgba(0, 0, 0, .55);
}
.ph-screen { text-align: left; }   /* screens never inherit alignment from the page around them */
.ph-screen::before { content: ""; position: absolute; z-index: 5; left: 50%; top: 0; translate: -50% 0; width: 34%; height: 3.8%; border-radius: 0 0 1em 1em; background: #0e0f12; }
/* A phone whose screen scrolls through a full-length page */
.ph-live .ph-screen { background: #F7F9FC; }
.ph-scroll .u-bar { position: sticky; top: 0; z-index: 2; }   /* the app bar stays put while the page scrolls */
.ph-scroll .u-tile { margin-bottom: .75em; }
.u-foot { margin-top: 1.2em; padding: 1.3em 1em 2.6em; background: #EEF4FB; text-align: center; color: #1d2433; }
.u-fh { margin-top: 1.1em !important; font-size: .9em; font-weight: 800; color: #142033; }
.u-fh:first-child { margin-top: 0 !important; }
.u-fl { margin-top: .55em !important; font-size: .58em; line-height: 1.65; }
.u-fl b { display: flex; justify-content: center; align-items: center; gap: .35em; font-weight: 700; }
.u-fl b svg { width: 1.1em; height: 1.1em; color: #1E3A5F; }
.u-flogo { display: block; margin: 1.1em auto .2em; }
.u-flogo .u-logo { display: block; height: 4.4em; width: auto; margin: auto; }
.u-social { display: flex; justify-content: center; gap: .55em; margin-top: .7em !important; }
.u-social span { display: grid; place-items: center; width: 1.9em; height: 1.9em; border-radius: 50%; background: #1E5AA8; color: #fff; }
.u-social svg { width: 55%; height: 55%; }
.u-input { display: block; width: 78%; margin: .8em auto 0; padding: .55em; border: 1px solid #9aa3b0; border-radius: 999px; background: #fff; font-size: .55em; font-style: normal; color: #8a94a6; }
.u-sub-btn { display: inline-block; margin-top: .7em; padding: .75em 1.6em; }
.u-legal { margin-top: 1.2em !important; font-size: .5em; color: #1d2433; }
.u-legal span { color: #9aa3b0; margin: 0 .25em; }
.ph-scroll { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; cursor: ns-resize; }
.ph-scroll::-webkit-scrollbar { display: none; }
.ph-scroll:focus-visible { outline: 3px solid var(--line, var(--c)); outline-offset: -3px; }
.ph-hint { display: inline-block; margin-right: 4px; color: var(--line, var(--c)); font-weight: 700; animation: ph-hint 1.8s ease-in-out infinite; }
@keyframes ph-hint { 50% { transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .ph-hint { animation: none; } }
.ph-cap { margin-top: 14px; text-align: center; font: 500 12px/1.3 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .04em; color: var(--fg-muted); }
.ph-screen p, .ph-screen ul { margin: 0; }
.ph-screen svg { display: block; }
.u-bar { display: flex; align-items: center; justify-content: space-between; padding: 2.1em .9em .55em; background: #fff; border-bottom: 1px solid #e5e9f0; }
.u-bar .u-logo { display: block; height: 1.55em; width: auto; }   /* compact lockup: no tiny agency line in the app bar */
.u-icons { display: flex; gap: .6em; color: #1E3A5F; }
.u-icons svg { width: 1.05em; height: 1.05em; }
.u-photo { position: relative; min-height: 100%; padding: 2.6em .85em 1em; background: linear-gradient(rgba(255, 255, 255, .25), rgba(255, 255, 255, .05)), url("assets/case/deq-act/skyline.webp") 62% center / cover; }
.u-hero { min-height: 0; padding: .9em .7em; }
.u-glass { margin-top: .7em; padding: .8em; border-radius: .9em; background: rgba(255, 255, 255, .78); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
.u-hero .u-glass { margin-top: 0; }
.u-h1 { font-weight: 800; font-size: 1.32em; line-height: 1.15; color: #142033; }
.u-h2 { font-weight: 800; font-size: .98em; line-height: 1.2; }
.u-h3 { font-weight: 700; font-size: .78em; color: #1E5AA8; margin-bottom: .45em !important; }
.u-c { text-align: center; }
.u-sub { font-size: .62em; margin-top: .25em !important; color: #24324a; }
.u-field { display: grid; gap: .3em; margin: .5em 0; }
.u-field > span { font-size: .52em; font-weight: 600; }
.u-field > i { display: flex; justify-content: space-between; align-items: center; padding: .55em .9em; border-radius: 999px; background: #fff; border: 1px solid #dfe4ec; font-size: .55em; font-style: normal; line-height: 1; color: #8a94a6; }
.u-eye svg { width: 1.3em; height: 1.3em; color: #555; }
.u-fine { font-size: .5em; line-height: 1.45; color: #4b5567; margin-top: .4em !important; }
.u-row { display: flex; justify-content: space-between; align-items: center; gap: .5em; margin-top: .6em !important; }
.u-box { display: inline-block; width: .9em; height: .9em; border: 1px solid #8a94a6; border-radius: 2px; vertical-align: -.15em; }
.u-btn { display: inline-block; padding: .65em 1.1em; border-radius: 999px; background: #1E5AA8; color: #fff; font-size: .56em; font-weight: 700; text-align: center; white-space: nowrap; }
.u-wide { display: block; width: 100%; margin-top: .9em; box-sizing: border-box; }
.u-ghost { background: #fff; color: #1d2433; border: 1px solid #dfe4ec; }
.u-learn { color: #17804B; font-size: .55em; font-weight: 700; }
.u-onphoto { color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); margin-top: .8em !important; }
.u-card { margin: .6em .7em; padding: .8em; border-radius: .8em; background: #fff; border: 1px solid #e3e7ee; }
.u-card small { display: block; font-size: .5em; color: #6b7588; margin-bottom: .2em; }
.u-tile .u-ill { display: block; width: 3.7em; margin: .3em auto .7em; color: #1E5AA8; }   /* ≈60pt on a real 390pt-wide phone */
.u-home { min-height: 0; padding: 2.3em .7em 1em; }
.u-float { display: flex; justify-content: space-between; align-items: center; margin-bottom: .7em; }
.u-pill { display: inline-flex; align-items: center; gap: .55em; padding: .35em .6em; border-radius: 999px; background: rgba(255, 255, 255, .72); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); color: #1E3A5F; }
.u-pill .u-logo { display: block; height: 1.25em; width: auto; }
.u-pill svg { width: 1em; height: 1em; }
.u-home .u-glass { margin-top: 0; background: rgba(255, 255, 255, .62); }
.u-body { font-size: .62em; line-height: 1.45; color: #1d2433; margin-top: .5em !important; }
.u-home .u-row { margin-top: .9em !important; }
.u-err { display: grid; justify-items: center; align-content: center; text-align: center; min-height: 78%; padding: 1em 1.1em 2.4em; box-sizing: border-box; color: #1E5AA8; }
.u-err .u-fine { color: #4b5567; margin-top: .9em !important; max-width: 26em; }
.u-err .u-wide { margin-top: .7em; }
.u-err .u-wide + .u-wide { margin-top: .5em; }
.u-esign { padding-top: 2.4em; }
.u-esign .u-h1 { font-size: 1.25em; line-height: 1.15; }
.u-legaltext { margin-top: 1em; padding: 1em .9em; background: rgba(255, 255, 255, .86); text-align: center; font-size: .6em; line-height: 1.5; color: #1d2433;
  -webkit-mask-image: linear-gradient(#000 82%, transparent); mask-image: linear-gradient(#000 82%, transparent); }   /* the agreement runs on below the screen */
.u-legaltext p + p { margin-top: 1.1em !important; }
.u-help-link { color: #17804B; font-weight: 700; }
.u-err2 { display: grid; justify-items: center; align-content: center; text-align: center; min-height: 84%; box-sizing: border-box; padding: .8em 1em 1.6em; color: #2563A6; }
.u-err2 .u-ill:has(rect) { width: 4.2em; }   /* the 500 server stack reads larger in the mockup */
.u-err2 .u-ill { width: 3.4em; margin-bottom: .5em; }
.u-err2 .u-code { font-size: 2.6em; font-weight: 800; line-height: 1; }
.u-err2 .u-errt { font-size: 1.45em; font-weight: 800; line-height: 1.1; margin-top: .15em !important; }
.u-msg { margin-top: 1em !important; font-size: .68em; line-height: 1.45; color: #2b2f36; }
.u-strong { font-weight: 700; margin-top: .9em !important; }
.u-strong u { color: #17804B; }
.u-notice { display: grid; grid-template-columns: auto 1fr auto; gap: .45em; align-items: start; width: 100%; box-sizing: border-box; margin-top: .9em; padding: .6em .7em; border-radius: .7em; background: #E3ECF8; text-align: left; color: #1d2433; }
.u-notice svg { width: 1em; height: 1em; color: #1E3A5F; margin-top: .05em; }
.u-notice p { font-size: .6em; line-height: 1.45; }
.u-notice b { display: block; }
.u-notice i { font-style: normal; font-size: .75em; font-weight: 700; }
.u-pillbtn { display: block; width: 66%; margin-top: .65em; padding: .7em 0; font-size: .74em; }
.u-pillbtn:first-of-type { margin-top: 1em; }
.u-green { background: #17804B; }
/* help screen: horizontal cards, icon left, as on the desktop home page */
.u-help-h { margin-top: .2em !important; }
.u-hz { display: grid; grid-template-columns: 2.6em minmax(0, 1fr); gap: .7em; align-items: start; padding: .75em; }
.u-hz .u-ill { width: 100%; color: #1E5AA8; margin-top: .2em; }
.u-hz .u-h2 { font-size: .86em; }
.u-help-foot { margin-top: .9em !important; }
.u-err .u-ill { width: 38%; margin-bottom: .6em; }
.u-err .u-code { font-size: 2.3em; font-weight: 800; line-height: 1; }
.u-err .u-errt { font-size: 1.05em; font-weight: 700; margin-top: .2em !important; }
.u-pad { padding: .7em .8em; }
.u-pad .u-card { margin: .6em 0; }
.u-prog { display: block; height: .42em; margin-top: .4em; border-radius: 999px; background: #e6ebf2; overflow: hidden; }
.u-prog i { display: block; height: 100%; border-radius: inherit; background: #1E5AA8; }
.u-prog-warn i { background: #F08A24; }
.u-prog-ok i { background: #17804B; }
.u-tabs { display: flex; gap: .9em; margin: .7em 0 .5em !important; font-size: .55em; border-bottom: 1px solid #e5e9f0; }
.u-tabs > * { padding-bottom: .5em; }
.u-tabs b { color: #1E5AA8; border-bottom: 2px solid #1E5AA8; }
.u-tabs3 { justify-content: space-between; }
.u-seg { display: flex; padding: .22em; border-radius: 999px; background: #eef2f7; font-size: .52em; }
.u-seg > * { flex: 1; text-align: center; padding: .5em 0; border-radius: 999px; white-space: nowrap; }
.u-seg b { background: #1E5AA8; color: #fff; }
.u-dash { color: #1E5AA8; margin-top: .3em !important; }
.u-dash i { font-style: normal; letter-spacing: -.15em; font-size: .8em; }
.u-days { font-size: .55em; font-weight: 600; }
.u-ipnum { display: flex; justify-content: space-between; align-items: flex-end; gap: .5em; }
.u-ip .u-days { display: grid; font-size: .58em; font-weight: 700; color: #3b4352; }
.u-ip .u-days b { font-size: 2.5em; margin: 0; }
.u-ip .u-warn b { color: #E07A10; }
.u-ip .u-ok b { color: #17804B; }
.u-dates { font-size: .5em; line-height: 1.35; color: #4b5567; text-align: left; }
.u-dates small { display: block; color: #6b7588; }
.u-dates small + * , .u-dates small:nth-of-type(2) { margin-top: .3em; }
.u-ip .u-kv + .u-kv { border-top: 1px solid #e3e7ee; }
.u-ip .u-kv:last-of-type { border-bottom: 1px solid #e3e7ee; padding-bottom: .5em; }
.u-days b { font-size: 2.6em; font-weight: 800; margin-right: .2em; line-height: 1; }
.u-warn { color: #E07A10; }
.u-ok { color: #17804B; }
.u-kv { display: grid; grid-template-columns: 1fr 1fr; gap: .45em .6em; margin: .6em 0 .3em; padding-top: .5em; border-top: 1px solid #eef1f5; }
.u-kv p { font-size: .5em; font-style: italic; }
.u-kv small { display: block; font-style: normal; color: #8a94a6; font-size: 1em; }
.u-link { font-size: .54em; font-weight: 700; color: #17804B; text-decoration: underline; margin-top: .45em !important; }
.u-pct { display: grid; grid-template-columns: auto 1fr; gap: .7em; align-items: center; }
.u-pct b { display: block; font-size: 1.4em; font-weight: 800; color: #1E5AA8; line-height: 1; }
.u-pct small { font-size: .45em; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #1d2433; }
.u-pct em { display: block; margin-top: .4em; padding: .3em; border-radius: 999px; background: #eef2f7; font-size: .48em; font-style: normal; font-weight: 600; line-height: 1; text-align: center; }
.u-two { display: grid; grid-template-columns: 1fr 1fr; gap: .45em; }
.u-three { display: grid; grid-template-columns: repeat(3, 1fr); gap: .35em; }
/* profile screen */
.u-prof { padding-bottom: 4.2em; }
.u-pcard { display: grid; grid-template-columns: auto 1fr; gap: .7em; align-items: center; margin-top: .2em; }
.u-ring { display: grid; place-items: center; width: 2.9em; height: 2.9em; border-radius: 50%; background: conic-gradient(#17804B calc(var(--p) * 1%), #e1e7ee 0); }
.u-ring b { display: grid; place-items: center; width: 76%; height: 76%; border-radius: 50%; background: #F7F9FC; font-size: .62em; font-weight: 800; color: #17804B; }
.u-prof .u-pcard .u-fine { margin-top: .15em !important; }
.u-lock { color: #8a94a6; }
.u-sec { margin-top: .9em !important; font-size: .5em; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #6b7588; }
.u-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: .45em; }
.u-grid3 { display: grid; grid-template-columns: 1.3fr .8fr 1fr; gap: .4em; }
.u-pf { display: grid; gap: .28em; margin-top: .5em; min-width: 0; }
.u-pf > span { font-size: .5em; font-weight: 700; color: #1d2433; white-space: nowrap; }
.u-pf em { font-style: normal; color: #D2302C; margin-left: .1em; }
.u-pf small { font-weight: 500; color: #8a94a6; }
.u-pf > i { display: flex; justify-content: space-between; align-items: center; gap: .3em; padding: .62em .95em; border-radius: 999px; background: #fff; border: 1px solid #d5dce6; font-size: .54em; font-style: normal; line-height: 1; color: #9aa3b0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.u-pf-ok > i { color: #1d2433; border-color: #9fd2b7; }
.u-pf-ok > i b { color: #17804B; font-weight: 800; }
.u-pf-sel > i { color: #1d2433; }
.u-pf-err > i { border: 1.5px solid #D2302C; background: #FFF6F5; }
.u-errmsg { font-size: .46em; color: #D2302C !important; font-weight: 600 !important; }
.u-note { display: grid; grid-template-columns: auto 1fr; gap: .45em; align-items: start; margin-top: .9em; padding: .6em; border-radius: .55em; background: #EEF4FB; font-size: .5em; line-height: 1.45; color: #1d2433; }
.u-note .u-box { margin-top: .15em; background: #fff; }
.u-savebar { position: absolute; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1.4fr; gap: .45em; padding: .65em .8em 1.1em; background: #fff; border-top: 1px solid #e5e9f0; box-shadow: 0 -6px 14px -10px rgba(0, 0, 0, .25); }
.u-savebar .u-btn { text-align: center; padding: .8em 0; }
.u-rules { padding-left: 1.4em !important; font-size: .46em; color: #4b5567; }
.u-cancel { font-size: .58em; font-weight: 700; }

@media (max-width: 1100px) {
  .cs-process { grid-template-columns: 1fr; gap: 28px; }
  /* vertical: one segment per station, from its centre to the next station's centre, so the line stops at the last one */
  .cs-process::before { display: none; }
  .cs-process > li:not(:last-child)::before { content: ""; position: absolute; left: 44px; top: 44px; width: 6px; height: calc(100% + 28px); margin-left: -3px; background: var(--line); }
  .cs-process > li { grid-template-columns: 88px minmax(0, 1fr); column-gap: 22px; justify-items: start; text-align: left; }
  .cs-process > li > b { grid-column: 2; grid-row: 1; align-self: center; margin: 0; }
  .cs-process > li > ul { grid-column: 2; }
  .cs-station { grid-row: 1 / span 2; }
  .cs-process .is-loop::after { top: calc(88px + (100% - 60px) / 2); right: auto; left: 44px; translate: -50% -50%; content: "⇅"; }   /* midway between this station and the next */
  .cs-loopnote { text-align: left; }
  .cs-methods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1100px) and (min-width: 701px) {
  /* three phones side by side: scale them to the column so the row never spills */
  .cs-set .ph, .cs-fan .ph { --pw: min(206px, calc((100vw - var(--gutter) * 2 - 160px) / 3.3)); }
  .cs-set .ph-lg, .cs-fan .ph-lg { --pw: min(236px, calc((100vw - var(--gutter) * 2 - 160px) / 2.9)); }
}
@media (max-width: 900px) {
  .cs-split, .cs-pain { grid-template-columns: 1fr; }
  .cs-pg { grid-template-columns: 1fr; }
  .cs-transfer { justify-self: center; rotate: 90deg; }
  .cs-pain .cs-stage { order: 2; }
  /* journey: each stop becomes a card with its face; the mood line is dropped */
  .cs-mood, .cs-mood-axis { display: none; }
  .cs-stops { padding-top: 0; grid-template-columns: 1fr; gap: 28px; }
  .cs-stops > li { display: grid; grid-template-columns: 58px minmax(0, 1fr); column-gap: 16px; }
  .cs-stops > li > *:not(.cs-face) { grid-column: 2; }
  .cs-face { position: static; translate: none; grid-row: 1 / span 4; margin-top: 6px; }
}
@media (max-width: 700px) {
  .cs-sec, .cs-outcome { padding-left: calc(var(--gutter) + 44px); }
  .cs { --spine: calc(var(--gutter) + 14px); }
  .cs-outcome { --spine: calc(var(--gutter) + 14px); }
  .cs-stop { width: 36px; height: 36px; border-width: 4px; font-size: 12px; }
  .cs-facts { grid-template-columns: 1fr; }
  .cs-facts dd { margin-left: 0; }
  .cs-pains, .cs-methods { grid-template-columns: 1fr; }
  .cs-fan .ph-sm { display: none; }
  #cs-hifi { overflow-x: clip; }   /* lets the phone carousel bleed to the screen edge without widening the page */
  .cs-set { overflow-x: auto; justify-content: flex-start; scroll-snap-type: x mandatory; padding-bottom: 8px; margin-right: calc(-1 * var(--gutter)); }
  .cs-set .ph { scroll-snap-align: center; --pw: 220px; }
  .cs-notes { rotate: 0deg; }
  .cs-laptop-screen::after { left: -3%; right: -3%; }
}

/* ───────── NYC Business story blocks ───────── */
.cs-bars { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 24px); }
.cs-bars li { position: relative; padding: 26px 24px; border-radius: 20px; background: var(--surface); }
.cs-bar-ic { display: block; width: 44px; height: 44px; color: var(--line); margin-bottom: 14px; }
.cs-bar-ic svg { width: 100%; height: 100%; }
.cs-bars .cs-pn { position: absolute; top: 22px; right: 22px; }
.cs-bars b { display: block; font: 800 19px/1.2 var(--font); margin-bottom: 8px; }
.cs-bars p { color: var(--fg-muted); font-size: 15px; line-height: 1.55; }
.cs-goal-wide { margin-top: clamp(16px, 2vw, 28px); padding: clamp(24px, 2.6vw, 40px); border-radius: 22px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 32px; align-items: baseline; }
.cs-goal-wide .cs-goal-text { font: 700 clamp(19px, 1.8vw, 26px)/1.4 var(--font); letter-spacing: -.01em; }
.cs-bets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.cs-bet { display: flex; flex-direction: column; padding: clamp(24px, 2.6vw, 40px); border-radius: 22px; background: var(--surface); border-top: 6px solid var(--line); }
.cs-bet h3 { margin: 0 0 18px; font: 900 clamp(24px, 2.2vw, 32px)/1.1 var(--font); letter-spacing: -.03em; }
.cs-bet small { display: block; font: 700 11px/1 var(--font); letter-spacing: .16em; text-transform: uppercase; color: var(--fg-muted); margin-bottom: 8px; }
.cs-bet-obj { font-weight: 600; font-size: 17px; line-height: 1.45; }
.cs-ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cs-ticks li { position: relative; padding-left: 28px; color: var(--fg-muted); font-size: 15px; line-height: 1.5; }
.cs-ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; background: var(--line); color: #fff; font: 800 11px/1 var(--font); }
.cs-bet-why { margin-top: 20px; padding: 16px 18px; border-radius: 14px; background: var(--bg); font-size: 15px; line-height: 1.55; }
.cs-vs { margin-top: 20px; display: grid; gap: 10px; }
.cs-vs p { display: grid; grid-template-columns: 64px 1fr 56px; align-items: center; gap: 12px; font: 600 13px/1 var(--font); }
.cs-vs i { display: block; height: 14px; border-radius: 999px; background: var(--line); }
.cs-vs-t { width: calc(var(--t) * 2%); opacity: .35; }
.cs-vs-a { width: calc(var(--a) * 2%); }
.cs-vs b { font: 900 18px/1 var(--font); text-align: right; }
.cs-vs small { margin: 2px 0 0; text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 600; color: var(--line); }
.cs-bet-res { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: auto; padding-top: 22px; }
.cs-bet-res span { display: grid; gap: 4px; font-size: 13px; color: var(--fg-muted); }
.cs-bet-res b { font: 900 clamp(28px, 2.6vw, 40px)/1 var(--font); letter-spacing: -.04em; color: var(--line); }
.cs-tiles { list-style: none; margin: 0 0 clamp(36px, 4vw, 56px); padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 24px); }
.cs-tiles li { display: grid; gap: 6px; padding: 26px; border-radius: 20px; background: var(--surface); }
.cs-tiles b { font: 900 clamp(48px, 5vw, 76px)/.9 var(--font); letter-spacing: -.05em; color: var(--line); }
.cs-tiles span { font: 800 18px/1.2 var(--font); }
.cs-tiles small { color: var(--fg-muted); font-size: 14px; }
.cs-process-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cs-process-4::before { left: 12.5%; right: 12.5%; }
.cs-sol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 40px); align-items: end; }
.cs-sol-col { display: grid; justify-items: center; text-align: center; }
.cs-sol-col > p { margin-top: 10px; max-width: 30ch; color: var(--fg-muted); font-size: 15px; line-height: 1.55; }
.cs-shots { display: flex; justify-content: center; align-items: flex-start; gap: clamp(10px, 2.4vw, 40px); }
.cs-shots .ph:nth-child(even) { margin-top: 48px; }
.cs-outs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 20px); }
.cs-outs li { display: grid; gap: 8px; align-content: start; padding: 24px; border-radius: 20px; background: var(--surface); border-top: 5px solid var(--line); }
.cs-outs b { font: 900 clamp(30px, 2.8vw, 44px)/1 var(--font); letter-spacing: -.04em; color: var(--line); }
.cs-outs span { color: var(--fg-muted); font-size: 14px; }
.cs-outs .is-hero { grid-column: span 2; grid-row: span 2; align-content: end; background: var(--line); border-top-color: var(--line); }
.cs-outs .is-hero b { color: #fff; font-size: clamp(56px, 6vw, 96px); }
.cs-outs .is-hero span { color: rgba(255, 255, 255, .9); font-size: 16px; font-weight: 600; }

/* ───────── NYC Business app UI (live-site blue) ───────── */
.ph-screen:has(.n-bar) { background: #fff; font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif; }
.n-bar { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .6em; padding: 2.15em .8em .7em; background: #0A5BD3; color: #fff; }
.n-bar b { text-align: center; font-weight: 600; font-size: 1.02em; }
.n-bar svg { width: 1.15em; height: 1.15em; display: block; }
.n-icons { display: flex; gap: .55em; }
.n-lang { display: flex; justify-content: space-between; align-items: center; padding: .55em .8em; background: #EEF0F3; font-size: .56em; font-weight: 700; color: #1d2433; }
.n-lang span { display: flex; align-items: center; gap: .4em; }
.n-lang svg { width: 1.2em; height: 1.2em; }
.n-lang i { font-style: normal; font-weight: 500; color: #0A5BD3; }
.n-pad { padding: .9em .85em; color: #142033; }
.n-crumb { font-size: .5em; color: #0A5BD3; font-weight: 600; }
.n-h1 { font-size: 1.12em; font-weight: 800; line-height: 1.15; margin-top: .3em !important; color: #0B2E6B; }
.n-h1s { font-size: 1em; }
.n-p { font-size: .58em; line-height: 1.5; color: #3b4352; margin-top: .4em !important; }
.n-item { display: grid; grid-template-columns: 1.6em 1fr; gap: .55em; margin-top: .7em; padding: .65em; border-radius: .6em; border: 1px solid #dfe5ef; }
.n-num { display: grid; place-items: center; width: 1.55em; height: 1.55em; border-radius: 50%; background: #0A5BD3; color: #fff; font-size: .62em; font-weight: 800; }
.n-item b { display: flex; align-items: center; gap: .3em; font-size: .62em; font-weight: 800; line-height: 1.3; }
.n-item p { font-size: .52em; line-height: 1.45; color: #4b5567; margin-top: .25em !important; }
.n-open { border-color: #0A5BD3; background: #F2F7FF; }
.n-tip-i svg { width: 1.1em; height: 1.1em; color: #0A5BD3; display: block; }
.n-tip { margin-top: .45em; padding: .55em .6em; border-radius: .5em; background: #0B2E6B; color: #fff; font-size: .52em; line-height: 1.45; }
.n-tip b { display: block; font-size: 1em; margin-bottom: .15em; color: #9ED2FF; }
.n-langs { display: flex; align-items: center; gap: .35em; margin-top: .9em !important; font-size: .5em; color: #0A5BD3; font-weight: 600; }
.n-langs svg { width: 1.2em; height: 1.2em; flex: none; }
.n-steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); margin: .7em 0 .2em; padding: 0; counter-reset: s; }
.n-steps li { counter-increment: s; position: relative; display: grid; justify-items: center; gap: .3em; font-size: .46em; font-weight: 600; color: #8a94a6; }
.n-steps li::before { content: counter(s); display: grid; place-items: center; width: 2.2em; height: 2.2em; border-radius: 50%; background: #e3e8f0; color: #6b7588; font-weight: 800; position: relative; z-index: 1; }
.n-steps li + li::after { content: ""; position: absolute; top: 1.05em; right: 50%; width: 100%; height: 2px; background: #e3e8f0; }
.n-steps .is-done::before { content: "✓"; background: #17804B; color: #fff; }
.n-steps .is-done, .n-steps .is-on { color: #0B2E6B; }
.n-steps .is-on::before { background: #0A5BD3; color: #fff; box-shadow: 0 0 0 .3em #D6E6FF; }
.n-steps .is-on::after { background: #17804B; }
.n-due { display: flex; justify-content: space-between; align-items: flex-end; margin-top: .8em; padding: .8em; border-radius: .7em; background: #F2F7FF; border: 1px solid #cfe0fb; }
.n-due small { display: block; font-size: .48em; font-weight: 600; color: #4b5567; }
.n-due b { font-size: 1.45em; font-weight: 800; color: #0B2E6B; }
.n-date { display: flex; align-items: center; gap: .35em; font-size: .56em; font-weight: 700; text-align: left; }
.n-date svg { width: 1.6em; height: 1.6em; color: #0A5BD3; }
.n-date small { font-size: .86em; }
.n-left { margin-top: .4em !important; font-size: .5em; font-weight: 700; color: #B25E00; }
.n-fees { margin-top: .6em; font-size: .54em; }
.n-fees p { display: flex; justify-content: space-between; gap: .6em; padding: .45em 0; border-bottom: 1px solid #e9edf3; color: #3b4352; }
.n-fees .n-total { border-bottom: 0; color: #0B2E6B; font-weight: 800; font-size: 1.1em; }
.n-help { display: grid; grid-template-columns: auto 1fr; gap: .45em; margin-top: .55em; padding: .6em; border-radius: .55em; background: #FFF7E8; font-size: .52em; line-height: 1.45; }
.n-help svg { width: 1.3em; height: 1.3em; color: #B25E00; }
.n-actions { display: grid; grid-template-columns: 1fr 2fr; gap: .45em; margin-top: .75em !important; }
.n-btn { display: block; padding: .8em 0; border-radius: .45em; background: #0A5BD3; color: #fff; font-size: .56em; font-weight: 700; text-align: center; }
.n-ghost { background: #fff; color: #0A5BD3; border: 1.5px solid #0A5BD3; }
.n-secure { display: flex; justify-content: center; align-items: center; gap: .3em; margin-top: .55em !important; font-size: .46em; color: #6b7588; }
.n-secure svg { width: 1.2em; height: 1.2em; }
.n-search { display: flex; align-items: center; gap: .45em; margin-top: .65em !important; padding: .6em .75em; border-radius: 999px; border: 1px solid #cfd7e3; font-size: .54em; color: #8a94a6; }
.n-search svg { width: 1.2em; height: 1.2em; color: #0A5BD3; }
.n-tabs { display: flex; gap: .9em; margin: .7em 0 .3em !important; font-size: .52em; border-bottom: 1px solid #e5e9f0; color: #6b7588; }
.n-tabs > * { padding-bottom: .45em; }
.n-tabs b { color: #0A5BD3; border-bottom: 2px solid #0A5BD3; }
.n-doc { display: grid; grid-template-columns: 1.9em 1fr auto; gap: .55em; align-items: center; margin-top: .5em; padding: .6em; border-radius: .6em; border: 1px solid #dfe5ef; }
.n-dic { display: grid; place-items: center; width: 1.9em; height: 1.9em; border-radius: .45em; background: #EAF2FF; color: #0A5BD3; }
.n-dic svg { width: 1.1em; height: 1.1em; }
.n-doc b { display: block; font-size: .56em; font-weight: 800; line-height: 1.3; }
.n-doc p { font-size: .48em; color: #6b7588; margin-top: .25em !important; }
.n-doc em { font-style: normal; font-weight: 700; padding: .15em .5em; border-radius: 999px; margin-right: .3em; }
.n-ok { background: #E3F4EA; color: #17804B; }
.n-due2 { background: #FFF1DD; color: #B25E00; }
.n-warn { border-color: #F2C27D; }
.n-dl svg { width: 1.15em; height: 1.15em; color: #0A5BD3; display: block; }
.n-renew { padding: .45em .7em; border-radius: .4em; background: #0A5BD3; color: #fff; font-size: .48em; font-weight: 700; }

/* Recreated live-site screens */
.n-hero { position: relative; overflow: hidden; padding: 1.2em .95em 3.2em; background: linear-gradient(180deg, #0A3C8C, #0A4FB8 70%, #0B5FE0); color: #fff; }
.n-hh { font-size: 1.3em; font-weight: 800; line-height: 1.15; margin-bottom: .55em !important; }
.n-hl { display: flex; gap: .3em; align-items: flex-start; margin-top: .55em !important; font-size: .64em; font-weight: 700; line-height: 1.35; color: #8FE6FF; }
.n-hl svg { flex: none; width: 1.1em; height: 1.1em; margin-top: .1em; }
.n-arc { position: absolute; z-index: 0; right: -55%; bottom: -95%; width: 120%; aspect-ratio: 1; border-radius: 50%; border: 1.6em solid #1E6FF0; opacity: .55; }
.n-hero > p { position: relative; z-index: 1; }
.n-pt { padding-top: .8em; }
.n-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: .5em; }
.n-tile { padding: .7em .6em; border-radius: .6em; border: 1px solid #dfe5ef; background: #fff; }
.n-tile span { display: grid; place-items: center; width: 1.8em; height: 1.8em; border-radius: .45em; background: #EAF2FF; color: #0A5BD3; }
.n-tile span svg { width: 1.1em; height: 1.1em; }
.n-tile b { display: block; margin-top: .45em; font-size: .62em; font-weight: 800; color: #0B2E6B; }
.n-tile p { font-size: .48em; line-height: 1.4; color: #4b5567; margin-top: .25em !important; }
.n-soft { background: #EEF5FF; }
.n-top { padding-top: 2.6em; min-height: 100%; box-sizing: border-box; }
.n-promo { padding: .95em .9em 0; border-radius: .7em; background: linear-gradient(180deg, #FDEBF2, #F7F2FF); box-shadow: 0 .3em .8em -.4em rgba(0, 0, 0, .2); overflow: hidden; }
.n-ph, .n-ch { font-size: 1.15em; font-weight: 800; line-height: 1.15; color: #141414; }
.n-ph em, .n-ch em, .n-chead em { font-style: normal; color: #6b6f78; display: block; }
.n-ch em { display: inline; }
.n-pp { margin-top: .5em !important; font-size: .6em; line-height: 1.45; font-weight: 500; }
.n-chat { margin-top: .8em !important; font-size: .62em; font-weight: 700; letter-spacing: .04em; }
.n-art { position: relative; height: 5.4em; margin-top: .6em; }
.n-ring { position: absolute; right: -.4em; bottom: -2.6em; width: 7.6em; aspect-ratio: 1; border-radius: 50%; border: 1.3em solid #0A5BD3; background: radial-gradient(circle, #D9E8FF 0 52%, #B9D4FF 53%); }
.n-bot { position: absolute; right: 2.05em; bottom: .3em; width: 1.9em; height: 1.9em; color: #0A5BD3; }
.n-art i { position: absolute; width: 1.5em; height: .9em; border-radius: .3em; }
.n-b1 { left: 30%; top: 25%; background: #A9C8FF; }
.n-b2 { right: .4em; top: 35%; background: #F2A6D6; }
.n-b3 { left: 12%; bottom: .6em; width: 1.1em !important; height: 1.1em !important; border-radius: 50% !important; background: #F07BC0; }
.n-mycity { margin-top: .8em; padding: .95em .9em; border-radius: .7em; background: #fff; box-shadow: 0 .3em .8em -.4em rgba(0, 0, 0, .2); }
.n-top > .n-mycity:first-child { margin-top: 0; }
.n-mh { font-size: 1.1em; font-weight: 800; }
.n-mp { margin-top: .25em !important; font-size: .7em; font-weight: 600; line-height: 1.35; }
.n-pink { display: inline-flex; align-items: center; gap: .4em; margin-top: .75em; padding: .8em 1.4em; border-radius: .3em; background: #C8415F; color: #fff; font-size: .6em; font-weight: 700; }
.n-pink svg { width: 1.1em; height: 1.1em; }
.n-feat { list-style: none; margin: .9em 0 0; padding: 0; display: grid; gap: .7em; }
.n-feat li { display: grid; grid-template-columns: 1.7em 1fr; gap: .55em; align-items: center; font-size: .66em; font-weight: 600; line-height: 1.3; }
.n-feat svg { width: 1.7em; height: 1.7em; color: #141414; }
.n-foot { padding: .9em; background: #0B2E6B; color: #cfdcf3; font-size: .5em; line-height: 1.6; text-align: center; }
.n-foot b { color: #fff; font-weight: 900; }
.n-chatw { display: flex; flex-direction: column; min-height: 100%; }
.n-chatw .n-c { flex: 1; }
.n-chatw .n-ask { margin: 0 .8em .7em !important; }
.n-ind { list-style: none; margin: .7em 0 0; padding: 0; border-top: 1px solid #e5e9f0; }
.n-ind li { display: flex; justify-content: space-between; padding: .62em .1em; border-bottom: 1px solid #e5e9f0; font-size: .6em; font-weight: 600; color: #0B2E6B; }
.n-ind span { color: #0A5BD3; font-weight: 800; }
.n-gov { padding: 5.6em .8em .4em; background: #EEF0F3; font-size: .5em; color: #1d2433; }
.n-gov b { font-weight: 900; margin-right: .2em; }
.n-gov span { margin-left: .4em; }
.n-chead { display: flex; justify-content: space-between; align-items: center; padding: .6em .8em; background: #fff; box-shadow: 0 2px 6px -3px rgba(0, 0, 0, .2); }
.n-chead b { font-size: .8em; font-weight: 800; }
.n-chead em { display: inline; }
.n-chead i { display: flex; align-items: center; gap: .3em; font-style: normal; font-size: .52em; color: #0A5BD3; }
.n-chead svg { width: 1.2em; height: 1.2em; }
.n-fb { display: block; width: max-content; margin: 0 .8em 0 auto; padding: .45em 1em; border-radius: 0 0 .3em .3em; background: #C8415F; color: #fff; font-size: .5em; font-weight: 700; letter-spacing: .14em; }
.n-c { text-align: center; padding-top: .6em; }
.n-cp { margin-top: .6em !important; font-size: .6em; font-weight: 500; line-height: 1.55; }
.n-ex { margin-top: .9em; padding: .7em; border-radius: .6em; background: #fff; box-shadow: 0 .2em .6em -.3em rgba(0, 0, 0, .2); text-align: left; }
.n-exh { display: flex; align-items: center; gap: .5em; font-size: .7em; font-weight: 600; }
.n-exh span { display: grid; place-items: center; width: 1.9em; height: 1.9em; border-radius: 50%; background: #FDEBF2; }
.n-exh svg { width: 1.1em; height: 1.1em; }
.n-q { margin-top: .55em !important; padding: .55em .65em; border-radius: .45em; background: #FDEBF2; font-size: .56em; font-weight: 500; line-height: 1.4; }
.n-ask { display: flex; justify-content: space-between; align-items: center; gap: .5em; margin-top: .8em !important; padding: .7em .75em; border-radius: .5em; border: 1px solid #dfe5ef; background: #fff; font-size: .54em; color: #9aa3b0; text-align: left; }
.n-ask svg { flex: none; width: 1.4em; height: 1.4em; color: #c4c9d2; }
.n-imp { padding: .8em; background: #FDEBF2; font-size: .5em; font-weight: 600; line-height: 1.45; text-align: center; color: #1d2433; }
@media (max-width: 1100px) {
  .cs-bars, .cs-outs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cs-process-4 { grid-template-columns: 1fr; }
}
@media (max-width: 1100px) and (min-width: 701px) {
  .cs-sol .ph { --pw: min(206px, calc((100vw - var(--gutter) * 2 - 160px) / 3.4)); }
  .cs-shots { flex-wrap: wrap; row-gap: 32px; }
  .cs-shots .ph { --pw: min(220px, calc((100vw - var(--gutter) * 2 - 160px) / 2.4)); }
}
@media (max-width: 900px) {
  .cs-bets, .cs-tiles, .cs-goal-wide { grid-template-columns: 1fr; }
  .cs-sol { grid-template-columns: 1fr; justify-items: center; gap: 40px; }
}
@media (max-width: 700px) {
  .cs-bars, .cs-outs { grid-template-columns: 1fr; }
  .cs-outs .is-hero { grid-column: auto; grid-row: auto; }
  #cs-hifi { overflow-x: clip; }
  .cs-shots { overflow-x: auto; justify-content: flex-start; scroll-snap-type: x mandatory; padding-bottom: 8px; margin-right: calc(-1 * var(--gutter)); }
  .cs-shots .ph { flex: none; scroll-snap-align: center; --pw: 210px; margin-top: 0 !important; }
}


/* ───────── WE NYC story blocks ───────── */
.cs-bars-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cs-bars-3 .cs-stat { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--rule); }
.cs-member { margin: 28px 0 0; padding: 20px 22px; border-radius: 18px; background: var(--surface); border-left: 5px solid var(--line); }
.cs-member p { font: 600 17px/1.5 var(--font); }
.cs-member cite { display: block; margin-top: 10px; font: 500 13px/1.4 var(--font); font-style: normal; color: var(--fg-muted); }
.cs-tiles-ic li { gap: 10px; }
.cs-tiles-ic .cs-bar-ic { margin: 0; }
.cs-tiles-ic small { line-height: 1.5; }
.cs-voices { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.cs-voices li { padding: 14px 20px; border-radius: 18px 18px 18px 4px; background: color-mix(in srgb, var(--line) 10%, var(--bg)); border: 1.5px solid color-mix(in srgb, var(--line) 35%, transparent); font: 700 clamp(17px, 1.5vw, 21px)/1.35 var(--font); }
.cs-bets-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cs-bets-3 .cs-bet-res { gap: 14px 20px; }
.cs-bets-3 .cs-bet-res b { font-size: clamp(24px, 2.1vw, 32px); }
.cs-duo { align-items: flex-end; gap: clamp(16px, 2vw, 32px); }
.cs-desk { flex: 1 1 auto; max-width: 860px; margin: 0; }
.cs-duo .ph { --pw: 220px; margin-bottom: 28px; }

/* Browser frame: everything inside is sized in em off the frame's width */
.bw { container-type: inline-size; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12), 0 34px 60px -34px rgba(0, 0, 0, .5); }
.bw-bar { display: flex; align-items: center; gap: clamp(4px, .8cqw, 7px); padding: clamp(5px, 1.2cqw, 10px) clamp(8px, 1.6cqw, 14px); background: #ECEEF1; }   /* scales down with small frames */
.bw-bar i { width: clamp(6px, 1.3cqw, 11px); height: clamp(6px, 1.3cqw, 11px); border-radius: 50%; background: #FF5F57; }
.bw-bar i:nth-child(2) { background: #FEBC2E; }
.bw-bar i:nth-child(3) { background: #28C840; }
.bw-bar span { flex: 1; margin: 0 8% 0 4%; padding: 4px 10px; border-radius: 7px; background: #fff; font: 500 clamp(8px, 1.4cqw, 12px)/1 system-ui, sans-serif; color: #5b6170; text-align: center; }
.bw-screen { font: 400 1.45cqw/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: #262938; aspect-ratio: 16 / 10.4; overflow: hidden; }
.bw-screen p { margin: 0; }
.d-nav { display: flex; align-items: center; gap: 2em; padding: 1.1em 2.6em; border-bottom: 1px solid #eceef2; }
.d-nav .w-logo { height: 2em; }
.d-links { display: flex; gap: 2em; margin-left: auto; font-size: .9em; }
.d-links b { font-weight: 600; }
.d-cta { padding: .6em 1.2em; border-radius: 999px; background: #262938; color: #fff; font-style: normal; font-weight: 700; font-size: .85em; }
.d-hero { display: grid; grid-template-columns: 1fr 1.05fr; gap: 2.4em; align-items: center; padding: 2.4em 2.6em; background: #FFF4EF; }
.d-hero img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 1.2em 1.2em 1.2em 4em; }
.d-h1 { margin: .4em 0 .9em !important; font-size: 2.15em; font-weight: 800; line-height: 1.12; letter-spacing: -.02em; }
.d-h1s { font-size: 1.9em; margin: 0 0 .6em !important; }
.d-quote { padding: 2em 4em; background: #262938; color: #fff; text-align: center; }
.d-quote p { font-size: 1.25em; font-weight: 600; line-height: 1.45; }
.d-quote small { display: block; margin-top: .8em; color: #F7B49F; }
.d-sec { padding: 2em 2.6em; }
.d-h2 { font-size: 1.4em; font-weight: 800; margin-bottom: 1em !important; }
.d-svcs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2em; }
.d-svc img { width: 100%; height: auto; aspect-ratio: 584 / 362; object-fit: cover; border-radius: .8em; }
.d-svc b { display: block; margin-top: .6em; font-size: 1em; }
.d-svc p { font-size: .8em; color: #555b6b; margin-top: .3em !important; }
.d-evhead { padding-bottom: .4em; }
.d-evs { display: grid; grid-template-columns: 1fr 1.15fr; gap: 1.6em; padding: 0 2.6em 2em; }
.d-feature { padding: 1em; border-radius: 1em; background: #FFF4EF; }
.d-feature img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: .7em; }
.d-feature em { display: block; margin-top: .8em; font-style: normal; font-size: .8em; font-weight: 700; color: #D9502A; }
.d-feature b { display: block; margin: .25em 0; font-size: 1.3em; }
.d-feature p { font-size: .85em; color: #555b6b; margin-bottom: .9em !important; }
.d-list .w-ev { font-size: 1.15em; }
.d-list .w-link { font-size: .95em; }

/* WE NYC app UI (brand coral #F2673E, navy #262938) */
.ph-screen:has(.w-bar) { background: #fff; }
.w-logo { display: block; height: 1.25em; width: auto; }
.w-logo-inv { filter: brightness(0) invert(1); height: 1.4em; margin: 0 auto .7em; }
.w-bar { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; padding: 2.15em .85em .65em; background: #fff; border-bottom: 1px solid #eceef2; color: #262938; }
.w-bar-ic { display: flex; gap: .7em; }
.w-bar-ic svg { width: 1.1em; height: 1.1em; display: block; }
.w-pad { padding: .9em .85em; color: #262938; }
.w-tint { background: #FFF4EF; }
.w-mhero img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 40% 50%; }
.w-kick { font-size: .46em; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #D9502A; }
.w-h1 { margin-top: .35em !important; font-size: 1.12em; font-weight: 800; line-height: 1.18; }
.w-h1s { font-size: 1.05em; }
.w-h2 { font-size: .9em; font-weight: 800; line-height: 1.2; margin-bottom: .55em !important; }
.w-h3 { margin: .9em 0 .2em !important; font-size: .64em; font-weight: 800; }
.w-p { font-size: .56em; line-height: 1.5; color: #4c5162; margin-top: .35em !important; }
.w-btn { display: inline-flex; align-items: center; gap: .45em; margin-top: .8em; padding: .8em 1.25em; border-radius: 999px; background: #F2673E; color: #fff; font-size: .58em; font-weight: 700; }
.w-btn svg { width: 1.1em; height: 1.1em; }
.w-btn-full { display: flex; justify-content: center; width: 100%; box-sizing: border-box; }
.w-quote { padding: 1em .9em; background: #262938; color: #fff; }
.w-quote p { font-size: .66em; font-weight: 600; line-height: 1.45; }
.w-quote small { display: block; margin-top: .6em; font-size: .48em; color: #F7B49F; }
.w-quote b { color: #fff; margin-right: .3em; }
.w-ev { display: grid; grid-template-columns: 2.4em 1fr auto; gap: .6em; align-items: start; padding: .6em 0; border-bottom: 1px solid #eceef2; }
.w-date { display: grid; place-items: center; align-content: center; height: 2.6em; border-radius: .5em; background: #FFF4EF; color: #D9502A; font-size: .5em; font-weight: 700; text-transform: uppercase; line-height: 1; }
.w-date b { font-size: 1.9em; color: #262938; }
.w-ev > div > b { display: block; font-size: .56em; line-height: 1.3; }
.w-ev p { display: flex; align-items: center; gap: .3em; font-size: .46em; color: #5b6170; margin-top: .3em !important; }
.w-ev p svg { width: 1.15em; height: 1.15em; flex: none; }
.w-sign { align-self: center; padding: .5em .8em; border: 1.5px solid #262938; border-radius: 999px; font-style: normal; font-size: .46em; font-weight: 700; }
.w-svc { margin-top: .7em; }
.w-svc img { display: block; width: 100%; height: auto; aspect-ratio: 584 / 362; object-fit: cover; border-radius: .6em; }
.w-svc b { display: flex; justify-content: space-between; align-items: center; margin-top: .45em; font-size: .66em; }
.w-svc b svg { width: 1.1em; height: 1.1em; color: #F2673E; }
.w-svc p { font-size: .52em; line-height: 1.45; color: #4c5162; margin-top: .2em !important; }
.w-input { display: block; margin-top: .7em; padding: .7em .9em; border-radius: 999px; border: 1px solid #cfd3db; font-style: normal; font-size: .54em; color: #9aa0ad; }
.w-news .w-btn { margin-top: .5em; }
.w-foot { padding: 1.1em .9em 2.2em; background: #262938; color: #c9ccd6; font-size: .48em; line-height: 1.55; text-align: center; }
.w-foot p + p { margin-top: .5em !important; }
.w-prog { display: block; height: .35em; margin: .4em 0 .2em; border-radius: 999px; background: #F1E3DD; overflow: hidden; }
.w-prog i { display: block; height: 100%; border-radius: inherit; background: #F2673E; }
.w-opt { display: grid; grid-template-columns: 2.1em 1fr 1.2em; gap: .55em; align-items: center; margin-top: .55em; padding: .7em; border-radius: .7em; border: 1.5px solid #e2e4ea; }
.w-opt > span { display: grid; place-items: center; width: 2.1em; height: 2.1em; border-radius: .55em; background: #FFF4EF; color: #D9502A; }
.w-opt > span svg { width: 1.2em; height: 1.2em; }
.w-opt b { display: block; font-size: .62em; }
.w-opt p { font-size: .48em; color: #5b6170; margin-top: .2em !important; }
.w-opt > i { display: grid; place-items: center; width: 1.2em; height: 1.2em; border-radius: 50%; border: 1.5px solid #cfd3db; }
.w-opt.is-on { border-color: #F2673E; background: #FFF8F5; }
.w-opt.is-on > i { background: #F2673E; border-color: #F2673E; color: #fff; }
.w-opt > i svg { width: .75em; height: .75em; }
.w-rec { display: grid; grid-template-columns: 4.2em 1fr; gap: .6em; margin-top: .65em; padding: .55em; border-radius: .7em; border: 1px solid #eceef2; }
.w-rec img { width: 100%; height: 100%; min-height: 4em; object-fit: cover; border-radius: .45em; }
.w-rec em { font-style: normal; font-size: .44em; font-weight: 700; color: #1F8A57; background: #E6F5EC; padding: .2em .55em; border-radius: 999px; }
.w-rec b { display: block; margin-top: .35em; font-size: .62em; }
.w-rec p { font-size: .46em; line-height: 1.4; color: #5b6170; margin-top: .2em !important; }
.w-link { display: flex; align-items: center; gap: .35em; margin-top: .7em !important; font-size: .56em; font-weight: 700; color: #D9502A; }
.w-link svg { width: 1.1em; height: 1.1em; }
.w-evmini { display: grid; grid-template-columns: 2.4em 1fr; gap: .6em; align-items: center; margin: .7em 0 .3em; padding: .55em; border-radius: .7em; background: #FFF4EF; }
.w-evmini > b { font-size: .6em; line-height: 1.3; }
.w-evmini .w-date { background: #fff; }
.w-f { display: grid; gap: .3em; margin-top: .6em; }
.w-f > span { font-size: .52em; font-weight: 700; }
.w-f > i { display: flex; justify-content: space-between; align-items: center; padding: .8em .9em; border-radius: 999px; border: 1.5px solid #d5d8e0; font-style: normal; font-size: .58em; color: #262938; }
.w-f > i.is-ok { border-color: #8FD0AE; }
.w-f > i svg { width: 1.1em; height: 1.1em; color: #1F8A57; }
.w-seg { display: grid; grid-template-columns: 1fr 1fr; gap: .3em; margin-top: .3em !important; padding: .25em; border-radius: 999px; background: #F2F3F6; font-size: .58em; text-align: center; }
.w-seg > * { padding: .65em 0; border-radius: 999px; }
.w-seg b { background: #262938; color: #fff; }
.w-chk { display: flex; align-items: center; gap: .5em; margin-top: .8em; font-size: .54em; }
.w-chk b { display: grid; place-items: center; width: 1.5em; height: 1.5em; border-radius: .35em; background: #F2673E; color: #fff; }
.w-chk b svg { width: .95em; height: .95em; }
.w-fine { margin-top: .55em !important; font-size: .46em; color: #6b7080; text-align: center; }
.w-featm { margin: .5em 0 .4em; padding: .55em; border-radius: .8em; background: #FFF4EF; }
.w-featm img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: .55em; }
.w-featm em { display: block; margin-top: .5em; font-style: normal; font-size: .46em; font-weight: 700; color: #D9502A; }
.w-featm b { display: block; margin-top: .2em; font-size: .7em; }
.w-featm p { font-size: .48em; color: #5b6170; margin-top: .2em !important; }
.w-featm .w-btn { margin-top: .55em; }
.w-chips { display: flex; flex-wrap: wrap; gap: .4em; margin: .55em 0 .3em !important; font-size: .52em; }
.w-chips > * { padding: .45em .9em; border-radius: 999px; border: 1px solid #d5d8e0; }
.w-chips b { background: #262938; border-color: #262938; color: #fff; }
.bw .w-chips { font-size: .8em; }
.bw .w-btn { font-size: .85em; }
.bw .w-kick { font-size: .7em; }

@media (max-width: 1100px) {
  .cs-bets-3 { grid-template-columns: 1fr; }
  .cs-duo { flex-direction: column; align-items: center; }
  .cs-desk { width: 100%; }
}
@media (max-width: 900px) {
  .cs-bars-3 { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .cs-duo .ph { --pw: 220px; }
  #cs-hifi .cs-set.cs-duo { overflow: visible; margin-right: 0; }
}


/* ───────── MyCity: real screenshots that already include a phone frame ───────── */
.bw-img { aspect-ratio: 1672 / 941; }
.bw-img img { display: block; width: 100%; height: auto; }
.ph-shot .ph-screen { display: flex; flex-direction: column; background: var(--end); }
.m-top { flex: none; height: calc(var(--pw) * .1); background: var(--top); }   /* the app bar's colour under the notch, like the coded screens */
.ph-shot .ph-screen img { display: block; width: 100%; height: auto; flex: none; -webkit-mask-image: linear-gradient(#000 92%, transparent); mask-image: linear-gradient(#000 92%, transparent); }   /* the whole screen fits; its bottom fades into the page colour */
.ph-shot.ph-live .ph-screen { background: var(--end); }
.ph-snap { --bar: calc(var(--pw) * .1); --w: calc(var(--pw) * .928); scroll-snap-type: y mandatory; }   /* --w: the screen's inner width */
.ph-snap .m-top { display: block; position: sticky; top: 0; z-index: 2; }
.ph-snap .m-hdr { display: block; position: sticky; top: var(--bar); z-index: 2; height: calc(var(--w) * var(--cut) / 640); background: 0 0 / 100% auto no-repeat; }   /* the one header, cut from the first screen */
.ph-snap .m-cut { display: block; overflow: hidden; scroll-snap-align: start; scroll-margin-top: calc(var(--bar) + var(--w) * 50 / 640); }
.ph-shot .ph-snap img { margin-top: calc(var(--w) * var(--cut) / -640); -webkit-mask-image: none; mask-image: none; }   /* trim this screen's own header */
.ph-snap .m-cut:last-child { margin-bottom: calc(var(--pw) * .27); -webkit-mask-image: linear-gradient(#000 92%, transparent); mask-image: linear-gradient(#000 92%, transparent); }   /* room below, so the last screen can snap under the header too */

/* ───────── Wireframe kit ─────────
   One flat placeholder style for every low-fidelity screen. Toggle .wf on a container marked data-wf
   (case-stories.js wraps its text runs in <wf-t>). Static on purpose: no shimmer, shadows or gradients. */
.wf { --wf-bg: #fff; --wf-fill: #F2F3F5; --wf-line: #D9DCE0; --wf-bar: #CDD1D6; --wf-bar-strong: #AEB3BA; --wf-icon: #A6ABB2; --wf-th: .42em; --wf-tc: var(--wf-bar); }
.wf * { text-shadow: none !important; box-shadow: none !important; text-decoration: none !important; }
.wf wf-t {   /* text → a bar the length of the words, one per line */
  color: transparent !important; border-radius: 99px;
  background: linear-gradient(var(--wf-tc), var(--wf-tc)) 0 50% / 100% var(--wf-th) no-repeat;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.wf :is(h1, h2, h3, h4, h5, h6, .wf-hd) { --wf-th: .78em; --wf-tc: var(--wf-bar-strong); }   /* headings: thick bars */
.wf .wf-swap { display: none !important; }
.wf-img, .wf-av, .wf-logo { display: none; }
.wf .wf-img { display: grid; place-items: center; aspect-ratio: 4 / 3; border: 1px solid var(--wf-line); background: var(--wf-fill); color: var(--wf-icon); }
.wf .wf-img svg { width: 28%; max-width: 3em; }
.wf .wf-av { display: grid; place-items: center; width: 100%; height: 100%; box-sizing: border-box; border-radius: 50%; border: 1px solid var(--wf-line); background: var(--wf-fill); color: var(--wf-icon); }
.wf .wf-av svg { width: 62%; }
.wf .wf-logo { display: inline-grid; place-items: center; flex: none; width: 1.9em; height: 1.9em; box-sizing: border-box; border: 1.5px solid var(--wf-bar-strong); border-radius: .3em; }
.wf .wf-logo i { width: 45%; aspect-ratio: 1; border-radius: 50%; background: var(--wf-bar); }
.wf .wf-btn { justify-content: center; text-align: center; border: 1px solid var(--wf-line) !important; background: var(--wf-bg) !important; color: var(--wf-icon) !important; }
.wf .wf-btn svg { display: none; }
.wf .wf-field { border: 1px solid var(--wf-line) !important; background: var(--wf-bg) !important; color: var(--wf-icon) !important; --wf-tc: var(--wf-fill); --wf-th: .5em; }
/* Diversity Works screens in wireframe mode: the palette goes grey, charts lose their labels and numbers */
.dw-app.wf { --dw-navy: #AEB3BA; --dw-ink: #A6ABB2; --dw-gold: #DADDE1; --dw-blue: #C4C8CD; --dw-grey: #E9EBEE; --dw-grey2: #CDD1D6; --dw-tb: var(--wf-fill); --dw-tr: var(--wf-fill); --dw-bg: #fff; --dw-pale: var(--wf-fill); --dw-mute: #A6ABB2; --dw-card: #fff; }
.wf .dw-card { border: 1px solid var(--wf-line); border-radius: .3em; }
.wf .dw-logo b { border-left-color: var(--wf-line); --wf-th: .7em; --wf-tc: var(--wf-bar-strong); }
.wf .dw-av { background: none; }
.wf :is(.dw-fbtn, .dwd-acts span) { padding: .25em .7em; border-radius: .3em; }
.wf .dwd-fb span, .wf .dw-sbtns button { border-radius: .3em; }
.wf .dwd-nav, .wf .dw-tasks li, .wf .dw-hr div, .wf .dw-vbars { border-color: var(--wf-line); }
.wf .dw-vbars { background: none; }
.wf .dw-vgb i, .wf .dw-hr i, .wf .dw-spark i { border-radius: 0; }
.wf :is(.dw-vg small, .dw-hr small, .dw-axis, .dw-axl, .dw-yl, .dw-months, .dw-donut b) { visibility: hidden; }
.wf .dw-donut::before { display: none; }
.wf .dw-t b { border-color: var(--wf-line); }
.wf .dw-rate b { background: var(--wf-fill); }
.wf .dw-th { --wf-tc: var(--wf-bar-strong); }
.wf .dwd-search { border-radius: 999px; }
.wf .dw-legend, .wf .dw-pkeys, .wf .dwd-ql, .wf .dw-tasks li { color: var(--wf-icon); }
/* ───────── Diversity Works app UI ─────────
   One palette, held in variables, so .wf can turn the same screens into a grey wireframe (see the wireframe kit). */
.dw-app { --dw-navy: #17325E; --dw-ink: #1E3A6E; --dw-gold: #CB9B2C; --dw-blue: #0E83C7; --dw-grey: #6E6F72; --dw-grey2: #C3C6CA; --dw-tb: #D5DDEB; --dw-tr: #FBE9E3; --dw-bg: #E3E8EE; --dw-pale: #ECEEF4; --dw-mute: #8A93A6; --dw-card: #fff; }
.dw-app .ph-screen, .dw-app .bw-screen { transition: filter .3s; }
.dw-gold { background: var(--dw-gold); } .dw-blue { background: var(--dw-blue); } .dw-navy { background: var(--dw-navy); } .dw-grey { background: var(--dw-grey); }
.dw-logo { display: inline-flex; align-items: center; gap: .45em; }
.dw-mark { width: 1.9em; height: 1.9em; flex: none; }
.dw-logo b { padding-left: .5em; border-left: 1px solid #C9CFD8; font-size: .82em; font-weight: 800; color: var(--dw-ink); white-space: nowrap; }
.dw-logo i { font-style: normal; font-weight: 500; }
.dw-ic { display: inline-grid; color: var(--dw-ink); }
.dw-ic svg { width: 1.15em; height: 1.15em; }
.dw-ic-s svg { width: .9em; height: .9em; }
.dw-h { font-size: .92em; font-weight: 500; color: var(--dw-ink); text-align: center; }
.dw-hl { text-align: left; display: flex; align-items: center; gap: .2em; font-size: 1.05em; }
.dw-h2 { font-size: 1.05em; font-weight: 600; color: var(--dw-ink); }
.dw-sub { margin-top: .35em !important; font-size: .62em; font-weight: 600; color: var(--dw-gold); }
.dw-c { text-align: center; }
.dw-cap { margin-top: .5em !important; font-size: .48em; line-height: 1.4; text-align: center; color: var(--dw-ink); }
.dw-capl { text-align: left; margin-top: 0 !important; }
.dw-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: .3em .9em; margin-top: .55em !important; font-size: .48em; color: #5B6375; }
.dw-legend span { display: inline-flex; align-items: center; gap: .35em; }
.dw-legend i { width: .95em; height: .95em; border-radius: 50%; background: none !important; border: .22em solid; }
.dw-legend i.dw-gold { border-color: var(--dw-gold); } .dw-legend i.dw-blue { border-color: var(--dw-blue); } .dw-legend i.dw-navy { border-color: var(--dw-navy); } .dw-legend i.dw-grey { border-color: var(--dw-grey); }
.dw-legend2 { display: grid; grid-template-columns: 1fr 1fr; justify-items: start; gap: .5em .7em; }
.dw-donut { position: relative; display: grid; place-items: center; width: 7.4em; aspect-ratio: 1; margin: .8em auto .3em; border-radius: 50%; background: conic-gradient(var(--dw-navy) 0 calc(var(--p) * 1%), var(--dw-pale) 0); }
.dw-donut::after { content: ""; position: absolute; inset: 22%; border-radius: 50%; background: var(--dw-card); }
.dw-donut::before { /* arrowhead at the end of the arc, pointing clockwise */
  content: ""; position: absolute; z-index: 1; inset: -8%; transform: rotate(calc(var(--p) * 3.6deg));
  background: var(--dw-navy); clip-path: polygon(48.5% 0%, 63% 16.4%, 48.5% 33%); }
.dw-donut b { position: relative; z-index: 2; font-size: 1.05em; font-weight: 500; color: var(--dw-ink); }
.dw-table { margin-top: .9em; font-size: .5em; color: var(--dw-ink); }
.dw-th, .dw-tr { display: grid; grid-template-columns: 1fr 4.6em 6.4em; gap: .4em; align-items: center; }
.dw-th { padding-bottom: .4em; color: var(--dw-gold); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.dw-th span:not(:first-child) { text-align: center; }
.dw-tr { padding: .36em 0; }
.dw-tr b { padding: .2em .3em; text-align: center; font-weight: 500; }
.dw-b b { background: var(--dw-tb); } .dw-r b { background: var(--dw-tr); }
.dw-t span { font-weight: 700; } .dw-t b { border: 1.4px solid var(--dw-navy); font-weight: 700; }
.dw-rate { grid-template-columns: 1fr 11.4em; } .dw-rate span { font-weight: 700; } .dw-rate b { background: #E6E7EA; font-weight: 700; }
.dw-dots { display: flex; justify-content: center; gap: 1.2em; margin-top: .9em !important; }
.dw-dots i { width: .75em; height: .75em; border-radius: 50%; border: 1.6px solid var(--dw-navy); }
.dw-dots .is-on { background: var(--dw-navy); }
.dw-sel { display: inline-flex; align-items: center; gap: 1.5em; margin-left: auto; padding: .45em .7em; border: 1px solid #CFD5DE; border-radius: .35em; font-size: .46em; color: var(--dw-mute); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.dw-sel svg { width: 1.1em; height: 1.1em; }
.dw-yl { margin-top: .6em !important; font-size: .48em; color: var(--dw-ink); }
.dw-vbars { display: flex; align-items: flex-end; gap: 1.2em; height: 6em; margin-top: .4em; padding: 0 .3em; border-bottom: 1px solid #DDE2E8; background: repeating-linear-gradient(transparent 0 calc(20% - 1px), #EEF1F5 calc(20% - 1px) 20%); }
.dw-vg { flex: 1; display: grid; grid-template-rows: 1fr auto; height: 100%; }
.dw-vgb { display: flex; align-items: flex-end; justify-content: center; gap: 12%; height: 100%; }
.dw-vgb i { flex: 1; max-width: 1.2em; border-radius: .25em .25em 0 0; }
.dw-vg small { margin-top: .3em; font-size: .42em; text-align: center; color: #4B5468; white-space: nowrap; }
.dw-vbig { height: 13em; gap: 1.6em; }
.dw-vbig .dw-vg small { font-size: .5em; }
.dw-months { display: flex; flex-wrap: wrap; justify-content: center; gap: .5em .9em; margin-top: .45em !important; font-size: .46em; color: #A3A9B4; }
.dw-months b { flex-basis: 100%; text-align: center; color: var(--dw-ink); font-weight: 600; }
.dw-months b::after { content: ""; display: block; width: 5em; height: 2px; margin: .3em auto 0; background: var(--dw-navy); }
.dw-lgf { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .4em; }
.dw-fbtn { display: inline-flex; align-items: center; gap: .3em; font-size: .5em; color: var(--dw-ink); }
.dw-fbtn svg { width: 1.6em; height: 1.6em; color: var(--dw-navy); }
.dw-hbars { margin-top: .6em; }
.dw-hr { display: grid; grid-template-columns: 3em 1fr; align-items: center; gap: .3em; margin-bottom: 1em; }
.dw-hr small { font-size: .46em; color: #4B5468; }
.dw-hr div { display: grid; gap: 1px; padding-left: 1px; border-left: 1px solid #DDE2E8; }
.dw-hr i { display: block; height: .62em; border-radius: 0 .2em .2em 0; }
.dw-axrow { margin-bottom: 0; }
.dw-axrow .dw-axis { position: relative; height: 1.4em; border-left: 0; }
.dw-axis span { position: absolute; top: 0; translate: -50% 0; font-size: .44em; color: #4B5468; }
.dw-axl { margin-top: .3em !important; font-size: .5em; text-align: center; color: var(--dw-ink); }
.dw-pies { display: grid; grid-template-columns: 1.45fr .45fr 1fr; align-items: center; gap: .35em; margin-top: .9em; }
.dw-pies > .dw-pie:first-child { width: 92%; justify-self: center; }
.dw-pies > .dw-pie:last-child { width: 82%; justify-self: center; }
.dw-pie { display: block; aspect-ratio: 1; overflow: visible; }
.dw-pie path { stroke: var(--dw-card); stroke-width: 2.4; stroke-linejoin: round; }
.dw-link { display: block; width: 100%; height: 3.4em; overflow: visible; }
.dw-link path { fill: none; stroke: var(--dw-navy); stroke-width: 1.5px; vector-effect: non-scaling-stroke; }
.dw-pkeys { display: grid; grid-template-columns: 1fr 1fr; gap: .35em .5em; margin-top: .6em; font-size: .46em; color: var(--dw-ink); }
.dw-pkeys span { display: inline-flex; align-items: center; gap: .45em; }
.dw-pkeys i { width: 1em; height: 1em; border-radius: .2em; }
.dw-tasks { list-style: none; margin: .3em 0 0; padding: 0; }
.dw-tasks li { display: grid; grid-template-columns: 1.3em 1fr; gap: .6em; align-items: center; padding: .85em .2em; border-bottom: 1px solid #E5E9EF; font-size: .5em; color: #4B5468; }
.dw-tasks i { display: grid; place-items: center; width: 1.3em; height: 1.3em; border-radius: 50%; border: 1.6px solid var(--dw-navy); }
.dw-tasks svg { width: .85em; height: .85em; color: var(--dw-navy); }
.dw-tasks .is-done { color: #8A93A6; text-decoration: line-through; }
/* mobile shell */
.dw-m { display: flex; flex-direction: column; height: 100%; background: var(--dw-card); }
.dw-bar { display: flex; justify-content: space-between; align-items: center; padding: 2.4em .8em .5em; }
.dw-bar .dw-logo { font-size: 1.15em; }
.dw-mtop { display: flex; justify-content: space-between; align-items: center; padding: 2.4em .9em .2em; }
.dw-mb { flex: 1; min-height: 0; overflow: hidden; padding: .2em .85em .5em; }
.dw-tab { flex: none; display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 .5em; border-top: 1.5px solid var(--dw-navy); }
.dw-tab span { display: grid; place-items: center; padding: .55em 0 1.3em; color: #C3CCDA; }
.dw-tab span + span { border-left: 1.5px solid var(--dw-navy); }
.dw-tab .is-on { color: var(--dw-navy); }
.dw-tab svg { width: 1.45em; height: 1.45em; }
/* desktop */
.dwd-nav { display: flex; align-items: center; gap: 1.6em; padding: .7em 1.6em; background: #fff; border-bottom: 1px solid #E3E7EC; }
.dwd-nav .dw-logo { font-size: 1.15em; }
.dwd-search { display: flex; align-items: center; gap: .5em; width: 15em; padding: .45em .9em; border-radius: 999px; background: #EDF1F6; font-size: .85em; color: var(--dw-ink); }
.dwd-search svg { width: 1.1em; height: 1.1em; }
.dwd-me { display: flex; align-items: center; gap: .6em; margin-left: auto !important; font-size: .85em; color: var(--dw-ink); }
.dwd-body { flex: 1; min-height: 0; padding: 1em 1.4em; box-sizing: border-box; background: var(--dw-bg); }   /* fills what the nav leaves, so cards keep their bottom edge */
.dw-dset .bw-screen { display: flex; flex-direction: column; }
.dwd-nav { flex: none; }
.dw-card { padding: 1em 1.2em; background: var(--dw-card); border-radius: .3em; box-shadow: 0 1px 4px rgba(20, 40, 80, .1); min-width: 0; }
.dwd-home { display: grid; grid-template-columns: 1.55fr 1fr; grid-template-rows: auto 1fr; gap: .9em; }
.dwd-util { grid-column: 1 / -1; display: grid; grid-template-columns: 13em 1fr; gap: 2em; align-items: center; }
.dwd-util .dw-table { margin-top: 0; font-size: .62em; }
.dwd-util .dw-th, .dwd-util .dw-tr { grid-template-columns: 1fr 9em 11em; }
.dwd-util .dw-rate { grid-template-columns: 1fr 20.4em; }
.dwd-util .dw-donut { width: 7.6em; font-size: 1.2em; }
.dwd-util .dw-sub { font-size: .8em; }
.dwd-cum .dw-vbars { height: 9em; gap: .7em; }
.dwd-cumh { display: flex; gap: 1em; align-items: flex-start; }
.dwd-cum .dw-cap, .dwd-cum .dw-legend { font-size: .55em; }
.dwd-quick .dwd-ql { display: flex; justify-content: space-between; align-items: center; margin-top: .75em !important; font-size: .62em; color: var(--dw-ink); }
.dwd-ql span { display: inline-flex; align-items: center; gap: .5em; }
.dwd-ql span i { width: .5em; height: .5em; border-radius: 50%; }
.dw-spark { display: flex; align-items: flex-end; gap: 2px; width: 7em; height: 2em; }
.dw-spark i { flex: 1; }
.dw-spark-gold i { background: var(--dw-gold); } .dw-spark-navy i { background: var(--dw-navy); }
.dwd-all { margin-top: 1em !important; text-align: right; font-size: .58em; color: var(--dw-ink); }
.dwd-full { height: 100%; box-sizing: border-box; }
.dwd-rh { display: flex; justify-content: space-between; align-items: center; }
.dwd-acts { display: flex; gap: 1.2em; font-size: .7em; color: var(--dw-ink); }
.dwd-acts span { display: inline-flex; align-items: center; gap: .35em; }
.dwd-acts svg { width: 1.5em; height: 1.5em; color: var(--dw-navy); }
.dwd-full .dw-cap, .dwd-full .dw-legend { font-size: .7em; }
.dwd-full .dw-hbars { margin: 1.6em 2em 0; }
.dwd-full .dw-hr { grid-template-columns: 5em 1fr; margin-bottom: 1.25em; }
.dwd-full .dw-hr small, .dwd-full .dw-axis span { font-size: .7em; }
.dwd-full .dw-hr i { height: .7em; }
.dwd-full .dw-axl { font-size: .7em; }
.dwd-graph { display: grid; grid-template-columns: 2.4fr 1fr; gap: .9em; }
.dwd-graph .dw-cap, .dwd-graph .dw-legend { font-size: .7em; }
.dw-vq { height: 17em; gap: 3em; margin: 1em 1.5em 0; }
.dw-vq .dw-vgb i { max-width: 3.4em; border-radius: 0; }
.dw-vq .dw-vg small { font-size: .7em; }
.dwd-graph .dw-axl { font-size: .75em; margin-top: .6em !important; }
.dwd-filter { font-size: .9em; }
.dwd-fh { display: flex; justify-content: space-between; align-items: center; color: var(--dw-ink); font-size: .8em; }
.dwd-fb { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6em; margin-top: .7em !important; }
.dwd-fb span { padding: .3em; background: var(--dw-navy); color: #fff; text-align: center; font-size: .7em; font-weight: 700; }
.dwd-fl { margin-top: 1em !important; font-size: .68em; color: var(--dw-ink); }
.dwd-radio { display: flex; gap: 1.5em; margin-top: .4em !important; font-size: .66em; color: var(--dw-ink); }
.dwd-radio span { display: inline-flex; align-items: center; gap: .4em; }
.dwd-radio i { width: 1.1em; height: 1.1em; border-radius: 50%; border: 1.5px solid var(--dw-ink); }
.dwd-radio .is-on i { background: radial-gradient(var(--dw-ink) 45%, transparent 50%); }
.dwd-in { display: flex; justify-content: space-between; align-items: center; margin-top: .35em !important; padding: .4em .6em; border: 1px solid #A9B3C4; font-size: .62em; color: #A3A9B4; }
.dwd-in svg { width: 1.2em; height: 1.2em; color: var(--dw-ink); }
.dwd-con { display: grid; grid-template-columns: 1fr 2.6fr; gap: .9em; }
.dwd-my { font-size: .95em; }
.dwd-my .dw-cap { font-size: .5em; }
.dwd-my .dw-sub { font-size: .65em; margin-top: 1em !important; }
.dwd-my .dw-pkeys, .dwd-my .dw-tasks li { font-size: .46em; }
.dwd-my .dw-tasks li { padding: .5em .2em; }
.dwd-stack { display: grid; grid-template-rows: auto 1fr; gap: .9em; min-width: 0; }
.dwd-two { display: grid; grid-template-columns: 1.55fr 1fr; gap: .9em; min-width: 0; }
.dwd-stack .dwd-util { grid-template-columns: 10em 1fr; gap: 1.2em; }
.dwd-stack .dwd-util .dw-donut { width: 6em; }
.dwd-stack .dwd-util .dw-table { font-size: .5em; }
.dwd-stack .dw-card { padding: .8em .9em; }
/* Diversity Works interactive prototype */
@property --p { syntax: '<number>'; inherits: true; initial-value: 0; }
.dw-proto .ph-screen { touch-action: pan-y; cursor: grab; user-select: none; }
.dw-proto .ph-screen:focus-visible { outline: 3px solid var(--line); outline-offset: 4px; }
.dw-track { position: absolute; inset: 0; display: flex; transform: translateX(calc(var(--i) * -100%)); transition: transform .55s var(--ease-out); }
.dw-slide { flex: 0 0 100%; display: flex; flex-direction: column; min-width: 0; }
.dw-slide > .dw-m { flex: 1; height: auto; min-height: 0; }   /* fill the phone by stretching, not a chain of height: 100% (Safari left a strip under the tab bar) */
.dw-proto .ph-screen { position: relative; }
.dw-drawer { position: absolute; inset: 0; z-index: 3; transform: translateX(-100%); transition: transform .5s var(--ease-out), box-shadow .5s; }
.dw-drawer-r { transform: translateX(100%); z-index: 4; }
.dw-drawer-b { transform: translateY(100%); z-index: 4; }
.dw-drawer-b.is-open { box-shadow: 0 -12px 30px -12px rgba(0, 0, 0, .3); }
.dw-sb { display: flex; flex-direction: column; }
.dw-srow { display: flex; align-items: center; gap: .6em; margin-top: .4em; }
.dw-sfield { flex: 1; display: flex; align-items: center; gap: .4em; padding: .35em .7em; border-radius: 999px; background: #E6EBF2; color: var(--dw-ink); }
.dw-sfield svg { width: .95em; height: .95em; flex: none; }
.dw-sfield input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; font-size: .55em; color: var(--dw-ink); outline: none; }
.dw-sfield:focus-within { box-shadow: 0 0 0 2px var(--dw-blue); }
.dw-sf svg { width: 1.3em; height: 1.3em; }
.dw-sf { cursor: pointer; border-radius: .3em; padding: .15em; }
.dw-sf.is-on { background: #E6EBF2; }
.dw-filters { flex: 1; list-style: none; margin: .8em 0 0; padding: 0 .2em; overflow: auto; }
.dw-filters > li { border-bottom: 1px solid #E1E6EE; }
.dw-fq { display: flex; align-items: center; gap: .4em; padding: 1.9em 0 .9em; font-size: .52em; color: var(--dw-ink); cursor: pointer; }
.dw-fq b { margin-left: auto; font-weight: 600; color: var(--dw-blue); }
.dw-fq svg { width: 1.5em; height: 1.5em; flex: none; transition: transform .25s; }
.dw-filters > li:not(.is-set) .dw-fq svg { margin-left: auto; }
.dw-filters > li.is-open .dw-fq svg { transform: rotate(180deg); }
.dw-filters ul { display: none; list-style: none; margin: 0 0 .5em; padding: 0; }
.dw-filters > li.is-open ul { display: block; }
.dw-filters ul li { padding: .5em .8em; font-size: .5em; color: #4B5468; border-radius: .4em; cursor: pointer; }
.dw-filters ul li:hover { background: #EEF2F7; color: var(--dw-ink); }
.dw-empty { flex: 1; display: grid; place-items: center; font-size: .75em; color: var(--dw-ink); }
.dw-results { flex: 1; list-style: none; margin: .7em 0 0; padding: 0; overflow: auto; }
.dw-results li { display: flex; justify-content: space-between; align-items: center; padding: .6em .2em; border-bottom: 1px solid #E5E9EF; font-size: .54em; color: var(--dw-ink); }
.dw-results small { color: var(--dw-mute); }
.dw-sbtns { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5em; padding: 0 1.2em .3em; }
.dw-sbtns button { padding: .45em 0; border: 0; border-radius: 999px; background: #D5DCE6; color: #fff; font: inherit; font-size: .58em; cursor: pointer; }
.dw-sbtns.is-ready button[data-s="go"] { background: var(--dw-ink); }   /* grey until there is something to search */
.dw-drawer-r.is-open { box-shadow: -12px 0 30px -12px rgba(0, 0, 0, .35); }
.dw-me { display: flex; align-items: center; gap: .6em; margin-top: .5em !important; }
.dw-av { display: grid; place-items: center; width: 2.4em; height: 2.4em; border-radius: 50%; background: var(--dw-ink); color: #fff; font-size: .9em; font-weight: 500; }
.dw-me b { font-size: .7em; font-weight: 500; color: var(--dw-ink); }
.dw-menu { list-style: none; margin: 1.3em 0 0; padding: 0 0 0 .55em; }
.dw-menu li { padding: .6em 0; font-size: .98em; color: var(--dw-ink); cursor: pointer; }
.dw-menu li:hover { color: var(--dw-blue); }
.dw-drawer.is-open { transform: none; box-shadow: 12px 0 30px -12px rgba(0, 0, 0, .35); }
.dw-proto .dw-bar .dw-ic:first-child { cursor: pointer; }
.dw-proto .dw-dots i, .dw-proto .dw-tab span, .dw-proto .dw-tasks li, .dw-proto .dw-mtop .dw-ic { cursor: pointer; }
.dw-proto .dw-donut { transition: --p 1.1s cubic-bezier(.33, 1, .68, 1); }
.dw-proto .dw-slide:not(.is-shown) .dw-donut { --p: 0 !important; }
.dw-proto .dw-vgb i { transform-origin: bottom; transition: transform .8s var(--ease-out); }
.dw-proto .dw-slide:not(.is-shown) .dw-vgb i { transform: scaleY(0); }
.dw-proto .dw-hr i { transform-origin: left; transition: transform .8s var(--ease-out); }
.dw-proto .dw-slide:not(.is-shown) .dw-hr i { transform: scaleX(0); }
.dw-proto .dw-pie { transition: transform .9s var(--ease-out), opacity .6s; }
.dw-proto .dw-slide:not(.is-shown) .dw-pie { opacity: 0; transform: rotate(-260deg) scale(.6); }
.dw-proto .dw-vgb i:nth-child(2), .dw-proto .dw-hr i:nth-child(2) { transition-delay: .06s; }
.dw-proto .dw-vgb i:nth-child(3), .dw-proto .dw-hr i:nth-child(3) { transition-delay: .12s; }
.dw-proto .dw-vgb i:nth-child(4), .dw-proto .dw-hr i:nth-child(4) { transition-delay: .18s; }
.dw-proto .dw-tasks li { transition: color .25s; }
@media (prefers-reduced-motion: reduce) {
  .dw-track, .dw-drawer, .dw-proto .dw-donut, .dw-proto .dw-vgb i, .dw-proto .dw-hr i, .dw-proto .dw-pie { transition: none; }
}
.dw-ctrls .cs-switch { flex-wrap: wrap; border-radius: 22px; }
@media (max-width: 700px) { .dw-ctrls .cs-switch button { padding: 10px 14px; font-size: 13px; } }
.dw-ctrls { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.cs-fid button[aria-pressed="true"] { background: var(--line); color: #fff; }
.dw-dset .cs-desk { max-width: 1000px; margin: 0 auto; }
#dw-mob { margin-top: 8px; }

@media (prefers-reduced-motion: reduce) {
  .cs-set.is-on .ph { animation: none; }
  .cs-mood { transition: none !important; }
}


/* ───────── Résumé viewer ───────── */
.has-dialog { overflow: hidden; }
.resume-dlg { width: min(920px, calc(100vw - 32px)); height: min(100dvh - 32px, 1200px); max-height: none; max-width: none; margin: auto; padding: 0; border: 0; border-radius: 18px; overflow: hidden; background: var(--bg); color: var(--fg); }
.resume-dlg[open] { display: flex; flex-direction: column; }
.resume-dlg::backdrop { background: rgba(10, 20, 36, .72); }
.resume-bar { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 22px; border-bottom: 1px solid var(--rule); }
.resume-title { margin: 0 auto 0 0; font: 800 20px/1 var(--font); letter-spacing: -.02em; }
.resume-act { padding: 10px 16px; font-size: 13px; }
.resume-close { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--rule); border-radius: 50%; background: none; color: inherit; font-size: 16px; cursor: pointer; }
.resume-close:hover { border-color: currentColor; }
.resume-pages { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 18px; background: var(--surface); }
.resume-pages:focus-visible { outline: 3px solid var(--line-yellow); outline-offset: -3px; }
.resume-pages img { display: block; width: 100%; max-width: 820px; height: auto; margin: 0 auto 18px; background: #fff; border-radius: 4px; box-shadow: 0 2px 14px rgba(0, 0, 0, .14); }
@media (max-width: 600px) {
  .resume-dlg { width: 100vw; height: 100dvh; border-radius: 0; }
  .resume-bar { gap: 8px; padding: 10px 10px 10px 16px; }
  .resume-open { display: none; }
  .resume-pages { padding: 10px; }
}
/* ───────── Ride (boarding sequence) ───────── */
.ride { --c: var(--line-blue); position: fixed; inset: 0; z-index: 150; background: #000; overflow: hidden; }
.ride-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.ride-video.is-on { opacity: 1; }
.ride-stage { position: absolute; inset: 0; }
.rs-layer { position: absolute; inset: 0; opacity: 0; }
.rs-entrance { background: url("assets/hero/subway_entrance.webp") 50% 60% / cover no-repeat; filter: saturate(.9) contrast(1.05); transform-origin: 50% 70%; }
.night .rs-entrance { filter: brightness(.42) saturate(.7) hue-rotate(-12deg) contrast(1.15); }
.rs-platform { overflow: hidden; }
.rs-platform-bg { position: absolute; inset: 0; background: url("assets/hero/background-day.webp") 50% 78% / 600% auto no-repeat; }
.night .rs-platform-bg { background-image: url("assets/hero/background-night.webp"); }
.rs-train { position: absolute; top: 60%; left: 50%; width: 160vw; max-width: none; height: auto; translate: -50% -50%; }
.rs-interior {
  display: grid; place-items: center;
  background: radial-gradient(ellipse at 50% 45%, #2a3550 0%, #0c1220 70%);
}
.rs-windows { position: absolute; left: 0; right: 0; top: 18%; height: 34%; display: flex; gap: 4%; padding-inline: 4%; }
.rs-windows span {
  flex: 1; border-radius: 18px; border: 6px solid #3a465d; overflow: hidden;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .0) 0 40px, color-mix(in srgb, var(--c) 70%, #fff) 40px 46px, rgba(255, 255, 255, 0) 46px 140px), #0d1626;
  background-size: 200% 100%; animation: streak .45s linear infinite;
}
@keyframes streak { to { background-position: -280px 0; } }
.rs-sign { position: relative; top: 18%; display: flex; align-items: center; gap: 18px; padding: 16px 26px 16px 16px; background: #000; color: #fff; }
.rs-sign .bullet { --size: 64px; }
.rs-sign small { display: block; font: 600 12px/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: #9AA3AF; margin-bottom: 8px; }
.rs-sign b { font: 900 clamp(28px, 4vw, 56px)/1 var(--font); letter-spacing: -.03em; }
.rs-tint { position: absolute; inset: 0; background: var(--c); mix-blend-mode: color; opacity: 0; pointer-events: none; }
.ride-wipe { position: absolute; inset: 0; z-index: 2; background: var(--c); transform: scaleX(0); transform-origin: left; }
.ride-ui {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; gap: 20px; padding: 20px max(16px, 3vw) max(20px, env(safe-area-inset-bottom));
  color: #fff;
}
.ride-status { font: 600 12px/1 var(--font); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.ride-progress { flex: 1; height: 3px; background: rgba(255, 255, 255, .2); }
.ride-progress span { display: block; height: 100%; background: var(--c); transform-origin: left; transform: scaleX(0); }
.ride-skip { color: #fff; background: rgba(0, 0, 0, .45); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
@media (max-width: 700px) { .ride-status { display: none; } }

/* Custom cursor */
.cursor { position: fixed; left: 0; top: 0; z-index: 250; pointer-events: none; display: none; opacity: 0; transition: opacity .3s; }
.cursor.is-moving { opacity: 1; }
.cursor span {
  display: grid; place-items: center; width: 10px; height: 10px; translate: -50% -50%; border-radius: 50%;
  background: var(--fg); color: var(--bg); font: 700 0/1 var(--font); letter-spacing: .1em;
  transition: width .3s var(--ease-out), height .3s var(--ease-out), font-size .2s, background .3s;
}
.cursor.is-label span { width: 58px; height: 58px; translate: 14px 14px; font-size: 11px; background: var(--line-yellow); color: var(--ink); box-shadow: 0 6px 18px rgba(0, 0, 0, .25); }
@media (hover: hover) and (pointer: fine) { .has-cursor .cursor { display: block; } }

/* Reveal helpers (JS adds .reveal-ready only when GSAP is present) */
.reveal-ready [data-reveal] { opacity: 0; transform: translateY(40px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  body::after { animation: none; }
  .reveal-ready [data-reveal] { opacity: 1; transform: none; }
}
