/* ═══════════════════════════════════════════════════════════════════
   SÁSTA.ai — v13 homepage stylesheet
   Dark cinematic · motion-forward · mobile-first · WCAG 2.2 AA
   No build step. Tokens first; every value below derives from them.
   ═══════════════════════════════════════════════════════════════════ */

/* ── 1. TOKENS ─────────────────────────────────────────────────── */
:root {
  /* brand */
  --blue:      #1f57e7;
  --blue-l:    #4deeea;
  --blue-x:    #a1ffff;
  --red:       #e71a5f;
  --red-l:     #ff5e94;
  --gold:      #d4a94e;
  --gold-l:    #f3d489;

  /* surfaces */
  --bg:        #05070f;
  --bg-1:      #0a0e1c;
  --bg-2:      #10162a;
  --glass:     rgba(255,255,255,.045);
  --glass-2:   rgba(255,255,255,.08);
  --line:      rgba(255,255,255,.10);
  --line-2:    rgba(77,238,234,.28);

  /* ink — all ≥ 4.5:1 on --bg / --bg-1 */
  --ink:       #f4f6ff;
  --ink-mid:   #c3c9e3;   /* 10.6:1 */
  --ink-dim:   #939ab8;   /* 6.1:1  */
  --ink-faint: #7d84a3;   /* 4.6:1 — floor for meaningful text */

  /* type */
  --f-display: "Exo 2", "Segoe UI", system-ui, sans-serif;
  --f-body:    "DM Sans", system-ui, -apple-system, sans-serif;
  --f-mono:    "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --t-h1:      clamp(40px, 6.4vw, 84px);
  --t-h2:      clamp(31px, 5.6vw, 60px);
  --t-h3:      clamp(21px, 2.6vw, 28px);
  --t-lead:    clamp(18px, 2.1vw, 22px);
  --t-body:    17px;
  --t-body-sm: 15px;
  --t-btn:     15px;
  --t-meta:    13px;
  --t-meta-lg: 14px;
  --lh-body:   1.62;

  /* rhythm */
  --sp-section: clamp(88px, 13vw, 160px);
  --sp-block:   clamp(28px, 5vw, 56px);
  --wrap:       1180px;
  --gutter:     clamp(20px, 5vw, 64px);
  --readable:   64ch;

  /* interaction */
  --touch:     48px;
  --r-card:    22px;
  --r-btn:     999px;
  --ease-out:  cubic-bezier(.16, 1, .3, 1);
  --ease-soft: cubic-bezier(.2, .8, .2, 1);
}
@media (min-width: 1100px) {
  :root { --t-body: 16.5px; --t-body-sm: 14.5px; --touch: 44px; }
}

/* ── 2. BASE ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--t-body);
  line-height: var(--lh-body);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, video, canvas, svg { display: block; max-width: 100%; }
picture { display: contents; }   /* <picture> wrappers (AVIF/WebP) stay invisible to layout */
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2.5px solid var(--blue-l); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(77,238,234,.35); color: #fff; }

.wrap { width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto; min-width: 0; }
.readable { max-width: var(--readable); }

.skip-link {
  position: absolute; left: 16px; top: -64px; z-index: 5000;
  background: var(--blue); color: #fff; font: 700 14px/1 var(--f-display);
  letter-spacing: .08em; padding: 14px 18px; border-radius: 0 0 12px 12px; transition: top .2s;
}
.skip-link:focus { top: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── 3. TYPE PRIMITIVES ───────────────────────────────────────── */
h1, h2, h3 { font-family: var(--f-display); font-weight: 800; letter-spacing: -.02em; line-height: 1.02; text-wrap: balance; }
h1 { font-size: var(--t-h1); }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); line-height: 1.15; letter-spacing: -.01em; }
p  { color: var(--ink-mid); max-width: var(--readable); }
.lead { font-size: var(--t-lead); line-height: 1.5; color: var(--ink-mid); }
.lead strong, p strong { color: var(--ink); font-weight: 600; }
.accent { color: var(--blue-l); }
.grad {
  background: linear-gradient(92deg, var(--blue-x) 0%, var(--blue-l) 40%, #fff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* telemetry — texture, never the headline */
.tele {
  font-family: var(--f-mono); font-size: var(--t-meta); letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-faint); line-height: 1.6;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--f-mono); font-size: var(--t-meta); letter-spacing: .32em; text-transform: uppercase;
  color: var(--blue-l); margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: linear-gradient(90deg, var(--blue), var(--red)); flex: none; }
.rule { display: flex; flex-direction: column; gap: 4px; margin: 26px 0 30px; }
.rule i { display: block; height: 3px; border-radius: 3px; }
.rule i:nth-child(1) { width: 86px; background: linear-gradient(90deg, var(--blue), var(--blue-l) 45%, var(--blue)); }
.rule i:nth-child(2) { width: 54px; height: 2px; background: linear-gradient(90deg, var(--red), var(--red-l) 45%, var(--red)); }
.rule i:nth-child(3) { width: 28px; height: 2px; background: linear-gradient(90deg, var(--gold), var(--gold-l) 45%, var(--gold)); }

/* ── 4. BUTTONS ───────────────────────────────────────────────── */
.btn {
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--touch); padding: 12px 28px;
  font-family: var(--f-display); font-size: var(--t-btn); font-weight: 700; letter-spacing: .06em;
  border-radius: var(--r-btn); white-space: nowrap;
  transition: transform .35s var(--ease-out), box-shadow .35s, background .3s, border-color .3s, color .3s;
  will-change: transform;
}
.btn .arrow { transition: transform .35s var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }
.btn:active { transform: scale(.97); }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue) 0%, #2f7cf0 55%, var(--blue-l) 130%);
  box-shadow: 0 10px 30px rgba(31,87,231,.35), inset 0 1px 0 rgba(255,255,255,.28);
}
.btn-primary::after {
  content: ""; position: absolute; inset: -2px; border-radius: inherit; z-index: -1;
  background: conic-gradient(from var(--ang, 0deg), var(--blue-l), var(--red-l), var(--gold-l), var(--blue-l));
  opacity: 0; filter: blur(10px); transition: opacity .35s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(31,87,231,.45), inset 0 1px 0 rgba(255,255,255,.3); }
