/* ==========================================================================
   SKiPSWEB 2026
   --------------------------------------------------------------------------
   Midnight base, lime signal, editorial type. One stylesheet, no framework,
   no build step — it deploys by copying it.

   Contents
     01  Tokens
     02  Reset & base
     03  Typography
     04  Layout primitives
     05  Buttons & links
     06  Masthead & navigation
     07  Hero
     08  Marquee
     09  Cards & grids
     10  Statement band
     11  Timeline & archive frames
     12  Lightbox
     13  Then / now comparison
     14  Forms
     15  Tables
     16  Footer
     17  Utilities & notices
     18  Motion & print
   ========================================================================== */

/* 01  Tokens ============================================================== */

:root {
  /* Base — deep midnight, slightly blue, never pure black */
  --ink-900: #05080e;
  --ink-800: #070b12;
  --ink-700: #0b111b;
  --ink-600: #0f1824;
  --ink-500: #16212f;
  --ink-400: #1e2b3a;
  --line:    #22303f;
  --line-soft: #1a2633;

  /* Signal — the lime that carries the brand */
  --lime-400: #d4ff9e;
  --lime-500: #b9f37a;
  --lime-600: #9fdc5c;
  --lime-ink: #0d1a09;

  /* Warm neutral, for archive surfaces and quiet contrast */
  --sand-100: #f4efe6;
  --sand-200: #e3dbcc;
  --sand-400: #a99e8a;

  /* Text */
  --text:        #f2f5f8;
  --text-muted:  #9fadbd;
  --text-dim:    #6f8094;

  /* Type */
  --font-display: 'Outfit', 'Segoe UI', system-ui, sans-serif;
  --font-body:    'DM Sans', 'Segoe UI', system-ui, sans-serif;
  --font-mono:    ui-monospace, 'SFMono-Regular', 'Cascadia Mono', Consolas, monospace;

  /* Rhythm */
  --gutter: clamp(1.25rem, 5vw, 5rem);
  --measure: 68ch;
  --radius: 3px;
  --radius-lg: 6px;

  /* Section spacing */
  --space-section: clamp(4.5rem, 10vw, 9.5rem);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --shell-max: 1480px;
}

/* 02  Reset & base ======================================================== */

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

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

body {
  margin: 0;
  background: var(--ink-800);
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

/* Any `display` declaration beats the UA stylesheet's [hidden] { display: none },
   so a component class silently defeats the hidden attribute. Restate it once,
   with enough weight to win. */
[hidden] { display: none !important; }

:where(a) { color: inherit; }

/* One visible focus treatment everywhere, and it must never be removed. */
:focus-visible {
  outline: 3px solid var(--lime-500);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--lime-500); color: var(--lime-ink); }

.skip-link {
  position: absolute;
  left: 0.5rem;
  top: -4rem;
  z-index: 200;
  background: var(--lime-500);
  color: var(--lime-ink);
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: var(--radius);
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 0.5rem; }

/* 03  Typography ========================================================== */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.75rem, 1.6rem + 5.4vw, 6rem); }
h2 { font-size: clamp(2.1rem, 1.3rem + 3.6vw, 4.25rem); }
h3 { font-size: clamp(1.3rem, 1.1rem + 0.9vw, 1.9rem); letter-spacing: -0.02em; }
h4 { font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem); letter-spacing: -0.01em; font-weight: 600; }

