
:root {
  --ink: #101322;
  --muted: #5a6274;
  --paper: #fffdf4;
  --white: #ffffff;
  --yellow: #ffe65b;
  --amber: #ffbd2e;
  --pink: #ff4fb4;
  --rose: #ff5b62;
  --cyan: #44dcff;
  --mint: #65efb0;
  --violet: #8d62ff;
  --blue: #4286ff;
  --line: #101322;
  --shadow: 7px 7px 0 var(--ink);
  --shadow-sm: 4px 4px 0 var(--ink);
  --radius: 22px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 130px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Plus Jakarta Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .24;
  z-index: -1;
  background-image: radial-gradient(circle at 1px 1px, rgba(16,19,34,.18) 1px, transparent 0);
  background-size: 24px 24px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--pink); }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
:focus-visible { outline: 4px solid var(--cyan); outline-offset: 3px; }
::selection { background: var(--pink); color: white; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 999;
  transform: translateY(-140%);
  background: var(--ink);
  color: var(--yellow);
  padding: .75rem 1rem;
  border-radius: 10px;
  font-weight: 900;
}
.skip-link:focus { transform: translateY(0); }

.container { width: min(var(--max), calc(100% - 32px)); margin-inline: auto; }
.narrow { width: min(820px, calc(100% - 32px)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 2px solid var(--ink);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(16px);
}
.topline {
  min-height: 34px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--ink);
  background: linear-gradient(90deg, var(--yellow), var(--pink), var(--cyan), var(--mint));
  overflow: hidden;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.topline-label {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  padding: .32rem .8rem;
  margin-left: max(12px, calc((100vw - var(--max)) / 2));
  color: var(--yellow);
  background: var(--ink);
  border-radius: 8px;
}
.ticker-window { overflow: hidden; flex: 1; }
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 32s linear infinite;
}
.ticker-track span { padding-left: 2.6rem; white-space: nowrap; }
@keyframes ticker { to { transform: translateX(-50%); } }

