/* ==========================================================================
   bird — landing page
   Zero dependencies. Tokens mirror the zinc scale the rest of the project uses.
   ========================================================================== */

/* --- fonts ---------------------------------------------------------------- */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(https://cdn.jsdelivr.net/fontsource/fonts/inter:vf@5.3.0/latin-wght-normal.woff2) format('woff2-variations');
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(https://cdn.jsdelivr.net/fontsource/fonts/geist-mono:vf@latest/latin-wght-normal.woff2) format('woff2-variations');
}

/* --- tokens --------------------------------------------------------------- */

:root {
  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, 'Courier New', monospace;
  --font-display: 'Bricolage Grotesque', 'Geist Mono', var(--font-mono);

  --accent: #f97316;
  --accent-soft: #fb923c;
  --accent-deep: #ea580c;

  --bg: #fafafa;
  --panel: #ffffff;
  --panel2: #f4f4f5;
  --text: #09090b;
  --muted: #52525b;
  --faint: #a1a1aa;
  --faint2: #71717a;
  --line: #e4e4e7;
  --btnBg: #18181b;
  --btnBgHover: #3f3f46;
  --btnFg: #fafafa;
  --gridStrong: rgba(9, 9, 11, 0.055);
  --gridFine: rgba(9, 9, 11, 0.028);
  --heroVeil: rgba(253, 253, 253, 0.85);
  --dot: #e4e4e7;
  --veilEdge: rgba(250, 250, 250, 1);
  --blob: rgba(212, 212, 216, 0.55);
  --spot: rgba(212, 212, 216, 0.9);
  --ghostHover: #f4f4f5;
  --grainBlend: multiply;
  --grainOpacity: 0.5;
}

html.theme-dark {
  --bg: #09090b;
  --panel: #18181b;
  --panel2: #141416;
  --text: #fafafa;
  --muted: #a1a1aa;
  --faint: #71717a;
  --faint2: #71717a;
  --line: #27272a;
  --btnBg: #fafafa;
  --btnBgHover: #e4e4e7;
  --btnFg: #09090b;
  --gridStrong: rgba(255, 255, 255, 0.055);
  --gridFine: rgba(255, 255, 255, 0.028);
  --heroVeil: rgba(24, 24, 27, 0.6);
  --dot: #3f3f46;
  --veilEdge: rgba(9, 9, 11, 1);
  --blob: rgba(63, 63, 70, 0.5);
  --spot: rgba(63, 63, 70, 0.9);
  --ghostHover: #27272a;
  --grainBlend: screen;
  --grainOpacity: 0.32;
}

/* --- base ----------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: clip;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  transition: background 0.4s ease, color 0.4s ease;
}

h1, h2, p, figure { margin: 0; }

a { color: var(--muted); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--text); }

img { max-width: 100%; display: block; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.root {
  position: relative;
  min-height: 100vh;
  overflow-x: clip;
}

/* --- shared type ---------------------------------------------------------- */

.eyebrow {
  font-size: 13px;
  color: var(--faint);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h2 {
  font-size: clamp(26px, 3.2vw, 34px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.lede {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.7;
}

/* --- overlays ------------------------------------------------------------- */

.grid-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.55;
  background-image:
    linear-gradient(var(--gridStrong) 1px, transparent 1px),
    linear-gradient(90deg, var(--gridStrong) 1px, transparent 1px),
    linear-gradient(var(--gridFine) 1px, transparent 1px),
    linear-gradient(90deg, var(--gridFine) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  mask-image: radial-gradient(ellipse 120% 100% at 50% 50%, #000 45%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 120% 100% at 50% 50%, #000 45%, transparent 100%);
}

.grain-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: var(--grainOpacity);
  mix-blend-mode: var(--grainBlend);
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.09'/%3E%3C/svg%3E");
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 100;
  background: var(--text);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.1s linear;
}

/* --- chrome (nav + bird), inverts over the dark section ------------------- */

.chrome { --cText: var(--text); --cMuted: var(--muted); --cBg: var(--bg); }
.chrome.over-dark { --cText: #fafafa; --cMuted: #a1a1aa; --cBg: #09090b; }

/* --- nav ------------------------------------------------------------------ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 6;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  background: transparent;
  pointer-events: none;
}

/* Once the page moves, the nav gets a faint scrim so it never collides with
   the copy underneath it. */
.nav.is-scrolled {
  background: color-mix(in oklab, var(--cBg) 72%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid color-mix(in oklab, var(--cText) 7%, transparent);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.nav-mark {
  display: flex;
  align-items: center;
  pointer-events: auto;
  line-height: 0;
}

.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
  pointer-events: auto;
}

.nav-links a {
  font-size: 14px;
  color: var(--cMuted);
}
.nav-links a:hover { color: var(--cText); }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid color-mix(in oklab, var(--cText) 18%, transparent);
  background: transparent;
  border-radius: 8px;
  color: var(--cMuted);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.theme-toggle:hover {
  background: color-mix(in oklab, var(--cText) 8%, transparent);
  color: var(--cText);
}
.theme-toggle .icon-sun { display: none; }
html.theme-dark .theme-toggle .icon-sun { display: block; }
html.theme-dark .theme-toggle .icon-moon { display: none; }

/* --- bird cursor ---------------------------------------------------------- */

.bird-cursor {
  position: fixed;
  left: 0;
  top: 0;
  width: 46px;
  height: 46px;
  z-index: 7;
  pointer-events: none;
  will-change: transform;
}
.bird-cursor .bc-inner {
  width: 46px;
  height: 46px;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}
.bird-cursor .bc-perched { display: none; }
.bird-cursor.is-landed .bc-flying { display: none; }
.bird-cursor.is-landed .bc-perched { display: block; }

.bird-cursor.is-landed .bc-inner { animation: bcHop 4.2s ease-in-out infinite; }
.bird-cursor.is-landed .bc-perched {
  animation: bcPeck 4.2s ease-in-out infinite;
  transform-origin: 62px 60px;
  transform-box: view-box;
}
.bird-cursor.is-pecking .bc-inner,
.bird-cursor.is-landed.is-pecking .bc-inner {
  animation: bcPeckBurst 1.05s cubic-bezier(0.4, 0, 0.5, 1);
  transform-origin: 62% 62%;
}

.bc-wing {
  animation: bcFlap 0.3s cubic-bezier(0.45, 0, 0.55, 1) infinite;
  transform-origin: 49px 46px;
  transform-box: view-box;
}
.bird-cursor:not(.is-landed) .bc-flying {
  animation: bcLift 0.3s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

.bird-cursor .bc-crumbs {
  position: absolute;
  left: 30px;
  bottom: 2px;
  width: 0;
  height: 0;
  opacity: 0;
}
.bird-cursor.is-pecking .bc-crumbs { opacity: 1; }
.bird-cursor.is-pecking .bc-crumbs span { animation: bcCrumb 0.55s ease-out; }
.bird-cursor.is-pecking:not(.is-landed) .bc-crumbs { bottom: 10px; }
.bc-crumbs span {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
}

/* --- sections ------------------------------------------------------------- */

section {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100svh;
  scroll-margin-top: 88px; /* clears the fixed nav on anchor jumps */
}

/* 1 · hero */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.blob-a {
  width: 900px;
  height: 900px;
  top: -22%;
  left: -8%;
  background: radial-gradient(circle, var(--blob), transparent 62%);
  filter: blur(40px);
  animation: driftA 22s ease-in-out infinite;
}
.blob-b {
  width: 760px;
  height: 760px;
  bottom: -26%;
  right: -10%;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.13), transparent 60%);
  filter: blur(50px);
  animation: driftB 28s ease-in-out infinite;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 45% at 50% 40%, var(--heroVeil), transparent 70%);
  pointer-events: none;
}
.hero-edge {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 200px;
  background: linear-gradient(180deg, transparent, var(--veilEdge));
  pointer-events: none;
}

.spotlight {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle at center, var(--spot), transparent 80%);
  filter: blur(20px);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  max-width: 720px;
  text-align: center;
}

.wordmark {
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 0 4px;
  font-family: var(--font-display);
  font-size: clamp(72px, 15vw, 190px);
  font-weight: 800;
  font-optical-sizing: auto;
  line-height: 0.86;
  letter-spacing: -0.055em;
  color: var(--text);
}
.wm-char {
  display: inline-block;
  animation: maskUp 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.wm-char:nth-child(1) { animation-delay: 0.15s; }
.wm-char:nth-child(2) { animation-delay: 0.24s; }
.wm-char:nth-child(3) { animation-delay: 0.33s; }
.wm-char:nth-child(4) { animation-delay: 0.42s; }
.wm-caret {
  display: inline-block;
  width: 0.1em;
  height: 0.62em;
  margin-left: 0.09em;
  margin-bottom: 0.12em;
  background: var(--accent);
  animation: blinkCursor 1.05s step-end infinite;
}

.hero-rule {
  height: 1px;
  width: 120px;
  background: linear-gradient(90deg, transparent, #d4d4d8, transparent);
  animation: lineGrow 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}

.tagline {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.32em;
  font-size: clamp(18px, 2.4vw, 22px);
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--text);
}
.tagline span { animation: wordUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) both; }
.tagline span:nth-child(1) { animation-delay: 0.62s; }
.tagline span:nth-child(2) { animation-delay: 0.70s; }
.tagline span:nth-child(3) { animation-delay: 0.78s; }
.tagline span:nth-child(4) { animation-delay: 0.86s; }

.hero-cmd {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--faint2);
  animation: wordUp 0.7s ease-out 1s both;
}
.hero-cmd .prompt { color: var(--faint); }

.text-loop {
  position: relative;
  display: inline-block;
  white-space: nowrap;
  min-width: 4ch;
  text-align: left;
}
.text-loop .tl-item {
  display: inline-block;
  font-weight: 500;
  color: var(--text);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.text-loop .tl-item.accent { color: var(--accent-deep); }
.text-loop.is-leaving .tl-item { opacity: 0; transform: translateY(-20px); }

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 6px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  animation: wordUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 1.1s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn-primary {
  background: var(--btnBg);
  color: var(--btnFg);
  border: 1px solid transparent;
}
.btn-primary:hover { background: var(--btnBgHover); color: var(--btnFg); }
.btn-ghost {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--line);
}
.btn-ghost:hover { background: var(--ghostHover); color: var(--text); }

.scroll-hint {
  position: absolute;
  bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0.65;
  cursor: pointer;
  color: var(--faint2);
  animation: wordUp 0.7s ease-out 1.3s both;
}
.scroll-hint:hover { opacity: 1; color: var(--faint2); }
.scroll-hint span {
  font-size: 11px;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.scroll-hint svg { animation: scrollDown 1.6s ease-in-out infinite; }

/* connector thread */

.thread {
  position: relative;
  z-index: 2;
  height: 130px;
  display: flex;
  justify-content: center;
}
.thread-line {
  position: relative;
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, var(--line), var(--faint) 60%, transparent);
  transform-origin: top;
  animation: drawDown 1.1s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.thread-dot {
  position: absolute;
  left: -2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  animation: travel 2.6s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

/* 2 · install */

.install {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 40px 24px 100px;
}

.install-card {
  position: relative;
  max-width: 100%;
  background: #18181b;
  border-radius: 10px;
  padding: 24px 32px;
  box-shadow: 0 0 0 1px var(--line), 0 2px 2px 0 var(--panel2);
  overflow-x: auto;
}
.install-card pre {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 2;
  color: #d4d4d8;
}
.install-card code { font: inherit; }
.install-card .prompt { color: #71717a; }

.copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #a1a1aa;
  background: #27272a;
  border: 1px solid #3f3f46;
  border-radius: 6px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.install-card:hover .copy-btn,
.copy-btn:focus-visible { opacity: 1; }
.copy-btn:hover { color: #fafafa; background: #3f3f46; }
.copy-btn.is-copied { color: #86efac; opacity: 1; }

.install-note {
  font-size: 13px;
  color: var(--faint);
  text-align: center;
  max-width: 560px;
}

/* 3 · what is bird */

.what {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  padding: 80px 64px;
  max-width: 1280px;
  margin: 0 auto;
}

.what-copy {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.callout {
  margin-top: 12px;
  padding: 20px;
  background: var(--panel2);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.callout p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}
.callout strong { color: var(--text); }

.harness-map {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.harness-card {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  box-shadow: 0 0 0 1px var(--panel2), 0 2px 2px 0 var(--panel2);
  min-width: 0;
}
.harness-lead { max-width: 240px; }
.card-kicker {
  font-size: 10px;
  color: var(--faint);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.card-name { font-size: 14px; font-weight: 500; margin-top: 2px; }
.card-desc { font-size: 12px; color: var(--faint2); margin-top: 4px; line-height: 1.4; }

.harness-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  width: 100%;
}

.map-edge {
  position: relative;
  width: 100%;
  height: 72px;
}
.map-edge svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.edge-label {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 2px 7px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--faint2);
  white-space: nowrap;
}

.edge { stroke-dasharray: 400; stroke-dashoffset: 400; }
.is-in .edge { animation: dash 1.4s cubic-bezier(0.22, 1, 0.36, 1) 0.25s forwards; }

.map-caption {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--faint);
  text-align: center;
  letter-spacing: 0.04em;
  margin-top: 4px;
}

/* 4 · arch */

.arch {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 72px 64px;
  max-width: 1280px;
  margin: 0 auto;
  overflow: hidden;
}

.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  max-width: 660px;
  text-align: center;
  flex: 0 0 auto;
}

.window {
  /* Sized off the viewport height so the whole section still fits one screen:
     380px covers the section padding, heading block and the window title bar. */
  width: min(1100px, 100%, calc((100dvh - 380px) * 1.645));
  min-width: 0;
  flex: none;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--panel);
  box-shadow: 0 1px 2px rgba(9, 9, 11, 0.05), 0 18px 40px -24px rgba(9, 9, 11, 0.25);
}
.window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--panel2);
}
.window-dots { display: flex; gap: 6px; }
.window-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--dot);
}
.window-title {
  flex: 1;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--faint);
}
.window-body {
  position: relative;
  width: 100%;
  aspect-ratio: 3840 / 2334;
  min-width: 0;
  flex: none;
  display: flex;
}
.window-body img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

