/* Agent Hub, the room. "The table": deep card-table green, the app's own card stock and ink laid on it,
   one red dot for what's urgent. Everything ivory is the app itself. */

/* The app's typeface. Same file as the rest of the site, so a visit from the board finds it cached. */
@font-face {
  font-family: "Host Grotesk AH";
  src: url("/assets/fonts/host-grotesk-latin.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* The agents' faces: monochrome Noto Emoji, drawn in ink like the app does. Only the faces on this page. */
@font-face {
  font-family: "Noto Emoji AH";
  src: url("/assets/worlds/fonts/noto-emoji-agent-hub.woff2") format("woff2");
  font-weight: 400;
  font-display: block;
  unicode-range: U+231A, U+2615, U+2708, U+1F3E0, U+1F4BC, U+1F4C8, U+1F4E6, U+1F4F0, U+1F52D;
}

:root {
  /* the table */
  --table: #163a2d;
  --chalk: #f1ece0;
  --text: #cfdbd2;
  --moss: #9db6a8;
  --hair: rgba(241, 236, 224, 0.13);

  /* the app's own tokens (app/globals.css) */
  --paper: #ede8df;
  --stock: #f6f2eb;
  --ink: #2a2520;
  --graphite: #7a7167;
  --rule: #d6cec1;
  --urgent: #d62d4c;
  --live: #3d8b5c;
  --card-shadow: 0 1px 1px rgb(42 37 32 / 0.04), 0 14px 32px -18px rgb(42 37 32 / 0.32);

  /* what the app's paper casts on the felt */
  --lay: 0 1px 1px rgb(4 18 12 / 0.28), 0 3px 6px -2px rgb(4 18 12 / 0.22), 0 26px 48px -22px rgb(2 12 8 / 0.75);

  --face: "Host Grotesk AH", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --gut: clamp(20px, 5.4vw, 80px);
  --max: 1200px;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { color-scheme: dark; -webkit-text-size-adjust: 100%; background: var(--table); }
body {
  margin: 0;
  background: var(--table) url("/assets/worlds/agent-hub/felt.png") 0 0 / 160px 160px;
  color: var(--text);
  font: 400 18px/1.6 var(--face);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
::selection { background: rgba(241, 236, 224, 0.26); color: #fff; }
img, svg { display: block; }
h1, h2, h3, p, dl, dd, ol, ul, figure, pre { margin: 0; }
h1, h2, h3 { color: var(--chalk); font-weight: 500; text-wrap: balance; }
h2 { font-size: clamp(34px, 4.3vw, 58px); line-height: 1.04; letter-spacing: -0.038em; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--chalk); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(100%, var(--max)); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.emoji { font-family: "Noto Emoji AH", var(--face); font-variant-emoji: text; font-weight: 400; line-height: 1; }
.udot { display: inline-block; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--urgent); }

/* The bar */
.bar {
  position: absolute;
  z-index: 5;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 12px max(var(--gut), calc((100% - var(--max)) / 2)) 0;
  color: var(--moss);
  font-size: 15px;
}
.bar__brand { display: inline-flex; align-items: center; gap: 10px; color: var(--chalk); font-weight: 600; letter-spacing: -0.015em; }
.mark { width: 21px; height: 23px; overflow: visible; }
.mark__card { fill: var(--stock); stroke: var(--table); stroke-width: 1.4; }
.world-exit { justify-self: start; transition: color 160ms ease; }
.world-lang { justify-self: end; display: inline-flex; align-items: center; justify-content: flex-end; min-width: 44px; min-height: 44px; transition: color 160ms ease; }
@media (hover: hover) and (pointer: fine) { .world-exit:hover, .world-lang:hover { color: var(--chalk); } }

/* ------------------------------------------------------------------ Hero */
.hero { position: relative; isolation: isolate; overflow: clip; padding: clamp(104px, 15vh, 150px) var(--gut) clamp(72px, 8vw, 120px); }
/* the lamp over the table */
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -10% -10% 0 30%;
  background: radial-gradient(closest-side, rgba(255, 244, 216, 0.075), rgba(255, 244, 216, 0.03) 55%, transparent);
  pointer-events: none;
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr); column-gap: clamp(40px, 6vw, 104px); align-items: center; }
.hero h1 { font-size: clamp(46px, 6vw, 86px); line-height: 0.99; letter-spacing: -0.046em; }
.lede { margin-top: clamp(22px, 3vh, 30px); max-width: 32em; color: var(--text); font-size: clamp(18px, 1.45vw, 20.5px); line-height: 1.52; letter-spacing: -0.006em; text-wrap: pretty; }
.hero__act { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: clamp(26px, 3.6vh, 36px); }
.note { display: flex; align-items: center; gap: 10px; color: var(--moss); font-size: 15px; line-height: 1.4; }
.note__dot { flex: none; width: 9px; height: 9px; border: 1.5px solid currentColor; border-radius: 50%; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 12px;
  background: var(--stock);
  color: var(--ink);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.012em;
  text-decoration: none;
  box-shadow: var(--lay);
  transition: transform 140ms var(--ease), background-color 160ms ease;
}
.btn:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .btn:hover { background: #fffdf8; } }

/* The deck */
.deck { position: relative; width: min(100%, 352px); justify-self: center; }
.deck__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; color: var(--moss); font-size: 15px; }
.chip--table {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 26px;
  padding: 0 9px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  color: var(--chalk);
  font-size: 13.5px;
  font-variant-numeric: tabular-nums;
}
.deck__stage { position: relative; aspect-ratio: 5 / 7; border-radius: 22px; touch-action: pan-y; }
.deck__stage:focus-visible { outline-offset: 8px; border-radius: 24px; }
.deck__stack { position: absolute; inset: 0; }

/* One card, as the app draws it (components/card-face.tsx, .card in app/globals.css) */
.hcard, .anat__card {
  background: var(--stock);
  border: 1px solid var(--rule);
  border-radius: 22px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
}
.hcard {
  position: absolute;
  inset: 0;
  z-index: calc(10 - var(--i));
  display: flex;
  flex-direction: column;
  padding: 22px;
  overflow: hidden;
  box-shadow: var(--lay);
  transform: rotate(var(--tilt));
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
/* before the script takes over: the top card, and two blank ones under it at their own tilt */
.hcard:first-child { transform: none; }
.hcard:not(:first-child) .hcard__body { opacity: 0; }
.hcard:nth-child(n + 4) { visibility: hidden; }
.deck.is-live .hcard[data-top] { cursor: grab; }
.deck.is-live .hcard[data-top]:active { cursor: grabbing; }
.hcard__body { flex: 1; min-height: 0; display: flex; flex-direction: column; }

.ch { display: flex; align-items: center; gap: 8px; margin-bottom: auto; color: var(--graphite); font-size: 14px; line-height: 1.4; }
.ch .emoji { color: var(--ink); font-size: 15px; }
.ch__agent { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch__age { flex: none; margin-left: auto; font-variant-numeric: tabular-nums; }
.cu { display: flex; align-items: center; gap: 8px; margin-top: 24px; font-size: 13px; font-weight: 500; line-height: 1.4; }
.ct { margin-top: 24px; font-size: 27px; line-height: 1.1; font-weight: 500; letter-spacing: -0.03em; text-wrap: balance; }
.cu + .ct { margin-top: 10px; }
.cs { margin-top: 12px; color: var(--graphite); font-size: 16px; line-height: 1.5; text-wrap: pretty; }
.ca { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 20px; }
.ca span { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border: 1px solid var(--rule); border-radius: 999px; font-size: 14px; white-space: nowrap; }

/* swipe verdicts, faded in by the drag */
.verdict { position: absolute; top: 18px; padding: 4px 11px; border-radius: 999px; font-size: 14px; font-weight: 500; line-height: 1.4; opacity: 0; pointer-events: none; }
.verdict--save { left: 18px; background: var(--ink); color: var(--paper); }
.verdict--dismiss { right: 18px; border: 1px solid var(--rule); background: var(--paper); color: var(--graphite); }
.verdict--snooze { top: auto; bottom: 18px; left: 0; right: 0; width: fit-content; margin: 0 auto; background: var(--ink); color: var(--paper); }

/* the deck, gone through */
.deck__empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 28px;
  border: 1px dashed rgba(241, 236, 224, 0.24);
  border-radius: 22px;
  text-align: center;
}
.deck__clear { color: var(--chalk); font-size: 34px; font-weight: 500; line-height: 1.1; letter-spacing: -0.03em; }
.deck__sum { max-width: 21em; color: var(--moss); font-size: 15.5px; line-height: 1.5; text-wrap: balance; }
.deck__again {
  margin-top: 10px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(241, 236, 224, 0.3);
  border-radius: 10px;
  background: none;
  color: var(--chalk);
  font: 500 15.5px/1 var(--face);
  cursor: pointer;
  transition: border-color 160ms ease, transform 140ms var(--ease);
}
.deck__again:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .deck__again:hover { border-color: var(--chalk); } }

/* the app's three buttons, in its dark-mode colours, which is what a dark table asks for */
.deck__controls { display: flex; align-items: center; justify-content: center; gap: 24px; margin-top: 26px; }
.ctl {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  padding: 0;
  border: 1px solid rgba(241, 236, 224, 0.28);
  border-radius: 50%;
  background: rgba(6, 22, 15, 0.16);
  color: var(--chalk);
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 140ms var(--ease), border-color 160ms ease;
}
.ctl svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ctl:active { transform: scale(0.93); }
.ctl--snooze { width: 48px; height: 48px; color: var(--moss); }
.ctl--snooze svg { width: 20px; height: 20px; stroke-width: 1.6; }
.ctl--save { border-color: var(--stock); background: var(--stock); color: var(--ink); }
.ctl--save svg { stroke-width: 1.6; }
.ctl:focus-visible { border-radius: 50%; }
@media (hover: hover) and (pointer: fine) { .ctl:not(.ctl--save):hover { border-color: var(--chalk); color: var(--chalk); } }

/* the hints and the toast share one row: the toast covers the hints while it is up */
.deck__foot { position: relative; display: grid; place-items: center; min-height: 44px; margin-top: 18px; }
.hints { display: none; flex-wrap: wrap; justify-content: center; gap: 6px 18px; color: var(--moss); font-size: 12.5px; transition: opacity 160ms ease; }
.deck__foot:has(.toast.is-on) .hints { opacity: 0; }
@media (hover: hover) and (pointer: fine) { .hints { display: flex; } }
.hints span { white-space: nowrap; }
.hints kbd, .row kbd {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  margin-right: 6px;
  padding: 0 5px;
  border: 1px solid var(--hair);
  border-radius: 5px;
  font: 11.5px/1 var(--face);
}

.toast {
  display: flex;
  align-items: center;
  gap: 14px;
  width: max-content;
  max-width: 100%;
  min-height: 44px;
  position: absolute;
  top: 0;
  left: 50%;
  padding: 7px 8px 7px 18px;
  border-radius: 22px;
  background: var(--paper);
  color: #181613;
  font-size: 15px;
  line-height: 1.3;
  opacity: 0;
  transform: translate(-50%, 8px);
  pointer-events: none;
  white-space: nowrap;
  transition: opacity 180ms ease, transform 240ms var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast button { flex: none; height: 30px; padding: 0 12px; border: 0; border-radius: 999px; background: none; color: inherit; font: 500 15px/1 var(--face); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.deck__cap { margin-top: 14px; color: var(--moss); font-size: 13.5px; line-height: 1.5; text-align: center; text-wrap: balance; }

/* Before the script deals them in, the cards wait off the table. If it never comes, they show anyway. */
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .deck:not(.is-live) .deck__stack { opacity: 0; animation: deck-anyway 0s linear 2.4s forwards; }
}
@keyframes deck-anyway { to { opacity: 1; } }

/* ------------------------------------------------------------------ Why it exists */
.origin { padding: clamp(80px, 10vw, 150px) var(--gut) clamp(72px, 8vw, 120px); border-top: 1px solid var(--hair); }
.origin__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: clamp(32px, 7vw, 120px); }
.origin h2 { align-self: start; position: sticky; top: 48px; font-size: clamp(32px, 3.6vw, 50px); }
.origin__text p { font-size: clamp(18px, 1.4vw, 20px); line-height: 1.62; text-wrap: pretty; }
.origin__text p + p { margin-top: 22px; }
.origin__text .origin__turn { margin-top: clamp(40px, 5vw, 64px); color: var(--chalk); font-size: clamp(26px, 2.7vw, 38px); font-weight: 500; line-height: 1.16; letter-spacing: -0.028em; text-wrap: balance; }

/* ------------------------------------------------------------------ The card */
.anatomy { padding: clamp(40px, 5vw, 80px) var(--gut) clamp(80px, 9vw, 130px); }
.anatomy__head { max-width: 44em; }
.anatomy__head h2 { max-width: 15em; }
.anatomy__head p { max-width: 37em; margin-top: 24px; font-size: clamp(18px, 1.4vw, 20px); text-wrap: pretty; }

/* The card in the middle, what each part is for on either side, joined by a hairline to the part. */
.anat {
  display: grid;
  grid-template-columns: minmax(0, 250px) 352px minmax(0, 250px);
  grid-template-rows: auto minmax(150px, 1fr) auto auto auto auto;
  justify-content: center;
  column-gap: 56px;
  margin-top: clamp(64px, 8vw, 110px);
  padding-bottom: 40px;
}
.anat__card { grid-column: 2; grid-row: 1 / -1; display: grid; grid-template-rows: subgrid; padding: 22px; box-shadow: var(--lay); transform: rotate(-0.0001deg); }
.anat__card .ca { padding-bottom: 0; }
.anat__note { position: relative; align-self: start; height: 0; font-size: 15px; line-height: 1.45; }
.anat__note h3 { font-size: 16px; line-height: 1.3; letter-spacing: -0.01em; }
.anat__note p { margin-top: 4px; color: var(--moss); }
.anat__note::before { content: ""; position: absolute; top: 0.68em; width: 44px; height: 1px; background: rgba(241, 236, 224, 0.32); }
.anat__note::after { content: ""; position: absolute; top: calc(0.68em - 2px); width: 5px; height: 5px; border-radius: 50%; background: var(--chalk); }
/* left of the card: who, the title, the buttons; right: urgency and the summary */
.anat__note--l { grid-column: 1; text-align: right; }
.anat__note--l::before { right: -50px; }
.anat__note--l::after { right: -59px; }
.anat__note--r { grid-column: 3; }
.anat__note--r::before { left: -50px; }
.anat__note--r::after { left: -59px; }
/* level with the part it names: each part's own space above it in the card */
.anat__note[data-row="1"] { margin-top: 23px; }
.anat__note[data-row="3"] { margin-top: 24px; }
.anat__note[data-row="4"] { margin-top: 10px; }
.anat__note[data-row="5"] { margin-top: 12px; }
.anat__note[data-row="6"] { margin-top: 26px; }

/* ------------------------------------------------------------------ Decks */
.decks { padding: clamp(40px, 5vw, 80px) var(--gut) clamp(80px, 9vw, 130px); }
.decks__head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: clamp(32px, 7vw, 120px); }
.decks__head h2 { font-size: clamp(32px, 3.6vw, 50px); }
.decks__text p { font-size: 17.5px; text-wrap: pretty; }
.decks__text p + p { margin-top: 18px; }
.shot { position: relative; isolation: isolate; margin-top: clamp(56px, 7vw, 96px); }
/* the lamp again, over the part of the table where the app lies */
.shot::before, .last::before { content: ""; position: absolute; z-index: -1; pointer-events: none; background: radial-gradient(closest-side, rgba(255, 244, 216, 0.06), rgba(255, 244, 216, 0.022) 60%, transparent); }
.shot::before { inset: -14% 0 -10%; }
.triage__sheet figcaption { margin-top: 18px; color: var(--moss); font-size: 14px; line-height: 1.45; }

/* The app's own paper: every illustration of its interface */
.ui { position: relative; background: var(--paper); color: var(--ink); font: 400 16px/1.5 var(--face); box-shadow: var(--lay); -webkit-user-select: none; user-select: none; }

/* the home screen (components/hub.tsx, deck-tile.tsx, tribe.tsx) */
.ui-home { container-type: inline-size; max-width: 920px; margin-inline: auto; padding: clamp(16px, 3vw, 34px) clamp(16px, 3.6vw, 46px) clamp(26px, 4vw, 48px); border-radius: 20px; }
.uh__top { display: flex; align-items: center; min-height: 40px; }
.uh__brand { color: var(--graphite); font-size: 15px; font-weight: 500; white-space: nowrap; }
.uh__brand b { margin-right: 8px; color: var(--ink); font-weight: 600; letter-spacing: -0.02em; }
.tribe { display: flex; gap: 6px; margin-left: auto; }
.tribe__face { position: relative; display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--rule); border-radius: 50%; background: var(--stock); font-size: 15px; }
.tribe__face[data-stale]::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 9px; height: 9px; border: 2px solid var(--paper); border-radius: 50%; background: var(--urgent); }
.tribe__more { display: none; color: var(--graphite); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.uh__acct { flex: none; width: 32px; height: 32px; margin-left: 12px; border-radius: 50%; background: var(--rule); }
.uh__status { display: grid; gap: 6px; margin-top: 28px; padding: 0; list-style: none; font-size: 18px; letter-spacing: -0.01em; }
.uh__status li { display: flex; align-items: center; gap: 12px; }
.uh__status u { text-decoration-color: var(--rule); text-underline-offset: 4px; }
.d { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--graphite); }
.d--urgent { background: var(--urgent); }
.d--live { background: var(--live); }
.uh__tabs { display: flex; width: fit-content; max-width: 100%; margin-top: 30px; padding: 3px; border: 1px solid var(--rule); border-radius: 999px; color: var(--graphite); font-size: 15px; }
.uh__tabs span { display: inline-flex; align-items: center; height: 34px; padding: 0 13px; border-radius: 999px; white-space: nowrap; }
.uh__tabs .is-on { background: var(--ink); color: var(--paper); }
.uh__tabs em { margin-left: 6px; font-style: normal; opacity: 0.7; font-variant-numeric: tabular-nums; }
.uh__decks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 16px; margin-top: 36px; }
@container (min-width: 560px) { .uh__decks { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 26px; } }
@container (min-width: 760px) { .uh__decks { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tile__stack { position: relative; aspect-ratio: 5 / 7; }
.tile__card { position: absolute; inset: 0; border: 1px solid var(--rule); border-radius: 18px; background: var(--stock); box-shadow: var(--card-shadow); transform: rotate(var(--tilt, 0deg)); }
.tile__card--top { display: flex; flex-direction: column; padding: 14px 14px 15px; transform: none; }
.tile__top { display: flex; align-items: center; gap: 6px; min-height: 26px; font-size: 22px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; margin-left: auto; padding: 0 10px; border: 1px solid var(--rule); border-radius: 999px; color: var(--graphite); font-size: 13px; font-variant-numeric: tabular-nums; }
.chip strong { color: var(--ink); font-weight: 500; }
.tile__peek { margin-top: 16px; font-size: 14.5px; line-height: 1.36; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; overflow: hidden; }
.tile__foot { margin-top: auto; }
.tile__name { font-size: 16px; font-weight: 500; line-height: 1.25; letter-spacing: -0.01em; }
.tile__meta { margin-top: 2px; color: var(--graphite); font-size: 12.5px; }
.tile[data-empty] .tile__card--top { background: transparent; box-shadow: none; }
.tile[data-empty] .tile__peek { color: var(--graphite); }
.tile[data-stale] .tile__meta { color: var(--urgent); }
.tile--new .tile__card--top { align-items: center; justify-content: center; gap: 10px; background: transparent; box-shadow: none; color: var(--graphite); font-size: 15px; }
.tile--new svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
@container (max-width: 520px) {
  .uh__status { font-size: 16px; }
  .uh__tabs { font-size: 13.5px; }
  .uh__tabs span { padding: 0 9px; height: 30px; }
  .tribe__face:nth-child(n + 4) { display: none; }
  .tribe__face.tribe__more { display: grid; }
  .tile--new { display: none; }
  .tile__card--top { padding: 11px 11px 12px; }
  .tile__top { font-size: 19px; }
  .tile__peek { margin-top: 12px; font-size: 13px; -webkit-line-clamp: 4; }
  .tile__name { font-size: 14.5px; }
  .tile__meta { font-size: 11.5px; }
  .chip { height: 22px; padding: 0 8px; font-size: 12px; }
}

/* ------------------------------------------------------------------ Triage */
.triage { padding: clamp(40px, 5vw, 80px) var(--gut) clamp(80px, 9vw, 130px); }
.triage__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(40px, 7vw, 120px); align-items: start; }
.triage__text h2 { max-width: 13em; }
.triage__lede { max-width: 34em; margin-top: 24px; font-size: 18px; text-wrap: pretty; }
.triage__sheet { position: sticky; top: 64px; margin-top: 12px; }

/* sheets (components/sheet.tsx, snooze-sheet.tsx, card-sheet.tsx) */
.ui-sheet, .ui-card-sheet { max-width: 440px; padding: 10px 24px 22px; border: 1px solid var(--rule); border-radius: 22px; background: var(--stock); }
.ui-sheet { transform: rotate(1.6deg); }
.grip { display: block; width: 36px; height: 4px; margin: 0 auto 18px; border-radius: 2px; background: var(--rule); }
.sh__title { font-size: 22px; font-weight: 500; line-height: 1.2; letter-spacing: -0.02em; text-wrap: balance; }
.sh__sub { margin-top: 2px; overflow: hidden; color: var(--graphite); font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.sh__sub + .sh__title { margin-top: 4px; }
.sh__meta { margin-left: 10px; font-variant-numeric: tabular-nums; }
.sh__body { margin-top: 12px; color: var(--graphite); font-size: 17px; line-height: 1.55; text-wrap: pretty; }
.sh__cancel { margin-top: 18px; text-align: center; font-size: 15px; font-weight: 500; text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 4px; }
.rows { margin-top: 18px; border-top: 1px solid var(--rule); }
.row { display: flex; align-items: center; gap: 12px; min-height: 56px; border-bottom: 1px solid var(--rule); font-size: 17px; }
.row__meta { margin-left: auto; color: var(--graphite); font-size: 14px; font-variant-numeric: tabular-nums; }
.row kbd { margin: 0 0 0 14px; border-color: var(--rule); color: var(--graphite); }
.row--pick { color: var(--ink); }

/* ------------------------------------------------------------------ Agents ask */
.door { padding: clamp(40px, 5vw, 80px) var(--gut) clamp(80px, 9vw, 130px); }
.door__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); column-gap: clamp(40px, 7vw, 120px); align-items: center; }
.door__text p { max-width: 34em; margin-top: 20px; font-size: 17.5px; text-wrap: pretty; }
.door__text h2 + p { margin-top: 28px; }
.door__shots { display: grid; justify-items: center; gap: 36px; }
.ui-allow { width: min(100%, 360px); padding: 34px 30px 26px; border-radius: 22px; transform: rotate(-1.8deg); }
.allow__face { position: relative; display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 28px; border: 1px solid var(--rule); border-radius: 50%; background: var(--stock); box-shadow: var(--card-shadow); font-size: 30px; }
.allow__title { font-size: 28px; font-weight: 600; line-height: 1.1; letter-spacing: -0.025em; text-wrap: balance; }
.allow__lede { margin-top: 10px; color: var(--graphite); }
.allow__note { margin-top: 16px; color: var(--graphite); font-size: 14.5px; text-wrap: pretty; }
.allow__btn { display: grid; place-items: center; height: 48px; margin-top: 26px; border-radius: 12px; background: var(--ink); color: var(--paper); font-size: 15px; font-weight: 500; }
.allow__no { margin-top: 16px; text-align: center; font-size: 15px; font-weight: 500; text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 4px; }
.ui-request { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 14px; width: min(100%, 440px); padding: 18px 22px; border-radius: 16px; transform: rotate(1.2deg); }
.req__mark { grid-row: span 3; margin-top: 4px; font-size: 20px; }
.req__title { font-size: 17px; font-weight: 500; letter-spacing: -0.01em; }
.req__title span { color: var(--graphite); font-weight: 400; }
.req__meta { color: var(--graphite); font-size: 15px; line-height: 1.45; }
.req__act { display: flex; align-items: center; gap: 20px; margin-top: 12px; }
.req__accept { display: inline-grid; place-items: center; height: 40px; padding: 0 18px; border-radius: 6px; background: var(--ink); color: var(--paper); font-size: 15px; font-weight: 500; }
.req__refuse { font-size: 15px; font-weight: 500; text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 4px; }

