/* agent-atlas.co — one page, dark only. */

@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/instrument-serif.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/instrument-serif-italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/jetbrains-mono-var.woff2") format("woff2");
  font-weight: 100 800; font-style: normal; font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #0B1016;
  --ink-deep: #06090D;
  --chart: #142030;
  --chart-land: #1B2B3D;
  --parchment: #EFE6D2;
  --paper: #8E7F63;
  --brass: #E0A458;
  --brass-hi: #ECB673;
  --brass-lo: #B97F3A;
  --sea: #6E9A93;
  --muted: rgba(239, 230, 210, .68);
  --faint: rgba(239, 230, 210, .12);
  --die: #FBF7EE;

  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --gutter: 16px;
  --nav-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--parchment);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; }
figure { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--brass); color: var(--ink); }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--brass); color: var(--ink); padding: 10px 14px; border-radius: 6px;
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

.mono-label {
  font: 500 12px/1.4 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sea);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--brass); color: var(--ink);
  font: 600 15px/1 var(--sans);
  padding: 15px 20px; border-radius: 6px;
  text-decoration: none; white-space: nowrap;
  transition: background-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:hover { background: var(--brass-hi); transform: translateY(-1px); box-shadow: 0 10px 30px -10px rgba(224, 164, 88, .55); }
.btn:active { transform: translateY(0); }
.btn .arrow { font: 500 14px/1 var(--mono); }
.btn-sm { padding: 11px 14px; font-size: 14px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 var(--gutter);
  background: rgba(11, 16, 22, .82);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(239, 230, 210, .06);
}
.wordmark {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  font: 600 19px/1 var(--sans); letter-spacing: -.02em;
  text-decoration: none; color: var(--parchment);
}
.wordmark .dot { color: var(--brass); }
.wordmark svg { width: 26px; height: 26px; }
.nav-links { display: none; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: inline-block; padding: 12px 0; font-size: 14px; color: var(--muted); text-decoration: none; transition: color .2s; }
.nav-links a:hover { color: var(--parchment); }
.nav .btn .long { display: none; }

/* ---------- Layout ---------- */
main { position: relative; z-index: 1; }
section { scroll-margin-top: calc(var(--nav-h) + 8px); }
.split { padding: 0 var(--gutter); }
.band { position: relative; z-index: 2; background-color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + 48px); padding-bottom: 40px;
}
.hero .mono-label { margin-bottom: 22px; }
.hero-title {
  font-family: var(--serif);
  font-size: clamp(40px, 11vw, 72px);
  line-height: 1.04; letter-spacing: -.012em;
}
.hero-title .line { display: block; }
.hero-title em { color: var(--brass); }
.reel {
  display: block; height: 1.26em; overflow: hidden;
  color: var(--brass); font-style: italic;
  margin: -.06em 0 -.06em;
}
.reel-track {
  display: block;
  --i: 7; /* no JS: show the last word */
  transform: translateY(calc(var(--i) * -1.26em));
  transition: transform .9s cubic-bezier(.65, 0, .25, 1);
}
.reel-track > span { display: block; height: 1.26em; line-height: 1.26em; white-space: nowrap; }
.hero-lede {
  margin-top: 26px; max-width: 38ch;
  font-size: 18.5px; line-height: 1.55; color: var(--muted);
}
.hero-cta { margin-top: 34px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.fine { font-size: 14px; color: var(--muted); }
.scroll-cue {
  display: none; position: absolute; bottom: 32px; align-items: center; gap: 12px;
  text-decoration: none; opacity: .8; padding: 12px 0;
}
.scroll-cue::after { content: ""; width: 48px; height: 1px; background: var(--sea); opacity: .6; }

/* Atlas on the chart: under the text on phones, pinned on the right and
   bleeding off the page on desktop. */
.hero-art {
  position: relative;
  margin: 44px calc(-1 * var(--gutter)) 0;
  height: min(128vw, 680px);
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 78%, transparent 100%);
}
.hero-chart {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%;
  opacity: .5;
}
.hero-art::after {
  /* deepen the edges so Atlas reads clearly over the chart */
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 58% 45%, rgba(11, 16, 22, 0) 0%, rgba(11, 16, 22, .55) 100%);
}
.atlas {
  position: absolute; z-index: 1;
  right: -8%; bottom: -10%;
  height: 104%; aspect-ratio: 1223 / 1759;
  transform: translateY(calc(var(--relief, 0) * -1px));
  transition: transform 1.2s var(--ease);
}
.atlas-img {
  width: 100%; height: 100%;
  filter: drop-shadow(0 0 24px rgba(11, 16, 22, .9)) drop-shadow(0 20px 40px rgba(0, 0, 0, .5));
}

/* ---------- How it works: the deck ---------- */
.how {
  padding: 24px var(--gutter) 96px;
  background-image: url("contours.svg");
  background-size: cover; background-position: center;
  overflow: hidden;
  border-top: 1px solid rgba(239, 230, 210, .06);
}
.section-head { text-align: center; margin: 0 auto 48px; position: relative; z-index: 3; }
.section-head h2 {
  margin-top: 12px;
  font-family: var(--serif); font-size: clamp(36px, 6vw, 56px); line-height: 1.05;
}

