/* Ley Maps public site. Brand palette (brand/LEY_MAPS_BRANDING.md, section 7): Abyss and Crystal Magenta, dark by
   default; light follows the system with the light-mode accents. Only magenta glows, and only on the logo node and
   the ley-line overlay (.ley-glow): nothing else glows, ever.
   Sections: fonts · tokens · light · base · shell · components · pages · home · motion · responsive · reduced motion. */

/* ---- fonts ---- */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url('/assets/outfit-latin.6c18d579fd.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/assets/inter-latin.3100e775e8.woff2') format('woff2');
}

/* ---- tokens ---- */
:root {
  --bg: #141a33; /* Abyss */
  --page-bg: #141a33; /* what a dark band fades into: never overridden by .dark-band */
  --surface: #1f2a4d; /* Facet */
  --surface-2: #19223f;
  --ink: #f4f7ff; /* Frost */
  --muted: #99a3cc; /* Mist */
  --line: #344066; /* Border */
  --accent: #d946ef; /* Crystal Magenta: fills */
  --accent-text: #e879f9; /* Magenta Light: accent text on dark */
  --accent-ink: #141a33;
  --accent-soft: rgb(217 70 239 / 14%);
  --route: #7dd3fc; /* Ice Blue: routes, secondary accent, never glows */
  --ok: #86efac;
  --warn: #fbbf24;
  --code: #19223f;
  --glow: rgb(217 70 239 / 80%);
  --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 24px rgb(0 0 0 / 25%);
  --shadow-lg: 0 2px 4px rgb(0 0 0 / 35%), 0 24px 60px rgb(0 0 0 / 45%);
  --r-sm: 10px;
  --r: 14px;
  --r-lg: 22px;
  --display: 'Outfit', 'Segoe UI', system-ui, sans-serif;
  --sans:
    'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, 'Cascadia Code', Consolas, 'SF Mono', Menlo, monospace;
  /* motion */
  --dur-1: 150ms; /* hover, focus */
  --dur-2: 360ms; /* intro steps */
  --dur-3: 600ms; /* scroll reveal */
  --dur-4: 950ms; /* line draws, count-up */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-std: cubic-bezier(0.4, 0, 0.2, 1);
  --rise: 14px;
  --header-h: 64px;
  color-scheme: dark;
}

/* ---- light ---- */
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f4f7ff;
    --page-bg: #f4f7ff;
    --surface: #ffffff;
    --surface-2: #e8edfa;
    --ink: #141a33;
    --muted: #4a5578;
    --line: #cbd3ea;
    --accent: #a21caf;
    --accent-text: #a21caf;
    --accent-ink: #ffffff;
    --accent-soft: rgb(162 28 175 / 10%);
    --route: #0369a1;
    --ok: #15803d;
    --warn: #a16207;
    --code: #e8edfa;
    --glow: rgb(162 28 175 / 45%);
    --shadow: 0 1px 2px rgb(20 26 51 / 8%), 0 8px 24px rgb(20 26 51 / 6%);
    --shadow-lg: 0 2px 4px rgb(20 26 51 / 10%), 0 24px 60px rgb(20 26 51 / 14%);
    color-scheme: light;
  }
  .wordmark-accent {
    color: inherit;
  }
}
/* The hero and the closing band stay in the dark palette in both schemes: brand moments keep brand colours. */
.dark-band {
  --bg: #141a33;
  --surface: #1f2a4d;
  --surface-2: #19223f;
  --ink: #f4f7ff;
  --muted: #c7cfe8;
  --line: #344066;
  --accent: #d946ef;
  --accent-text: #e879f9;
  --accent-ink: #141a33;
  --accent-soft: rgb(217 70 239 / 14%);
  --route: #7dd3fc;
  --glow: rgb(217 70 239 / 80%);
  color-scheme: dark;
  background: var(--bg);
  color: var(--ink);
}

