/* ===========================================================================
   Lo — landing page
   Palette, type, and motion are derived from the app itself: the dawn field and
   the warm→cool orb ramp come straight from crates/lo/src/gui/orb.rs, and the
   serif-for-Lo / mono-for-labels split mirrors the app's caption hierarchy.
   =========================================================================== */

:root {
  /* The app's real colours (sRGB). */
  --dawn:        #0a070f;   /* deep dawn field — the app's literal background */
  --ink:         #f6efe9;   /* warm off-white — Lo's voice / primary text */
  --ink-dim:     #b9a9a6;   /* warm taupe — "your words" / labels */
  --ink-faint:   #6f615f;   /* hint chrome */
  --rose:        #ff5c8f;
  --coral:       #ff7e6b;
  --violet:      #8d5cf6;
  --peach:       #ffe3cf;
  --indigo:      #8a8cd8;   /* the app's indigo, lifted so it reads on dark */

  --hair:   rgba(246, 239, 233, 0.09);
  --hair-2: rgba(246, 239, 233, 0.16);

  --veil: 0; /* 0..1, driven by scroll in main.js */

  --font-display: "Fraunces", "Iowan Old Style", Palatino, "Times New Roman", serif;
  --font-body:    "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono:    "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --cw: 1080px;          /* content measure */
  --pad: clamp(1.25rem, 5vw, 3rem);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--dawn);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.62;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection { background: rgba(255, 92, 143, 0.28); color: var(--ink); }

a { color: inherit; }

h1, h2, h3, p, ul, ol, pre, figure { margin: 0; }

em { font-style: italic; }

kbd {
  font-family: var(--font-mono);
  font-size: 0.78em;
  color: var(--ink-dim);
  border: 1px solid var(--hair-2);
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: 0.1em 0.45em;
  background: rgba(246, 239, 233, 0.03);
}

code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  color: var(--ink);
}

.skip {
  position: fixed;
  left: 50%;
  top: -100px;
  transform: translateX(-50%);
  z-index: 100;
  background: var(--ink);
  color: var(--dawn);
  padding: 0.7em 1.2em;
  border-radius: 0 0 10px 10px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-decoration: none;
  transition: top 0.2s;
}
.skip:focus { top: 0; }

/* ---------- background layers: the orb, the veil, the grain ---------- */

#orb {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
}

#veil {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: var(--veil);
  transition: opacity 0.6s ease;
  background:
    radial-gradient(125% 85% at 50% 38%,
      rgba(10, 7, 15, 0.62) 0%,
      rgba(10, 7, 15, 0.86) 56%,
      rgba(10, 7, 15, 0.96) 100%);
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* No-WebGL fallback: a soft CSS bloom standing in for the live orb. */
body.no-webgl #orb { display: none; }
body.no-webgl::before {
  content: "";
  position: fixed;
  z-index: 0;
  left: 50%;
  top: 34%;
  width: min(70vmin, 540px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%,
      rgba(255, 237, 214, 0.95) 0%,
      rgba(255, 92, 143, 0.55) 30%,
      rgba(141, 92, 246, 0.35) 55%,
      rgba(10, 7, 15, 0) 72%);
  filter: blur(8px);
  animation: breathe 7s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.92; }
  50%      { transform: translate(-50%, -50%) scale(1.06); opacity: 1; }
}

/* ---------- shared structural pieces ---------- */

.site-header,
main,
.site-footer { position: relative; }

main { z-index: 2; }
.site-footer { z-index: 2; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--ink-dim);
}

.band {
  position: relative;
  z-index: 2;
  padding-block: clamp(5.5rem, 13vh, 9rem);
  padding-inline: var(--pad);
}

.band__head {
  max-width: 40rem;
  margin-inline: auto;
  margin-bottom: clamp(2.75rem, 5vw, 4.5rem);
  text-align: center;
}

.band__title {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 460;
  font-size: clamp(1.95rem, 4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin-top: 0.85rem;
}

.band__lede {
  margin-top: 1.15rem;
  max-width: 54ch;
  margin-inline: auto;
  color: var(--ink-dim);
  font-size: clamp(1rem, 0.98rem + 0.25vw, 1.14rem);
}

/* warm gradient text for emphasised words — the orb's ramp, as type */
.glow {
  background: linear-gradient(100deg, var(--peach) 0%, var(--rose) 55%, var(--violet) 110%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-decoration: none;
  padding: 0.9em 1.5em;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.3s ease,
              background 0.3s ease, color 0.25s ease;
}

.btn--solid {
  color: var(--dawn);
  /* a top sheen over a uniform warm fill — no near-white pill tips */
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 48%),
    linear-gradient(100deg, var(--coral) 0%, var(--rose) 100%);
  box-shadow: 0 12px 36px -18px rgba(255, 92, 143, 0.6);
}
.btn--solid:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 46px -16px rgba(255, 124, 107, 0.7);
}

