:root {
  --pg-cream: #fefffc;
  --pg-parchment: #f2f0eb;
  --pg-linen: #f9faf7;
  --pg-paper: #ffffff;

  --pg-ink: #171717;
  --pg-carbon: #2c2c2c;
  --pg-graphite: #666666;
  --pg-steel: #646464;
  --pg-sage: #dee2de;
  --pg-fog: #e3e3e2;

  --pg-night: #07101d;
  --pg-night-2: #101722;
  --pg-graphite-night: #282834;

  --pg-blue: #0081c0;
  --pg-blue-soft: #41a1cf;
  --pg-crystal: #7fd8ff;
  --pg-deep-blue: #0b4d93;

  --pg-gold: #d7b66a;
  --pg-gold-soft: #f1d892;
  --pg-bronze: #9b6f35;

  --pg-danger: #b42318;
  --pg-warning: #b45309;
  --pg-success: #047857;

  --pg-max: 1200px;
  --pg-border: rgba(23, 23, 23, .12);
  --pg-border-strong: rgba(23, 23, 23, .22);
  --pg-shadow: 0 24px 70px rgba(23, 23, 23, .09);
  --pg-shadow-small: 0 12px 28px rgba(23, 23, 23, .08);
  --font-display: "Source Serif 4", "Newsreader", "Lora", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--pg-cream); }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--pg-ink);
  background:
    radial-gradient(circle at 8% 18%, rgba(215, 182, 106, .1), transparent 26rem),
    linear-gradient(180deg, var(--pg-cream), var(--pg-linen) 52%, var(--pg-parchment));
  line-height: 1.58;
  overflow-x: hidden;
}
body::selection { background: var(--pg-gold-soft); color: var(--pg-ink); }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--pg-deep-blue); }
img { display: block; max-width: 100%; height: auto; }
p, figure { margin: 0; }
h1, h2, h3 { margin: 0; letter-spacing: 0; }
h1, h2 { font-family: var(--font-display); font-weight: 600; line-height: 1.02; text-wrap: balance; }
h1 { max-width: 790px; font-size: clamp(2.7rem, 5.7vw, 5.05rem); }
h2 { max-width: 920px; font-size: clamp(2.12rem, 4.2vw, 3.7rem); }
h3 { font-size: 1.25rem; line-height: 1.22; text-wrap: balance; }
button, input { font: inherit; }
button { cursor: pointer; }

.skip-link {
  position: fixed;
  left: -999px;
  top: 1rem;
  z-index: 1000;
  background: var(--pg-gold-soft);
  color: var(--pg-ink);
  padding: .72rem 1rem;
  border-radius: 8px;
}
.skip-link:focus { left: 1rem; }

.site-header {
  position: fixed;
  z-index: 90;
  top: 18px;
  left: 0;
  width: 100%;
  pointer-events: none;
}
.nav-shell {
  width: fit-content;
  max-width: calc(100vw - 24px);
  min-height: 58px;
  margin: 0 auto;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #282834;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  box-shadow: 0 18px 54px rgba(7, 16, 29, .22), 0 2px 8px rgba(0, 0, 0, .18);
  pointer-events: auto;
}
.brand-mark { flex: 0 0 auto; display: flex; align-items: center; }
.brand-mark img { width: 138px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 2px; }
.site-nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .54rem .68rem;
  border-radius: 999px;
  color: rgba(255, 255, 255, .74);
  font-size: .82rem;
  font-weight: 600;
  white-space: nowrap;
}
.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active {
  color: #fff;
  background: rgba(255, 255, 255, .09);
  outline: none;
}
.site-nav .nav-cta {
  margin-left: 5px;
  color: var(--pg-ink);
  background: var(--pg-gold-soft);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .42);
}
.site-nav .nav-cta:hover,
.site-nav .nav-cta:focus-visible { color: var(--pg-ink); background: #ffe7a5; }
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  padding: 9px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 2px;
  background: #fff;
}

