: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-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-border: rgba(23, 23, 23, .12);
  --pg-border-strong: rgba(23, 23, 23, .2);
  --pg-shadow-soft: 0 22px 70px rgba(23, 23, 23, .09);
  --pg-shadow-paper: 0 16px 40px rgba(44, 44, 44, .08);
  --font-display: "Source Serif 4", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  --container: 1180px;
}

* { 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:
    linear-gradient(180deg, var(--pg-cream) 0%, var(--pg-linen) 36%, var(--pg-parchment) 100%);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--pg-deep-blue); }
img { display: block; max-width: 100%; height: auto; }
p { margin: 0; }
h1, h2, h3 { margin: 0; letter-spacing: 0; }
h1, h2 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1;
}
h1 {
  max-width: 760px;
  font-size: clamp(3.15rem, 6.4vw, 5.25rem);
}
h2 {
  font-size: clamp(2.35rem, 4.5vw, 4.45rem);
  max-width: 880px;
}
h3 {
  font-size: 1.2rem;
  line-height: 1.2;
}
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: 80;
  top: 18px;
  left: 0;
  width: 100%;
  pointer-events: none;
}
.nav-shell {
  position: relative;
  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: var(--pg-graphite-night);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 999px;
  box-shadow: rgba(0, 0, 0, .15) 0 2px 6px, 0 18px 50px rgba(7, 16, 29, .18);
  pointer-events: auto;
}
.brand-mark {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}
.brand-mark img {
  width: 146px;
  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: .56rem .68rem;
  border-radius: 999px;
  color: rgba(255, 255, 255, .72);
  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, .08);
  outline: none;
}
.site-nav .nav-cta {
  margin-left: 4px;
  color: var(--pg-ink);
  background: var(--pg-gold-soft);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45);
}
.site-nav .nav-cta:hover,
.site-nav .nav-cta:focus-visible {
  color: var(--pg-ink);
  background: #ffe8a6;
}
.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: 92vh;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 63% 47%, rgba(127, 216, 255, .24), transparent 28%),
    linear-gradient(125deg, #07101d 0%, #0b182c 46%, #132338 68%, #07101d 100%);
}
.home-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 24vh;
  background: linear-gradient(180deg, transparent, rgba(7, 16, 29, .64) 46%, var(--pg-cream));
  pointer-events: none;
  z-index: 4;
}
.hero-sky,
.hero-stars,
.hero-ridges {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-sky {
  z-index: 0;
  background:
    linear-gradient(110deg, rgba(241, 216, 146, .14), transparent 24% 62%, rgba(0, 129, 192, .18)),
    conic-gradient(from 210deg at 64% 52%, rgba(127, 216, 255, .24), rgba(215, 182, 106, .16), rgba(7, 16, 29, .1), rgba(65, 161, 207, .18));
  mix-blend-mode: screen;
  opacity: .78;
}
.hero-stars {
  z-index: 1;
  opacity: .42;
  background:
    radial-gradient(circle at 12% 18%, rgba(255,255,255,.74) 0 1px, transparent 1.5px),
    radial-gradient(circle at 28% 38%, rgba(255,255,255,.48) 0 1px, transparent 1.5px),
    radial-gradient(circle at 78% 20%, rgba(255,255,255,.65) 0 1px, transparent 1.5px),
    radial-gradient(circle at 88% 62%, rgba(255,255,255,.38) 0 1px, transparent 1.5px),
    repeating-linear-gradient(100deg, transparent 0 28px, rgba(255,255,255,.028) 28px 29px, transparent 29px 72px);
}
.hero-ridges {
  z-index: 2;
  opacity: .62;
  background:
    linear-gradient(166deg, transparent 0 56%, rgba(255, 255, 255, .08) 56.2%, transparent 56.6%),
    linear-gradient(154deg, transparent 0 66%, rgba(127, 216, 255, .13) 66.2%, transparent 66.7%),
    linear-gradient(16deg, transparent 0 73%, rgba(215, 182, 106, .13) 73.2%, transparent 73.7%);
}
.hero-content {
  position: relative;
  z-index: 5;
  width: min(var(--container), calc(100% - 32px));
  min-height: 92vh;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 122px 0 84px;
}
.hero-card {
  width: min(625px, 100%);
  padding: clamp(1.75rem, 4vw, 2.25rem);
  color: #fff;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 24px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .28);
  backdrop-filter: blur(18px);
}
.hero-card p {
  max-width: 590px;
  margin-top: 20px;
  color: rgba(255, 255, 255, .84);
  font-size: 1.08rem;
}
.hero-portal {
  position: absolute;
  z-index: 3;
  right: max(-80px, calc((100vw - var(--container)) / 2 - 132px));
  top: 50%;
  width: min(72vw, 880px);
  min-width: 560px;
  aspect-ratio: 1;
  transform: translateY(-49%);
  filter: drop-shadow(0 0 72px rgba(0, 129, 192, .45));
}
.portal-main {
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: portalFloat 9s ease-in-out infinite;
}
.glass-panel {
  position: absolute;
  width: 176px;
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 14px;
  background: rgba(7, 16, 29, .54);
  color: #fff;
  box-shadow: 0 16px 52px rgba(0, 0, 0, .26);
  backdrop-filter: blur(14px);
}
.glass-panel span {
  display: block;
  margin-bottom: 5px;
  color: var(--pg-crystal);
  font-family: var(--font-mono);
  font-size: .68rem;
  text-transform: uppercase;
}
.glass-panel strong {
  display: block;
  font-size: .9rem;
  line-height: 1.25;
}
.panel-risk { left: 11%; top: 20%; }
.panel-wiki { right: 5%; top: 38%; }
.panel-tools { left: 20%; bottom: 17%; width: 212px; }

.eyebrow,
.card-kicker,
.instrument-tag {
  display: inline-flex;
  align-items: center;
  margin-bottom: 14px;
  color: var(--pg-gold);
  font-family: var(--font-mono);
  font-size: .73rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}
.eyebrow.dark { color: var(--pg-bronze); }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}
.btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .78rem 1rem;
  border: 1px solid var(--pg-border);
  border-radius: 999px;
  font-weight: 700;
  color: var(--pg-ink);
  background: var(--pg-paper);
  box-shadow: var(--pg-shadow-paper);
}
.btn.primary {
  border-color: rgba(215, 182, 106, .7);
  background: linear-gradient(135deg, var(--pg-gold-soft), var(--pg-gold));
  color: #16120b;
}
.btn.outline-light {
  color: #fff;
  border-color: rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .06);
  box-shadow: none;
}
.btn.danger {
  color: #fff;
  border-color: rgba(180, 35, 24, .42);
  background: linear-gradient(135deg, #45120f, #7d2018);
}
.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
  outline: 2px solid rgba(215, 182, 106, .32);
  color: var(--pg-ink);
}
.btn.outline-light:hover,
.btn.outline-light:focus-visible,
.btn.danger:hover,
.btn.danger:focus-visible {
  color: #fff;
}
.text-link {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  color: var(--pg-deep-blue);
}
.text-link.light-link {
  color: rgba(255, 255, 255, .88);
}
.text-link:hover { color: var(--pg-bronze); }
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}
.hero-badges span,
.filter-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: .45rem .68rem;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  color: rgba(255, 255, 255, .82);
  background: rgba(255, 255, 255, .08);
  font-family: var(--font-mono);
  font-size: .72rem;
}

