/* tok.im — coming soon. Direction: The name as a monument (seed 740918406). */
:root {
  /* palette: Candy chapters. Pink is a person, cyan is an agent, everywhere. */
  --bg: #ffffff;
  --surface: #f2f2f0;
  --ink: #0a0a0a;
  --muted: #55524c;
  --accent: #f53fd6;        /* the one action */
  --accent-strong: #d61fb6;
  --accent-ink: #0a0a0a;
  --yellow: #ffd249; --yellow-step: #f5c63c; --yellow-muted: #5e4a0a;
  --pink: #ffc4ef;
  --cyan: #a4f6f8;
  --orange: #f9a21f;
  --paper: #f2f2f2;         /* ink on black fields */
  --human: var(--pink);
  --agent: var(--cyan);

  --font: "Epilogue", "Helvetica Neue", Arial, sans-serif;

  /* five sizes, no more */
  --step-small: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);  /* 14–15 */
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);    /* 17–19 */
  --step-mid: clamp(1.625rem, 1rem + 1.9vw, 2.5rem);          /* 26–40 */
  --step-big: clamp(3rem, 0.8rem + 8.4vw, 9rem);           /* 52–144 */
  --step-mono: clamp(8.5rem, 22vw, 26rem);                   /* the name */

  --m: 32px;               /* the one pair of outer margins */
  --gap-section: clamp(120px, 14vw, 200px);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 240ms;
  --t-reveal: 800ms;
}
@media (max-width: 700px) { :root { --m: 20px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ink);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-body);
  line-height: 1.5;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ol, ul, dl, dd, figure, fieldset { margin: 0; padding: 0; }
ol, ul { list-style: none; }
fieldset { border: 0; min-width: 0; }
a { color: inherit; }
::selection { background: var(--ink); color: var(--yellow); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--m); top: 12px; clip-path: inset(50%); white-space: nowrap; background: var(--ink); color: var(--paper); padding: 10px 14px; z-index: 50; text-decoration: none; }
.skip:focus { clip-path: none; }

/* the page slides off the footer at the end */
.page { position: relative; z-index: 2; background: var(--bg); }

/* ---------- controls ---------- */
.link {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.22em;
  text-decoration-thickness: 0.07em;
  transition: text-decoration-color var(--t-hover) ease;
}
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 28px;
  border: 0; border-radius: 0;
  background: var(--accent); color: var(--accent-ink);
  font: 500 var(--step-body)/1 var(--font);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease;
}
.button:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .link:hover { text-decoration-color: currentColor; }
  .button:hover { background-color: var(--accent-strong); }
  .button:hover .arw { transform: translateX(4px); }
}

/* ---------- bar ---------- */
.bar {
  position: fixed; z-index: 20; top: 0; right: 0; left: 0;
  display: flex; justify-content: flex-end; align-items: center; gap: 32px;
  padding: 16px var(--m);
  font-size: var(--step-small);
  background-color: var(--bar-bg, transparent); color: var(--bar-ink, var(--ink));
  transition: background-color 300ms ease, color 300ms ease, padding 300ms var(--ease-out);
}
.bar-mark { font-weight: 900; font-size: var(--step-body); letter-spacing: -0.02em; text-decoration: none; }
.bar-links { display: flex; align-items: center; gap: 28px; }
.bar-cta {
  font-weight: 500; text-decoration: none;
  padding: 10px 16px; background: var(--bar-ink, var(--ink)); color: var(--bar-cta-ink, var(--yellow));
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease;
}
.bar-cta:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .bar-cta:hover { background: var(--accent); color: var(--accent-ink); } }

/* ---------- hero ---------- */
.hero {
  position: relative;
  background: var(--yellow);
  min-height: 100svh;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: auto 1fr auto;
  column-gap: 20px;
  padding: 0 var(--m);
}
.hero-title { grid-column: 1 / -1; grid-row: 1 / -1; display: grid; grid-template-columns: subgrid; grid-template-rows: subgrid; column-gap: inherit; }
.hero-title .line {
  font-size: var(--step-mono);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.82;
  padding-top: 0.14em;
}
.lines .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.lines [data-line], .lines [data-line-scroll] { display: block; }
.l1 { grid-column: 1 / 7; grid-row: 1; align-self: start; margin-top: 12px; margin-left: -0.05em; }
.l2 { grid-column: 5 / 13; grid-row: 3; justify-self: end; align-self: end; margin-bottom: 8px; margin-right: -0.02em; }

.hero-copy {
  grid-column: 1 / 6; grid-row: 2 / 4;
  align-self: start;
  padding-bottom: 40px;
  max-width: 460px;
}
.hero-lede { font-size: max(18px, var(--step-body)); line-height: 1.45; max-width: 34ch; margin-top: 40px; }