.deck {
  position: relative; z-index: 3;
  width: min(480px, 100%);
  margin: 0 auto;
  padding-bottom: 46px;
}
.deck-stack span {
  position: absolute; left: 0; right: 0; top: 0; bottom: 46px;
  border-radius: 18px;
  border: 1px solid rgba(239, 230, 210, .34);
  background: #0E1620;
  transform-origin: 50% 100%;
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.deck-stack span:nth-child(1) { transform: translateY(9px) scale(.97); opacity: .9; }
.deck-stack span:nth-child(2) { transform: translateY(18px) scale(.94); opacity: .7; }
.deck-stack span:nth-child(3) { transform: translateY(27px) scale(.91); opacity: .5; }
.deck-stack span:nth-child(4) { transform: translateY(36px) scale(.88); opacity: .3; }
.deck[data-left="3"] .deck-stack span:nth-child(4),
.deck[data-left="2"] .deck-stack span:nth-child(n+3),
.deck[data-left="1"] .deck-stack span:nth-child(n+2),
.deck[data-left="0"] .deck-stack span { opacity: 0; transform: translateY(0) scale(.98); }

.card {
  position: relative;
  background: var(--chart);
  border: 1px solid rgba(239, 230, 210, .2);
  border-radius: 18px;
  padding: 18px 22px 22px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(0, 0, 0, .3);
  touch-action: pan-y;
  transition: transform .32s var(--ease), opacity .32s var(--ease);
}
.card.is-out { transform: translateY(-14px) rotate(-1.2deg); opacity: 0; transition-duration: .2s; }
.card.is-in { animation: deal .42s var(--ease); }
@keyframes deal {
  from { transform: translateY(22px) scale(.97); opacity: .2; }
  to { transform: none; opacity: 1; }
}
.card-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 14px; margin-bottom: 18px;
  border-bottom: 1px solid var(--faint);
}
.card-bar .mono-label { font-size: 11px; }
.pager { display: flex; align-items: center; gap: 6px; font: 500 13px/1 var(--mono); color: var(--muted); }
.pager button {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: transparent; color: var(--parchment);
  border: 1px solid rgba(239, 230, 210, .22);
  font: 500 15px/1 var(--mono); cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
.pager button:hover { border-color: var(--brass); background: rgba(224, 164, 88, .1); }
.pager .count { min-width: 46px; text-align: center; }

.slides { list-style: none; margin: 0; padding: 0; display: grid; }
.slide { grid-area: 1 / 1; visibility: hidden; position: relative; }
.slide.is-active { visibility: visible; }
.slide .full, .slide .typed { font: 400 15px/1.7 var(--mono); color: var(--parchment); }
.slide .typed { position: absolute; inset: 0 0 auto 0; pointer-events: none; }
.slide p + p { margin-top: 12px; }
.slide .num { color: var(--brass); font-weight: 700; margin-right: .6ch; }
.slide .ttl { font-weight: 700; color: var(--parchment); }
.slide .body { color: var(--muted); }
.slide .hello { font-size: 17px; }
.slide .btn { margin-top: 22px; font-family: var(--sans); }
.slide .full.ghost, .slide .full.ghost * { color: transparent !important; }
.slide .full.ghost .btn { opacity: 0; pointer-events: none; }
.caret {
  display: inline-block; width: .6em; height: 1.1em; margin-left: 2px;
  vertical-align: -.2em; background: var(--brass);
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.deck-hint { text-align: center; margin-top: 26px; font: 400 12px/1 var(--mono); color: var(--muted); letter-spacing: .06em; }
.deck-hint .desk { display: none; }

/* ---------- The three phases, left to right ---------- */
.how-stage { position: relative; padding-top: 190px; padding-bottom: 132px; }
.phases { position: relative; z-index: 3; max-width: 1160px; margin: 48px auto 0; }
.phases-title { text-align: center; font: 400 clamp(30px, 4.6vw, 44px)/1.1 var(--serif); }
.phase-row { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 34px; counter-reset: phase; }
.phase {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--chart);
  border: 1px solid rgba(239, 230, 210, .14);
  border-radius: 16px;
  padding: 22px 22px 20px;
  box-shadow: 0 30px 60px -36px rgba(0, 0, 0, .9);
}
.phase:first-child { border-color: rgba(224, 164, 88, .6); }
/* the route between phases: down on phones, across on desktop */
.phase + .phase::before {
  content: ""; position: absolute; left: 50%; top: -34px; height: 34px; width: 0;
  border-left: 2px dashed rgba(224, 164, 88, .7);
}
.phase + .phase::after {
  content: ""; position: absolute; left: calc(50% - 6px); top: -10px;
  border: 6px solid transparent; border-top-color: var(--brass);
}
.phase-step {
  display: flex; align-items: center; gap: 10px;
  font: 600 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--sea);
}
.phase-step span {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  border: 1.5px solid var(--brass); color: var(--brass); font-size: 12px; letter-spacing: 0;
}
.phase:first-child .phase-step span { background: var(--brass); color: var(--ink); }
.phase h4 { margin: 14px 0 0; font: 400 30px/1.05 var(--serif); }
.phase dl { margin: 14px 0 0; display: grid; gap: 12px; flex: 1; }
.phase dl div { padding-top: 12px; border-top: 1px solid var(--faint); }
.phase dt { font: 600 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--sea); }
.phase dd { margin: 6px 0 0; font-size: 15px; line-height: 1.45; color: var(--parchment); }
.phase dl div:nth-child(2) dd { font-weight: 600; }
.phase-cost {
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--faint);
  font: 400 30px/1 var(--serif); color: var(--brass);
}
.phase-cost small { font: 500 13px var(--sans); color: var(--muted); margin-left: 6px; }
.phases-cta { margin-top: 32px; text-align: center; }
.phases-cta .fine { margin-top: 14px; }