/* ---- base ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 12px);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 var(--sans);
}
img,
video {
  max-width: 100%;
  height: auto;
}
a {
  color: var(--accent-text);
  text-underline-offset: 0.18em;
}
a:hover {
  text-decoration-thickness: 2px;
}
:focus-visible {
  outline: 3px solid var(--accent-text);
  outline-offset: 2px;
  border-radius: 4px;
}
.wrap {
  width: min(1080px, 100% - 32px);
  margin-inline: auto;
}
.skip {
  position: absolute;
  left: -999px;
}
.skip:focus {
  left: 16px;
  top: 12px;
  z-index: 10;
  background: var(--surface);
  padding: 8px 12px;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 0.88rem;
}
.fine {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 14px 0 0;
}
#top-sentinel {
  height: 1px;
  margin-top: -1px;
}

/* ---- shell: header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(10px) saturate(1.2);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-1) ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
}
.header-row {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: var(--header-h);
  flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font: 600 1.2rem/1 var(--display);
  letter-spacing: 0.01em;
}
.site-nav {
  display: flex;
  gap: 4px 22px;
  flex-wrap: wrap;
  flex: 1;
}
.site-nav a {
  position: relative;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 6px 0;
}
.site-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}
.site-nav a:hover {
  color: var(--ink);
}
.site-nav a:hover::after,
.site-nav a[aria-current='page']::after {
  transform: scaleX(1);
}
.site-nav a[aria-current='page'] {
  color: var(--ink);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}
.header-login {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}
.header-login:hover {
  color: var(--ink);
}
/* On the home page the header's Download waits until the hero's own buttons have scrolled away. */
.is-home .header-cta {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
}
.is-home .site-header.show-cta .header-cta {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

/* ---- shell: footer ---- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface-2);
  padding: 40px 0 28px;
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
}
.footer-grid h2 {
  font: 600 0.8rem/1 var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
}
.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.footer-grid a {
  color: var(--ink);
  text-decoration: none;
}
.footer-grid a:hover {
  color: var(--accent-text);
}
.footer-blurb {
  color: var(--muted);
  margin: 10px 0 0;
  max-width: 34ch;
}
.footer-legal {
  margin: 28px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.84rem;
}

/* ---- components: buttons ---- */
.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  border: 0;
  border-radius: var(--r-sm);
  padding: 13px 22px;
  font: 600 1rem/1.2 var(--sans);
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.button:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.button:active {
  transform: none;
}
.button.secondary {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
}
.button.secondary:hover {
  filter: brightness(1.1);
}
.button.small {
  padding: 8px 14px;
  font-size: 0.92rem;
  box-shadow: none;
}
.button.large {
  padding: 15px 26px;
  font-size: 1.05rem;
}
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

/* ---- components: type ---- */
h1,
h2,
h3 {
  font-family: var(--display);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: 0.005em;
}
h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin: 0.4em 0 0.3em;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
h2 {
  font-size: clamp(1.45rem, 2.6vw, 1.85rem);
  margin: 1.8em 0 0.5em;
}
h3 {
  font-size: 1.2rem;
  margin: 1.4em 0 0.4em;
}
main {
  padding-bottom: 64px;
}
main p,
main li {
  max-width: 72ch;
}
.lede {
  font-size: 1.18rem;
  color: var(--muted);
  max-width: 62ch;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: var(--accent-text);
  font-weight: 700;
  margin: 0;
}
code,
kbd {
  font-family: var(--mono);
  font-size: 0.9em;
  background: var(--code);
  border-radius: 5px;
  padding: 0.1em 0.38em;
}
kbd {
  border: 1px solid var(--line);
  border-bottom-width: 2px;
}

/* ---- components: cards, steps, callouts, tables ---- */
.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 20px 22px;
}
.card h3 {
  margin-top: 0.2em;
}
.card p {
  margin: 0.4em 0 0;
}
.card.link-card:hover {
  border-color: var(--muted);
}
.card.link-card h3 a {
  text-decoration: none;
  color: var(--ink);
}
.card.link-card:hover h3 a {
  color: var(--accent-text);
}
.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  display: grid;
  gap: 14px;
}
.steps > li {
  position: relative;
  padding: 16px 18px 16px 64px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  max-width: none;
}
.steps > li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 18px;
  top: 16px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent-text);
  font: 700 0.95rem/1 var(--sans);
}
.steps h3 {
  margin: 0 0 4px;
}
.steps p {
  margin: 0.3em 0 0;
}
.note,
.warn {
  border-left: 4px solid var(--accent);
  background: var(--surface-2);
  padding: 12px 16px;
  border-radius: 0 10px 10px 0;
  margin: 18px 0;
  max-width: 72ch;
}
.warn {
  border-left-color: var(--warn);
}
.note p,
.warn p {
  margin: 0.3em 0;
}
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.95rem;
}
th,
td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
tr:last-child td {
  border-bottom: 0;
}
th {
  font-weight: 600;
  background: var(--surface-2);
}
.yes {
  color: var(--ok);
  font-weight: 600;
}
.no {
  color: var(--warn);
  font-weight: 600;
}