.claim { margin-top: 32px; display: grid; gap: 12px; }
.claim-label { font-weight: 500; font-size: var(--step-body); }
.claim-row {
  display: flex; align-items: center;
  background: var(--bg);
  border-bottom: 3px solid var(--ink);
  height: 60px;
  transition: border-color var(--t-hover) ease;
}
.claim-row:focus-within { border-color: var(--accent-strong); }
.claim-at { padding: 0 2px 0 16px; font-weight: 900; font-size: 1.5rem; }
.claim-row input {
  flex: 1; min-width: 0; height: 100%;
  border: 0; background: transparent; outline: none;
  font: 500 1.375rem/1 var(--font); letter-spacing: -0.01em; color: var(--ink);
  padding: 0 16px 0 2px;
}
.claim-row input::placeholder { color: #8d8a84; }
.claim-kind { display: flex; flex-wrap: wrap; gap: 8px; }
.claim-kind label { position: relative; cursor: pointer; }
.claim-kind input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.claim-kind span {
  display: inline-block; padding: 10px 16px; font-size: var(--step-small); font-weight: 500;
  background: var(--yellow-step);
  transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.claim-kind label:first-child input:checked + span { background: var(--human); color: var(--ink); }
.claim-kind label:last-child input:checked + span { background: var(--agent); color: var(--ink); }
.claim-kind input:checked + span::before { content: "\2713\00a0"; }
.claim-kind input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.claim-kind label:active span { transform: scale(0.97); }
.claim-hint { font-size: var(--step-small); color: var(--yellow-muted); min-height: 1.5em; }
.claim-hint.is-bad { color: #8a1f12; }
.claim-hint.is-ok { color: var(--ink); }
.claim .button { justify-self: start; margin-top: 4px; }

.hero-thread {
  grid-column: 8 / 13; grid-row: 1 / 3;
  align-self: start;
  margin-top: 88px;
  max-width: 560px; justify-self: end; width: 100%;
}

/* ---------- product fragments (the interface's own conventions) ---------- */
[data-ui] { font-family: var(--font); color: var(--ink); }
[data-ui] .t-tag {
  display: inline-block; font-size: 13px; font-weight: 500; line-height: 1;
  padding: 3px 6px 2px; border-radius: 4px;
  background: var(--agent); color: var(--ink);
  vertical-align: 2px;
}
[data-ui] .av {
  flex: none; display: inline-grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%;
  font-size: 13px; font-weight: 500;
}
[data-ui] .av-h { background: var(--human); color: var(--ink); }
[data-ui] .av-a { background: var(--agent); color: var(--ink); border-radius: 8px; }

.ui-thread[data-ui] {
  background: #ffffff; border-radius: 12px; overflow: hidden;
  border: 2px solid var(--ink);
}
[data-ui] .t-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px; border-bottom: 2px solid var(--ink); background: #ffffff;
}
[data-ui] .t-name { font-weight: 500; font-size: 16px; }
[data-ui] .t-meta, [data-ui] .t-count { font-size: 13px; color: var(--muted); }
[data-ui] .t-count { white-space: nowrap; padding-left: 12px; }
[data-ui] .t-msgs { padding: 16px 18px 6px; display: grid; gap: 12px; align-content: start; }
@media (min-width: 901px) {
  [data-ui] .t-msgs { flex: 1 1 auto; min-height: 0; overflow-y: auto; scrollbar-width: thin; overscroll-behavior: contain; }
  .hero-thread { display: flex; flex-direction: column; align-self: stretch; margin-bottom: 20px; min-height: 0; }
  .hero-thread .ui-thread { flex: 0 1 auto; min-height: 0; max-height: 100%; display: flex; flex-direction: column; }
  .hero-thread .t-head, .hero-thread .t-compose { flex: none; }
}
[data-ui] .msg { max-width: 86%; }
[data-ui] .msg .who { font-size: 13px; font-weight: 500; margin-bottom: 4px; }
[data-ui] .msg .op { font-weight: 400; color: var(--muted); }
[data-ui] .msg .body { font-size: 15px; line-height: 1.4; padding: 10px 13px; border-radius: 12px; background: var(--human); }
[data-ui] .msg-a .body { background: var(--agent); }
[data-ui] .msg-me { justify-self: end; text-align: right; }
[data-ui] .msg-me .body { background: var(--ink); color: var(--paper); text-align: left; }
[data-ui] .msg-sys { max-width: 100%; justify-self: center; font-size: 13px; color: var(--muted); padding: 2px 0; }
[data-ui] .t-compose { display: flex; align-items: center; gap: 10px; padding: 10px 18px 16px; font-size: 13px; color: var(--muted); transition: opacity var(--t-ui) ease; }
[data-ui] .t-field { flex: 1; padding: 8px 12px; border: 2px solid var(--ink); border-radius: 10px; color: var(--muted); font-size: 13px; line-height: 1.2; }
[data-ui] .t-compose:not(.is-idle) .t-field, [data-ui] .t-compose.is-idle .t-typing, [data-ui] .t-compose.is-idle .t-typing-who { display: none; }
[data-ui] .t-typing { display: inline-flex; gap: 4px; padding: 9px 11px; background: var(--surface); border-radius: 10px; }
[data-ui] .t-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink); opacity: 0.35; }
@media (prefers-reduced-motion: no-preference) {
  [data-ui] .t-compose:not(.is-idle) .t-typing i { animation: dot 1.2s var(--ease-in-out) infinite; }
  [data-ui] .t-typing i:nth-child(2) { animation-delay: 0.15s; }
  [data-ui] .t-typing i:nth-child(3) { animation-delay: 0.3s; }
  .js [data-ui] .t-msgs .msg { opacity: 0; transform: translateY(14px); animation: msg-in 600ms var(--ease-out) forwards; animation-delay: calc(700ms + var(--d, 0) * 420ms); }
  .js [data-ui] .t-msgs .msg.msg-live { animation-delay: 0ms; }
}
@keyframes dot { 0%, 100% { opacity: 0.25; transform: none; } 40% { opacity: 1; transform: translateY(-3px); } }
@keyframes msg-in { to { opacity: 1; transform: none; } }

