@import url("tokens.css?v=9");
@import url("nav.css?v=14");

/* Landing page. Same tokens as the app; only the layout differs — this page
   scrolls, the app does not. */

html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--background); color: var(--foreground);
  font: 400 15px/1.65 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.wrap { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
@media (max-width: 720px) { .wrap { width: calc(100% - 32px); } }
/* Screen-reader-only text, and a skip link that appears when tabbed to. */
.sr-only, .skip {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip:focus {
  position: fixed; top: 12px; left: 12px; z-index: 10000;
  width: auto; height: auto; clip: auto; margin: 0; padding: 10px 14px;
  background: var(--card); color: var(--foreground); border: 1px solid var(--border);
  border-radius: 10px; box-shadow: var(--shadow-2, 0 6px 20px rgba(0,0,0,.15));
  outline: 2px solid var(--ring); outline-offset: 2px;
}

/* The header and footer are shared — see css/nav.css. */

/* The hero glows use the territory palette. Light needs them stronger than dark. */
:root { --glow-a: .30; }
.dark, :root[data-theme="dark"] { --glow-a: .20; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --glow-a: .20; } }

/* ---------------------------------------------------------------- type */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .13em;
  text-transform: uppercase; color: var(--faint); margin: 0 0 16px;
}
.pulse {
  width: 7px; height: 7px; border-radius: 50%; background: var(--c2);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--c2) 55%, transparent);
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse { to { box-shadow: 0 0 0 9px transparent; } }
h1, h2, h3 { font-family: var(--font-serif); font-weight: 400; letter-spacing: -.022em; }
h1 { font-size: clamp(36px, 5.8vw, 66px); line-height: 1.04; margin: 0 0 22px; text-wrap: balance; }
h2 { font-size: clamp(26px, 3.4vw, 40px); line-height: 1.14; margin: 0 0 14px; text-wrap: balance; }
h3 { font-size: 19px; line-height: 1.28; margin: 0 0 8px; }
.hl {
  font-style: normal;
  background: linear-gradient(to top, color-mix(in srgb, var(--c3) 60%, transparent) 0 .36em, transparent .36em) no-repeat;
  background-size: 0% 100%;
  animation: hl .9s .55s cubic-bezier(.2, .7, .2, 1) forwards;
}
@keyframes hl { to { background-size: 100% 100%; } }
.lede { font-size: clamp(16px, 1.7vw, 19px); line-height: 1.6; color: var(--muted-foreground);
        max-width: 62ch; margin: 0 0 30px; }
.sect-intro { color: var(--muted-foreground); max-width: 66ch; margin: 0 0 40px; }
.sect-intro a { color: var(--foreground); text-decoration: none; border-bottom: 1px solid var(--border); }
.sect-intro a:hover { border-bottom-color: var(--foreground); }
section { padding: 92px 0; border-top: 1px solid var(--border); }
section:first-of-type { border-top: none; }
@media (max-width: 720px) { section { padding: 64px 0; } }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; z-index: 0; overflow: hidden; padding: 72px 0 72px; border-top: none; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.glow {
  position: absolute; border-radius: 50%; opacity: var(--glow-a);
  width: 52vw; height: 52vw; max-width: 760px; max-height: 760px;
  filter: blur(80px); will-change: transform;
}
.g1 { left: -14%; top: -28%; background: var(--c0); animation: drift1 28s ease-in-out infinite alternate; }
.g2 { right: -16%; top: -14%; background: var(--c1); animation: drift2 34s ease-in-out infinite alternate; }
.g3 { left: 34%; top: 26%; background: var(--c2); opacity: calc(var(--glow-a) * .6);
      animation: drift3 40s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(14vw, 10vh) scale(1.12); } }