/* ------------------------------------------------------------------ How it works */
.how { padding: clamp(40px, 5vw, 80px) var(--gut) clamp(80px, 9vw, 130px); }
.how h2 { max-width: 14em; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px clamp(24px, 3vw, 44px); margin-top: clamp(48px, 6vw, 80px); padding: 0; list-style: none; }
.steps li { padding-top: 22px; border-top: 1px solid var(--hair); }
.steps__n { display: grid; place-items: center; width: 34px; height: 46px; margin-bottom: 26px; border: 1px solid rgba(241, 236, 224, 0.34); border-radius: 7px; color: var(--chalk); font-size: 17px; font-weight: 500; font-variant-numeric: tabular-nums; }
.steps li:nth-child(1) .steps__n { transform: rotate(-3deg); }
.steps li:nth-child(2) .steps__n { transform: rotate(2deg); }
.steps li:nth-child(3) .steps__n { transform: rotate(-1.5deg); }
.steps li:nth-child(4) .steps__n { transform: rotate(2.6deg); }
.steps h3 { font-size: 20px; line-height: 1.25; letter-spacing: -0.015em; }
.steps p { margin-top: 12px; font-size: 16px; line-height: 1.58; text-wrap: pretty; }
.steps q { quotes: none; color: var(--chalk); font-weight: 500; }
.nw { white-space: nowrap; }