/* ---------- Pop-up: the example week ---------- */
html:has(dialog[open]) { overflow: hidden; }
.board-dialog {
  width: min(1000px, calc(100vw - 24px)); max-width: none; max-height: calc(100vh - 32px);
  margin: auto; padding: 44px 0 0; border: 0; background: transparent; color: var(--parchment);
  overflow: visible;
}
.board-dialog::backdrop { background: rgba(6, 9, 13, .8); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.board-dialog[open] { animation: dlg-in .35s var(--ease); }
@keyframes dlg-in { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.board-dialog .board-wrap { max-width: none; }
.board-dialog .board-note { margin-top: 16px; }
.dialog-close {
  position: absolute; top: 0; right: 0;
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--chart); color: var(--parchment);
  border: 1px solid rgba(239, 230, 210, .3);
  font: 400 22px/1 var(--sans); cursor: pointer;
}
.dialog-close:hover { border-color: var(--brass); color: var(--brass); }

/* ---------- Pop-ups: games and "reach me" ---------- */
.pop {
  width: min(620px, calc(100vw - 24px)); max-width: none; max-height: calc(100dvh - 24px);
  margin: auto; padding: 22px 20px 20px; border-radius: 18px;
  background: var(--ink); color: var(--parchment);
  border: 1px solid rgba(224, 164, 88, .45);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .9);
  overflow: auto;
}
.pop::backdrop { background: rgba(6, 9, 13, .8); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.pop[open] { animation: dlg-in .35s var(--ease); }
.pop .dialog-close { top: 12px; right: 12px; }
.pop-head { padding-right: 44px; }
.pop-head h2 { margin-top: 8px; font: 400 clamp(30px, 6vw, 40px)/1.05 var(--serif); }
.pop-sub { margin-top: 8px; color: var(--muted); font-size: 15px; }
.pop-panel {
  position: absolute; inset: 0; z-index: 5;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  padding: 24px; text-align: center;
  background: rgba(11, 16, 22, .9); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  border-radius: 12px;
}
.pop-panel p { max-width: 34ch; color: var(--parchment); }
.pop-big { font: 400 clamp(30px, 6vw, 42px)/1.1 var(--serif); color: var(--brass) !important; }
.pop-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 18px; }
.text-link { background: none; border: 0; padding: 10px 0; margin: -10px 0; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.text-link:hover { color: var(--brass); }
.chip { position: relative; cursor: pointer; display: inline-block; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-block; padding: 8px 12px; border-radius: 999px;
  border: 1px solid rgba(239, 230, 210, .25); background: var(--chart);
  font-size: 14px; color: var(--parchment); transition: background-color .15s, color .15s, border-color .15s;
}
.chip input:checked + span { background: var(--brass); border-color: var(--brass); color: var(--ink); font-weight: 600; }
.chip input:focus-visible + span { outline: 2px solid var(--brass); outline-offset: 2px; }

/* Hold up the world: catch and balance */
.ga-stage { position: relative; margin-top: 14px; }
.ga-hud { display: flex; flex-wrap: wrap; row-gap: 10px; justify-content: space-between; align-items: center; gap: 12px; font: 600 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ga-hud b { color: var(--brass); font-size: 16px; }
.ga-meter { display: inline-flex; align-items: center; gap: 7px; }
.ga-meter em { font-style: normal; font-size: 11px; }
.ga-bal, .ga-speed {
  position: relative; display: inline-block; width: 52px; height: 8px; border-radius: 4px;
  background: rgba(239, 230, 210, .12); overflow: hidden;
}
.ga-bal::before { /* the safe middle */
  content: ""; position: absolute; left: 35%; width: 30%; top: 0; bottom: 0; background: rgba(110, 154, 147, .35);
}
.ga-bal i {
  position: absolute; top: -2px; bottom: -2px; left: 50%; width: 4px; margin-left: -2px; border-radius: 2px;
  background: var(--parchment); transition: background-color .2s;
}
.ga-bal i.warn { background: #E0715A; }
.ga-speed i { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; background: var(--brass); transition: width .3s var(--ease); }

.ga-field {
  position: relative; margin-top: 10px; height: min(420px, 58dvh); overflow: hidden;
  border-radius: 12px; border: 1px solid var(--faint);
  background:
    linear-gradient(rgba(110, 154, 147, .06) 1px, transparent 1px) 0 0 / 100% 40px,
    var(--chart);
  touch-action: none; user-select: none; -webkit-user-select: none;
  cursor: ew-resize;
}
.ga-field:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
.ga-field::after { /* the ground */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px;
  background: linear-gradient(transparent, rgba(6, 9, 13, .6));
}
.ga-atlas {
  position: absolute; left: 0; bottom: -6px; width: 84px; z-index: 2;
  transform: translateX(calc(var(--x, 0) * 1px)) translateY(calc(var(--sink, 0) * 1px));
}
.ga-atlas img { display: block; width: 100%; height: auto; pointer-events: none; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .6)); }
.ga-atlas.dropped { transition: transform .5s cubic-bezier(.5, 0, .7, .4); transform: translateX(calc(var(--x, 0) * 1px)) translateY(40px) rotate(-12deg); }
/* the pile sits on top of the sphere and leans as a whole */
.ga-stack {
  position: absolute; left: 55.9%; top: 0;
  width: 0; height: 0; z-index: 3;
  transform: rotate(var(--lean, 0deg)); transform-origin: 0 0;
}
.ga-chip {
  position: absolute; left: 0; top: 0; z-index: 2;
  padding: 5px 8px; border-radius: 999px;
  background: var(--ink); color: var(--parchment);
  border: 1px solid rgba(239, 230, 210, .4);
  font: 600 11px/1 var(--mono); letter-spacing: .03em; white-space: nowrap;
  box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .8);
  pointer-events: none;
}
.ga-chip.held { border-color: var(--brass); }
.ga-chip.missed { opacity: .25; transition: opacity .4s; }
.ga-hint {
  position: absolute; left: 50%; top: 14px; transform: translateX(-50%);
  font: 600 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  pointer-events: none; transition: opacity .6s;
}
.ga-how { font-size: 13px; color: var(--muted) !important; }