.btn--ghost {
  color: var(--ink);
  background: rgba(246, 239, 233, 0.02);
  box-shadow: inset 0 0 0 1px var(--hair-2); /* ring without affecting box size */
}
.btn--ghost:hover {
  box-shadow: inset 0 0 0 1px rgba(255, 124, 107, 0.6);
  background: rgba(246, 239, 233, 0.06);
  transform: translateY(-2px);
}

.btn--sm { padding: 0.6em 1.05em; font-size: 0.76rem; }
.btn--lg { padding: 1.05em 1.8em; font-size: 0.9rem; }

.btn:focus-visible,
a:focus-visible {
  outline: 2px solid var(--rose);
  outline-offset: 3px;
  border-radius: 999px;
}

/* ---------- header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem var(--pad);
  border-bottom: 1px solid transparent;
  transition: background 0.4s ease, backdrop-filter 0.4s ease, border-color 0.4s ease;
}
.site-header.scrolled {
  background: rgba(10, 7, 15, 0.7);
  backdrop-filter: blur(16px) saturate(1.1);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  border-bottom-color: var(--hair);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.35rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.wordmark__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--peach), var(--rose) 70%);
  box-shadow: 0 0 12px rgba(255, 92, 143, 0.9);
}

.site-nav { display: flex; gap: 1.7rem; }
.site-nav a {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--ink-dim);
  text-decoration: none;
  transition: color 0.2s ease;
}
.site-nav a:hover { color: var(--ink); }

.site-header__cta { display: flex; gap: 0.6rem; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  z-index: 2;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  /* big bottom band reserves room for the captions floating near the bottom */
  padding: 7rem var(--pad) clamp(10rem, 26vh, 18rem);
}

.hero__inner {
  position: relative;
  max-width: 60rem;
}
.hero__inner::before {
  /* a soft pool of dawn behind the text so the bright core never washes it out */
  content: "";
  position: absolute;
  inset: -16% -14%;
  z-index: -1;
  background: radial-gradient(58% 58% at 50% 56%,
    rgba(10, 7, 15, 0.66) 0%, rgba(10, 7, 15, 0) 72%);
}