.btn-primary:hover::after { opacity: .55; animation: spin 3s linear infinite; }
.btn-ghost {
  color: var(--ink); background: var(--glass);
  border: 1px solid var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.btn-ghost:hover { background: var(--glass-2); border-color: var(--line-2); transform: translateY(-2px); }
.btn-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: var(--touch); padding: 8px 2px;
  font-family: var(--f-display); font-weight: 700; font-size: var(--t-btn); color: var(--blue-l); letter-spacing: .04em;
}
.btn-link .arrow { transition: transform .3s var(--ease-out); }
.btn-link:hover .arrow { transform: translateX(5px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
@media (max-width: 600px) {
  .btn-row { flex-direction: column; align-items: stretch; }
  .btn-row .btn { width: 100%; }
}
@media (max-width: 430px) {
  .btn { white-space: normal; line-height: 1.25; padding-inline: 20px; }
  .nav .btn { white-space: nowrap; }
}
@property --ang { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes spin { to { --ang: 360deg; } }

/* ── 5. NAV ───────────────────────────────────────────────────── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 900;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px var(--gutter);
  background: rgba(5,7,15,.55);
  backdrop-filter: blur(22px) saturate(140%); -webkit-backdrop-filter: blur(22px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: background .35s, border-color .35s, padding .35s;
}
.nav.scrolled { background: rgba(5,7,15,.82); border-bottom-color: var(--line); padding-block: 10px; }
.nav-logo img { height: 36px; width: auto; }
.nav-menu { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-menu a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border-radius: 10px;
  font-family: var(--f-display); font-size: 14px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-mid); transition: color .25s, background .25s;
}
.nav-menu a:hover, .nav-menu a[aria-current="true"] { color: var(--ink); background: var(--glass); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.nav .btn { padding-inline: 20px; font-size: 13px; }
.nav-burger {
  display: none; align-items: center; justify-content: center; width: 44px; height: 44px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--glass);
}
.nav-burger span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: transform .3s, background .3s; }
.nav-burger span::before, .nav-burger span::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s, top .3s; }
.nav-burger span::before { top: -6px; } .nav-burger span::after { top: 6px; }
body.nav-open .nav-burger span { background: transparent; }
body.nav-open .nav-burger span::before { top: 0; transform: rotate(45deg); }
body.nav-open .nav-burger span::after { top: 0; transform: rotate(-45deg); }
@media (max-width: 900px) {
  .nav-menu { display: none; }
  .nav-burger { display: inline-flex; }
  body.nav-open .nav-menu {
    display: flex; flex-direction: column; align-items: stretch; gap: 2px;
    position: fixed; left: 12px; right: 12px; top: 72px; padding: 10px;
    background: rgba(10,14,28,.96); border: 1px solid var(--line); border-radius: 18px;
    box-shadow: 0 30px 80px rgba(0,0,0,.6);
    animation: menuIn .28s var(--ease-out) both;
  }
  body.nav-open .nav-menu a { font-size: 16px; padding: 14px 16px; min-height: 48px; }
  body.nav-open .nav-menu li + li { border-top: 1px solid rgba(255,255,255,.06); }
  body.nav-open::after { content: ""; position: fixed; inset: 0; z-index: 800; background: rgba(5,7,15,.55); }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 430px) {
  .nav { padding: 10px 14px; }
  .nav-logo img { height: 30px; }
  .nav .btn { padding-inline: 14px; font-size: 12px; min-height: 40px; }
}
@keyframes menuIn { from { opacity: 0; transform: translateY(-8px); } }

/* ── 6. HERO ──────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;   /* not isolated: its backdrops sit in the root layer so the site-wide ring field can paint over the aurora */
  min-height: 100svh; display: flex; align-items: center;
  padding: calc(76px + 4vh) 0 clamp(56px, 9vh, 110px);
}
.hero-gl { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; }
.hero-fallback {
  position: absolute; inset: 0; z-index: -3;
  background:
    radial-gradient(60% 50% at 18% 40%, rgba(31,87,231,.45), transparent 70%),
    radial-gradient(50% 45% at 82% 60%, rgba(231,26,95,.35), transparent 70%),
    radial-gradient(80% 60% at 50% 100%, rgba(77,238,234,.12), transparent 70%),
    var(--bg);
}
.hero-vignette { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(5,7,15,.78) 0%, rgba(5,7,15,.62) 34%, rgba(5,7,15,.18) 52%, transparent 62%), radial-gradient(120% 90% at 50% 50%, transparent 40%, rgba(5,7,15,.85) 100%), linear-gradient(180deg, rgba(5,7,15,.35), transparent 30%, transparent 70%, var(--bg)); pointer-events: none; }   /* a scrim under the text column so the copy reads over the aurora */
@media (max-width: 959px) { .hero-vignette { background: linear-gradient(180deg, rgba(5,7,15,.55), rgba(5,7,15,.6) 60%, var(--bg)); } }
.hero-grid { display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
@media (max-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }
.hero h1 { margin-top: 6px; font-size: clamp(40px, 5.6vw, 82px); }   /* two short lines: "The future is now." / "Come on in." */
.hero h1 .line { display: block; }
.hero .lead { margin-top: clamp(14px, 2vw, 22px); max-width: 30em; font-size: clamp(17px, 1.35vw, 19.5px); line-height: 1.55; color: #e9edf7; text-shadow: 0 1px 2px rgba(5,7,15,.9), 0 0 24px rgba(5,7,15,.8); }
.hero .lead strong { color: #fff; }
.hero .eyebrow { color: #7ff3f0; text-shadow: 0 1px 2px rgba(5,7,15,.9); }
.hero-tele, .hero-tele span, .hero .sh-text small { color: var(--ink-dim); text-shadow: 0 1px 2px rgba(5,7,15,.9); }
.hero .btn-row { margin-top: clamp(26px, 3.4vw, 36px); }
.hero-tele { margin-top: clamp(28px, 5vw, 44px); display: flex; flex-wrap: wrap; gap: 8px 22px; }
.hero-tele span { display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #41ffb0; box-shadow: 0 0 10px #41ffb0; animation: pulse 2.2s ease-in-out infinite; flex: none; }
@keyframes pulse { 50% { opacity: .35; } }

/* hero visual: one stage, four systems, cycling */
.stage { width: 100%; max-width: 640px; margin-inline: auto; perspective: 1600px; --dur: 6000ms; }
.stage-frame {
  position: relative; display: block; aspect-ratio: 16 / 10; border-radius: 18px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.14); background: var(--bg-1); color: #fff; text-decoration: none;
  box-shadow: 0 50px 100px rgba(0,0,0,.6), 0 0 0 1px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.18);
  transform: rotateY(calc(-7deg + var(--ry, 0deg))) rotateX(calc(3deg + var(--rx, 0deg)));
  transform-style: preserve-3d; transition: transform .7s var(--ease-out), box-shadow .5s;
  will-change: transform;
}
.stage-frame:hover { box-shadow: 0 60px 120px rgba(0,0,0,.65), 0 0 0 1px rgba(77,238,234,.25), inset 0 1px 0 rgba(255,255,255,.22); }
.stage-frame::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(115deg, rgba(255,255,255,.08), transparent 40%); }
.stage-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .9s var(--ease-soft); }
.stage-slide.is-on { opacity: 1; z-index: 1; }
.stage-slide img, .stage-slide video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.stage-slide img.pos-l { object-position: left center; }   /* wide shots whose headline sits on the left */
.stage-slide.is-on img { animation: kenburns var(--dur) linear forwards; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.06); } }
.stage-slide video { position: absolute; inset: 0; opacity: 0; transition: opacity .5s; }
.stage-slide.playing video { opacity: 1; }
.stage-open {
  position: absolute; right: 14px; bottom: 14px; z-index: 3; display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px; border-radius: 999px; background: rgba(5,7,15,.72); border: 1px solid var(--line); backdrop-filter: blur(8px);
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #fff;
  opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .5s var(--ease-out);
}
.stage-open i { font-style: normal; color: var(--blue-l); }
.stage-frame:hover .stage-open, .stage-frame:focus-visible .stage-open { opacity: 1; transform: none; }
.stage-cap {
  position: absolute; left: 14px; bottom: 14px; right: 118px; z-index: 3; display: grid; gap: 3px; width: max-content; max-width: calc(100% - 132px);
  padding: 10px 14px; border-radius: 12px; background: rgba(5,7,15,.74); border: 1px solid var(--line); backdrop-filter: blur(8px);
  opacity: 0; transform: translateY(8px); transition: opacity .6s .25s, transform .8s .25s var(--ease-out);
}
.stage-slide.is-on .stage-cap { opacity: 1; transform: none; }
.stage-cap strong { font-family: var(--f-display); font-weight: 700; font-size: 15px; line-height: 1.2; color: #fff; }
.stage-cap span { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mid); }
@media (max-width: 600px) { .stage-cap { right: 14px; max-width: calc(100% - 28px); padding: 8px 11px; } .stage-cap strong { font-size: 14px; } .stage-cap span { font-size: 10px; } .stage-open { display: none; } }
.stage-tabs { display: flex; gap: 6px; margin-top: 14px; min-width: 0; }
.stage-tab {
  position: relative; flex: 1 1 0; min-width: 0; display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 8px 10px;
  border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.035); color: var(--ink-dim);
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; cursor: pointer;
  overflow: hidden; transition: color .3s, border-color .3s, background .3s;
}
.stage-tab .lbl { overflow: hidden; text-overflow: ellipsis; }
.stage-tab:hover { color: var(--ink); border-color: rgba(255,255,255,.22); }
.stage-tab.is-on { color: #fff; border-color: var(--line-2); background: rgba(77,238,234,.08); }
.stage-tab .bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, var(--blue-l), var(--gold-l)); transform-origin: 0 50%; transform: scaleX(0); }
.stage-tab.is-on .bar { animation: fill var(--dur) linear forwards; }
@keyframes fill { to { transform: scaleX(1); } }
.stage.paused .stage-tab.is-on .bar, .stage.paused .stage-slide.is-on img { animation-play-state: paused; }
.stage { position: relative; min-width: 0; }
.stage-pause {
  position: absolute; top: 12px; right: 12px; z-index: 4; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.28); background: rgba(5,7,15,.55); backdrop-filter: blur(6px);
  color: #fff; font-size: 9px; letter-spacing: -.1em; cursor: pointer; display: grid; place-items: center; opacity: .7;
  transition: opacity .3s, background .3s;
}
.stage-pause:hover, .stage-pause:focus-visible, .stage-pause[aria-pressed="true"] { opacity: 1; background: rgba(5,7,15,.8); }
@media (max-width: 960px) {
  .stage { max-width: 100%; margin-top: 8px; }
  .stage-frame { transform: none; }
}
@media (max-width: 600px) {
  .hero { padding-top: calc(80px + 4vh); }
  .stage-frame { border-radius: 14px; }
  .stage-tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 6px; }
  .stage-tab { min-height: 38px; font-size: 10px; letter-spacing: .06em; padding: 7px 8px; }
}

