/* GlobalInno Services · 2026
   Navy + porcelain + signal yellow. Hubot Sans (display) / Mona Sans (text), both OFL, self-hosted. */

@font-face {
  font-family: "Hubot Sans";
  src: url("/fonts/hubot-sans-display.v1.woff2") format("woff2");
  font-weight: 600 900; font-stretch: 100% 125%; font-display: swap;
}
@font-face {
  font-family: "Mona Sans";
  src: url("/fonts/mona-sans-text.v1.woff2") format("woff2");
  font-weight: 400 750; font-stretch: 100%; font-display: swap;
}
/* Metric-matched fallbacks (measured against Arial with fontTools) so the swap doesn't reflow the page */
@font-face {
  font-family: "Hubot Fallback";
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Roboto Bold"), local("Roboto-Bold"), local("Arial");
  font-weight: 600 900; size-adjust: 115%; ascent-override: 94.8%; descent-override: 27.8%; line-gap-override: 0%;
}
@font-face {
  font-family: "Mona Fallback";
  src: local("Arial"), local("ArialMT"), local("Roboto"), local("Roboto-Regular");
  size-adjust: 103%; ascent-override: 105.8%; descent-override: 31.1%; line-gap-override: 0%;
}

:root {
  --navy: #13213a;
  --navy-2: #1c2f52;
  --bg: #f4f6f9;
  --surface: #ffffff;
  --surface-2: #e8ecf2;
  --ink: #13213a;
  --ink-2: #43506a;
  --ink-3: #56627b;
  --line: #cfd6e2;
  --line-strong: #13213a;
  --signal: #ffc531;
  --signal-ink: #13213a;
  --live: #11703f;
  --review: #2449b8;
  --testing: #8a4f00;
  --beta: #6a3fc4;
  --focus: #2449b8;
  --stage: #13213a;          /* the relay's night-shift stage */
  --stage-ink: #eef2f8;
  --stage-ink-2: #b9c4d8;
  --bubble: #ffffff;

  /* the crew */
  --bot-ink: #13213a;
  --glass: #152036; --blade: #3a4b6c; --cloth: #f3f1ec; --wire: #dfe4ec; --steel: #c9d1de; --tread: #33405e;
  --wheel: #6d7a96; --steam: #9aa6bd; --wig: #56627f; --wig-hi: #8995b2; --plate: #fff3ea; --wood: #c98a52;
  --mesh: rgba(255,255,255,.55); --hair: #1f4d37; --hair-hi: #3f7a5c; --lens: rgba(214,236,255,.35); --blush: #ff8f7a;
  --powder: #f2f3f7; --powder-sh: #c6cbd8; --strap: #26324d; --ink-red: #d8433b; --ringlight: #fff1c2;
  --screen: #191531; --pixel: #ffe3ef; --cheek: #ff6fa5; --rec: #ff4d4d; --amber: #f2b233; --led: #3ddc84;
  --led-off: #2a3350; --laurel: #ffc531;

  --display: "Hubot Sans", "Hubot Fallback", "Arial Black", system-ui, sans-serif;
  --text: "Mona Sans", "Mona Fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 14px;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --wrap: 78rem;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c1526;
    --surface: #13203a;
    --surface-2: #1b2a47;
    --ink: #eef2f8;
    --ink-2: #b9c4d8;
    --ink-3: #a3afc5;
    --line: #2a3a5a;
    --line-strong: #eef2f8;
    --live: #5fdc97;
    --review: #93b2ff;
    --testing: #f3b65a;
    --beta: #c3aefc;
    --focus: #ffc531;
    --stage: #08101f;
    --bubble: #f4f6f9;
    --bot-ink: #04080f;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; overflow-x: clip; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1.0625rem/1.6 var(--text);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1.5px; }
p { margin: 0; }
button { font: inherit; color: inherit; }
::selection { background: var(--signal); color: var(--navy); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.relay :focus-visible, .contact-card :focus-visible { outline-color: var(--signal); }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 50; background: var(--signal); color: var(--navy); padding: .6rem 1rem; border-radius: 10px; font-weight: 650; border: 2px solid var(--navy); }
.skip:focus { top: 1rem; }

h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -.015em; text-wrap: balance; }
h2 { font-size: clamp(2rem, 1.2rem + 3.2vw, 3.9rem); font-weight: 820; font-stretch: 112%; line-height: .98; }
h3 { font-size: 1.35rem; font-weight: 760; font-stretch: 106%; line-height: 1.1; }