.editorial-section {
  position: relative;
  padding: clamp(72px, 8vw, 116px) 0;
  background: var(--pg-cream);
}
.editorial-section:nth-of-type(odd) {
  background: var(--pg-linen);
}
.section-inner {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}
.editorial-grid {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
}
.compact-grid { align-items: start; }
.section-label {
  position: sticky;
  top: 104px;
  color: var(--pg-bronze);
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
}
.editorial-copy p,
.section-heading p {
  max-width: 760px;
  margin-top: 18px;
  color: var(--pg-graphite);
  font-size: 1.04rem;
}
.two-column-text {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-top: 28px;
}
.system-diagram {
  grid-column: 2;
  min-height: 350px;
  position: relative;
  display: grid;
  place-items: center;
  padding: 36px;
  border: 1px solid rgba(11, 77, 147, .14);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .94), rgba(249, 250, 247, .78)),
    repeating-linear-gradient(90deg, rgba(11, 77, 147, .06) 0 1px, transparent 1px 58px);
  box-shadow: var(--pg-shadow-soft);
  overflow: hidden;
}
.system-diagram::before,
.system-diagram::after {
  content: "";
  position: absolute;
  inset: 38px;
  border: 1px solid rgba(0, 129, 192, .18);
  transform: rotate(3deg);
}
.system-diagram::after {
  inset: 62px;
  border-color: rgba(215, 182, 106, .34);
  transform: rotate(-5deg);
}
.diagram-node {
  position: relative;
  z-index: 2;
  width: 150px;
  height: 150px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: radial-gradient(circle, var(--pg-deep-blue), var(--pg-night));
  font-family: var(--font-mono);
  font-size: .82rem;
  text-align: center;
  box-shadow: 0 0 56px rgba(0, 129, 192, .24);
}
.diagram-ring {
  position: absolute;
  inset: 26px;
  z-index: 3;
}
.diagram-ring span {
  position: absolute;
  padding: .5rem .7rem;
  border: 1px solid rgba(11, 77, 147, .18);
  border-radius: 999px;
  background: var(--pg-paper);
  font-family: var(--font-mono);
  font-size: .74rem;
  box-shadow: var(--pg-shadow-paper);
}
.diagram-ring span:nth-child(1) { left: 8%; top: 16%; }
.diagram-ring span:nth-child(2) { right: 8%; top: 24%; }
.diagram-ring span:nth-child(3) { left: 14%; bottom: 20%; }
.diagram-ring span:nth-child(4) { right: 11%; bottom: 14%; }
.system-diagram p {
  position: relative;
  z-index: 4;
  align-self: end;
  max-width: 420px;
  color: var(--pg-graphite);
  text-align: center;
}