/* ── 7. LIVE STRIP (marquee) ──────────────────────────────────── */
.strip { border-block: 1px solid var(--line); background: var(--bg-1); padding: 22px 0; overflow: hidden; }
.marquee { display: flex; gap: 0; width: max-content; animation: marquee 44s linear infinite; }
.marquee:hover { animation-play-state: paused; }
.marquee ul { display: flex; list-style: none; gap: clamp(28px, 5vw, 64px); padding-right: clamp(28px, 5vw, 64px); }
.marquee li { display: inline-flex; align-items: center; gap: 12px; white-space: nowrap; font-family: var(--f-display); font-weight: 800; font-size: 15px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-dim); }
.marquee li .dot { width: 6px; height: 6px; }
.marquee li em { font: 500 12px var(--f-mono); letter-spacing: .16em; color: var(--blue-l); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── 8. SECTIONS ──────────────────────────────────────────────── */
.section { position: relative; padding-block: var(--sp-section); }
.section-head { margin-bottom: var(--sp-block); }
.section-head .lead { margin-top: 18px; }
.section-alt { background: linear-gradient(180deg, rgba(10,14,28,.78), rgba(5,7,15,.25)); }   /* translucent so the scene lights show through */
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--line-2), transparent); }

/* ── 9. WORK ──────────────────────────────────────────────────── */
.work-grid { display: grid; gap: clamp(16px, 2.4vw, 26px); grid-template-columns: repeat(12, 1fr); }
.work-card {
  position: relative; grid-column: span 6; isolation: isolate; overflow: hidden;
  border-radius: var(--r-card); background: var(--bg-1); border: 1px solid var(--line);
  display: flex; flex-direction: column;
  transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .5s var(--ease-out), border-color .4s, box-shadow .4s;
}
.work-card:hover { border-color: var(--line-2); box-shadow: 0 30px 80px rgba(0,0,0,.55); }
.work-card::after {   /* pointer spotlight */
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(77,238,234,.16), transparent 55%);
}
.work-card:hover::after { opacity: 1; }
.work-card.is-red::after { background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255,94,148,.16), transparent 55%); }
.wc-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #0a0c13; }
.wc-media img, .wc-media video { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 1.2s var(--ease-out), opacity .5s; }
.wc-media video { position: absolute; inset: 0; opacity: 0; }
.work-card.playing .wc-media video { opacity: 1; }
.work-card:hover .wc-media img { transform: scale(1.04); }
.wc-media .pan { object-fit: cover; object-position: top center; animation: pan 28s ease-in-out infinite alternate; }
@keyframes pan { 0%, 12% { object-position: top center; } 88%, 100% { object-position: bottom center; } }
.wc-badges { position: absolute; top: 12px; left: 12px; right: 12px; z-index: 3; display: flex; justify-content: space-between; gap: 8px; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; background: rgba(5,7,15,.72); border: 1px solid var(--line); backdrop-filter: blur(8px); font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #fff; }
.badge.new { color: #05070f; background: linear-gradient(135deg, var(--gold-l), var(--gold)); border-color: transparent; font-weight: 700; }
.wc-body { display: flex; flex-direction: column; gap: 10px; padding: clamp(20px, 2.6vw, 28px); flex: 1; }
.wc-cat { font-family: var(--f-mono); font-size: var(--t-meta); letter-spacing: .2em; text-transform: uppercase; color: var(--blue-l); }
.is-red .wc-cat { color: var(--red-l); }
.wc-body h3 { font-size: clamp(24px, 2.8vw, 32px); }
.wc-body p { font-size: var(--t-body); }
.wc-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.wc-tags span { font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-dim); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; }
.wc-ctas { margin-top: auto; padding-top: 14px; display: flex; flex-wrap: wrap; gap: 12px; }
.work-card.wide { grid-column: span 12; }
.work-card.wide .wc-inner { display: grid; grid-template-columns: 1.15fr 1fr; }
.work-card.wide .wc-media { aspect-ratio: auto; min-height: 360px; height: 100%; }
@media (max-width: 960px) {
  .work-card, .work-card.wide { grid-column: span 12; }
  .work-card.wide .wc-inner { grid-template-columns: 1fr; }
  .work-card.wide .wc-media { aspect-ratio: 16 / 9; min-height: 0; height: auto; }
}
.mini-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 18px; }
.mini {
  display: flex; flex-direction: column; gap: 8px; padding: 20px 22px; min-height: 100%;
  border-radius: 18px; background: var(--glass); border: 1px solid var(--line);
  transition: background .3s, border-color .3s, transform .4s var(--ease-out);
}
.mini:hover { background: var(--glass-2); border-color: var(--line-2); transform: translateY(-3px); }
.mini .wc-cat { font-size: 12px; }
.mini h3 { font-size: 19px; }
.mini p { font-size: var(--t-body-sm); color: var(--ink-dim); }
.mini .arrow { margin-top: auto; padding-top: 8px; color: var(--blue-l); font-family: var(--f-display); font-weight: 700; font-size: 14px; letter-spacing: .06em; }
@media (max-width: 760px) { .mini-grid { grid-template-columns: 1fr; } }
.work-foot { margin-top: var(--sp-block); }