@keyframes drift2 { to { transform: translate(-12vw, 16vh) scale(.94); } }
@keyframes drift3 { to { transform: translate(-16vw, -10vh) scale(1.08); } }
.grid {
  position: absolute; inset: 0;
  background-image: radial-gradient(color-mix(in srgb, var(--foreground) 14%, transparent) 1px, transparent 1.2px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 0%, #000 20%, transparent 100%);
  mask-image: radial-gradient(70% 60% at 50% 0%, #000 20%, transparent 100%);
}
@media (prefers-reduced-motion: reduce) {
  .glow, .pulse { animation: none; }
  .hl { animation: none; background-size: 100% 100%; }
}

.hero-copy { max-width: 760px; }

/* Homepage hero: centred, one ink — no colour glows, no highlighter. Scoped to
   .hero-home so the About page's hero keeps its own look. */
.hero-home { padding: 84px 0 64px; }
.hero-home .hero-copy { max-width: 820px; margin: 0 auto; text-align: center; }
.hero-home .eyebrow { justify-content: center; }
.hero-home .eyebrow .pulse { background: var(--foreground); box-shadow: none; animation: none; }
.hero-home h1 { font-size: clamp(38px, 6vw, 70px); }
.hero-home .hl { background: none; font-style: italic; padding: 0;
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .14em; }
.hero-home .lede { max-width: 620px; margin-left: auto; margin-right: auto; }
.hero-home-cta { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 30px; }
.hero-home .hero-year-form { flex-wrap: nowrap; gap: 10px; align-items: stretch; }
.hero-home .hero-year-form input { width: 132px; height: auto; font-size: 22px; text-align: center; font-family: var(--font-mono);
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-ctl); color: var(--foreground); }
.hero-home-alt { font-size: 14px; color: var(--muted-foreground); }
.hero-home-alt:hover { color: var(--foreground); }
.hero-home .jump { text-align: center; }
.hero-home .jump-row { justify-content: center; }
@media (max-width: 420px) { .hero-home .hero-year-form { flex-wrap: wrap; justify-content: center; } }
/* Phones: less air above the headline, no dot, and the stats line on one line
   (the type scales with the screen so it still fits at 320px). */
@media (max-width: 720px) {
  .hero-home { padding: 28px 0 48px; }
  .hero-home .eyebrow .pulse { display: none; }
  .hero-home .eyebrow { white-space: nowrap; font-size: clamp(9px, 2.85vw, 11px); letter-spacing: .06em; }
}
.hero-cta { display: flex; gap: 14px 22px; flex-wrap: wrap; align-items: center; }
.hero-note { font-size: 13.5px; color: var(--faint); margin: 18px 0 0; }
.hero-note a { color: var(--muted-foreground); }

.jump-form { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.jump-form label { font-size: 13px; color: var(--faint); }
.jump-form input {
  width: 96px; padding: 9px 12px; font-size: 14px; font-variant-numeric: tabular-nums;
  border: 1px solid var(--border); border-radius: var(--r-ctl);
  background: var(--input); color: var(--foreground); -moz-appearance: textfield;
  transition: border-color .15s, box-shadow .15s;
}
.jump-form input::-webkit-outer-spin-button,
.jump-form input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.jump-form input:focus { outline: none; border-color: var(--ring);
                         box-shadow: 0 0 0 3px color-mix(in srgb, var(--ring) 14%, transparent); }

/* start-somewhere chips */
.jump { margin-top: 30px; }
.jump-label {
  display: block; font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: .11em; text-transform: uppercase; color: var(--faint); margin-bottom: 12px;
}
.jump-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: baseline; gap: 7px; text-decoration: none;
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--card); color: var(--foreground); font-size: 14px; font-weight: 500;
  transition: border-color .15s, background .15s, transform .15s, box-shadow .15s;
}
.chip em { font-style: normal; font-size: 12.5px; color: var(--faint); font-weight: 400; }
.chip:hover { background: var(--accent); color: var(--accent-foreground);
              border-color: var(--muted-foreground); transform: translateY(-1px); box-shadow: var(--shadow-1); }
.chip:hover em { color: var(--muted-foreground); }
.chip:active { transform: translateY(1px); }

/* ------------------------------------------------------------ time machine */
.tm {
  position: relative; margin: 52px 0 0;
  border: 1px solid var(--border); border-radius: calc(var(--r-card) + 6px);
  background: var(--card); box-shadow: var(--shadow-3); overflow: hidden;
  transform: perspective(1600px) rotateX(calc(var(--rx, 0) * 1deg)) rotateY(calc(var(--ry, 0) * 1deg));
  transition: transform .35s ease;
  animation: tm-in 1s .15s cubic-bezier(.2, .7, .2, 1) both;
}
@keyframes tm-in { from { opacity: 0; transform: translateY(26px); } }
@media (prefers-reduced-motion: reduce) { .tm { animation: none; transform: none; } }