p { margin: 0 0 1.25em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

/* The one italic-as-accent device, used sparingly in headlines. */
.accent { color: var(--lime-500); font-style: normal; }
.quiet  { color: var(--text-muted); }

.lead {
  font-size: clamp(1.1rem, 1rem + 0.6vw, 1.4rem);
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 54ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--lime-500);
  margin: 0 0 1.4rem;
}
.eyebrow::before {
  content: '';
  width: 1.75rem;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.eyebrow--dot::before {
  width: 0.4rem; height: 0.4rem;
  border-radius: 50%;
  opacity: 1;
}

/* Numbered section labels — the editorial spine of the site. */
.section-index {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  color: var(--text-dim);
  text-transform: uppercase;
}

.prose > * + * { margin-top: 1.25em; }
.prose h3 { margin-top: 2.5em; }
.prose h4 { margin-top: 2em; margin-bottom: 0.5em; }
.prose ul, .prose ol { padding-left: 1.25rem; max-width: var(--measure); }
.prose li { margin-bottom: 0.6em; }
.prose li::marker { color: var(--lime-600); }
.prose a { color: var(--lime-500); text-underline-offset: 0.25em; }
.prose a:hover { color: var(--lime-400); }
.prose strong { color: var(--text); font-weight: 600; }

blockquote {
  margin: 2.5rem 0;
  padding: 0 0 0 1.75rem;
  border-left: 2px solid var(--lime-500);
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1rem + 1vw, 1.75rem);
  font-weight: 300;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--text);
}
blockquote cite {
  display: block;
  margin-top: 1rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-style: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* 04  Layout primitives =================================================== */

.shell {
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--space-section); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section--flush-top { padding-top: 0; }

.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.section-head--wide { max-width: 60rem; }

.rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* Two-column editorial split that collapses cleanly. */
.split {
  display: grid;
  gap: clamp(2rem, 5vw, 5rem);
  grid-template-columns: 1fr;
}
@media (min-width: 60rem) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .split--lead  { grid-template-columns: 1.15fr 0.85fr; }
  .split--trail { grid-template-columns: 0.85fr 1.15fr; }
  .split--sticky > :first-child { position: sticky; top: 7rem; }
}

/* 05  Buttons & links ===================================================== */

.button {
  --button-bg: transparent;
  --button-fg: var(--text);
  --button-bd: var(--line);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: var(--button-bg);
  color: var(--button-fg);
  border: 1px solid var(--button-bd);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
              border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0); }

.button--primary {
  --button-bg: var(--lime-500);
  --button-fg: var(--lime-ink);
  --button-bd: var(--lime-500);
  font-weight: 600;
}
.button--primary:hover { --button-bg: var(--lime-400); --button-bd: var(--lime-400); }

.button--ghost { --button-bd: var(--line); }
.button--ghost:hover { --button-bd: var(--lime-500); --button-fg: var(--lime-500); }

.button--sm { padding: 0.7rem 1.1rem; font-size: 0.8125rem; }

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

/* Inline "more" link with a travelling arrow. */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--lime-500);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
}
.arrow-link::after {
  content: '→';
  transition: transform 0.2s var(--ease);
}
.arrow-link:hover { color: var(--lime-400); }
.arrow-link:hover::after { transform: translateX(4px); }

/* 06  Masthead & navigation =============================================== */

.masthead {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--ink-800) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.masthead__inner {
  max-width: var(--shell-max);
  margin-inline: auto;
  padding: 0 var(--gutter);
  min-height: 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.wordmark {
  display: inline-flex;
  flex-direction: column;
  gap: 0.15rem;
  text-decoration: none;
  flex-shrink: 0;
}
.wordmark__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: -0.055em;
  line-height: 1;
}
.wordmark__accent { color: var(--lime-500); }
.wordmark__est {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.16em;
  color: var(--text-dim);
}
.wordmark--footer .wordmark__name { font-size: 1.75rem; }

.nav__list {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 0.85rem;
  background: none;
  border: 0;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.18s var(--ease), background 0.18s var(--ease);
}
.nav__link:hover { color: var(--text); background: var(--ink-600); }
.nav__link[aria-current="page"],
.nav__link[data-section-current="true"] { color: var(--lime-500); }

.nav__chevron { transition: transform 0.2s var(--ease); }
.nav__disclosure[aria-expanded="true"] .nav__chevron { transform: rotate(180deg); }

