/* ==========================================================================
   LandfillLegend.com
   Single stylesheet. Order: fonts > tokens > reset > base > layout >
   components > utilities > motion.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Fonts  (Inter + Space Grotesk, both SIL OFL 1.1, self-hosted latin subset)
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-var.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/space-grotesk-latin-var.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --------------------------------------------------------------------------
   2. Design tokens — retune the whole site from this block
   -------------------------------------------------------------------------- */
:root {
  /* ground */
  --bg: #07080c;
  --bg-2: #0b0d14;
  --surface: #10131c;
  --surface-2: #161a26;
  --line: #232838;

  /* ink */
  --ink: #eef1f8;
  --muted: #a2aac0;          /* 8.1:1 on --bg, clears AA for body text */
  --dim: #737c93;            /* dim: labels and meta only, never body copy */

  /* accents */
  --acid: #8cff3b;
  --acid-deep: #57d40f;
  --cyan: #34e7ff;
  --magenta: #ff4fd8;

  /* translucent accent washes, for glows and borders */
  --acid-a12: rgb(140 255 59 / 0.12);
  --acid-a24: rgb(140 255 59 / 0.24);
  --acid-a40: rgb(140 255 59 / 0.40);
  --cyan-a16: rgb(52 231 255 / 0.16);
  --magenta-a16: rgb(255 79 216 / 0.16);

  /* type */
  --font-display: 'Space Grotesk', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* rhythm */
  --shell: 1160px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4rem, 10vw, 7.5rem);
  --radius: 18px;
  --radius-sm: 10px;

  /* motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 240ms;

  color-scheme: dark;
}

/* --------------------------------------------------------------------------
   3. Reset
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; }

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

html:focus-within { scroll-behavior: smooth; }

body {
  min-height: 100svh;
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video, iframe { display: block; max-width: 100%; }
img, video { height: auto; }

button, input, select, textarea { font: inherit; color: inherit; }

ul[class], ol[class] { list-style: none; padding: 0; }

a { color: var(--cyan); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--acid); }

:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--acid); color: #06210a; }

/* --------------------------------------------------------------------------
   4. Page atmosphere — ambient blobs + grain, both purely decorative
   -------------------------------------------------------------------------- */
.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.atmosphere::before,
.atmosphere::after {
  content: '';
  position: absolute;
  width: min(70vw, 820px);
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.5;
}

/* acid-green wash, top-left */
.atmosphere::before {
  top: -22%;
  left: -14%;
  background: radial-gradient(circle, rgb(87 212 15 / 0.55), transparent 68%);
}

/* cyan wash, mid-right */
.atmosphere::after {
  top: 26%;
  right: -20%;
  background: radial-gradient(circle, rgb(52 231 255 / 0.34), transparent 68%);
}

/* a third, magenta, lower-left — separate element so it can sit deeper */
.atmosphere span {
  position: absolute;
  bottom: -18%;
  left: 18%;
  width: min(56vw, 640px);
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.28;
  background: radial-gradient(circle, rgb(255 79 216 / 0.5), transparent 68%);
}