.tm-head {
  display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "year note play" "year meta play";
  gap: 4px 22px; align-items: center; padding: 16px 20px 14px; border-bottom: 1px solid var(--border);
}
.tm-year { grid-area: year; display: flex; align-items: baseline; gap: 7px; font-family: var(--font-mono); }
.tm-ad { font-size: 11px; letter-spacing: .14em; color: var(--faint); }
.tm-num {
  font-size: clamp(32px, 4.2vw, 46px); font-weight: 500; letter-spacing: -.035em; line-height: 1;
  font-variant-numeric: tabular-nums; min-width: 4ch;
}
.tm-note { grid-area: note; margin: 0; font-size: 14.5px; color: var(--foreground); }
.tm-meta {
  grid-area: meta; margin: 0; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--faint);
}
.tm-meta b { color: var(--muted-foreground); font-weight: 500; }
.tm-meta .sep { margin: 0 6px; }
.tm-play {
  grid-area: play; width: 42px; height: 42px; border-radius: 50%; position: relative;
  border: 1px solid var(--border); background: var(--secondary); color: var(--secondary-foreground);
  cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .1s;
}
.tm-play:hover { background: var(--primary); color: var(--primary-foreground); border-color: transparent; }
.tm-play:active { transform: scale(.94); }
.tm-play .ic-pause, .tm-play .ic-play { position: absolute; inset: 0; margin: auto; }
.ic-pause { width: 10px; height: 12px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.ic-play {
  width: 0; height: 0; border-style: solid; border-width: 7px 0 7px 12px;
  border-color: transparent transparent transparent currentColor; margin-left: 17px !important;
}
.tm-play .ic-play { display: none; }
.tm-play.is-paused .ic-play { display: block; }
.tm-play.is-paused .ic-pause { display: none; }

.tm-stage {
  position: relative; padding: 18px 16px 10px; cursor: crosshair; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 8%, var(--sea) 0%, var(--sea-deep) 100%);
}
.tm-stage::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(color-mix(in srgb, var(--foreground) 9%, transparent) .7px, transparent 1px);
  background-size: 18px 18px; opacity: .6;
}
.art { display: block; width: 100%; height: auto; }
.art-land { fill: var(--land); stroke: var(--land-edge); stroke-width: .5; vector-effect: non-scaling-stroke; }
.art-c0 { fill: var(--c0); } .art-c1 { fill: var(--c1); } .art-c2 { fill: var(--c2); }
.art-c3 { fill: var(--c3); } .art-c4 { fill: var(--c4); } .art-c5 { fill: var(--c5); }
.art-c6 { fill: var(--c6); } .art-c7 { fill: var(--c7); }
.art [class^="art-c"] {
  fill-opacity: .86; stroke: color-mix(in srgb, var(--sea) 70%, transparent);
  stroke-width: .6; vector-effect: non-scaling-stroke;
}
.tm-stage .art-frame {
  position: absolute; left: 16px; top: 18px; width: calc(100% - 32px); height: calc(100% - 28px);
  opacity: 0; visibility: hidden; transition: opacity .85s ease, visibility 0s .85s;
}
.tm-stage .art-frame.is-on { opacity: 1; visibility: visible; transition: opacity .85s ease, visibility 0s; }
.tm-stage .art-frame path { transition: fill-opacity .15s, stroke .15s; }
.tm-stage .art-frame.is-on path:hover {
  fill-opacity: 1; stroke: var(--foreground); stroke-width: 1.4; cursor: pointer;
}
.tm-tip {
  position: absolute; z-index: 5; pointer-events: none; transform: translate(-50%, -100%);
  padding: 7px 11px 6px; border-radius: 8px; white-space: nowrap;
  background: var(--popover); color: var(--popover-foreground);
  border: 1px solid var(--border); box-shadow: var(--shadow-2);
  font-size: 13px; font-weight: 500; line-height: 1.25;
}
.tm-tip small {
  display: block; margin-top: 3px; font-weight: 400; font-family: var(--font-mono);
  font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint);
}
.tm-tip[hidden] { display: none; }

.tm-scrub { position: relative; padding: 16px 20px 40px; border-top: 1px solid var(--border); }
.tm-range {
  -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 4px; margin: 8px 0;
  border-radius: 99px; outline: none; cursor: pointer;
  background: linear-gradient(to right, var(--foreground) var(--p, 0%), var(--border) var(--p, 0%));
}
.tm-range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%;
  background: var(--primary); border: 3px solid var(--background);
  box-shadow: 0 0 0 1px var(--foreground), var(--shadow-2); transition: transform .15s;
}
.tm-range::-moz-range-thumb {
  width: 12px; height: 12px; border-radius: 50%; background: var(--primary);
  border: 3px solid var(--background); box-shadow: 0 0 0 1px var(--foreground), var(--shadow-2);
}
.tm-range::-moz-range-track { background: transparent; }
.tm-range:hover::-webkit-slider-thumb, .tm-range:active::-webkit-slider-thumb { transform: scale(1.15); }
.tm-range:focus-visible { outline: 2px solid var(--ring); outline-offset: 6px; }
.tm-ticks { position: absolute; left: 20px; right: 20px; top: 38px; height: 26px; }
.tm-tick {
  position: absolute; top: 0; transform: translateX(-50%); display: flex; flex-direction: column;
  align-items: center; gap: 5px; padding: 0 3px; background: none; border: 0; cursor: pointer;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .04em; color: var(--faint);
  transition: color .15s;
}
.tm-tick i { display: block; width: 1px; height: 6px; background: var(--border); transition: background .15s, height .15s; }
.tm-tick:hover, .tm-tick.is-on { color: var(--foreground); }
.tm-tick.is-on i { background: var(--foreground); height: 9px; }
/* Fewer labels as the bar narrows; the ends and the current year always keep theirs. */
@media (max-width: 860px) { .tm-tick:nth-child(even):not(.is-on):not(:last-child) span { display: none; } }
@media (max-width: 560px) { .tm-tick:not(:first-child):not(:last-child):not(.is-on) span { display: none; } }

@media (max-width: 720px) {
  .tm { margin-top: 40px; border-radius: var(--r-card); }
  .tm-head { grid-template-columns: 1fr auto; grid-template-areas: "year play" "note note" "meta meta";
             gap: 6px 14px; padding: 14px 16px 12px; }
  .tm-hint, .tm-hint-sep { display: none; }
  .tm-stage { padding: 12px 10px 8px; }
  .tm-stage .art-frame { left: 10px; top: 12px; width: calc(100% - 20px); height: calc(100% - 20px); }
  .tm-scrub { padding: 12px 16px 36px; }
  .tm-ticks { left: 16px; right: 16px; }
}