/* Race the Agent */
.gr-stage { position: relative; margin-top: 14px; min-height: 420px; }
.gr-bar { display: flex; justify-content: space-between; align-items: center; }
.gr-clock { font: 700 22px/1 var(--mono); color: var(--brass); }
.gr-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.gr-msg {
  position: relative;
  display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: center;
  padding: 10px 12px; border-radius: 10px;
  background: var(--chart); border: 1px solid rgba(239, 230, 210, .12);
  transition: opacity .3s, border-color .3s;
}
.gr-text { display: grid; gap: 2px; min-width: 0; }
.gr-text b { font: 600 13.5px/1.2 var(--sans); }
.gr-text span { font-size: 13px; color: var(--muted); }
.gr-acts { display: flex; gap: 5px; }
.gr-acts button {
  min-height: 38px; padding: 8px 11px; border-radius: 7px; cursor: pointer;
  background: transparent; color: var(--parchment); border: 1px solid rgba(239, 230, 210, .25);
  font: 600 11.5px/1 var(--mono); letter-spacing: .04em;
}
.gr-acts button:hover { border-color: var(--brass); color: var(--brass); }
.gr-msg.wrong { animation: shake .35s; border-color: #E0715A; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.gr-done {
  display: none; padding: 6px 9px; border-radius: 999px;
  font: 600 10.5px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
  background: rgba(224, 164, 88, .14); color: var(--brass); border: 1px solid rgba(224, 164, 88, .5);
}
.gr-msg.done .gr-acts { display: none; }
.gr-msg.done .gr-done { display: inline-block; justify-self: start; }
.gr-msg.done { border-color: rgba(224, 164, 88, .35); }
.gr-stage.agent .gr-msg.done .gr-done { background: var(--brass); color: var(--ink); }
.gr-key { margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.gr-key b { color: var(--parchment); font-family: var(--mono); font-size: 11.5px; }
@media (max-width: 480px) {
  .gr-msg { grid-template-columns: 1fr; }
}

/* Reach me */
.rm-form { margin-top: 16px; display: grid; gap: 8px; }
.rm-via { border: 0; padding: 0; margin: 0 0 6px; display: flex; flex-wrap: wrap; gap: 8px; }
.rm-via legend { margin-bottom: 8px; font: 600 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--sea); }
.rm-label { margin-top: 6px; font: 600 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--sea); display: block; }
.rm-label span { color: var(--muted); font-family: var(--sans); text-transform: none; letter-spacing: 0; font-weight: 500; }
.rm-input {
  width: 100%; margin-top: 6px;
  background: var(--chart); color: var(--parchment);
  border: 1px solid rgba(239, 230, 210, .22); border-radius: 9px;
  padding: 11px 12px; font: 400 15px/1.3 var(--sans);
}
.rm-input:focus { outline: none; border-color: var(--brass); }
.rm-consent { margin-top: 8px; display: flex; gap: 9px; align-items: flex-start; font-size: 13px; color: var(--muted); cursor: pointer; }
.rm-consent input { margin-top: 2px; accent-color: var(--brass); }
.rm-error { color: #F2B8A0; font-size: 13.5px; }
.rm-send { justify-content: center; margin-top: 8px; }
.rm-fine { font-size: 12px; color: var(--muted); }
.rm-fine a { color: var(--muted); display: inline-block; padding: 12px 4px; margin: -12px -4px; }
.rm-done { position: static; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; padding: 30px 0 10px; }

.pop-note { margin-top: 12px; font-size: 12px; color: var(--muted); }

/* While your coffee brewed */
.br-stage {
  position: relative; margin-top: 16px;
  display: grid; grid-template-columns: 170px 1fr; gap: 22px; align-items: center;
  min-height: 250px;
}
.br-clock { position: relative; text-align: center; }
.br-clock svg { width: 150px; height: 150px; margin: 0 auto; overflow: visible; }
.br-face { fill: var(--chart); stroke: rgba(224, 164, 88, .6); stroke-width: 2; }
.br-ticks line { stroke: rgba(239, 230, 210, .4); stroke-width: 1.5; stroke-linecap: round; }
.br-hour, .br-min { stroke-linecap: round; transform-origin: 0 0; }
.br-hour { stroke: var(--parchment); stroke-width: 4; }
.br-min { stroke: var(--brass); stroke-width: 2.4; }
.br-pin { fill: var(--brass); }
.br-time { margin-top: 8px; font: 700 18px/1 var(--mono); color: var(--brass); }
.br-cup { position: absolute; right: -6px; bottom: 26px; width: 54px; }
.br-cup img { width: 100%; height: auto; }
.br-cup i {
  position: absolute; bottom: 70%; width: 3px; height: 18px; border-radius: 3px;
  background: rgba(239, 230, 210, .5); opacity: 0;
  animation: steam 1.8s ease-out infinite;
}
.br-cup i:nth-child(2) { left: 30%; }
.br-cup i:nth-child(3) { left: 48%; animation-delay: .5s; }
.br-cup i:nth-child(4) { left: 66%; animation-delay: 1s; }
@keyframes steam { 0% { opacity: 0; transform: translateY(0) scaleY(.6); } 40% { opacity: .8; } 100% { opacity: 0; transform: translateY(-22px) scaleY(1.2) translateX(4px); } }
.br-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.br-list li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--muted); }
.br-list b { min-width: 34px; font: 700 22px/1 var(--mono); color: var(--parchment); text-align: right; }
.br-list li.lit { color: var(--parchment); }
.br-tick {
  width: 22px; height: 22px; margin-left: 12px; border-radius: 50%;
  border: 1.5px solid rgba(239, 230, 210, .3); position: relative; flex: none;
  transition: background-color .3s, border-color .3s;
}
.br-list li.lit .br-tick { background: var(--brass); border-color: var(--brass); }
.br-list li.lit .br-tick::after {
  content: ""; position: absolute; left: 7px; top: 4px; width: 5px; height: 9px;
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg);
}
.br-end {
  grid-column: 1 / -1;
  display: grid; justify-items: center; gap: 10px; text-align: center;
  padding-top: 14px; border-top: 1px solid var(--faint);
}
@media (max-width: 520px) {
  .br-stage { grid-template-columns: 1fr; }
  .br-clock svg { width: 130px; height: 130px; }
}