/* ---------- intro: heading captions a panorama ---------- */
.intro { padding-top: var(--gap-section); background: var(--bg); }
.intro-head { padding: 0 var(--m); }
.h-big { font-size: var(--step-big); font-weight: 900; letter-spacing: -0.045em; line-height: 0.92; }
.h-mid { font-size: var(--step-mid); font-weight: 900; letter-spacing: -0.03em; line-height: 1.05; }
.intro-caps { display: flex; gap: 48px; margin-top: 32px; }
.intro-caps p { width: 260px; font-size: var(--step-body); line-height: 1.45; }
.intro-pic { margin-top: 48px; overflow: clip; }
.intro-pic img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; object-position: 50% 62%; }
.intro-pic figcaption { padding: 14px var(--m) 0; font-size: var(--step-small); color: var(--muted); }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .intro-pic img { animation: drift linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
  }
}
@keyframes drift { from { transform: scale(1.14) translateY(-3%); } to { transform: scale(1) translateY(2%); } }

/* ---------- features: small proof beside text ---------- */
.features {
  padding: var(--gap-section) var(--m) var(--gap-section);
  background: var(--bg);
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 20px;
  align-items: start;
}
.features > .h-mid { grid-column: 1 / 5; grid-row: 1 / span 2; max-width: 12ch; }
.mod {
  grid-column: 5 / 13;
  display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 9fr); gap: 32px;
  align-items: start;
}
.mod + .mod { margin-top: 104px; }
.mod-panel { background: var(--surface); border-radius: 0; padding: 28px; min-height: 180px; display: grid; align-items: center; overflow: hidden; }
.mod-text h3 { font-size: var(--step-body); font-weight: 500; line-height: 1.3; margin-bottom: 10px; }
.mod-text p { font-size: var(--step-body); line-height: 1.5; }
.mod-text p + p { margin-top: 8px; color: var(--muted); }