.home-hero {
  min-height: 94vh;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 64% 48%, rgba(127, 216, 255, .22), transparent 30rem),
    radial-gradient(circle at 72% 51%, rgba(241, 216, 146, .18), transparent 18rem),
    linear-gradient(125deg, #07101d 0%, #0b182c 42%, #111a29 70%, #07101d 100%);
}
.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(105deg, transparent 0 42px, rgba(255,255,255,.035) 42px 43px, transparent 43px 96px),
    radial-gradient(circle at 16% 22%, rgba(255,255,255,.65) 0 1px, transparent 1.5px),
    radial-gradient(circle at 28% 54%, rgba(255,255,255,.35) 0 1px, transparent 1.5px),
    radial-gradient(circle at 84% 26%, rgba(255,255,255,.5) 0 1px, transparent 1.5px);
  opacity: .58;
  z-index: -3;
}
.home-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 20vh;
  background: linear-gradient(180deg, transparent, var(--pg-cream));
  z-index: 3;
}
.hero-atmosphere {
  position: absolute;
  inset: -18% -10% -10%;
  z-index: -2;
  background:
    conic-gradient(from 230deg at 65% 48%, rgba(127,216,255,.24), rgba(215,182,106,.2), rgba(7,16,29,0), rgba(65,161,207,.2), rgba(127,216,255,.24)),
    linear-gradient(160deg, rgba(255,255,255,.08), transparent 44%);
  mix-blend-mode: screen;
  opacity: .82;
}
.portal-symbol {
  position: absolute;
  z-index: -1;
  right: max(-160px, calc((100vw - var(--pg-max)) / 2 - 210px));
  top: 50%;
  width: min(68vw, 850px);
  aspect-ratio: 1;
  transform: translateY(-48%);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 250, 204, .82) 0 4%, rgba(241, 216, 146, .34) 5% 12%, rgba(0, 129, 192, .16) 13% 26%, rgba(7, 16, 29, .18) 27% 45%, transparent 46%),
    repeating-conic-gradient(from 11deg, rgba(127,216,255,.34) 0 8deg, rgba(0,129,192,.14) 8deg 18deg, rgba(11,77,147,.28) 18deg 29deg, rgba(215,182,106,.16) 29deg 35deg);
  opacity: .8;
  filter: drop-shadow(0 0 90px rgba(127,216,255,.28));
  mask-image: radial-gradient(circle, transparent 0 20%, #000 21% 58%, transparent 61%);
}
.portal-ring {
  position: absolute;
  inset: 15%;
  border: 1px solid rgba(127, 216, 255, .38);
  border-radius: 50%;
}
.ring-two { inset: 25%; border-color: rgba(215, 182, 106, .38); border-style: dashed; }
.portal-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 11%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%) rotate(45deg);
  background: radial-gradient(circle, #fff8c9, var(--pg-gold-soft) 44%, var(--pg-bronze));
  box-shadow: 0 0 80px rgba(241, 216, 146, .46);
}
.hero-content {
  width: min(var(--pg-max), calc(100% - 32px));
  min-height: 94vh;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 124px 0 86px;
  position: relative;
  z-index: 5;
}
.hero-card {
  width: min(610px, 100%);
  padding: clamp(2rem, 4vw, 2.5rem);
  border-radius: 24px;
  color: #fff;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .25);
  backdrop-filter: blur(18px);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .28);
}
.hero-card p {
  max-width: 590px;
  margin-top: 20px;
  color: rgba(255, 255, 255, .86);
  font-size: 1.08rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}
.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: .78rem 1.1rem;
  font-weight: 700;
  line-height: 1;
}
.btn.primary {
  color: var(--pg-ink);
  background: var(--pg-gold-soft);
  box-shadow: 0 12px 32px rgba(215, 182, 106, .24);
}
.btn.secondary {
  color: var(--pg-ink);
  background: var(--pg-paper);
  border: 1px solid var(--pg-border);
}
.btn.outline-light {
  color: #fff;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.08);
}
.text-link {
  font-weight: 700;
  border-bottom: 1px solid currentColor;
}
.light-link { color: rgba(255,255,255,.88); }
.micro-panel {
  position: absolute;
  z-index: 4;
  width: 178px;
  padding: 14px 16px;
  border-radius: 16px;
  color: #fff;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: blur(16px);
  box-shadow: 0 24px 58px rgba(0,0,0,.22);
}
.micro-panel span,
.eyebrow,
.card-kicker,
.section-label,
.panel-number {
  font-family: var(--font-mono);
  font-size: .76rem;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: uppercase;
}
.micro-panel span { color: rgba(255,255,255,.66); }
.micro-panel strong { display: block; margin-top: 6px; font-size: .92rem; }
.panel-risk { right: 21%; top: 24%; }
.panel-wiki { right: 8%; top: 54%; }
.panel-tool { right: 30%; bottom: 16%; }