/* ---------------------------------------------------------------- ticker */
.ticker {
  overflow: hidden; padding: 13px 0; background: var(--card);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.ticker-track { display: flex; width: max-content; animation: ticker 110s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-run { display: flex; align-items: baseline; gap: 18px; padding-right: 18px; white-space: nowrap; }
.ticker-run::after { content: "·"; color: var(--border); }
.ticker a {
  display: inline-flex; align-items: baseline; gap: 7px; text-decoration: none;
  color: var(--foreground); font-size: 14px; font-weight: 500;
}
.ticker a em { font-style: normal; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .06em; color: var(--faint); }
.ticker a:hover { text-decoration: underline; text-underline-offset: 4px; }
.ticker .dot { color: var(--border); }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* ---------------------------------------------------------------- reveal */
[data-reveal] { opacity: 0; transform: translateY(20px);
                transition: opacity .75s ease, transform .75s cubic-bezier(.2, .7, .2, 1); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal="stagger"] { opacity: 1; transform: none; transition: none; }
[data-reveal="stagger"] > * { opacity: 0; transform: translateY(20px);
                              transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
[data-reveal="stagger"].in > * { opacity: 1; transform: none; }
[data-reveal="stagger"].in > :nth-child(2) { transition-delay: .09s; }
[data-reveal="stagger"].in > :nth-child(3) { transition-delay: .18s; }
[data-reveal="stagger"].in > :nth-child(4) { transition-delay: .27s; }
[data-reveal="stagger"].in > :nth-child(5) { transition-delay: .36s; }
[data-reveal="stagger"].in > :nth-child(6) { transition-delay: .45s; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal], [data-reveal="stagger"] > * { opacity: 1; transform: none; transition: none; }
}

/* ---------------------------------------------------------------- stats */
.stats-sec { padding: 64px 0; border-top: none; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin: 0;
         background: var(--border); border: 1px solid var(--border);
         border-radius: var(--r-card); overflow: hidden; }
.stats div { background: var(--card); padding: 24px 22px; transition: background .2s; }
.stats div:hover { background: var(--muted); }
.stats dt { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em;
            text-transform: uppercase; color: var(--faint); margin-bottom: 9px; }
.stats dd { margin: 0; font-family: var(--font-serif); font-size: 38px; line-height: 1;
            letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.stats small { display: block; margin-top: 9px; font-size: 12.5px; color: var(--muted-foreground); }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------------------------------------------------------------- features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 980px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .features { grid-template-columns: 1fr; } }
.feature {
  padding: 26px 24px 28px; border: 1px solid var(--border);
  border-radius: var(--r-card); background: var(--card);
  transition: box-shadow .2s, border-color .2s, transform .2s;
}
.feature:hover { box-shadow: var(--shadow-3); border-color: var(--muted-foreground); transform: translateY(-2px); }
.feature .ico {
  width: 38px; height: 38px; border-radius: var(--r-ctl); display: grid; place-items: center;
  margin-bottom: 18px; font-size: 17px; transition: transform .25s;
}
.feature:hover .ico { transform: rotate(-8deg) scale(1.06); }
.feature:nth-child(1) .ico { background: color-mix(in srgb, var(--c0) 16%, transparent); color: var(--c0); }
.feature:nth-child(2) .ico { background: color-mix(in srgb, var(--c1) 16%, transparent); color: var(--c1); }
.feature:nth-child(3) .ico { background: color-mix(in srgb, var(--c2) 16%, transparent); color: var(--c2); }
.feature p { margin: 0; font-size: 14px; color: var(--muted-foreground); }
.feature p + p { margin-top: 10px; }
.feature-pay { color: var(--foreground) !important; font-weight: 500; }

/* a soft light that follows the pointer across the card */
.spot { position: relative; overflow: hidden; }
.spot::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%),
              color-mix(in srgb, var(--foreground) 7%, transparent), transparent 62%);
}
.spot:hover::before { opacity: 1; }
.spot > * { position: relative; }