/* ------------------------------------------------------------------ Ask an assistant */
.ask { padding: clamp(40px, 5vw, 80px) var(--gut) clamp(80px, 9vw, 130px); }
.ask__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: clamp(40px, 7vw, 120px); align-items: center; }
.ui-card-sheet { padding-bottom: 0; overflow: hidden; transform: rotate(-1.2deg); }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin-top: 18px; font-size: 15px; }
.facts div { display: contents; }
.facts dt { color: var(--graphite); }
.facts dd { margin: 0; font-variant-numeric: tabular-nums; }
.ask__field { margin-top: 20px; padding: 14px 16px; border: 1px solid var(--ink); border-radius: 12px; background: var(--paper); line-height: 1.45; }
.ask__btns { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 12px; }
.ask__b { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border: 1px solid var(--rule); border-radius: 6px; font-size: 15px; font-weight: 500; white-space: nowrap; }
.ask__copy { margin-left: auto; font-size: 15px; font-weight: 500; text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 4px; white-space: nowrap; }
.ask__triage { display: flex; gap: 10px; margin: 24px -24px 0; padding: 14px 24px 20px; border-top: 1px solid var(--rule); }
.ask__triage span { flex: 1; display: grid; place-items: center; height: 40px; border: 1px solid var(--rule); border-radius: 6px; font-size: 15px; font-weight: 500; }
.ask__triage .is-on { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.ask__text p { max-width: 34em; margin-top: 24px; font-size: 17.5px; text-wrap: pretty; }

/* ------------------------------------------------------------------ FAQ */
.faq { padding: clamp(40px, 5vw, 80px) var(--gut) clamp(80px, 9vw, 130px); }
.faq__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); column-gap: clamp(32px, 7vw, 120px); }
.faq h2 { position: sticky; top: 48px; align-self: start; font-size: clamp(32px, 3.6vw, 50px); }
.qa { padding: 24px 0; border-top: 1px solid var(--hair); }
.qa:last-child { border-bottom: 1px solid var(--hair); }
.qa h3 { font-size: 19px; line-height: 1.35; letter-spacing: -0.012em; }
.qa p { max-width: 38em; margin-top: 8px; font-size: 16.5px; line-height: 1.58; text-wrap: pretty; }
.qa a { color: var(--chalk); text-underline-offset: 3px; text-decoration-color: rgba(241, 236, 224, 0.4); }