/* ---- pages: head, toc, wiki, figures, wordmark ---- */
.page-head {
  padding: 56px 0 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}
.page-head h1 {
  margin-top: 0.3em;
}
.page-head .actions {
  margin-top: 18px;
}
.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 0.92rem;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}
.wiki-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin: 18px 0 4px;
  font-size: 0.9rem;
}
.wiki-nav a {
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  color: var(--muted);
}
.wiki-nav a:hover {
  color: var(--ink);
  border-color: var(--muted);
}
.wiki-nav a[aria-current='page'] {
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
}
.map-figure {
  margin: 18px 0 26px;
}
.map-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.map-figure figcaption {
  margin-top: 8px;
  font-size: 0.95rem;
}
.wordmark {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.wordmark-accent {
  color: var(--accent-text);
}
.shot {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.shot img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---- home: hero ---- */
.is-home main {
  padding-bottom: 0;
}
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(560px, 82vh, 800px);
  display: grid;
  align-items: center;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero-poster,
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 50%;
}
.hero-video {
  opacity: 0;
}
.hero.is-playing .hero-video {
  opacity: 1;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgb(20 26 51 / 92%) 0%,
      rgb(20 26 51 / 70%) 38%,
      rgb(20 26 51 / 15%) 100%
    ),
    linear-gradient(180deg, rgb(20 26 51 / 35%) 0%, rgb(20 26 51 / 0%) 30%, var(--page-bg) 100%);
}
.hero-copy {
  max-width: 40rem;
  padding: 104px 0 88px;
}
.hero h1 {
  font-size: clamp(2.4rem, 5.4vw, 3.7rem);
  margin: 0.35em 0 0.3em;
  text-wrap: balance;
}
.hero .lede {
  color: var(--muted);
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
}
.hero-pause {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 1;
  background: rgb(20 26 51 / 60%);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  font: 500 0.82rem/1.2 var(--sans);
  cursor: pointer;
}
.hero-pause:hover {
  background: rgb(20 26 51 / 85%);
}