/* dark-section bridges */

.fade-into-dark {
  position: relative;
  z-index: 2;
  height: 120px;
  background: linear-gradient(180deg, transparent, #09090b);
}
.fade-out-of-dark {
  position: relative;
  z-index: 2;
  height: 120px;
  background: linear-gradient(180deg, #09090b, transparent);
}

/* 5 · code */

.code {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
  padding: 90px max(64px, calc((100% - 1280px) / 2));
  background: #09090b;
  overflow: hidden;
}
.code-grid-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  mask-image: radial-gradient(ellipse 85% 65% at 50% 50%, #000 15%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 85% 65% at 50% 50%, #000 15%, transparent 72%);
}
.blob-code {
  width: 700px;
  height: 700px;
  top: -18%;
  right: -12%;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.16), transparent 62%);
  filter: blur(60px);
  animation: driftB 26s ease-in-out infinite;
}

.code-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.code-copy .eyebrow { color: #71717a; }
.code-copy h2 { color: #fafafa; }
.code-copy .lede { color: #a1a1aa; }

.terminal {
  position: relative;
  background: #18181b;
  border: 1px solid #27272a;
  border-radius: 12px;
  padding: 4px;
}
.terminal-dots { display: flex; gap: 6px; padding: 12px 16px; }
.terminal-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3f3f46;
}
.terminal-body {
  font-family: var(--font-mono);
  font-size: 13px;
  color: #a1a1aa;
  padding: 8px 20px 24px;
  line-height: 1.9;
  overflow-x: auto;
}
.terminal-body .dim { color: #71717a; }
.terminal-body .muted { color: #52525b; }
.terminal-body .ok { color: #d4d4d8; }
.terminal-body .caret { animation: blinkCursor 1s step-end infinite; }

/* 6 · lead */

.lead {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px 24px;
}
.lead-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  max-width: 720px;
  text-align: center;
}
.lead-actions { display: flex; gap: 12px; margin-top: 16px; flex-wrap: wrap; justify-content: center; }

.site-footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 20px 32px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--faint);
}
.footer-links { display: flex; gap: 18px; }
.site-footer a { color: var(--faint); }
.site-footer a:hover { color: var(--text); }

/* --- reveal --------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(40px) scale(0.985);
  filter: blur(6px);
  transition:
    opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.9s ease;
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.is-in .stagger > * { opacity: 1; transform: translateY(0); }
.is-in .stagger > *:nth-child(1) { transition-delay: 0.08s; }
.is-in .stagger > *:nth-child(2) { transition-delay: 0.18s; }
.is-in .stagger > *:nth-child(3) { transition-delay: 0.28s; }
.is-in .stagger > *:nth-child(4) { transition-delay: 0.38s; }

/* --- keyframes ------------------------------------------------------------ */

@keyframes blinkCursor { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes maskUp {
  from { opacity: 0; transform: translateY(0.42em) rotate(3deg); filter: blur(10px); }
  to { opacity: 1; transform: translateY(0) rotate(0); filter: blur(0); }
}
@keyframes wordUp {
  from { opacity: 0; transform: translateY(14px); filter: blur(4px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}
@keyframes lineGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes drawDown { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes travel {
  0% { top: 0; opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}
@keyframes scrollDown {
  0% { transform: translateY(0); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: translateY(14px); opacity: 0; }
}
@keyframes driftA {
  0%, 100% { transform: translate(-6%, -4%) scale(1); }
  50% { transform: translate(8%, 6%) scale(1.12); }
}
@keyframes driftB {
  0%, 100% { transform: translate(6%, 4%) scale(1.08); }
  50% { transform: translate(-7%, -6%) scale(0.96); }
}
@keyframes dash { from { stroke-dashoffset: 400; } to { stroke-dashoffset: 0; } }

@keyframes bcHop {
  0%, 82%, 100% { transform: translateY(0); }
  88% { transform: translateY(-7px); }
  94% { transform: translateY(0); }
}
@keyframes bcPeck {
  0%, 40%, 100% { transform: rotate(0deg); }
  48% { transform: rotate(13deg); }
  56% { transform: rotate(0deg); }
  64% { transform: rotate(13deg); }
  72% { transform: rotate(0deg); }
}
@keyframes bcPeckBurst {
  0%, 100% { transform: rotate(0deg) translateY(0); }
  12% { transform: rotate(26deg) translateY(2px); }
  24% { transform: rotate(0deg) translateY(0); }
  38% { transform: rotate(28deg) translateY(3px); }
  50% { transform: rotate(0deg) translateY(0); }
  64% { transform: rotate(24deg) translateY(2px); }
  76% { transform: rotate(0deg) translateY(0); }
}
@keyframes bcCrumb {
  0% { opacity: 0; transform: translate(0, 0) scale(0.4); }
  20% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--cx), 14px) scale(1); }
}
@keyframes bcFlap {
  0%, 12% { transform: rotate(-70deg) scaleY(0.62) scaleX(1.06); }
  44%, 52% { transform: rotate(4deg) scaleY(1.08) scaleX(1); }
  84%, 100% { transform: rotate(58deg) scaleY(0.72) scaleX(1.04); }
}
@keyframes bcLift {
  0%, 12% { transform: translateY(2.2px); }
  44%, 52% { transform: translateY(-2.6px); }
  84%, 100% { transform: translateY(2.2px); }
}

/* --- responsive ----------------------------------------------------------- */

@media (max-width: 1080px) {
  .what { gap: 40px; padding: 96px 40px; }
  .code { gap: 40px; padding: 96px 40px; }
  .arch { padding: 96px 40px; }
}

@media (max-width: 900px) {
  /* Below this width the wheel-snap is off (see main.js), so sections flow. */
  section { min-height: auto; }

  .hero { min-height: 100vh; min-height: 100svh; }

  .what,
  .code {
    grid-template-columns: minmax(0, 1fr);
    padding: 96px 24px;
  }
  .arch { padding: 96px 24px; }
  .lead { padding: 96px 24px 0; }

  .nav { padding: 0 20px; }
  .nav-mark svg { width: 52px; height: 52px; }

  .window { width: 100%; }

  /* Wrap the commands rather than scrolling them sideways on a phone, and
     leave room above for the always-visible copy button. */
  .install-card { padding: 46px 20px 20px; overflow-x: visible; }
  .install-card pre {
    font-size: 13px;
    line-height: 1.8;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }
  .install-card code > span.prompt { margin-right: 2px; }
  .copy-btn { opacity: 1; }

  .site-footer {
    position: static;
    width: calc(100% + 48px);
    margin: 72px -24px 0;
    padding: 20px 24px 28px;
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 560px) {
  .install-card pre { font-size: 11.5px; }
  .harness-pair { gap: 12px; }
  .hero-actions .btn,
  .lead-actions .btn { flex: 1 1 auto; justify-content: center; }
}

/* Short laptop viewports — tighten the vertical rhythm so each section still
   lands on exactly one screen and the wheel-snap stays engaged. Declared after
   the width queries so it wins where both apply. */
@media (min-width: 901px) and (max-height: 820px) {
  .install { padding: 40px 24px 72px; }
  .what { padding: 48px 40px; }
  .arch { padding: 44px 40px; gap: 18px; }
  .code { padding: 56px max(40px, calc((100% - 1280px) / 2)); }
  .lead { padding: 72px 24px; }
}

/* Fine-pointer devices only — the bird follows a real cursor. */
@media (pointer: coarse), (hover: none) {
  .bird-cursor { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal { opacity: 1; transform: none; filter: none; }
  .stagger > * { opacity: 1; transform: none; }
  .edge { stroke-dashoffset: 0; }
  .bird-cursor { display: none; }
}
