/* ==========================================================================
   BRIX Exchange — shared stylesheet
   Design system shared with PGR Capital: navy #0a0f1e, champagne #c4a574,
   Cormorant Garamond / DM Sans / IBM Plex Mono.
   ========================================================================== */

:root {
  --bg: #0a0f1e;
  --bg-raise: #0f1629;
  --bg-raise-2: #141c33;
  --ink: #ece6da;
  --ink-2: #aeb2bd;
  --ink-3: #737a8c;
  --champ: #c4a574;
  --champ-2: #d9c29c;
  --champ-dim: rgba(196, 165, 116, 0.22);
  --line: rgba(196, 165, 116, 0.2);
  --line-soft: rgba(236, 230, 218, 0.08);
  --danger: #e0907a;

  --serif: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 56px);
  --section: clamp(96px, 12vw, 168px);
  --radius: 3px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--champ-2); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--ink); }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; text-wrap: balance; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--champ); color: var(--bg); }

:focus-visible {
  outline: 2px solid var(--champ);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--champ); color: var(--bg); padding: 10px 16px;
  font-weight: 500; text-decoration: none; border-radius: var(--radius);
}
.skip-link:focus { top: 16px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Type ---------- */
.display {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.9rem, 6.2vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.1rem, 3.8vw, 3.3rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
}
.h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.45rem, 2vw, 1.75rem);
  line-height: 1.2;
}
.lede {
  font-size: clamp(1.1rem, 1.4vw, 1.25rem);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 34em;
}
.muted { color: var(--ink-2); }
.fine { font-size: 0.875rem; color: var(--ink-3); line-height: 1.6; }
.mono { font-family: var(--mono); font-size: 0.8125rem; letter-spacing: 0.01em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px;
  border-radius: var(--radius);
  font-family: var(--sans); font-size: 1rem; font-weight: 500; letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn-primary { background: var(--champ); color: #0a0f1e; }
.btn-primary:hover { background: var(--champ-2); color: #0a0f1e; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--champ); color: var(--ink); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 0.9375rem; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 15, 30, 0.82);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 76px;
}
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--ink);
}
.brand-mark { width: 26px; height: 26px; flex: none; }
.brand-word {
  font-family: var(--serif); font-weight: 600; font-size: 1.5rem;
  letter-spacing: 0.14em; line-height: 1;
}
.brand-sub {
  font-family: var(--sans); font-size: 0.8125rem; color: var(--ink-2);
  letter-spacing: 0.02em; padding-left: 12px; border-left: 1px solid var(--line);
  line-height: 1;
}
.nav { display: flex; align-items: center; gap: 32px; }
.nav-list { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-list a {
  color: var(--ink-2); text-decoration: none; font-size: 0.9375rem;
  padding: 8px 0; transition: color 0.2s var(--ease);
}
.nav-list a:hover, .nav-list a[aria-current="page"] { color: var(--ink); }
.nav-toggle {
  display: none; width: 48px; height: 48px; padding: 0;
  background: none; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer;
}
.nav-toggle span {
  display: block; width: 18px; height: 1px; background: var(--ink); margin: 5px auto;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Status notice ---------- */
.status {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 0.8125rem; color: var(--ink-2);
  padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px;
}
.status::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  border: 1px solid var(--champ); background: transparent;
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(64px, 9vw, 128px) clamp(80px, 10vw, 144px); }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(40px, 6vw, 96px); align-items: center;
}
.hero .status { margin-bottom: 36px; }
.hero .display { margin-bottom: 32px; max-width: 11.5em; }
.hero .lede { margin-bottom: 44px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.facade-figure { margin: 0; }
.facade {
  width: 100%; height: auto; max-width: 440px; margin-left: auto;
  overflow: visible;
}
.facade .f-line, .facade .f-cell {
  fill: none; stroke: var(--champ); stroke-width: 1;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1; stroke-dashoffset: 0;
}
.facade .f-cell { stroke: rgba(196, 165, 116, 0.55); }
.facade .f-token { fill: var(--champ); opacity: 0.5; }
.facade-caption {
  display: flex; justify-content: space-between; gap: 16px;
  max-width: 440px; margin: 18px 0 0 auto; padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--mono); font-size: 0.75rem; color: var(--ink-3);
}

/* The one orchestrated moment: the facade draws itself on load */
@media (prefers-reduced-motion: no-preference) {
  .js .facade .f-line, .js .facade .f-cell {
    stroke-dashoffset: 1;
    animation: draw 1.4s var(--ease) forwards;
    animation-delay: var(--d, 0s);
  }
  .js .facade .f-token {
    opacity: 0;
    animation: token 0.9s var(--ease) forwards;
    animation-delay: var(--d, 2s);
  }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes token { to { opacity: 0.5; } }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); border-top: 1px solid var(--line-soft); }