.nav__item--has-menu { position: relative; }

.nav__menu {
  position: absolute;
  top: calc(100% + 0.6rem);
  left: 0;
  min-width: 20rem;
  margin: 0;
  padding: 0.5rem;
  list-style: none;
  background: var(--ink-600);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgb(0 0 0 / 0.55);
  display: none;
}
.nav__menu[data-open="true"] { display: block; }

.nav__menu-link {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.18s var(--ease);
}
.nav__menu-link:hover { background: var(--ink-500); }
.nav__menu-link[aria-current="page"] .nav__menu-label { color: var(--lime-500); }
.nav__menu-label { font-size: 0.9375rem; font-weight: 500; color: var(--text); }
.nav__menu-note { font-size: 0.75rem; color: var(--text-dim); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.9rem;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
}
.nav-toggle__bars { display: inline-flex; flex-direction: column; gap: 3px; }
.nav-toggle__bars i {
  width: 16px; height: 1.5px;
  background: currentColor;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(3) { transform: translateY(-4.5px) rotate(-45deg); }

@media (max-width: 68rem) {
  .nav-toggle { display: inline-flex; }

  .nav {
    position: fixed;
    inset: 5rem 0 auto 0;
    max-height: calc(100dvh - 5rem);
    overflow-y: auto;
    background: var(--ink-700);
    border-bottom: 1px solid var(--line);
    padding: 1rem var(--gutter) 2rem;
    display: none;
  }
  .nav[data-open="true"] { display: block; }

  .nav__list { flex-direction: column; align-items: stretch; gap: 0.15rem; }
  .nav__link { padding: 0.9rem 0.5rem; font-size: 1rem; justify-content: space-between; }

  .nav__menu {
    position: static;
    min-width: 0;
    box-shadow: none;
    background: var(--ink-800);
    margin: 0.25rem 0 0.5rem;
  }
  .nav__item--cta { margin-top: 1rem; }
  .nav__item--cta .button { width: 100%; justify-content: center; }
}

/* 07  Hero =============================================================== */

.hero {
  position: relative;
  padding-block: clamp(3.5rem, 8vw, 7.5rem) clamp(3rem, 6vw, 5.5rem);
  overflow: hidden;
}

/* A single soft lime bloom. Decorative, so it is aria-hidden in the markup. */
.hero__glow {
  position: absolute;
  top: -12%;
  right: -8%;
  width: min(46rem, 85vw);
  aspect-ratio: 1;
  background: radial-gradient(circle, rgb(185 243 122 / 0.14), transparent 62%);
  pointer-events: none;
  z-index: 0;
}

/* Faint grid, the only decorative texture on the page. */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgb(255 255 255 / 0.022) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(255 255 255 / 0.022) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: radial-gradient(ellipse 100% 70% at 50% 0%, #000 35%, transparent 78%);
  pointer-events: none;
  z-index: 0;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(3rem, 6vw, 4.5rem);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 64rem) {
  .hero__inner { grid-template-columns: 1.08fr 0.92fr; }
}

.hero h1 { margin-bottom: 1.75rem; }
.hero__lead { max-width: 38ch; }

/* The credibility strip under the hero copy. */
.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.hero__stat { display: flex; flex-direction: column; gap: 0.3rem; }
.hero__stat dt {
  order: 2;
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.hero__stat dd {
  order: 1;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.5rem + 1.6vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--lime-500);
}

/* 08  Marquee ============================================================ */

.marquee {
  background: var(--lime-500);
  color: var(--lime-ink);
  border-block: 1px solid var(--lime-600);
  overflow: hidden;
  padding-block: 0.9rem;
}
.marquee__track {
  display: flex;
  gap: 2.5rem;
  width: max-content;
  animation: marquee 48s linear infinite;
}
.marquee__group {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  padding-right: 2.5rem;
}
.marquee span {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}
.marquee i { font-style: normal; opacity: 0.45; }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee:hover .marquee__track { animation-play-state: paused; }

/* 09  Cards & grids ====================================================== */

.grid { display: grid; gap: 1px; background: var(--line-soft); }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }
@media (min-width: 46rem) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 70rem) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* Hairline grid: cards sit on a 1px background so dividers are perfect. */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  background: var(--ink-800);
  transition: background 0.25s var(--ease);
}
.card:hover { background: var(--ink-700); }
.card__index {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  color: var(--text-dim);
}
.card h3 { margin: 0.4rem 0 0; }
.card p { font-size: 0.9375rem; color: var(--text-muted); margin: 0; }
.card .arrow-link { margin-top: auto; padding-top: 1.25rem; }