.section {
  width: min(var(--pg-max), calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(68px, 9vw, 112px) 0;
}
.section-paper {
  width: 100%;
  max-width: none;
  padding-left: max(16px, calc((100vw - var(--pg-max)) / 2));
  padding-right: max(16px, calc((100vw - var(--pg-max)) / 2));
  background: rgba(242, 240, 235, .72);
  border-top: 1px solid var(--pg-border);
  border-bottom: 1px solid var(--pg-border);
}
.editorial-grid {
  width: min(var(--pg-max), calc(100vw - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: clamp(32px, 7vw, 96px);
  align-items: start;
}
.section-label {
  position: sticky;
  top: 96px;
  color: var(--pg-bronze);
  padding-top: 12px;
  border-top: 1px solid var(--pg-gold);
}
.editorial-copy h2 { max-width: 850px; }
.two-column-text {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  color: var(--pg-carbon);
  font-size: 1.07rem;
}
.section-head {
  max-width: 860px;
  margin-bottom: 34px;
}
.section-head p {
  max-width: 720px;
  margin-top: 16px;
  color: var(--pg-graphite);
  font-size: 1.05rem;
}
.eyebrow,
.card-kicker { display: inline-block; margin-bottom: 12px; color: var(--pg-bronze); }

.diagram-card,
.catalog-preview,
.paper-card,
.instrument-card,
.route-panel,
.checkpoint-panel {
  background: rgba(255, 255, 255, .82);
  border: 1px solid var(--pg-border);
  box-shadow: var(--pg-shadow-small);
}
.diagram-card {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: center;
  padding: clamp(24px, 4vw, 42px);
  border-radius: 20px;
}
.diagram-copy p { margin-top: 16px; color: var(--pg-graphite); }
.diagram-flow {
  display: grid;
  gap: 12px;
}
.diagram-flow span {
  min-height: 54px;
  display: flex;
  align-items: center;
  padding: 0 18px;
  border-left: 3px solid var(--pg-gold);
  background: linear-gradient(90deg, rgba(215,182,106,.16), rgba(127,216,255,.07));
  font-family: var(--font-mono);
  font-size: .82rem;
  font-weight: 600;
  color: var(--pg-carbon);
}

.route-panels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.route-panel {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  padding: 28px;
  border-radius: 18px;
}
.route-panel h3 { margin-top: 36px; font-size: 1.55rem; }
.route-panel p { margin-top: 14px; color: var(--pg-graphite); }
.route-panel nav {
  display: grid;
  gap: 10px;
  margin-top: auto;
  padding-top: 26px;
}
.route-panel nav a,
.related-links a {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--pg-border);
  font-weight: 700;
}
.route-panel nav a::after,
.related-links a::after { content: "→"; color: var(--pg-bronze); }
.panel-number { color: var(--pg-blue); }

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--pg-border);
  border-radius: 16px;
  background: var(--pg-paper);
  box-shadow: var(--pg-shadow-small);
}
table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}
th, td {
  padding: 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--pg-border);
}
th {
  font-family: var(--font-mono);
  font-size: .76rem;
  text-transform: uppercase;
  color: var(--pg-steel);
  background: var(--pg-linen);
}
td { color: var(--pg-carbon); }
tr:last-child td { border-bottom: 0; }
td a { font-weight: 700; color: var(--pg-deep-blue); }

.catalog-preview {
  border-radius: 20px;
  padding: 18px;
}
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--pg-border);
}
.filter-bar button {
  border: 1px solid var(--pg-border);
  border-radius: 999px;
  padding: .62rem .82rem;
  background: var(--pg-linen);
  color: var(--pg-carbon);
  font-family: var(--font-mono);
  font-size: .74rem;
  font-weight: 600;
}
.filter-bar button.is-active {
  color: #fff;
  background: var(--pg-night-2);
  border-color: var(--pg-night-2);
}
.catalog-rows { display: grid; }
.catalog-row {
  display: grid;
  grid-template-columns: 130px minmax(150px, .7fr) minmax(220px, 1.2fr) 150px;
  gap: 16px;
  align-items: center;
  padding: 18px 6px;
  border-bottom: 1px solid var(--pg-border);
}
.catalog-row:last-child { border-bottom: 0; }
.catalog-row span,
.catalog-row em {
  font-family: var(--font-mono);
  font-size: .74rem;
  color: var(--pg-steel);
  font-style: normal;
}
.catalog-row strong { font-size: 1.02rem; }
.catalog-row p { color: var(--pg-graphite); }
.catalog-row em {
  justify-self: start;
  padding: .42rem .55rem;
  border-radius: 999px;
  background: var(--pg-parchment);
  color: var(--pg-bronze);
}