.section-head { max-width: 40rem; margin-bottom: clamp(48px, 6vw, 80px); }
.section-head .h2 { margin-bottom: 20px; }
.section-head p { color: var(--ink-2); max-width: 36em; }
.section-head-gap { margin-top: clamp(96px, 10vw, 144px); }

/* Framework */
.framework-grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 7vw, 120px);
}
.framework-grid .section-head { margin-bottom: 0; position: sticky; top: 120px; align-self: start; }
.pillars { list-style: none; margin: 0; padding: 0; }
.pillar {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: 24px 40px; padding-block: 36px; border-top: 1px solid var(--line);
}
.pillar:last-child { border-bottom: 1px solid var(--line); }
.pillar p { margin: 0; color: var(--ink-2); }
.pillar .fine { grid-column: 2; margin-top: -12px; }

/* Process */
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  counter-reset: step;
}
.step {
  counter-increment: step; position: relative;
  padding: 0 clamp(16px, 2.4vw, 36px) 0 0;
}
.step + .step { padding-left: clamp(16px, 2.4vw, 36px); border-left: 1px solid var(--line-soft); }
.step::before {
  content: counter(step);
  display: block; font-family: var(--serif); font-weight: 300;
  font-size: clamp(3.5rem, 5vw, 4.75rem); line-height: 1; color: var(--champ);
  margin-bottom: 28px;
}
.step .h3 { margin-bottom: 14px; }
.step p { color: var(--ink-2); font-size: 1rem; margin: 0; }
.step-when {
  display: block; margin-top: 20px; font-family: var(--mono); font-size: 0.75rem; color: var(--ink-3);
}

/* Structure diagram */
.structure {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr) 72px minmax(0, 1fr);
  align-items: stretch;
}
.node {
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px 26px;
  display: flex; flex-direction: column; gap: 10px;
}
.node-role { font-family: var(--mono); font-size: 0.75rem; color: var(--champ); }
.node-name { font-family: var(--serif); font-size: 1.6rem; line-height: 1.15; font-weight: 500; }
.node p { font-size: 0.9375rem; color: var(--ink-2); margin: 0; }
.node-future { background: transparent; border-style: dashed; border-color: rgba(196, 165, 116, 0.4); }
.node-future .node-role { color: var(--ink-3); }
.edge { position: relative; display: flex; align-items: center; justify-content: center; }
.edge::before {
  content: ""; position: absolute; left: 8px; right: 8px; top: 50%;
  border-top: 1px solid var(--champ-dim);
}
.edge::after {
  content: ""; position: absolute; right: 8px; top: 50%;
  width: 7px; height: 7px; margin-top: -4px;
  border-top: 1px solid var(--champ); border-right: 1px solid var(--champ);
  transform: rotate(45deg);
}
.edge-dashed::before { border-top-style: dashed; }
.structure-notes {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px;
  margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line-soft);
}
.structure-notes p { font-size: 0.9375rem; color: var(--ink-2); margin: 0; }
.structure-notes strong { display: block; font-weight: 500; color: var(--ink); margin-bottom: 6px; }

/* Asset preview */
.assets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.asset {
  background: var(--bg-raise); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column;
}
.asset-art {
  aspect-ratio: 16 / 10; margin: -28px -28px 28px; border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(180deg, var(--bg-raise-2), var(--bg-raise));
  display: flex; align-items: flex-end; justify-content: center; overflow: hidden;
}
.asset-art svg { width: 78%; height: auto; }
.asset-art svg * { fill: none; stroke: rgba(196, 165, 116, 0.5); stroke-width: 1; vector-effect: non-scaling-stroke; }
.asset-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.tag {
  font-family: var(--mono); font-size: 0.75rem; color: var(--ink-2);
  padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; white-space: nowrap;
}
.tag-coming { border-style: dashed; }
.asset .h3 { margin-bottom: 8px; }
.asset-where { color: var(--ink-2); font-size: 0.9375rem; margin-bottom: 24px; }
.asset dl { margin: auto 0 0; display: grid; gap: 10px; }
.asset dl div {
  display: flex; justify-content: space-between; gap: 16px;
  padding-top: 10px; border-top: 1px solid var(--line-soft);
}
.asset dt { font-size: 0.875rem; color: var(--ink-3); }
.asset dd { margin: 0; font-family: var(--mono); font-size: 0.8125rem; color: var(--ink); text-align: right; }
.assets-note { margin-top: 24px; }

