@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=Space+Grotesk:wght@400;500;700&family=Teko:wght@400;500;600;700&display=swap");

:root {
  --bg: #e8ede3;
  --bg-deep: #dce5d4;
  --surface: #f8fbf4;
  --surface-strong: #ffffff;
  --surface-dark: #121927;
  --surface-dark-2: #1a2538;
  --text: #121723;
  --muted: #536070;
  --line: #121723;
  --line-soft: rgba(18, 23, 35, 0.18);
  --paper: #f7faf2;
  --accent: #ff6a3d;
  --accent-2: #d6ff3d;
  --accent-3: #356dff;
  --accent-4: #8dc7ff;
  --shadow-dark: rgba(18, 23, 35, 0.16);
  --shadow-accent: rgba(214, 255, 61, 0.65);
  --max: 1220px;
  --content: 760px;
  --transition: 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(53, 109, 255, 0.14), transparent 30%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(18, 23, 35, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 23, 35, 0.04) 1px, transparent 1px);
  background-size: 84px 84px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85), transparent 95%);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 100;
  padding: 0.85rem 1rem;
  background: var(--line);
  color: var(--paper);
}

.site-shell {
  position: relative;
  overflow: clip;
}

.site-shell::after {
  content: "";
  position: absolute;
  top: 7rem;
  right: -12vw;
  width: 28vw;
  min-width: 220px;
  aspect-ratio: 1;
  background: linear-gradient(135deg, rgba(255, 106, 61, 0.16), rgba(214, 255, 61, 0.08));
  transform: rotate(26deg);
  pointer-events: none;
}

.progress-bar {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 40;
  width: 100%;
  height: 4px;
  transform-origin: left;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--accent-2), var(--accent), var(--accent-3));
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(248, 251, 244, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 2px solid var(--line);
}

.topbar::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 6px;
  background: linear-gradient(90deg, var(--accent-2) 0 18%, transparent 18% 22%, var(--accent) 22% 38%, transparent 38% 42%, var(--accent-3) 42% 58%, transparent 58% 62%, var(--accent-2) 62% 100%);
  opacity: 0.8;
}

.topbar-inner,
.section-shell,
.footer-inner,
.article-grid,
.wide-shell,
.note-band-inner,
.newsletter-inner,
.footer-bottom,
.page-hero-inner,
.article-hero-inner,
.hero-inner {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
  min-height: 84px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.brand-mark {
  width: 3rem;
  height: 3rem;
  display: inline-grid;
  place-items: center;
  border: 2px solid var(--line);
  background: var(--accent-2);
  color: var(--line);
  font-family: "Teko", sans-serif;
  font-size: 1.55rem;
  line-height: 1;
  box-shadow: 6px 6px 0 var(--accent-3);
}

.nav-toggle {
  display: none;
  width: 3rem;
  height: 3rem;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--line);
  background: var(--surface-strong);
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--line);
  transition: transform var(--transition), opacity var(--transition);
  content: "";
}

.nav-toggle span::before {
  transform: translateY(-6px);
}

.nav-toggle span::after {
  transform: translateY(4px);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.site-nav a {
  position: relative;
  padding: 0.35rem 0;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.55rem;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--line);
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.cta-link,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-height: 3.35rem;
  padding: 0.9rem 1.35rem;
  border: 2px solid var(--line);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    background var(--transition),
    color var(--transition);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}

.button:hover,
.cta-link:hover {
  transform: translate(-4px, -4px);
}

.button-primary {
  background: var(--accent-2);
  color: var(--line);
  box-shadow: 8px 8px 0 var(--line);
}

.button-primary:hover {
  box-shadow: 12px 12px 0 var(--accent-3);
}

.button-secondary,
.button-soft {
  background: var(--surface-strong);
  color: var(--line);
  box-shadow: 8px 8px 0 rgba(18, 23, 35, 0.12);
}

.button-secondary:hover,
.button-soft:hover {
  box-shadow: 12px 12px 0 var(--accent);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100svh - 84px);
  display: grid;
  align-items: end;
  padding: 0 0 2.5rem;
  background:
    linear-gradient(160deg, rgba(18, 25, 39, 0.98) 0%, rgba(18, 25, 39, 0.98) 54%, rgba(27, 37, 57, 0.96) 100%);
  color: var(--paper);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(214, 255, 61, 0.12) 0 1px, transparent 1px 100%),
    linear-gradient(0deg, rgba(214, 255, 61, 0.08) 0 1px, transparent 1px 100%);
  background-size: 88px 88px;
  opacity: 0.42;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -8vw 14% auto;
  width: min(38vw, 520px);
  aspect-ratio: 1;
  background:
    linear-gradient(135deg, var(--accent) 0%, rgba(255, 106, 61, 0.16) 55%),
    linear-gradient(135deg, transparent 0 49%, rgba(255, 255, 255, 0.14) 49% 51%, transparent 51% 100%);
  transform: rotate(18deg);
  opacity: 0.9;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 2rem;
  align-items: end;
  padding-top: clamp(3rem, 7vw, 6rem);
}