.tool-panels,
.paper-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.instrument-card,
.paper-card {
  border-radius: 18px;
  padding: 24px;
}
.instrument-card h3,
.paper-card h3 { margin-bottom: 12px; }
.paper-card p,
.instrument-card p { color: var(--pg-graphite); }
.mock-inputs {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}
.mock-inputs label {
  display: grid;
  gap: 6px;
  color: var(--pg-steel);
  font-family: var(--font-mono);
  font-size: .75rem;
}
.mock-inputs input {
  width: 100%;
  border: 1px solid var(--pg-border);
  border-radius: 10px;
  padding: .74rem .78rem;
  color: var(--pg-ink);
  background: var(--pg-linen);
}
.instrument-card output {
  display: block;
  margin-top: 16px;
  padding: 16px;
  border-radius: 12px;
  background: var(--pg-night-2);
  color: var(--pg-gold-soft);
  font-family: var(--font-mono);
  font-weight: 600;
}
.check-list {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.check-list li {
  padding-left: 28px;
  position: relative;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--pg-danger);
}
.fee-stack {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}
.fee-stack span {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--pg-border);
  color: var(--pg-graphite);
}
.fee-stack b {
  font-family: var(--font-mono);
  color: var(--pg-deep-blue);
}

.checkpoint-section {
  width: 100%;
  max-width: none;
  padding-left: max(16px, calc((100vw - var(--pg-max)) / 2));
  padding-right: max(16px, calc((100vw - var(--pg-max)) / 2));
  background:
    radial-gradient(circle at 78% 40%, rgba(127,216,255,.15), transparent 28rem),
    linear-gradient(135deg, var(--pg-night), var(--pg-night-2));
}
.checkpoint-panel {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 30px;
  align-items: start;
  max-width: var(--pg-max);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 48px);
  border-radius: 22px;
  color: #fff;
  background: rgba(255,255,255,.09);
  border-color: rgba(255,255,255,.16);
  box-shadow: 0 28px 90px rgba(0,0,0,.24);
}
.checkpoint-panel h2 { color: #fff; }
.checkpoint-panel p {
  color: rgba(255,255,255,.82);
  font-size: clamp(1.25rem, 2vw, 1.62rem);
  line-height: 1.45;
}

.route-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--pg-border);
}
.route-list li {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 22px;
  padding: 24px 0;
  border-bottom: 1px solid var(--pg-border);
}
.route-list span {
  font-family: var(--font-mono);
  color: var(--pg-bronze);
}
.route-list strong { display: block; margin-bottom: 6px; font-size: 1.05rem; }
.route-list p { color: var(--pg-graphite); }