/* ── 10. CAPABILITIES ─────────────────────────────────────────── */
.cap-grid { display: grid; gap: 14px; grid-template-columns: repeat(4, 1fr); }
.cap {
  position: relative; padding: 26px 24px 24px; border-radius: 18px; overflow: hidden;
  background: var(--glass); border: 1px solid var(--line);
  transition: transform .4s var(--ease-out), border-color .3s, background .3s;
}
.cap:hover { transform: translateY(-4px); border-color: var(--line-2); background: var(--glass-2); }
.cap::before { content: ""; position: absolute; inset: 0 auto auto 0; width: 100%; height: 3px; background: var(--c, var(--blue-l)); opacity: .9; }
.cap .ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--c, var(--blue)), color-mix(in srgb, var(--c, var(--blue)) 55%, #fff)); box-shadow: 0 10px 22px color-mix(in srgb, var(--c, var(--blue)) 40%, transparent); margin-bottom: 18px; }
.cap h3 { font-size: 19px; margin-bottom: 8px; }
.cap p { font-size: var(--t-body-sm); color: var(--ink-dim); }
.cap .proof { margin-top: 16px; padding-top: 12px; border-top: 1px dashed var(--line); font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); }
.cap .proof b { color: var(--ink-dim); font-weight: 500; }
@media (max-width: 1000px) { .cap-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .cap-grid { grid-template-columns: 1fr; } }

/* ── 11. BELIEF ───────────────────────────────────────────────── */
.belief { text-align: center; padding-block: calc(var(--sp-section) * 1.15); overflow: hidden; }
.belief .glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(50% 40% at 50% 50%, rgba(31,87,231,.18), transparent 70%), radial-gradient(30% 30% at 70% 60%, rgba(231,26,95,.10), transparent 70%); }
.belief .eyebrow { justify-content: center; margin-inline: auto; }
.belief .eyebrow::before { display: none; }
.belief h2 { font-size: clamp(32px, 5.2vw, 64px); margin-inline: auto; max-width: 16ch; }
.belief blockquote { margin: clamp(28px, 4vw, 44px) auto 0; max-width: 34em; font-size: var(--t-lead); line-height: 1.5; color: var(--ink-mid); font-style: italic; }
.belief blockquote em { color: var(--blue-l); font-style: normal; }
.belief cite { display: block; margin-top: 22px; font: 500 var(--t-meta) var(--f-mono); letter-spacing: .3em; text-transform: uppercase; color: var(--ink-faint); font-style: normal; }
.belief .btn-row { justify-content: center; margin-top: clamp(28px, 4vw, 40px); }
.belief-body { margin: clamp(24px, 4vw, 40px) auto 0; max-width: 36em; text-align: center; }
.belief-body p { font-size: var(--t-lead); line-height: 1.5; color: var(--ink-mid); }
.belief-body p + p { margin-top: 1em; }
.belief blockquote.belief-quote { margin-top: clamp(32px, 5vw, 56px); max-width: 30em; font-size: var(--t-body); color: var(--ink-dim); }
/* the refrain: the narrator turning the theater between scenes */
.refrain { margin: clamp(36px, 7vw, 96px) auto clamp(8px, 2vw, 20px); padding: 0 16px; max-width: 40em; text-align: center; font: 500 var(--t-meta) var(--f-mono); letter-spacing: .28em; text-transform: uppercase; color: var(--ink-faint); }
.hero .lead-2 { margin-top: 12px; }
@media (max-width: 700px) { .hero .lead { font-size: 16px; } }
.footer .footer-line { margin-top: 12px; color: var(--ink-faint); font-style: italic; }

/* ── 12. PROCESS ──────────────────────────────────────────────── */
.steps { display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); counter-reset: step; }
.step { position: relative; padding: 28px 26px; border-radius: var(--r-card); background: var(--bg-1); border: 1px solid var(--line); overflow: hidden; transition: transform .45s var(--ease-out), border-color .3s; }
.step:hover { transform: translateY(-4px); border-color: var(--line-2); }
.step img { width: 96px; height: 96px; margin-bottom: 14px; filter: drop-shadow(0 12px 22px rgba(0,0,0,.5)); transition: transform .6s var(--ease-out); }
.step:hover img { transform: translateY(-6px) rotate(-4deg); }
.step .n { font-family: var(--f-mono); font-size: var(--t-meta); letter-spacing: .3em; color: var(--blue-l); margin-bottom: 10px; }
.step h3 { font-size: 21px; margin-bottom: 8px; }
.step p { font-size: var(--t-body-sm); color: var(--ink-dim); }
.step::after { content: counter(step, decimal-leading-zero); counter-increment: step; position: absolute; right: 14px; top: 2px; font: 900 96px var(--f-display); color: rgba(255,255,255,.035); line-height: 1; pointer-events: none; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* ── 13. CAST ─────────────────────────────────────────────────── */
.cast-grid { display: grid; gap: 16px; grid-template-columns: repeat(4, 1fr); }
.cast { position: relative; border-radius: var(--r-card); overflow: hidden; background: var(--bg-1); border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .45s var(--ease-out), border-color .3s; }
.cast:hover { transform: translateY(-5px); border-color: var(--line-2); }
.cast-img { aspect-ratio: 1; overflow: hidden; background: var(--bg-2); }
.cast-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.cast:hover .cast-img img { transform: scale(1.06); }
.cast-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.cast-body h3 { font-size: 22px; }
.cast-role { font-family: var(--f-mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--blue-l); }
.cast-body p { font-size: var(--t-body-sm); color: var(--ink-dim); }
.cast-body .btn-link { margin-top: auto; padding-top: 10px; font-size: 14px; }
.cast.slot { border-style: dashed; align-items: center; text-align: center; justify-content: center; padding: 32px 22px; gap: 10px; }
.cast.slot .star { width: 54px; height: 54px; color: var(--gold); animation: twinkle 5s ease-in-out infinite; }
.cast.slot h3 { color: var(--ink-dim); }
@keyframes twinkle { 50% { transform: scale(1.12) rotate(12deg); opacity: .8; } }
@media (max-width: 1000px) { .cast-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px)  { .cast-grid { grid-template-columns: 1fr; } }

/* ── 14. FOUNDER ──────────────────────────────────────────────── */
.founder-grid { display: grid; gap: clamp(28px, 5vw, 72px); grid-template-columns: 1.1fr .9fr; align-items: center; }
.founder-card { padding: clamp(24px, 3vw, 36px); border-radius: var(--r-card); background: var(--glass); border: 1px solid var(--line); }
.founder-card .tele { margin-bottom: 14px; }
.founder-card dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; font-size: var(--t-body-sm); }
.founder-card dt { font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); padding-top: 3px; }
.founder-card dd { color: var(--ink-mid); }
@media (max-width: 860px) { .founder-grid { grid-template-columns: 1fr; } }