.hero-copy,
.page-hero-copy,
.article-hero-copy {
  min-width: 0;
}

.page-hero-copy,
.article-hero-copy {
  position: relative;
  padding: 1.15rem;
  background: rgba(255, 255, 255, 0.76);
  border: 2px solid var(--line);
  box-shadow: 12px 12px 0 rgba(255, 106, 61, 0.18);
}

.eyebrow,
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid currentColor;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before,
.kicker::before {
  content: "";
  width: 0.65rem;
  height: 0.65rem;
  background: currentColor;
}

.hero .eyebrow {
  color: var(--accent-2);
}

.page-hero .eyebrow,
.article-hero .eyebrow {
  color: var(--line);
  background: var(--paper);
}

.hero h1,
.page-hero h1,
.article-hero h1 {
  margin: 1rem 0 0.7rem;
  font-family: "Teko", sans-serif;
  font-size: clamp(4.5rem, 11vw, 9.4rem);
  line-height: 0.84;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.hero p,
.page-hero p,
.article-hero p {
  margin: 0;
  max-width: 34rem;
  font-size: 1.02rem;
  line-height: 1.85;
}

.hero p {
  color: rgba(247, 250, 242, 0.82);
}

.hero-actions,
.page-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.9rem;
}

.hero .button-secondary {
  background: transparent;
  color: var(--paper);
  border-color: rgba(247, 250, 242, 0.42);
  box-shadow: 8px 8px 0 rgba(247, 250, 242, 0.08);
}

.hero .button-secondary:hover {
  box-shadow: 12px 12px 0 rgba(214, 255, 61, 0.2);
}

.hero-note,
.hero-panel,
.page-panel,
.story-lead,
.story-snippet article,
.topic-block,
.resource-block,
.policy-block,
.faq-item,
.note-block,
.toc,
.article-callout,
.contact-block,
.policy-content,
.guide-rail {
  position: relative;
  background: var(--surface-strong);
  border: 2px solid var(--line);
  box-shadow: 10px 10px 0 rgba(18, 23, 35, 0.12);
}

.hero-note {
  padding: 1.35rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    rgba(18, 25, 39, 0.58);
  border-color: rgba(247, 250, 242, 0.18);
  color: var(--paper);
  box-shadow: 12px 12px 0 rgba(214, 255, 61, 0.16);
  backdrop-filter: blur(8px);
}

.hero-note::after,
.page-panel::after,
.story-lead::after,
.story-snippet article::after,
.topic-block::after,
.resource-block::after,
.policy-block::after,
.faq-item::after,
.contact-block::after,
.policy-content::after,
.guide-rail::after,
.toc::after,
.article-callout::after {
  content: "";
  position: absolute;
  top: -2px;
  right: -2px;
  width: 22px;
  height: 22px;
  background: var(--accent);
  clip-path: polygon(100% 0, 0 0, 100% 100%);
}

.hero-note h2 {
  margin: 0;
  font-family: "Teko", sans-serif;
  font-size: 2rem;
  line-height: 0.95;
  text-transform: uppercase;
}

.hero-note p {
  margin-top: 0.8rem;
  color: rgba(247, 250, 242, 0.74);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(247, 250, 242, 0.16);
}

.hero-metrics strong,
.article-meta {
  font-family: "IBM Plex Mono", monospace;
}

.hero-metrics strong {
  display: block;
  font-size: 1.25rem;
  color: var(--accent-2);
}

.page-hero,
.article-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(4rem, 7vw, 6rem) 0 3rem;
  border-bottom: 2px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0)),
    linear-gradient(135deg, rgba(53, 109, 255, 0.09), transparent 32%);
}

.page-hero::before,
.article-hero::before {
  content: "";
  position: absolute;
  top: -6rem;
  right: -10rem;
  width: min(34vw, 520px);
  aspect-ratio: 1;
  transform: rotate(24deg);
  background:
    linear-gradient(135deg, rgba(53, 109, 255, 0.22), rgba(53, 109, 255, 0)),
    linear-gradient(135deg, rgba(255, 106, 61, 0.14), transparent 65%);
}

