/* Bloomright landing page.
   One motif: the seedling mark's leaf, a lens with two rounded and two sharp corners (border-radius: R 0).
   Agents are the leaves (green). People are the root (red circle). */

:root {
  --ground: #0D1117;
  --raised: #161B22;
  --ink: #E6EDF3;
  --ink-2: #A9B4C0;
  --leaf: #3FB950;
  --stem: #14532D;
  --root: #CE422B;
  --white: #FFFFFF;

  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace; /* taste-skill-ignore: code only */

  /* five steps */
  --s1: clamp(48px, 5vw, 84px);
  --s2: clamp(30px, 3.4vw, 54px);
  --s3: 20px;
  --s4: 17px;
  --s5: 15px;

  --m: clamp(16px, 4.4vw, 64px);
  --sec: clamp(88px, 10vw, 160px);
  --gap: 24px;
  --r: 24px;

  --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;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font: 400 var(--s4)/1.55 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, dl, dd, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
code, pre { font-family: var(--mono); font-size: inherit; }
p code, dd code, li code { color: var(--white); }
a { color: inherit; }
::selection { background: var(--leaf); color: var(--ground); }
:focus-visible { outline: 3px solid var(--leaf); outline-offset: 3px; }

h1, h2 { font-weight: 600; letter-spacing: -0.025em; line-height: 1.04; text-wrap: balance; }
h2 { font-size: var(--s2); }
h3 { font-size: var(--s3); font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }

.skip { position: absolute; left: var(--m); top: -100px; z-index: 20; background: var(--leaf); color: var(--ground); padding: 10px 16px; border-radius: 12px 0; }
.skip:focus { top: 12px; }

/* ---------- controls: the leaf-cut button ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px;
  background: var(--leaf); color: var(--ground); font: 600 var(--s4)/1 var(--sans); text-decoration: none;
  border: 0; border-radius: var(--r) 0; cursor: pointer;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease;
}
.button:active { transform: scale(0.97); }
.button-sm { min-height: 44px; padding: 0 20px; font-size: var(--s5); border-radius: 16px 0; }
.link { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.25em; text-decoration-thickness: 0.08em; transition: text-decoration-color var(--t-hover) ease, color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) {
  .button:hover { background: #56D364; }
  .link:hover { text-decoration-color: currentColor; color: var(--white); }
}

/* leaf bullets: a lens for agents, a circle for people */
.who::before, .points h3::before {
  content: ""; display: inline-block; width: 0.6em; height: 0.6em; margin-right: 0.5em; vertical-align: 0.05em;
  background: var(--leaf); border-radius: 100% 0;
}
.who.human::before { background: var(--root); border-radius: 50%; }
.who.server::before { background: var(--ink-2); }

/* ---------- nav ---------- */
.nav { position: absolute; inset: 0 0 auto; z-index: 5; display: flex; align-items: center; justify-content: space-between; padding: 24px var(--m); }
.nav nav { display: flex; align-items: center; gap: 32px; font-size: var(--s5); }
.nav .link { text-decoration-color: transparent; }

/* ---------- hero: the giant leaf ---------- */
.hero {
  position: relative; overflow: hidden; min-height: max(100svh, 720px);
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: center;
  padding: 120px var(--m) 96px;
}
.hero-leaf {
  position: absolute; width: 124vh; height: 124vh; left: calc(80% - 62vh); top: calc(55% - 62vh);
  background: var(--stem); border-radius: 100% 0;
}
.hero-copy { position: relative; grid-column: 1 / 7; }
.hero h1 { font-size: var(--s1); max-width: 12.5em; }
.lede { font-size: var(--s3); line-height: 1.5; max-width: 30em; margin-top: 36px; }
.hero-copy .button { margin-top: 36px; }
.hero-term { position: relative; grid-column: 7 / 13; justify-self: end; width: 100%; max-width: 640px; }

.term { background: var(--ground); border-radius: var(--r) 0; padding: 28px 30px; color: var(--ink); }
.term pre { margin: 0; font-size: 14.5px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.term .c, .macro .c { color: #8B949E; }
.p { color: var(--leaf); user-select: none; }
.r { color: #79C0FF; }
.ok { color: var(--leaf); font-weight: 500; }

.lines .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.lines [data-line] { display: block; }

/* ---------- problem ---------- */
.problem, .how, .safety, .dogfood { padding: var(--sec) var(--m); }
.problem { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 48px; align-items: start; }
.problem-head { grid-column: 1 / 6; }
.problem-head p { margin-top: 28px; max-width: 34em; }
.points { display: grid; grid-template-columns: 1fr 1fr; gap: 48px var(--gap); }
.problem .points { grid-column: 7 / 13; padding-top: 8px; }
.points p { margin-top: 10px; }

/* ---------- how: many into one ---------- */
.how { background: var(--raised); }
.how-head { max-width: 40em; }
.how-head p { margin-top: 24px; font-size: var(--s3); }
.diagram { margin: 64px 0 56px; }
.many { width: 100%; height: auto; overflow: visible; }
.many .p1 { fill: var(--ink); fill-opacity: 0.28; }
.many .p2 { fill: var(--leaf); fill-opacity: 0.45; }
.many .p3 { fill: var(--leaf); fill-opacity: 0.7; }
.many .a { fill: var(--leaf); }
.many .root { fill: var(--root); }
.phases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.phase h3 { font-size: var(--s2); letter-spacing: -0.025em; margin-bottom: 24px; }
.phase dt { font-weight: 600; }
.phase dd { margin: 4px 0 24px; max-width: 30em; }
.key { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: var(--s5); color: var(--ink-2); }
.shot { margin-top: 64px; }
.shot img { width: 100%; height: auto; border-radius: var(--r) 0; background: var(--ground); }
.shot figcaption { margin-top: 14px; font-size: var(--s5); color: var(--ink-2); max-width: 60em; }

/* ---------- exit codes: one control, blown up ---------- */
.codes {
  position: relative; overflow: hidden; min-height: 92svh; background: var(--stem); color: var(--white);
  display: grid; grid-template-rows: auto 1fr; padding: var(--sec) var(--m) 0;
  transition: background-color 420ms var(--ease-out);
}
.codes:has(input:not([value="0"]):checked) { background: var(--root); }
.codes-head { max-width: 36em; }
.codes-head p { margin-top: 20px; font-size: var(--s3); }
.codes-head code { color: inherit; }
.code-word { display: none; }
.codes:has(input[value="0"]:checked) .code-word[data-code="0"], .codes:has(input[value="2"]:checked) .code-word[data-code="2"],
.codes:has(input[value="3"]:checked) .code-word[data-code="3"], .codes:has(input[value="4"]:checked) .code-word[data-code="4"],
.codes:has(input[value="5"]:checked) .code-word[data-code="5"], .codes:has(input[value="6"]:checked) .code-word[data-code="6"],
.codes:has(input[value="7"]:checked) .code-word[data-code="7"] { display: inline; }

.seg {
  --i: 0; font-size: clamp(56px, 7.2vw, 116px); align-self: end; justify-self: end;
  margin: 64px calc(-1 * var(--m) - 1.4em) 0 0; padding: 0; border: 0; min-width: 0;
}
.seg-cmd { font: 400 0.17em/1.4 var(--sans); padding: 0; margin-bottom: 0.25em; color: var(--white); opacity: 0.85; }
.seg-track {
  position: relative; display: flex; padding: 0.08em 1.4em 0.08em 0.08em;
  background: rgb(0 0 0 / 0.26); border-radius: 0.36em 0;
}
.seg label { position: relative; z-index: 1; width: 1.3em; height: 1.3em; display: grid; place-items: center; cursor: pointer; font-weight: 500; font-variant-numeric: tabular-nums; line-height: 1; }
.seg label span { transition: color 300ms var(--ease-out), transform var(--t-press) var(--ease-out); }
.seg label:active span { transform: scale(0.9); }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg label:has(input:focus-visible) { outline: 4px solid var(--white); outline-offset: -0.12em; border-radius: 0.3em 0; }
.seg label:has(input:checked) span { color: var(--stem); }
.codes:has(input:not([value="0"]):checked) .seg label:has(input:checked) span { color: var(--root); }
.seg-thumb {
  position: absolute; left: 0.08em; top: 0.08em; width: 1.3em; height: 1.3em; background: var(--white); border-radius: 0.3em 0;
  transform: translateX(calc(var(--i) * 1.3em)); transition: transform 460ms var(--ease-expo);
}
.seg:has(input[value="2"]:checked) { --i: 1; } .seg:has(input[value="3"]:checked) { --i: 2; } .seg:has(input[value="4"]:checked) { --i: 3; }
.seg:has(input[value="5"]:checked) { --i: 4; } .seg:has(input[value="6"]:checked) { --i: 5; } .seg:has(input[value="7"]:checked) { --i: 6; }
.seg-out { font-size: 0.3em; line-height: 1.25; font-weight: 500; max-width: 26em; min-height: 3.9em; padding: 0.6em 0 1.2em; letter-spacing: -0.015em; }
.seg-out span { display: none; }
.seg:has(input[value="0"]:checked) .seg-out [data-code="0"], .seg:has(input[value="2"]:checked) .seg-out [data-code="2"],
.seg:has(input[value="3"]:checked) .seg-out [data-code="3"], .seg:has(input[value="4"]:checked) .seg-out [data-code="4"],
.seg:has(input[value="5"]:checked) .seg-out [data-code="5"], .seg:has(input[value="6"]:checked) .seg-out [data-code="6"],
.seg:has(input[value="7"]:checked) .seg-out [data-code="7"] { display: block; animation: out-in 420ms var(--ease-out); }
@keyframes out-in { from { opacity: 0; transform: translateY(0.3em); } }

/* ---------- CLI: close-ups on a board ---------- */
.cli { padding: var(--sec) var(--m); }
.board { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: 104px; gap: 8px; }
.tile {
  position: relative; overflow: hidden; border-radius: var(--r) 0; padding: 28px;
  display: flex; flex-direction: column; justify-content: flex-end; background: var(--raised); color: var(--ink); text-decoration: none;
}
.t-head { grid-column: 1 / 7; grid-row: span 3; justify-content: flex-start; background: var(--ground); padding-left: 0; }
.t-head p { margin-top: 24px; font-size: var(--s3); max-width: 28em; }
.t-exit { grid-column: 7 / 13; grid-row: span 3; background: var(--raised); color: var(--ink); }
.t-exit .m-big { color: var(--root); }
.t-typed { grid-column: 1 / 7; grid-row: span 5; }
.t-queue { grid-column: 7 / 13; grid-row: span 5; background: var(--stem); }
.t-git { grid-column: 1 / 5; grid-row: span 4; background: var(--leaf); color: var(--ground); }
.t-try { grid-column: 5 / 9; grid-row: span 4; }
.t-events { grid-column: 9 / 13; grid-row: span 4; background: var(--stem); }
.t-mcp { grid-column: 1 / 7; grid-row: span 3; background: var(--stem); }
.t-update { grid-column: 7 / 13; grid-row: span 3; }
.cap { position: relative; z-index: 1; background: inherit; padding-top: 14px; max-width: 34em; }
.tile .cap { background: transparent; }
.cap p { margin-top: 8px; }
.t-git code, .t-git .p { color: var(--ground); }
.t-exit p code { color: inherit; }
.macro { position: absolute; top: 24px; left: 28px; font-family: var(--mono); /* taste-skill-ignore: data-ui code */ white-space: pre; line-height: 1.35; }
.macro pre { margin: 0; font-size: 26px; }
.t-typed .macro pre { font-size: 24px; }
.t-git .macro { left: 28px; top: 20px; }
.t-git .macro pre { font-size: 36px; line-height: 1.12; white-space: pre; font-weight: 500; }
.t-events .macro pre, .t-mcp .macro pre, .t-update .macro pre { font-size: 48px; font-weight: 500; letter-spacing: -0.02em; }
.t-events .macro pre { font-size: 40px; }
.t-mcp .macro, .t-update .macro { top: 22px; }
.t-exit .macro { top: -0.12em; right: 28px; left: auto; display: flex; align-items: flex-start; gap: 0.2em; font-size: 26px; }
.t-exit .m-q { padding-top: 1.8em; opacity: 0.85; }
.t-exit .m-big { font: 500 300px/1 var(--sans); letter-spacing: -0.04em; margin-right: -0.05em; }
.t-exit .cap { max-width: 24em; }
.tile-pic { position: absolute; top: 28px; left: 28px; width: 150%; max-width: none; height: auto; border-radius: 16px 0; }
.t-queue .cap { background: var(--stem); margin: 0 -28px -28px; padding: 22px 28px 28px; max-width: none; }
.tile:not(.t-queue) .cap { background: transparent; }
@media (hover: hover) and (pointer: fine) {
  .t-exit { transition: background-color var(--t-hover) ease; }
  .t-exit:hover { background: #1C232C; }
  .tile .macro, .tile-pic { transition: transform 600ms var(--ease-out); }
  .tile:hover .macro, .tile:hover .tile-pic { transform: translateX(-12px); }
}
/* CLI board: the tile under the pointer grows a little and the rest step back. The reveal's
   opacity/transform timings are restated so this rule doesn't cut them short. */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .board .tile:not(.t-head) { transition: opacity 700ms var(--ease-out) var(--d, 0ms), transform 900ms var(--ease-expo) var(--d, 0ms), scale 520ms var(--ease-out), filter 320ms ease, background-color var(--t-hover) ease; }
  .board .tile:not(.t-head):hover, .board .tile:not(.t-head):focus-visible { scale: 1.03; z-index: 2; }
  .board:has(.tile:not(.t-head):hover) .tile:not(.t-head):not(:hover) { filter: brightness(0.72) saturate(0.85); }
}

/* ---------- safety ---------- */
.safety { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 72px; align-items: start; }
.safety-head { grid-column: 1 / 6; align-self: center; }
.safety-head p { margin-top: 28px; font-size: var(--s3); max-width: 26em; }
.shot-inbox { grid-column: 6 / 13; margin: 0; }
.points-six { grid-column: 1 / 13; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px var(--gap); }

/* ---------- built on itself ---------- */
.dogfood { background: var(--raised); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; }
.dog-head { grid-column: 1 / 13; }
.figures { margin-top: 40px; font-size: clamp(24px, 2.5vw, 36px); line-height: 1.25; letter-spacing: -0.015em; max-width: 32em; color: var(--ink-2); }
.figures b { color: var(--white); font-weight: 600; font-variant-numeric: tabular-nums; }
.shot-flow { grid-column: 1 / 13; margin-top: 72px; }
.shot-flow, .shot-flow img { border-radius: var(--r) 0; }
.shot-flow { overflow: hidden; }
.dog-foot { grid-column: 1 / 6; margin-top: 64px; }
.dog-foot .fine { margin-top: 20px; }
.fine { font-size: var(--s5); color: var(--ink-2); }
.shot-evidence { grid-column: 7 / 13; margin-top: 64px; }

/* ---------- waitlist: first step, already open ---------- */
.join {
  min-height: 90svh; background: var(--leaf); color: var(--ground);
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: center;
  padding: var(--sec) var(--m);
}
.join-copy { grid-column: 1 / 6; align-self: center; }
.closer { font-size: var(--s1); line-height: 0.98; letter-spacing: -0.035em; }
.join-copy p { margin-top: 32px; font-size: var(--s3); max-width: 24em; }
.dialog {
  grid-column: 7 / 12; width: 100%; max-width: 480px; justify-self: end;
  background: var(--ground); color: var(--ink); border-radius: var(--r) 0; padding: 32px;
  box-shadow: 0 24px 60px -24px rgb(13 17 23 / 0.55); /* taste-skill-ignore: open dialog, data-ui */
  display: grid; gap: 6px;
}
.dialog-title { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 14px; }
.dialog label, .dialog legend { font-size: 14px; font-weight: 500; color: var(--ink); }
.dialog .opt { color: var(--ink-2); font-weight: 400; margin-left: 4px; }
.dialog input, .dialog textarea {
  width: 100%; min-height: 46px; padding: 11px 14px; margin-bottom: 12px; font: 400 16px/1.4 var(--sans); color: var(--ink);
  background: var(--raised); border: 1px solid #30363D; border-radius: 12px 0;
  transition: border-color var(--t-hover) ease, background-color var(--t-hover) ease;
}
.dialog textarea { resize: vertical; min-height: 84px; }
.dialog input::placeholder, .dialog textarea::placeholder { color: #8B949E; }
.dialog input:focus-visible, .dialog textarea:focus-visible { outline: 2px solid var(--leaf); outline-offset: 1px; border-color: var(--leaf); }
.dialog input[aria-invalid="true"] { border-color: var(--root); }
.dialog .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pick { border: 0; padding: 0; margin: 0 0 12px; min-width: 0; }
.pick legend { padding: 0; margin-bottom: 6px; }
.pick-track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 4px; background: var(--raised); border-radius: 12px 0; }
.pick label { position: relative; display: grid; place-items: center; min-height: 40px; border-radius: 9px 0; cursor: pointer; transition: background-color var(--t-hover) ease, color var(--t-hover) ease; font-variant-numeric: tabular-nums; }
.pick input { position: absolute; opacity: 0; inset: 0; margin: 0; min-height: 0; cursor: pointer; }
.pick label:has(input:checked) { background: var(--leaf); color: var(--ground); }
.pick label:has(input:focus-visible) { outline: 2px solid var(--leaf); outline-offset: 1px; }
@media (hover: hover) and (pointer: fine) { .pick label:hover:not(:has(input:checked)) { background: #21262D; } }
.dialog .button { width: 100%; margin-top: 6px; }
.dialog .button:disabled { opacity: 0.6; cursor: progress; }
.status { font-size: 14px; min-height: 1.4em; margin-top: 6px; }
.status.ok { color: var(--leaf); }
.status.err { color: #FF7B72; }
.dialog-fine { font-size: 13px; color: var(--ink-2); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; } /* taste-skill-ignore: honeypot, off-screen */

/* ---------- footer: the mark, built large ---------- */
.foot { padding: var(--sec) var(--m) 40px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 56px; align-items: end; }
.ascii { grid-column: 1 / 7; width: 100%; max-width: min(620px, 66svh); }
.ascii canvas { display: none; width: 100%; height: auto; aspect-ratio: 1; }
.ascii.is-live canvas { display: block; }
.ascii.is-live .bigmark { display: none; }
.bigmark { width: 100%; max-width: 34svh; min-width: 220px; height: auto; overflow: visible; }
.ascii-toggle { display: none; margin-top: 8px; font: 500 var(--s5)/1 var(--sans); color: var(--ink-2); background: transparent; border: 0; padding: 10px 0; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.ascii.is-live .ascii-toggle { display: block; }
.ascii-toggle:hover { color: var(--ink); }
.bm-stem { stroke: var(--ink); }
.bm-leaf { fill: var(--leaf); }
.bm-root { stroke: var(--root); }
.bm-l { transform-origin: 21px 33px; } .bm-r { transform-origin: 43px 20px; }
.foot-cols { grid-column: 7 / 13; display: grid; gap: 20px; }
.foot-cols nav { display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: var(--s5); }
.foot-last { grid-column: 1 / 13; display: flex; justify-content: space-between; align-items: center; font-size: var(--s5); color: var(--ink-2); }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .hero [data-line] { transform: translateY(105%); animation: rise 900ms var(--ease-expo) forwards; animation-delay: calc(120ms + var(--i) * 110ms); }
  .js .hero [data-load] { opacity: 0; transform: translateY(14px); animation: rise-fade 600ms var(--ease-out) forwards; animation-delay: var(--d); }
  .js .hero-leaf { transform: translate(10%, 6%) rotate(-6deg) scale(0.94); animation: leaf-in 1500ms var(--ease-expo) 60ms forwards, leaf-sway 16s var(--ease-in-out) 1600ms infinite alternate; }
  .js .hero-term { opacity: 0; transform: translateY(18px); animation: rise-fade 700ms var(--ease-out) 380ms forwards; }
  .js .tl { opacity: 0; animation: fade 220ms linear forwards; animation-delay: calc(700ms + var(--n) * 130ms); }


  .js [data-diagram] use, .js [data-diagram] circle { opacity: 0; transition: opacity 500ms var(--ease-out); transition-delay: var(--d); }
  .js [data-diagram].is-in use, .js [data-diagram].is-in circle { opacity: 1; }

  .js .tile.is-in .macro { animation: macro-in 1100ms var(--ease-expo) both; animation-delay: calc(var(--d, 0ms) + 120ms); }

  .js .shutter img { clip-path: inset(0 0 100% 0); transform: scale(1.12); transition: clip-path 1100ms var(--ease-in-out), transform 1500ms var(--ease-soft); }
  .js .shutter.is-in img { clip-path: inset(0); }
  .js .shutter.is-in img { transform: none; }


  .js .foot .bm-leaf { transform: scale(0.2); opacity: 0; transition: transform 1200ms var(--ease-expo), opacity 400ms ease; }
  .js .foot .bm-r { transition-delay: 160ms; }
  .js .foot.is-in .bm-leaf { transform: none; opacity: 1; }
}
/* text reveals: wider screens only, so phone readers never wait on an observer */
@media (prefers-reduced-motion: no-preference) and (min-width: 721px) {
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out) var(--d, 0ms), transform 900ms var(--ease-expo) var(--d, 0ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js [data-reveal-list] > li { opacity: 0; transform: translateY(20px); transition: opacity 600ms var(--ease-out), transform 800ms var(--ease-expo); }
  .js [data-reveal-list].is-in > li { opacity: 1; transform: none; }
  .js [data-reveal-list] > li:nth-child(2) { transition-delay: 80ms; } .js [data-reveal-list] > li:nth-child(3) { transition-delay: 160ms; }
  .js [data-reveal-list] > li:nth-child(4) { transition-delay: 240ms; } .js [data-reveal-list] > li:nth-child(5) { transition-delay: 320ms; }
  .js [data-reveal-list] > li:nth-child(6) { transition-delay: 400ms; }
  .js .join .dialog { opacity: 0; transform: translateY(40px); transition: opacity 700ms var(--ease-out) 120ms, transform 1000ms var(--ease-expo) 120ms; }
  .js .join.is-in .dialog { opacity: 1; transform: none; }
}
@keyframes rise { to { transform: none; } }
@keyframes rise-fade { to { opacity: 1; transform: none; } }
@keyframes fade { to { opacity: 1; } }
@keyframes leaf-in { to { transform: none; } }
@keyframes leaf-sway { from { transform: none; } to { transform: rotate(2.5deg) translateX(-1.5%); } }
@keyframes macro-in { from { transform: translateX(48px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- tablet ---------- */
@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; row-gap: 56px; align-content: start; padding-top: 140px; }
  .hero-copy, .hero-term { grid-column: 1; }
  .hero-term { justify-self: start; max-width: 680px; }
  .hero-leaf { width: 130vw; height: 130vw; left: -10vw; top: auto; bottom: -62vw; }
  .problem-head, .problem .points { grid-column: 1 / 13; }
  .problem-head p { max-width: 40em; }
  .board { grid-template-columns: 1fr 1fr; grid-auto-rows: auto; }
  .tile { grid-column: auto !important; grid-row: auto !important; min-height: 0; justify-content: space-between; gap: 28px; }
  .t-queue { min-height: 400px; justify-content: flex-end; }
  .tile .macro { position: relative; inset: auto; }
  .t-exit .macro { align-self: flex-end; margin: -0.3em -0.1em 0 0; }
  .t-exit .m-q { padding-top: 1.2em; }
  .t-exit .m-big { font-size: 200px; }
  .macro pre, .t-typed .macro pre { font-size: 18px; }
  .t-git .macro pre { font-size: 26px; }
  .t-events .macro pre, .t-mcp .macro pre, .t-update .macro pre { font-size: 32px; }
  .codes { min-height: 0; }
  .seg { margin-top: 120px; }
  .t-head { grid-column: 1 / -1 !important; min-height: 0; padding-bottom: 24px; }
  .safety-head, .shot-inbox { grid-column: 1 / 13; }
  .points-six { grid-template-columns: 1fr 1fr; }
  .dog-foot, .shot-evidence { grid-column: 1 / 13; }
  .join-copy { grid-column: 1 / 13; align-self: start; }
  .dialog { grid-column: 1 / 13; justify-self: start; margin-top: 56px; }
  .ascii { grid-column: 1 / 13; justify-self: center; }
  .foot-cols { grid-column: 1 / 13; }
}

/* ---------- phone ---------- */
@media (max-width: 720px) {
  :root { --s1: clamp(30px, 8.6vw, 44px); --s2: clamp(28px, 7.4vw, 36px); --s3: 18px; --s4: 16px; --gap: 16px; }
  .nav { padding: 18px var(--m); }
  .nav .wide { display: none; }
  .nav img { width: 128px; height: auto; }
  .hero { padding-top: 112px; min-height: 0; padding-bottom: 72px; row-gap: 40px; }
  .lede { margin-top: 24px; }
  .hero-copy .button { margin-top: 28px; }
  .hero-leaf { width: 130vw; height: 130vw; left: -15vw; bottom: -50vw; }
  .term { padding: 20px 18px; }
  .term pre { font-size: 12.5px; }
  .points, .points-six { grid-template-columns: 1fr; gap: 32px; }
  .phases { grid-template-columns: 1fr; gap: 16px; }
  .diagram { margin: 48px 0 40px; }
  .shot { margin-top: 48px; }
  .shot-change { overflow: hidden; border-radius: 16px 0; }
  .shot-change img { width: 220%; max-width: none; border-radius: 0; }
  .codes { min-height: 0; }
  .seg { margin-top: 72px; }
  .seg { font-size: 9.2vw; justify-self: start; margin-right: calc(-1 * var(--m) - 1.4em); }
  .seg-cmd code { color: inherit; font-size: inherit; }
  .seg-cmd { font-size: 12px; white-space: normal; max-width: 30ch; }
  .seg-out { font-size: 18px; max-width: none; padding-right: 2em; min-height: 4.4em; }
  .board { grid-template-columns: 1fr; }
  .tile { padding: 22px; }
  .t-queue { min-height: 340px; }
  .t-typed .macro pre { font-size: 15px; }
  .t-head { padding: 0 0 16px; min-height: 0; }
  .t-queue .cap { margin: 0 -22px -22px; padding: 20px 22px 22px; }
  .macro { left: 22px; }
  .t-exit .m-big { font-size: 180px; }
  .t-git .macro pre { font-size: 26px; }
  .t-events .macro pre, .t-mcp .macro pre, .t-update .macro pre { font-size: 30px; }
  .dialog { padding: 24px 20px; max-width: none; }
  .dialog .row { grid-template-columns: 1fr; gap: 0; }
  .join { min-height: 0; }
  .foot-last { gap: 16px; }
}