/* film grain: kills gradient banding on the big soft washes */
.grain {
  position: fixed;
  inset: -50%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --------------------------------------------------------------------------
   5. Layout primitives
   -------------------------------------------------------------------------- */
.shell {
  width: min(100% - (var(--gutter) * 2), var(--shell));
  margin-inline: auto;
}

.section { padding-block: var(--section-y); position: relative; z-index: 1; }

.section--tight { padding-block: clamp(2.5rem, 6vw, 4rem); }

.stack > * + * { margin-top: var(--stack-gap, 1rem); }

.grid {
  display: grid;
  gap: clamp(1.25rem, 2.5vw, 1.75rem);
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
}

.skip-link {
  position: absolute;
  top: 0;
  left: 50%;
  translate: -50% -120%;
  z-index: 999;
  padding: 0.75rem 1.25rem;
  background: var(--acid);
  color: #06210a;
  font-weight: 600;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  transition: translate var(--dur) var(--ease);
}
.skip-link:focus-visible { translate: -50% 0; color: #06210a; }

/* --------------------------------------------------------------------------
   6. Type scale
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.display {
  font-size: clamp(2.75rem, 1.6rem + 5.6vw, 5.75rem);
  text-transform: uppercase;
  letter-spacing: -0.03em;
}

h2 { font-size: clamp(1.9rem, 1.4rem + 2.2vw, 3rem); }
h3 { font-size: clamp(1.2rem, 1.08rem + 0.6vw, 1.5rem); }

.lede {
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.3rem);
  color: var(--muted);
  max-width: 56ch;
  text-wrap: pretty;
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--acid);
}

.section-head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head > * + * { margin-top: 0.75rem; }

/* --------------------------------------------------------------------------
   7. Glow utilities — layered halos, tight core + wide bloom
   -------------------------------------------------------------------------- */
.glow-acid {
  text-shadow:
    0 0 8px rgb(140 255 59 / 0.55),
    0 0 28px rgb(140 255 59 / 0.32),
    0 0 62px rgb(87 212 15 / 0.24);
}

.glow-cyan {
  text-shadow:
    0 0 8px rgb(52 231 255 / 0.55),
    0 0 28px rgb(52 231 255 / 0.30);
}

.text-acid { color: var(--acid); }
.text-cyan { color: var(--cyan); }
.text-muted { color: var(--muted); }

/* --------------------------------------------------------------------------
   8. Nav
   -------------------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(7 8 12 / 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.wordmark:hover { color: var(--ink); }
.wordmark__mark { width: 26px; height: 26px; flex: none; }
.wordmark em {
  font-style: normal;
  color: var(--acid);
  text-shadow: 0 0 12px rgb(140 255 59 / 0.6), 0 0 30px rgb(140 255 59 / 0.3);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav__links a {
  display: block;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.nav__links a:hover { color: var(--ink); background: var(--surface-2); }

.nav__links a[aria-current='page'] {
  color: var(--acid);
  background: var(--acid-a12);
}

/* hamburger — hidden on desktop */
.nav__toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  cursor: pointer;
}
.nav__toggle svg { width: 20px; height: 20px; }
.nav__toggle .icon-close { display: none; }
.nav__toggle[aria-expanded='true'] .icon-close { display: block; }
.nav__toggle[aria-expanded='true'] .icon-open { display: none; }

@media (max-width: 46rem) {
  .nav__toggle { display: inline-flex; }

  .nav__links {
    position: absolute;
    inset: 100% 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 0.75rem var(--gutter) 1.25rem;
    /* Fully opaque on purpose: this panel overlays the hero, and even a few
       percent of transparency lets big white headline text read through
       against a near-black ground. No backdrop-filter needed when opaque. */
    background: var(--bg-2);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 40px rgb(0 0 0 / 0.55);
  }
  .nav__links[hidden] { display: none; }
  .nav__links a { padding: 0.8rem 1rem; font-size: 1rem; }
}

/* --------------------------------------------------------------------------
   9. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: translate var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    background-color var(--dur) var(--ease), border-color var(--dur) var(--ease),
    color var(--dur) var(--ease);
}
.btn:hover { translate: 0 -2px; }
.btn svg { width: 16px; height: 16px; }

.btn--primary {
  background: var(--acid);
  color: #06210a;
  box-shadow: 0 0 0 1px var(--acid-a40), 0 6px 26px rgb(140 255 59 / 0.28),
    0 0 54px rgb(140 255 59 / 0.16);
}
.btn--primary:hover {
  color: #06210a;
  background: #a0ff5c;
  box-shadow: 0 0 0 1px var(--acid-a40), 0 10px 34px rgb(140 255 59 / 0.42),
    0 0 78px rgb(140 255 59 / 0.26);
}

.btn--ghost {
  background: rgb(255 255 255 / 0.03);
  border-color: var(--line);
  color: var(--ink);
}
.btn--ghost:hover {
  color: var(--ink);
  border-color: var(--acid-a40);
  background: var(--acid-a12);
  box-shadow: 0 6px 26px rgb(0 0 0 / 0.4);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* --------------------------------------------------------------------------
   10. Cards
   -------------------------------------------------------------------------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.4rem, 3vw, 1.9rem);
  background: linear-gradient(165deg, rgb(22 26 38 / 0.86), rgb(16 19 28 / 0.78));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: translate var(--dur) var(--ease), border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

/* soft inner top highlight — makes the glass read as lit from above */
.card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgb(255 255 255 / 0.05), transparent 34%);
}

.card:hover {
  translate: 0 -4px;
  border-color: var(--acid-a40);
  box-shadow: 0 18px 48px rgb(0 0 0 / 0.5), 0 0 46px rgb(140 255 59 / 0.12);
}

.card__title { margin-bottom: 0.5rem; }
.card__title a { color: var(--ink); text-decoration: none; }
.card__title a:hover { color: var(--acid); }