/* ------------------------------------------------------------------ Last */
.last { position: relative; isolation: isolate; padding: clamp(80px, 11vw, 160px) var(--gut) clamp(100px, 13vw, 190px); text-align: center; }
.last::before { inset: 0 10% 20%; }
.last__mark { position: relative; width: 112px; height: 148px; margin: 0 auto clamp(44px, 5vw, 64px); }
.last__mark span { position: absolute; width: 100px; height: 136px; border: 1px solid var(--rule); border-radius: 16px; background: var(--stock); box-shadow: var(--lay); }
.last__mark span:first-child { left: 0; top: 0; transform: rotate(-9deg); }
.last__mark span:last-child { left: 12px; top: 12px; }
.last h2 { max-width: 12em; margin-inline: auto; font-size: clamp(38px, 5.4vw, 74px); letter-spacing: -0.045em; }
.last p { max-width: 32em; margin: 24px auto 34px; font-size: 18px; text-wrap: balance; }

/* ------------------------------------------------------------------ Colophon */
.world-colophon { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; padding: 28px var(--gut) 36px; border-top: 1px solid var(--hair); color: var(--moss); }
.world-colophon a { text-underline-offset: 3px; text-decoration-color: rgba(241, 236, 224, 0.3); }
@media (hover: hover) and (pointer: fine) { .world-colophon a:hover { color: var(--chalk); } }

