/* ==========================================================================
   Google — Sobi, AI coworkers (2024–Now)
   Loads after site.css (tokens, nav, footer, project intro, button).

   The page is Sobi's own homepage, told in six chapters: what, who, when, why, how, start.
   Typography follows the site system for everything the page says:
   · serif (Light 300) only for the voice — the headline, chapter titles, the statement, the closing line
   · sans 400 to read and navigate · 500 to press · 600 tracked tight to scan and choose
   Sobi's product surfaces (agent cards, the app window, chats, task logs, the flow cards, the agent
   maker) keep Sobi's own type — Figtree, Instrument Serif, Geist Mono — like the homepage demo does.
   Colour stays in Sobi's world: its cool ground and its blue, which is also the site's Google accent.
   ========================================================================== */

:root {
  --accent: #0B57D0;
  --tint: #D3E3FD;
}

/* Sobi's world, scoped to the story so the site chrome keeps its own tokens */
.sobi {
  --ground: #F0F3FA;
  --ground-2: #E6EBF6;
  --surface: #FFFFFF;
  --ink: #1B1B1F;
  --ink-2: #44474E;
  --ink-3: #5E636E;
  --line: #DCE2EE;
  --blue: #0B57D0;
  --blue-2: #0842A0;
  --blue-soft: #D3E3FD;
  --sky: #C2E7FF;
  --ok: #1E8E3E;
  --busy: #E37400;
  --wait: #0B57D0;
  --s-gutter: clamp(16px, 4vw, 48px);
  --card-shadow: 0 1px 2px rgba(60, 64, 67, 0.08), 0 22px 44px -26px rgba(30, 45, 90, 0.35);
  --f-display: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --f-body: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);

  background: var(--ground);
  color: var(--ink);
  font: 400 16px/1.5 var(--font-sans);
}
:where(.sobi) :is(p, h1, h2, h3, h4, blockquote) { margin: 0; }
:where(.sobi) :is(h1, h2, h3, h4) { font-weight: 400; }
.sobi [id] { scroll-margin-top: calc(var(--chrome) + 12px); }

/* Sobi's product surfaces speak Sobi */
.deck, .window, .token, .versus, .how-stage, .maker, .rchip {
  font-family: var(--f-body);
  letter-spacing: 0;
}

/* ==========================================================================
   Type — what the page says
   ========================================================================== */
.sobi h1,
.sobi :is(.sec-head, .cta-copy) h2,
.statement,
.cta-quote {
  font-family: var(--font-serif);
  font-optical-sizing: auto;
  font-variation-settings: "SOFT" 0, "WONK" 0;
  text-wrap: balance;
}
.sobi h1 {
  font-size: clamp(40px, min(5.6vw, 10vh), 84px);
  font-weight: 300;
  line-height: 1.06;
  letter-spacing: -0.03em;
}
.sobi h1 em { font-style: italic; color: var(--accent); }
.sobi :is(.sec-head, .cta-copy) h2 {
  font-size: clamp(34px, min(4.2vw, 7.4vh), 60px);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.sec-head { display: grid; gap: 16px; justify-items: start; }
.sec-head.center { justify-items: center; text-align: center; }

/* each chapter opens with its question — the project-label pattern, led by the accent dot */
.q {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 400 15px/1.3 var(--font-sans);
  color: var(--ink-2);
}
.q::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

.sub {
  max-width: 44ch;
  font: 400 clamp(15px, 1.2vw, 18px)/1.45 var(--font-sans);
  color: var(--ink-2);
  text-wrap: pretty;
}
.center .sub { margin-inline: auto; }

/* the small cues: the only uppercase on the page */
.cue-line { font: 400 11px/1 var(--font-sans); letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-3); }

/* ==========================================================================
   Sobi's product pieces (unchanged in type)
   ========================================================================== */