/* The lime rule that grows across the top of a card on hover. */
.card--linked::before {
  content: '';
  position: absolute;
  inset: 0 auto auto 0;
  height: 2px;
  width: 0;
  background: var(--lime-500);
  transition: width 0.35s var(--ease);
}
.card--linked:hover::before,
.card--linked:focus-within::before { width: 100%; }

/* Bordered panel, used for callouts and sidebars. */
.panel {
  padding: clamp(1.75rem, 3vw, 2.5rem);
  background: var(--ink-700);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.panel--lime {
  background: linear-gradient(160deg, rgb(185 243 122 / 0.1), transparent 70%);
  border-color: color-mix(in srgb, var(--lime-500) 35%, transparent);
}
.panel__heading {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

/* Numbered process steps. */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 1.75rem 0 1.75rem 4.5rem;
  border-top: 1px solid var(--line);
}
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1.75rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--lime-500);
  letter-spacing: 0.1em;
}
.steps h3 { font-size: 1.15rem; margin: 0 0 0.4rem; }
.steps p { font-size: 0.9375rem; color: var(--text-muted); margin: 0; }

/* Definition-style feature list. */
.feature-list { display: grid; gap: 0; margin: 0; }
.feature-list > div {
  display: grid;
  gap: 0.35rem 2rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}
@media (min-width: 52rem) {
  .feature-list > div { grid-template-columns: 16rem 1fr; }
}
.feature-list dt {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -0.015em;
}
.feature-list dd { margin: 0; color: var(--text-muted); font-size: 0.9375rem; }

/* 10  Statement band ===================================================== */

.statement {
  background: var(--lime-500);
  color: var(--lime-ink);
  padding-block: clamp(4rem, 8vw, 7rem);
}
.statement .eyebrow { color: color-mix(in srgb, var(--lime-ink) 65%, transparent); }
.statement h2 {
  font-size: clamp(2rem, 1.1rem + 4.2vw, 4.75rem);
  max-width: 20ch;
  margin-bottom: 0;
}
.statement__note {
  max-width: 34ch;
  font-size: 1rem;
  color: color-mix(in srgb, var(--lime-ink) 78%, transparent);
}
.statement__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 3rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.75rem;
  border-top: 1px solid color-mix(in srgb, var(--lime-ink) 25%, transparent);
  list-style: none;
}
.statement__facts li {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* 11  Timeline & archive frames ========================================== */

/* Era rail: the horizontal year picker above the timeline. */
.era-rail {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding-bottom: 0.75rem;
  margin-bottom: 2.5rem;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
}
.era-rail__item {
  flex: 0 0 auto;
  scroll-snap-align: start;
  padding: 0.55rem 1rem;
  background: var(--ink-600);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s var(--ease);
}
.era-rail__item:hover { color: var(--text); border-color: var(--lime-600); }
.era-rail__item[aria-current="true"] {
  background: var(--lime-500);
  border-color: var(--lime-500);
  color: var(--lime-ink);
  font-weight: 600;
}

/* One timeline entry. */
.milestone {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
  border-top: 1px solid var(--line);
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 62rem) {
  .milestone { grid-template-columns: 7rem minmax(0, 20rem) minmax(0, 1fr); }
}
.milestone:last-of-type { border-bottom: 1px solid var(--line); }

.milestone__year {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 1.8rem + 1.8vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--lime-500);
}
.milestone__date {
  display: block;
  margin-top: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}