.map-section {
  background:
    linear-gradient(180deg, var(--pg-cream), var(--pg-parchment));
}
.section-heading {
  margin-bottom: 34px;
}
.gate-groups {
  display: grid;
  grid-template-columns: .92fr 1.16fr .92fr;
  gap: 16px;
  align-items: stretch;
}
.route-panel {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  padding: 26px;
  border: 1px solid rgba(23, 23, 23, .12);
  border-radius: 8px;
  background: rgba(255, 255, 255, .78);
  box-shadow: var(--pg-shadow-paper);
}
.featured-route {
  background:
    linear-gradient(150deg, rgba(7, 16, 29, .96), rgba(11, 77, 147, .84)),
    var(--pg-night);
  color: #fff;
  transform: translateY(-18px);
}
.panel-number {
  color: var(--pg-bronze);
  font-family: var(--font-mono);
  font-size: .74rem;
  font-weight: 600;
}
.featured-route .panel-number { color: var(--pg-gold-soft); }
.route-panel h3 {
  margin-top: 28px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 600;
}
.route-panel p {
  margin-top: 14px;
  color: var(--pg-graphite);
}
.featured-route p { color: rgba(255, 255, 255, .76); }
.route-panel ul {
  display: grid;
  gap: 10px;
  margin: auto 0 0;
  padding: 30px 0 0;
  list-style: none;
}
.route-panel a {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: .84rem 0;
  border-bottom: 1px solid rgba(23, 23, 23, .1);
  font-weight: 700;
}
.route-panel a::after {
  content: "→";
  color: var(--pg-bronze);
}
.featured-route a {
  border-color: rgba(255, 255, 255, .14);
}
.featured-route a::after { color: var(--pg-gold-soft); }

.legacy-section {
  background: var(--pg-parchment);
}
.table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(23, 23, 23, .12);
  border-radius: 8px;
  background: var(--pg-paper);
  box-shadow: var(--pg-shadow-paper);
}
.legacy-table { margin-top: 34px; }
table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
  color: var(--pg-ink);
}
th, td {
  padding: 17px 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(23, 23, 23, .1);
}
th {
  color: var(--pg-steel);
  background: #faf9f4;
  font-family: var(--font-mono);
  font-size: .74rem;
  text-transform: uppercase;
}
td a {
  color: var(--pg-deep-blue);
  font-weight: 700;
}
.status-pill,
.risk {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: .22rem .48rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: .68rem;
  white-space: nowrap;
}
.status-pill.archive { color: var(--pg-bronze); background: rgba(215, 182, 106, .18); }
.status-pill.danger,
.risk.high { color: var(--pg-danger); background: rgba(180, 35, 24, .1); }
.status-pill.planned,
.risk.medium { color: var(--pg-warning); background: rgba(180, 83, 9, .12); }
.risk.low { color: var(--pg-success); background: rgba(4, 120, 87, .1); }