.s-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  border: 0;
  font: 600 15px/1 var(--f-body);
  white-space: nowrap;
  transition: transform 0.3s var(--ease), background 0.3s, box-shadow 0.3s;
}
.s-btn:hover { transform: translateY(-1px); }
.s-blue { background: var(--blue); color: #fff; box-shadow: 0 10px 22px -12px rgba(11, 87, 208, 0.8); }
.s-blue:hover { background: var(--blue-2); }
.s-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.link { font: 600 14px/1.2 var(--f-body); color: var(--blue); }
.ava { flex: none; width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.pulse { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(30, 142, 62, 0.45); } 70%, 100% { box-shadow: 0 0 0 7px rgba(30, 142, 62, 0); } }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font: 500 12px/1 var(--f-body); color: var(--ink-2); white-space: nowrap; }
.badge svg { width: 13px; height: 13px; }
.picked { display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border-radius: 999px; background: #EEF1F8; font: 500 12px/1 var(--f-body); color: var(--ink-2); }
.picked svg { width: 12px; height: 12px; }

/* ==========================================================================
   WHAT — a ring of agents around the headline, then the idea, word by word
   ========================================================================== */
.hero {
  --rw: clamp(56px, 4.8vw, 68px);
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 600px;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(40% 44% at 50% 50%, #fff 0%, rgba(255, 255, 255, 0) 100%); }
.ring { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.rt {
  --a: calc(var(--i) * 30deg - 90deg);
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--rw);
  aspect-ratio: 1;
  border-radius: 30%;
  background: linear-gradient(160deg, #fff 30%, var(--t, #EEF2FB));
  box-shadow: var(--card-shadow);
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%) translate(calc(cos(var(--a)) * min(40vw, 640px)), calc(sin(var(--a)) * min(38vh, 380px)));
}
.rt img { width: 66%; height: 66%; border-radius: 50%; animation: bob 5s ease-in-out infinite; animation-delay: calc(var(--i) * -0.45s); }
@keyframes bob { 50% { transform: translateY(-4px); } }
.rchip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px 6px 6px;
  border-radius: 999px;
  background: #fff;
  white-space: nowrap;
  font: 500 12px/1 var(--f-body);
  color: var(--ink);
  box-shadow: 0 10px 24px -12px rgba(30, 40, 80, 0.5);
  opacity: 0;
  transform: translate(-50%, 8px) scale(0.9);
  transition: opacity 0.35s, transform 0.5s var(--ease);
}
.rchip.on { opacity: 1; transform: translate(-50%, 0) scale(1); }
.rchip svg { width: 16px; height: 16px; }
.hero-copy {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 22px;
  max-width: min(800px, 70vw);
  padding-top: calc(var(--nav-h) * 0.5);
  text-align: center;
  will-change: transform, opacity;
}
.hero-label { justify-content: center; }
.hero-label::before { display: none; }
.lede { max-width: 40ch; font: 400 clamp(16px, 1.3vw, 18px)/1.45 var(--font-sans); color: var(--ink-2); text-wrap: balance; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; justify-content: center; }
.cta-row .btn { margin-top: 0; }
.scroll-hint {
  position: absolute;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 26px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.scroll-hint span { width: 1px; height: 28px; background: linear-gradient(var(--ink-3), transparent); animation: hint 2.2s var(--ease) infinite; }
@keyframes hint { 0% { transform: scaleY(0); transform-origin: top; } 45% { transform: scaleY(1); transform-origin: top; } 55% { transform: scaleY(1); transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
.concept { display: grid; place-items: center; padding: clamp(72px, 12vh, 140px) var(--s-gutter); }
.statement {
  max-width: min(1000px, 100%);
  text-align: center;
  font-size: clamp(26px, min(3.2vw, 5.6vh), 46px);
  font-weight: 300;
  line-height: 1.18;
  letter-spacing: -0.02em;
}
.statement .w { display: inline-block; white-space: pre; }
.motion .hero .statement { position: absolute; z-index: 3; left: 50%; top: 52%; width: min(1000px, calc(100% - 2 * var(--s-gutter))); transform: translate(-50%, -50%); opacity: 0; pointer-events: none; }
.motion .statement .w { opacity: 0.14; }

/* ==========================================================================
   WHO — the agent gallery
   ========================================================================== */
.who { position: relative; display: flex; align-items: center; min-height: 100vh; min-height: 100svh; padding-block: calc(var(--chrome) + 14px) clamp(72px, 9vh, 92px); }
.who-inner { width: 100%; max-width: 1400px; margin-inline: auto; padding-inline: var(--s-gutter); display: grid; gap: clamp(22px, 3.4vh, 38px); }
.who-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 32px; }
.filters { display: flex; gap: 4px; padding: 5px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.chip-btn { padding: 10px 16px; border-radius: 999px; font: 500 14px/1 var(--font-sans); letter-spacing: -0.005em; color: var(--ink-2); transition: background 0.3s, color 0.3s; }
.chip-btn[aria-pressed="true"] { background: var(--blue-soft); color: var(--blue-2); }
.deck { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(12px, 1.3vw, 18px); }
.pc { position: relative; perspective: 1100px; transition: opacity 0.5s, filter 0.5s, transform 0.5s var(--ease); }
.deck[data-filter="personal"] .pc:not([data-kind="personal"]),
.deck[data-filter="team"] .pc:not([data-kind="team"]),
.deck[data-filter="admin"] .pc:not([data-kind="admin"]) { opacity: 0.3; filter: saturate(0.2); transform: scale(0.95); }
.pc-deal, .pc-tilt, .pc-flip { position: relative; transform-style: preserve-3d; }
.pc-tilt { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 0.6s var(--ease); }
.pc-flip { animation: float 6s ease-in-out infinite; animation-delay: calc(var(--n, 0) * -1s); }
@keyframes float { 50% { transform: translateY(-6px); } }
.face { border-radius: 24px; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.front { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 12px 12px 14px; background: var(--surface); box-shadow: var(--card-shadow); transform-style: preserve-3d; }
.front::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0) 42%); mix-blend-mode: soft-light; opacity: 0; transition: opacity 0.4s; }
.pc:hover .front::after { opacity: 1; }
.stage { position: relative; aspect-ratio: 16 / 12; border-radius: 16px; background: radial-gradient(110% 90% at 30% 10%, #fff 0%, var(--t) 70%); display: grid; place-items: center; transform-style: preserve-3d; }
.stage .art { width: 84%; max-height: 88%; object-fit: contain; transform: translateZ(34px); -webkit-backface-visibility: hidden; backface-visibility: hidden; filter: drop-shadow(0 14px 16px rgba(40, 40, 90, 0.14)); }
.stage .art.av { width: 52%; max-width: 104px; border-radius: 50%; }
.stage .art.ic { width: 44%; max-width: 70px; border-radius: 50%; }
.stage .art.full { width: 100%; height: 100%; max-height: none; object-fit: cover; border-radius: 16px; transform: translateZ(18px); filter: none; }
.stage .picked { position: absolute; left: 8px; top: 8px; transform: translateZ(20px); }
.stage .badge { position: absolute; right: 8px; top: 8px; transform: translateZ(20px); }
.pc-body { display: grid; gap: 5px; padding: 0 4px; position: relative; overflow: hidden; min-height: 112px; align-content: start; }
.pc-body h3 { font: 500 clamp(16px, 1.25vw, 19px)/1.25 var(--f-body); letter-spacing: -0.005em; text-wrap: balance; }
.pc-body .d { font-size: 13.5px; line-height: 1.4; color: var(--ink-2); }
.pc-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 4px; }
.peek { background: var(--ground); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none; transition: background 0.3s, transform 0.4s var(--ease); }
.peek:hover { background: var(--blue-soft); }
.peek svg { width: 16px; height: 16px; }
.is-peek .peek { transform: rotate(45deg); }
.status { position: absolute; inset: 0; display: grid; gap: 6px; align-content: start; padding: 2px 4px; background: #fff; transform: translateY(104%); transition: transform 0.55s var(--ease); }
.is-peek .status { transform: none; }
.now-l { display: flex; align-items: center; gap: 7px; font: 600 11px/1 var(--f-body); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ok); }
.status ul { display: grid; gap: 4px; }
.status li { font-size: 13px; line-height: 1.35; color: var(--ink); padding: 5px 8px; border-radius: 9px; background: var(--ground); }
.back { position: absolute; inset: 0; transform: rotateY(180deg); display: grid; place-items: center; background: radial-gradient(circle at 1px 1px, rgba(11, 87, 208, 0.14) 1px, transparent 1.5px) 0 0 / 14px 14px, linear-gradient(160deg, #fff, #E3EAFB); box-shadow: var(--card-shadow); }
.back span { font: 400 44px/1 var(--f-display); color: var(--blue); }
.who-hint { font: 400 13px/1.3 var(--font-sans); color: var(--ink-3); }

/* ==========================================================================
   WHEN & WHERE — a day, sunrise to the small hours
   ========================================================================== */
.when { --when-bg: #F0F3FA; --when-ink: #1B1B1F; --when-muted: #44474E; --when-line: rgba(27, 27, 31, 0.1); position: relative; height: 100vh; height: 100svh; min-height: 640px; overflow: hidden; background: var(--when-bg); color: var(--when-ink); }
.when .sub, .when .q { color: var(--when-muted); }
.when h2 { color: var(--when-ink); }
.when-sky { position: absolute; inset: 0; pointer-events: none; }
.sun { position: absolute; left: 0; top: 0; width: clamp(120px, 14vw, 220px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, var(--sun, #FFD66B) 0 36%, rgba(255, 214, 107, 0) 70%); filter: blur(2px); opacity: 0.9; will-change: transform; }
.stars { position: absolute; inset: 0; opacity: 0; background-image: radial-gradient(1.4px 1.4px at 22px 34px, #fff 60%, transparent 62%), radial-gradient(1px 1px at 120px 80px, #fff 60%, transparent 62%), radial-gradient(1.6px 1.6px at 190px 20px, #E3EAFF 60%, transparent 62%), radial-gradient(1px 1px at 70px 140px, #fff 60%, transparent 62%); background-size: 230px 170px, 190px 150px, 260px 210px, 150px 170px; }
.when-grid { position: relative; height: 100%; max-width: 1400px; margin-inline: auto; padding: calc(var(--chrome) + 14px) var(--s-gutter) clamp(72px, 9vh, 96px); display: grid; grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.when-copy { display: grid; gap: clamp(12px, 2vh, 18px); align-content: center; }
/* the clock is a figure to read at a glance: semibold sans, tabular */
.clock { display: flex; align-items: baseline; gap: 12px; margin-top: clamp(4px, 1.5vh, 14px); }
.clock-t { font: 600 clamp(46px, min(6vw, 10vh), 92px)/1 var(--font-sans); letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.clock-d { font: 400 12px/1 var(--font-sans); letter-spacing: 0.04em; text-transform: uppercase; color: var(--when-muted); }
.beats { display: grid; border-top: 1px solid var(--when-line); }
.beats li { border-bottom: 1px solid var(--when-line); }
.beat { width: 100%; display: grid; grid-template-columns: 54px 116px 1fr; align-items: center; gap: 8px; padding: clamp(8px, 1.3vh, 12px) 2px; text-align: left; color: var(--when-muted); opacity: 0.6; transition: opacity 0.4s, color 0.4s; }
.beat:hover { opacity: 0.9; }
.beat.is-on { opacity: 1; color: var(--when-ink); }
.bt { font: 400 13px/1 var(--font-sans); font-variant-numeric: tabular-nums; }
.bk { display: inline-flex; align-items: center; gap: 7px; font: 600 14px/1 var(--font-sans); letter-spacing: -0.015em; }
.bk::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--k); }
.bl { font: 400 14px/1.3 var(--font-sans); }
.entry { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font: 400 13px/1.3 var(--font-sans); color: var(--when-muted); }
.echip { padding: 6px 10px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--when-line); color: var(--when-ink); font-weight: 500; }
.when-stage { position: relative; height: min(100%, 580px); min-height: 0; display: flex; align-items: center; }
.window { position: relative; width: 82%; aspect-ratio: 1.24; max-height: 100%; font-size: clamp(9.5px, 0.92vw, 13.5px); border-radius: 24px; background: #F6F8FD; color: var(--ink); box-shadow: 0 40px 80px -40px rgba(15, 20, 55, 0.5), 0 0 0 1px rgba(27, 27, 31, 0.05); perspective: 1400px; overflow: hidden; }
.token { position: absolute; right: 0; bottom: 6%; display: grid; justify-items: center; gap: 10px; width: 22%; pointer-events: none; }
.token-ring { position: relative; width: min(74%, 84px); aspect-ratio: 1; border-radius: 50%; background: #fff; box-shadow: 0 26px 40px -22px rgba(15, 20, 55, 0.55); display: grid; place-items: center; animation: bob 5s ease-in-out infinite; }
.token-ring::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(11, 87, 208, 0.25), 0 0 40px 6px var(--glow, rgba(11, 87, 208, 0)); transition: box-shadow 0.6s; }
.token-ring img { position: absolute; inset: 6%; width: 88%; height: 88%; border-radius: 50%; opacity: 0; transform: scale(0.6); transition: opacity 0.4s, transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1); }
.token-ring img.on { opacity: 1; transform: none; }
.token-tag { display: grid; justify-items: center; gap: 3px; padding: 8px 12px; border-radius: 14px; background: #fff; box-shadow: 0 12px 24px -16px rgba(15, 20, 55, 0.5); text-align: center; }
.token-tag b { font: 600 13px/1.2 var(--f-body); color: var(--ink); }
.token-tag span { display: inline-flex; align-items: center; gap: 6px; font: 500 11.5px/1.2 var(--f-body); color: var(--ok); }
.panel { position: absolute; inset: 0; padding: 1.4em; display: flex; flex-direction: column; gap: 0.9em; opacity: 0; visibility: hidden; transform: translateX(3em) rotateY(-9deg); transform-origin: 0 50%; transition: opacity 0.55s, transform 0.8s var(--ease), visibility 0s 0.8s; }
.panel.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity 0.55s 0.1s, transform 0.8s var(--ease) 0.1s, visibility 0s; }
.p-top { display: flex; align-items: center; gap: 0.6em; font-size: 0.95em; color: var(--ink-3); }
.p-top b { color: var(--ink); font-weight: 600; }
.p-top .sp { margin-left: auto; }
.hello { font-size: 1.15em; color: var(--ink-2); }
.big { font-size: 1.9em; line-height: 1.15; letter-spacing: -0.01em; }
.big .b { color: var(--blue); }
.lab { font-weight: 600; font-size: 1em; }
.rows { display: grid; gap: 0.5em; }
.row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0.8em; padding: 0.75em 1em; border-radius: 1em; background: #fff; opacity: 0; transform: translateY(0.6em); transition: opacity 0.4s, transform 0.6s var(--ease); }
.panel.is-on .row { opacity: 1; transform: none; }
.panel.is-on .row:nth-child(2) { transition-delay: 0.15s; }
.panel.is-on .row:nth-child(3) { transition-delay: 0.3s; }
.panel.is-on .row:nth-child(4) { transition-delay: 0.45s; }
.row b { display: block; font-weight: 600; font-size: 1em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row small { display: block; font-size: 0.86em; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-l { min-width: 0; }
.start { display: inline-flex; align-items: center; gap: 0.4em; padding: 0.55em 0.95em; border-radius: 999px; background: var(--sky); color: #04325F; font-weight: 600; font-size: 0.9em; white-space: nowrap; }
.row-av { display: grid; grid-template-columns: 2.6em 1fr auto; align-items: center; }
.row-av img { width: 2.4em; height: 2.4em; border-radius: 50%; }
.flag { padding: 0.35em 0.7em; border-radius: 999px; background: #E6F4EA; color: #137333; font-weight: 600; font-size: 0.82em; white-space: nowrap; }
.flag.warn { background: #FEEFC3; color: #8A5300; }
.chat { display: grid; gap: 1em; padding: 0.4em 0.2em; }
.msg { display: grid; grid-template-columns: 2.4em 1fr; gap: 0.8em; align-items: start; opacity: 0; transform: translateY(0.6em); transition: opacity 0.4s, transform 0.6s var(--ease); }
.panel.is-on .msg { opacity: 1; transform: none; }
.panel.is-on .msg.m2 { transition-delay: 1.1s; }
.msg img { width: 2.4em; height: 2.4em; border-radius: 50%; }
.msg .mw { font-weight: 600; font-size: 0.95em; }
.msg .mw time { margin-left: 0.5em; font-weight: 400; color: var(--ink-3); font-size: 0.9em; }
.msg p { font-size: 1em; line-height: 1.4; margin-top: 0.2em; }
.mention { color: var(--blue); font-weight: 600; }
.typing { display: inline-flex; gap: 0.25em; margin-left: 3.2em; opacity: 0; transition: opacity 0.3s; }
.panel.is-on .typing { animation: typing 1.1s 0.45s both; }
@keyframes typing { 0%, 100% { opacity: 0; } 15%, 85% { opacity: 1; } }
.typing i { width: 0.4em; height: 0.4em; border-radius: 50%; background: var(--ink-3); animation: dot 1s infinite; }
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot { 0%, 60%, 100% { opacity: 0.25; } 30% { opacity: 1; } }
.compose { margin-top: auto; padding: 0.8em 1em; border-radius: 999px; background: #fff; color: var(--ink-3); font-size: 0.92em; box-shadow: inset 0 0 0 1px var(--line); }
.agentcard { display: grid; gap: 0.7em; padding: 1em 1.1em; border-radius: 1.1em; background: #fff; box-shadow: 0 14px 30px -22px rgba(15, 20, 55, 0.5); }
.agentcard.ghost { opacity: 0.55; transform: scale(0.96) translateY(0.4em); transform-origin: top; }
.ac-top { display: flex; align-items: center; gap: 0.8em; }
.ac-top img { width: 2.6em; height: 2.6em; border-radius: 50%; }
.ac-top b { display: block; font-weight: 600; }
.ac-top small { display: block; color: var(--ink-3); font-size: 0.86em; }
.mem { display: grid; gap: 0.45em; }
.mem li { display: flex; align-items: center; gap: 0.7em; font-size: 0.98em; color: var(--ink-3); transition: color 0.4s; }
.mem li i { flex: none; width: 1.25em; height: 1.25em; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line); display: grid; place-items: center; transition: background 0.4s, box-shadow 0.4s; }
.mem li i svg { width: 0.8em; height: 0.8em; opacity: 0; transition: opacity 0.3s; }
.panel.is-on .mem li { color: var(--ink); }
.panel.is-on .mem li i { background: var(--ok); box-shadow: none; }
.panel.is-on .mem li i svg { opacity: 1; }
.panel.is-on .mem li:nth-child(1), .panel.is-on .mem li:nth-child(1) i, .panel.is-on .mem li:nth-child(1) i svg { transition-delay: 0.4s; }
.panel.is-on .mem li:nth-child(2), .panel.is-on .mem li:nth-child(2) i, .panel.is-on .mem li:nth-child(2) i svg { transition-delay: 0.8s; }
.panel.is-on .mem li:nth-child(3), .panel.is-on .mem li:nth-child(3) i, .panel.is-on .mem li:nth-child(3) i svg { transition-delay: 1.2s; }
.panel.is-on .mem li:nth-child(4), .panel.is-on .mem li:nth-child(4) i, .panel.is-on .mem li:nth-child(4) i svg { transition-delay: 1.6s; }

/* ==========================================================================
   WHY — prompts stop, goals keep going
   ========================================================================== */
.why { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; }
.why-grid { width: 100%; max-width: 1400px; margin-inline: auto; padding: calc(var(--chrome) + 14px) var(--s-gutter) clamp(76px, 9vh, 100px); display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.why-copy { display: grid; gap: clamp(24px, 4vh, 40px); }
.pillars { display: grid; gap: 10px; }
.pillars li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; padding: 12px 14px 12px 12px; border-radius: 18px; background: #fff; }
.pillars img { width: 44px; height: 44px; border-radius: 50%; }
.pillars b { display: block; font: 600 16px/1.2 var(--font-sans); letter-spacing: -0.025em; }
.pillars span { display: block; margin-top: 3px; font: 400 14px/1.4 var(--font-sans); color: var(--ink-2); }
.versus { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: 16px; align-items: start; }
.vs { position: relative; display: grid; gap: 14px; padding: 16px; border-radius: 26px; background: var(--surface); box-shadow: var(--card-shadow); transition: filter 0.6s, opacity 0.6s, transform 0.6s var(--ease); }
.vs-k { display: inline-flex; align-items: center; gap: 8px; font: 600 12px/1 var(--f-body); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.vs-k.yes { color: var(--ok); }
.bot-ic { width: 40px; height: 40px; border-radius: 50%; background: #E8EAED; display: grid; place-items: center; }
.bot-ic svg { width: 20px; height: 20px; }
.bubbles { display: grid; gap: 8px; }
.bub { max-width: 92%; padding: 9px 12px; border-radius: 16px; font-size: 14px; line-height: 1.35; }
.bub.me { justify-self: end; background: var(--blue-soft); color: #04325F; border-bottom-right-radius: 4px; }
.bub.it { justify-self: start; background: var(--ground); border-bottom-left-radius: 4px; }
.idle { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-3); }
.dots { display: inline-flex; gap: 3px; }
.dots i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; animation: dot 1.4s infinite; }
.dots i:nth-child(2) { animation-delay: 0.2s; }
.dots i:nth-child(3) { animation-delay: 0.4s; }
.count { font: 500 12px/1 var(--f-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.count b { font-size: 22px; letter-spacing: -0.03em; color: var(--ink); font-weight: 500; margin-right: 4px; }
.vs-bot.is-stalled { filter: saturate(0.2); opacity: 0.7; transform: scale(0.97); }
.goal { display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: center; }
.goal img { width: 52px; height: 52px; border-radius: 50%; }
.goal b { display: block; font: 600 13px/1.2 var(--f-body); }
.goal p { margin-top: 2px; font: 400 clamp(19px, 1.5vw, 23px)/1.3 var(--f-display); letter-spacing: -0.005em; }
.log { display: grid; gap: 2px; }
.log li { display: grid; grid-template-columns: 22px 104px 1fr; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 12px; font-size: 14px; color: var(--ink-3); transition: background 0.4s, color 0.4s; }
.lg-st { width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line); display: grid; place-items: center; transition: background 0.4s, box-shadow 0.4s; }
.lg-st svg { width: 11px; height: 11px; opacity: 0; transition: opacity 0.3s; }
.lg-t { font: 500 11.5px/1 var(--f-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.log li.is-done { color: var(--ink); }
.log li.is-done .lg-st { background: var(--ok); box-shadow: none; }
.log li.is-done .lg-st svg { opacity: 1; }
.log li.is-now { background: var(--blue-soft); color: var(--ink); }
.log li.is-now .lg-st { box-shadow: inset 0 0 0 1.5px var(--blue); border-top: 1.5px solid transparent; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.you { margin-left: 6px; padding: 2px 7px; border-radius: 999px; background: var(--sky); color: #04325F; font: 600 11px/1.4 var(--f-body); }
.vs-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.outcome { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; background: #E6F4EA; color: #137333; font: 600 13px/1 var(--f-body); opacity: 0; transform: translateY(6px) scale(0.96); transition: opacity 0.4s, transform 0.6s var(--ease); }
.outcome.is-on { opacity: 1; transform: none; }

/* ==========================================================================
   HOW — two agents, one goal, done
   ========================================================================== */
.how { position: relative; height: 100vh; height: 100svh; min-height: 700px; overflow: hidden; }
.how-inner { height: 100%; max-width: 1400px; margin-inline: auto; padding: calc(var(--chrome) + 14px) var(--s-gutter) clamp(72px, 9vh, 96px); display: grid; grid-template-rows: auto 1fr auto; gap: clamp(12px, 2.4vh, 28px); }
.how-stage { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1fr); align-items: center; gap: clamp(16px, 3vw, 48px); padding-top: clamp(40px, 7vh, 72px); min-height: 0; }
.how-arc { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; z-index: 0; }
.how-arc path { fill: none; stroke: var(--blue); stroke-width: 1.5; stroke-dasharray: 3 7; stroke-linecap: round; opacity: 0.45; }
.acard { position: relative; z-index: 1; justify-self: center; width: min(100%, 280px); display: grid; gap: 10px; padding: 18px; border-radius: 24px; background: var(--surface); box-shadow: var(--card-shadow); animation: float 6s ease-in-out infinite; }
.acard.left { transform: perspective(900px) rotateY(10deg); }
.acard.right { transform: perspective(900px) rotateY(-10deg); animation-delay: -3s; }
.acard .ac-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.acard .ac-av { width: clamp(56px, 4.6vw, 64px); aspect-ratio: 1; border-radius: 50%; animation: bob 4s ease-in-out infinite; }
.acard.talk .ac-av { animation: talk 0.5s ease-in-out infinite; }
@keyframes talk { 50% { transform: translateY(-6px) rotate(-3deg); } }
.acard.cheer .ac-av { animation: cheer 0.6s ease-in-out infinite; }
@keyframes cheer { 50% { transform: translateY(-12px) scale(1.06); } }
.acard h3 { font: 500 20px/1.2 var(--f-body); }
.acard .d { font-size: 14px; color: var(--ink-2); }
.st { display: inline-flex; align-items: center; gap: 7px; font: 600 13px/1.2 var(--f-body); color: var(--ink); }
.st::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--busy); animation: pulse 1.8s infinite; }
.st[data-s="idle"]::before { background: #C4C7CF; animation: none; }
.st[data-s="wait"]::before { background: var(--wait); }
.st[data-s="done"]::before { background: var(--ok); animation: none; }
.how-center { position: relative; z-index: 2; align-self: stretch; min-height: clamp(260px, 38vh, 360px); }
.hs { position: absolute; left: 0; right: 0; top: 50%; display: grid; gap: 12px; padding: 18px; border-radius: 24px; background: var(--surface); box-shadow: var(--card-shadow); opacity: 0; visibility: hidden; transform: translateY(-44%) scale(0.96); transition: opacity 0.45s, transform 0.7s var(--ease), visibility 0s 0.7s; }
.hs.is-on { opacity: 1; visibility: visible; transform: translateY(-50%); transition: opacity 0.45s 0.08s, transform 0.7s var(--ease) 0.08s, visibility 0s; }
.hs-k { display: flex; align-items: center; gap: 8px; font: 600 12px/1 var(--f-body); letter-spacing: 0.04em; color: var(--ink-3); }
.hs-t { font: 400 clamp(24px, 2.2vw, 32px)/1.15 var(--f-display); letter-spacing: -0.005em; text-wrap: balance; }
.hs-as { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.hs ul { display: grid; gap: 6px; }
.hs li { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 12px; background: var(--ground); font-size: 14px; font-weight: 500; }
.hs li small { margin-left: auto; font-weight: 500; color: var(--ink-3); font-size: 12px; white-space: nowrap; }
.hs-x { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--ground); font-size: 14px; opacity: 0.35; transition: opacity 0.4s; }
.hs-x b { font: 600 12px/1.2 var(--f-body); color: var(--ink-3); }
.hs-x.on { opacity: 1; }
.ap h4 { font: 500 18px/1.25 var(--f-body); }
.ap .n { font-size: 13px; color: var(--ink-2); }
.opts { display: grid; gap: 4px; }
.opt { display: grid; grid-template-columns: 22px 1fr 16px; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 12px; background: transparent; transition: background 0.3s; }
.opt svg { width: 18px; height: 18px; color: var(--ink-3); }
.opt b { display: block; font: 600 13.5px/1.2 var(--f-body); }
.opt span { display: block; font-size: 12px; color: var(--ink-3); line-height: 1.3; }
.opt .ck { opacity: 0; color: var(--blue); }
.opt.sel { background: var(--sky); }
.opt.sel .ck { opacity: 1; }
.ap-btns { display: flex; justify-content: flex-end; gap: 14px; align-items: center; }
.confirm { min-width: 96px; }
.cf-b, .is-approved .cf-a { display: none; }
.is-approved .cf-b { display: inline; }
.is-approved .confirm { background: var(--ok); }
.fake-cursor { position: absolute; left: 0; top: 0; width: 22px; height: 22px; pointer-events: none; opacity: 0; transition: opacity 0.3s; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.25)); z-index: 3; }
.done-ic { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--ok); color: #fff; }
.done-ic svg { width: 22px; height: 22px; }
.hs-stats { font: 500 12px/1 var(--f-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.packet { position: absolute; left: 0; top: 0; z-index: 4; display: flex; align-items: center; gap: 8px; padding: 6px 13px 6px 6px; border-radius: 999px; background: #fff; color: var(--ink); font: 600 13px/1 var(--f-body); white-space: nowrap; box-shadow: 0 14px 26px -12px rgba(15, 20, 55, 0.5), inset 0 0 0 1px var(--line); opacity: 0; pointer-events: none; will-change: transform, opacity; }
/* the step rail is page navigation: our sans, Sobi's blue */
.how-rail { display: grid; gap: 12px; justify-items: center; }
.how-rail ol { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; }
.how-rail button { padding: 7px 11px; border-radius: 999px; font: 500 13px/1 var(--font-sans); letter-spacing: -0.005em; color: var(--ink-3); transition: color 0.3s, background 0.3s; }
.how-rail button .n { margin-right: 6px; font-variant-numeric: tabular-nums; opacity: 0.7; }
.how-rail button.is-on { color: var(--blue-2); background: var(--blue-soft); }
.hr-bar { width: min(620px, 100%); height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.hr-bar i { display: block; height: 100%; width: 100%; background: var(--blue); transform-origin: left; transform: scaleX(0); }

/* ==========================================================================
   START — make your own agent
   ========================================================================== */
.cta { position: relative; height: 100vh; height: 100svh; min-height: 640px; }
.cta-panel { position: absolute; inset: 0; overflow: hidden; background: linear-gradient(135deg, #F3EEFF 0%, #FBE9F4 55%, #FFF3E4 100%); will-change: clip-path; }
.cta-inner { position: relative; height: 100%; max-width: 1400px; margin-inline: auto; padding: calc(var(--chrome) + 14px) var(--s-gutter) clamp(80px, 10vh, 104px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); align-items: center; transform-origin: 50% 50%; }
.cta-copy { display: grid; gap: clamp(14px, 2.4vh, 22px); justify-items: start; }
.sobi .cta-copy h2 { font-size: clamp(38px, min(5vw, 8.5vh), 72px); line-height: 1.04; }
.cta .cta-row { justify-content: flex-start; }
.maker { display: grid; gap: 12px; padding: 16px; border-radius: 24px; background: rgba(255, 255, 255, 0.85); box-shadow: var(--card-shadow); width: min(100%, 460px); }
.maker-top { display: flex; align-items: center; gap: 12px; }
.maker-top img { width: 52px; height: 52px; border-radius: 50%; transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); }
.maker-top img.pop { transform: scale(1.15); }
.maker-top label { display: grid; gap: 2px; flex: 1; min-width: 0; }
.maker-top label span { font: 500 12px/1 var(--f-body); color: var(--ink-3); }
.maker-top input { border: 0; background: none; padding: 2px 0; font: 600 18px/1.2 var(--f-body); color: var(--ink); width: 100%; border-bottom: 1.5px solid var(--line); }
.maker-top input:focus { outline: none; border-bottom-color: var(--blue); }
.runs { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: #E6F4EA; color: #137333; font: 600 12px/1 var(--f-body); white-space: nowrap; }
.pick-l { display: flex; justify-content: space-between; font: 600 13px/1 var(--f-body); }
.pick-l span { color: var(--ink-3); font-weight: 500; }
.picker { display: grid; grid-template-columns: repeat(8, minmax(0, 42px)); justify-content: space-between; gap: 6px; }
.pick { border-radius: 50%; aspect-ratio: 1; box-shadow: 0 0 0 0 var(--blue); transition: transform 0.35s var(--ease), box-shadow 0.25s; }
.pick img { width: 100%; height: 100%; border-radius: 50%; }
.pick:hover { transform: translateY(-2px); }
.pick[aria-checked="true"] { box-shadow: 0 0 0 2.5px var(--blue); }
.made { font-size: 14px; color: var(--ink-2); min-height: 1.4em; }
.made b { color: var(--ink); }
.cta-art { position: relative; justify-self: center; width: min(100%, 640px); }
.cta-art img { width: 100%; animation: bob 6s ease-in-out infinite; }
/* the closing line is the page's voice */
.cta-quote { margin-top: 12px; text-align: center; font-size: clamp(19px, 1.7vw, 26px); font-style: italic; font-weight: 300; line-height: 1.3; letter-spacing: -0.01em; color: var(--ink-2); }

/* while the night scene sits behind them, the glass navs stay light so their labels stay crisp */
.is-night-scene .glass__tint { background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.64)); transition: background 0.6s; }

/* ==========================================================================
   Next case — the same project intro the homepage uses
   ========================================================================== */
.next { padding-block: clamp(72px, 9vw, 120px) 0; background: var(--sheet); }
.next .wrap { max-width: calc(1200px + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 5vw, 80px); align-items: start; }
.next-tag { padding-top: 14px; border-top: 1px solid var(--line); font: 400 15px/1.3 var(--font-sans); color: var(--ink-2); }
.next .project { --accent: #0052FF; max-width: 720px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1179px) { .deck { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

@media (max-width: 1023px) {
  .when-grid { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; align-content: stretch; gap: 14px; }
  .when-copy { display: contents; }
  .when-copy .sec-head { grid-row: 1; }
  .when-stage { grid-row: 2; height: 100%; justify-content: flex-start; }
  .when-lower { grid-row: 3; }
  .window { width: 80%; font-size: clamp(8px, 1.55vw, 12px); }
  .token { width: 28%; bottom: 2%; }
  .beats li:not(:has(.is-on)) { display: none; }
  .entry { display: none; }
  .why-grid { grid-template-columns: 1fr; }
  .how-stage { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; gap: 14px 16px; }
  .acard { width: min(100%, 240px); padding: 14px; }
  .acard.left { grid-column: 1; grid-row: 1; }
  .acard.right { grid-column: 2; grid-row: 1; }
  .how-center { grid-column: 1 / -1; grid-row: 2; min-height: 250px; }
  .cta-inner { grid-template-columns: 1fr; grid-template-rows: auto auto; align-content: center; }
  .cta-art { width: min(80%, 420px); order: -1; }
  .cta-quote { display: none; }
}
@media (min-width: 1024px) { .when-lower { display: contents; } }

@media (max-width: 819px) {
  .next .wrap { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 759px) {
  .hero { --rw: 58px; }
  .rt[data-m="0"] { display: none; }
  .hero-copy { max-width: 300px; gap: 16px; }
  .sobi h1 { font-size: 40px; }
  .lede { font-size: 15px; }
  .hero .cta-row .text-link { display: none; }
  .deck { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(-1 * var(--s-gutter)); padding: 8px var(--s-gutter) 16px; gap: 14px; scrollbar-width: none; }
  .deck::-webkit-scrollbar { display: none; }
  .pc { flex: 0 0 min(72vw, 280px); scroll-snap-align: center; }
  .who-head { flex-direction: column; align-items: flex-start; }
  .filters { overflow-x: auto; max-width: 100%; }
  .versus { grid-template-columns: 1fr; }
  .log li { grid-template-columns: 20px 92px 1fr; font-size: 13px; padding: 6px 4px; }
  .how .sub { display: none; }
  .how-stage { padding-top: 44px; }
  .acard { padding: 10px; gap: 6px; border-radius: 20px; }
  .acard .d, .acard .badge { display: none; }
  .acard h3 { font-size: 14px; }
  .acard .ac-av { width: 52px; }
  .st { font-size: 12px; }
  .hs { padding: 14px; }
  .opt { padding: 7px 8px; }
  .packet { font-size: 11px; padding: 5px 10px 5px 5px; }
  .how-rail button { padding: 5px 7px; font-size: 11px; }
  .how-rail button:not(.is-on) .l { display: none; }
  .when .sub { display: none; }
  .picker { grid-template-columns: repeat(8, 1fr); gap: 4px; }
  .sobi .cta-copy h2 { font-size: 36px; }
  .how-center .hs { top: 0; transform: translateY(10px) scale(0.97); }
  .how-center .hs.is-on { transform: none; }
  .ap .n, .opt span { display: none; }
  .runs { display: none; }
}
@media (max-height: 700px) and (max-width: 1023px) { .how .sub, .when .sub { display: none; } }

/* static, stacked page without motion */
html:not(.motion) .when, html:not(.motion) .how, html:not(.motion) .cta { height: auto; min-height: 100svh; }
html:not(.motion) .when-grid, html:not(.motion) .how-inner { min-height: 100svh; }
html:not(.motion) .when-stage { height: auto; min-height: 440px; }
html:not(.motion) .cta-panel { position: relative; min-height: 100svh; }