.page-hero-inner,
.article-hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.95fr);
  gap: 2rem;
  align-items: end;
}

.page-hero h1,
.article-hero h1,
.section-header h2,
.story-lead h3,
.story-snippet h3,
.topic-block h3,
.resource-block h3,
.policy-block h3,
.faq-item h3,
.contact-block h2,
.policy-content h2,
.article-body h2,
.article-body h3,
.newsletter-inner h2,
.site-footer h2,
.site-footer h3 {
  font-family: "Teko", sans-serif;
  text-transform: uppercase;
  line-height: 0.88;
  letter-spacing: -0.02em;
}

.page-hero p,
.article-hero p {
  color: var(--muted);
}

.page-panel,
.hero-panel {
  padding: 0.9rem;
  background: var(--surface-dark);
  box-shadow: 14px 14px 0 var(--accent-3);
}

.hero-panel img,
.page-panel img,
.figure-stack img {
  width: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.1) saturate(0.8);
}

.hero-panel img,
.page-panel img {
  aspect-ratio: 4 / 5;
}

.section-shell {
  padding: clamp(3.2rem, 7vw, 5.6rem) 0;
}

.section-divider {
  border-top: 2px solid var(--line);
}

.section-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 0.5fr);
  gap: 2rem;
  align-items: end;
  margin-bottom: 2.2rem;
}

.section-header h2 {
  margin: 0.55rem 0 0;
  font-size: clamp(2.8rem, 7vw, 5.2rem);
}

.section-header p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.kicker {
  color: var(--line);
  background: var(--accent-2);
  border-color: var(--line);
}

.story-grid,
.topic-grid,
.resource-grid,
.policy-grid,
.footer-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.25rem;
}

.story-lead,
.story-snippet article,
.topic-block,
.resource-block,
.policy-block,
.faq-item,
.contact-block,
.policy-content {
  padding: 1.35rem;
}

.story-lead,
.story-snippet article,
.topic-block,
.resource-block,
.policy-block,
.faq-item,
.contact-block,
.policy-content,
.toc,
.article-callout,
.guide-rail {
  transition: transform var(--transition), box-shadow var(--transition);
}

.story-lead:hover,
.story-snippet article:hover,
.topic-block:hover,
.resource-block:hover,
.policy-block:hover,
.faq-item:hover,
.contact-block:hover {
  transform: translate(-4px, -4px);
}

.story-lead {
  grid-column: span 7;
  box-shadow: 12px 12px 0 rgba(214, 255, 61, 0.72);
}

.story-lead::before,
.story-snippet article::before {
  position: absolute;
  top: 0.55rem;
  right: 0.85rem;
  font-family: "Teko", sans-serif;
  font-size: 5rem;
  line-height: 0.8;
  letter-spacing: -0.04em;
  color: rgba(18, 23, 35, 0.08);
}

.story-lead::before {
  content: "01";
}

.story-lead:hover {
  box-shadow: 16px 16px 0 var(--accent-2);
}

.story-snippet {
  grid-column: span 5;
  display: grid;
  gap: 1.25rem;
}

.story-snippet article:nth-child(1) {
  box-shadow: 10px 10px 0 rgba(53, 109, 255, 0.24);
}

.story-snippet article:nth-child(1)::before {
  content: "02";
}

.story-snippet article:nth-child(2) {
  box-shadow: 10px 10px 0 rgba(255, 106, 61, 0.22);
}

.story-snippet article:nth-child(2)::before {
  content: "03";
}

.story-meta,
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.story-lead h3 {
  margin: 0.8rem 0 0.8rem;
  font-size: clamp(2.3rem, 5vw, 4rem);
}

.story-snippet h3,
.topic-block h3,
.resource-block h3,
.policy-block h3,
.faq-item h3,
.contact-block h2,
.policy-content h2 {
  margin: 0.7rem 0 0.7rem;
  font-size: clamp(1.9rem, 3vw, 2.5rem);
}