/* podcast episode card (founder) + hero watch link */
.founder-side { display: grid; gap: 18px; }
.episode {
  position: relative; display: block; width: 100%; padding: 0; margin: 0;
  border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden;
  background: var(--bg-1); color: var(--ink); font: inherit; text-align: left; cursor: pointer;
  box-shadow: 0 30px 70px rgba(0,0,0,.45);
}
.episode img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.episode::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,7,15,.05) 35%, rgba(5,7,15,.88) 100%); pointer-events: none; }
.episode:hover img, .episode:focus-visible img { transform: scale(1.04); }
.ep-play {
  position: absolute; top: 50%; left: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px;
  display: grid; place-items: center; padding-left: 5px; border-radius: 50%;
  font-size: 24px; color: #fff; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.4);
  backdrop-filter: blur(10px); animation: ring 2.8s ease-out infinite;
  transition: transform .5s var(--ease-out), background .3s;
}
.episode:hover .ep-play, .episode:focus-visible .ep-play { transform: scale(1.1); background: var(--blue); border-color: var(--blue-l); }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(77,238,234,.5); } 100% { box-shadow: 0 0 0 26px rgba(77,238,234,0); } }
.ep-meta { position: absolute; left: 20px; right: 20px; bottom: 18px; display: grid; gap: 6px; }
.ep-meta .tele { color: var(--blue-l); }
.ep-meta strong { font-family: var(--f-display); font-weight: 700; font-size: clamp(17px, 1.7vw, 22px); line-height: 1.2; letter-spacing: -.01em; }
.episodes { display: grid; gap: 12px; }
.episodes > .tele { padding-left: 2px; }
.watch-card {
  display: inline-flex; align-items: center; gap: 14px; max-width: 100%; margin-top: 22px; padding: 8px 20px 8px 8px;
  border: 1px solid var(--line); border-radius: 16px; background: var(--glass); color: var(--ink-mid);
  font: inherit; text-align: left; cursor: pointer;
  transition: border-color .3s, background .3s, transform .5s var(--ease-out);
}
.watch-card:hover, .watch-card:focus-visible { border-color: var(--line-2); background: var(--glass-2); transform: translateY(-2px); }
.wt-thumb { position: relative; flex: none; width: 104px; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: var(--bg-1); }
.wt-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.wt-thumb .wl-play { position: absolute; inset: 0; margin: auto; width: 34px; height: 34px; font-size: 11px; }
.wt-text { display: grid; gap: 3px; min-width: 0; }
.wt-text .tele { font-size: 11px; color: var(--blue-l); }
.wt-text strong { color: var(--ink); font-family: var(--f-display); font-weight: 700; font-size: 16px; line-height: 1.25; letter-spacing: -.005em; }
.wl-play {
  flex: none; width: 40px; height: 40px; display: grid; place-items: center; padding-left: 3px; border-radius: 50%;
  font-size: 13px; color: #fff; border: 1px solid rgba(255,255,255,.4); background: rgba(5,7,15,.45); backdrop-filter: blur(6px);
  transition: background .3s, border-color .3s, transform .5s var(--ease-out);
}
.watch-card:hover .wl-play, .watch-card:focus-visible .wl-play { background: var(--blue); border-color: var(--blue-l); transform: scale(1.08); }
@media (max-width: 430px) { .watch-card { width: 100%; } .wt-thumb { width: 88px; } }

/* ── 15. CTA ──────────────────────────────────────────────────── */
.cta { position: relative; overflow: hidden; text-align: center; padding-block: calc(var(--sp-section) * 1.1); }
.cta .glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 50% at 50% 60%, rgba(31,87,231,.25), transparent 70%), radial-gradient(40% 40% at 30% 40%, rgba(231,26,95,.12), transparent 70%); }
.cta .wrap { position: relative; z-index: 1; }
.cta h2 { font-size: clamp(36px, 7.5vw, 90px); margin-inline: auto; max-width: 14ch; }
.cta .lead { margin: 22px auto 0; max-width: 32em; }
.cta .btn-row { justify-content: center; margin-top: clamp(28px, 4vw, 40px); }
.cta .tele { margin-top: 28px; }

/* ── 16. FOOTER ───────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--line); background: var(--bg-1); padding: clamp(40px, 6vw, 64px) 0 32px; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: 1.4fr 1fr 1fr 1fr; }
.footer img { height: 30px; width: auto; opacity: .8; margin-bottom: 14px; }
.footer p { font-size: var(--t-body-sm); color: var(--ink-dim); max-width: 32em; }
.footer h3 { font: 700 12px var(--f-mono); letter-spacing: .24em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 12px; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.footer li a { display: inline-flex; align-items: center; min-height: 40px; font-size: var(--t-body-sm); color: var(--ink-mid); transition: color .2s; }
.footer li a:hover { color: var(--blue-l); }
.footer-bar { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ── 17. LIGHTBOX ─────────────────────────────────────────────── */
.lightbox { position: fixed; inset: 0; z-index: 1200; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(5,7,15,.9); backdrop-filter: blur(16px); opacity: 0; transition: opacity .35s; }
.lightbox.on { display: flex; }
.lightbox.show { opacity: 1; }
.lightbox video { max-width: min(92vw, 1100px); max-height: 82vh; border-radius: 16px; border: 1px solid var(--line-2); box-shadow: 0 40px 100px rgba(0,0,0,.7); }
.lightbox .close { position: absolute; top: 18px; right: 18px; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--glass-2); border: 1px solid var(--line); color: #fff; font-size: 22px; }

/* ── 18. REVEALS & MOTION ─────────────────────────────────────── */
.rv { opacity: 0; transform: translate3d(var(--sx, 0px), var(--sy, 26px), 0) rotate(var(--rr, 0deg)); transition: opacity .9s var(--ease-out), transform 1s var(--ease-out); transition-delay: var(--rd, 0s); }
.rv.on { opacity: 1; transform: none; }
/* restraint: everything rises straight up (no side entrances, no lean) — the ride is in the lights and the track, not the cards */
/* leaving the station: the hero drifts back as you pull away */
@media (min-width: 960px) { .hero-grid { transform: translate3d(0, calc(var(--jr-sc, 0px) * .16), 0); } }
/* the process path draws itself between the three stops */
.steps { position: relative; }
.steps::before { content: ""; position: absolute; left: 10%; right: 10%; top: 50%; height: 2px; z-index: 0; background: linear-gradient(90deg, var(--blue-l), var(--gold-l), var(--red-l)); transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.8s var(--ease-out) .35s; opacity: .7; }
.steps.on::before { transform: scaleX(1); }
.steps > .step { z-index: 1; }
@media (max-width: 860px) { .steps::before { display: none; } }
.rv-l { opacity: 0; transform: translateX(-26px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.rv-l.on { opacity: 1; transform: none; }
/* word-mask headline */
.words .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; margin-bottom: -.08em; }
.words .w > span { display: inline-block; transform: translateY(110%); transition: transform 1s var(--ease-out); transition-delay: calc(var(--i) * 60ms); }
.words.on .w > span { transform: none; }
/* scroll-driven parallax (progressive) */
@supports (animation-timeline: view()) {
  .parallax { animation: drift linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
  @keyframes drift { from { transform: translateY(6vh); } to { transform: translateY(-6vh); } }
}
.grain { position: fixed; inset: 0; z-index: 2000; pointer-events: none; opacity: .045; mix-blend-mode: overlay; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 950; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--blue-l), var(--gold-l), var(--red-l)); pointer-events: none; }