.wiki-section {
  background:
    linear-gradient(180deg, var(--pg-linen), var(--pg-parchment));
}
.catalog-board,
.catalog-preview {
  padding: 18px;
  border: 1px solid rgba(23, 23, 23, .12);
  border-radius: 8px;
  background: var(--pg-paper);
  box-shadow: var(--pg-shadow-soft);
}
.catalog-toolbar,
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.filter-chip {
  color: var(--pg-carbon);
  border-color: rgba(23, 23, 23, .12);
  background: var(--pg-linen);
}
.filter-chip.is-active,
.filter-chip:hover,
.filter-chip:focus-visible {
  color: #fff;
  border-color: var(--pg-deep-blue);
  background: var(--pg-deep-blue);
  outline: none;
}
.catalog-rows {
  display: grid;
  gap: 8px;
}
.catalog-row {
  display: grid;
  grid-template-columns: minmax(180px, .85fr) minmax(240px, 1.4fr) auto;
  gap: 14px;
  align-items: center;
  padding: 15px 16px;
  border: 1px solid rgba(23, 23, 23, .1);
  border-radius: 8px;
  background: var(--pg-linen);
}
.catalog-row[hidden] { display: none; }
.catalog-row span { font-weight: 700; }
.catalog-row b {
  color: var(--pg-graphite);
  font-weight: 500;
}
.catalog-row em {
  color: var(--pg-bronze);
  font-family: var(--font-mono);
  font-size: .72rem;
  font-style: normal;
}

.tools-section {
  background: var(--pg-cream);
}
.tool-panels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.instrument-panel {
  min-height: 350px;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid rgba(23, 23, 23, .12);
  border-radius: 8px;
  background:
    linear-gradient(180deg, #fff, #fafaf6);
  box-shadow: var(--pg-shadow-paper);
}
.instrument-panel.warning-panel {
  background:
    linear-gradient(180deg, #fff, #fff7f4);
  border-color: rgba(180, 35, 24, .18);
}
.instrument-panel h3 {
  margin-bottom: 24px;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
}
.mini-form,
.fee-stack,
.check-list {
  display: grid;
  gap: 10px;
  margin-top: auto;
}
.mini-form label,
.fee-stack span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(23, 23, 23, .1);
  border-radius: 8px;
  background: var(--pg-linen);
  color: var(--pg-graphite);
}
.mini-form span,
.fee-stack i {
  color: var(--pg-ink);
  font-family: var(--font-mono);
  font-style: normal;
}
.instrument-panel output {
  margin-top: 12px;
  padding: 14px;
  border-radius: 8px;
  color: var(--pg-gold-soft);
  background: var(--pg-night);
  font-family: var(--font-mono);
}
.check-list {
  padding: 0;
  list-style: none;
}
.check-list li {
  padding: 12px 12px 12px 34px;
  position: relative;
  border: 1px solid rgba(180, 35, 24, .14);
  border-radius: 8px;
  background: rgba(180, 35, 24, .06);
}
.check-list li::before {
  content: "!";
  position: absolute;
  left: 12px;
  top: 12px;
  color: var(--pg-danger);
  font-family: var(--font-mono);
  font-weight: 700;
}

.checkpoint-section,
.risk-section {
  padding: clamp(70px, 8vw, 110px) 0;
  color: #fff;
  background:
    linear-gradient(130deg, rgba(7, 16, 29, .98), rgba(40, 40, 52, .96)),
    var(--pg-night);
}
.checkpoint-inner,
.risk-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, .62fr);
  gap: 34px;
  align-items: center;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .025));
  box-shadow: 0 26px 90px rgba(0, 0, 0, .24);
}
.checkpoint-copy p,
.risk-panel p {
  max-width: 760px;
  margin-top: 18px;
  color: rgba(255, 255, 255, .78);
  font-size: 1.08rem;
}
.gatekeeper-note {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  background: rgba(255, 255, 255, .07);
}
.gatekeeper-note img {
  width: 96px;
  filter: drop-shadow(0 0 22px rgba(127, 216, 255, .24));
}
.gatekeeper-note strong { display: block; margin-bottom: 5px; }
.gatekeeper-note p { color: rgba(255, 255, 255, .72); }

.roadmap-section {
  background: var(--pg-parchment);
}
.timeline,
.route-map {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(23, 23, 23, .18);
}
.timeline li,
.route-map li {
  min-height: 230px;
  position: relative;
  padding: 24px 18px 10px 0;
  border-right: 1px solid rgba(23, 23, 23, .12);
}
.timeline li::before,
.route-map li::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--pg-blue);
  box-shadow: 0 0 0 5px rgba(0, 129, 192, .12);
}
.timeline span,
.route-map span {
  display: block;
  margin-bottom: 18px;
  color: var(--pg-bronze);
  font-family: var(--font-mono);
  font-size: .74rem;
}
.timeline strong,
.route-map strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.02rem;
}
.timeline p,
.route-map p {
  color: var(--pg-graphite);
}