.nav-shell {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}
.brand { display: inline-flex; align-items: center; gap: .72rem; text-decoration: none; }
.brand-mark {
  width: 47px;
  height: 47px;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: conic-gradient(from 35deg, var(--yellow), var(--pink), var(--violet), var(--cyan), var(--mint), var(--yellow));
  box-shadow: 3px 3px 0 var(--ink);
  font-size: .78rem;
  font-weight: 1000;
  letter-spacing: -.04em;
}
.brand-copy { line-height: 1.02; }
.brand-name {
  display: block;
  font-family: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(1.02rem, 2vw, 1.35rem);
  font-weight: 1000;
  letter-spacing: -.045em;
}
.brand-name b { color: #d90a77; }
.brand-tagline {
  display: block;
  margin-top: .26rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .59rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.desktop-nav { display: flex; align-items: center; gap: 1.05rem; }
.desktop-nav a {
  position: relative;
  padding: .5rem 0;
  text-decoration: none;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .73rem;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: .2rem;
  height: 4px;
  background: var(--pink);
  transition: right .2s ease;
}
.desktop-nav a:hover::after, .desktop-nav a[aria-current="page"]::after { right: 0; }
.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: .65rem .9rem !important;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: linear-gradient(90deg, var(--yellow), var(--pink), var(--cyan));
  box-shadow: 3px 3px 0 var(--ink);
}
.nav-cta::after { display: none; }
.nav-cta:hover { transform: translate(2px,2px); box-shadow: none; }
.mobile-toggle {
  display: none;
  width: 46px;
  height: 42px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: var(--yellow);
  box-shadow: 3px 3px 0 var(--ink);
  cursor: pointer;
  font-size: 1.3rem;
}
.mobile-panel { display: none; border-top: 1px solid #d8dbe3; padding: 0 0 1rem; }
.mobile-panel[hidden] { display: none; }
.mobile-panel a {
  display: block;
  padding: .8rem 0;
  border-bottom: 1px dashed #b6bac6;
  text-decoration: none;
  font-weight: 900;
}

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 2px solid var(--ink);
  background:
    radial-gradient(circle at 86% 18%, rgba(68,220,255,.8), transparent 24%),
    radial-gradient(circle at 4% 80%, rgba(255,79,180,.32), transparent 22%),
    linear-gradient(145deg, #fff7a8, #fff8ea 46%, #e7fbff);
}
.hero::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -180px;
  bottom: -230px;
  border: 70px solid rgba(141,98,255,.14);
  border-radius: 50%;
}
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, .8fr);
  gap: 3rem;
  align-items: center;
  padding-block: clamp(4rem, 9vw, 7.4rem);
}
.eyebrow, .kicker {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin: 0 0 1rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .76rem;
  font-weight: 1000;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.eyebrow {
  padding: .35rem .7rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: white;
  box-shadow: 3px 3px 0 var(--ink);
}
.eyebrow::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 4px rgba(255,79,180,.16); }
.display {
  max-width: 850px;
  margin: 0;
  font-family: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(3.15rem, 7.5vw, 6.7rem);
  line-height: .91;
  letter-spacing: -.07em;
  text-transform: uppercase;
  font-weight: 1000;
}
.gradient-text {
  display: block;
  color: transparent;
  background: linear-gradient(90deg, #d80d71, #7a35e8 48%, #008eb4);
  background-clip: text;
  -webkit-background-clip: text;
}
.lede { max-width: 730px; margin: 1.5rem 0 0; font-size: clamp(1.05rem, 2vw, 1.25rem); color: #42495b; font-weight: 650; }
.button-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 50px;
  padding: .82rem 1.18rem;
  border: 2px solid var(--ink);
  border-radius: 14px;
  text-decoration: none;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .78rem;
  font-weight: 1000;
  letter-spacing: .04em;
  text-transform: uppercase;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translate(3px, 3px); box-shadow: none; }
.btn-dark { background: var(--ink); color: var(--yellow); box-shadow: 4px 4px 0 var(--pink); }
.btn-light { background: white; }
.btn-cyan { background: var(--cyan); }

.hero-stack {
  position: relative;
  min-height: 485px;
  padding: 1.1rem;
  border: 2px solid var(--ink);
  border-radius: 30px;
  background: rgba(255,255,255,.92);
  box-shadow: 10px 10px 0 var(--ink);
  transform: rotate(1deg);
}
.stack-header { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: .55rem .65rem 1rem; border-bottom: 2px solid var(--ink); }
.stack-header strong { font-family: "Space Grotesk", ui-sans-serif, system-ui; text-transform: uppercase; font-size: .84rem; letter-spacing: .05em; }
.status-chip { padding: .25rem .45rem; border: 1px solid var(--ink); border-radius: 7px; background: var(--mint); font-family: ui-monospace, monospace; font-size: .63rem; font-weight: 900; }
.stack-list { display: grid; gap: .72rem; padding: .9rem .35rem .35rem; }
.stack-row {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: .8rem;
  align-items: center;
  padding: .78rem;
  border: 1.5px solid var(--ink);
  border-radius: 15px;
  background: #fff9c4;
  box-shadow: 3px 3px 0 rgba(16,19,34,.18);
}
.stack-row:nth-child(2) { background: #ffe3f3; }
.stack-row:nth-child(3) { background: #e3f9ff; }
.stack-row:nth-child(4) { background: #e8ffe8; }
.stack-row:nth-child(5) { background: #eee7ff; }
.stack-icon { width: 43px; height: 43px; display: grid; place-items: center; border: 1.5px solid var(--ink); border-radius: 12px; background: white; font-size: 1.35rem; }
.stack-row strong { display: block; font-size: .86rem; }
.stack-row small { display: block; color: var(--muted); font-size: .68rem; }
.stack-arrow { font-weight: 1000; font-size: 1.1rem; }
.stack-note { padding: .7rem; text-align: center; font-family: ui-monospace, monospace; font-size: .65rem; font-weight: 850; color: var(--muted); }

.section { padding-block: clamp(4rem, 8vw, 7rem); border-bottom: 2px solid var(--ink); }
.section-white { background: white; }
.section-yellow { background: linear-gradient(180deg, #fffbe6, #fff3ad); }
.section-cyan { background: linear-gradient(180deg, #effdff, #d7f8ff); }
.section-pink { background: linear-gradient(180deg, #fff5fb, #ffe4f3); }
.section-violet { background: linear-gradient(180deg, #f8f5ff, #eae1ff); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 2.25rem; }
.section-head > div { max-width: 760px; }
.kicker { margin-bottom: .5rem; color: #c70d72; }
.h2, .page-title {
  margin: 0;
  font-family: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-weight: 1000;
  line-height: .98;
  letter-spacing: -.045em;
  text-transform: uppercase;
}
.h2 { font-size: clamp(2.2rem, 5vw, 4.6rem); }
.section-intro { max-width: 580px; margin: 0; color: var(--muted); font-size: 1rem; font-weight: 600; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.card {
  position: relative;
  padding: 1.35rem;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow-sm);
}
.card h3 { margin: .65rem 0 .55rem; font-family: "Space Grotesk", ui-sans-serif, system-ui; font-size: 1.25rem; line-height: 1.08; letter-spacing: -.03em; }
.card p { margin: 0; color: var(--muted); }
.card-link { display: inline-flex; margin-top: 1rem; font-weight: 950; text-decoration: none; border-bottom: 3px solid var(--pink); }
.card-icon { width: 48px; height: 48px; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 14px; background: var(--yellow); font-size: 1.45rem; }
.card:nth-child(2n) .card-icon { background: var(--cyan); }
.card:nth-child(3n) .card-icon { background: var(--pink); }
.card:nth-child(4n) .card-icon { background: var(--mint); }
.portal-card { min-height: 275px; display: flex; flex-direction: column; }
.portal-card .card-link { margin-top: auto; align-self: flex-start; }

.metric-strip { display: grid; grid-template-columns: repeat(4, 1fr); border: 2px solid var(--ink); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); background: white; }
.metric { padding: 1.35rem; border-right: 2px solid var(--ink); }
.metric:last-child { border-right: 0; }
.metric strong { display: block; font-family: "Space Grotesk", ui-sans-serif, system-ui; font-size: 2rem; line-height: 1; }
.metric span { display: block; margin-top: .45rem; color: var(--muted); font-family: ui-monospace, monospace; font-size: .68rem; font-weight: 800; text-transform: uppercase; }

.process-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: .8rem; }
.process-step { position: relative; min-height: 210px; padding: 1rem; border: 2px solid var(--ink); border-radius: 18px; background: white; box-shadow: 4px 4px 0 var(--ink); }
.process-step::after { content: "→"; position: absolute; right: -.74rem; top: 50%; z-index: 3; width: 28px; height: 28px; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 50%; background: var(--yellow); font-weight: 1000; }
.process-step:last-child::after { display: none; }
.step-no { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 2px solid var(--ink); border-radius: 50%; background: var(--pink); color: white; font-weight: 1000; }
.process-step h3 { margin: .8rem 0 .55rem; font-size: 1rem; line-height: 1.1; text-transform: uppercase; }
.process-step p { margin: 0; color: var(--muted); font-size: .83rem; }

.matrix-wrap { overflow-x: auto; border: 2px solid var(--ink); border-radius: 22px; box-shadow: var(--shadow-sm); }
.matrix { width: 100%; min-width: 760px; border-collapse: collapse; background: white; }
.matrix th, .matrix td { padding: 1rem; border-right: 1px solid #b9bdc8; border-bottom: 1px solid #b9bdc8; vertical-align: top; text-align: left; }
.matrix th { background: var(--yellow); font-family: ui-monospace, monospace; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; }
.matrix tr:last-child td { border-bottom: 0; }
.matrix th:last-child, .matrix td:last-child { border-right: 0; }
.matrix strong { display: block; }
.matrix small { color: var(--muted); }

.code-card { border: 2px solid var(--ink); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); background: #141827; color: #f8fafc; }
.code-head { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 1rem; border-bottom: 1px solid #4b5265; background: #252b3c; font-family: ui-monospace, monospace; font-size: .7rem; font-weight: 800; }
.code-card pre { margin: 0; padding: 1.3rem; overflow: auto; font-size: .8rem; line-height: 1.7; }
.code-card code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.code-key { color: #7dd3fc; }
.code-value { color: #fde68a; }
.code-string { color: #86efac; }

.article-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.article-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 2px solid var(--ink); border-radius: 22px; background: white; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; }
.article-card:hover { transform: translate(-2px,-2px); box-shadow: 8px 8px 0 var(--ink); }
.article-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-bottom: 2px solid var(--ink); }
.article-card-body { display: flex; flex-direction: column; flex: 1; padding: 1rem; }
.article-meta { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; margin-bottom: .7rem; font-family: ui-monospace, monospace; font-size: .65rem; font-weight: 850; color: var(--muted); text-transform: uppercase; }
.pill { display: inline-flex; align-items: center; padding: .28rem .48rem; border: 1px solid var(--ink); border-radius: 999px; background: #fff6ac; font-family: ui-monospace, monospace; font-size: .64rem; font-weight: 850; text-decoration: none; text-transform: uppercase; }
.article-card h3 { margin: 0; font-family: "Space Grotesk", ui-sans-serif, system-ui; font-size: 1.18rem; line-height: 1.12; letter-spacing: -.025em; }
.article-card h3 a { text-decoration: none; }
.article-card p { margin: .75rem 0 1rem; color: var(--muted); font-size: .9rem; }
.read-link { margin-top: auto; font-weight: 950; text-decoration: none; }

.faq-list { display: grid; gap: .9rem; }
details.faq { border: 2px solid var(--ink); border-radius: 16px; background: white; box-shadow: 3px 3px 0 var(--ink); }
details.faq summary { position: relative; padding: 1rem 3rem 1rem 1rem; cursor: pointer; list-style: none; font-weight: 950; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; position: absolute; right: 1rem; top: .7rem; font-size: 1.6rem; }
details.faq[open] summary::after { content: "–"; }
details.faq p { margin: 0; padding: 0 1rem 1rem; color: var(--muted); }

.cta-panel { position: relative; overflow: hidden; padding: clamp(2rem, 5vw, 4rem); border: 2px solid var(--ink); border-radius: 30px; background: linear-gradient(120deg, var(--yellow), #fff 42%, var(--cyan)); box-shadow: 10px 10px 0 var(--ink); }
.cta-panel::before { content: "◉"; position: absolute; right: 3%; top: -34%; color: rgba(255,79,180,.25); font-size: 17rem; line-height: 1; }
.cta-panel > * { position: relative; z-index: 2; }
.cta-panel h2 { max-width: 880px; margin: 0; font-family: "Space Grotesk", ui-sans-serif, system-ui; font-size: clamp(2.2rem, 5vw, 4.6rem); line-height: .98; letter-spacing: -.05em; text-transform: uppercase; }
.cta-panel p { max-width: 700px; margin: 1rem 0 0; font-weight: 650; }

.page-hero { position: relative; overflow: hidden; padding-block: clamp(3.3rem, 8vw, 6.5rem); border-bottom: 2px solid var(--ink); background: linear-gradient(145deg, #fff8ad, #fff 50%, #d9f9ff); }
.page-hero::after { content: ""; position: absolute; width: 300px; height: 300px; right: -80px; top: -130px; border: 45px solid rgba(255,79,180,.22); border-radius: 50%; }
.page-hero .container { position: relative; z-index: 2; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin: 0 0 1rem; font-family: ui-monospace, monospace; font-size: .7rem; font-weight: 800; text-transform: uppercase; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs span[aria-hidden="true"] { color: #9a9ead; }
.page-title { max-width: 980px; font-size: clamp(2.7rem, 7vw, 6.3rem); }
.page-deck { max-width: 820px; margin: 1.3rem 0 0; color: #485064; font-size: clamp(1.02rem, 2vw, 1.2rem); font-weight: 650; }
.page-hero-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }

.content-band { padding-block: clamp(3.5rem, 7vw, 6rem); }
.content-band + .content-band { border-top: 2px solid var(--ink); }
.two-col { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); gap: 2.5rem; align-items: start; }
.sticky-label { position: sticky; top: 140px; }
.sticky-label h2 { margin: 0; font-family: "Space Grotesk", ui-sans-serif, system-ui; font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1; text-transform: uppercase; letter-spacing: -.04em; }
.sticky-label p { color: var(--muted); }
.content-copy h2, .content-copy h3 { font-family: "Space Grotesk", ui-sans-serif, system-ui; line-height: 1.08; letter-spacing: -.03em; }
.content-copy h2 { margin: 0 0 1rem; font-size: 2rem; }
.content-copy h3 { margin: 2rem 0 .5rem; font-size: 1.3rem; }
.content-copy p { color: #3e4658; }
.content-copy ul, .content-copy ol { padding-left: 1.25rem; }
.content-copy li { margin-bottom: .55rem; }
.notice { padding: 1rem 1.1rem; border: 2px solid var(--ink); border-radius: 16px; background: #fff4a8; box-shadow: 3px 3px 0 var(--ink); }
.notice strong { display: block; margin-bottom: .2rem; }

.glossary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
.term { padding: 1rem; border: 1.5px solid var(--ink); border-radius: 15px; background: white; }
.term dt { font-weight: 1000; }
.term dd { margin: .3rem 0 0; color: var(--muted); }

.article-hero { padding-bottom: 2.3rem; }
.article-hero .page-title { max-width: 1050px; font-size: clamp(2.5rem, 6.2vw, 5.7rem); }
.article-byline { display: flex; flex-wrap: wrap; gap: .55rem 1rem; align-items: center; margin-top: 1.4rem; font-family: ui-monospace, monospace; font-size: .73rem; font-weight: 800; text-transform: uppercase; }
.article-feature { width: min(980px, calc(100% - 32px)); margin: -1px auto 0; border: 2px solid var(--ink); border-top: 0; border-radius: 0 0 28px 28px; overflow: hidden; box-shadow: 9px 9px 0 var(--ink); background: white; }
.article-feature img { width: 100%; max-height: 680px; object-fit: cover; }
.article-shell { display: grid; grid-template-columns: 240px minmax(0, 760px); justify-content: center; gap: 2.2rem; padding-block: 4.5rem; }
.article-aside { align-self: start; position: sticky; top: 142px; }
.toc { padding: 1rem; border: 2px solid var(--ink); border-radius: 16px; background: white; box-shadow: 3px 3px 0 var(--ink); }
.toc strong { display: block; margin-bottom: .6rem; font-family: ui-monospace, monospace; font-size: .72rem; text-transform: uppercase; }
.toc a { display: block; padding: .38rem 0; color: var(--muted); font-size: .77rem; line-height: 1.25; text-decoration: none; }
.toc a:hover { color: #c70d72; }
.share-note { margin-top: 1rem; padding: .85rem; border: 1.5px solid var(--ink); border-radius: 14px; background: #e6faff; font-size: .75rem; }
.prose { min-width: 0; font-size: 1.04rem; }
.prose > p:first-child { font-size: 1.22rem; line-height: 1.7; font-weight: 650; color: #303748; }
.prose h2 { margin: 3rem 0 1rem; font-family: "Space Grotesk", ui-sans-serif, system-ui; font-size: clamp(1.8rem, 4vw, 2.65rem); line-height: 1.05; letter-spacing: -.035em; }
.prose h3 { margin: 2rem 0 .7rem; font-family: "Space Grotesk", ui-sans-serif, system-ui; font-size: 1.35rem; line-height: 1.1; }
.prose p { margin: 0 0 1.25rem; color: #333b4d; }
.prose ul, .prose ol { margin: 0 0 1.4rem; padding-left: 1.35rem; }
.prose li { margin-bottom: .55rem; }
.prose a { color: #a50060; font-weight: 750; }
.prose blockquote { margin: 2rem 0; padding: 1rem 1.2rem; border-left: 7px solid var(--pink); background: #fff0f8; font-weight: 700; }
.prose code { padding: .12rem .32rem; border: 1px solid #c7cad2; border-radius: 6px; background: #f2f3f6; font-family: ui-monospace, monospace; font-size: .9em; }
.prose pre { overflow: auto; padding: 1rem; border: 2px solid var(--ink); border-radius: 14px; background: #171b2a; color: white; }
.prose hr { border: 0; border-top: 2px solid var(--ink); margin: 3rem 0; }
.article-disclosure { margin-top: 2.2rem; padding: 1rem; border: 2px solid var(--ink); border-radius: 15px; background: #fff6ab; font-size: .85rem; }
.related-block { padding-block: 4rem; border-top: 2px solid var(--ink); background: #effcff; }

.archive-head { display: flex; justify-content: space-between; gap: 1.5rem; align-items: end; margin-bottom: 1.8rem; }
.archive-head h2 { margin: 0; font-family: "Space Grotesk", ui-sans-serif, system-ui; font-size: clamp(2rem, 4vw, 3.4rem); text-transform: uppercase; line-height: 1; }
.archive-count { font-family: ui-monospace, monospace; font-size: .74rem; font-weight: 850; text-transform: uppercase; }

.site-footer { background: white; }
.footer-main { padding-block: 3.5rem; border-top: 2px solid var(--ink); }
.footer-grid { display: grid; grid-template-columns: 1.3fr repeat(3, .7fr); gap: 2rem; }
.footer-brand p { max-width: 390px; color: var(--muted); }
.footer-col strong { display: block; margin-bottom: .7rem; font-family: ui-monospace, monospace; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.footer-col a { display: block; margin: .45rem 0; color: #3f4658; text-decoration: none; }
.footer-col a:hover { color: #c70d72; }
.footer-bottom { padding-block: 1rem; border-top: 1px solid #c8cbd3; display: flex; justify-content: space-between; gap: 1rem; font-family: ui-monospace, monospace; font-size: .65rem; font-weight: 750; text-transform: uppercase; color: var(--muted); }
.footer-disclosure { max-width: 620px; }

.reveal { opacity: 0; transform: translateY(16px); }
.reveal.is-visible { opacity: 1; transform: translateY(0); transition: opacity .6s ease, transform .6s ease; }

@media (max-width: 1050px) {
  .desktop-nav { display: none; }
  .mobile-toggle { display: grid; place-items: center; }
  .mobile-panel.is-open { display: block; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-stack { width: min(620px, 100%); min-height: 0; transform: none; }
  .process-grid { grid-template-columns: repeat(3, 1fr); }
  .process-step:nth-child(3)::after { display: none; }
  .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .article-shell { grid-template-columns: minmax(0, 760px); }
  .article-aside { position: static; }
  .toc { columns: 2; }
  .footer-grid { grid-template-columns: 1.2fr repeat(2, .8fr); }
  .footer-col:last-child { grid-column: 2 / 4; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 104px; }
  .container, .narrow { width: min(100% - 22px, var(--max)); }
  .topline-label { display: none; }
  .nav-shell { min-height: 68px; }
  .brand-mark { width: 42px; height: 42px; }
  .brand-tagline { display: none; }
  .hero-grid { padding-block: 3.7rem; gap: 2.2rem; }
  .display { font-size: clamp(2.85rem, 15vw, 4.6rem); }
  .section-head { display: block; }
  .section-intro { margin-top: 1rem; }
  .grid-2, .grid-3, .article-grid, .glossary-grid { grid-template-columns: 1fr; }
  .metric-strip { grid-template-columns: repeat(2, 1fr); }
  .metric:nth-child(2) { border-right: 0; }
  .metric:nth-child(-n+2) { border-bottom: 2px solid var(--ink); }
  .process-grid { grid-template-columns: 1fr; }
  .process-step { min-height: 0; }
  .process-step::after, .process-step:nth-child(3)::after { display: none; }
  .two-col { grid-template-columns: 1fr; gap: 1.5rem; }
  .sticky-label { position: static; }
  .article-feature { width: calc(100% - 22px); box-shadow: 5px 5px 0 var(--ink); }
  .article-shell { padding-block: 3rem; }
  .toc { columns: 1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-col:last-child { grid-column: auto; }
  .footer-bottom { display: block; }
  .footer-bottom > * + * { margin-top: .7rem; }
}

@media (max-width: 470px) {
  .brand-name { font-size: .97rem; }
  .brand-mark { width: 39px; height: 39px; }
  .button-row { display: grid; }
  .btn { width: 100%; }
  .hero-stack { padding: .75rem; border-radius: 20px; box-shadow: 6px 6px 0 var(--ink); }
  .stack-row { grid-template-columns: 42px 1fr; }
  .stack-arrow { display: none; }
  .metric-strip, .grid-4 { grid-template-columns: 1fr; }
  .metric { border-right: 0; border-bottom: 2px solid var(--ink); }
  .metric:last-child { border-bottom: 0; }
  .metric:nth-child(2) { border-right: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .page-title { font-size: clamp(2.55rem, 15vw, 4rem); }
}

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