/* Messy to meeting-ready */
.pr-stage {
  position: relative; margin-top: 16px; height: 360px; overflow: hidden;
  border-radius: 12px; border: 1px solid var(--faint);
  background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(224, 164, 88, .06), transparent 70%), var(--chart);
}
.pr-scrap {
  position: absolute; left: 50%; top: 50%; width: 170px;
  padding: 10px 12px; border-radius: 6px;
  background: #E9E1CD; color: #1d2430;
  box-shadow: 0 10px 22px -8px rgba(0, 0, 0, .7);
  font-size: 12.5px; line-height: 1.35;
  transform: translate(-50%, -50%) translate(var(--sx), var(--sy)) rotate(var(--sr));
  transition: transform .9s cubic-bezier(.5, 0, .2, 1), opacity .5s;
}
.pr-scrap b { display: block; font: 700 11px/1.3 var(--mono); margin-bottom: 4px; }
.pr-scrap code { font: 500 11px/1.4 var(--mono); }
.pr-scrap.hand span { font: italic 400 17px/1.2 var(--serif); }
/* the scraps start scattered, gather into a pile, then become the page */
.pr-stage.scatter .pr-scrap { transform: translate(-50%, -50%) translate(calc(var(--sx) * .55), calc(var(--sy) * .55)) rotate(var(--sr)); }
.pr-stage.gather .pr-scrap { transform: translate(-50%, -50%) rotate(calc(var(--sr) * .3)) scale(.8); }
.pr-stage.merged .pr-scrap { opacity: 0; transform: translate(-50%, -50%) scale(.6); }
.pr-doc {
  position: absolute; left: 50%; top: 50%; width: min(440px, 88%);
  padding: 18px 20px; border-radius: 8px;
  background: #F4EEDF; color: #1d2430;
  box-shadow: 0 24px 50px -16px rgba(0, 0, 0, .8);
  transform: translate(-50%, -50%) scale(.7); opacity: 0;
  transition: transform .6s var(--ease), opacity .4s;
}
.pr-stage.merged .pr-doc { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.pr-doc-head { display: flex; justify-content: space-between; align-items: baseline; font: 400 22px/1.1 var(--serif); padding-bottom: 8px; border-bottom: 2px solid #1d2430; }
.pr-doc-head span { font: 700 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #8a6a3a; }
.pr-lines { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 7px; }
.pr-lines li, .pr-decide { font-size: 13.5px; line-height: 1.4; min-height: 1.4em; }
.pr-lines li::before { content: "› "; color: #8a6a3a; font-weight: 700; }
.pr-doc [data-pr-line] { clip-path: inset(0 100% 0 0); transition: clip-path .7s ease-out; }
.pr-doc [data-pr-line].shown { clip-path: inset(0 0 0 0); }
.pr-doc mark { background: rgba(224, 164, 88, .45); color: inherit; padding: 0 2px; border-radius: 2px; }
.pr-decide { margin-top: 10px; padding-top: 8px; border-top: 1px dashed rgba(29, 36, 48, .3); }
.pr-actions { margin-top: 14px; }
@media (max-width: 520px) {
  .pr-stage { height: 380px; }
  .pr-scrap { width: 136px; font-size: 11.5px; }
}

/* Voice memo: say it once, it's handled */
.mm-stage { margin-top: 14px; }
.mm-rec {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 999px;
  background: var(--chart); border: 1px solid rgba(239, 230, 210, .14);
}
.mm-dot { width: 12px; height: 12px; border-radius: 50%; background: #E0715A; flex: none; }
.mm-stage.live .mm-dot { animation: rec 1s ease-in-out infinite; }
@keyframes rec { 50% { opacity: .3; } }
.mm-wave { flex: 1; display: flex; align-items: center; gap: 3px; height: 34px; }
.mm-wave i { flex: 1; height: 4px; border-radius: 2px; background: rgba(239, 230, 210, .3); transition: height .12s; }
.mm-stage.live .mm-wave i { background: var(--brass); }
.mm-time { font: 700 14px/1 var(--mono); color: var(--muted); }
.mm-words { margin-top: 16px; min-height: 3.4em; font: 400 clamp(20px, 3.6vw, 26px)/1.35 var(--serif); }
.mw { opacity: .14; transition: opacity .2s, background-color .3s, color .3s; border-radius: 3px; }
.mw.heard { opacity: 1; }
.mw.mark[data-k] { color: var(--ink); }
.mw.mark[data-k="a"] { background: #E0A458; }
.mw.mark[data-k="b"] { background: #8FBFB7; }
.mw.mark[data-k="c"] { background: #E9D6A8; }
.mm-cards { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.mm-card {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center;
  padding: 10px 12px 10px 14px; border-radius: 10px;
  background: var(--chart); border: 1px solid rgba(239, 230, 210, .12);
  border-left: 4px solid var(--k, var(--brass));
  opacity: 0; transform: translateX(-14px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.mm-card[data-k="a"] { --k: #E0A458; }
.mm-card[data-k="b"] { --k: #8FBFB7; }
.mm-card[data-k="c"] { --k: #E9D6A8; }
.mm-card.in { opacity: 1; transform: none; }
.mm-agent { grid-column: 1; font: 600 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--sea); }
.mm-card b { grid-column: 1; font: 600 14.5px/1.3 var(--sans); margin-top: 3px; }
.mm-meta { grid-column: 1; font-size: 12.5px; color: var(--muted); }
.mm-status {
  grid-column: 2; grid-row: 1 / span 3;
  padding: 6px 9px; border-radius: 999px; white-space: nowrap;
  font: 600 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase;
  background: var(--brass); color: var(--ink);
}
.mm-status.wait { background: transparent; color: var(--brass); border: 1px solid var(--brass); }
.mm-end { margin-top: 16px; }
@media (max-width: 480px) {
  .mm-card { grid-template-columns: 1fr; }
  .mm-status { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 6px; }
}

/* Little labels on stickers that do something */
.sticker-chip {
  position: absolute; right: -6px; bottom: 2px;
  padding: 4px 7px; border-radius: 999px;
  background: var(--brass); color: var(--ink);
  font: 700 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
  box-shadow: 0 4px 10px -2px rgba(0, 0, 0, .6);
  pointer-events: none;
}
.sticker.away { visibility: hidden; }

/* The compass, out for a lap */
.compass-runner {
  position: fixed; z-index: 60; left: 0; top: 0; pointer-events: none;
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .55));
}

/* ---------- Stickers: they drift, react when clicked, and can be dragged ---------- */
.stickers { position: absolute; inset: 0; z-index: 2; }
.sticker {
  position: absolute; left: var(--mx, var(--x)); top: var(--my, var(--y));
  width: 66px;
  transform: translate(var(--dx, 0px), var(--dy, 0px)) rotate(var(--r, 0deg));
  transition: transform .6s var(--ease);
  cursor: pointer;
  touch-action: manipulation;
  user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent;
}
.sticker:not(.keep) { display: none; }
.sticker.saying { z-index: 6; }
.sticker-art {
  width: 100%; height: auto;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .45));
  -webkit-user-drag: none; pointer-events: none;
  animation: drift var(--dur, 6s) ease-in-out var(--delay, 0s) infinite alternate;
}
@keyframes drift {
  0% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(4px, -8px) rotate(2.5deg); }
  100% { transform: translate(-4px, -2px) rotate(-2.5deg); }
}
.sticker.is-touched .sticker-art { animation: none; }
.sticker.nudge .sticker-art { animation: nudge .9s ease-in-out; }
@keyframes nudge {
  0%, 100% { transform: rotate(0deg) scale(1); }
  20% { transform: rotate(-9deg) scale(1.06); }
  45% { transform: rotate(7deg) scale(1.06); }
  70% { transform: rotate(-4deg) scale(1.02); }
}

/* what each sticker does when clicked */
.sticker .sticker-art.fx-spin { animation: fx-spin 1.1s cubic-bezier(.2, .8, .2, 1); }
.sticker .sticker-art.fx-buzz { animation: fx-buzz .6s linear; }
.sticker .sticker-art.fx-wiggle { animation: fx-wiggle .7s ease-in-out; }
.sticker .sticker-art.fx-pop { animation: fx-pop .5s var(--ease); }
.sticker .sticker-art.fx-hop { animation: fx-hop .7s var(--ease); }
.sticker .sticker-art.fx-flip { animation: fx-flip .8s var(--ease); }
@keyframes fx-spin { from { transform: rotate(0deg); } to { transform: rotate(720deg); } }
@keyframes fx-buzz {
  0%, 100% { transform: translateX(0) rotate(0deg); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-4px) rotate(-3deg); }
  20%, 40%, 60%, 80% { transform: translateX(4px) rotate(3deg); }
}
@keyframes fx-wiggle {
  0%, 100% { transform: rotate(0deg); }
  20% { transform: rotate(-10deg); } 40% { transform: rotate(9deg); }
  60% { transform: rotate(-6deg); } 80% { transform: rotate(4deg); }
}
@keyframes fx-pop {
  0% { transform: scale(1); } 40% { transform: scale(1.2); }
  70% { transform: scale(.94); } 100% { transform: scale(1); }
}
@keyframes fx-hop {
  0%, 100% { transform: translateY(0); } 35% { transform: translateY(-22px) rotate(-4deg); }
  60% { transform: translateY(0); } 80% { transform: translateY(-7px); }
}
@keyframes fx-flip {
  from { transform: perspective(500px) rotateY(0deg); }
  to { transform: perspective(500px) rotateY(360deg); }
}

.sticker-say {
  position: absolute; bottom: calc(100% + 8px); left: 50%;
  transform: translateX(-50%) rotate(calc(-1 * var(--r, 0deg)));
  translate: 0 6px;
  background: var(--parchment); color: var(--ink);
  font: 600 12px/1.3 var(--mono); letter-spacing: .02em;
  padding: 8px 11px; border-radius: 10px;
  white-space: nowrap;
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .6);
  opacity: 0; pointer-events: none;
  transition: opacity .25s var(--ease), translate .3s var(--ease);
}
/* near an edge, anchor the bubble to the sticker's inner side so it stays on screen */
.sticker.say-left .sticker-say { left: 6px; transform: rotate(calc(-1 * var(--r, 0deg))); }
.sticker.say-right .sticker-say { left: auto; right: 6px; transform: rotate(calc(-1 * var(--r, 0deg))); }
.sticker.saying .sticker-say { opacity: 1; translate: 0 0; }

/* ---------- The board ---------- */
.board-sec {
  padding: 112px var(--gutter);
  border-top: 1px solid rgba(239, 230, 210, .06);
  background-image:
    linear-gradient(rgba(110, 154, 147, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(110, 154, 147, .05) 1px, transparent 1px);
  background-size: 48px 48px;
}
.board-wrap { max-width: 980px; margin: 0 auto; }
.board-housing {
  --cw: clamp(8px, calc((100vw - 2 * var(--gutter) - 28px - 24px) / 29 - 1px), 22px);
  --gap: 1px;
  background: var(--ink-deep);
  border: 1px solid rgba(239, 230, 210, .1);
  border-radius: 16px;
  padding: 22px 14px 20px;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .03), 0 40px 80px -40px rgba(0, 0, 0, .9);
  position: relative;
}
.board-housing::before, .board-housing::after {
  content: ""; position: absolute; top: 10px; width: 6px; height: 6px; border-radius: 50%;
  background: #2A2F36; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15);
}
.board-housing::before { left: 10px; }
.board-housing::after { right: 10px; }
.board-top {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 20px;
  margin-bottom: 22px;
}
.board-title { line-height: 1; }
.board { border-collapse: separate; border-spacing: 0; width: auto; }
.board th {
  text-align: left; padding: 0 12px 10px 0;
  font: 500 11px/1 var(--mono); letter-spacing: .14em; color: var(--sea);
}
.board td { padding: 0 12px 6px 0; white-space: nowrap; }
.board th:last-child, .board td:last-child { padding-right: 0; }
.board .c-time { display: none; }
.board tbody tr:nth-child(n+5) { display: none; }
.flaps { display: inline-flex; gap: var(--gap); }
.flap {
  position: relative; display: inline-block;
  width: var(--cw); height: calc(var(--cw) * 1.55);
  border-radius: 2px;
  background: linear-gradient(#1C232D 0 50%, #151B23 50% 100%);
  color: var(--parchment);
  font: 600 calc(var(--cw) * 1.36)/calc(var(--cw) * 1.55) var(--mono);
  text-align: center;
  overflow: hidden;
  perspective: 120px;
}
.flap::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px;
  background: rgba(0, 0, 0, .75);
}
.flap::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 50%;
  background: #222A35; transform-origin: 50% 100%;
  transform: rotateX(90deg); opacity: 0;
}
.flap.tick::before { animation: flip .07s linear; }
@keyframes flip {
  from { transform: rotateX(0deg); opacity: 1; }
  to { transform: rotateX(90deg); opacity: 1; }
}
.c-status .flap { color: var(--brass); }
.flaps.big .flap { --cw: clamp(16px, 5.6vw, 34px); color: var(--parchment); }
.board-note { margin-top: 22px; max-width: 60ch; color: var(--muted); font-size: 15px; }
.board-note strong { color: var(--parchment); font-weight: 600; }

/* ---------- Agents at work: a bird's-eye workflow, animated ---------- */
.work {
  padding: 96px var(--gutter);
  border-top: 1px solid rgba(239, 230, 210, .06);
  background-image: url("contours.svg");
  background-size: cover; background-position: center;
}
.work-wrap { max-width: 1120px; margin: 0 auto; }
.work-head { max-width: 560px; }
.work-head h2 { margin-top: 12px; font: 400 clamp(36px, 6vw, 56px)/1.05 var(--serif); }
.work-head p:last-child { margin-top: 14px; color: var(--muted); font-size: 18px; }

.flow {
  margin-top: 36px;
  background: rgba(20, 32, 48, .55);
  border: 1px solid rgba(239, 230, 210, .1);
  border-radius: 18px;
  padding: 10px;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9);
}
.flow-canvas svg { display: block; width: 100%; height: auto; }
.flow-canvas svg.tall { max-width: 460px; margin: 0 auto; }
.flow-canvas svg.tall .label { font-size: 14px; letter-spacing: .04em; }
.flow-canvas svg.tall .count { font-size: 12px; }

.flow-canvas .edge { fill: none; stroke: var(--sea); stroke-opacity: .32; stroke-width: 1.5; stroke-dasharray: 3 6; transition: stroke .3s, stroke-opacity .3s; }
.flow-canvas .edge.talk { stroke: var(--parchment); stroke-opacity: .2; stroke-dasharray: 2 4; }
.flow-canvas .edge.ask { stroke: var(--brass); stroke-opacity: .35; }
.flow-canvas .edge.hot { stroke: var(--brass); stroke-opacity: .85; }

.flow-canvas .tile { fill: var(--chart); stroke: rgba(239, 230, 210, .28); stroke-width: 1.2; }
.flow-canvas .disc { fill: var(--chart); stroke: rgba(239, 230, 210, .22); stroke-width: 1.2; }
.flow-canvas .ring { fill: none; stroke: var(--brass); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.flow-canvas .glow { fill: var(--brass); opacity: 0; transition: opacity .4s; }
.flow-canvas .node.working .glow { opacity: .16; }
.flow-canvas .icon { fill: none; stroke: var(--parchment); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.flow-canvas .agent .icon, .flow-canvas .hub .icon { stroke: var(--brass); }
.flow-canvas .label { fill: var(--muted); font: 600 10.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.flow-canvas .hub .label, .flow-canvas .decision .label { fill: var(--parchment); }

.flow-canvas .rose { transform-box: fill-box; transform-origin: center; }
.flow-canvas .hub.working .rose { animation: spin 2.4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.flow-canvas .diamond { fill: var(--chart); stroke: rgba(239, 230, 210, .4); stroke-width: 1.4; transition: stroke .3s, fill .3s; }
.flow-canvas .decision.asking .diamond { stroke: var(--brass); animation: ask 0.8s ease-in-out infinite; }
.flow-canvas .decision.approved .diamond { fill: var(--brass); stroke: var(--brass); }
.flow-canvas .decision .check { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transition: opacity .25s; }
.flow-canvas .decision.approved .check { opacity: 1; }
.flow-canvas .decision.approved .icon { opacity: 0; }
@keyframes ask { 50% { stroke-width: 3; } }

.flow-canvas .burst { fill: none; stroke: var(--brass); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.flow-canvas .output.shipped .burst { animation: burst .9s ease-out; }
.flow-canvas .output.shipped .tile { stroke: var(--brass); }
@keyframes burst { 0% { opacity: .9; transform: scale(.8); } 100% { opacity: 0; transform: scale(1.7); } }
.flow-canvas .count { fill: var(--brass); font: 700 10px var(--mono); }

.flow-canvas .pk-info { fill: var(--brass); }
.flow-canvas .pk-tail { fill: var(--brass); }
.flow-canvas .pk-talk, .flow-canvas .pk-talk-tail { fill: var(--parchment); }
.flow-canvas .edge.talk.hot { stroke: var(--parchment); stroke-opacity: .7; }
.flow-canvas .pk-ask { fill: var(--parchment); stroke: var(--brass); stroke-width: 1.5; }
.flow-canvas .pk-ship { fill: var(--parchment); stroke: var(--brass); stroke-width: 1.5; }

.work-foot { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; }
.flow-key { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font: 600 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.flow-key li { display: inline-flex; align-items: center; gap: 8px; }
.flow-key i { display: inline-block; width: 10px; height: 10px; }
.flow-key .k-info { border-radius: 50%; background: var(--brass); }
.flow-key .k-talk { border-radius: 50%; background: var(--parchment); width: 8px; height: 8px; }
.flow-key .k-ask { background: var(--parchment); outline: 1.5px solid var(--brass); transform: rotate(45deg) scale(.8); }
.flow-key .k-ship { background: var(--parchment); outline: 1.5px solid var(--brass); border-radius: 2px; }
.work-note { font-size: 13.5px; color: var(--muted); }

/* ---------- Who we are ---------- */
.who, .faq, .cta { padding-top: 112px; padding-bottom: 32px; }
.split h2 {
  font-family: var(--serif); font-size: clamp(38px, 6vw, 56px); line-height: 1.05;
  margin-top: 12px;
}
.split .intro { margin-top: 16px; color: var(--muted); max-width: 46ch; }
.people { list-style: none; margin: 44px 0 0; padding: 0; display: grid; gap: 40px; }
.person { display: grid; grid-template-columns: 104px 1fr; gap: 22px; align-items: start; }
.portrait {
  display: block; width: 92px; height: 92px; border-radius: 50%;
  object-fit: cover; background: var(--brass);
  box-shadow:
    0 0 0 3px var(--ink),
    0 0 0 5px var(--brass),
    0 12px 22px 2px rgba(0, 0, 0, .45);
  margin: 6px 0 0 6px;
}
.person h3 { font: 600 20px/1.2 var(--sans); letter-spacing: -.01em; }
.person .mono-label { display: block; margin-top: 6px; }
.person p { margin-top: 10px; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq-list { margin-top: 36px; border-top: 1px solid var(--faint); }
.faq details { border-bottom: 1px solid var(--faint); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0;
  font: 500 18px/1.35 var(--sans);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none;
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid rgba(239, 230, 210, .22);
  display: grid; place-items: center;
  font: 400 18px/1 var(--mono); color: var(--brass);
  transition: transform .35s var(--ease), border-color .2s;
}
.faq summary:hover::after { border-color: var(--brass); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 44px 24px 0; color: var(--muted); max-width: 60ch; }

/* ---------- Closing CTA ---------- */
.cta { padding-bottom: 128px; }
.cta h2 { font-size: clamp(44px, 8vw, 72px); line-height: 1.02; max-width: 12ch; }
.cta h2 em { color: var(--brass); }
.cta p:not(.fine) { margin-top: 22px; max-width: 40ch; color: var(--muted); font-size: 18.5px; }
.cta .hero-cta { margin-top: 34px; }

/* ---------- Footer ---------- */
.foot {
  padding: 40px var(--gutter) 36px;
  border-top: 1px solid rgba(239, 230, 210, .08);
  display: grid; gap: 22px;
}
.foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; }
.foot .legal { font-size: 14px; color: var(--muted); }
.foot nav { display: flex; gap: 22px; }
.foot nav a { display: inline-block; padding: 11px 0; font-size: 14px; color: var(--muted); text-decoration: none; }
.foot nav a:hover { color: var(--parchment); text-decoration: underline; text-underline-offset: 4px; }
.foot .mono-label { font-size: 11px; color: var(--muted); }

/* ---------- Tablet and up ---------- */
@media (min-width: 720px) {
  :root { --gutter: 32px; }
  .nav .btn .long { display: inline; }
  .nav .btn .short { display: none; }
  .hero-art { height: min(90vw, 760px); }
  .sticker { width: 78px; cursor: grab; touch-action: none; }
  .sticker.is-dragging {
    cursor: grabbing; z-index: 5;
    transition: none;
    transform: translate(var(--dx, 0px), var(--dy, 0px)) rotate(calc(var(--r, 0deg) * .4)) scale(1.08);
  }
  .sticker.is-dragging .sticker-art { filter: drop-shadow(0 22px 26px rgba(0, 0, 0, .5)); }
  .deck-hint .desk { display: inline; }
  .deck-hint .touch { display: none; }
  .how { padding-top: 128px; padding-bottom: 120px; }
  .how-stage { padding-top: 210px; }
  .phase-row { max-width: 560px; margin-left: auto; margin-right: auto; }
  .ga-bal, .ga-speed { width: 74px; }
  .sticker-chip { font-size: 11px; padding: 5px 8px; }
  .board-housing { --cw: clamp(9px, calc((100vw - 2 * var(--gutter) - 56px - 48px) / 34 - 2px), 22px); --gap: 2px; padding: 28px 28px 24px; }
  .board .c-time { display: table-cell; }
  .board tbody tr:nth-child(n+5) { display: table-row; }
  .board th, .board td { padding-right: 18px; }
  .slide .full, .slide .typed { font-size: 15.5px; }
  .work { padding: 112px var(--gutter); }
  .flow { padding: 18px; }
  .card { padding: 20px 26px 26px; }
}

/* ---------- Desktop: two columns, the chart stays put on the right ---------- */
@media (min-width: 1000px) {
  :root { --gutter: 40px; }
  .nav { padding: 0 40px; }
  .nav-links { display: flex; }
  .phase-row { max-width: none; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px; }
  .sticker { width: clamp(96px, 9vw, 136px); left: var(--x); top: var(--y); }
  .sticker:not(.keep) { display: block; }
  .how-stage { min-height: 74vh; padding-top: 0; padding-bottom: 48px; }
  .phase + .phase::before { left: -44px; top: 50%; width: 44px; height: 0; border-left: 0; border-top: 2px dashed rgba(224, 164, 88, .7); }
  .phase + .phase::after { left: -12px; top: calc(50% - 5px); border: 6px solid transparent; border-left-color: var(--brass); border-top-color: transparent; }
  .split { width: 50%; padding-left: clamp(40px, 6vw, 96px); padding-right: 32px; }
  /* The hero runs a little past the first screen so the "How it works" cue
     sits just below the fold; the bottom padding keeps the content centred
     in the first screen. */
  .hero {
    min-height: calc(100vh + 110px); display: flex; flex-direction: column; justify-content: center;
    padding-top: calc(var(--nav-h) + 24px); padding-bottom: calc(72px + 110px);
  }
  .hero-title { font-size: clamp(52px, 5vw, 78px); }
  .scroll-cue { display: inline-flex; }
  .hero-art {
    position: fixed; z-index: 0;
    top: 0; right: 0; margin: 0;
    width: 50vw; height: 100vh;
  }
  .hero-chart {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18%);
    mask-image: linear-gradient(90deg, transparent 0, #000 18%);
  }
  .atlas { right: -6%; bottom: -8%; height: 100%; }
  .who, .faq, .cta { padding-top: 136px; }
  .cta { min-height: 88vh; display: flex; flex-direction: column; justify-content: center; padding-bottom: 136px; }
  .foot { padding: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .sticker-art { animation: none !important; }
  .caret { display: none; }
  .pop[open] { animation: none; }
  .mm-stage.live .mm-dot { animation: none; }
  .br-cup i { animation: none; }
  .pr-scrap, .pr-doc { transition: none; }
  .board-dialog[open] { animation: none; }
}