.faq-section { background: var(--pg-cream); }
.faq-list {
  display: grid;
  gap: 10px;
}
.faq-item {
  border: 1px solid rgba(23, 23, 23, .12);
  border-radius: 8px;
  background: var(--pg-paper);
  box-shadow: 0 10px 24px rgba(23, 23, 23, .04);
}
.faq-item summary {
  cursor: pointer;
  padding: 18px 20px;
  list-style: none;
  font-weight: 700;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p {
  padding: 0 20px 20px;
  color: var(--pg-graphite);
}

.site-footer {
  padding: 58px 0 30px;
  color: rgba(255, 255, 255, .82);
  background: var(--pg-night);
}
.footer-grid,
.footer-bottom {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.18fr .96fr .72fr;
  gap: 26px;
}
.footer-grid img { width: 176px; height: auto; }
.footer-grid p {
  max-width: 430px;
  margin-top: 12px;
  color: rgba(255, 255, 255, .62);
}
.footer-links {
  display: grid;
  gap: 9px;
}
.footer-links a {
  color: rgba(255, 255, 255, .66);
  font-family: var(--font-mono);
  font-size: .78rem;
}
.footer-links a:hover { color: var(--pg-gold-soft); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 38px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .56);
  font-family: var(--font-mono);
  font-size: .76rem;
}

/* Compatibility styles for existing internal pages. */
.page-hero {
  position: relative;
  overflow: hidden;
  min-height: 76vh;
  color: #fff;
  background:
    radial-gradient(circle at 74% 48%, rgba(127, 216, 255, .18), transparent 28%),
    linear-gradient(135deg, var(--pg-night), #0f2036 64%, var(--pg-night));
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 18vh;
  background: linear-gradient(180deg, transparent, var(--pg-cream));
}
.hero-ambient {
  position: absolute;
  inset: 0;
  background:
    conic-gradient(from 210deg at 70% 45%, rgba(127, 216, 255, .18), rgba(215, 182, 106, .12), transparent, rgba(65, 161, 207, .16)),
    repeating-linear-gradient(96deg, transparent 0 38px, rgba(255,255,255,.035) 38px 39px, transparent 39px 90px);
  opacity: .7;
}
.page-hero-grid {
  position: relative;
  z-index: 2;
  width: min(var(--container), calc(100% - 32px));
  min-height: 76vh;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(280px, .66fr);
  gap: 38px;
  align-items: center;
  margin: 0 auto;
  padding: 124px 0 82px;
}
.page-hero h1 {
  max-width: 860px;
  font-size: clamp(3rem, 6vw, 5.3rem);
}
.page-hero-copy p {
  max-width: 730px;
  margin-top: 20px;
  color: rgba(255, 255, 255, .78);
  font-size: 1.05rem;
}
.page-visual {
  justify-self: center;
  max-width: 480px;
  filter: drop-shadow(0 0 38px rgba(0, 129, 192, .22));
}
.breadcrumb,
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: rgba(255, 255, 255, .62);
  font-family: var(--font-mono);
  font-size: .76rem;
}
.breadcrumb { margin-bottom: 22px; }
.breadcrumb a { color: var(--pg-crystal); }
.hero-meta { margin-top: 22px; }
.hero-meta span {
  padding: .38rem .54rem;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
}
.section {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(68px, 8vw, 104px) 0;
  color: var(--pg-ink);
}
.section-light {
  width: 100%;
  max-width: none;
  padding-left: max(16px, calc((100vw - var(--container)) / 2));
  padding-right: max(16px, calc((100vw - var(--container)) / 2));
  background: var(--pg-parchment);
}
.section-head {
  max-width: 880px;
  margin-bottom: 32px;
}
.section-head p {
  margin-top: 16px;
  color: var(--pg-graphite);
  font-size: 1.02rem;
}
.data-grid,
.hub-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.hub-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.data-card {
  min-height: 220px;
  padding: 22px;
  border: 1px solid rgba(23, 23, 23, .12);
  border-radius: 8px;
  background: var(--pg-paper);
  box-shadow: var(--pg-shadow-paper);
}
.data-card h3 { margin-bottom: 12px; }
.data-card p { color: var(--pg-graphite); }
.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.related-links a {
  padding: .72rem .86rem;
  border: 1px solid rgba(11, 77, 147, .2);
  border-radius: 999px;
  color: var(--pg-deep-blue);
  background: var(--pg-paper);
  font-family: var(--font-mono);
  font-size: .78rem;
}
.tool-widget {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 20px;
  border: 1px solid rgba(23, 23, 23, .12);
  border-radius: 8px;
  background: var(--pg-paper);
  box-shadow: var(--pg-shadow-paper);
}
.tool-widget label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}
.tool-widget input {
  min-height: 44px;
  padding: .7rem;
  border: 1px solid rgba(23, 23, 23, .16);
  border-radius: 8px;
  background: var(--pg-linen);
}
.tool-widget output {
  grid-column: 1 / -1;
  min-height: 54px;
  display: flex;
  align-items: center;
  padding: 1rem;
  border-radius: 8px;
  color: var(--pg-gold-soft);
  background: var(--pg-night);
  font-family: var(--font-mono);
}

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