.card__body { color: var(--muted); font-size: 0.9688rem; }

.card__foot { margin-top: auto; padding-top: 1.25rem; }

.card__media {
  margin: calc(clamp(1.4rem, 3vw, 1.9rem) * -1);
  margin-bottom: 1.25rem;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: scale 400ms var(--ease);
}
.card:hover .card__media img { scale: 1.04; }

/* link cards on the home page — icon + arrow.
   The whole card is an <a>, so text inside would otherwise inherit the
   default link colour. Reset it here and colour the title explicitly. */
.card--link { text-decoration: none; color: var(--ink); }
.card--link .card__title { color: var(--ink); transition: color var(--dur) var(--ease); }
.card--link:hover .card__title { color: var(--acid); }
.card--cyan:hover .card__title { color: var(--cyan); }
.card--magenta:hover .card__title { color: var(--magenta); }
.card__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 1.1rem;
  border-radius: 12px;
  background: var(--acid-a12);
  border: 1px solid var(--acid-a24);
  color: var(--acid);
}
.card__icon svg { width: 22px; height: 22px; }
.card--cyan .card__icon {
  background: var(--cyan-a16);
  border-color: rgb(52 231 255 / 0.28);
  color: var(--cyan);
}
.card--magenta .card__icon {
  background: var(--magenta-a16);
  border-color: rgb(255 79 216 / 0.28);
  color: var(--magenta);
}

.card__arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--acid);
}
.card--cyan .card__arrow { color: var(--cyan); }
.card--magenta .card__arrow { color: var(--magenta); }
.card__arrow svg { width: 14px; height: 14px; transition: translate var(--dur) var(--ease); }
.card:hover .card__arrow svg { translate: 4px 0; }

/* featured card — animated conic border on hover */
.card--featured { border-color: transparent; }
.card--featured::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(
    from var(--angle, 0deg),
    var(--acid), var(--cyan), var(--magenta), var(--acid)
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0.5;
  transition: opacity var(--dur) var(--ease);
}
.card--featured:hover::before { opacity: 1; animation: spin 5s linear infinite; }

@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@keyframes spin { to { --angle: 360deg; } }

/* --------------------------------------------------------------------------
   11. Tags
   -------------------------------------------------------------------------- */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.9rem;
}

.tag {
  padding: 0.22rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.03);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.tag--acid { color: var(--acid); border-color: var(--acid-a24); background: var(--acid-a12); }
.tag--cyan { color: var(--cyan); border-color: rgb(52 231 255 / 0.28); background: var(--cyan-a16); }

/* --------------------------------------------------------------------------
   12. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  z-index: 1;
  padding-block: clamp(3.5rem, 9vw, 7rem) clamp(3rem, 7vw, 5.5rem);
}

.hero__inner { max-width: 60rem; }
.hero__inner > * + * { margin-top: 1.5rem; }

.hero .display { margin-top: 1rem; }

.hero__line { display: block; }
.hero__line--accent { color: var(--acid); }

.hero .btn-row { margin-top: 2.25rem; }

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 5vw, 3.5rem);
  margin-top: clamp(3rem, 7vw, 4.5rem);
  padding-top: clamp(1.75rem, 4vw, 2.5rem);
  border-top: 1px solid var(--line);
}
.hero__stat dt {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
}
.hero__stat dd {
  margin: 0.35rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem);
  font-weight: 700;
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   13. Video embed (click-to-load YouTube facade)
   -------------------------------------------------------------------------- */
.video {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-2);
}

.video__btn {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.video__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: scale 500ms var(--ease), opacity var(--dur) var(--ease);
}
.video__btn:hover .video__poster { scale: 1.03; opacity: 0.82; }

/* dark scrim so the play button stays legible over any thumbnail */
.video__btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(7 8 12 / 0.15), rgb(7 8 12 / 0.65));
}

.video__play {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: clamp(64px, 9vw, 84px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--acid);
  color: #06210a;
  box-shadow: 0 0 0 1px var(--acid-a40), 0 0 34px rgb(140 255 59 / 0.45),
    0 0 80px rgb(140 255 59 / 0.25);
  transition: scale var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.video__play svg { width: 30%; height: 30%; margin-left: 8%; }
.video__btn:hover .video__play {
  scale: 1.08;
  box-shadow: 0 0 0 1px var(--acid-a40), 0 0 48px rgb(140 255 59 / 0.65),
    0 0 110px rgb(140 255 59 / 0.35);
}

.video__label {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.25rem clamp(1rem, 3vw, 1.6rem);
  text-align: left;
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 0.9rem + 0.3vw, 1.15rem);
  font-weight: 700;
  color: var(--ink);
}