/* Sample dashboard */
.sample {
  position: relative; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: var(--bg-raise);
}
.sample-ui {
  filter: blur(2px) saturate(0.8); opacity: 0.75;
  pointer-events: none; user-select: none;
  padding: 28px; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px;
  min-height: 460px;
}
.sample-side { display: grid; align-content: start; gap: 14px; }
.sample-side .bar { height: 12px; border-radius: 2px; background: rgba(236, 230, 218, 0.1); }
.sample-side .bar.on { background: var(--champ-dim); }
.sample-main { display: grid; gap: 20px; align-content: start; }
.sample-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.sample-card { border: 1px solid var(--line-soft); border-radius: 2px; padding: 18px; background: var(--bg-raise-2); }
.sample-card .k { font-size: 0.8125rem; color: var(--ink-3); margin-bottom: 8px; }
.sample-card .v { font-family: var(--mono); font-size: 1.25rem; color: var(--ink); }
.sample-table { border: 1px solid var(--line-soft); border-radius: 2px; }
.sample-table div {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 12px;
  padding: 14px 18px; border-top: 1px solid var(--line-soft);
  font-family: var(--mono); font-size: 0.8125rem; color: var(--ink-2);
}
.sample-table div:first-child { border-top: 0; color: var(--ink-3); }
.sample-overlay {
  position: absolute; inset: 0; display: grid; place-items: center; padding: 24px;
  background: radial-gradient(ellipse at center, rgba(10, 15, 30, 0.55), rgba(10, 15, 30, 0.2) 70%);
}
.sample-label {
  text-align: center; max-width: 26rem;
  background: rgba(10, 15, 30, 0.92); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px 28px;
}
.sample-label .mono { color: var(--champ); display: block; margin-bottom: 8px; }
.sample-label p { margin: 0; color: var(--ink-2); font-size: 0.9375rem; }

/* FAQ */
.faq { max-width: 52rem; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 26px 0; font-family: var(--serif); font-size: clamp(1.3rem, 1.8vw, 1.55rem); font-weight: 500;
  min-height: 48px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px;
  border-right: 1px solid var(--champ); border-bottom: 1px solid var(--champ);
  transform: rotate(45deg) translate(-3px, -3px); transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq .answer { padding: 0 0 28px; color: var(--ink-2); max-width: 42em; }
.faq .answer p:last-child { margin-bottom: 0; }

/* Waitlist band */
.band {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px); align-items: end;
}
.band .h2 { margin-bottom: 18px; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 22px; }
.form-inline { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: start; }
.field { display: grid; gap: 8px; }
.field label, .field legend { font-size: 0.9375rem; color: var(--ink); font-weight: 500; }
.field .hint { font-size: 0.8125rem; color: var(--ink-3); }
.input, .select, .textarea {
  width: 100%; min-height: 54px; padding: 14px 16px;
  background: var(--bg-raise); color: var(--ink);
  border: 1px solid rgba(236, 230, 218, 0.16); border-radius: var(--radius);
  font-size: 1.0625rem; transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.input::placeholder, .textarea::placeholder { color: var(--ink-3); }
.input:hover, .select:hover, .textarea:hover { border-color: rgba(236, 230, 218, 0.28); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--champ); background: var(--bg-raise-2); }
.input[aria-invalid="true"], .select[aria-invalid="true"] { border-color: var(--danger); }
.select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 44px;
  background-image: linear-gradient(45deg, transparent 50%, var(--champ) 50%), linear-gradient(135deg, var(--champ) 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%;
  background-size: 6px 6px; background-repeat: no-repeat;
}
.select option { background: var(--bg); color: var(--ink); }
.textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.row-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; }
.check { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 14px; align-items: start; }
.check input {
  appearance: none; -webkit-appearance: none; width: 24px; height: 24px; margin: 2px 0 0;
  border: 1px solid rgba(236, 230, 218, 0.3); border-radius: 2px; background: var(--bg-raise);
  cursor: pointer; display: grid; place-items: center;
}
.check input:checked { background: var(--champ); border-color: var(--champ); }
.check input:checked::after {
  content: ""; width: 6px; height: 11px; margin-top: -3px;
  border-right: 2px solid var(--bg); border-bottom: 2px solid var(--bg); transform: rotate(45deg);
}
.check input[aria-invalid="true"] { border-color: var(--danger); }
.check label { font-size: 0.9375rem; color: var(--ink-2); font-weight: 400; cursor: pointer; }
.error { font-size: 0.875rem; color: var(--danger); min-height: 0; }
.error:empty { display: none; }
.form-status { font-size: 0.9375rem; color: var(--ink-2); }
.form-status:empty { display: none; }

.success {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-raise);
  padding: 32px;
}
.success .h3 { margin-bottom: 10px; }
.success p { margin: 0; color: var(--ink-2); }
.success:focus { outline: none; }
[hidden] { display: none !important; }