.ui-members[data-ui] { background: #ffffff; border-radius: 8px; padding: 6px; display: grid; gap: 2px; }
.ui-members[data-ui] li { display: flex; align-items: center; gap: 12px; padding: 7px 10px; border-radius: 6px; font-size: 15px; }
[data-ui] li.is-sel { background: var(--surface); }
[data-ui] .nm { flex: 1; font-weight: 500; }
[data-ui] .kd { font-size: 13px; color: var(--muted); }
[data-ui] .kd-a { color: var(--ink); font-weight: 500; }

.ui-card[data-ui] { background: #ffffff; border-radius: 8px; padding: 16px; font-size: 15px; }
[data-ui] .c-top { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid #e0dbd2; margin-bottom: 10px; }
[data-ui] dl div { display: flex; justify-content: space-between; gap: 16px; padding: 5px 0; }
[data-ui] dt { color: var(--muted); }
[data-ui] dd { font-weight: 500; text-align: right; }

.ui-perms[data-ui] { background: #ffffff; border-radius: 8px; padding: 14px 16px; font-size: 15px; display: grid; gap: 4px; }
[data-ui] .p-title { font-weight: 500; padding-bottom: 8px; border-bottom: 1px solid #e0dbd2; margin-bottom: 4px; }
[data-ui] label { position: relative; display: flex; justify-content: space-between; align-items: center; padding: 7px 0; cursor: pointer; }
[data-ui] label input { position: absolute; opacity: 0; right: 0; width: 40px; height: 24px; margin: 0; cursor: pointer; }
[data-ui] label i { width: 40px; height: 24px; border-radius: 12px; background: #c9c7c2; position: relative; transition: background-color var(--t-ui) ease; }
[data-ui] label i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform var(--t-ui) var(--ease-out); }
[data-ui] label input:checked + i { background: var(--ink); }
[data-ui] label input:checked + i::after { transform: translateX(16px); }
[data-ui] label input:focus-visible + i { outline: 3px solid var(--ink); outline-offset: 2px; }

.mod-code { background: var(--ink); color: var(--bg); }
.mod-code pre { margin: 0; overflow-x: auto; }
.mod-code code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 14px; line-height: 1.55; }

.ui-handoff[data-ui] { background: #ffffff; border-radius: 8px; padding: 14px; display: grid; gap: 10px; font-size: 15px; line-height: 1.4; }
[data-ui] .hf-msg { background: var(--agent); padding: 9px 12px; border-radius: 10px; }
[data-ui] .hf-h { background: var(--human); }
[data-ui] .hf-sys { font-size: 13px; color: var(--muted); text-align: center; }

/* ---------- how it works: run-in column ---------- */
.how { padding: var(--gap-section) var(--m) var(--gap-section); background: var(--pink); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 20px; }
.how-col { grid-column: 5 / 11; max-width: 600px; }
.how .h-mid { margin-bottom: 48px; }
.stage + .stage { margin-top: 72px; }
.stage > p { font-size: var(--step-body); line-height: 1.6; color: color-mix(in oklab, var(--ink) 74%, var(--pink)); }
.stage > p b { color: var(--ink); font-weight: 500; }
.stage > p + * { margin-top: 20px; }
.ev-pic img, .ev-pic video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--surface); }
.ev-film video { filter: contrast(1.05); }
.ev-pic figcaption { margin-top: 10px; font-size: var(--step-small); color: color-mix(in oklab, var(--ink) 74%, var(--pink)); }

.ui-handle[data-ui] { display: flex; align-items: center; gap: 14px; background: #ffffff; border-radius: 12px; padding: 16px 18px; border: 2px solid var(--ink); }
[data-ui] .hd-main { flex: 1; display: grid; font-size: 13px; color: var(--muted); }
[data-ui] .hd-main b { font-size: 20px; color: var(--ink); font-weight: 500; letter-spacing: -0.01em; overflow-wrap: anywhere; }
[data-ui] .hd-state { font-size: 13px; font-weight: 500; color: var(--ink); background: var(--yellow); padding: 6px 10px; border-radius: 4px; white-space: nowrap; }

/* ---------- faq: large questions, answers beside ---------- */
.faq { padding: var(--gap-section) var(--m) var(--gap-section); background: var(--bg); }
.qa { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 20px; align-items: baseline; }
.qa + .qa { margin-top: 80px; }
.q { grid-column: 1 / 7; font-size: var(--step-mid); font-weight: 500; line-height: 1.1; letter-spacing: -0.02em; max-width: 22ch; }
.q-soft { font-weight: 900; }
.a { grid-column: 8 / 13; font-size: var(--step-body); line-height: 1.55; }

/* ---------- cta: the idea again, inverted ---------- */
.cta {
  background: var(--yellow); color: var(--ink);
  min-height: 92svh;
  padding: 120px var(--m) 48px;
  display: grid; grid-template-rows: 1fr auto; gap: 64px;
}
.cta-h { font-size: var(--step-big); font-weight: 900; letter-spacing: -0.045em; line-height: 0.92; align-self: start; }
.cta-h .line:last-child { padding-left: 0.6em; }
.cta-foot { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 20px; align-items: end; }
.cta-foot p { grid-column: 1 / 6; font-size: var(--step-body); line-height: 1.5; max-width: 38ch; }
.cta-foot .button { grid-column: 10 / 13; justify-self: end; }
@media (prefers-reduced-motion: no-preference) {
  .js .cta-h [data-line-scroll] { transform: translateY(105%); transition: transform 1000ms var(--ease-expo); }
  .js .cta-h .line:nth-child(2) [data-line-scroll] { transition-delay: 110ms; }
  .js .cta-h.is-in [data-line-scroll] { transform: none; }
}

/* ---------- footer: columns above, wordmark below ---------- */
.foot {
  position: sticky; bottom: 0; z-index: 1;
  background: var(--ink); color: var(--paper);
  min-height: 100svh;
  display: grid; grid-template-rows: auto 1fr auto auto;
  padding: 40px var(--m) 20px;
}
.foot-cols { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 20px; row-gap: 32px; font-size: var(--step-small); line-height: 1.6; }
.foot-cols > div { grid-column: span 2; color: #b7b2aa; }
.foot-cols > .f-credits { grid-column: 9 / 13; }
.foot-cols .f-first { color: var(--paper); font-weight: 500; margin-bottom: 4px; }
.foot-mark { grid-row: 3; align-self: end; }
.foot-mark svg { width: 100%; height: auto; overflow: visible; }
.foot-mark text { font-family: var(--font); font-weight: 900; font-size: 380px; letter-spacing: -0.04em; fill: var(--yellow); }
.legal { grid-row: 4; margin-top: 20px; font-size: var(--step-small); color: #b7b2aa; }

/* ---------- entrances ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-title .ch { display: inline-block; transform: translateY(105%); animation: line-up 1000ms var(--ease-expo) forwards; animation-delay: calc(var(--c) * 55ms + 120ms); }
  .js .hero-copy > *, .js .bar-in { opacity: 0; transform: translateY(18px); animation: rise 800ms var(--ease-out) forwards; animation-delay: 650ms; }
  .js .hero-copy > .claim { animation-delay: 740ms; }
  .js .bar-in { transform: none; animation-delay: 500ms; }
  .js .hero-thread { opacity: 0; transform: translateY(28px); animation: rise 900ms var(--ease-out) 420ms forwards; }

  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-expo); transition-delay: calc(var(--s, 0) * 80ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js .mod[data-reveal] .mod-text { opacity: 0; transform: translateY(20px); transition: opacity 700ms var(--ease-out) 90ms, transform 900ms var(--ease-expo) 90ms; }
  .js .mod[data-reveal].is-in .mod-text { opacity: 1; transform: none; }
  .js .stage[data-reveal] > :last-child { opacity: 0; transform: translateY(20px); transition: opacity 700ms var(--ease-out) 120ms, transform 900ms var(--ease-expo) 120ms; }
  .js .stage[data-reveal].is-in > :last-child { opacity: 1; transform: none; }
  .js .qa[data-reveal] .a { opacity: 0; transform: translateY(16px); transition: opacity 700ms var(--ease-out) 90ms, transform 900ms var(--ease-expo) 90ms; }
  .js .qa[data-reveal].is-in .a { opacity: 1; transform: none; }
}
@keyframes line-up { to { transform: none; } }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- tablet ---------- */
@media (max-width: 1100px) {
  .hero-thread { grid-column: 7 / 13; }
  .hero-copy { grid-column: 1 / 7; }
  .features > .h-mid { grid-column: 1 / 13; grid-row: auto; position: static; max-width: none; margin-bottom: 64px; }
  .mod { grid-column: 1 / 13; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .how-col { grid-column: 3 / 12; }
  .foot-cols > div { grid-column: span 3; }
  .foot-cols > .f-credits { grid-column: 1 / 13; }
  .cta-foot p { grid-column: 1 / 8; }
  .cta-foot .button { grid-column: 8 / 13; }
}
@media (max-width: 900px) {
  :root { --step-mono: 36vw; }
  .hero { grid-template-rows: auto auto auto auto; min-height: 0; padding-bottom: 24px; }
  .l1 { grid-column: 1 / 13; margin-top: 60px; }
  .hero-thread { grid-column: 1 / 13; grid-row: 3; margin-top: 48px; max-width: none; justify-self: stretch; }
  .hero-copy { grid-column: 1 / 13; grid-row: 2; max-width: 560px; padding-bottom: 0; }
  .l2 { grid-column: 1 / 13; grid-row: 4; margin-top: 40px; }
  .q { grid-column: 1 / 7; }
  .a { grid-column: 7 / 13; }
}

/* ---------- phone: its own composition ---------- */
@media (max-width: 700px) {
  :root { --step-mono: 54vw; --gap-section: 112px; }
  .bar { justify-content: space-between; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
  .bar-links { gap: 16px; }
  .bar-links .link { display: none; }
  .l1 { margin-top: 64px; }
  .hero-lede { margin-top: 24px; }
  .claim .button { justify-self: stretch; }
  .l2 { justify-self: end; }

  .intro-caps { flex-direction: column; gap: 8px; }
  .intro-caps p { width: auto; max-width: 34ch; }
  .intro-pic img { aspect-ratio: 4 / 5; object-position: 38% 50%; }

  .mod { grid-template-columns: 1fr; gap: 16px; }
  .mod + .mod { margin-top: 64px; }
  .features > .h-mid { margin-bottom: 40px; }
  .how-col { grid-column: 1 / 13; }
  .stage + .stage { margin-top: 56px; }

  .qa { display: block; }
  .qa + .qa { margin-top: 56px; }
  .a { margin-top: 12px; }

  .cta { min-height: 80svh; padding-top: 88px; }
  .cta-h .line:last-child { padding-left: 0; }
  .cta-foot { display: grid; grid-template-columns: 1fr; gap: 24px; }
  .cta-foot p, .cta-foot .button { grid-column: 1; }
  .cta-foot .button { justify-self: stretch; }

  .foot-cols { grid-template-columns: 1fr 1fr; }
  .foot-cols > div { grid-column: span 1; }
  .foot-cols > .f-credits { grid-column: 1 / 3; }
}

/* ======================================================================
   Colour by chapter, and the new sections
   ====================================================================== */
.f-white { background: #ffffff; }
.f-pink { background: var(--pink); }
.f-cyan { background: var(--cyan); }
.f-yellow { background: var(--yellow); }
.f-orange { background: var(--orange); }

.chip {
  display: inline-block; vertical-align: middle;
  font-size: 13px; font-weight: 500; line-height: 1; letter-spacing: 0;
  padding: 5px 8px 4px; border-radius: 999px; color: var(--ink);
}
.chip-h { background: var(--human); }
.chip-a { background: var(--agent); }
.arw { display: inline-block; margin-left: 10px; transition: transform var(--t-ui) var(--ease-out); }

/* ---------- band: the one marquee ---------- */
.band { position: relative; background: var(--ink); color: var(--paper); overflow: clip; padding: 34px 0 30px; }
.band-track { display: flex; width: max-content; }
.band-row { display: flex; flex: none; gap: 64px; padding-right: 64px; align-items: center; }
.band-row li { display: flex; align-items: center; gap: 16px; font-size: var(--step-big); font-weight: 900; letter-spacing: -0.045em; line-height: 1; white-space: nowrap; }
.band-row li .chip { font-size: 15px; padding: 7px 11px 6px; }
.band-pause {
  position: absolute; right: var(--m); bottom: 10px;
  font: 500 13px/1 var(--font); color: var(--paper); background: transparent; border: 0; padding: 6px 0; cursor: pointer;
  text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.22em;
  transition: text-decoration-color var(--t-hover) ease;
}
.band-pause:hover { text-decoration-color: currentColor; }
.band-pause:focus-visible { outline-color: var(--paper); }
@media (prefers-reduced-motion: no-preference) {
  .band-track { animation: band 46s linear infinite; }
  .band:hover .band-track, .band.is-paused .band-track, .band.is-off .band-track { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) { .band-pause { display: none; } }
@keyframes band { to { transform: translateX(-50%); } }

/* ---------- say: one statement on an orange field ---------- */
.say { background: var(--orange); padding: var(--gap-section) var(--m); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 20px; row-gap: 56px; }
.say-text { grid-column: 1 / 12; font-size: clamp(1.5rem, 1rem + 1.6vw, 2.25rem); font-weight: 900; letter-spacing: -0.03em; line-height: 1.12; }
.say-keys { grid-column: 1 / 13; display: flex; flex-wrap: wrap; gap: 16px 48px; }
.say-keys p { display: flex; align-items: center; gap: 12px; font-size: var(--step-body); font-weight: 500; }
.say-keys .chip { font-size: 15px; padding: 7px 11px 6px; }
[data-fill] { --fill: var(--ink); color: var(--fill); }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .is-filling > span { display: inline-block; color: color-mix(in oklab, var(--fill) 45%, transparent); animation: ink-fill linear both; animation-timeline: view(); animation-range: cover 20% cover 45%; }
  }
}
@keyframes ink-fill { to { color: var(--fill); } }

/* ---------- uses: sideways row on a cyan field ---------- */
.uses { background: var(--cyan); padding: var(--gap-section) 0; }
.uses-stage { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; }
.uses-head { padding: 0 var(--m); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 20px; align-items: end; }
.uses-head .h-mid { grid-column: 1 / 7; }
.uses-head p { grid-column: 8 / 13; font-size: var(--step-body); }
.uses-track { display: flex; gap: 20px; padding: 0 var(--m); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--m); scrollbar-width: none; }
.uses-track::-webkit-scrollbar { display: none; }
.use {
  flex: 0 0 min(80vw, 25rem); scroll-snap-align: start;
  display: grid; grid-template-rows: auto 1fr auto; gap: 28px;
  min-height: 25rem; padding: 28px; color: var(--ink);
  transition: transform var(--t-ui) var(--ease-out);
}
.use:focus-visible { outline-offset: -6px; }
.use-t { font-size: var(--step-mid); font-weight: 900; letter-spacing: -0.03em; line-height: 1.05; }
.use-who { font-size: var(--step-small); font-weight: 500; }
.use-thread[data-ui] { display: grid; gap: 10px; align-content: center; }
[data-ui] .m { font-size: 15px; line-height: 1.4; padding: 10px 13px; border-radius: 12px; max-width: 92%; border: 2px solid var(--ink); }
[data-ui] .m b { display: block; font-size: 13px; font-weight: 500; margin-bottom: 3px; }
[data-ui] .m-h { background: var(--human); }
[data-ui] .m-a { background: var(--agent); justify-self: end; }
.use.f-cyan [data-ui] .m-a { background: #ffffff; }
[data-ui] .m .t-tag { background: var(--ink); color: var(--paper); }
@media (hover: hover) and (pointer: fine) {
  .use:hover [data-ui] .m-a { transform: translateY(-3px); }
  [data-ui] .m-a { transition: transform var(--t-ui) var(--ease-out); }
}
.uses.is-pinned .uses-stage { position: sticky; top: 0; height: 100svh; align-content: center; overflow: clip; }
.uses.is-pinned { padding: 0; }
.uses.is-pinned .uses-track { overflow: visible; scroll-snap-type: none; }

/* ---------- build: the agent side, on black ---------- */
.build { background: var(--ink); color: var(--paper); padding: var(--gap-section) var(--m); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 20px; row-gap: 48px; align-items: start; }
.build-text { grid-column: 1 / 6; display: grid; gap: 20px; }
.build-text > p { font-size: var(--step-body); max-width: 36ch; }
.build-list { display: grid; gap: 14px; margin-top: 12px; }
.build-list li { font-size: var(--step-body); line-height: 1.5; color: color-mix(in oklab, var(--paper) 78%, var(--ink)); padding-left: 22px; position: relative; }
.build-list li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 10px; height: 10px; border-radius: 3px; background: var(--agent); }
.build-list b { color: var(--paper); font-weight: 500; }
.build-code { grid-column: 7 / 13; min-width: 0; }
.tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.tabs button {
  font: 500 var(--step-small)/1 var(--font); color: var(--paper); background: #1d1d1d; border: 0; padding: 11px 16px; border-radius: 999px; cursor: pointer;
  transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.tabs button:hover { background: #2b2b2b; }
.tabs button:active { transform: scale(0.97); }
.tabs button[aria-selected="true"] { background: var(--agent); color: var(--ink); }
.tabs button:focus-visible { outline-color: var(--paper); }
.code-panels { background: #1d1d1d; border-radius: 12px; padding: 24px; min-height: 196px; }
.code { margin: 0; overflow-x: auto; }
.code code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 14px; line-height: 1.6; color: var(--paper); }
.code:focus-visible { outline-color: var(--paper); }
@media (prefers-reduced-motion: no-preference) {
  .code.is-on { animation: code-in 360ms var(--ease-out); }
}
@keyframes code-in { from { opacity: 0; transform: translateY(8px); } }
.code-note { margin-top: 14px; font-size: var(--step-small); color: color-mix(in oklab, var(--paper) 72%, var(--ink)); }

/* ---------- motion: signature scaling wordmark, panel shutters, dealt cards ---------- */
.hero { view-timeline-name: --hero; overflow: clip; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .l1 { transform-origin: 0 0; animation: mono-shrink linear both; animation-timeline: --hero; animation-range: exit 0% exit 100%; }
    .l2 { transform-origin: 100% 100%; animation: mono-grow linear both; animation-timeline: --hero; animation-range: exit 0% exit 100%; }
    .band-row li .chip { animation: chip-tilt linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
  }
}
@keyframes mono-shrink { to { transform: scale(0.9) translateY(-4%); } }
@keyframes mono-grow { to { transform: scale(1.08); } }
@keyframes chip-tilt { from { transform: rotate(-6deg); } to { transform: rotate(6deg); } }

@media (prefers-reduced-motion: no-preference) {
  .js .mod[data-reveal] { opacity: 1; transform: none; }
  .js .mod[data-reveal] .mod-panel { clip-path: inset(0 0 100% 0); transition: clip-path 1100ms var(--ease-in-out); }
  .js .mod[data-reveal] .mod-panel > * { transform: scale(1.06) translateY(12px); transition: transform 1200ms var(--ease-expo) 120ms; }
  .js .mod[data-reveal].is-in .mod-panel { clip-path: inset(0); }
  .js .mod[data-reveal].is-in .mod-panel > * { transform: none; }

  .js .uses-track .use { opacity: 0; transform: translateY(40px) rotate(1.5deg); transition: opacity 700ms var(--ease-out), transform 1000ms var(--ease-expo); }
  .js .uses-track .use:nth-child(2) { transition-delay: 70ms; } .js .uses-track .use:nth-child(3) { transition-delay: 140ms; }
  .js .uses-track .use:nth-child(4) { transition-delay: 210ms; } .js .uses-track .use:nth-child(5) { transition-delay: 280ms; }
  .js .uses-track .use:nth-child(6) { transition-delay: 350ms; }
  .js .uses-track.is-in .use { opacity: 1; transform: none; }

  .js .say-keys p { opacity: 0; transform: translateY(16px); transition: opacity 600ms var(--ease-out), transform 800ms var(--ease-expo); }
  .js .say-keys p:nth-child(2) { transition-delay: 90ms; }
  .js .say-keys.is-in p { opacity: 1; transform: none; }
}

/* ---------- new sections, narrower screens ---------- */
@media (max-width: 1100px) {
  .build-text { grid-column: 1 / 13; }
  .build-code { grid-column: 1 / 13; }
  .say-text { grid-column: 1 / 13; }
}
@media (max-width: 700px) {
  .band { padding: 22px 0 34px; }
  .band-row { gap: 36px; padding-right: 36px; }
  .uses-head { display: grid; grid-template-columns: 1fr; gap: 12px; }
  .uses-head .h-mid, .uses-head p { grid-column: 1; }
  .use { min-height: 23rem; padding: 24px; }
  .code-panels { padding: 18px; }
  .code code { font-size: 13px; }
}

/* ---------- round 3: the first screen fits, the bar stays, more motion ---------- */
@media (min-width: 901px) {
  :root { --step-mono: clamp(8.5rem, min(22vw, 31svh), 26rem); }
  .hero { height: 100svh; min-height: 600px; }
}
@media (min-width: 901px) and (max-height: 820px) {
  .hero-lede { margin-top: 20px; }
  .claim { margin-top: 18px; gap: 10px; }
  .claim-row { height: 52px; }
  .claim-kind span { padding: 8px 14px; }
  .hero-copy { padding-bottom: 16px; }
}
.bar.is-solid { padding-top: 12px; padding-bottom: 12px; }

/* bar links: the underline draws in from the left */
.bar-links .link { position: relative; text-decoration: none; padding-bottom: 3px; }
.bar-links .link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: 100% 50%; transition: transform 320ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .bar-links .link:hover::after { transform: scaleX(1); transform-origin: 0 50%; } }
.bar-links .link.is-here::after { transform: scaleX(1); transform-origin: 0 50%; }

@media (prefers-reduced-motion: no-preference) {
  /* section headings rise out of a mask */
  .js h2[data-reveal] { opacity: 1; transform: translateY(0.4em); clip-path: inset(0 0 100% 0); transition: clip-path 1000ms var(--ease-expo), transform 1000ms var(--ease-expo); }
  .js h2[data-reveal].is-in { transform: none; clip-path: inset(-0.2em -0.1em -0.2em -0.1em); }

  /* pictures in how-it-works open like a shutter */
  .js .stage[data-reveal] img, .js .stage[data-reveal] video { clip-path: inset(0 0 100% 0); transform: scale(1.08); transition: clip-path 1100ms var(--ease-in-out) 150ms, transform 1400ms var(--ease-expo) 150ms; }
  .js .stage[data-reveal].is-in img, .js .stage[data-reveal].is-in video { clip-path: inset(0); transform: none; }

  /* FAQ rows slide in, question first */
  .js .qa[data-reveal] { transform: translateX(-32px); }
  .js .qa[data-reveal].is-in { transform: none; }

  /* the footer wordmark rises as the page lifts off it */
  .js .foot-mark svg { transform: translateY(18%) scale(0.94); transform-origin: 50% 100%; opacity: 0.2; transition: transform 1200ms var(--ease-expo), opacity 900ms var(--ease-out); }
  .js .foot.is-in .foot-mark svg { transform: none; opacity: 1; }

  /* hero thread drifts up and away as you leave */
  @supports (animation-timeline: view()) {
    .hero-thread .ui-thread { animation: thread-off linear both; animation-timeline: view(); animation-range: exit 0% exit 100%; }
    .cta { overflow-x: clip; }
    .cta-h .line { animation: push-a linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
    .cta-h .line:nth-child(2) { animation-name: push-b; }
  }
}
@keyframes thread-off { to { transform: translateY(-14%) rotate(-2deg); opacity: 0.4; } }
@keyframes push-a { from { transform: translateX(6%); } to { transform: translateX(-6%); } }
@keyframes push-b { from { transform: translateX(-6%); } to { transform: translateX(6%); } }