.video iframe { width: 100%; height: 100%; border: 0; }

.video__note {
  margin-top: 0.85rem;
  font-size: 0.8125rem;
  color: var(--dim);
}

/* --------------------------------------------------------------------------
   14. Panel (stub pages, 404)
   -------------------------------------------------------------------------- */
.panel {
  max-width: 46rem;
  margin-inline: auto;
  padding: clamp(2.5rem, 7vw, 4.5rem) clamp(1.5rem, 5vw, 3.5rem);
  text-align: center;
  background: linear-gradient(165deg, rgb(22 26 38 / 0.8), rgb(16 19 28 / 0.7));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.panel > * + * { margin-top: 1.25rem; }
.panel .lede { margin-inline: auto; }
.panel .btn-row { justify-content: center; margin-top: 2rem; }

.panel__code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 3rem + 8vw, 8rem);
  font-weight: 700;
  line-height: 1;
  color: var(--acid);
}

/* --------------------------------------------------------------------------
   15. Callout strip
   -------------------------------------------------------------------------- */
.callout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  background: linear-gradient(120deg, var(--acid-a12), rgb(52 231 255 / 0.07) 55%, transparent);
  border: 1px solid var(--acid-a24);
  border-radius: var(--radius);
}
.callout__text { max-width: 44ch; }
.callout__text > * + * { margin-top: 0.5rem; }

/* --------------------------------------------------------------------------
   16. Footer
   -------------------------------------------------------------------------- */
.footer {
  position: relative;
  z-index: 1;
  /* No margin-top: the last section already contributes its own bottom
     padding, and stacking both left a large dead gap above the footer. */
  padding-block: 2.5rem;
  border-top: 1px solid var(--line);
  background: rgb(7 8 12 / 0.6);
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--dim);
}
.footer__links { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer__links a { color: var(--muted); text-decoration: none; }
.footer__links a:hover { color: var(--acid); }

/* --------------------------------------------------------------------------
   15b. Detail pages — prose, tables, step lists
   -------------------------------------------------------------------------- */
.prose { max-width: 68ch; }
.prose > * + * { margin-top: 1.1rem; }
.prose p { color: var(--muted); }
.prose h2 { margin-top: 2.75rem; }
.prose h3 { margin-top: 1.75rem; }
.prose ul { padding-left: 1.15rem; color: var(--muted); }
.prose ul li { margin-top: 0.5rem; }
.prose ul li::marker { color: var(--acid); }
.prose strong { color: var(--ink); font-weight: 600; }

/* Wide content must scroll inside itself, never widen the page. */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgb(255 255 255 / 0.02);
}
table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
th, td { padding: 0.7rem 0.9rem; text-align: left; white-space: nowrap; }
thead th {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--acid);
  border-bottom: 1px solid var(--line);
}
tbody tr + tr td { border-top: 1px solid var(--line); }
tbody td { color: var(--muted); }
tbody td:first-child { color: var(--ink); font-weight: 500; }

/* Numbered steps */
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 3rem;
  margin-top: 1rem;
  color: var(--muted);
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -0.1rem;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--acid-a12);
  border: 1px solid var(--acid-a24);
  color: var(--acid);
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
}

.backlink {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
}
.backlink:hover { color: var(--acid); }
.backlink svg { width: 14px; height: 14px; }

/* --------------------------------------------------------------------------
   16b. Spacing utilities
   -------------------------------------------------------------------------- */
.mt-lg { margin-top: clamp(2.5rem, 6vw, 4rem); }
.pt-0 { padding-top: 0; }

/* --------------------------------------------------------------------------
   17. Scroll reveal
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  translate: 0 22px;
  transition: opacity 620ms var(--ease), translate 620ms var(--ease);
}
.reveal.is-visible { opacity: 1; translate: 0 0; }

/* stagger children of a revealed grid */
.reveal-group > * { transition-delay: calc(var(--i, 0) * 80ms); }

/* --------------------------------------------------------------------------
   18. Reduced motion — kill every non-essential animation
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html:focus-within { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal { opacity: 1; translate: none; }
  .btn:hover, .card:hover { translate: none; }
  .card:hover .card__media img { scale: 1; }
  .card--featured:hover::before { animation: none; }
  .video__btn:hover .video__play { scale: 1; }
}