/* ---------------------------------------------------------------- era strip */
.eras { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 900px) { .eras { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .eras { grid-template-columns: 1fr; } }
.era {
  display: block; text-decoration: none; color: inherit;
  border: 1px solid var(--border); border-radius: var(--r-card); overflow: hidden;
  background: var(--card); transition: transform .22s, box-shadow .22s, border-color .22s;
}
.era:hover { transform: translateY(-4px); box-shadow: var(--shadow-3); border-color: var(--muted-foreground); }
.era .plate {
  position: relative; padding: 14px 12px 10px;
  background: radial-gradient(120% 90% at 50% 10%, var(--sea) 0%, var(--sea-deep) 100%);
  border-bottom: 1px solid var(--border);
}
.era .plate .art-frame {
  position: absolute; left: 12px; top: 14px; width: calc(100% - 24px); height: calc(100% - 24px);
}
.era .plate .art [class^="art-c"] { transition: fill-opacity .3s; }
.era:hover .plate .art [class^="art-c"] { fill-opacity: 1; }
.era .meta { padding: 14px 16px 16px; }
.era .yr { font-family: var(--font-serif); font-size: 24px; letter-spacing: -.02em; }
.era .ct { font-family: var(--font-mono); font-size: 10.5px; color: var(--faint);
           letter-spacing: .06em; text-transform: uppercase; margin-top: 3px; }
.era p { margin: 9px 0 0; font-size: 13px; color: var(--muted-foreground); line-height: 1.5; }
.era-go {
  display: inline-flex; align-items: center; gap: 5px; margin-top: 12px;
  font-size: 12.5px; font-weight: 500; color: var(--foreground); opacity: .55; transition: opacity .2s;
}
.era-go .arrow { transition: transform .16s; }
.era:hover .era-go { opacity: 1; }
.era:hover .era-go .arrow { transform: translateX(3px); }

/* ---------------------------------------------------------------- honesty */
.honest { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: h; }
@media (max-width: 1000px) { .honest { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 800px) { .honest { grid-template-columns: 1fr; } }
.honest article {
  padding: 22px 22px 24px; border: 1px solid var(--border); border-radius: var(--r-card);
  background: var(--muted); transition: background .2s, border-color .2s;
}
.honest article:hover { background: var(--card); border-color: var(--muted-foreground); }
.honest article::before {
  counter-increment: h; content: "0" counter(h);
  display: block; margin-bottom: 12px; font-family: var(--font-mono); font-size: 10px;
  letter-spacing: .14em; color: var(--faint);
}
.honest h3 { font-family: var(--font-sans); font-size: 15px; font-weight: 600;
             letter-spacing: -.005em; margin-bottom: 8px; }
.honest p { margin: 0; font-size: 14px; color: var(--muted-foreground); }

/* ---------------------------------------------------------------- sources */
.srcs { width: 100%; border-collapse: collapse; font-size: 14px; }
.srcs th, .srcs td { text-align: left; padding: 15px 14px; border-bottom: 1px solid var(--border);
                     vertical-align: top; }
.srcs th { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em;
           text-transform: uppercase; color: var(--faint); font-weight: 500; }
.srcs td { color: var(--muted-foreground); }
.srcs td:first-child { color: var(--foreground); }
.srcs tbody tr { transition: background .15s; }
.srcs tbody tr:hover { background: var(--muted); }
.srcs a { color: var(--foreground); text-decoration: none; border-bottom: 1px solid var(--border); }
.srcs a:hover { border-bottom-color: var(--foreground); }
.lic { font-family: var(--font-mono); font-size: 11px; white-space: nowrap; }
@media (max-width: 720px) { .srcs, .srcs tbody, .srcs tr, .srcs td { display: block; }
  .srcs thead { display: none; }
  .srcs tr { padding: 14px 0; border-bottom: 1px solid var(--border); }
  .srcs td { border: none; padding: 2px 0; } }

/* ---------------------------------------------------------- section heads */
/* Title left, intro right on wide screens — reads faster than a stacked head. */
.gl-split {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 56px;
  align-items: end; margin-bottom: 40px;
}
.gl-split h2 { margin: 0; }
.gl-split .sect-intro { margin: 0; }
@media (max-width: 860px) { .gl-split { grid-template-columns: 1fr; } }

/* --------------------------------------------------------- rabbit-hole trail */
.hole {
  --hole-node: 34px;
  --hole-gap: 32px;
  --hole-node-top: 19px;
  --hole-join: calc(var(--hole-node-top) + var(--hole-node) / 2);
  list-style: none; margin: 28px 0 0; padding: 0;
  display: flex; flex-direction: column; gap: var(--hole-gap);
}
.hole-step {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr);
  align-items: start;
}
.hole-step:nth-child(odd) .hole-card { grid-column: 1; }
.hole-step:nth-child(even) .hole-card { grid-column: 3; }
/* One dash per gap, so the path stops on the last step and can draw downward. */
.hole-step:not(:last-child)::before {
  content: ""; position: absolute; z-index: 0; left: 50%; width: 1px;
  translate: -50% 0;
  top: var(--hole-join);
  bottom: calc(-1 * (var(--hole-gap) + var(--hole-join)));
  background: repeating-linear-gradient(to bottom,
    color-mix(in srgb, var(--foreground) 28%, transparent) 0 4px, transparent 4px 9px);
  clip-path: inset(0 0 100% 0);
  transition: clip-path .55s cubic-bezier(.2, .7, .2, 1);
}
.hole.in .hole-step:not(:last-child)::before { clip-path: inset(0 0 0 0); }
.hole.in .hole-step:nth-child(1)::before { transition-delay: .08s; }
.hole.in .hole-step:nth-child(2)::before { transition-delay: .28s; }
.hole.in .hole-step:nth-child(3)::before { transition-delay: .48s; }
.hole.in .hole-step:nth-child(4)::before { transition-delay: .68s; }
.hole.in > :nth-child(2) { transition-delay: .2s; }
.hole.in > :nth-child(3) { transition-delay: .4s; }
.hole.in > :nth-child(4) { transition-delay: .6s; }
.hole.in > :nth-child(5) { transition-delay: .8s; }

.hole-node {
  position: relative; grid-column: 2; grid-row: 1; justify-self: center; z-index: 1;
  width: var(--hole-node); height: var(--hole-node); margin-top: var(--hole-node-top);
  display: grid; place-items: center; border-radius: 50%;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .02em;
  background: var(--card); border: 1px solid var(--border);
}
.hole-node::after {
  content: ""; position: absolute; top: 50%; width: 15px; height: 1px; background: var(--border);
}
.hole-step:nth-child(odd) .hole-node::after { right: 100%; }
.hole-step:nth-child(even) .hole-node::after { left: 100%; }
.hole-step:nth-child(1) .hole-node { color: var(--c0); border-color: color-mix(in srgb, var(--c0) 50%, var(--border)); background: color-mix(in srgb, var(--c0) 14%, var(--card)); }
.hole-step:nth-child(2) .hole-node { color: var(--c1); border-color: color-mix(in srgb, var(--c1) 50%, var(--border)); background: color-mix(in srgb, var(--c1) 14%, var(--card)); }
.hole-step:nth-child(3) .hole-node { color: var(--c2); border-color: color-mix(in srgb, var(--c2) 50%, var(--border)); background: color-mix(in srgb, var(--c2) 14%, var(--card)); }
.hole-step:nth-child(4) .hole-node { color: var(--c3); border-color: color-mix(in srgb, var(--c3) 55%, var(--border)); background: color-mix(in srgb, var(--c3) 16%, var(--card)); }
.hole-step:nth-child(5) .hole-node { color: var(--c6); border-color: color-mix(in srgb, var(--c6) 50%, var(--border)); background: color-mix(in srgb, var(--c6) 14%, var(--card)); }

.hole-card {
  grid-row: 1; min-width: 0;
  display: flex; flex-direction: column; gap: 10px; padding: 22px 22px 20px;
  border: 1px solid var(--border); border-radius: calc(var(--r-card) + 6px); background: var(--card);
  transition: box-shadow .2s, border-color .2s, transform .2s;
}
.hole-card:hover { box-shadow: var(--shadow-3); border-color: var(--muted-foreground); transform: translateY(-2px); }
.hole-card h3 { margin: 0; font-size: 22px; }
.hole-card p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted-foreground); }