/* ---- home: ley-line overlay (the one place that glows) ---- */
.ley {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  contain: paint;
}
.ley-route,
.ley-line,
.ley-glow {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ley-route {
  stroke: var(--route);
  stroke-width: 2;
  opacity: 0.85;
}
.ley-line {
  stroke: var(--accent);
  stroke-width: 2.5;
}
.ley-glow {
  stroke: var(--accent);
  stroke-width: 7;
  opacity: 0.9;
  filter: url('#leyblur');
}
.ley-node {
  fill: var(--route);
}
.ley-node-core {
  fill: var(--accent);
  filter: drop-shadow(0 0 8px var(--glow));
}
.ley-node-ring {
  fill: none;
  stroke: #f4f7ff;
  stroke-width: 1.5;
}

/* ---- home: proof strip ---- */
.proof {
  border-block: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 55%, var(--bg));
  padding: 34px 0 30px;
}
.proof-label {
  margin: 0 0 18px;
}
.proof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 18px 28px;
}
.stat {
  margin: 0;
}
.stat.is-low {
  display: none;
}
.stat-num {
  display: block;
  font: 600 clamp(1.9rem, 3.4vw, 2.7rem) / 1.05 var(--display);
  color: var(--accent-text);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.stat-cap {
  display: block;
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 4px;
}
.proof-foot {
  margin: 18px 0 0;
}

/* ---- home: sections and features ---- */
.home-section {
  padding: 56px 0 8px;
}
.home-section > .wrap > h2,
.section-title {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  margin: 0.2em 0 0.4em;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.feature {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 40px;
  align-items: center;
  padding: 40px 0;
}
.feature.flip .shot {
  order: 2;
}
.feature h3 {
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  margin: 0.3em 0 0.4em;
  text-wrap: balance;
}
.feature p {
  margin: 0 0 0.8em;
}
.feature .more {
  font-weight: 600;
  text-decoration: none;
}
.feature .more::after {
  content: ' \2192';
}
.feature .more:hover {
  text-decoration: underline;
}
.data-grid {
  margin-top: 24px;
}
.data-grid .card {
  padding: 18px 20px;
}
.data-grid .card h3 {
  font-size: 1.05rem;
  margin: 0;
}
.data-grid .card p {
  margin: 0.3em 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---- home: how it works ---- */
.beats {
  position: relative;
  counter-reset: beat;
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.beats-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 19px;
  height: 2px;
  pointer-events: none;
}
.beats-line path {
  fill: none;
  stroke: var(--route);
  stroke-width: 2;
  stroke-dasharray: 6 10;
  opacity: 0.7;
}
.beat {
  position: relative;
  padding-top: 56px;
  max-width: none;
}
.beat::before {
  counter-increment: beat;
  content: counter(beat);
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 2px solid var(--route);
  color: var(--ink);
  font: 700 1rem/1 var(--sans);
}
.beat h3 {
  margin: 0 0 6px;
  font-size: 1.15rem;
}
.beat p {
  margin: 0;
  color: var(--muted);
}

/* ---- home: trust line and closing band ---- */
.trust {
  text-align: center;
  padding: 40px 0 8px;
}
.trust p {
  margin: 0 auto;
  color: var(--muted);
  max-width: 60ch;
}
.cta-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--r-lg);
  padding: 72px 32px;
  margin: 56px 0 72px;
  text-align: center;
  border: 1px solid var(--line);
}
.cta-band .ley {
  z-index: -1;
  opacity: 0.9;
}
.cta-band h2 {
  margin: 0 0 0.3em;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
}
.cta-band p {
  margin: 0 auto;
  max-width: 54ch;
  color: var(--muted);
}
.cta-band .actions {
  justify-content: center;
}

/* ---- motion (only with scripting on and no reduced-motion preference) ---- */
@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(var(--rise));
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes ley-draw {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes ley-breathe {
  from {
    stroke-dashoffset: 1;
  }
  to {
    stroke-dashoffset: -1;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .button,
  .header-cta {
    transition:
      filter var(--dur-1) ease,
      transform var(--dur-1) ease,
      opacity var(--dur-1) ease;
  }
  .site-nav a::after {
    transition: transform 180ms var(--ease-out);
  }
  .site-nav a,
  .header-login,
  .wiki-nav a,
  .card.link-card,
  .footer-grid a {
    transition:
      color var(--dur-1) ease,
      border-color var(--dur-1) ease;
  }
  .hero-video {
    transition: opacity 400ms linear;
  }
  /* entrances: the hero and page heads, CSS only so they run with JavaScript off */
  .intro {
    animation: rise-in var(--dur-2) var(--ease-out) both;
  }
  .intro-2 {
    animation-delay: 80ms;
    animation-duration: 480ms;
  }
  .intro-3 {
    animation-delay: 200ms;
    animation-duration: 420ms;
  }
  .intro-4 {
    animation-delay: 320ms;
    animation-duration: 420ms;
  }
  .intro-5 {
    animation-name: fade-in;
    animation-delay: 420ms;
  }
  /* ley lines draw themselves once their host is in view (.is-in) */
  .ley-route,
  .ley-line {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
  }
  .ley-glow {
    opacity: 0;
  }
  .is-in .ley-route {
    animation: ley-draw var(--dur-4) var(--ease-out) 150ms forwards;
  }
  .is-in .ley-line {
    animation: ley-draw var(--dur-4) var(--ease-out) 300ms forwards;
  }
  .is-in .ley-glow {
    animation: fade-in 600ms linear 700ms forwards;
  }
  .cta-band.is-in .ley-line {
    animation: ley-breathe 14s linear infinite;
  }
  .is-off .ley-route,
  .is-off .ley-line {
    animation-play-state: paused;
  }
}
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .reveal:not(.is-in) {
    opacity: 0;
    transform: translateY(var(--rise));
  }
  .reveal-from-left:not(.is-in) {
    transform: translateX(-24px) scale(0.98);
  }
  .reveal-from-right:not(.is-in) {
    transform: translateX(24px) scale(0.98);
  }
  .reveal-scale:not(.is-in) {
    transform: scale(0.97);
  }
  .reveal {
    transition:
      opacity var(--dur-3) var(--ease-out),
      transform var(--dur-3) var(--ease-out);
  }
  .stagger > :nth-child(2) {
    transition-delay: 70ms;
  }
  .stagger > :nth-child(3) {
    transition-delay: 140ms;
  }
  .stagger > :nth-child(4) {
    transition-delay: 210ms;
  }
  .stagger > :nth-child(5) {
    transition-delay: 280ms;
  }
  .stagger > :nth-child(6) {
    transition-delay: 350ms;
  }
  .stagger > :nth-child(n + 7) {
    transition-delay: 420ms;
  }
  .feature .reveal:last-child {
    transition-delay: 80ms;
  }
  .beats-line path {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
  }
  .beats.is-in .beats-line path {
    animation: ley-draw 700ms var(--ease-out) forwards;
  }
}

/* ---- responsive ---- */
@media (max-width: 900px) {
  .feature {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 28px 0;
  }
  .feature.flip .shot {
    order: 0;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .beats {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .beats-line {
    display: none;
  }
}
@media (max-width: 760px) {
  body {
    font-size: 16px;
  }
  .header-row {
    gap: 10px;
    padding: 10px 0;
  }
  .site-nav {
    order: 3;
    flex-basis: 100%;
  }
  .hero {
    min-height: 0;
    align-items: end;
  }
  .hero-copy {
    padding: 64px 0 40px;
  }
  .hero-shade {
    background: linear-gradient(
      180deg,
      rgb(20 26 51 / 30%) 0%,
      rgb(20 26 51 / 55%) 45%,
      var(--page-bg) 100%
    );
  }
  .hero-poster,
  .hero-video {
    object-position: 50% 30%;
  }
  .page-head {
    padding-top: 36px;
  }
  .cta-band {
    padding: 48px 20px;
    border-radius: var(--r);
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}

/* ---- reduced motion: nothing moves, lines are drawn, the video stays a poster ---- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .ley-route,
  .ley-line,
  .beats-line path {
    stroke-dasharray: none;
    stroke-dashoffset: 0;
  }
  .ley-glow {
    opacity: 0.9;
  }
  .hero-video,
  .hero-pause {
    display: none;
  }
}

/* ---- placeholders until the real screenshots land (PR 3): the mark on Facet ---- */
.shot-placeholder {
  display: block;
  width: 100%;
  height: auto;
}
.shot-placeholder .ley-route,
.shot-placeholder .ley-line {
  stroke-width: 4;
}
.cta-band .ley-glow {
  filter: url('#leyblur2');
}