.hero__title {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 460;
  font-size: clamp(2.7rem, 7vw, 5.6rem);
  line-height: 1.015;
  letter-spacing: -0.02em;
  margin: 1.15rem auto 0;
  max-width: 18ch;
}
.hero__title em {
  font-weight: 500;
  background: linear-gradient(100deg, var(--peach) 0%, var(--rose) 52%, var(--violet) 104%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__sub {
  margin: 1.6rem auto 0;
  max-width: 40rem;
  color: var(--ink-dim);
  font-size: clamp(1.02rem, 0.98rem + 0.35vw, 1.22rem);
  line-height: 1.66;
}

.hero__actions {
  margin-top: 2.2rem;
  display: flex;
  gap: 0.85rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__platforms {
  margin-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
}

/* the app's own live captions: dim grotesk "you", warm serif "Lo" — floating
   over the orb, just larger and brighter than the app so they read on the web */
.captions {
  position: absolute;
  left: 50%;
  bottom: clamp(4.5rem, 12vh, 8rem);
  transform: translateX(-50%);
  width: min(90vw, 860px);
  text-align: center;
  pointer-events: none;
}
.captions__you {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: clamp(0.85rem, 1.5vw, 1.1rem);
  font-weight: 500;
  line-height: 1.5;
  color: #cdbdb6;
  min-height: 1.4em;
  margin-bottom: 1.1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.captions__lo {
  font-family: var(--font-display);
  font-weight: 440;
  font-size: clamp(1.7rem, 4.4vw, 2.8rem);
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--ink);
  min-height: 1.2em;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.captions__you.is-on,
.captions__lo.is-on { opacity: 1; }

/* typing caret: solid while typing, blinking while a reply rests */
.captions__you.typing::after,
.captions__lo.typing::after,
.captions__lo.blink::after {
  content: "";
  display: inline-block;
  width: 0.09em;
  min-width: 2px;
  height: 0.95em;
  margin-left: 0.12em;
  vertical-align: -0.08em;
  background: currentColor;
  border-radius: 1px;
}
.captions__lo.blink::after {
  animation: caretBlink 0.9s steps(1, end) infinite;
}
@keyframes caretBlink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.hero__hint {
  position: absolute;
  left: 50%;
  bottom: 5.5%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
}

/* ---------- the idea ---------- */

.idea { text-align: center; }
.statement {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 380;
  font-size: clamp(1.9rem, 4.7vw, 3.55rem);
  line-height: 1.16;
  letter-spacing: -0.012em;
  max-width: 22ch;
  margin: 1.4rem auto 0;
}
.statement em {
  font-style: italic;
  background: linear-gradient(100deg, var(--peach), var(--rose) 60%, var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.statement__foot {
  margin: 1.9rem auto 0;
  max-width: 52ch;
  color: var(--ink-dim);
  font-size: clamp(1rem, 0.98rem + 0.25vw, 1.15rem);
}

/* ---------- features ---------- */

.feature-grid {
  max-width: var(--cw);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--hair);
  border: 1px solid var(--hair);
  border-radius: 20px;
  overflow: hidden;
}
.feature {
  background: rgba(10, 7, 15, 0.55);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  padding: clamp(1.7rem, 3vw, 2.6rem);
}
.feature--wide { grid-column: 1 / -1; }

.feature__kicker {
  display: flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-mono);
  font-size: 0.71rem;
  text-transform: uppercase;
  letter-spacing: 0.17em;
  color: var(--ink-dim);
  margin-bottom: 1rem;
}
.feature__title {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 460;
  font-size: clamp(1.4rem, 2.3vw, 1.95rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-bottom: 0.7rem;
}
.feature__body {
  color: var(--ink-dim);
  font-size: 1rem;
  max-width: 46ch;
}
.feature__body code {
  color: var(--peach);
  background: rgba(246, 239, 233, 0.04);
  padding: 0.05em 0.35em;
  border-radius: 5px;
}
.feature--wide .feature__body { max-width: 60ch; font-size: 1.05rem; }

.dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  box-shadow: 0 0 10px currentColor;
}
.dot--violet { background: var(--violet); color: var(--violet); }
.dot--coral  { background: var(--coral);  color: var(--coral); }
.dot--rose   { background: var(--rose);   color: var(--rose); }
.dot--peach  { background: var(--peach);  color: var(--peach); }
.dot--indigo { background: var(--indigo); color: var(--indigo); }

/* ---------- how it works ---------- */

.pipeline {
  position: relative;
  list-style: none;
  max-width: var(--cw);
  margin-inline: auto;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.6rem;
}
.pipeline::before {
  content: "";
  position: absolute;
  top: 0.27rem;
  left: 0.3rem;
  right: 0.3rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--hair-2) 8%, var(--hair-2) 92%, transparent);
}
.step { position: relative; padding-top: 1.9rem; }
.step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--rose);
  box-shadow: 0 0 12px var(--rose);
}
.step__n {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--ink-faint);
}
.step__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.2rem;
  margin: 0.35rem 0 0.5rem;
}
.step__desc { color: var(--ink-dim); font-size: 0.92rem; line-height: 1.5; }
.step__desc code { color: var(--peach); }

/* ---------- tools / tiers ---------- */

.tier-grid {
  max-width: 980px;
  margin-inline: auto;
  display: grid;
  gap: 1.2rem;
}
.tier {
  border: 1px solid var(--hair);
  border-radius: 18px;
  padding: clamp(1.5rem, 3vw, 2.2rem);
  background: rgba(10, 7, 15, 0.5);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}
.tier--safe    { --accent: var(--indigo); }
.tier--confirm { --accent: var(--coral); }
.tier--danger  { --accent: var(--rose); }

.tier__head { display: flex; align-items: baseline; gap: 0.8rem; }
.tier__name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--accent);
}
.tier__count {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
}
.tier__note { color: var(--ink-dim); font-size: 0.95rem; margin: 0.5rem 0 1.2rem; }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 0.55rem; padding: 0; }
.chips li {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-dim);
  padding: 0.42em 0.72em;
  border: 1px solid var(--hair-2);
  border-radius: 9px;
  background: rgba(246, 239, 233, 0.02);
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}
.chips li:hover {
  border-color: color-mix(in srgb, var(--accent) 60%, transparent);
  color: var(--ink);
  background: color-mix(in srgb, var(--accent) 9%, transparent);
}

/* ---------- the brain ---------- */

.tiers-scale { max-width: 760px; margin: 0 auto clamp(2rem, 4vw, 3rem); }
.scale-track {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 1.15rem 1.4rem;
  border: 1px solid var(--hair);
  border-radius: 14px;
  background: linear-gradient(100deg, rgba(141, 92, 246, 0.12), rgba(255, 92, 143, 0.12));
}
.scale-node {
  font-family: var(--font-mono);
  font-size: clamp(0.74rem, 0.68rem + 0.4vw, 0.92rem);
  color: var(--ink);
  white-space: nowrap;
}
.scale-node:first-child { color: var(--ink-dim); }
.scale-caption {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 0.85rem;
}