.hole-names { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.hole-names li:nth-child(2) { margin-left: 22px; }
.hole-names li:nth-child(3) { margin-left: 44px; }
.hole-names a {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  padding: 6px 14px 6px 10px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--muted); color: var(--foreground);
  font-family: var(--font-serif); font-size: 17px; letter-spacing: -.01em;
  transition: border-color .15s, background .15s, transform .15s;
}
.hole-names a::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c1); flex: none;
}
.hole-names li:nth-child(2) a::before { background: var(--c3); }
.hole-names li:nth-child(3) a::before { background: var(--c6); }
.hole-names a:hover { background: var(--card); border-color: var(--muted-foreground); transform: translateX(3px); }

.hole-proj { margin: 4px 0 0; }
.hole-proj-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hole-proj-panel {
  padding: 10px 10px 8px; border: 1px solid var(--border); border-radius: 12px;
  background: radial-gradient(120% 90% at 50% 0%, var(--sea) 0%, var(--sea-deep) 100%);
}
.hole-proj-panel > span {
  display: block; margin-bottom: 6px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--faint);
}
.hole-proj svg { display: block; width: 100%; height: auto; }
.hole-proj .land-g { fill: var(--c0); }
.hole-proj .land-a { fill: color-mix(in srgb, var(--foreground) 78%, var(--c3)); }
.hole-proj figcaption {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px;
  margin-top: 10px; font-size: 12.5px; color: var(--muted-foreground);
}
.hole-proj figcaption i {
  display: inline-block; width: 8px; height: 8px; border-radius: 2px; font-style: normal;
}
.hole-proj .swatch-g { background: var(--c0); }
.hole-proj .swatch-a { background: color-mix(in srgb, var(--foreground) 78%, var(--c3)); margin-left: 4px; }

.hole-url {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 2px; padding: 10px 12px 10px 14px; text-decoration: none;
  border-radius: var(--r-ctl); border: 1px solid var(--border); background: var(--muted);
  color: var(--foreground); font-family: var(--font-mono); font-size: 12.5px;
  transition: background .15s, border-color .15s;
}
.hole-url span:first-child { min-width: 0; overflow-wrap: anywhere; }
.hole-url .arrow { flex: none; transition: transform .16s; }
.hole-url:hover { background: var(--accent); border-color: var(--muted-foreground); }
.hole-url:hover .arrow { transform: translateX(3px); }

.hole-free { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hole-free li {
  padding: 6px 11px; border-radius: 999px; border: 1px solid var(--border); background: var(--muted);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--foreground);
}