/* calm on phones */
@media (max-width: 700px) {
  .cast.slot .star { animation: none; }
  .marquee { animation-duration: 30s; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv, .rv-l, .words .w > span { opacity: 1; transform: none; transition: none; }
  .marquee, .dot, .cast.slot .star, .wc-media .pan, .btn-primary:hover::after, .ep-play, .stage-slide.is-on img, .stage-tab.is-on .bar { animation: none !important; }
  .stage-frame { transform: none; }
  .hero-grid { transform: none; }
  .steps::before { transition: none; }
  .parallax { animation: none; }
  .hero-gl { display: none; }
  .grain, .progress { display: none; }
  * { transition-duration: .01ms !important; }
}
/* calm mode (footer toggle, remembered per browser): same as reduced motion, plus no ring, no aurora */
html[data-calm] { scroll-behavior: auto; }
html[data-calm] .rv, html[data-calm] .rv-l, html[data-calm] .words .w > span { opacity: 1; transform: none; transition: none; }
html[data-calm] .marquee, html[data-calm] .dot, html[data-calm] .cast.slot .star, html[data-calm] .wc-media .pan, html[data-calm] .btn-primary:hover::after, html[data-calm] .ep-play, html[data-calm] .stage-slide.is-on img, html[data-calm] .stage-tab.is-on .bar, html[data-calm] .os-dash, html[data-calm] .os-orbit-2, html[data-calm] .os-glow, html[data-calm] .sh-mic::before { animation: none !important; }
html[data-calm] .stage-frame, html[data-calm] .hero-grid, html[data-calm] .parallax { transform: none; animation: none; }
html[data-calm] .steps::before { transition: none; }
html[data-calm] .hero-gl, html[data-calm] .grain, html[data-calm] .progress, html[data-calm] .ring-bg, html[data-calm] .jr-scene { display: none !important; }
html[data-calm] .os-dash { opacity: .5; }
.calm-toggle { appearance: none; background: none; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: border-color .2s, color .2s; }
.calm-toggle:hover { border-color: var(--line-2); color: var(--ink-mid); }
.calm-toggle i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-faint); transition: background .2s; }
html[data-calm] .calm-toggle i { background: #41ffb0; }
@media (hover: none) { .work-card { transform: none !important; } }

/* hero: say hello to Sally */
.say-hi { display: inline-flex; align-items: center; gap: 14px; margin-top: 22px; padding: 8px 20px 8px 8px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); color: inherit; font: inherit; cursor: pointer; text-align: left; transition: border-color .3s, background .3s, transform .4s var(--ease-out); }
.say-hi:hover { border-color: var(--line-2); background: var(--glass-2); transform: translateY(-1px); }
.sh-mic { position: relative; flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: radial-gradient(circle at 35% 30%, #4deeea, #1f57e7 55%, #0b1a4a); box-shadow: 0 0 0 1px rgba(77,238,234,.35), 0 8px 24px rgba(31,87,231,.45); }
.sh-mic::before { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 1px solid rgba(77,238,234,.6); animation: sh-ring 2.6s ease-out infinite; }
@keyframes sh-ring { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.7); opacity: 0; } }
.sh-mic svg { width: 18px; height: 18px; }
.sh-text { display: flex; flex-direction: column; line-height: 1.2; }
.sh-text strong { font-family: var(--f-display); font-weight: 800; font-size: 15px; }
.sh-text small { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); margin-top: 3px; }
@media (max-width: 480px) { .say-hi { width: 100%; justify-content: flex-start; } }

/* ── 19. SUB-PAGES (about · labs · portfolio · pricing · hire-herb · work) ── */
.page-hero { position: relative; padding: calc(96px + 4vh) 0 clamp(40px, 6vh, 72px); }
.page-hero h1 { font-size: clamp(38px, 6vw, 76px); max-width: 14ch; }
.page-hero .lead { margin-top: clamp(16px, 2.4vw, 24px); max-width: 34em; }
.page-hero .btn-row { margin-top: clamp(22px, 3vw, 32px); }
.page-hero .meta { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.page-hero .meta span { font-family: var(--f-mono); font-size: var(--t-meta); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); }
.page-hero .meta b { color: var(--ink-mid); font-weight: 500; }
.hero-split { display: grid; gap: clamp(28px, 5vw, 64px); align-items: center; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
@media (max-width: 900px) { .hero-split { grid-template-columns: 1fr; } }
.shot { position: relative; border-radius: var(--r-card); overflow: hidden; border: 1px solid rgba(255,255,255,.14); background: var(--bg-1); box-shadow: 0 40px 90px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.16); }
.shot img { display: block; width: 100%; height: auto; }
.shot.tilt { transform: perspective(1400px) rotateY(-6deg) rotateX(2deg); }
@media (max-width: 900px) { .shot.tilt { transform: none; } }

.prose { max-width: var(--readable); }
.prose p { font-size: var(--t-body); color: var(--ink-mid); margin-bottom: 1.1em; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--ink); }
.prose h3 { margin: 30px 0 10px; }
.split { display: grid; gap: clamp(24px, 4vw, 56px); grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.pull { position: relative; margin: 0; padding: clamp(24px, 3vw, 36px) clamp(24px, 3vw, 40px); border-radius: var(--r-card); background: var(--glass); border: 1px solid var(--line); font-size: var(--t-lead); line-height: 1.45; color: var(--ink); font-style: italic; }
.pull em { font-style: normal; color: var(--blue-l); }
.pull cite { display: block; margin-top: 14px; font: 500 var(--t-meta) var(--f-mono); letter-spacing: .24em; text-transform: uppercase; color: var(--ink-faint); font-style: normal; }
.acronym { display: grid; gap: 12px; grid-template-columns: repeat(5, 1fr); margin-top: var(--sp-block); }
.acronym div { text-align: center; padding: 22px 10px 18px; border-radius: 18px; background: var(--glass); border: 1px solid var(--line); }
.acronym b { display: block; font: 900 clamp(40px, 6vw, 72px)/1 var(--f-display); background: linear-gradient(135deg, var(--blue-l), #fff 55%, var(--red-l)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.acronym span { display: block; margin-top: 8px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-dim); }
@media (max-width: 600px) { .acronym { grid-template-columns: repeat(5, 1fr); gap: 6px; } .acronym div { padding: 14px 4px 12px; } .acronym span { font-size: 9px; letter-spacing: .08em; } }

/* pricing */
.plans { display: grid; gap: 18px; grid-template-columns: repeat(2, 1fr); }
@media (max-width: 800px) { .plans { grid-template-columns: 1fr; } }
.plan { position: relative; padding: clamp(24px, 3vw, 36px); border-radius: var(--r-card); background: var(--glass); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; }
.plan.featured { border-color: var(--line-2); background: linear-gradient(180deg, rgba(77,238,234,.08), var(--glass)); }
.plan .tag { position: absolute; top: 18px; right: 18px; }
.plan h3 { font-size: 22px; }
.plan .price { font: 900 clamp(34px, 4vw, 48px)/1 var(--f-display); letter-spacing: -.02em; }
.plan .price small { font: 500 var(--t-meta-lg) var(--f-body); color: var(--ink-dim); letter-spacing: 0; }
.plan .setup { font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); margin-top: -8px; }
.plan ul { list-style: none; display: grid; gap: 9px; }
.plan li { position: relative; padding-left: 26px; font-size: var(--t-body-sm); color: var(--ink-mid); }
.plan li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--blue-l); font-weight: 700; }
.plan li.no::before { content: "—"; color: var(--ink-faint); }
.plan .btn-row { margin-top: auto; padding-top: 6px; }
.guarantee { margin-top: 18px; padding: 18px 22px; border-radius: 16px; border: 1px solid var(--line-2); background: rgba(77,238,234,.06); font-size: var(--t-body); color: var(--ink-mid); }
.guarantee b { color: var(--ink); }
.fine { margin-top: 14px; font-size: 13px; color: var(--ink-faint); line-height: 1.6; }
.tl { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.tl > div { display: grid; grid-template-columns: 90px 1fr 110px; gap: 14px; align-items: baseline; padding: 14px 20px; border-top: 1px solid var(--line); background: var(--glass); font-size: var(--t-body-sm); color: var(--ink-mid); }
.tl > div:first-child { border-top: 0; background: var(--bg-1); font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint); }
.tl b { font-family: var(--f-mono); font-weight: 600; font-size: 13px; letter-spacing: .08em; color: var(--blue-l); }
.tl i { font-style: normal; font-family: var(--f-mono); font-size: 12px; color: var(--ink-faint); text-align: right; }
@media (max-width: 600px) { .tl > div { grid-template-columns: 64px 1fr; } .tl i { grid-column: 2; text-align: left; } .tl > div:first-child i { display: none; } }