@keyframes portalFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-12px) scale(1.015); }
}

@media (max-width: 1100px) {
  .site-nav a:not(.nav-cta) {
    display: none;
  }
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    display: none;
    min-width: min(360px, calc(100vw - 32px));
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 18px;
    background: var(--pg-graphite-night);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .24);
  }
  .site-nav.is-open {
    display: grid;
  }
  .site-nav.is-open a {
    display: flex;
    justify-content: flex-start;
  }
  .site-nav .nav-cta {
    margin-left: 0;
    justify-content: center;
  }
  .hero-portal {
    right: -220px;
    opacity: .82;
  }
  .hero-card {
    width: min(610px, 92vw);
  }
  .gate-groups,
  .tool-panels,
  .data-grid,
  .hub-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .featured-route { transform: none; }
  .timeline,
  .route-map {
    grid-template-columns: 1fr;
    border-top: 0;
    border-left: 1px solid rgba(23, 23, 23, .16);
    padding-left: 22px;
  }
  .timeline li,
  .route-map li {
    min-height: auto;
    padding: 0 0 28px 22px;
    border-right: 0;
  }
  .timeline li::before,
  .route-map li::before {
    top: 2px;
    left: -28px;
  }
  .page-hero-grid {
    grid-template-columns: 1fr;
  }
  .page-visual {
    max-width: 380px;
    opacity: .9;
  }
}

@media (max-width: 760px) {
  .site-header { top: 10px; }
  .nav-shell {
    width: calc(100vw - 20px);
    justify-content: space-between;
  }
  .brand-mark img { width: 136px; }
  .site-nav .nav-cta {
    min-height: 38px;
    padding-inline: .7rem;
    font-size: .78rem;
  }
  h1 {
    font-size: clamp(2.65rem, 12vw, 3.25rem);
    line-height: 1.03;
  }
  h2 {
    font-size: clamp(2.15rem, 10vw, 3rem);
    line-height: 1.02;
  }
  .home-hero,
  .hero-content {
    min-height: 92vh;
  }
  .hero-content {
    align-items: flex-end;
    padding: 128px 0 78px;
  }
  .hero-portal {
    width: 720px;
    min-width: 720px;
    right: 50%;
    top: 31%;
    transform: translate(50%, -50%);
    opacity: .74;
  }
  .glass-panel {
    display: none;
  }
  .hero-card {
    padding: 22px;
    border-radius: 20px;
  }
  .hero-card p {
    font-size: 1rem;
  }
  .hero-actions {
    align-items: stretch;
  }
  .btn {
    width: 100%;
  }
  .light-link {
    width: 100%;
    justify-content: center;
  }
  .editorial-grid,
  .two-column-text,
  .gate-groups,
  .tool-panels,
  .data-grid,
  .hub-grid,
  .footer-grid,
  .checkpoint-inner,
  .risk-panel,
  .tool-widget {
    grid-template-columns: 1fr;
  }
  .section-label {
    position: static;
  }
  .system-diagram {
    grid-column: auto;
    min-height: 310px;
    padding: 24px;
  }
  .diagram-ring {
    position: relative;
    inset: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 22px;
  }
  .diagram-ring span {
    position: static;
  }
  .gatekeeper-note {
    grid-template-columns: 72px 1fr;
  }
  .gatekeeper-note img { width: 72px; }
  .catalog-row {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .footer-bottom {
    flex-direction: column;
  }
  .page-hero,
  .page-hero-grid {
    min-height: auto;
  }
  .page-hero-grid {
    padding: 120px 0 72px;
  }
  .page-visual {
    order: -1;
    max-width: 280px;
  }
}

@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;
  }
}