.milestone h3 { font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.65rem); margin-bottom: 0.65rem; }
.milestone p { font-size: 0.9375rem; color: var(--text-muted); }
.milestone__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 1.25rem;
}

/* The browser chrome that frames every archive screenshot. */
.browser {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ink-600);
  box-shadow: 0 24px 70px rgb(0 0 0 / 0.5);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.browser__bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.85rem;
  background: var(--ink-500);
  border-bottom: 1px solid var(--line);
}
.browser__dots { display: flex; gap: 0.35rem; flex-shrink: 0; }
.browser__dots i {
  width: 0.5rem; height: 0.5rem;
  border-radius: 50%;
  background: var(--ink-400);
}
.browser__url {
  flex: 1;
  min-width: 0;
  padding: 0.25rem 0.6rem;
  background: var(--ink-700);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-dim);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.browser__shot {
  display: block;
  width: 100%;
  background: #fff;
  border: 0;
  padding: 0;
  cursor: zoom-in;
}
.browser__shot img { width: 100%; display: block; }
.browser:hover { border-color: color-mix(in srgb, var(--lime-500) 45%, transparent); }
.browser:has(.browser__shot:hover) { transform: translateY(-4px); }

/* Honest label for frames whose period assets no longer load. */
.browser__flag {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.85rem;
  background: var(--ink-700);
  border-top: 1px solid var(--line);
  font-size: 0.75rem;
  color: var(--sand-400);
}
.browser__flag::before { content: '⚠'; opacity: 0.8; }

.source-note {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: var(--text-dim);
  line-height: 1.6;
}
.source-note a { color: var(--text-muted); }

/* Gap in the record — a real absence, shown as one. */
.gap-note {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem 0;
  border-top: 1px dashed var(--line);
  color: var(--text-dim);
  font-size: 0.875rem;
}
.gap-note__years {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  color: var(--sand-400);
  white-space: nowrap;
}

/* 12  Lightbox =========================================================== */

/* A closed <dialog> is display:none from the UA stylesheet. Setting display
   here would override that and leave the lightbox permanently open over the
   page, so the layout is attached to [open] only. */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgb(3 5 9 / 0.94);
  backdrop-filter: blur(6px);
  border: 0;
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  overflow: auto;
}
.lightbox[open] { display: grid; }
.lightbox::backdrop { background: rgb(3 5 9 / 0.94); }
.lightbox[hidden] { display: none; }

.lightbox__frame {
  max-width: min(84rem, 100%);
  width: 100%;
}
.lightbox__image {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
}
.lightbox__caption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-top: 1.25rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.lightbox__caption strong { color: var(--text); font-weight: 600; }
.lightbox__close {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  background: var(--ink-600);
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text);
  font-size: 1.25rem;
  cursor: pointer;
}
.lightbox__close:hover { background: var(--lime-500); color: var(--lime-ink); }

.lightbox__nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  background: var(--ink-600);
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text);
  cursor: pointer;
  font-size: 1.1rem;
}
.lightbox__nav:hover { background: var(--lime-500); color: var(--lime-ink); }
.lightbox__nav--prev { left: 1rem; }
.lightbox__nav--next { right: 1rem; }
.lightbox__nav[disabled] { opacity: 0.3; cursor: default; }
@media (max-width: 48rem) {
  .lightbox__nav { top: auto; bottom: 1rem; transform: none; }
}

/* 13  Then / now comparison ============================================= */

.compare {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ink-600);
  touch-action: pan-y;
}
.compare__pane { position: relative; display: block; line-height: 0; }
.compare__pane img { width: 100%; display: block; }