/* lists & faq */
.pain { list-style: none; display: grid; gap: 10px; }
.pain li { position: relative; padding: 14px 18px 14px 44px; border-radius: 14px; background: var(--glass); border: 1px solid var(--line); color: var(--ink-mid); font-size: var(--t-body-sm); }
.pain li::before { content: "✕"; position: absolute; left: 18px; top: 13px; color: var(--red-l); font-weight: 700; }
.wins { list-style: none; display: grid; gap: 10px; }
.wins li { position: relative; padding-left: 30px; font-size: var(--t-body); color: var(--ink-mid); }
.wins li::before { content: "✓"; position: absolute; left: 0; top: 1px; color: #41ffb0; font-weight: 700; }
.faq { display: grid; gap: 10px; max-width: 46em; }
.faq details { border-radius: 16px; border: 1px solid var(--line); background: var(--glass); padding: 0 22px; transition: border-color .3s; }
.faq details[open] { border-color: var(--line-2); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-family: var(--f-display); font-weight: 700; font-size: 17px; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--blue-l); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { padding: 0 0 20px; color: var(--ink-mid); font-size: var(--t-body-sm); }

/* portfolio ventures + labs layers */
.venture-grid { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1000px) { .venture-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .venture-grid { grid-template-columns: 1fr; } }
.venture { position: relative; display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: var(--bg-1); border: 1px solid var(--line); color: inherit; text-decoration: none; transition: transform .45s var(--ease-out), border-color .3s, box-shadow .4s; }
.venture:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: 0 24px 60px rgba(0,0,0,.5); }
.venture .vm { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #0a0c13; }
.venture .vm img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 1.2s var(--ease-out); }
.venture:hover .vm img { transform: scale(1.04); }
.venture .vm.tile { display: grid; place-items: center; background: radial-gradient(80% 80% at 30% 20%, rgba(31,87,231,.5), transparent 60%), radial-gradient(70% 70% at 80% 90%, rgba(231,26,95,.35), transparent 60%), var(--bg-2); }
.venture .vm.tile b { font: 900 44px/1 var(--f-display); letter-spacing: -.02em; color: rgba(255,255,255,.9); }
.venture .vm .badge { position: absolute; top: 12px; left: 12px; }
.venture .vb { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.venture h3 { font-size: 19px; }
.venture .vt { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-l); }
.venture p { font-size: var(--t-body-sm); color: var(--ink-dim); }
.venture .vf { margin-top: auto; padding-top: 10px; display: flex; justify-content: space-between; gap: 10px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); }
.venture .vf em { font-style: normal; color: var(--blue-l); }
.badge.dev { color: var(--gold-l); border-color: rgba(212,169,78,.35); }
.badge.beta { color: var(--blue-l); }
.badge.concept { color: var(--red-l); border-color: rgba(231,26,95,.35); }
.layers { display: grid; gap: 10px; counter-reset: layer; }
.layer { display: grid; grid-template-columns: 64px 1fr; gap: 18px; align-items: center; padding: 18px 22px; border-radius: 16px; background: var(--glass); border: 1px solid var(--line); border-left: 3px solid var(--c, var(--blue-l)); transition: transform .4s var(--ease-out), background .3s; }
.layer:hover { transform: translateX(6px); background: var(--glass-2); }
.layer::before { counter-increment: layer; content: "0" counter(layer); font: 900 34px/1 var(--f-display); color: var(--c, var(--blue-l)); opacity: .9; }
.layer h3 { font-size: 18px; }
.layer p { font-size: var(--t-body-sm); color: var(--ink-dim); margin-top: 4px; }
.roadmap { display: grid; gap: 12px; grid-template-columns: repeat(4, 1fr); position: relative; }
@media (max-width: 800px) { .roadmap { grid-template-columns: repeat(2, 1fr); } }
.roadmap div { padding: 18px 20px; border-radius: 16px; background: var(--glass); border: 1px solid var(--line); }
.roadmap b { display: block; font-family: var(--f-mono); font-size: 12px; letter-spacing: .2em; color: var(--gold-l); margin-bottom: 8px; }
.roadmap p { font-size: var(--t-body-sm); color: var(--ink-dim); }