.story-lead p,
.story-snippet p,
.topic-block p,
.resource-block p,
.policy-block p,
.faq-item p,
.contact-block p,
.policy-content p,
.policy-content li,
.article-body p,
.article-body li,
.newsletter-inner p,
.note-band p,
.site-footer p,
.site-footer li {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.topic-block,
.resource-block,
.policy-block {
  grid-column: span 4;
}

.topic-block {
  box-shadow: 10px 10px 0 rgba(53, 109, 255, 0.14);
}

.resource-block {
  box-shadow: 10px 10px 0 rgba(214, 255, 61, 0.46);
}

.policy-block {
  box-shadow: 10px 10px 0 rgba(255, 106, 61, 0.2);
}

.topic-block ul,
.resource-block ul,
.policy-content ul,
.article-body ul,
.article-body ol,
.toc ul {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
}

.topic-block li,
.resource-block li,
.policy-content li,
.article-body li,
.toc li {
  margin-top: 0.55rem;
}

.link-row,
.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.2rem;
  margin-top: 1.2rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--line);
}

.text-link::after {
  content: "\2192";
  transition: transform var(--transition);
}

.text-link:hover::after {
  transform: translateX(0.28rem);
}

.note-band {
  border-top: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
  background: var(--surface-dark);
  color: var(--paper);
}

.note-band-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.note-band p {
  max-width: 56rem;
  color: rgba(247, 250, 242, 0.8);
}

.note-band .text-link {
  color: var(--accent-2);
}

.article-grid {
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, var(--content));
  gap: 2rem;
  align-items: start;
}

.guide-rail {
  position: sticky;
  top: 112px;
  padding: 1rem;
  background: var(--surface-dark);
  color: var(--paper);
  box-shadow: 14px 14px 0 rgba(53, 109, 255, 0.22);
}

.toc,
.article-callout {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(247, 250, 242, 0.14);
  box-shadow: none;
}

.toc + .article-callout {
  margin-top: 1rem;
}

.toc h2,
.article-callout h2,
.guide-rail h2 {
  margin: 0 0 0.8rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.toc ul {
  list-style: none;
  padding: 0;
}

.toc li {
  margin-top: 0;
}

.toc a {
  display: block;
  padding: 0.6rem 0;
  color: rgba(247, 250, 242, 0.74);
  border-bottom: 1px solid rgba(247, 250, 242, 0.12);
  transition: color var(--transition), padding-left var(--transition);
}

.toc a:hover {
  color: var(--accent-2);
  padding-left: 0.3rem;
}

.article-callout p,
.article-callout a {
  color: rgba(247, 250, 242, 0.8);
}

.article-body {
  min-width: 0;
}

.article-body > * + * {
  margin-top: 1.15rem;
}

.article-body h2 {
  margin-top: 2.8rem;
  padding-top: 1.15rem;
  border-top: 2px solid var(--line);
  font-size: clamp(2.5rem, 5vw, 4rem);
  scroll-margin-top: 120px;
}

.article-body h3 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.article-body ul,
.article-body ol {
  color: var(--muted);
}

.article-body blockquote {
  margin: 2rem 0;
  padding: 1.3rem 1.4rem;
  background: var(--surface-dark);
  border-left: 10px solid var(--accent-2);
  color: var(--paper);
  font-family: "Teko", sans-serif;
  font-size: 2rem;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: 12px 12px 0 rgba(255, 106, 61, 0.35);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
}

.faq-item {
  box-shadow: 10px 10px 0 rgba(53, 109, 255, 0.16);
}

.resource-grid .resource-block,
.policy-grid .policy-block {
  grid-column: span 4;
}

.figure-stack {
  display: grid;
  gap: 1rem;
}

.figure-stack img {
  aspect-ratio: 4 / 3;
  border: 2px solid var(--line);
  box-shadow: 10px 10px 0 rgba(18, 23, 35, 0.14);
}

.figure-caption {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 1.4rem;
}

.contact-block {
  box-shadow: 12px 12px 0 rgba(53, 109, 255, 0.16);
}

.detail-list {
  display: grid;
  gap: 0.95rem;
  margin-top: 1.2rem;
}

.detail-item {
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line-soft);
}

.detail-label {
  display: block;
  margin-bottom: 0.25rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.policy-content {
  max-width: var(--content);
  box-shadow: 14px 14px 0 rgba(214, 255, 61, 0.52);
}

.policy-content h3 {
  margin: 1.2rem 0 0.45rem;
  font-family: "Teko", sans-serif;
  font-size: 1.85rem;
  text-transform: uppercase;
  line-height: 0.95;
}

.newsletter-strip {
  position: relative;
  overflow: hidden;
  margin-top: 1rem;
  border-top: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
  background:
    linear-gradient(135deg, var(--accent-2) 0 62%, var(--accent) 62% 100%);
}

.newsletter-strip::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 23, 35, 0.08) 0 1px, transparent 1px 100%),
    linear-gradient(0deg, rgba(18, 23, 35, 0.08) 0 1px, transparent 1px 100%);
  background-size: 60px 60px;
  pointer-events: none;
}