.hole-chart { margin: 4px 0 0; }
.bc svg { display: block; width: 100%; height: auto; overflow: visible; }
.bc-area { fill: url(#bc-g); }
.bc-line {
  fill: none; stroke: var(--c0); stroke-width: 2; stroke-linejoin: round; vector-effect: non-scaling-stroke;
  stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.2s cubic-bezier(.4, 0, .2, 1);
}
.hole.in .bc-line { stroke-dashoffset: 0; }
.bc-dot { fill: var(--c0); stroke: var(--card); stroke-width: 3; }
.bc-axis { font-family: var(--font-mono); font-size: 11px; fill: var(--faint); }
.hole-chart figcaption { margin-top: 10px; font-size: 12.5px; color: var(--muted-foreground); }
.hole-chart figcaption b { color: var(--foreground); font-weight: 600; font-variant-numeric: tabular-nums; }

@media (max-width: 720px) {
  .hole-step { grid-template-columns: var(--hole-node) minmax(0, 1fr); column-gap: 14px; }
  .hole-step:nth-child(odd) .hole-card,
  .hole-step:nth-child(even) .hole-card { grid-column: 2; }
  .hole-node { grid-column: 1; }
  .hole-step:not(:last-child)::before { left: calc(var(--hole-node) / 2); }
  .hole-step:nth-child(odd) .hole-node::after,
  .hole-step:nth-child(even) .hole-node::after { left: 100%; right: auto; width: 14px; }
  .hole-names li:nth-child(2) { margin-left: 14px; }
  .hole-names li:nth-child(3) { margin-left: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .hole-step:not(:last-child)::before { clip-path: none; transition: none; }
  .bc-line { transition: none; stroke-dashoffset: 0; }
}

/* ------------------------------------------------------ glossary regions */
.regions {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 36px;
}
@media (max-width: 900px) { .regions { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .regions { grid-template-columns: 1fr; } }
.region-col {
  display: flex; flex-direction: column; gap: 2px; padding: 16px 12px 12px;
  border: 1px solid var(--border); border-radius: var(--r-card); background: var(--card);
}
.region-h {
  margin: 0 8px 8px; padding-bottom: 10px; border-bottom: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--faint);
}
.region-col a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 8px 8px; border-radius: var(--r-ctl); text-decoration: none; color: var(--foreground);
  font-size: 15px; font-weight: 500; transition: background .15s;
}
.region-col a:hover { background: var(--accent); }
.region-col a b { font-family: var(--font-mono); font-size: 12px; font-weight: 400; color: var(--muted-foreground); }

/* ---------------------------------------------------------------- sources */
.src-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 980px) { .src-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .src-cards { grid-template-columns: 1fr; } }
.src-card {
  display: flex; flex-direction: column; gap: 4px; padding: 20px 20px 22px; text-decoration: none;
  color: var(--foreground); border: 1px solid var(--border); border-radius: var(--r-card);
  background: var(--card); transition: border-color .2s, transform .2s, box-shadow .2s;
}
.src-card:hover { border-color: var(--muted-foreground); transform: translateY(-2px); box-shadow: var(--shadow-2); }
.src-card .lic {
  align-self: flex-start; margin-bottom: 12px; padding: 3px 9px; border-radius: 999px;
  background: var(--muted); color: var(--muted-foreground);
}
.src-card b { font-size: 16px; font-weight: 600; }
.src-card small { font-size: 12.5px; color: var(--faint); }
.src-use { margin-top: 12px; font-size: 13.5px; line-height: 1.5; color: var(--muted-foreground); }
.src-card-all { background: var(--primary); color: var(--primary-foreground); border-color: transparent; }
.src-card-all .lic { background: color-mix(in srgb, var(--primary-foreground) 16%, transparent);
                     color: var(--primary-foreground); }
.src-card-all small, .src-card-all .src-use { color: color-mix(in srgb, var(--primary-foreground) 72%, transparent); }
.src-card-all .arrow { display: inline-block; transition: transform .16s; }
.src-card-all:hover .arrow { transform: translateX(4px); }

/* ---------------------------------------------------------- about teaser */
.teaser {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 40px; align-items: center;
  padding: 44px 44px; border-radius: calc(var(--r-card) + 10px);
  border: 1px solid var(--border);
  background:
    radial-gradient(60% 90% at 100% 0%, color-mix(in srgb, var(--c0) 14%, transparent), transparent 70%),
    radial-gradient(50% 80% at 0% 100%, color-mix(in srgb, var(--c1) 12%, transparent), transparent 70%),
    var(--card);
}
.teaser .sect-intro { margin-bottom: 26px; }
.teaser-steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.teaser-steps li {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 14px; padding: 14px 16px;
  border: 1px solid var(--border); border-radius: var(--r-card);
  background: color-mix(in srgb, var(--card) 80%, transparent);
}
.teaser-steps b { font-family: var(--font-serif); font-weight: 400; font-size: 19px; }
.teaser-steps span { grid-column: 1; font-size: 13px; color: var(--muted-foreground); }
.teaser-steps em {
  grid-column: 2; grid-row: 1 / span 2; align-self: center; font-style: normal;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px; color: var(--foreground);
  background: color-mix(in srgb, var(--c2) 18%, transparent);
  border: 1px solid color-mix(in srgb, var(--c2) 40%, transparent);
}
.teaser-steps em.soon {
  background: color-mix(in srgb, var(--c3) 18%, transparent);
  border-color: color-mix(in srgb, var(--c3) 45%, transparent);
}
@media (max-width: 860px) { .teaser { grid-template-columns: 1fr; padding: 30px 24px; } }

/* ---------------------------------------------------------------- final cta */
.final {
  position: relative; z-index: 0; overflow: hidden; text-align: center;
  padding: 128px 0 136px; border-top: 1px solid var(--border);
}
.final-bg {
  position: absolute; left: 50%; top: 50%; width: min(1400px, 140%); transform: translate(-50%, -50%);
  z-index: -1; pointer-events: none; opacity: .55;
  -webkit-mask-image: radial-gradient(55% 60% at 50% 50%, #000 20%, transparent 72%);
  mask-image: radial-gradient(55% 60% at 50% 50%, #000 20%, transparent 72%);
}
.final-bg .art-frame { position: absolute; inset: 0; }
.final-bg .art [class^="art-c"] { fill-opacity: .55; }
.final .eyebrow { justify-content: center; }
.final h2 { margin-bottom: 16px; }
.final .lede { margin-inline: auto; }
.jump-form-big { justify-content: center; margin-top: 8px; }
.jump-form-big input { width: 140px; font-size: 19px; padding: 12px 16px; font-weight: 500; text-align: center; }

/* ---------------------------------------------------------------- knowledge teaser
   Filled by tools/build-knowledge.mjs: the newest article large, the next three
   as rows beside it. */
.hk-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.hk-head h2 { margin: 0; }
.hk-all { font-size: 14px; font-weight: 500; color: var(--foreground); text-decoration: none; white-space: nowrap;
  border-bottom: 1px solid var(--border); padding-bottom: 2px; }
.hk-all:hover { border-bottom-color: var(--foreground); }
.hk-cat { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--c0); }
.hk-meta { font-size: 12.5px; color: var(--faint); }
.hk-t { font-family: var(--font-serif); font-weight: 400; letter-spacing: -.015em; color: var(--foreground); }
.hk-d { font-size: 14px; line-height: 1.55; color: var(--muted-foreground); }
.hk-img { display: block; overflow: hidden; background: var(--muted); }
.hk-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
a:hover .hk-img img { transform: scale(1.04); }

.hk2 { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 22px; align-items: stretch; }
.hk2-lead { position: relative; display: block; min-height: 440px; border-radius: calc(var(--r-card) + 6px);
  overflow: hidden; text-decoration: none; background: #111; }
.hk2-lead .hk-img { position: absolute; inset: 0; }
.hk2-lead .hk-img::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, .78) 100%); }
.hk2-lb { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 30px; display: flex; flex-direction: column; gap: 8px; }
.hk2-lb .hk-cat { color: rgba(255, 255, 255, .75); }
.hk2-lb .hk-t { color: #fff; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.15; }
.hk2-lb .hk-d { color: rgba(255, 255, 255, .82); max-width: 52ch; }
.hk2-lb .hk-meta { color: rgba(255, 255, 255, .65); }
.hk2-side { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-auto-rows: 1fr; }
.hk2-row { display: grid; grid-template-columns: 124px minmax(0, 1fr); gap: 16px; align-items: center; height: 100%;
  padding: 12px; text-decoration: none; border: 1px solid var(--border); border-radius: calc(var(--r-card) + 4px);
  background: var(--card); transition: border-color .2s, box-shadow .2s; }
.hk2-row:hover { border-color: var(--foreground); box-shadow: var(--shadow-2); }
.hk2-row .hk-img { aspect-ratio: 4 / 3; border-radius: var(--r-card); }
.hk2-rb { display: flex; flex-direction: column; gap: 6px; }
.hk2-rb .hk-t { font-size: 18px; line-height: 1.25; }
@media (max-width: 900px) {
  .hk2 { grid-template-columns: minmax(0, 1fr); }
  .hk2-lead { min-height: 360px; }
  .hk2-side { grid-auto-rows: auto; }
  .hk2-row { grid-template-columns: 104px minmax(0, 1fr); }
}
@media (max-width: 480px) { .hk2-lb { padding: 22px; } .hk2-lb .hk-d { display: none; } }

/* "Recently expanded" glossary cards inside #glossary (generated by tools/build-glossary.mjs) */
.hg { margin: 8px 0 56px; }
.hg .hk-head { margin-bottom: 24px; }
.hg .hk-head h3 { margin: 0; font-family: var(--font-serif); font-weight: 400; font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -.015em; }
.hg-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 28px; }
.hg-card { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: inherit; }
.hg-card .hk-img { aspect-ratio: 16 / 9; border-radius: var(--r-card); margin-bottom: 6px; }
.hg-card .hk-t { font-size: 20px; line-height: 1.25; }
.hg-card .hk-d { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 900px) { .hg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .hg-grid { grid-template-columns: minmax(0, 1fr); } }

/* the article's glossary entry, after the category on cards */
.kn-entry-tag { color: var(--muted-foreground); }
.hk2-lb .kn-entry-tag { color: rgba(255, 255, 255, .6); }
