:root {
  --bg: #000;
  --fg: #fff;
  --muted: #8a8a8a;
  --soft: #b8b8b8;
  --hair: rgba(255,255,255,.16);
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: Inter, "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --pad-x: clamp(1.4rem, 6vw, 6.5rem);
  --measure: 68ch;
}
* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; scroll-padding-top: 5.25rem; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--sans); font-size: 1.0625rem; line-height: 1.5;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }

body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.skip { position: absolute; left: 1rem; top: -4rem; z-index: 120; background: #fff; color: #000; padding: .6rem 1rem; border-radius: 999px; font-weight: 500; text-decoration: none; }
.skip:focus { top: 1rem; }

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: 4.5rem;
  display: flex; align-items: center; justify-content: space-between; padding: 0 var(--pad-x);
  background: linear-gradient(180deg, rgba(0,0,0,.85), rgba(0,0,0,0));
}
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; font-size: .95rem; font-weight: 500; letter-spacing: -.01em; white-space: nowrap; }
.brand svg { width: 14px; height: 14px; }
.nav-r { display: flex; align-items: center; gap: 1.5rem; }
.loc { font-family: var(--mono); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.nav-link {
  font-family: var(--mono); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--soft); text-decoration: none; transition: color .3s var(--ease);
}
.nav-link:hover, .nav-link[aria-current="page"] { color: #fff; }
.pill {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; height: 44px; box-sizing: border-box;
  padding: .5rem 1.05rem; border-radius: 999px; font-size: .85rem; font-weight: 500; letter-spacing: -.01em;
  text-decoration: none; color: #fff; border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.04);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  white-space: nowrap;
  transition: background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
}
.pill .pill-short { display: none; }
.pill:hover { background: #fff; color: #000; border-color: #fff; }
a:focus-visible, .pill:focus-visible, .btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.guides { position: fixed; inset: 0; z-index: 40; pointer-events: none; }
.guides i { position: absolute; background: rgba(255,255,255,.1); }
.guides .v { top: 0; bottom: 0; width: 1px; transform-origin: top; animation: gv 2.4s var(--ease) .3s both; }
.guides .v.l { left: calc(var(--pad-x) - 1.6rem); }
.guides .v.r { right: calc(var(--pad-x) - 1.6rem); animation-delay: .5s; }
.guides .h { top: 4.5rem; left: 0; right: 0; height: 1px; transform-origin: left; animation: gh 2.4s var(--ease) .2s both; }
@keyframes gv { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes gh { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.guides b { position: absolute; width: 9px; height: 9px; opacity: 0; animation: fadein 1.2s ease 1.6s forwards; }
.guides b::before, .guides b::after { content: ""; position: absolute; background: rgba(255,255,255,.55); }
.guides b::before { left: 0; right: 0; top: 4px; height: 1px; }
.guides b::after { top: 0; bottom: 0; left: 4px; width: 1px; }
.guides b.a { top: calc(4.5rem - 4px); left: calc(var(--pad-x) - 1.6rem - 4px); }
.guides b.b { top: calc(4.5rem - 4px); right: calc(var(--pad-x) - 1.6rem - 5px); }
@keyframes fadein { to { opacity: 1; } }

main { position: relative; z-index: 1; padding: 7.5rem var(--pad-x) 5.5rem; }

.eyebrow { display: inline-flex; align-items: center; gap: .8rem; margin: 0 0 1.6rem; font-family: var(--mono); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--soft); }
.eyebrow::before { content: ""; width: 1.8rem; height: 1px; background: rgba(255,255,255,.5); }

.headline { margin: 0; font-weight: 500; font-size: clamp(2.7rem, 6.6vw, 6.2rem); line-height: .96; letter-spacing: -.055em; max-width: 12ch; text-wrap: balance; }
.headline .ln { display: block; overflow: hidden; padding: 0 .06em .1em .05em; margin: 0 0 -.1em -.05em; }
.headline .ln > i { display: block; font-style: normal; }
.headline .grey { color: #7d7d7d; }

.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity 1.3s var(--ease), transform 1.3s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
.js .headline .ln > i { transform: translateY(112%); transition: transform 1.4s var(--ease); transition-delay: var(--d, 0s); }
.js .in .headline .ln > i, .js .headline.in .ln > i { transform: none; }

/* ---------- Listing ---------- */
.page-head { margin: 0 0 4rem; max-width: 46rem; }
.page-head .lede { margin: 1.6rem 0 0; max-width: 31rem; color: var(--muted); font-size: clamp(1rem, 1.35vw, 1.2rem); line-height: 1.55; letter-spacing: -.005em; }

.index { list-style: none; margin: 0; padding: 0; width: min(100%, 54rem); }
.index > li { position: relative; display: grid; grid-template-columns: 3.4rem minmax(0, 1fr); column-gap: .6rem; padding: 1.35rem 0; }
.index > li::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--hair); transform-origin: left; transition: transform 1.8s var(--ease); transition-delay: var(--d, 0s); }
.js .index > li:not(.in)::before { transform: scaleX(0); }
.index > li:last-child::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--hair); }
.index .num { font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; color: var(--muted); padding-top: .45rem; }
.index a { text-decoration: none; display: block; }
.index .title { margin: 0; font-size: clamp(1.4rem, 2.5vw, 2.1rem); font-weight: 500; letter-spacing: -.04em; line-height: 1.15; max-width: 22ch; transition: transform .8s var(--ease); }
.index a:hover .title { transform: translateX(10px); }
.index .dek { margin: .45rem 0 0; color: var(--muted); max-width: 36rem; font-size: .98rem; line-height: 1.5; }
.index .meta { display: block; margin: .7rem 0 0; font-family: var(--mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: #6f6f6f; }

/* ---------- Article ---------- */
.article-head { margin: 0 0 3.2rem; }
.article-head .headline { font-size: clamp(2.5rem, 6vw, 5.4rem); max-width: 13ch; }
.article-head .dek { margin: 1.8rem 0 0; max-width: 34rem; color: var(--muted); font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.55; letter-spacing: -.005em; }
.article-head .meta { margin: 1.4rem 0 0; font-family: var(--mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: #6f6f6f; }

.prose { max-width: var(--measure); color: #e8e8e8; font-size: 1.0625rem; line-height: 1.7; letter-spacing: -.005em; }
.prose > * { margin: 0 0 1.15em; }
.prose h2 {
  margin: 2.6em 0 .8em; color: #fff; font-weight: 500;
  font-size: clamp(1.35rem, 2.2vw, 1.7rem); letter-spacing: -.03em; line-height: 1.2;
}
.prose p.stat {
  margin: 0 0 .35em; color: #fff; font-weight: 500;
  font-size: clamp(2.1rem, 4.4vw, 3.3rem); line-height: 1; letter-spacing: -.045em;
}
.prose p.stat + p { color: var(--soft); }
.prose a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255,255,255,.35); text-underline-offset: .18em; transition: text-decoration-color .3s; }
.prose a:hover { text-decoration-color: #fff; }
.prose ul, .prose ol { padding: 0 0 0 1.25rem; }
.prose li { margin: 0 0 .45em; padding-left: .3rem; }
.prose li::marker { color: var(--muted); font-family: var(--mono); font-size: .85em; }
.prose strong { color: #fff; font-weight: 500; }
.prose em { font-style: italic; }
.prose .ref {
  font-family: var(--mono); font-size: .68em; font-style: normal; font-weight: 400; letter-spacing: .04em;
  color: var(--muted); text-decoration: none; position: relative; top: -0.35em; margin: 0 .07em;
  text-decoration: none;
}
.prose .ref + .ref { margin-left: .12em; }
.prose .ref:hover { color: #fff; }

.chart { margin: 2.4rem 0 2.8rem; max-width: min(36rem, 100%); padding: 0; }
.chart img { width: 100%; height: auto; background: #000; }
.chart figcaption {
  margin: .85rem 0 0; font-family: var(--mono); font-size: .64rem; letter-spacing: .04em;
  line-height: 1.6; color: #6f6f6f;
}

.sources-wrap { margin: 4rem 0 0; padding-top: 2.2rem; border-top: 1px solid var(--hair); max-width: var(--measure); }
.sources-wrap h2 { margin: 0 0 1.2rem; font-weight: 500; font-size: 1.15rem; letter-spacing: -.02em; }
.sources { list-style: none; margin: 0; padding: 0; }
.sources li {
  display: grid; grid-template-columns: 2.2rem minmax(0, 1fr); column-gap: .4rem;
  padding: .85rem 0; border-top: 1px solid rgba(255,255,255,.1);
  font-size: .92rem; line-height: 1.5; color: var(--soft);
}
.sources li:last-child { border-bottom: 1px solid rgba(255,255,255,.1); }
.sources .n { font-family: var(--mono); font-size: .66rem; letter-spacing: .08em; color: var(--muted); padding-top: .2rem; }
.sources em { font-style: italic; color: #d8d8d8; }
.sources .url {
  display: inline-block; margin-top: .3rem; font-family: var(--mono); font-size: .68rem;
  letter-spacing: .02em; color: #8a8a8a; text-decoration: none; overflow-wrap: anywhere; line-height: 1.5;
}
.sources .url:hover { color: #fff; }
.sources .ref { top: 0; font-size: .85em; color: var(--soft); text-decoration: underline; text-underline-offset: .16em; text-decoration-color: rgba(255,255,255,.35); }

.more { margin: 4.2rem 0 0; padding-top: 2rem; border-top: 1px solid var(--hair); max-width: var(--measure); }
.more .label { margin: 0 0 1rem; font-family: var(--mono); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.more ol { list-style: none; margin: 0; padding: 0; }
.more li { padding: .55rem 0; border-top: 1px solid rgba(255,255,255,.1); }
.more li:last-child { border-bottom: 1px solid rgba(255,255,255,.1); }
.more a { text-decoration: none; display: flex; gap: 1rem; align-items: baseline; }
.more .n { font-family: var(--mono); font-size: .66rem; letter-spacing: .08em; color: var(--muted); min-width: 1.8rem; }
.more .t { font-weight: 500; letter-spacing: -.02em; transition: transform .6s var(--ease); }
.more a:hover .t { transform: translateX(8px); color: #fff; }

.page-foot {
  margin: 4.5rem 0 0; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-family: var(--mono); font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: #5c5c5c;
  max-width: var(--measure);
}
.page-foot a { text-decoration: none; color: #8a8a8a; }
.page-foot a:hover { color: #fff; }

@media (max-width: 1099px) {
  .loc { display: none; }
}
@media (max-width: 699px) {
  .brand-name { display: none; }
  .guides .v, .guides b { display: none; }
  .nav { gap: .7rem; }
  .nav-r { gap: .7rem; }
  .brand { font-size: .88rem; }
  .pill { min-height: 44px; height: 44px; padding: 0 14px; font-size: 13px; line-height: 1; white-space: nowrap; }
  main { padding: 6.4rem var(--pad-x) 4rem; }
  .headline, .article-head .headline { max-width: none; }
  .article-head .headline { font-size: clamp(2.4rem, 11.5vw, 3.4rem); }
  .headline { font-size: clamp(2.6rem, 13vw, 3.6rem); }
  .page-head { margin-bottom: 2.6rem; }
  .index > li { padding: 1.15rem 0; }
  .index .title { max-width: none; }
  .chart { max-width: 100%; }
  .eyebrow { margin-bottom: 1.1rem; }
}

@media (max-width: 599px) {
  .pill .pill-full { display: none; }
  .pill .pill-short { display: inline; }
  .pill { min-height: 44px; height: 44px; padding: 0 14px; font-size: 13px; line-height: 1; white-space: nowrap; max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  .js .headline .ln > i { transform: none !important; }
  .js .index > li:not(.in)::before { transform: none; }
  .guides b { opacity: 1; }
}