.backends {
  list-style: none;
  max-width: 760px;
  margin-inline: auto;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--hair);
  border: 1px solid var(--hair);
  border-radius: 14px;
  overflow: hidden;
}
.backends li {
  background: rgba(10, 7, 15, 0.55);
  padding: 1.1rem 1.35rem;
  color: var(--ink-dim);
  font-size: 0.94rem;
}
.backends__k {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: var(--ink);
  margin-bottom: 0.3rem;
}

/* ---------- install ---------- */

.platforms {
  max-width: 1000px;
  margin: 0 auto clamp(2.5rem, 5vw, 3.5rem);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
.platform {
  border: 1px solid var(--hair);
  border-radius: 18px;
  padding: clamp(1.5rem, 3vw, 2.1rem);
  background: rgba(10, 7, 15, 0.5);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.platform:hover { border-color: rgba(255, 124, 107, 0.5); transform: translateY(-3px); }
.platform__name { font-family: var(--font-display); font-weight: 500; font-size: 1.6rem; }
.platform__art {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--rose);
  margin: 0.45rem 0 0.9rem;
}
.platform__note { color: var(--ink-dim); font-size: 0.92rem; line-height: 1.55; }

.install__cta { text-align: center; }
.install__fineprint {
  margin-top: 1.15rem;
  color: var(--ink-faint);
  font-size: 0.82rem;
}
.install__fineprint a { color: var(--ink-dim); text-decoration: underline; text-underline-offset: 2px; }

.from-source { max-width: 560px; margin: clamp(2.5rem, 5vw, 3.5rem) auto 0; text-align: center; }
.from-source__label {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.7rem;
  color: var(--ink-faint);
  margin-bottom: 0.85rem;
}
.code {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  color: var(--ink);
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--hair);
  border-radius: 10px;
  padding: 0.95rem 1.3rem;
}
.code__c { color: var(--coral); }

/* ---------- footer ---------- */

.site-footer {
  text-align: center;
  padding: clamp(4rem, 8vh, 6rem) var(--pad) 3rem;
  border-top: 1px solid var(--hair);
}
.site-footer__line {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.3rem, 2.6vw, 1.85rem);
  color: var(--ink);
}
.site-footer__nav {
  display: flex;
  gap: 1.7rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 1.6rem 0 1.2rem;
}
.site-footer__nav a {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-dim);
  text-decoration: none;
  transition: color 0.2s ease;
}
.site-footer__nav a:hover { color: var(--ink); }
.site-footer__meta {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.03em;
  color: var(--ink-faint);
}

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

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
[data-reveal].in { opacity: 1; transform: none; }

/* hero entrance stagger */
.hero [data-reveal]:nth-child(1) { transition-delay: 0.05s; }
.hero [data-reveal]:nth-child(2) { transition-delay: 0.14s; }
.hero [data-reveal]:nth-child(3) { transition-delay: 0.24s; }
.hero [data-reveal]:nth-child(4) { transition-delay: 0.34s; }
.hero [data-reveal]:nth-child(5) { transition-delay: 0.42s; }

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

@media (max-width: 860px) {
  .site-nav { display: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature--wide { grid-column: auto; }
  .platforms { grid-template-columns: 1fr; }
  .backends { grid-template-columns: 1fr; }

  .pipeline {
    grid-template-columns: 1fr;
    gap: 0;
    padding-left: 1.2rem;
  }
  .pipeline::before {
    top: 0.3rem;
    bottom: 0.3rem;
    left: 0.27rem;
    right: auto;
    width: 1px;
    height: auto;
    background: linear-gradient(180deg, transparent, var(--hair-2) 6%, var(--hair-2) 94%, transparent);
  }
  .step { padding: 0 0 2rem 1.4rem; }
  .step::before { top: 0.25rem; left: 0; }
  .step:last-child { padding-bottom: 0; }
}

@media (max-width: 560px) {
  .site-header__cta .btn--ghost { display: none; }
  .hero__hint { display: none; }
  .hero__actions .btn { width: 100%; }
}

/* short viewports: tighten the hero so the captions never meet the content */
@media (max-height: 760px) {
  .hero__hint { display: none; }
  .hero { padding-bottom: 6rem; }
  .captions { bottom: 1.75rem; }
  .captions__lo { font-size: clamp(1.4rem, 3.6vw, 1.8rem); }
  .captions__you { font-size: 0.84rem; margin-bottom: 0.7rem; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .btn { transition: color 0.2s ease, border-color 0.2s ease; }
  .btn--solid:hover, .btn--ghost:hover, .platform:hover { transform: none; }
  #veil { transition: none; }
  .captions__you, .captions__lo { transition: opacity 0.3s ease; }
  body.no-webgl::before { animation: none; }
}