.newsletter-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: center;
  padding: clamp(2rem, 5vw, 3rem) 0;
}

.newsletter-inner h2 {
  margin: 0.45rem 0 0;
  font-size: clamp(2.6rem, 6vw, 4.8rem);
}

.newsletter-inner p {
  margin-top: 0.7rem;
  max-width: 38rem;
  color: rgba(18, 23, 35, 0.82);
}

.newsletter-strip .button-primary {
  background: var(--line);
  color: var(--paper);
  box-shadow: 8px 8px 0 rgba(255, 255, 255, 0.22);
}

.newsletter-strip .button-primary:hover {
  box-shadow: 12px 12px 0 rgba(53, 109, 255, 0.34);
}

.newsletter-strip .button-secondary {
  background: rgba(255, 255, 255, 0.22);
  color: var(--line);
  box-shadow: 8px 8px 0 rgba(18, 23, 35, 0.16);
}

.site-footer {
  padding: 2.4rem 0 3rem;
  background: var(--surface-dark);
  color: var(--paper);
}

.footer-grid {
  align-items: start;
}

.footer-brand {
  grid-column: span 5;
}

.footer-links,
.footer-meta {
  grid-column: span 3;
}

.site-footer h2 {
  font-size: 2.4rem;
}

.site-footer h3 {
  font-size: 1.45rem;
}

.site-footer p,
.site-footer li {
  color: rgba(247, 250, 242, 0.72);
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0.8rem 0 0;
}

.site-footer li + li {
  margin-top: 0.45rem;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem 1rem;
  margin-top: 1.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(247, 250, 242, 0.16);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(247, 250, 242, 0.62);
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 700ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.hero-copy,
.hero-note,
.page-hero-copy,
.page-panel,
.article-hero-copy {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 700ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

.is-ready .hero-copy,
.is-ready .hero-note,
.is-ready .page-hero-copy,
.is-ready .page-panel,
.is-ready .article-hero-copy {
  opacity: 1;
  transform: none;
}

.is-ready .hero-note,
.is-ready .page-panel {
  transition-delay: 120ms;
}

@media (max-width: 1080px) {
  .hero-inner,
  .page-hero-inner,
  .article-hero-inner,
  .article-grid,
  .contact-grid,
  .newsletter-inner {
    grid-template-columns: 1fr;
  }

  .guide-rail {
    position: static;
  }

  .story-lead,
  .story-snippet,
  .topic-block,
  .resource-block,
  .policy-block,
  .footer-brand,
  .footer-links,
  .footer-meta {
    grid-column: span 12;
  }
}

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

  .site-nav {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(100% + 0.8rem);
    padding: 1rem;
    flex-direction: column;
    align-items: flex-start;
    border: 2px solid var(--line);
    background: var(--surface-strong);
    box-shadow: 12px 12px 0 rgba(18, 23, 35, 0.16);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-0.4rem);
    transition: opacity var(--transition), transform var(--transition);
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .nav-toggle[aria-expanded="true"] span {
    background: transparent;
  }

  .nav-toggle[aria-expanded="true"] span::before {
    transform: translateY(0) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span::after {
    transform: translateY(-2px) rotate(-45deg);
  }

  .hero {
    min-height: auto;
  }

  .hero h1,
  .page-hero h1,
  .article-hero h1 {
    font-size: clamp(4rem, 17vw, 6rem);
  }

  .section-header,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .topbar-inner,
  .section-shell,
  .footer-inner,
  .article-grid,
  .wide-shell,
  .note-band-inner,
  .newsletter-inner,
  .footer-bottom,
  .page-hero-inner,
  .article-hero-inner,
  .hero-inner {
    width: min(calc(100% - 1.2rem), var(--max));
  }

  .button,
  .cta-link {
    width: 100%;
  }

  .hero-actions,
  .page-hero-actions {
    flex-direction: column;
  }

  .story-lead,
  .story-snippet article,
  .topic-block,
  .resource-block,
  .policy-block,
  .faq-item,
  .contact-block,
  .policy-content,
  .guide-rail,
  .toc,
  .article-callout,
  .hero-note,
  .page-panel {
    padding: 1.05rem;
    box-shadow: 8px 8px 0 rgba(18, 23, 35, 0.12);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal,
  .hero-copy,
  .hero-note,
  .page-hero-copy,
  .page-panel,
  .article-hero-copy {
    opacity: 1;
    transform: none;
  }
}
