:root {
  --ink: #0b1021;
  --paper: #f2f4ee;
  --white: #ffffff;
  --mint: #63f2ae;
  --violet: #7857ff;
  --orange: #ff6647;
  --quiet: #687083;
  --line: #cbd0c8;
  --line-dark: #343b52;
  --max: 1240px;
  --header: 78px;
  --step--1: clamp(.76rem, .72rem + .15vw, .84rem);
  --step-0: clamp(.98rem, .91rem + .28vw, 1.12rem);
  --step-1: clamp(1.22rem, 1.07rem + .58vw, 1.58rem);
  --step-2: clamp(1.58rem, 1.25rem + 1.15vw, 2.22rem);
  --step-3: clamp(2.05rem, 1.47rem + 2.15vw, 3.2rem);
  --step-4: clamp(3rem, 1.65rem + 5.1vw, 6.7rem);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 22px); }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: var(--step-0);
  line-height: 1.58;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }

.skip-link {
  position: fixed;
  z-index: 999;
  left: 16px;
  top: 12px;
  padding: 10px 16px;
  color: var(--ink);
  background: var(--mint);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.site-head {
  position: sticky;
  z-index: 80;
  top: 0;
  min-height: var(--header);
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  align-items: stretch;
  color: var(--paper);
  background: var(--ink);
  border-bottom: 1px solid var(--line-dark);
}
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  padding: 13px clamp(16px, 3vw, 42px);
  text-decoration: none;
}
.brand-mark {
  width: 35px;
  height: 35px;
  display: grid;
  grid-template-columns: 5fr 2fr;
  grid-template-rows: repeat(3, 1fr);
  gap: 3px;
  flex: 0 0 auto;
}
.brand-mark i { display: block; background: var(--mint); }
.brand-mark i:nth-child(1) { grid-column: 1 / -1; width: 72%; }
.brand-mark i:nth-child(2) { grid-column: 1 / -1; width: 100%; }
.brand-mark i:nth-child(3) { width: 58%; }
.brand-mark i:nth-child(4) { border: 2px solid var(--violet); background: transparent; }
.brand-copy { min-width: 0; line-height: 1.05; }
.brand-copy strong {
  display: block;
  font-size: .91rem;
  letter-spacing: .085em;
  white-space: nowrap;
}
.brand-copy small {
  display: block;
  margin-top: 5px;
  color: #aeb7cb;
  font-size: .68rem;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.head-mode {
  display: flex;
  align-items: center;
  padding: 0 25px;
  border-inline: 1px solid var(--line-dark);
  color: var(--mint);
  font: 700 .68rem/1.3 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.head-mode::before {
  content: "";
  width: 9px;
  height: 9px;
  margin-right: 10px;
  background: var(--mint);
}
.menu-toggle {
  min-width: 142px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 22px;
  color: var(--paper);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-weight: 800;
  font-size: .76rem;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.menu-icon { width: 28px; display: grid; gap: 6px; }
.menu-icon::before, .menu-icon::after { content: ""; display: block; height: 2px; background: currentColor; transition: transform .2s ease; }
.menu-toggle[aria-expanded="true"] .menu-icon::before { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon::after { transform: translateY(-4px) rotate(-45deg); }

.menu-panel {
  position: fixed;
  z-index: 70;
  inset: var(--header) 0 0;
  overflow: auto;
  color: var(--paper);
  background: var(--ink);
}
.menu-inner {
  width: min(var(--max), calc(100% - 40px));
  min-height: calc(100vh - var(--header));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  align-content: center;
  gap: clamp(34px, 7vw, 96px);
  padding: 54px 0 74px;
}
.menu-panel p { margin: 0 0 20px; color: #99a3ba; max-width: 35ch; }
.menu-panel h2 { max-width: 8ch; margin: 0 0 22px; font-size: var(--step-3); line-height: .96; letter-spacing: -.045em; }
.menu-group small { display: block; margin-bottom: 15px; color: var(--mint); font: 700 .69rem/1 ui-monospace, monospace; letter-spacing: .15em; }
.menu-group a { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; border-top: 1px solid var(--line-dark); text-decoration: none; }
.menu-group a::after { content: "↗"; color: var(--violet); }
.menu-panel a:hover, .menu-panel a:focus-visible { color: var(--mint); }

.wrap { width: min(var(--max), calc(100% - clamp(32px, 7vw, 86px))); margin-inline: auto; }
.narrow { width: min(790px, calc(100% - 36px)); margin-inline: auto; }
.eyebrow {
  margin: 0 0 18px;
  color: var(--violet);
  font: 800 var(--step--1)/1.25 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .135em;
  text-transform: uppercase;
}
.eyebrow.light { color: var(--mint); }
.lede { max-width: 63ch; font-size: var(--step-1); line-height: 1.45; }
.section-title { margin: 0; max-width: 16ch; font-size: var(--step-3); line-height: 1.02; letter-spacing: -.045em; }
.section-head { display: grid; grid-template-columns: minmax(250px, .8fr) minmax(300px, 1fr); gap: clamp(32px, 8vw, 120px); align-items: end; margin-bottom: 54px; }
.section-head p { margin: 0; max-width: 60ch; color: #4f5769; }

.null-hero {
  min-height: calc(100svh - var(--header));
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(380px, .98fr);
  background: var(--paper);
  border-bottom: 1px solid var(--ink);
}
.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(58px, 9vw, 122px) clamp(28px, 6vw, 86px);
}
.hero-copy::after {
  content: "";
  position: absolute;
  right: -1px;
  bottom: 0;
  width: 24%;
  height: 13px;
  background: var(--orange);
}
.hero-title { max-width: 11ch; margin: 0; font-size: var(--step-4); line-height: .88; letter-spacing: -.072em; }
.hero-title span { color: var(--violet); }
.hero-copy .lede { margin: 28px 0 0; max-width: 53ch; color: #3d4557; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 36px; }
.button {
  display: inline-flex;
  min-height: 51px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 13px 18px;
  color: var(--paper);
  background: var(--ink);
  border: 1px solid var(--ink);
  text-decoration: none;
  font-weight: 800;
  font-size: .79rem;
  letter-spacing: .075em;
  text-transform: uppercase;
  cursor: pointer;
}
.button::after { content: "→"; font-size: 1.1rem; }
.button:hover, .button:focus-visible { color: var(--ink); background: var(--mint); }
.button.ghost { color: var(--ink); background: transparent; }
.button.ghost:hover, .button.ghost:focus-visible { color: var(--paper); background: var(--violet); border-color: var(--violet); }
.button.mint { color: var(--ink); background: var(--mint); border-color: var(--mint); }
.button.mint:hover, .button.mint:focus-visible { background: var(--paper); border-color: var(--paper); }
.hero-visual { position: relative; min-height: 560px; margin: 0; overflow: hidden; background: var(--ink); }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.hero-caption {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(430px, 85%);
  padding: 20px 24px;
  color: var(--paper);
  background: var(--ink);
  border-top: 1px solid var(--line-dark);
  font: 700 .75rem/1.55 ui-monospace, monospace;
}
.hero-caption b { color: var(--mint); }

.null-tape { overflow: hidden; color: var(--paper); background: var(--violet); border-bottom: 1px solid var(--ink); }
.null-tape-track { display: flex; width: max-content; animation: tape 28s linear infinite; }
.null-tape span { padding: 13px 30px; white-space: nowrap; font: 800 .74rem/1 ui-monospace, monospace; letter-spacing: .11em; text-transform: uppercase; }
.null-tape span::after { content: "[   ]"; margin-left: 30px; color: var(--mint); }
@keyframes tape { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .null-tape-track { animation: none; } * { transition-duration: .01ms !important; } }

.query-section { padding: clamp(72px, 10vw, 138px) 0; background: var(--white); }
.white-section { background: var(--white); }
.dark-rail { color: var(--paper); background: var(--ink); }
.query-shell { border-block: 1px solid var(--ink); }
.query-step { display: grid; grid-template-columns: 190px minmax(0, 1fr); border-bottom: 1px solid var(--line); }
.query-step:last-child { border-bottom: 0; }
.query-label { padding: 28px 22px; border-right: 1px solid var(--ink); font: 800 .72rem/1.35 ui-monospace, monospace; letter-spacing: .09em; text-transform: uppercase; }
.query-label b { display: block; margin-bottom: 8px; color: var(--violet); font-size: 1rem; }
.query-body { padding: 24px clamp(20px, 4vw, 48px); }
.choice-line { display: flex; flex-wrap: wrap; gap: 9px; }
.choice {
  padding: 10px 13px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--ink);
  cursor: pointer;
  font-weight: 750;
  font-size: .87rem;
}
.choice:hover, .choice:focus-visible, .choice[aria-pressed="true"] { color: var(--ink); background: var(--mint); }
.query-output { min-height: 104px; color: var(--paper); background: var(--ink); }
.query-output strong { display: block; color: var(--mint); font-size: var(--step-1); }
.query-output[data-state="complete"] strong { color: var(--mint); }
.query-output[data-state="incomplete"] strong { color: var(--orange); }

.null-classifier { padding: clamp(74px, 10vw, 140px) 0; color: var(--paper); background: var(--ink); }
.classifier-rail { border-top: 1px solid var(--line-dark); }
.scenario-row { display: grid; grid-template-columns: minmax(210px, .72fr) minmax(420px, 1.28fr); border-bottom: 1px solid var(--line-dark); }
.scenario-prompt { padding: 30px 28px 30px 0; color: #ccd2df; }
.scenario-prompt strong { display: block; margin-bottom: 7px; color: var(--paper); font-size: var(--step-1); }
.scenario-actions { display: grid; grid-template-columns: repeat(4, 1fr); border-left: 1px solid var(--line-dark); }
.scenario-actions button { min-height: 100%; padding: 20px 12px; color: var(--paper); background: transparent; border: 0; border-right: 1px solid var(--line-dark); cursor: pointer; font-size: .76rem; font-weight: 800; text-transform: uppercase; }
.scenario-actions button:last-child { border-right: 0; }
.scenario-actions button:hover, .scenario-actions button:focus-visible { color: var(--ink); background: var(--mint); }
.scenario-feedback { grid-column: 1 / -1; padding: 0 0 20px; color: var(--mint); font: 700 .84rem/1.45 ui-monospace, monospace; }

.resource-section { padding: clamp(78px, 10vw, 140px) 0; }
.resource-list { border-top: 2px solid var(--ink); }
.resource-row { display: grid; grid-template-columns: 72px minmax(0, 1fr) minmax(180px, .55fr) 62px; align-items: center; min-height: 112px; border-bottom: 1px solid var(--ink); text-decoration: none; }
.resource-row:hover, .resource-row:focus-visible { background: var(--mint); }
.resource-no { font: 800 .7rem/1 ui-monospace, monospace; letter-spacing: .1em; }
.resource-row h3 { margin: 0; max-width: 28ch; font-size: var(--step-1); line-height: 1.1; }
.resource-row p { margin: 0; color: #525a6a; font-size: .88rem; }
.resource-row .arrow { justify-self: end; font-size: 1.7rem; }

.join-section { padding: clamp(78px, 10vw, 132px) 0; background: var(--white); }
.join-grid { display: grid; grid-template-columns: minmax(270px, .7fr) minmax(0, 1.3fr); gap: clamp(40px, 9vw, 130px); align-items: start; }
.join-visual { position: sticky; top: calc(var(--header) + 28px); margin: 0; }
.join-visual img { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; background: #dfe3dd; }
.join-visual figcaption { padding: 13px 0; color: var(--quiet); font: 700 .7rem/1.45 ui-monospace, monospace; }
.join-controls { border-top: 1px solid var(--ink); }
.join-field { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 20px; padding: 21px 0; border-bottom: 1px solid var(--line); }
.join-field label { font: 800 .7rem/1.4 ui-monospace, monospace; letter-spacing: .1em; text-transform: uppercase; }
.join-field select { width: 100%; padding: 11px; color: var(--ink); background: transparent; border: 1px solid var(--ink); border-radius: 0; }
.join-result { margin-top: 22px; padding: 22px; border-left: 9px solid var(--orange); background: var(--ink); color: var(--paper); }
.join-result strong { color: var(--orange); }
.join-result.is-valid { border-color: var(--mint); }
.join-result.is-valid strong { color: var(--mint); }

.topic-rows { padding: clamp(78px, 10vw, 140px) 0; color: var(--paper); background: var(--violet); }
.topic-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) minmax(220px, .8fr); gap: 30px; padding: 34px 0; border-top: 1px solid rgba(255,255,255,.38); align-items: baseline; }
.topic-row:last-child { border-bottom: 1px solid rgba(255,255,255,.38); }
.topic-code { font: 800 .72rem/1 ui-monospace, monospace; letter-spacing: .1em; }
.topic-row h3 { margin: 0; font-size: var(--step-2); line-height: 1.05; }
.topic-row p { margin: 0; color: #e0dcff; }

.boundary { padding: clamp(74px, 11vw, 150px) 0; color: var(--paper); background: var(--ink); }
.boundary-grid { display: grid; grid-template-columns: minmax(260px, .8fr) minmax(340px, 1.2fr); gap: clamp(48px, 9vw, 140px); }
.boundary h2 { margin: 0; max-width: 9ch; font-size: var(--step-3); line-height: .98; }
.boundary-lines { border-top: 1px solid var(--line-dark); }
.boundary-line { display: grid; grid-template-columns: 26px 1fr; gap: 20px; padding: 21px 0; border-bottom: 1px solid var(--line-dark); }
.boundary-line::before { content: "×"; color: var(--orange); font-weight: 900; }

.operator-band { padding: clamp(62px, 8vw, 110px) 0; background: var(--mint); }
.operator-grid { display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(34px, 8vw, 110px); }
.operator-grid h2 { margin: 0; max-width: 12ch; font-size: var(--step-2); line-height: 1.03; }
.operator-grid p { margin: 0 0 14px; }
.operator-facts { margin: 25px 0 0; padding: 0; border-top: 1px solid var(--ink); }
.operator-facts div { display: grid; grid-template-columns: 170px 1fr; padding: 10px 0; border-bottom: 1px solid rgba(11,16,33,.38); }
.operator-facts dt { font: 800 .69rem/1.5 ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; }
.operator-facts dd { margin: 0; }

.lead-section { padding: clamp(78px, 11vw, 146px) 0; background: var(--paper); }
.lead-grid { display: grid; grid-template-columns: minmax(240px, .8fr) minmax(360px, 1.2fr); gap: clamp(42px, 9vw, 130px); }
.lead-grid h2 { margin: 0; max-width: 10ch; font-size: var(--step-3); line-height: .98; }
.email-form { border-top: 2px solid var(--ink); }
.form-label { display: block; margin: 20px 0 9px; font-weight: 800; }
.email-line { display: grid; grid-template-columns: 1fr auto; border: 1px solid var(--ink); background: var(--white); }
.email-line input { min-width: 0; padding: 17px; border: 0; color: var(--ink); background: transparent; }
.email-line input:focus { outline: 3px solid var(--violet); outline-offset: -3px; }
.email-line button { min-width: 170px; padding: 12px 18px; border: 0; color: var(--paper); background: var(--ink); cursor: pointer; font-weight: 850; text-transform: uppercase; letter-spacing: .06em; }
.email-line button:hover, .email-line button:focus-visible { color: var(--ink); background: var(--mint); }
.email-line button:disabled { cursor: wait; opacity: .72; }
.form-note { margin: 13px 0 0; color: #555e70; font-size: .82rem; }
.form-note a { font-weight: 700; }
.form-status { min-height: 25px; margin-top: 12px; font-weight: 750; }
.form-status.is-error { color: #a02515; }
.form-status.is-ok { color: #12613d; }
.hp-field { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; }

.page-hero { padding: clamp(72px, 10vw, 134px) 0 clamp(56px, 8vw, 96px); border-bottom: 1px solid var(--ink); }
.page-hero-grid { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: clamp(30px, 7vw, 95px); }
.page-code { padding-top: 12px; font: 800 .72rem/1.5 ui-monospace, monospace; letter-spacing: .12em; text-transform: uppercase; }
.page-code span { display: block; color: var(--violet); }
.page-hero h1 { margin: 0; max-width: 14ch; font-size: var(--step-4); line-height: .9; letter-spacing: -.065em; }
.page-hero .lede { margin: 28px 0 0; }
.page-hero .status-line { display: inline-flex; gap: 10px; margin-top: 24px; padding: 9px 12px; background: var(--mint); font: 800 .7rem/1.2 ui-monospace, monospace; text-transform: uppercase; }

.article-shell { display: grid; grid-template-columns: minmax(220px, .34fr) minmax(0, .66fr); gap: clamp(44px, 9vw, 130px); padding: clamp(64px, 9vw, 124px) 0; }
.article-aside { align-self: start; position: sticky; top: calc(var(--header) + 28px); }
.article-aside .unknown { display: block; margin-bottom: 20px; color: var(--orange); font: 900 var(--step-2)/1 ui-monospace, monospace; }
.article-aside nav { border-top: 1px solid var(--ink); }
.article-aside nav a { display: block; padding: 11px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: .82rem; }
.article-aside nav a:hover, .article-aside nav a:focus-visible { color: var(--violet); }
.prose { max-width: 760px; }
.prose h2 { margin: 2.6em 0 .55em; font-size: var(--step-2); line-height: 1.06; letter-spacing: -.035em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 2em 0 .5em; font-size: var(--step-1); line-height: 1.15; }
.prose p { margin: 0 0 1.15em; }
.prose ul, .prose ol { margin: 0 0 1.4em; padding-left: 1.25em; }
.prose li { margin: .45em 0; }
.definition { margin: 30px 0; padding: 25px 28px; color: var(--paper); background: var(--ink); border-left: 10px solid var(--violet); }
.definition strong { display: block; margin-bottom: 7px; color: var(--mint); font: 800 .74rem/1.2 ui-monospace, monospace; text-transform: uppercase; letter-spacing: .1em; }
.example { margin: 30px 0; padding: 24px 0; border-block: 1px solid var(--ink); }
.example::before { content: "EXEMPLU IPOTETIC"; display: block; margin-bottom: 10px; color: var(--violet); font: 800 .69rem/1 ui-monospace, monospace; letter-spacing: .12em; }
.checklist { margin: 32px 0; border-top: 2px solid var(--ink); }
.checklist li { list-style: none; margin: 0; padding: 14px 0 14px 36px; border-bottom: 1px solid var(--line); position: relative; }
.checklist li::before { content: "[ ]"; position: absolute; left: 0; color: var(--violet); font: 800 .8rem/1.7 ui-monospace, monospace; }
.source-note { padding: 20px; background: #e2e5de; font-size: .86rem; }

.legal-index { padding: clamp(64px, 9vw, 118px) 0; }
.legal-index-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.legal-link { min-height: 170px; padding: 25px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); text-decoration: none; }
.legal-link:nth-child(2n) { border-right: 0; }
.legal-link:hover, .legal-link:focus-visible { background: var(--mint); }
.legal-link small { font: 800 .68rem/1 ui-monospace, monospace; letter-spacing: .1em; }
.legal-link h2 { margin: 27px 0 0; font-size: var(--step-1); }

.faq-list { border-top: 2px solid var(--ink); }
.faq-item { border-bottom: 1px solid var(--ink); }
.faq-item h2 { margin: 0; }
.faq-item button { width: 100%; display: grid; grid-template-columns: 1fr 28px; gap: 18px; padding: 22px 0; text-align: left; color: var(--ink); background: transparent; border: 0; cursor: pointer; font-weight: 800; }
.faq-item button::after { content: "+"; color: var(--violet); font-size: 1.4rem; line-height: 1; }
.faq-item button[aria-expanded="true"]::after { content: "−"; }
.faq-answer { max-width: 790px; padding: 0 0 24px; color: #4c5465; }

.site-footer { color: var(--paper); background: var(--ink); border-top: 1px solid var(--line-dark); }
.footer-grid { display: grid; grid-template-columns: minmax(240px, .8fr) minmax(0, 1.2fr); gap: clamp(42px, 9vw, 130px); padding: 64px 0; }
.footer-brand { max-width: 45ch; }
.footer-brand strong { display: block; margin-bottom: 12px; font-size: var(--step-1); }
.footer-brand p { color: #aab2c4; font-size: .83rem; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-links small { display: block; margin-bottom: 12px; color: var(--mint); font: 800 .67rem/1 ui-monospace, monospace; letter-spacing: .12em; }
.footer-links a { display: block; margin: 7px 0; color: #d1d6e2; font-size: .79rem; text-decoration: none; }
.footer-links a:hover, .footer-links a:focus-visible { color: var(--mint); text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; gap: 25px; padding: 18px 0; border-top: 1px solid var(--line-dark); color: #929bad; font: 700 .68rem/1.45 ui-monospace, monospace; }

.notice { padding: 16px 18px; color: var(--paper); background: var(--ink); border-left: 8px solid var(--orange); }
.proposal-banner { padding: 13px 18px; color: var(--ink); background: var(--orange); font-weight: 800; text-align: center; }
.sitemap-list { columns: 2; column-gap: 50px; padding: 0; list-style: none; }
.sitemap-list li { break-inside: avoid; padding: 10px 0; border-bottom: 1px solid var(--line); }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
@media (max-width: 900px) {
  :root { --header: 70px; }
  .site-head { grid-template-columns: 1fr auto; }
  .head-mode { display: none; }
  .brand { padding-inline: 18px; }
  .menu-toggle { min-width: 112px; padding-inline: 14px; }
  .menu-inner { grid-template-columns: 1fr 1fr; align-content: start; }
  .menu-inner > :first-child { grid-column: 1 / -1; }
  .null-hero { grid-template-columns: 1fr; }
  .hero-copy { min-height: 72svh; }
  .hero-visual { min-height: 58svh; }
  .section-head, .join-grid, .boundary-grid, .operator-grid, .lead-grid, .article-shell, .footer-grid { grid-template-columns: 1fr; }
  .join-visual, .article-aside { position: static; }
  .scenario-row { grid-template-columns: 1fr; }
  .scenario-actions { border-left: 0; border-top: 1px solid var(--line-dark); }
  .topic-row { grid-template-columns: 110px 1fr; }
  .topic-row p { grid-column: 2; }
}

@media (max-width: 640px) {
  :root { --header: 64px; }
  .brand-copy strong { font-size: .72rem; }
  .brand-copy small { display: none; }
  .brand-mark { width: 29px; height: 29px; }
  .menu-toggle { min-width: 86px; font-size: 0; gap: 0; }
  .menu-toggle .menu-icon { width: 30px; }
  .menu-inner { width: calc(100% - 30px); grid-template-columns: 1fr; gap: 32px; padding-top: 34px; }
  .menu-inner > :first-child { grid-column: auto; }
  .menu-panel h2 { max-width: 11ch; }
  .hero-copy { min-height: 74svh; padding-inline: 20px; }
  .hero-title { max-width: 10.7ch; }
  .hero-actions { display: grid; }
  .button { width: 100%; }
  .hero-visual { min-height: 430px; }
  .hero-caption { width: 91%; }
  .query-step { grid-template-columns: 1fr; }
  .query-label { border-right: 0; border-bottom: 1px solid var(--ink); }
  .scenario-actions { grid-template-columns: repeat(2, 1fr); }
  .scenario-actions button:nth-child(2) { border-right: 0; }
  .scenario-actions button:nth-child(-n+2) { border-bottom: 1px solid var(--line-dark); }
  .resource-row { grid-template-columns: 48px 1fr 35px; min-height: 100px; }
  .resource-row p { display: none; }
  .join-field { grid-template-columns: 1fr; gap: 8px; }
  .topic-row { grid-template-columns: 1fr; gap: 10px; }
  .topic-row p { grid-column: auto; }
  .operator-facts div { grid-template-columns: 1fr; gap: 3px; }
  .email-line { grid-template-columns: 1fr; }
  .email-line button { min-height: 52px; }
  .page-hero-grid { grid-template-columns: 1fr; }
  .page-code { padding-top: 0; }
  .legal-index-grid { grid-template-columns: 1fr; }
  .legal-link { border-right: 0; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .footer-bottom { display: grid; }
  .sitemap-list { columns: 1; }
}

@media print {
  .site-head, .menu-panel, .null-tape, .hero-actions, .lead-section, .site-footer { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .page-hero, .article-shell { padding: 25px 0; }
  a { text-decoration: none; }
  .article-aside { display: none; }
  .article-shell { display: block; }
}