/* ───────── Header ───────── */
.top { position: relative; z-index: 5; }
.top-in { display: flex; align-items: center; gap: 1rem 1.6rem; padding-block: 1.05rem; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; font: 760 1.05rem/1 var(--display); font-stretch: 108%; letter-spacing: -.01em; margin-right: auto; }
.brand svg { width: 2.1rem; height: 2.1rem; flex: none; }
.brand .logo-bg { fill: var(--navy); }
.brand .logo-line { stroke: #f4f6f9; }
.brand .logo-dot { fill: var(--signal); stroke: var(--navy); stroke-width: 1.4; }
@media (prefers-color-scheme: dark) { .brand .logo-bg { fill: #f4f6f9; } .brand .logo-line { stroke: var(--navy); } .brand .logo-dot { stroke: #f4f6f9; } }
.nav { display: flex; gap: .2rem; font-size: .96rem; font-weight: 550; }
.nav a { text-decoration: none; padding: .45rem .7rem; border-radius: 9px; color: var(--ink-2); white-space: nowrap; }
.nav a:hover { color: var(--ink); background: var(--surface-2); }
.top-actions { display: flex; align-items: center; gap: .6rem; }
.nav .nav-contact { display: none; }
@media (max-width: 45.99rem) {
  .nav.nav--legal { order: 0; width: auto; margin: 0; }
  .top-in { gap: .5rem 1rem; padding-block: .75rem .25rem; }
  .brand { font-size: .92rem; gap: .5rem; } .brand svg { width: 1.8rem; height: 1.8rem; }
  .top-actions .btn { display: none; }
  .nav { order: 3; width: calc(100% + 1rem); margin-inline: -.5rem; justify-content: space-between; font-size: .9rem; gap: 0; }
  .nav a { padding: .45rem .5rem; }
  .nav .nav-contact { display: inline-block; }
  .motion-toggle { min-height: 36px; font-size: .8rem; padding: 0 .6rem 0 .45rem; gap: .4rem; }
}
@media (max-width: 24rem) {
  .brand { font-size: .86rem; } .nav { font-size: .84rem; } .nav a { padding-inline: .35rem; }
  .motion-toggle [data-motion-label] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

.motion-toggle {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 40px; padding: 0 .8rem 0 .55rem;
  background: transparent; border: 1.5px solid var(--line); border-radius: 999px; cursor: pointer; font-size: .88rem; font-weight: 600; color: var(--ink-2);
}
.motion-toggle:hover { border-color: var(--ink); color: var(--ink); }
html:not(.js) .motion-toggle { display: none; }
.motion-toggle .switch { width: 2rem; height: 1.15rem; border-radius: 999px; background: var(--surface-2); border: 1.5px solid var(--ink-3); position: relative; flex: none; transition: background .2s; }
.motion-toggle .switch::after { content: ""; position: absolute; top: 50%; left: 2px; width: .75rem; height: .75rem; border-radius: 50%; background: var(--ink-3); translate: 0 -50%; transition: translate .2s, background .2s; }
.motion-toggle[aria-pressed="true"] .switch { background: var(--signal); border-color: var(--navy); }
.motion-toggle[aria-pressed="true"] .switch::after { translate: .82rem -50%; background: var(--navy); }

/* ───────── Buttons ───────── */
.btn {
  --b: var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 50px; padding: 0 1.35rem;
  border: 2px solid var(--b); border-radius: 12px; font: 650 1rem/1.1 var(--text); text-decoration: none; cursor: pointer;
  transition: translate .18s cubic-bezier(.2,.7,.3,1), box-shadow .18s cubic-bezier(.2,.7,.3,1), background-color .18s;
}
.btn-primary { background: var(--signal); color: var(--signal-ink); border-color: var(--navy); box-shadow: 0 0 0 0 var(--navy); }
.btn-primary:hover { translate: -2px -3px; box-shadow: 3px 4px 0 0 var(--navy); }
.btn-primary:active { translate: 0 0; box-shadow: 0 0 0 0 var(--navy); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--surface); }
.btn-small { min-height: 40px; padding: 0 1rem; font-size: .92rem; border-radius: 10px; }
.btn .arrow { transition: translate .18s; }
.btn:hover .arrow { translate: 3px 0; }
@media (prefers-color-scheme: dark) {
  .btn-primary { border-color: var(--signal); }
  .btn-primary:hover { box-shadow: 3px 4px 0 0 #000; }
}

/* ───────── Hero ───────── */
.hero { padding-block: clamp(1.2rem, 2.2vw, 2rem) 0; position: relative; }
.hero h1 {
  font-size: clamp(2.65rem, min(.6rem + 5.9vw, 9.2vh + .9rem), 7.6rem); font-weight: 850; font-stretch: 100%; line-height: .9; letter-spacing: -.025em;
  margin-bottom: clamp(1.2rem, 1.8vw, 1.6rem);
}
.hero h1 span { display: block; }
.hero h1 .dot { display: inline-block; width: .2em; height: .2em; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 .045em var(--navy); margin-left: .03em; vertical-align: .02em; }
@media (prefers-color-scheme: dark) { .hero h1 .dot { box-shadow: none; } }
@media (min-width: 40rem) { .hero h1 { font-stretch: 112%; } }
@media (min-width: 64rem) { .hero h1 { font-stretch: 120%; } }
.hero-row { display: grid; gap: 1.3rem; justify-items: start; max-width: 44rem; }
.hero-row > .cta-row { justify-self: stretch; }
.lede { font-size: clamp(1.06rem, 1rem + .35vw, 1.24rem); line-height: 1.55; color: var(--ink-2); max-width: 38rem; }
.lede strong { color: var(--ink); font-weight: 650; }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.dated { margin-top: 1.1rem; font-size: .92rem; color: var(--ink-3); display: flex; gap: .55rem; align-items: baseline; max-width: 40rem; }
.dated::before { content: ""; flex: none; width: .55rem; height: .55rem; border-radius: 50%; background: var(--live); translate: 0 -.05rem; }
@media (max-width: 30rem) { .cta-row .btn { flex: 1 1 9rem; padding-inline: .9rem; } }

/* The line-up */
.crew { margin-top: clamp(1.4rem, 3vw, 2.2rem); position: relative; display: flex; flex-direction: column; }
.crew > .lineup { order: 1; }
@media (min-width: 60rem) { .crew-note { order: 2; margin: .7rem 0 0; } }
.crew-note { font-size: .9rem; color: var(--ink-3); margin-bottom: .4rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.lineup {
  --h: clamp(118px, min(14.5vw, 20.5vh), 236px);
  list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.1rem .4rem; align-items: end;
  border-bottom: 3px solid var(--ink); position: relative;
}
@media (min-width: 60rem) { .lineup { display: flex; justify-content: space-between; gap: 0; } }
@media (min-width: 30rem) and (max-width: 59.99rem) { .lineup { --h: clamp(130px, 19vw, 180px); gap: 1.6rem .8rem; } }
.mate { position: relative; display: flex; flex-direction: column; align-items: center; min-width: 0; }
.mate-btn {
  all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: .35rem; position: relative;
  -webkit-tap-highlight-color: transparent; border-radius: 14px; padding: .2rem .15rem .55rem;
}
.mate-btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.mate .bot { height: var(--h); width: auto; max-width: 100%; }
.tag { display: flex; flex-direction: column; align-items: center; line-height: 1.15; text-align: center; }
.tag b { font: 760 clamp(.86rem, .75rem + .35vw, 1.05rem)/1.1 var(--display); font-stretch: 108%; }
.tag small { font-size: clamp(.74rem, .7rem + .15vw, .84rem); color: var(--ink-3); font-weight: 550; }
.say {
  position: absolute; bottom: calc(100% - 1.2rem); left: 50%; z-index: 4; width: max-content; max-width: min(15rem, 70vw);
  background: var(--bubble); color: #13213a; border: 2px solid #13213a; border-radius: 14px; padding: .55rem .8rem; font-size: .9rem; line-height: 1.35; font-weight: 550;
  translate: -50% 6px; opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .18s, translate .22s cubic-bezier(.2,.7,.3,1), visibility 0s .22s;
}
.say::after { content: ""; position: absolute; left: 50%; top: 100%; width: 12px; height: 12px; background: var(--bubble); border: 2px solid #13213a; border-top: 0; border-left: 0; translate: -50% -6px; rotate: 45deg; }
/* bubble alignment: edge columns align to their own edge so nothing leaves the screen */
.mate.is-saying .say, .mate-btn:focus-visible + .say { opacity: 1; visibility: visible; translate: -50% 0; transition: opacity .18s, translate .22s cubic-bezier(.2,.7,.3,1), visibility 0s; }
@media (hover: hover) { .mate-btn:hover + .say { opacity: 1; visibility: visible; translate: -50% 0; transition: opacity .18s, translate .22s cubic-bezier(.2,.7,.3,1), visibility 0s; } }
@media (min-width: 60rem) {
  .mate:nth-child(-n+2) .say { left: 0; translate: 0 6px; } .mate:nth-child(-n+2) .say::after { left: 2.2rem; }
  .mate:nth-last-child(-n+2) .say { left: auto; right: 0; translate: 0 6px; } .mate:nth-last-child(-n+2) .say::after { left: auto; right: 2.2rem; translate: 50% -6px; }
  .mate:nth-child(-n+2).is-saying .say, .mate:nth-child(-n+2) .mate-btn:focus-visible + .say, .mate:nth-child(-n+2) .mate-btn:hover + .say,
  .mate:nth-last-child(-n+2).is-saying .say, .mate:nth-last-child(-n+2) .mate-btn:focus-visible + .say, .mate:nth-last-child(-n+2) .mate-btn:hover + .say { translate: 0 0; }
}
@media (max-width: 59.99rem) {
  .say { max-width: min(14rem, 62vw); font-size: .86rem; }
  .mate:nth-child(4n+1) .say { left: 0; translate: 0 6px; } .mate:nth-child(4n+1) .say::after { left: 2rem; }
  .mate:nth-child(4n) .say { left: auto; right: 0; translate: 0 6px; } .mate:nth-child(4n) .say::after { left: auto; right: 2rem; translate: 50% -6px; }
  .mate:nth-child(4n+1).is-saying .say, .mate:nth-child(4n+1) .mate-btn:focus-visible + .say,
  .mate:nth-child(4n).is-saying .say, .mate:nth-child(4n) .mate-btn:focus-visible + .say { translate: 0 0; }
}
.mate--lead { justify-content: flex-end; padding-right: clamp(0rem, 1.5vw, 1.4rem); }
.lead-badge { display: flex; flex-direction: column; align-items: center; gap: .35rem; padding-bottom: .55rem; }
.monogram {
  width: calc(var(--h) * .3); height: calc(var(--h) * .3); min-width: 52px; min-height: 52px; border-radius: 22%;
  background: var(--navy); color: #f4f6f9; display: grid; place-items: center; position: relative;
  font: 850 calc(var(--h) * .11)/1 var(--display); font-stretch: 118%; letter-spacing: -.02em; margin-bottom: calc(var(--h) * .05);
}
.monogram::after { content: ""; position: absolute; top: -9%; right: -9%; width: 28%; height: 28%; border-radius: 50%; background: var(--signal); border: 2px solid var(--navy); }
@media (prefers-color-scheme: dark) { .monogram { background: #f4f6f9; color: var(--navy); } .monogram::after { border-color: #f4f6f9; } }
@media (max-width: 59.99rem) { .monogram { font-size: 1.3rem; } }

/* ───────── Sections ───────── */
.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.sec-head { display: grid; gap: 1.1rem; margin-bottom: clamp(2rem, 4vw, 3.2rem); max-width: 48rem; }
.sec-head > p { color: var(--ink-2); font-size: 1.08rem; max-width: 42rem; }
.owner { display: inline-flex; align-items: center; gap: .55rem; font-size: .92rem; font-weight: 600; color: var(--ink-2); }
.owner .bot { height: 2.6rem; width: auto; }
.owner .face { width: 2.4rem; height: 2.4rem; flex: none; border-radius: 50%; display: grid; place-items: center; overflow: hidden; }

/* status chips: shape + colour + text */
.chip { display: inline-flex; align-items: center; gap: .45rem; font-size: .84rem; font-weight: 650; line-height: 1; padding: .38rem .7rem .38rem .55rem; border-radius: 999px; border: 1.5px solid currentColor; white-space: nowrap; }
.chip::before { content: ""; width: .62rem; height: .62rem; border-radius: 50%; flex: none; }
.chip--live { color: var(--live); } .chip--live::before { background: currentColor; }
.chip--review { color: var(--review); } .chip--review::before { background: linear-gradient(90deg, currentColor 50%, transparent 50%); box-shadow: inset 0 0 0 1.5px currentColor; }
.chip--testing { color: var(--testing); } .chip--testing::before { box-shadow: inset 0 0 0 2px currentColor; }
.chip--beta { color: var(--beta); } .chip--beta::before { border: 2px dashed currentColor; width: .7rem; height: .7rem; }
.plat { font-size: .88rem; color: var(--ink-3); font-weight: 550; }

/* ───────── Apps ───────── */
.shelf-label { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .8rem; margin: 0 0 1rem; font: 760 1.15rem/1.2 var(--display); font-stretch: 108%; }
.shelf-label span { font: 550 .92rem/1.2 var(--text); color: var(--ink-3); }
.live-grid { display: grid; gap: 1.25rem; }
@media (min-width: 62rem) { .live-grid { grid-template-columns: 1fr 1fr; } }
.app {
  background: var(--surface); border: 2px solid var(--line-strong); border-radius: 22px; min-width: 0; position: relative;
}
.app--live { display: grid; grid-template-columns: minmax(0, 11.5rem) minmax(0, 1fr); gap: clamp(1rem, 2.4vw, 1.75rem); padding: clamp(1rem, 2.2vw, 1.5rem); align-items: start; }
@media (max-width: 34rem) { .app--live { grid-template-columns: minmax(0, 1fr); } .app--live .screen { order: 2; aspect-ratio: 4 / 4.6; } }
.screen { border-radius: 18px; border: 2px solid var(--line-strong); overflow: hidden; background: #0b1220; aspect-ratio: 440 / 952; }
.screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.app-body { display: flex; flex-direction: column; gap: .9rem; min-width: 0; }
.app-head { display: flex; gap: .85rem; align-items: center; }
.app-head img { width: 3.6rem; height: 3.6rem; border-radius: 22%; border: 1.5px solid var(--line); flex: none; }
.app-head h3 { font-size: clamp(1.45rem, 1.1rem + 1vw, 1.9rem); }
.kind { font-size: .92rem; color: var(--ink-3); font-weight: 600; margin-top: .15rem; }
.app-body > p { color: var(--ink-2); }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .8rem; }
.stores { display: flex; flex-wrap: wrap; gap: .6rem; }
.store {
  display: inline-flex; flex-direction: column; justify-content: center; min-height: 52px; min-width: 9.2rem; padding: .35rem 1rem .4rem;
  background: #000; color: #fff; border-radius: 11px; text-decoration: none; line-height: 1.05; border: 1.5px solid #000;
}
.store small { font-size: .7rem; font-weight: 500; letter-spacing: .01em; opacity: .9; }
.store b { font-size: 1.12rem; font-weight: 650; letter-spacing: -.01em; }
.store:hover { background: #1d2433; }
@media (prefers-color-scheme: dark) { .store { border-color: #7b869c; } }
.is-ios .store--apple, .is-android .store--play { box-shadow: 0 0 0 3px var(--signal); }
.is-android .stores { flex-direction: row-reverse; justify-content: flex-end; }
.links { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; font-weight: 600; font-size: .96rem; }
.links a { display: inline-flex; align-items: center; gap: .3rem; min-height: 2rem; }
.links a::after { content: "↗"; font-size: .85em; color: var(--ink-3); }
.play-web { align-self: flex-start; }
.play-web::after { content: "↗"; font-size: .9em; }
.qr { display: none; align-items: center; gap: .9rem; margin-top: auto; padding-top: .9rem; border-top: 1.5px dashed var(--line); }
.qr img { width: 88px; height: 88px; border-radius: 8px; border: 1.5px solid var(--line); background: #fff; flex: none; }
.qr p { font-size: .88rem; color: var(--ink-3); line-height: 1.4; }
.qr p b { color: var(--ink); display: block; font-size: .95rem; }
@media (min-width: 62rem) and (hover: hover) and (pointer: fine) { .qr { display: flex; } }

.soon-label { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.soon-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 13.5rem), 1fr)); }
.app--soon { display: flex; flex-direction: column; overflow: hidden; border-radius: 18px; }
.app--soon .thumb { aspect-ratio: 4 / 4.2; overflow: hidden; border-bottom: 2px solid var(--line-strong); background: var(--surface-2); position: relative; }
.app--soon .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.app--soon .head { display: flex; gap: .7rem; align-items: center; }
.app--soon .head img { width: 2.75rem; height: 2.75rem; border-radius: 22%; border: 1.5px solid var(--line); flex: none; }
.app--soon .body { padding: .9rem 1rem 1.05rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.app--soon h3 { font-size: 1.22rem; font-stretch: 100%; }
.app--soon .kind { margin-top: .1rem; font-size: .88rem; }
.app--soon p.desc { font-size: .94rem; color: var(--ink-2); line-height: 1.5; }
.app--soon .meta { margin-top: auto; padding-top: .3rem; }
.app--soon .links { font-size: .94rem; }
.who { display: flex; align-items: flex-start; gap: .45rem; line-height: 1.35; font-size: .86rem; color: var(--ink-3); font-weight: 550; }
.who::before { content: ""; width: .95rem; height: .95rem; border-radius: 5px; background: var(--c); border: 2px solid var(--bot-ink); flex: none; margin-top: .1rem; }
.who b { color: var(--ink); font-weight: 650; }
.step .more, .caption .more { color: var(--signal); font-weight: 650; }
.relay-end { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; padding-bottom: clamp(4rem, 8vw, 6rem); color: var(--stage-ink); font: 760 clamp(1.2rem, 1rem + .8vw, 1.6rem)/1.2 var(--display); font-stretch: 108%; }
.relay.is-live .relay-end { padding-top: clamp(2rem, 5vw, 3rem); }
.relay-end .btn-primary { border-color: var(--signal); }
.relay-end .btn-primary:hover { box-shadow: 3px 4px 0 0 #000; }
@media (max-width: 34rem) {
  .soon-grid { display: flex; overflow-x: auto; scroll-snap-type: x proximity; gap: .8rem; margin-inline: calc(-1 * var(--gutter)); padding: .2rem var(--gutter) .9rem; scroll-padding-inline: var(--gutter); }
  .app--soon { flex: 0 0 min(80%, 19rem); scroll-snap-align: start; }
  .app--soon .thumb { aspect-ratio: 4 / 3.3; }
}

/* ───────── The relay (signature sequence) ───────── */
.relay { background: var(--stage); color: var(--stage-ink); --bot-ink: #04080f; --ink: #04080f; position: relative; }
.relay .sec-intro { padding-block: clamp(4rem, 9vw, 7rem) clamp(2rem, 4vw, 3rem); display: grid; gap: 1.2rem; }
.relay h2 { max-width: 15ch; color: var(--stage-ink); }
.relay .sec-intro p { color: var(--stage-ink-2); max-width: 44rem; font-size: 1.08rem; }
.relay .sec-intro p strong { color: var(--stage-ink); }
.relay .skip-relay { color: var(--signal); font-weight: 650; justify-self: start; }
.relay-stage { position: relative; }
.steps { list-style: none; margin: 0; padding: 0 0 clamp(2rem, 4vw, 3rem); display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 21rem), 1fr)); }
.step { background: var(--navy-2); border-radius: 18px; padding: 1.2rem 1.3rem 1.4rem; display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 1rem; align-items: start; border: 1.5px solid rgba(255,255,255,.08); }
@media (prefers-color-scheme: dark) { .step { background: #101b31; } }
.step .fig { display: flex; justify-content: center; align-items: flex-end; }
.step .fig .bot { height: 8.5rem; width: auto; max-width: 100%; }
.step-n { font-size: .84rem; font-weight: 650; color: var(--signal); }
.step h3 { color: var(--stage-ink); font-size: 1.3rem; margin: .1rem 0 .45rem; }
.step h3 small { display: none; }
.step p { color: var(--stage-ink-2); font-size: .96rem; line-height: 1.5; }
.step .quote { color: var(--stage-ink); font-weight: 600; margin-top: .6rem; }
.step .why { font-size: .86rem; margin-top: .45rem; }
.step--vidit { background: transparent; border: 2px dashed rgba(255,197,49,.55); }
.stamp {
  width: 4.6rem; height: 4.6rem; border-radius: 50%; border: 3px solid var(--signal); color: var(--signal); display: grid; place-items: center;
  font: 850 1.25rem/1 var(--display); font-stretch: 118%; rotate: -10deg; position: relative; margin-top: .4rem;
}
.stamp::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; border: 1.5px solid var(--signal); opacity: .7; }
.relay-ui { display: none; }

/* Enhanced: sticky stage scrubbed by scroll (JS adds .is-live only when motion is on) */
.relay.is-live .relay-track { height: var(--track, 260vh); position: relative; }
.relay.is-live .relay-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; padding-block: clamp(1rem, 3vh, 2rem) clamp(.8rem, 2.5vh, 1.6rem); }
.relay.is-live .relay-ui { display: flex; }
.relay.is-live .stage-top { grid-row: 1; justify-content: space-between; align-items: center; gap: 1rem; font-size: .9rem; color: var(--stage-ink-2); }
.relay.is-live .stage-top b { color: var(--stage-ink); font-weight: 650; }
.relay.is-live .stage-top [data-step-count] { white-space: nowrap; }
@media (max-width: 45.99rem) { .relay.is-live .stage-top .desc { display: none; } }
.relay.is-live .caption { grid-row: 2; display: block; align-self: end; position: relative; height: 100%; min-height: 9rem; }
.relay.is-live .viewport { grid-row: 3; position: relative; height: clamp(230px, 44vh, 440px); overflow: visible; }
.relay.is-live .rail { grid-row: 4; }
.relay.is-live .steps { position: absolute; inset: 0; display: flex; gap: 0; padding: 0; align-items: flex-end; justify-content: space-between; will-change: transform; }
.relay.is-live .step { all: unset; position: relative; flex: 1 1 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 0; }
.relay.is-live .step .fig { height: 100%; width: 100%; display: flex; justify-content: center; align-items: flex-end; padding-bottom: .5rem; position: relative; }
.relay.is-live .step .fig .bot { height: calc(100% - 70px); max-height: 270px; width: auto; max-width: 100%; transition: filter .4s, opacity .4s; }
.relay.is-live .step:not(.is-on) .fig .bot { opacity: .62; filter: saturate(.6); }
@media (prefers-color-scheme: dark) { .relay.is-live .step:not(.is-on) .fig .bot { opacity: .72; } }
.relay.is-live .step .txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.relay.is-live .step--vidit { flex: .55 1 0; }
.relay.is-live .step--vidit .stamp { margin-bottom: 2.2rem; opacity: .6; transition: opacity .3s, scale .35s cubic-bezier(.3,1.6,.5,1); scale: .9; }
.relay.is-live .step--vidit.is-done .stamp, .relay.is-live .step--vidit.is-on .stamp { opacity: 1; scale: 1; }
.relay.is-live .floor { position: absolute; left: 0; right: 0; bottom: .35rem; height: 3px; background: rgba(238,242,248,.22); border-radius: 3px; }
.relay.is-live .floor i { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--p, 0) * 100%); background: var(--signal); border-radius: 3px; }
.token { position: absolute; left: 0; top: 0; width: 56px; height: 56px; margin: -28px 0 0 -28px; z-index: 3; pointer-events: none; will-change: transform; }
.token svg { width: 100%; height: 100%; overflow: visible; }
.token .g { opacity: 0; transition: opacity .25s; }
.token .g.on { opacity: 1; }
.token::before { content: ""; position: absolute; inset: 2px; border-radius: 50%; box-shadow: 0 0 0 0 rgba(255,197,49,.5); }
[data-motion="on"] .token::before { animation: ring 2.2s ease-out infinite; }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(255,197,49,.45); } 100% { box-shadow: 0 0 0 16px rgba(255,197,49,0); } }
.caption > div { position: absolute; left: 0; bottom: clamp(.6rem, 2.5vh, 1.6rem); width: 100%; opacity: 0; translate: 0 -10px; transition: opacity .14s ease-in, translate .2s ease-in; display: grid; gap: .45rem; max-width: 52rem; pointer-events: none; }
.caption > div.on { opacity: 1; translate: 0 0; transition: opacity .3s ease-out .14s, translate .45s cubic-bezier(.2,.7,.3,1) .14s; pointer-events: auto; }
.caption > div:not(.on) { translate: 0 12px; }
.caption .step-n { font-size: .9rem; color: var(--signal); font-weight: 650; }
.caption h3 { font-size: clamp(2.1rem, 1rem + 4vw, 4.6rem); font-weight: 850; font-stretch: 116%; line-height: .95; color: var(--stage-ink); margin-bottom: .35rem; }
.caption h3 small { display: none; }
.caption p { color: var(--stage-ink-2); font-size: clamp(1rem, .9rem + .35vw, 1.2rem); line-height: 1.5; max-width: 44rem; }
.caption .quote { color: var(--stage-ink); font-weight: 650; }
.caption .why { font-size: .95rem; }
.rail { gap: .35rem; margin-top: .7rem; list-style: none; padding: 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.rail a { display: inline-flex; align-items: center; gap: .4rem; min-height: 32px; padding: 0 .7rem; border-radius: 999px; font-size: .84rem; font-weight: 600; text-decoration: none; color: var(--stage-ink-2); border: 1.5px solid rgba(238,242,248,.2); white-space: nowrap; }
.rail a:hover { color: var(--stage-ink); border-color: rgba(238,242,248,.5); }
.rail a.done { color: var(--stage-ink); border-color: rgba(255,197,49,.5); }
.rail a.on { background: var(--signal); color: var(--navy); border-color: var(--signal); }
@media (max-width: 45.99rem) {
  .relay.is-live .steps { justify-content: flex-start; }
  .relay.is-live .step { flex: 0 0 58vw; }
  .relay.is-live .step--vidit { flex: 0 0 34vw; }
  .relay.is-live .viewport { height: clamp(220px, 38vh, 330px); }
  .caption .why { display: none; }
  .rail { display: none !important; }
}
@media (max-height: 700px) { .caption .why { display: none; } }

/* ───────── Services ───────── */
.services { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16.5rem), 1fr)); }
.service { background: var(--surface); border: 2px solid var(--line-strong); border-radius: 18px; padding: 1.3rem 1.3rem 1.2rem; display: flex; flex-direction: column; gap: .7rem; }
.service h3 { font-size: 1.4rem; }
.service p { color: var(--ink-2); }
.crewline { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: auto; padding-top: .5rem; list-style: none; padding-left: 0; margin-bottom: 0; }
.crewline li { display: inline-flex; align-items: center; gap: .4rem; font-size: .84rem; font-weight: 650; padding: .25rem .6rem .25rem .3rem; border-radius: 999px; background: var(--surface-2); }
.crewline li::before { content: ""; width: 1.1rem; height: 1.1rem; border-radius: 6px; background: var(--c); border: 2px solid var(--bot-ink); }
.crewline .sr-only + li { margin-left: 0; }
.work-cta { margin-top: clamp(2.2rem, 5vw, 3.2rem); display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; padding: clamp(1.2rem, 3vw, 1.8rem); border-radius: 22px; background: var(--surface); border: 2px solid var(--line-strong); }
.work-cta p { flex: 1 1 20rem; font-size: 1.08rem; color: var(--ink-2); }
.work-cta p b { color: var(--ink); font: 760 1.35rem/1.2 var(--display); font-stretch: 108%; display: block; margin-bottom: .25rem; }

/* ───────── About ───────── */
.about { display: grid; gap: clamp(1.6rem, 4vw, 4rem); align-items: start; }
@media (min-width: 56rem) { .about { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); } }
.about-id { display: grid; gap: 1.2rem; justify-items: start; }
.about-id .monogram { width: 7.5rem; height: 7.5rem; font: 850 2.7rem/1 var(--display); font-stretch: 118%; margin: 0; }
.role { font-size: 1rem; color: var(--ink-2); max-width: 26rem; }
.role b { color: var(--ink); }
.bio { display: grid; gap: 1.05rem; color: var(--ink-2); font-size: 1.08rem; max-width: 42rem; }
.bio strong { color: var(--ink); font-weight: 650; }

/* ───────── Contact ───────── */
.contact { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (min-width: 56rem) { .contact { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); } }
.contact-card { background: var(--navy); color: #eef2f8; border-radius: 26px; padding: clamp(1.4rem, 4vw, 2.6rem); display: grid; gap: 1.2rem; position: relative; overflow: hidden; }
@media (prefers-color-scheme: dark) { .contact-card { background: var(--surface); border: 2px solid var(--line); } }
.contact-card h2 { font-size: clamp(1.7rem, 1.1rem + 2.2vw, 2.8rem); color: #eef2f8; max-width: 18ch; }
@media (prefers-color-scheme: dark) { .contact-card h2 { color: var(--ink); } }
.email { font: 760 clamp(1.02rem, .75rem + 1.5vw, 1.8rem)/1.2 var(--display); font-stretch: 104%; color: var(--signal); overflow-wrap: anywhere; text-decoration: none; justify-self: start; border-bottom: 2px solid currentColor; }
.contact-card .note { color: #b9c4d8; }
@media (prefers-color-scheme: dark) { .contact-card .note { color: var(--ink-2); } }
.contact-card .cta-row .btn-ghost { color: #eef2f8; --b: rgba(238,242,248,.6); }
.contact-card .cta-row .btn-ghost:hover { background: rgba(255,255,255,.08); }
@media (prefers-color-scheme: dark) { .contact-card .cta-row .btn-ghost { color: var(--ink); --b: var(--line-strong); } }
.copied { font-size: .9rem; color: var(--signal); min-height: 1.3em; }
.details-wrap h2 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); margin-bottom: 1.1rem; font-stretch: 106%; }
.details-wrap .label { font-size: .92rem; color: var(--ink-3); font-weight: 600; margin-bottom: .3rem; }
dl.details { margin: 0; display: grid; grid-template-columns: minmax(8.5rem, auto) minmax(0, 1fr); border-top: 2px solid var(--ink); }
dl.details dt, dl.details dd { margin: 0; padding: .78rem 0; border-bottom: 1.5px solid var(--line); }
dl.details dt { color: var(--ink-3); font-weight: 600; font-size: .94rem; padding-right: 1rem; }
dl.details dd { font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
@media (max-width: 30rem) { dl.details { grid-template-columns: minmax(0, 1fr); } dl.details dt { border-bottom: 0; padding-bottom: 0; } }

/* ───────── Footer ───────── */
footer { padding-block: 2.4rem 3rem; color: var(--ink-3); font-size: .9rem; border-top: 2px solid var(--ink); }
footer .wrap { display: grid; gap: .9rem; }
footer .row { display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; justify-content: space-between; }
footer a { color: var(--ink-2); font-weight: 600; }
footer .colophon { color: var(--ink-2); }
footer .tm { font-size: .82rem; }

/* ───────── Legal page (privacy) ───────── */
.legal { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3rem, 7vw, 5rem); }
.legal article { max-width: 44rem; display: grid; gap: 1rem; color: var(--ink-2); }
.legal .updated { font-size: .92rem; color: var(--ink-3); font-weight: 600; }
.legal h1 { font-size: clamp(2.4rem, 1.6rem + 3.6vw, 4rem); font-weight: 850; font-stretch: 116%; line-height: .95; color: var(--ink); margin-bottom: .4rem; }
.legal h2 { font-size: 1.45rem; color: var(--ink); margin-top: 1.4rem; font-stretch: 108%; }
.legal ul { margin: 0; padding-left: 1.2rem; display: grid; gap: .45rem; }
.legal a { font-weight: 600; color: var(--ink); }

/* ───────── The crew: shared bot styles ───────── */
.bot { overflow: visible; --ink: var(--bot-ink); }
.bot--socrates { --c: #1f8a8a; --t: #86d3cc; --s: #136a6b; }
.bot--leibniz { --c: #e8622e; --t: #ffc4a6; --s: #b8461b; }
.bot--descartes { --c: #2e9a5e; --t: #9fdcb4; --s: #1d6b41; }
.bot--plato { --c: #6b4fd8; --t: #c3b5fa; --s: #4a33a8; }
.bot--voltaire { --c: #2f5bd3; --t: #a9c0f7; --s: #1f43a6; }
.bot--nietzsche { --c: #d63c7a; --t: #f7a8c8; --s: #a8285c; }
.bot--marcus { --c: #4a4fb0; --t: #a7abee; --s: #33378a; }
@media (prefers-color-scheme: dark) {
  .bot--marcus { --c: #5d63d6; --t: #b4b8f5; --s: #4146a8; }
  .bot--voltaire { --c: #3a68e6; }
}
.relay .bot--marcus { --c: #5d63d6; --t: #b4b8f5; --s: #4146a8; }
.relay .bot--voltaire { --c: #3a68e6; }
.b-shadow { opacity: .13; }
.relay .b-shadow { fill: #000; opacity: .35; }
.b-body, .b-eyes, .b-pupil, .soc-iris, .soc-scope, .soc-q, .lei-lamp-glow, .lei-hand-l, .lei-hand-r, .lei-bit, .lei-steam, .lei-wrench, .des-upper, .des-brow-r, .pla-squish, .pla-f, .pla-paint, .vol-meridian, .vol-quill, .vol-stamp, .vol-shipped, .nie-clapper, .nie-stache, .mar-head, .mar-lid-l, .mar-lid-r { transform-box: fill-box; }
.b-body { transform-origin: 50% 100%; }
.b-pupil { transition: translate .08s linear; }
.mar-lid-l, .mar-lid-r { transform-origin: 50% 0; }
.mar-lid-l { transform: scaleY(.42); } .mar-lid-r { transform: scaleY(0); }
.mar-leds-on circle { opacity: 0; }
.mar-leds-on circle:nth-child(-n+5) { opacity: 1; }
.soc-iris { transform-origin: center; }
.soc-scope { transform-origin: 0% 100%; }
.soc-q { transform-origin: 50% 0; }
.lei-lamp-glow { transform-origin: center; }
.des-tick { stroke-dasharray: 1; stroke-dashoffset: 0; }
.pla-paint { stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; }
.pla-f { transform-origin: center; }
.vol-meridian { transform-origin: center; }
.vol-quill { transform-origin: 0% 100%; }
.vol-stamp { transform-origin: 50% 0%; }
.nie-clapper { transform-origin: 0% 100%; }
.nie-rec { opacity: 1; }

/* ───────── Motion (only when html[data-motion="on"]) ───────── */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}
[data-motion="on"] .b-body { animation: breathe 4.6s ease-in-out infinite; }
[data-motion="on"] .mate:nth-child(2n) .b-body, [data-motion="on"] .step:nth-child(2n) .b-body { animation-duration: 5.3s; animation-delay: -1.2s; }
@keyframes breathe { 0%, 100% { scale: 1 1; } 50% { scale: 1.012 1.025; } }
[data-motion="on"] .soc-iris { animation: iris 6s ease-in-out infinite; }
@keyframes iris { 0%, 100% { scale: 1; rotate: 0deg; } 45% { scale: 1.32; rotate: 18deg; } 55% { scale: 1.32; rotate: 18deg; } }
[data-motion="on"] .soc-scope { animation: scope 9s ease-in-out infinite; }
@keyframes scope { 0%, 40%, 100% { scale: 1 1; } 46%, 86% { scale: -1 1; } }
[data-motion="on"] .soc-q { animation: flutter 3.4s ease-in-out infinite; }
@keyframes flutter { 0%, 70%, 100% { rotate: 0deg; } 76% { rotate: 9deg; } 84% { rotate: -6deg; } 92% { rotate: 3deg; } }
[data-motion="on"] .lei-hand-l { animation: type .32s steps(2) infinite; }
[data-motion="on"] .lei-hand-r { animation: type .32s steps(2) infinite reverse; }
@keyframes type { 0% { translate: 0 0; } 100% { translate: 0 -3px; } }
[data-motion="on"] .lei-bit { animation: bit 2.8s ease-out infinite; opacity: 0; }
[data-motion="on"] .lei-bit:nth-child(2) { animation-delay: .7s; } [data-motion="on"] .lei-bit:nth-child(3) { animation-delay: 1.4s; } [data-motion="on"] .lei-bit:nth-child(4) { animation-delay: 2.1s; }
@keyframes bit { 0% { opacity: 0; translate: 0 0; } 15% { opacity: 1; } 100% { opacity: 0; translate: 0 -34px; } }
.lei-bit { opacity: 0; }
[data-motion="on"] .lei-lamp-glow { animation: lamp 3.2s ease-in-out infinite; }
@keyframes lamp { 0%, 100% { opacity: .15; scale: .8; } 50% { opacity: .55; scale: 1.25; } }
[data-motion="on"] .lei-steam { animation: steam 2.4s ease-in-out infinite; }
@keyframes steam { 0%, 100% { opacity: .3; translate: 0 2px; } 50% { opacity: 1; translate: 0 -2px; } }
[data-motion="on"] .des-upper { animation: stilts 7s ease-in-out infinite; }
@keyframes stilts { 0%, 100% { translate: 0 0; } 40%, 60% { translate: 0 -9px; } }
[data-motion="on"] .des-tick { animation: tick 4.5s ease-in-out infinite; }
@keyframes tick { 0%, 20% { stroke-dashoffset: 1; } 40%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 1; } }
[data-motion="on"] .pla-blob { animation: hue 14s linear infinite; }
@keyframes hue { 0%, 100% { fill: #6b4fd8; } 33% { fill: #f06b4f; } 66% { fill: #e8b03a; } }
[data-motion="on"] .pla-squish { animation: squish 3.8s ease-in-out infinite; }
@keyframes squish { 0%, 100% { scale: 1 1; } 50% { scale: 1.035 .965; } }
[data-motion="on"] .pla-forms { animation: none; }
[data-motion="on"] .pla-f1 { animation: orbit1 9s ease-in-out infinite; }
[data-motion="on"] .pla-f2 { animation: orbit2 9s ease-in-out infinite; }
[data-motion="on"] .pla-f3 { animation: orbit3 9s ease-in-out infinite; }
@keyframes orbit1 { 0%, 100% { translate: 0 0; rotate: 0deg; } 50% { translate: 22px -10px; rotate: 0deg; } }
@keyframes orbit2 { 0%, 100% { translate: 0 0; rotate: 0deg; } 50% { translate: 18px 8px; rotate: 120deg; } }
@keyframes orbit3 { 0%, 100% { translate: 0 0; rotate: 0deg; } 50% { translate: -36px -6px; rotate: 90deg; } }
[data-motion="on"] .pla-paint { animation: paint 5s ease-in-out infinite; }
@keyframes paint { 0%, 30% { stroke-dashoffset: 1; opacity: 0; } 38% { opacity: 1; } 55% { stroke-dashoffset: 0; opacity: 1; } 80%, 100% { stroke-dashoffset: 0; opacity: 0; } }
[data-motion="on"] .vol-meridian { animation: spin 6s ease-in-out infinite; }
@keyframes spin { 0%, 100% { scale: 1 1; } 50% { scale: -1 1; } }
[data-motion="on"] .vol-quill { animation: quill 5s ease-in-out infinite; }
@keyframes quill { 0%, 80%, 100% { rotate: 0deg; } 85% { rotate: -8deg; } 90% { rotate: 4deg; } }
[data-motion="on"] .nie-rec { animation: rec 1.6s steps(1) infinite; }
@keyframes rec { 0%, 55% { opacity: 1; } 56%, 100% { opacity: .15; } }
[data-motion="on"] .nie-e1 { animation: face1 12s steps(1) infinite; }
[data-motion="on"] .nie-e2 { animation: face2 12s steps(1) infinite; }
[data-motion="on"] .nie-e4 { animation: face4 12s steps(1) infinite; }
@keyframes face1 { 0%, 49% { opacity: 1; } 50%, 74% { opacity: 0; } 75%, 100% { opacity: 1; } }
@keyframes face2 { 0%, 49% { opacity: 0; } 50%, 62% { opacity: 1; } 63%, 100% { opacity: 0; } }
@keyframes face4 { 0%, 62% { opacity: 0; } 63%, 74% { opacity: 1; } 75%, 100% { opacity: 0; } }
[data-motion="on"] .nie-stache { animation: twitch 6s ease-in-out infinite; transform-origin: 50% 50%; }
@keyframes twitch { 0%, 88%, 100% { translate: 0 0; } 91% { translate: 0 -2px; } 94% { translate: 0 0; } 97% { translate: 0 -1.5px; } }
[data-motion="on"] .mar-leds-on circle { animation: led 6s steps(1) infinite; }
[data-motion="on"] .mar-leds-on circle:nth-child(2) { animation-delay: .5s; } [data-motion="on"] .mar-leds-on circle:nth-child(3) { animation-delay: 1s; }
[data-motion="on"] .mar-leds-on circle:nth-child(4) { animation-delay: 1.5s; } [data-motion="on"] .mar-leds-on circle:nth-child(5) { animation-delay: 2s; }
@keyframes led { 0%, 8% { opacity: 0; } 9%, 92% { opacity: 1; } 93%, 100% { opacity: 0; } }
[data-motion="on"] .mar-head { animation: tilt 8s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes tilt { 0%, 60%, 100% { rotate: 0deg; } 68%, 84% { rotate: -5deg; } }
[data-motion="on"] .mar-lid-l { animation: halflid 9s ease-in-out infinite; }
@keyframes halflid { 0%, 55%, 100% { transform: scaleY(.42); } 62%, 85% { transform: scaleY(.15); } }

/* hero roll call: eyes power on left to right, once */
[data-motion="on"] .lineup.is-booting .b-eyes, [data-motion="on"] .lineup.is-booting .soc-iris, [data-motion="on"] .lineup.is-booting .nie-face { animation: boot .5s cubic-bezier(.3,1.5,.5,1) both; animation-delay: calc(var(--i, 0) * 110ms + 250ms); }
@keyframes boot { 0% { opacity: 0; scale: .2 .05; } 60% { opacity: 1; } 100% { opacity: 1; scale: 1 1; } }
[data-motion="on"] .lineup.is-booting .b-body { animation: hop .6s cubic-bezier(.3,1.4,.5,1) both; animation-delay: calc(var(--i, 0) * 110ms + 200ms); }
@keyframes hop { 0% { translate: 0 0; } 40% { translate: 0 -10px; } 100% { translate: 0 0; } }

/* reactions on intent (.is-react is added on hover, focus or tap; JS removes it) */
[data-motion="on"] .is-react .soc-iris { animation: snap .6s cubic-bezier(.3,1.6,.5,1); }
@keyframes snap { 0% { scale: 1; } 30% { scale: 1.6; rotate: 30deg; } 100% { scale: 1.15; rotate: 10deg; } }
[data-motion="on"] .is-react .lei-hand-l, [data-motion="on"] .is-react .lei-hand-r { animation-duration: .12s; }
[data-motion="on"] .is-react .lei-wrench { animation: thumbs .9s cubic-bezier(.3,1.5,.5,1); transform-origin: 85% 90%; }
@keyframes thumbs { 0%, 100% { rotate: 0deg; } 40%, 70% { rotate: 14deg; translate: 0 -6px; } }
[data-motion="on"] .is-react .des-upper { animation: lean .9s cubic-bezier(.3,1.3,.5,1); transform-origin: 50% 100%; }
@keyframes lean { 0%, 100% { translate: 0 0; rotate: 0deg; } 45%, 70% { translate: 0 -14px; rotate: 5deg; } }
[data-motion="on"] .is-react .des-brow-r { animation: brow .9s ease-in-out; }
@keyframes brow { 0%, 100% { translate: 0 0; } 40%, 70% { translate: 0 -5px; } }
[data-motion="on"] .is-react .pla-f1 { animation: align1 .9s cubic-bezier(.3,1.5,.5,1) both; }
[data-motion="on"] .is-react .pla-f2 { animation: align2 .9s cubic-bezier(.3,1.5,.5,1) both; }
[data-motion="on"] .is-react .pla-f3 { animation: align3 .9s cubic-bezier(.3,1.5,.5,1) both; }
@keyframes align1 { to { translate: 22px -14px; } } @keyframes align2 { to { translate: 0 1px; } } @keyframes align3 { to { translate: -24px -17px; rotate: 0deg; } }
[data-motion="on"] .is-react .pla-paint { animation: paint 1s ease-out; }
[data-motion="on"] .is-react .vol-stamp { animation: stampit .8s cubic-bezier(.3,1.4,.5,1); }
@keyframes stampit { 0%, 100% { translate: 0 0; } 35% { translate: 0 -14px; } 55% { translate: 0 6px; } }
[data-motion="on"] .is-react .vol-shipped { animation: shipped 1.6s ease-out both; }
@keyframes shipped { 0%, 30% { opacity: 0; scale: 1.3; } 40%, 80% { opacity: 1; scale: 1; } 100% { opacity: 0; } }
[data-motion="on"] .is-react .nie-clapper { animation: clap .5s cubic-bezier(.3,1.5,.5,1); }
@keyframes clap { 0% { rotate: 0deg; } 30% { rotate: -28deg; } 60% { rotate: 0deg; } }
[data-motion="on"] .is-react .mar-lid-l, [data-motion="on"] .is-react .mar-lid-r { animation: none; transform: scaleY(0); transition: transform .2s; }
[data-motion="on"] .is-react .mar-head { animation: swivel .9s cubic-bezier(.3,1.3,.5,1); }
@keyframes swivel { 0%, 100% { rotate: 0deg; } 40%, 70% { rotate: 6deg; } }
/* Nietzsche's reaction is an instant face swap, so it works the same with motion on or off */
.is-react .nie-stache, .is-react .nie-mouth { opacity: 0; animation: none; }
.is-react .nie-grin { opacity: 1; }
/* reduced motion / motion off: reactions become an instant state change (no movement) */
[data-motion="off"] .is-react .mar-lid-l { transform: scaleY(0); }
[data-motion="off"] .is-react .vol-shipped { opacity: 1; }

/* scroll-linked peek: the in-progress screens scroll a little as their card crosses the viewport */
@supports (animation-timeline: view()) {
  [data-motion="on"] .app--soon .thumb img { height: 116%; animation: peek linear both; animation-timeline: view(); animation-range: entry 10% exit 60%; }
  @keyframes peek { from { translate: 0 0; } to { translate: 0 -13%; } }
}

/* blink (WAAPI from JS sets scale on .b-eyes; keep origin centred) */
.b-eyes { transform-origin: 50% 50%; }

@media (prefers-reduced-motion: reduce) {
  html:not([data-motion="on"]) *, html:not([data-motion="on"]) *::before, html:not([data-motion="on"]) *::after { animation: none !important; transition-duration: .01ms !important; }
}
[data-motion="off"] *, [data-motion="off"] *::before, [data-motion="off"] *::after { animation: none !important; }

/* ───────── Hero review pass: the crew reviews the page once, Vidit approves, the seven apps appear ───────── */
.hero-stage { position: relative; }
.rv-layer, .rv-ui { position: absolute; inset: 0; pointer-events: none; z-index: 6; }
.rv-c-socrates { --ac: #136a6b; } .rv-c-plato { --ac: #4a33a8; } .rv-c-leibniz { --ac: #b8461b; } .rv-c-descartes { --ac: #1d6b41; }
.rv-c-voltaire { --ac: #1f43a6; } .rv-c-nietzsche { --ac: #a8285c; } .rv-c-marcus { --ac: #33378a; } .rv-c-vidit { --ac: #13213a; }

/* head cursors: each agent's own head (a live clone from the crew row) with a pointer nib */
.rv-hc { position: absolute; left: 0; top: 0; opacity: 0; will-change: transform; }
.rv-hc .nib { position: absolute; left: -2px; top: -2px; width: 16px; height: 19px; }
.rv-hc .head { position: absolute; left: 10px; top: 12px; width: var(--hs, 50px); height: var(--hs, 50px); border-radius: 50%; overflow: hidden; background: #fff; border: 2.5px solid var(--ac); box-shadow: 0 2px 0 rgba(19,33,58,.2); }
.rv-hc .head svg { width: 118%; height: 118%; margin: -9%; display: block; overflow: hidden; }
.rv-hc .head svg * { animation: none !important; }
.rv-hc.vc .head { width: 42px; height: 42px; border-radius: 11px; overflow: visible; background: #13213a; color: #fff; border: 2px solid #fff; display: grid; place-items: center; font: 850 .9rem/1 var(--display); font-stretch: 118%; }
.rv-hc.vc .head::after { content: ""; position: absolute; right: -5px; top: -5px; width: 12px; height: 12px; border-radius: 50%; background: var(--signal); border: 2px solid #13213a; }
@media (max-width: 63.99rem) { .rv-hc { --hs: 38px; } .rv-hc.vc .head { width: 32px; height: 32px; font-size: .7rem; } }

/* notes: every line is a checkable fact (design/events.json) */
.rv-note { position: absolute; background: #fff; color: #13213a; border: 2px solid var(--ac); border-radius: 12px; padding: .55rem .85rem .6rem; font: 550 .95rem/1.3 var(--text); white-space: nowrap; box-shadow: 3px 3px 0 rgba(19,33,58,.12); }
.rv-note b { display: block; font: 750 .8rem/1.2 var(--text); color: var(--ac); margin-bottom: .2rem; }
.rv-note.done { background: #1d6b41; color: #fff; } .rv-note.done b { color: #d6f2e1; }
.rv-note .live { display: inline-block; font: 850 .72rem/1 var(--display); font-stretch: 112%; letter-spacing: .06em; color: #c2362f; border: 2px solid #c2362f; border-radius: 4px; padding: .14rem .3rem .12rem; margin-right: .45rem; rotate: -5deg; vertical-align: .08em; }
@media (max-width: 63.99rem) { .rv-note { font-size: .84rem; padding: .42rem .65rem .46rem; } .rv-note b { font-size: .72rem; } }
.rv-approve { position: absolute; display: inline-flex; align-items: center; gap: .6rem; background: #fff; color: #13213a; border: 2px solid #13213a; border-radius: 999px; padding: .3rem .32rem .3rem .85rem; font: 600 .95rem/1 var(--text); white-space: nowrap; box-shadow: 3px 3px 0 rgba(19,33,58,.12); }
.rv-approve b { background: #13213a; color: #fff; border-radius: 999px; padding: .5rem .85rem; font-weight: 750; transition: background .25s; }
.rv-approve.ok b { background: #11703f; }
@media (max-width: 63.99rem) { .rv-approve { font-size: .84rem; } .rv-approve b { padding: .42rem .7rem; } }
.rv-ring { position: absolute; width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%; border: 2px solid var(--ac); opacity: 0; }
.rv-fade { transition: opacity .45s !important; opacity: 0 !important; }

/* the main conversion element: a real button after "Seven apps." */
.rv-ui .rv-apps-btn { all: unset; pointer-events: auto; position: absolute; box-sizing: border-box; display: inline-flex; align-items: center; gap: .45rem; height: 44px; padding: 0 .95rem 0 1.1rem; background: var(--signal); color: #13213a; border: 2px solid #13213a; border-radius: 999px; font: 750 1.05rem/1 var(--text); white-space: nowrap; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: translate .18s cubic-bezier(.2,.7,.3,1), box-shadow .18s; }
.rv-ui .rv-apps-btn:hover { translate: -2px -2px; box-shadow: 3px 3px 0 #13213a; }
.rv-ui .rv-apps-btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.rv-apps-btn svg { width: 14px; height: 14px; transition: rotate .25s; }
.rv-apps-btn[aria-expanded="true"] svg { rotate: 180deg; }
@media (max-width: 63.99rem) { .rv-ui .rv-apps-btn { height: 36px; padding: 0 .7rem 0 .8rem; font-size: .9rem; gap: .3rem; } .rv-apps-btn svg { width: 11px; height: 11px; } }
@media (prefers-color-scheme: dark) { .rv-ui .rv-apps-btn:hover { box-shadow: 3px 3px 0 #000; } }
.rv-ui .rv-apps-btn.tight { padding: 0 .55rem; font-size: .84rem; } .rv-apps-btn.tight svg { display: none; }
[data-motion="on"] .rv-apps-btn.nudge { animation: rv-nudge 1.3s ease-out 2; }
@keyframes rv-nudge { 0% { box-shadow: 0 0 0 0 rgba(255,197,49,.8); } 100% { box-shadow: 0 0 0 14px rgba(255,197,49,0); } }

/* the seven-app tray: open in the right column on desktop, a dock above the CTAs on smaller screens */
.rv-ui .rv-tray { pointer-events: auto; position: absolute; background: var(--surface); border: 2px solid var(--line-strong); border-radius: 20px; padding: .85rem 1rem 1rem; box-sizing: border-box; }
.rv-tray[hidden], .rv-ui [hidden] { display: none !important; }
.rv-tray-head { margin: 0 .3rem .45rem; display: flex; align-items: baseline; justify-content: space-between; gap: .8rem; font: 760 1.05rem/1.2 var(--display); font-stretch: 108%; color: var(--ink); }
.rv-tray-head span { font: 600 .84rem/1.2 var(--text); color: var(--ink-3); }
.rv-tray ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .15rem .8rem; }
.rv-tray.compact a { grid-template-columns: 2.1rem minmax(0, 1fr); row-gap: .1rem; }
.rv-tray.compact img { grid-row: span 2; width: 2.1rem; height: 2.1rem; }
.rv-tray.compact .chip { justify-self: start; font-size: .64rem; }
.rv-tray.compact .nm { font-size: .86rem; white-space: normal; }
.rv-tray a { display: grid; grid-template-columns: 2.35rem minmax(0, 1fr) auto; column-gap: .55rem; align-items: center; text-decoration: none; color: var(--ink); padding: .25rem .35rem .25rem .25rem; border-radius: 12px; min-height: 44px; }
.rv-tray a:hover { background: var(--surface-2); }
.rv-tray a:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.rv-tray img { width: 2.35rem; height: 2.35rem; border-radius: 24%; border: 1.5px solid var(--line); }
.rv-tray .nm { font-weight: 700; font-size: .92rem; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-tray .chip { justify-self: end; font-size: .7rem; padding: .2rem .45rem .2rem .35rem; gap: .3rem; }
.rv-tray .chip::before { width: .5rem; height: .5rem; }
@media (max-width: 63.99rem) {
  .rv-ui .rv-tray { left: 0 !important; right: 0; top: auto !important; padding: .65rem .5rem .6rem; box-shadow: 0 12px 26px -14px rgba(19,33,58,.45); z-index: 9; }
  .rv-tray-head { font-size: .92rem; margin: 0 .3rem .5rem; }
  .rv-tray ul { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0; }
  .rv-tray a { grid-template-columns: 1fr; justify-items: center; row-gap: .3rem; padding: .2rem 0; min-height: 0; }
  .rv-tray img { grid-row: auto; width: min(2.6rem, 10vw); height: min(2.6rem, 10vw); }
  .rv-tray .nm { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .rv-tray .chip { justify-self: center; font-size: .56rem; padding: .16rem .26rem; margin: 0; }
  .rv-tray .chip::before { display: none; }
}
@media (min-width: 64rem) { .hero-row { max-width: min(44rem, 56%); } }

/* after the pass: Vidit's approval and Replay, beside the first line */
.rv-ui .rv-ctrls { pointer-events: auto; position: absolute; display: flex; align-items: center; gap: .6rem; }
.rv-ok { display: inline-flex; align-items: center; gap: .45rem; font: 650 .9rem/1 var(--text); color: var(--ink-2); }
.rv-ok i { position: relative; width: 30px; height: 30px; border-radius: 8px; background: #13213a; color: #fff; font: 850 .62rem/30px var(--display); font-style: normal; text-align: center; flex: none; }
.rv-ok i::after { content: "✓"; position: absolute; right: -6px; bottom: -6px; width: 16px; height: 16px; border-radius: 50%; background: #11703f; color: #fff; font: 800 .6rem/16px var(--text); }
@media (prefers-color-scheme: dark) { .rv-ok i { background: #f4f6f9; color: #13213a; } }
.rv-ui .rv-replay { all: unset; pointer-events: auto; cursor: pointer; display: inline-flex; align-items: center; gap: .3rem; min-height: 32px; padding: 0 .7rem; border: 1.5px solid var(--line-strong); border-radius: 999px; font: 700 .82rem/1 var(--text); color: var(--ink); box-sizing: border-box; }
.rv-ui .rv-replay:hover { background: var(--surface); }
.rv-ui .rv-replay:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
@media (max-width: 63.99rem) { .rv-ok span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .rv-ui .rv-replay { padding: 0 .55rem; } }