/* The "after" pane is clipped to the slider position. */
.compare__pane--top {
  position: absolute;
  inset: 0;
  width: var(--compare-position, 50%);
  overflow: hidden;
}
.compare__pane--top img {
  width: var(--compare-width, 100%);
  max-width: none;
}

.compare__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--compare-position, 50%);
  width: 2px;
  background: var(--lime-500);
  transform: translateX(-1px);
  pointer-events: none;
}
.compare__handle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2.75rem;
  height: 2.75rem;
  transform: translate(-50%, -50%);
  background: var(--lime-500);
  border-radius: 50%;
  box-shadow: 0 6px 20px rgb(0 0 0 / 0.5);
}

/* The real control is a range input, so it is keyboard-operable for free. */
.compare__range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
}
.compare__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 3rem; height: 100%;
}
.compare__range::-moz-range-thumb { width: 3rem; height: 100%; border: 0; opacity: 0; }
.compare__range:focus-visible { outline-offset: -3px; }

.compare__tag {
  position: absolute;
  top: 1rem;
  padding: 0.35rem 0.75rem;
  background: rgb(5 8 14 / 0.82);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  color: var(--text);
  pointer-events: none;
}
.compare__tag--then { left: 1rem; }
.compare__tag--now  { right: 1rem; }

/* 14  Forms ============================================================= */

.form { display: grid; gap: 1.5rem; }
.form__row { display: grid; gap: 1.5rem; }
@media (min-width: 42rem) { .form__row--2 { grid-template-columns: 1fr 1fr; } }

.field { display: grid; gap: 0.5rem; }
.field > label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
}
.field__hint { font-size: 0.8125rem; color: var(--text-dim); }
.field__optional { color: var(--text-dim); font-weight: 400; }

.input, .select, .textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  background: var(--ink-700);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease);
}
.input:hover, .select:hover, .textarea:hover { border-color: var(--ink-400); }
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--lime-500);
  background: var(--ink-600);
}
.textarea { min-height: 9rem; resize: vertical; line-height: 1.6; }

.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%239fadbd' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
.select option { background: var(--ink-600); color: var(--text); }

[aria-invalid="true"] { border-color: #ff8f73; }

.field__error {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  font-size: 0.8125rem;
  color: #ffb3a0;
}
.field__error::before { content: '!'; font-weight: 700; }

.choice-grid { display: grid; gap: 0.5rem; }
@media (min-width: 34rem) { .choice-grid { grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); } }

.choice {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
  background: var(--ink-700);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.875rem;
  cursor: pointer;
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease);
}
.choice:hover { border-color: var(--ink-400); }
.choice input { accent-color: var(--lime-500); margin: 0; }
.choice:has(input:checked) {
  border-color: var(--lime-500);
  background: color-mix(in srgb, var(--lime-500) 9%, var(--ink-700));
}
.choice:has(input:focus-visible) { outline: 3px solid var(--lime-500); outline-offset: 2px; }