/* ------------------------------------------------------------------ Narrow */
@media (max-width: 1060px) {
  .anat { grid-template-columns: minmax(0, 210px) 340px minmax(0, 210px); column-gap: 48px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hero__grid, .origin__grid, .decks__head, .triage__grid, .door__grid, .ask__grid, .faq__grid { grid-template-columns: minmax(0, 1fr); }
  .deck { margin-top: 64px; }
  .origin h2, .faq h2 { position: static; }
  .origin__text, .decks__text { margin-top: 28px; }
  .faq__list { margin-top: 36px; }
  .triage__sheet { position: static; margin-top: 56px; }
  .door__shots { margin-top: 56px; }
  .ask__sheet { order: 2; margin-top: 48px; }
  /* the card on its own, what each part is for listed under it */
  .anat { display: flex; flex-direction: column; align-items: center; gap: 0; padding-bottom: 0; }
  .anat__card { display: flex; flex-direction: column; width: min(100%, 352px); aspect-ratio: 5 / 7; margin-bottom: 28px; }
  .anat__note, .anat__note[data-row] { width: min(100%, 352px); height: auto; margin: 0; padding: 14px 0 14px 22px; border-top: 1px solid var(--hair); text-align: left; }
  .anat__note::before { display: none; }
  .anat__note--l::after, .anat__note--r::after { left: 2px; right: auto; top: calc(14px + 0.62em); }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .bar { padding-top: 6px; }
  .hero { padding-top: 88px; }
  .hero h1 { font-size: clamp(40px, 11.6vw, 54px); line-height: 1.02; }
  .deck { width: min(100%, 320px); }
  .ct { font-size: 25px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .ui-sheet, .ui-card-sheet { padding-inline: 18px; }
  .ask__triage { margin-inline: -18px; padding-inline: 18px; }
  .ask__copy { margin-left: 0; }
  .ui-allow { padding: 28px 22px 22px; }
  .allow__title { font-size: 24px; }
  .world-colophon { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .btn, .ctl, .toast, .deck__again, .world-exit, .world-lang { transition: none; }
  .btn:active, .ctl:active, .deck__again:active { transform: none; }
}