/* case studies */
.cs-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 26px; }
.cs-facts div { padding: 14px 16px; border-radius: 14px; background: var(--glass); border: 1px solid var(--line); }
.cs-facts dt { font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint); }
.cs-facts dd { margin-top: 4px; font-size: var(--t-body-sm); color: var(--ink); }
.cs-facts dd a { color: var(--blue-l); text-decoration: none; }
.hubs { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .hubs { grid-template-columns: 1fr; } }
.hub { display: flex; flex-direction: column; border-radius: var(--r-card); overflow: hidden; background: var(--bg-1); border: 1px solid var(--line); color: inherit; text-decoration: none; transition: transform .45s var(--ease-out), border-color .3s; }
.hub:hover { transform: translateY(-4px); border-color: var(--line-2); }
.hub img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; }
.hub .hb { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.hub h2 { font-size: 24px; }
.hub p { font-size: var(--t-body-sm); color: var(--ink-dim); }
.hub .arrow { margin-top: auto; padding-top: 10px; color: var(--blue-l); font-family: var(--f-display); font-weight: 700; font-size: 14px; letter-spacing: .06em; }
.nav-menu a[aria-current="page"] { color: var(--ink); }

/* ── 20. THE OPERATING SYSTEM (diagram) ───────────────────────── */
.os { position: relative; max-width: 900px; margin: 0 auto; aspect-ratio: 900 / 560; }
.os-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.os-orbit { fill: none; stroke: rgba(255,255,255,.12); stroke-width: 1.2; stroke-dasharray: 1400; stroke-dashoffset: 1400; transition: stroke-dashoffset 2.2s var(--ease-out) .2s; }
.os-orbit-2 { stroke: rgba(77,238,234,.14); stroke-dasharray: 4 10; stroke-dashoffset: 0; opacity: 0; transition: opacity 1s .8s; animation: os-turn 60s linear infinite; transform-origin: 450px 280px; }
.os-spoke { fill: none; stroke: var(--c); stroke-opacity: .28; stroke-width: 1.6; stroke-dasharray: 220; stroke-dashoffset: 220; transition: stroke-dashoffset 1.2s var(--ease-out) var(--d, 0s), stroke-opacity .3s; }
.os-dash { fill: none; stroke: var(--c); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 3 26; opacity: 0; transition: opacity .8s 1s; animation: os-flow 1.6s linear infinite; }
.os-flow .os-dash:nth-child(2) { animation-delay: -.3s; } .os-flow .os-dash:nth-child(3) { animation-delay: -.6s; } .os-flow .os-dash:nth-child(4) { animation-delay: -.9s; } .os-flow .os-dash:nth-child(5) { animation-delay: -1.2s; } .os-flow .os-dash:nth-child(6) { animation-delay: -1.5s; }
.os-glow { opacity: 0; transition: opacity 1.4s .4s; animation: os-breathe 4.5s ease-in-out infinite; transform-origin: 450px 280px; }
.os-core { fill: #0a0e1c; stroke: rgba(77,238,234,.55); stroke-width: 1.5; transform-origin: 450px 280px; }   /* the hub reads from first paint: YOUR SHOP, legible before any animation */
.os-label { font: 800 26px var(--f-display); letter-spacing: .12em; fill: #fff; }
.os-label-2 { fill: var(--blue-l); }
.os.on .os-orbit { stroke-dashoffset: 0; } .os.on .os-orbit-2 { opacity: 1; } .os.on .os-spoke { stroke-dashoffset: 0; } .os.on .os-dash { opacity: .9; }
.os.on .os-core { transform: none; opacity: 1; } .os.on .os-glow { opacity: 1; } .os.on .os-label { opacity: 1; }
.os.on .os-spoke:nth-of-type(1) { --d: .5s; } .os.on .os-spoke:nth-of-type(2) { --d: .62s; } .os.on .os-spoke:nth-of-type(3) { --d: .74s; } .os.on .os-spoke:nth-of-type(4) { --d: .86s; } .os.on .os-spoke:nth-of-type(5) { --d: .98s; } .os.on .os-spoke:nth-of-type(6) { --d: 1.1s; }
.os.hi .os-spoke:not(.hi) { stroke-opacity: .1; } .os.hi .os-dash:not(.hi) { opacity: .15; }
.os-spoke.hi { stroke-opacity: .9; stroke-width: 2.2; }
.os-nodes { list-style: none; position: absolute; inset: 0; margin: 0; padding: 0; }
.os-node { position: absolute; width: 190px; transform: translate(-50%, -50%); padding: 12px 14px; border-radius: 14px; background: rgba(10,14,28,.86); border: 1px solid var(--line); border-top: 2px solid var(--c); backdrop-filter: blur(8px); text-align: center; cursor: default; transition: transform .45s var(--ease-out), border-color .3s, box-shadow .4s, opacity .9s var(--ease-out); }
.os-node.rv { transform: translate(-50%, calc(-50% + 18px)); }
.os-node.rv.on { transform: translate(-50%, -50%); }
.os-node:hover, .os-node.hi { border-color: var(--c); box-shadow: 0 16px 40px rgba(0,0,0,.5), 0 0 0 1px color-mix(in srgb, var(--c) 40%, transparent); transform: translate(-50%, -50%) scale(1.05); z-index: 2; }
.os-node b { display: block; font-family: var(--f-display); font-weight: 800; font-size: 15px; letter-spacing: .01em; }
.os-node span { display: block; margin-top: 4px; font-size: 12.5px; line-height: 1.4; color: var(--ink-dim); }
.os-proof { margin: 26px auto 0; max-width: 900px; text-align: center; font-size: var(--t-body-sm); color: var(--ink-dim); }
.os-proof .tele { display: inline-block; margin-right: 10px; color: var(--blue-l); }
@keyframes os-flow { to { stroke-dashoffset: -29; } }
@keyframes os-turn { to { transform: rotate(360deg); } }
@keyframes os-breathe { 50% { transform: scale(1.12); } }
@media (max-width: 760px) {
  .os { aspect-ratio: auto; }
  .os-svg { display: none; }
  .os-nodes { position: static; display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
  .os-node { position: static; width: auto; transform: none; text-align: left; }
  .os-node.rv { transform: translateY(18px); }
  .os-node.rv.on, .os-node:hover { transform: none; }
  .os-proof { text-align: left; }
}
@media (max-width: 460px) { .os-nodes { grid-template-columns: 1fr; } }

/* ── Hero wordmark (assets/v13/wordmark.js) ─────────────────────────
   The headline is drawn on a WebGL canvas over its own text: a soft blurred fill that sharpens
   into a dotted outline near the pointer, three drifting handle boxes with coordinate labels,
   and a slow sweep when nobody is pointing. The text stays in the DOM for readers and search;
   it only goes transparent once the canvas has its first frame (.wm-on). Calm mode, reduced
   motion, phones and no-WebGL keep the plain headline. */
.hero h1[data-wordmark] { position: relative; }
.hero h1[data-wordmark] .wm-gl { position: absolute; z-index: 1; max-width: none; pointer-events: none; opacity: 0; transition: opacity .8s var(--ease-out); }
.hero h1[data-wordmark].wm-on .wm-gl { opacity: 1; }
.hero h1[data-wordmark] .line { transition: color .6s, -webkit-text-fill-color .6s; }
.hero h1[data-wordmark].wm-on .line { color: transparent; -webkit-text-fill-color: transparent; background: none; }
.hero h1[data-wordmark] .wm-lbl { position: absolute; left: 0; top: 0; z-index: 2; pointer-events: none; white-space: nowrap; font: 500 10.5px var(--f-mono); letter-spacing: .1em; color: var(--blue-l); opacity: 0; transition: opacity .8s; text-shadow: 0 1px 2px rgba(5,7,15,.9); }
.hero h1[data-wordmark].wm-on .wm-lbl { opacity: .7; }
html[data-calm] .hero h1[data-wordmark] .wm-gl, html[data-calm] .hero h1[data-wordmark] .wm-lbl { display: none; }
html[data-calm] .hero h1[data-wordmark].wm-on .line { color: inherit; -webkit-text-fill-color: inherit; }
html[data-calm] .hero h1[data-wordmark].wm-on .line.grad { color: transparent; -webkit-text-fill-color: transparent; background: linear-gradient(92deg, var(--blue-x) 0%, var(--blue-l) 40%, #fff 100%); -webkit-background-clip: text; background-clip: text; }