.consent {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 1.25rem;
  background: var(--ink-700);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.consent input { margin-top: 0.3rem; accent-color: var(--lime-500); flex-shrink: 0; }
.consent label { font-size: 0.875rem; color: var(--text-muted); }

/* Honeypot — off-screen, never display:none (bots skip hidden fields). */
.honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

.notice {
  display: grid;
  gap: 0.5rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--ink-700);
  font-size: 0.9375rem;
}
.notice--error { border-color: #7a3a2c; background: rgb(122 58 44 / 0.16); }
.notice--success {
  border-color: var(--lime-600);
  background: rgb(185 243 122 / 0.1);
}
.notice__heading { font-weight: 600; color: var(--text); }

/* 15  Tables ============================================================ */

.table-wrap { overflow-x: auto; margin-block: 2rem; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  min-width: 36rem;
}
caption {
  text-align: left;
  padding-bottom: 1rem;
  font-size: 0.8125rem;
  color: var(--text-dim);
}
th, td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
thead th {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  border-bottom-color: var(--ink-400);
}
tbody th { font-weight: 500; color: var(--text); }
td { color: var(--text-muted); }
.table-yes { color: var(--lime-500); }
.table-no  { color: var(--text-dim); }

/* 16  Footer ============================================================ */

.footer {
  border-top: 1px solid var(--line);
  background: var(--ink-900);
  padding-top: clamp(3rem, 6vw, 5rem);
}
.footer__inner {
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 46rem) { .footer__inner { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 70rem) { .footer__inner { grid-template-columns: 1.6fr repeat(3, 1fr); } }

.footer__line { font-size: 0.875rem; color: var(--text-dim); max-width: 30ch; margin-top: 1.25rem; }
.footer__heading {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 1.25rem;
}
.footer__nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.footer__nav a {
  font-size: 0.9375rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.18s var(--ease);
}
.footer__nav a:hover { color: var(--lime-500); }

.footer__base {
  max-width: var(--shell-max);
  margin: clamp(3rem, 6vw, 4.5rem) auto 0;
  padding: 1.75rem var(--gutter);
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  color: var(--text-dim);
}
.footer__base p { margin: 0; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.footer__legal a { color: var(--text-dim); text-decoration: none; }
.footer__legal a:hover { color: var(--lime-500); }

/* 17  Utilities & notices =============================================== */

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.breadcrumbs {
  padding-block: 1.5rem 0;
  font-size: 0.8125rem;
  color: var(--text-dim);
}
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin: 0; padding: 0; }
.breadcrumbs li::after { content: '/'; margin-left: 0.5rem; opacity: 0.4; }
.breadcrumbs li:last-child::after { content: none; }
.breadcrumbs a { color: var(--text-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--lime-500); }

/* Visible placeholder for anything only the owner can supply. */
.owner-todo {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.3rem 0.65rem;
  background: rgb(255 196 92 / 0.1);
  border: 1px dashed rgb(255 196 92 / 0.5);
  border-radius: var(--radius);
  font-size: 0.8125rem;
  color: #ffd79a;
}
.owner-todo__tag {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffc45c;
}
.owner-todo__detail { color: var(--sand-400); font-size: 0.75rem; }

/* Draft banner for the legal pages. */
.draft-banner {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.5rem;
  margin-bottom: 2.5rem;
  background: rgb(255 196 92 / 0.08);
  border: 1px solid rgb(255 196 92 / 0.35);
  border-radius: var(--radius-lg);
}
.draft-banner strong { color: #ffd79a; display: block; margin-bottom: 0.35rem; }
.draft-banner p { font-size: 0.875rem; color: var(--text-muted); margin: 0; }

/* Big closing call to action, shared by every page. */
.cta {
  position: relative;
  overflow: hidden;
  background: var(--ink-700);
  border-top: 1px solid var(--line);
}
.cta__inner {
  max-width: var(--shell-max);
  margin-inline: auto;
  padding: clamp(3.5rem, 8vw, 7rem) var(--gutter);
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
}
@media (min-width: 62rem) { .cta__inner { grid-template-columns: 1.15fr 0.85fr; align-items: center; } }
.cta h2 { margin-bottom: 1.25rem; }

/* 18  Motion & print ==================================================== */

/* Scroll-reveal. Without JS, .reveal elements are simply visible. */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: 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;
  }
  .marquee__track { animation: none; transform: none; }
  .js .reveal { opacity: 1; transform: none; }
  .button:hover, .browser:has(.browser__shot:hover) { transform: none; }
}

@media print {
  .masthead, .nav, .cta, .marquee, .lightbox, .footer__legal { display: none; }
  body { background: #fff; color: #000; }
  .browser { break-inside: avoid; box-shadow: none; }
  a[href^="http"]::after { content: ' (' attr(href) ')'; font-size: 0.8em; }
}