.page-hero {
  position: relative;
  overflow: hidden;
  min-height: 480px;
  padding: 134px 0 72px;
  background:
    radial-gradient(circle at 82% 30%, rgba(127,216,255,.14), transparent 22rem),
    radial-gradient(circle at 14% 22%, rgba(215,182,106,.16), transparent 22rem),
    linear-gradient(180deg, var(--pg-cream), var(--pg-parchment));
  border-bottom: 1px solid var(--pg-border);
}
.page-hero-symbol {
  position: absolute;
  right: max(-160px, calc((100vw - var(--pg-max)) / 2 - 190px));
  top: 76px;
  width: min(52vw, 560px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(241,216,146,.28) 0 7%, transparent 8% 20%, rgba(127,216,255,.14) 21% 38%, transparent 40%),
    repeating-conic-gradient(from 18deg, rgba(0,129,192,.08) 0 12deg, rgba(215,182,106,.08) 12deg 18deg, transparent 18deg 34deg);
  opacity: .75;
  pointer-events: none;
  mask-image: radial-gradient(circle, transparent 0 22%, #000 23% 58%, transparent 60%);
}
.page-hero-inner {
  width: min(var(--pg-max), calc(100% - 32px));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.page-hero-copy {
  max-width: 860px;
}
.page-hero-copy p {
  max-width: 720px;
  margin-top: 20px;
  color: var(--pg-carbon);
  font-size: clamp(1.05rem, 1.8vw, 1.24rem);
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--pg-steel);
  font-size: .86rem;
}
.breadcrumb a { color: var(--pg-deep-blue); font-weight: 700; }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.hero-meta span {
  border: 1px solid var(--pg-border);
  border-radius: 999px;
  padding: .46rem .64rem;
  background: rgba(255,255,255,.66);
  color: var(--pg-steel);
  font-family: var(--font-mono);
  font-size: .72rem;
}

.risk {
  display: inline-flex;
  border-radius: 999px;
  padding: .36rem .52rem;
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 600;
}
.risk.high { color: #fff; background: var(--pg-danger); }
.risk.medium { color: #fff; background: var(--pg-warning); }
.risk.low { color: #fff; background: var(--pg-success); }

.faq-list {
  display: grid;
  gap: 12px;
}
.faq-item {
  border: 1px solid var(--pg-border);
  border-radius: 14px;
  background: rgba(255,255,255,.78);
  box-shadow: 0 8px 22px rgba(23,23,23,.04);
}
.faq-item summary {
  list-style: none;
  padding: 18px 20px;
  cursor: pointer;
  font-weight: 700;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p {
  padding: 0 20px 20px;
  color: var(--pg-graphite);
}
.related-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px 22px;
}

.site-footer {
  background: var(--pg-night);
  color: rgba(255,255,255,.76);
  padding: 56px max(16px, calc((100vw - var(--pg-max)) / 2)) 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.05fr 1.2fr .75fr;
  gap: 44px;
}
.footer-brand img { width: 168px; margin-bottom: 18px; }
.footer-brand p { max-width: 360px; }
.footer-links {
  display: grid;
  gap: 10px;
}
.footer-links a { color: rgba(255,255,255,.72); }
.footer-links a:hover { color: var(--pg-gold-soft); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.56);
  font-size: .9rem;
}

.reveal {
  opacity: 1;
  transform: none;
}

@media (max-width: 1020px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(320px, calc(100vw - 32px));
    display: none;
    padding: 12px;
    border-radius: 22px;
    background: #282834;
    box-shadow: 0 18px 54px rgba(7, 16, 29, .28);
  }
  .site-nav.is-open { display: grid; }
  .site-nav a { justify-content: flex-start; }
  .site-nav .nav-cta { margin-left: 0; justify-content: center; }
  .portal-symbol { right: -250px; width: 720px; opacity: .58; }
  .micro-panel { display: none; }
  .route-panels,
  .tool-panels,
  .paper-grid,
  .footer-grid,
  .checkpoint-panel,
  .diagram-card { grid-template-columns: 1fr; }
  .route-panel { min-height: auto; }
  .catalog-row { grid-template-columns: 1fr; gap: 7px; }
  .related-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .editorial-grid { grid-template-columns: 1fr; gap: 22px; }
  .section-label { position: static; }
}

@media (max-width: 640px) {
  h1 { font-size: clamp(2.62rem, 13vw, 3.25rem); line-height: 1.02; }
  h2 { font-size: clamp(2.05rem, 10vw, 2.62rem); }
  .nav-shell { min-height: 54px; padding: 7px; }
  .brand-mark img { width: 124px; }
  .home-hero,
  .hero-content { min-height: 88vh; }
  .hero-content { padding-top: 104px; align-items: flex-end; }
  .hero-card { padding: 24px; border-radius: 20px; }
  .hero-actions { align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .portal-symbol { top: 36%; right: -270px; width: 660px; opacity: .5; }
  .two-column-text { grid-template-columns: 1fr; }
  .section { width: min(var(--pg-max), calc(100% - 28px)); padding: 62px 0; }
  .section-paper,
  .checkpoint-section,
  .site-footer { padding-left: 14px; padding-right: 14px; }
  .page-hero { min-height: 430px; padding-top: 112px; }
  .route-list li { grid-template-columns: 54px minmax(0, 1fr); gap: 14px; }
  .related-links { grid-template-columns: 1fr; }
  .footer-bottom { display: grid; }
}

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