:root {
  --ink: #171717;
  --paper: #fffef4;
  --lime: #eaff00;
  --cyan: #00f5ff;
  --magenta: #ff00f5;
  --orange: #ff6b00;
  --purple: #8b5cf6;
  --blue: #2563eb;
  --yellow: #ffd400;
  --red: #ff334f;
  --green: #16f59a;
  --pink: #ff4fa3;
  --line: 4px solid var(--ink);
  --shadow: 9px 9px 0 var(--ink);
  --shadow-lg: 14px 14px 0 var(--ink);
  --radius: 1.6rem;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 9.5rem; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .035;
  background-image: repeating-linear-gradient(135deg, var(--ink) 0 1px, transparent 1px 13px);
  z-index: 999;
}
img { max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .18em; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
:focus-visible { outline: 5px solid var(--cyan); outline-offset: 4px; }
::selection { background: var(--magenta); color: white; }

.skip-link {
  position: fixed;
  top: .75rem;
  left: .75rem;
  transform: translateY(-180%);
  z-index: 10000;
  border: var(--line);
  background: white;
  padding: .7rem 1rem;
  font-weight: 900;
  box-shadow: 5px 5px 0 var(--ink);
}
.skip-link:focus { transform: translateY(0); }

.container { width: min(calc(100% - 2rem), var(--max)); margin-inline: auto; }
.section { padding: clamp(4.5rem, 8vw, 8rem) 0; position: relative; }
.section-tight { padding: clamp(3rem, 6vw, 5rem) 0; position: relative; }
.section-border { border-block: var(--line); }
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stack { display: grid; gap: 1rem; }
.cluster { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: color-mix(in srgb, var(--lime) 92%, white);
  border-bottom: var(--line);
  transition: box-shadow .2s ease, transform .2s ease;
}
.site-header.is-scrolled { box-shadow: 0 8px 0 rgba(23,23,23,.18); }
.ticker {
  overflow: hidden;
  background: var(--ink);
  color: var(--lime);
  border-bottom: 2px solid var(--ink);
  font-size: .79rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.ticker-track {
  display: inline-flex;
  min-width: max-content;
  gap: 2rem;
  padding: .52rem 0;
  animation: ticker 28s linear infinite;
}
.ticker-track span::before { content: "◆"; color: var(--magenta); margin-right: .7rem; }
@keyframes ticker { to { transform: translateX(-50%); } }
.header-main {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.1rem;
  padding: .78rem 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  background: white;
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: .48rem .86rem .48rem .5rem;
  box-shadow: 5px 5px 0 var(--ink);
  font-weight: 1000;
  letter-spacing: -.04em;
  font-size: 1.25rem;
  line-height: 1;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: conic-gradient(var(--cyan), var(--magenta), var(--orange), var(--lime), var(--cyan));
  font-size: 1.12rem;
}
.desktop-nav { display: flex; align-items: center; gap: .28rem; }
.desktop-nav a {
  text-decoration: none;
  font-size: .86rem;
  font-weight: 900;
  padding: .62rem .76rem;
  border: 2px solid transparent;
  border-radius: 999px;
}
.desktop-nav a:hover, .desktop-nav a[aria-current="page"] { background: white; border-color: var(--ink); }
.header-cta {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  text-decoration: none;
  font-weight: 1000;
  background: var(--magenta);
  color: white;
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: .66rem 1rem;
  box-shadow: 5px 5px 0 var(--ink);
  transition: transform .18s ease, box-shadow .18s ease;
}
.header-cta:hover { transform: translate(-2px,-2px); box-shadow: 8px 8px 0 var(--ink); }
.menu-toggle {
  display: none;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border: 3px solid var(--ink);
  background: white;
  border-radius: .85rem;
  box-shadow: 4px 4px 0 var(--ink);
  cursor: pointer;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; width: 1.35rem; height: 3px; background: var(--ink); border-radius: 99px; content: ""; position: relative;
}
.menu-toggle span::before { position: absolute; top: -.45rem; }
.menu-toggle span::after { position: absolute; top: .45rem; }
.mobile-nav { display: none; border-top: 3px solid var(--ink); padding: .8rem 0 1rem; }
.mobile-nav.is-open { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .65rem; }
.mobile-nav a {
  background: white;
  border: 2px solid var(--ink);
  border-radius: .8rem;
  padding: .75rem;
  text-decoration: none;
  font-weight: 900;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 760px;
  display: grid;
  align-items: center;
  background:
    radial-gradient(circle at 9% 20%, rgba(255,0,245,.55), transparent 26%),
    radial-gradient(circle at 88% 70%, rgba(0,245,255,.66), transparent 28%),
    linear-gradient(130deg, var(--lime), #fff36b 54%, var(--cyan));
  border-bottom: var(--line);
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .42; pointer-events: none; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.12fr .88fr; gap: clamp(2rem,5vw,5rem); align-items: center; padding-block: clamp(5rem,10vw,8.5rem); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  max-width: fit-content;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: white;
  padding: .58rem 1rem;
  box-shadow: 5px 5px 0 var(--ink);
  font-size: .8rem;
  font-weight: 1000;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: .75rem; height: .75rem; border: 2px solid var(--ink); border-radius: 50%; background: var(--magenta); }
.display {
  margin: 1.25rem 0 0;
  max-width: 960px;
  font-size: clamp(4rem, 8.8vw, 8.7rem);
  line-height: .83;
  letter-spacing: -.075em;
  font-weight: 1000;
  text-transform: uppercase;
  color: var(--magenta);
  -webkit-text-stroke: 2px var(--ink);
  text-shadow: 8px 8px 0 var(--cyan);
}
.display .ink { color: white; text-shadow: 8px 8px 0 var(--orange); }
.hero-copy {
  max-width: 720px;
  margin: 2rem 0 0;
  padding: 1.15rem 1.3rem;
  border: 3px solid var(--ink);
  background: rgba(255,255,255,.9);
  box-shadow: 8px 8px 0 var(--ink);
  font-size: clamp(1.08rem,2vw,1.3rem);
  font-weight: 750;
}
.button-row { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.7rem; }
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: .55rem;
  text-decoration: none;
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: .82rem 1.2rem;
  background: white;
  box-shadow: 6px 6px 0 var(--ink);
  font-weight: 1000;
  line-height: 1.1;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { transform: translate(-3px,-3px); box-shadow: 9px 9px 0 var(--ink); }
.btn-dark { background: var(--ink); color: var(--lime); box-shadow: 7px 7px 0 var(--magenta); }
.btn-cyan { background: var(--cyan); }
.btn-magenta { background: var(--magenta); color: white; }
.btn-lime { background: var(--lime); }

.hero-stack { position: relative; min-height: 560px; }
.hero-card {
  position: absolute;
  width: min(88%, 420px);
  border: var(--line);
  border-radius: 2rem;
  padding: 1rem;
  box-shadow: var(--shadow-lg);
  transition: transform .22s ease;
  transform-style: preserve-3d;
}
.hero-card img { display: block; border: 3px solid var(--ink); border-radius: 1.25rem; background: white; }
.hero-card:nth-child(1) { top: 0; left: 0; background: var(--magenta); transform: rotate(-6deg); }
.hero-card:nth-child(2) { top: 31%; right: 0; background: var(--cyan); transform: rotate(7deg); }
.hero-card:nth-child(3) { bottom: 0; left: 8%; background: var(--orange); transform: rotate(-2deg); }
.hero-mini {
  min-height: 165px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 3px solid var(--ink);
  border-radius: 1.25rem;
  background: white;
  padding: 1rem;
}
.hero-mini strong { font-size: clamp(1.7rem,4vw,3.3rem); line-height: .9; letter-spacing: -.06em; text-transform: uppercase; text-align: center; }
.mini-bars { width: 100%; display: flex; gap: .28rem; align-items: end; height: 92px; }
.mini-bars i { flex: 1; border: 2px solid var(--ink); background: var(--lime); }
.mini-bars i:nth-child(2n) { background: var(--magenta); }
.mini-bars i:nth-child(3n) { background: var(--cyan); }

.band {
  overflow: hidden;
  border-bottom: var(--line);
  background: var(--ink);
  color: white;
  font-size: clamp(1.7rem,4vw,4.2rem);
  font-weight: 1000;
  letter-spacing: -.04em;
  text-transform: uppercase;
  line-height: 1;
  padding: 1rem 0;
}
.band-track { display: flex; gap: 2rem; width: max-content; animation: ticker 36s linear infinite reverse; }
.band em { color: var(--lime); font-style: normal; }
.band b { color: var(--cyan); }

.kicker { font-weight: 1000; text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; }
.section-title {
  margin: .7rem 0 1rem;
  font-size: clamp(2.75rem,6.7vw,6.8rem);
  line-height: .87;
  letter-spacing: -.065em;
  text-transform: uppercase;
  font-weight: 1000;
}
.section-title.stroke { color: var(--lime); -webkit-text-stroke: 2px var(--ink); text-shadow: 6px 6px 0 var(--magenta); }
.lede { max-width: 760px; font-size: 1.18rem; font-weight: 680; }
.section-head { display: flex; gap: 2rem; justify-content: space-between; align-items: end; margin-bottom: 2.2rem; }
.section-head > :last-child { max-width: 470px; }

.card {
  --card-color: white;
  position: relative;
  background: var(--card-color);
  border: var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.2rem,3vw,2rem);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card::after {
  content: "";
  position: absolute;
  width: 8rem;
  height: 8rem;
  right: -3.5rem;
  top: -3.5rem;
  border-radius: 50%;
  border: 3px solid var(--ink);
  background: rgba(255,255,255,.38);
}
.card:hover { transform: translate(-4px,-4px); box-shadow: 13px 13px 0 var(--ink); }
.card h2, .card h3 { margin: .75rem 0 .55rem; line-height: .98; letter-spacing: -.045em; font-weight: 1000; }
.card h2 { font-size: 2.2rem; }
.card h3 { font-size: 1.65rem; }
.card p { margin: .5rem 0 0; font-weight: 620; }
.card-link { position: absolute; inset: 0; z-index: 2; text-indent: -9999px; }
.card-icon {
  display: grid;
  place-items: center;
  width: 3.2rem;
  height: 3.2rem;
  border: 3px solid var(--ink);
  border-radius: .9rem;
  background: white;
  font-size: 1.55rem;
  font-weight: 1000;
}
.card-lime { --card-color: var(--lime); }
.card-cyan { --card-color: var(--cyan); }
.card-magenta { --card-color: var(--magenta); color: white; }
.card-orange { --card-color: var(--orange); }
.card-purple { --card-color: #b99cff; }
.card-paper { --card-color: white; }

.metric-strip { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border: var(--line); background: var(--ink); box-shadow: var(--shadow); }
.metric { padding: 1.2rem; color: white; border-right: 2px solid var(--lime); }
.metric:last-child { border-right: 0; }
.metric strong { display: block; color: var(--lime); font-size: clamp(1.6rem,4vw,3rem); line-height: 1; letter-spacing: -.05em; }
.metric span { display: block; margin-top: .35rem; font-weight: 800; font-size: .86rem; }

.chart-shell { background: white; border: var(--line); border-radius: 2rem; box-shadow: 12px 12px 0 var(--ink); padding: .65rem; }
.chart-shell img { display: block; width: 100%; border: 2px solid var(--ink); border-radius: 1.45rem; }
.chart-caption { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: .8rem .65rem .2rem; font-size: .78rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.chart-caption span:last-child { color: #5a5a5a; }

.article-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1.5rem; }
.article-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: white;
  border: var(--line);
  border-radius: 1.5rem;
  box-shadow: 8px 8px 0 var(--ink);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.article-card:hover { transform: translate(-4px,-4px) rotate(-.35deg); box-shadow: 12px 12px 0 var(--ink); }
.article-card-image { aspect-ratio: 1; object-fit: cover; border-bottom: var(--line); background: var(--lime); }
.article-card-body { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; }
.article-card h2, .article-card h3 { font-size: clamp(1.4rem,2.5vw,2rem); line-height: 1.02; letter-spacing: -.04em; margin: .65rem 0; font-weight: 1000; }
.article-card p { margin: .3rem 0 1rem; font-size: .96rem; }
.article-card-meta { margin-top: auto; padding-top: .8rem; border-top: 2px solid var(--ink); display: flex; justify-content: space-between; gap: .8rem; font-size: .76rem; font-weight: 900; text-transform: uppercase; }
.badge {
  display: inline-flex;
  max-width: fit-content;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--lime);
  padding: .34rem .62rem;
  font-size: .72rem;
  line-height: 1;
  font-weight: 1000;
  text-transform: uppercase;
  letter-spacing: .06em;
  text-decoration: none;
}
.badge:nth-child(2n) { background: var(--cyan); }
.tag-row { display: flex; flex-wrap: wrap; gap: .45rem; }

.page-hero {
  position: relative;
  overflow: hidden;
  border-bottom: var(--line);
  background: linear-gradient(135deg, var(--lime), var(--cyan));
  padding: clamp(4.5rem,10vw,8rem) 0;
}
.page-hero::before, .page-hero::after { content: ""; position: absolute; border-radius: 50%; filter: blur(50px); opacity: .75; }
.page-hero::before { width: 22rem; height: 22rem; background: var(--magenta); left: -8rem; top: -8rem; }
.page-hero::after { width: 24rem; height: 24rem; background: var(--orange); right: -8rem; bottom: -10rem; }
.page-hero-inner { position: relative; z-index: 1; }
.page-title {
  max-width: 1050px;
  margin: 1rem 0;
  font-size: clamp(3.3rem,8vw,8rem);
  line-height: .86;
  letter-spacing: -.07em;
  text-transform: uppercase;
  font-weight: 1000;
  color: white;
  -webkit-text-stroke: 2px var(--ink);
  text-shadow: 7px 7px 0 var(--magenta);
}
.page-summary { max-width: 790px; background: white; border: 3px solid var(--ink); box-shadow: 7px 7px 0 var(--ink); padding: 1rem 1.2rem; font-size: 1.15rem; font-weight: 700; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: .42rem; font-size: .78rem; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs span[aria-current] { opacity: .7; }

.content-layout { display: grid; grid-template-columns: minmax(0,1fr) 330px; gap: clamp(2rem,5vw,4.5rem); align-items: start; }
.prose { max-width: 780px; font-size: 1.06rem; }
.prose > :first-child { margin-top: 0; }
.prose h2 { scroll-margin-top: 9rem; margin: 3.4rem 0 1rem; font-size: clamp(2rem,4.2vw,3.5rem); line-height: .98; letter-spacing: -.05em; font-weight: 1000; }
.prose h3 { margin: 2rem 0 .65rem; font-size: 1.5rem; line-height: 1.1; }
.prose p { margin: 0 0 1.25rem; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li { margin: .5rem 0; }
.prose a { font-weight: 850; text-decoration-thickness: 2px; }
.prose .editorial-source { background: linear-gradient(transparent 55%, var(--lime) 55%); }
.prose blockquote { margin: 2rem 0; border: var(--line); border-left-width: 10px; background: var(--cyan); box-shadow: 7px 7px 0 var(--ink); padding: 1.2rem; font-size: 1.15rem; font-weight: 800; }
.sidebar { position: sticky; top: 9.5rem; display: grid; gap: 1rem; }
.sidebar-box { border: 3px solid var(--ink); border-radius: 1.2rem; background: white; box-shadow: 6px 6px 0 var(--ink); padding: 1rem; }
.sidebar-box h2, .sidebar-box h3 { margin: 0 0 .7rem; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .06em; }
.sidebar-box ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .46rem; }
.sidebar-box a { font-weight: 750; font-size: .9rem; text-decoration-thickness: 2px; }
.sidebar-box.accent { background: var(--lime); }
.sidebar-box.cyan { background: var(--cyan); }

.article-header { background: linear-gradient(145deg, var(--paper), var(--lime)); border-bottom: var(--line); padding: clamp(3.5rem,8vw,7rem) 0; }
.article-header-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem,5vw,5rem); align-items: center; }
.article-title { margin: 1rem 0; font-size: clamp(3rem,7vw,6.8rem); line-height: .9; letter-spacing: -.065em; font-weight: 1000; }
.article-deck { font-size: 1.2rem; font-weight: 680; max-width: 760px; }
.article-meta { display: flex; flex-wrap: wrap; gap: .65rem 1.2rem; margin-top: 1.2rem; font-size: .82rem; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; }
.featured-frame { transform: rotate(2deg); border: var(--line); border-radius: 2rem; box-shadow: 14px 14px 0 var(--ink); background: var(--magenta); padding: .65rem; }
.featured-frame img { display: block; border: 3px solid var(--ink); border-radius: 1.35rem; }
.article-content { padding: clamp(3.5rem,7vw,6.5rem) 0; }
.article-note { border: var(--line); background: var(--cyan); box-shadow: 7px 7px 0 var(--ink); padding: 1rem 1.15rem; margin: 1.7rem 0; font-weight: 750; }
.related-route { margin-top: 2.5rem; border: var(--line); border-radius: 1.25rem; background: var(--lime); box-shadow: var(--shadow); padding: 1.25rem; }
.related-route h2 { margin: 0 0 .7rem; font-size: 1.35rem; }
.article-nav { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; margin-top: 4rem; }
.article-nav a { text-decoration: none; border: 3px solid var(--ink); border-radius: 1rem; background: white; padding: 1rem; box-shadow: 5px 5px 0 var(--ink); font-weight: 800; }
.article-nav small { display: block; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .35rem; }

.term-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.term { border: 3px solid var(--ink); border-radius: 1.1rem; background: white; box-shadow: 6px 6px 0 var(--ink); padding: 1.1rem; }
.term dt { font-size: 1.15rem; font-weight: 1000; }
.term dd { margin: .4rem 0 0; }

.faq { display: grid; gap: .85rem; }
.faq details { border: 3px solid var(--ink); border-radius: 1rem; background: white; box-shadow: 6px 6px 0 var(--ink); overflow: hidden; }
.faq summary { cursor: pointer; list-style: none; padding: 1rem 1.1rem; font-weight: 950; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; font-size: 1.5rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0; padding: 0 1.1rem 1.1rem; }

.callout { border: var(--line); border-radius: 1.5rem; background: var(--magenta); color: white; box-shadow: 11px 11px 0 var(--ink); padding: clamp(1.5rem,4vw,3rem); }
.callout h2 { margin: 0; font-size: clamp(2.4rem,5vw,5rem); line-height: .9; letter-spacing: -.055em; text-transform: uppercase; }
.callout p { font-size: 1.08rem; font-weight: 700; max-width: 760px; }

.site-footer { position: relative; overflow: hidden; background: var(--ink); color: white; border-top: var(--line); padding: 4.5rem 0 1.5rem; }
.site-footer::before { content: ""; position: absolute; inset: 0; opacity: .14; background-image: repeating-linear-gradient(135deg,var(--lime) 0 2px,transparent 2px 15px); }
.footer-grid { position: relative; display: grid; grid-template-columns: 1.2fr repeat(3,.8fr); gap: 2rem; }
.footer-brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--ink); background: var(--lime); border: 3px solid var(--lime); border-radius: 999px; padding: .65rem 1rem; font-size: 1.3rem; font-weight: 1000; text-decoration: none; box-shadow: 7px 7px 0 var(--magenta); }
.footer-intro { max-width: 460px; font-weight: 650; }
.footer-group h2 { margin: 0 0 .8rem; color: var(--lime); font-size: .82rem; text-transform: uppercase; letter-spacing: .13em; }
.footer-group a { display: block; margin: .42rem 0; text-decoration: none; font-weight: 700; }
.footer-group a:hover { color: var(--cyan); text-decoration: underline; }
.footer-bottom { position: relative; margin-top: 2.8rem; padding-top: 1.2rem; border-top: 2px solid rgba(234,255,0,.4); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .84rem; font-weight: 700; }
.disclaimer { max-width: 700px; color: #d7d7d7; font-size: .82rem; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .55s ease, transform .55s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

.error-page { min-height: 65vh; display: grid; place-items: center; text-align: center; padding: 5rem 1rem; background: linear-gradient(135deg,var(--lime),var(--cyan)); }
.error-page h1 { font-size: clamp(6rem,20vw,15rem); line-height: .7; margin: 0; color: var(--magenta); -webkit-text-stroke: 3px var(--ink); text-shadow: 10px 10px 0 white; }

@media (max-width: 1060px) {
  .desktop-nav { display: none; }
  .menu-toggle { display: grid; }
  .header-cta { display: none; }
  .hero-grid, .article-header-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero-stack { min-height: 530px; width: min(100%, 640px); margin-inline: auto; }
  .content-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .article-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .grid-4 { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 720px) {
  html { scroll-padding-top: 8.5rem; }
  body { font-size: 16px; }
  .container { width: min(calc(100% - 1.25rem), var(--max)); }
  .ticker { font-size: .68rem; }
  .brand { font-size: 1rem; }
  .brand-mark { width: 2rem; height: 2rem; }
  .header-main { min-height: 66px; }
  .mobile-nav.is-open { grid-template-columns: 1fr; }
  .hero-grid { padding-block: 4rem 5rem; }
  .display { font-size: clamp(3.35rem,18vw,5.8rem); text-shadow: 5px 5px 0 var(--cyan); }
  .display .ink { text-shadow: 5px 5px 0 var(--orange); }
  .hero-stack { min-height: 430px; }
  .hero-card { width: min(82%, 330px); padding: .6rem; }
  .hero-card:nth-child(2) { top: 30%; }
  .hero-mini { min-height: 130px; }
  .grid-2, .grid-3, .grid-4, .article-grid, .term-grid, .article-nav, .sidebar { grid-template-columns: 1fr; }
  .metric-strip { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .metric:nth-child(2) { border-right: 0; }
  .metric:nth-child(-n+2) { border-bottom: 2px solid var(--lime); }
  .section-head { display: block; }
  .section-head > :last-child { max-width: none; }
  .page-title { font-size: clamp(3rem,16vw,5.2rem); text-shadow: 5px 5px 0 var(--magenta); }
  .article-title { font-size: clamp(2.65rem,14vw,4.8rem); }
  .featured-frame { transform: none; }
  .article-meta { display: grid; grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { display: block; }
  .chart-caption { display: block; }
  .chart-caption span { display: block; margin-top: .35rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .ticker-track, .band-track { animation: none; }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .site-footer, .button-row, .sidebar, .band { display: none !important; }
  body { background: white; color: black; font-size: 11pt; }
  .article-header, .page-hero { background: white; border-bottom: 1px solid black; padding: 1rem 0; }
  .article-title, .page-title { color: black; -webkit-text-stroke: 0; text-shadow: none; }
  .article-content { padding: 1rem 0; }
  a { color: black; }
}

/* Narrow-screen containment refinements */
.hero-grid > * { min-width: 0; }

@media (max-width: 720px) {
  .hero-grid { width: calc(100% - 1.25rem); }
  .eyebrow {
    max-width: 100%;
    padding: .55rem .72rem;
    gap: .5rem;
    font-size: .68rem;
    line-height: 1.2;
    letter-spacing: .085em;
    white-space: normal;
  }
  .eyebrow::before { flex: 0 0 auto; }
  .display {
    max-width: 100%;
    font-size: clamp(2.75rem, 12.8vw, 4.2rem);
    line-height: .86;
    letter-spacing: -.065em;
  }
  .hero-copy { width: 100%; margin-top: 1.6rem; padding: 1rem; }
  .hero .button-row { display: grid; grid-template-columns: 1fr; }
  .hero .button-row .btn { width: 100%; }
}