/* ---------- Access page ---------- */
.page-head { padding-block: clamp(64px, 8vw, 112px) clamp(40px, 5vw, 64px); }
.page-head .display { font-size: clamp(2.6rem, 5vw, 4.4rem); margin: 28px 0 24px; max-width: 13em; }
.access-grid {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(40px, 7vw, 112px); padding-bottom: var(--section);
}
.access-form-panel {
  background: var(--bg-raise); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: clamp(24px, 4vw, 48px);
}
.access-aside { display: grid; gap: 40px; align-content: start; }
.access-aside h2 { font-family: var(--serif); font-size: 1.6rem; font-weight: 500; margin-bottom: 12px; }
.access-aside p, .access-aside li { color: var(--ink-2); font-size: 1rem; }
.access-aside ul { margin: 0; padding-left: 1.1em; }
.access-aside li { margin-bottom: 8px; }
.access-aside li::marker { color: var(--champ); }

/* ---------- Legal pages ---------- */
.legal-grid {
  display: grid; grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px); padding-bottom: var(--section);
}
.toc { position: sticky; top: 108px; align-self: start; }
.toc p { font-size: 0.875rem; color: var(--ink-3); margin-bottom: 14px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.toc a {
  display: block; padding: 8px 0 8px 14px; border-left: 1px solid var(--line-soft);
  color: var(--ink-2); text-decoration: none; font-size: 0.9375rem;
}
.toc a:hover { color: var(--ink); border-left-color: var(--champ); }
.prose { max-width: 42rem; }
.prose h2 {
  font-family: var(--serif); font-size: clamp(1.6rem, 2.4vw, 2rem); font-weight: 500;
  margin: 56px 0 16px; padding-top: 28px; border-top: 1px solid var(--line-soft);
}
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--champ); }
.prose strong { color: var(--ink); font-weight: 500; }
.updated { font-family: var(--mono); font-size: 0.8125rem; color: var(--ink-3); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 72px 48px; background: #080c18; }
.footer-top {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px; padding-bottom: 48px; border-bottom: 1px solid var(--line-soft);
}
.footer-top p { color: var(--ink-2); font-size: 0.9375rem; max-width: 26em; margin-top: 16px; }
.footer-col h2 { font-family: var(--sans); font-size: 0.875rem; font-weight: 500; color: var(--ink); margin-bottom: 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.footer-col a { color: var(--ink-2); text-decoration: none; font-size: 0.9375rem; display: inline-block; padding: 6px 0; }
.footer-col a:hover { color: var(--ink); }
.compliance { padding-top: 36px; display: grid; gap: 14px; max-width: 64rem; }
.compliance p { font-size: 0.8125rem; line-height: 1.7; color: var(--ink-3); margin: 0; }
.compliance strong { color: var(--ink-2); font-weight: 500; }
.footer-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px;
  margin-top: 36px; font-size: 0.8125rem; color: var(--ink-3);
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .structure { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
  .structure .edge { height: 48px; }
  .edge::before { left: 50%; right: auto; top: 6px; bottom: 6px; border-top: 0; border-left: 1px solid var(--champ-dim); }
  .edge-dashed::before { border-left-style: dashed; }
  .edge::after { right: auto; left: 50%; top: auto; bottom: 8px; margin: 0 0 0 -4px; transform: rotate(135deg); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 56px; }
  .step:nth-child(3) { padding-left: 0; border-left: 0; }
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 20px;
    padding: 24px var(--gutter) 32px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list a { display: block; padding: 14px 0; font-size: 1.125rem; border-bottom: 1px solid var(--line-soft); }
  .nav .btn { width: 100%; }

  .hero-grid, .framework-grid, .band, .access-grid, .legal-grid { grid-template-columns: minmax(0, 1fr); }
  .framework-grid .section-head { position: static; }
  .facade, .facade-caption { margin-inline: auto; max-width: 360px; }
  .assets { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
  .structure-notes { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .footer-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-top > :first-child { grid-column: 1 / -1; }
  .toc { position: static; }
  .sample-ui { grid-template-columns: minmax(0, 1fr); }
  .sample-side { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 1.0625rem; }
  .brand-sub { display: none; }
  .hero-actions .btn { flex: 1 1 100%; }
  .pillar { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .pillar .fine { grid-column: 1; margin-top: 0; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .step, .step + .step { padding: 0 0 0 0; border-left: 0; }
  .step + .step { padding-top: 40px; border-top: 1px solid var(--line-soft); }
  .form-inline, .row-2 { grid-template-columns: minmax(0, 1fr); }
  .form-inline .btn { width: 100%; }
  .sample-row { grid-template-columns: minmax(0, 1fr); }
  .sample-table div { grid-template-columns: 2fr 1fr; }
  .sample-table div span:nth-child(n+3) { display: none; }
  .footer-top { grid-template-columns: minmax(0, 1fr); }
}

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

@media print {
  .site-header, .nav-toggle, .sample, .form, .hero-actions { display: none !important; }
  body { background: #fff; color: #000; }
  .compliance p, .prose p, .prose li { color: #000; }
}
