/* ==========================================================================
   Anteris Alliance — public site
   Palette: Ensign navy, bone, brass (the coin), flag red (used sparingly)
   Type: Saira Extra Condensed (display) + IBM Plex Sans (text)
   ========================================================================== */
@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@500;600&family=IBM+Plex+Sans:ital,wght@0,400;0,500;0,600;1,400&family=Saira+Extra+Condensed:wght@500;600;700;800&display=swap");

@font-face { font-family: "Cinzel"; font-weight: 800; font-style: normal; font-display: swap; src: url("../fonts/cinzel-800.woff2") format("woff2"); }

:root {
  --navy: #13213a;
  --navy-2: #1c2e4d;
  --navy-3: #2a3f63;
  --steel: #5a6b82;
  --bone: #f3f1ec;
  --paper: #ffffff;
  --ink: #18202c;
  --muted: #55606f;
  --line: #d9d5cb;
  --brass: #b8893a;
  --brass-2: #e2c27d;
  --red: #a3262a;
  --display: "Saira Extra Condensed", "Arial Narrow", sans-serif;
  --text: "IBM Plex Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --wrap: 1260px;
  --r-sm: 4px;
  --r-md: 10px;
  --on-navy: #f3f1ec;
  --surface-muted: #eae6de;
  --input: #fcfbf8;
  --input-line: #8a8377;
  --notice-bg: #fff3d9;
  --notice-line: #d4ae62;
  --success-bg: #eef4ea;
  --success-line: #8baa7d;
  --danger-text: #a3262a;
  --accent-text: #775521;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bone: #0c1525;
  --paper: #152239;
  --ink: #f3f1ec;
  --muted: #bec8d6;
  --line: #37465d;
  --surface-muted: #1d2c43;
  --input: #101b2d;
  --input-line: #75849a;
  --notice-bg: #352b1d;
  --notice-line: #94713f;
  --success-bg: #1d342b;
  --success-line: #65907d;
  --danger-text: #ff9b9e;
  --accent-text: #e2c27d;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 400 17px/1.6 var(--text); color: var(--ink); background: var(--bone); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; border-radius: 2px; }
.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: .95; letter-spacing: .005em; margin: 0 0 .4em; }
h1 { font-size: clamp(64px, 10vw, 136px); }
h2 { font-size: clamp(44px, 6vw, 76px); }
h3 { font-size: 30px; line-height: 1.05; }
p { margin: 0 0 1em; max-width: 64ch; }
.lede { font-size: 20px; line-height: 1.55; color: var(--muted); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: var(--r-sm); font: 600 16px/1 var(--text); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn-brass { background: var(--brass); color: var(--navy); }
.btn-brass:hover { background: var(--brass-2); }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn-ghost:hover { background: rgba(255,255,255,.08); }
.btn-navy { background: var(--navy); color: var(--on-navy); }
.btn-navy:hover { background: var(--navy-3); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 40; background: var(--navy); color: var(--on-navy); border-bottom: 1px solid rgba(226,194,125,.25); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 80px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--on-navy); }
.brand [data-mark] { color: var(--brass-2); }
.brand b { font: 700 27px/1 var(--display); letter-spacing: .04em; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; font-weight: 500; font-size: 15px; opacity: .85; }
.nav a:hover, .nav a[aria-current="page"] { opacity: 1; color: var(--brass-2); }
.nav .btn { padding: 10px 18px; font-size: 14px; opacity: 1; }
.nav .btn:hover { color: var(--navy); }
.menu-btn { display: none; background: none; border: 0; color: inherit; font: 600 15px var(--text); cursor: pointer; }
@media (max-width: 1080px) {
  .menu-btn { display: block; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--navy); padding: 8px 24px 24px; display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav .btn { margin-top: 14px; justify-content: center; }
}

/* ---------- homepage masthead ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: radial-gradient(ellipse at 77% 45%, #2a3f63 0%, transparent 52%), #101d33;
  color: var(--on-navy);
  padding: 0;
  border-bottom: 1px solid var(--brass);
}
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 0 43%;
  background: repeating-linear-gradient(-28deg, transparent 0 36px, #f3f1ec0d 36px 37px, transparent 37px 52px);
  mask-image: linear-gradient(90deg, transparent, #000);
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(28px, 6vw, 96px);
  padding-block: clamp(58px, 7vw, 100px);
}
.hero-copy { position: relative; z-index: 1; }
.hero-name {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  color: var(--brass-2);
  font: 600 13px/1.3 var(--mono);
  letter-spacing: .16em;
  text-transform: uppercase;
}
.hero-name::before { content: ""; width: 30px; height: 2px; background: var(--red); }
.hero h1 { color: #fff; font-size: clamp(76px, 9.6vw, 148px); line-height: .8; letter-spacing: -.027em; margin-bottom: .3em; }
.hero h1 span { display: block; color: var(--brass-2); }
.hero .lede { max-width: 39ch; color: #d0d8e4; margin-bottom: 26px; }
.hero-coin { width: min(100%, 530px); margin: 0; justify-self: center; }
.coin-stage {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  isolation: isolate;
  border: 1px solid #e2c27d51;
  border-radius: 50%;
  background: radial-gradient(circle, #b8893a30 0%, #b8893a0c 53%, transparent 72%);
}
.coin-stage::before,
.coin-stage::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; }
.coin-stage::before { inset: 4%; border: 1px dashed #e2c27d50; }
.coin-stage::after { inset: 9%; border: 1px solid #f3f1ec23; }
.coin-stage > div { width: 76%; filter: drop-shadow(0 22px 32px #050a15a0); }
.hero-coin .coin-flip { animation: coin-in .8s ease-out both; }
.hero-coin .flip-hint { text-align: center; font-size: 13px; color: #bdc7d7; margin: 14px 0 0; max-width: none; }

/* two-sided coin */
.coin-flip { display: grid; width: 100%; aspect-ratio: 1; padding: 0; border: 0; background: none; cursor: pointer; perspective: 1400px; border-radius: 50%; }
.coin-face { grid-area: 1 / 1; display: block; backface-visibility: hidden; -webkit-backface-visibility: hidden; transition: transform .9s cubic-bezier(.4,.2,.2,1); }
.coin-back { transform: rotateY(180deg); }
.coin-flip[aria-pressed="true"] .coin-front { transform: rotateY(-180deg); }
.coin-flip[aria-pressed="true"] .coin-back { transform: rotateY(0); }
@keyframes coin-in { from { transform: perspective(900px) rotateY(-160deg) scale(.85); opacity: 0; } to { transform: perspective(900px) rotateY(0) scale(1); opacity: 1; } }
.hero-note { margin: 20px 0 0; font-size: 14px; color: #bdc7d7; }


/* ---------- sections ---------- */
section { padding-block: clamp(72px, 10vw, 128px); }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 56px; }
.section-head p { margin: 0; }
@media (max-width: 800px) { .section-head { grid-template-columns: 1fr; gap: 12px; } }

/* steps: a real sequence, so numbered */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 2px solid var(--brass); }
.step { padding: 28px 28px 8px 0; }
.step + .step { padding-left: 28px; border-left: 1px solid var(--line); }
.step .num { font: 800 64px/1 var(--display); color: var(--accent-text); }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } .step + .step { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); } }

/* pillars */
.pillars-sec { background: var(--paper); }
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.pillar { border-top: 2px solid var(--accent-text); padding-top: 22px; }
.pillar:nth-child(2) { border-color: var(--red); }
.pillar:nth-child(3) { border-color: var(--brass); }
.pillar:nth-child(4) { border-color: var(--steel); }
.pillar p { font-size: 16px; color: var(--muted); }
.pillar a { font-weight: 600; font-size: 15px; }
@media (max-width: 960px) { .pillars { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .pillars { grid-template-columns: 1fr; } }

/* portal preview */
.inside { background: var(--navy); color: var(--on-navy); }
.inside .lede { color: #c5cbd6; }
.inside-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px; align-items: center; }
.feature-list { list-style: none; padding: 0; margin: 0; }
.feature-list li { padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.feature-list b { display: block; font: 700 26px/1.1 var(--display); color: #fff; margin-bottom: 4px; }
.feature-list span { color: #aeb7c6; font-size: 16px; }
.mock { background: var(--bone); color: var(--ink); border-radius: var(--r-md); overflow: hidden; box-shadow: 0 40px 80px rgba(0,0,0,.45); font-size: 13px; }
.mock-bar { background: #0e1a2e; display: flex; gap: 6px; padding: 10px 12px; }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #34445f; }
.mock-body { display: grid; grid-template-columns: 130px 1fr; min-height: 360px; }
.mock-side { background: var(--navy); color: #c5cbd6; padding: 14px 12px; display: flex; flex-direction: column; gap: 10px; }
.mock-side .on { color: var(--brass-2); font-weight: 600; }
.mock-main { padding: 16px; display: grid; gap: 12px; align-content: start; }
.mock-alert { border-left: 4px solid #d08a1c; background: var(--notice-bg); padding: 10px 12px; border-radius: 4px; }
.mock-map { height: 130px; border-radius: 6px; background:
  radial-gradient(circle at 30% 45%, rgba(163,38,42,.55) 0 10px, transparent 11px),
  radial-gradient(circle at 62% 60%, rgba(208,138,28,.55) 0 16px, transparent 17px),
  radial-gradient(circle at 75% 30%, rgba(19,33,58,.5) 0 6px, transparent 7px),
  linear-gradient(135deg, #dfe6d6, #cfd9c4); position: relative; }
.mock-row { display: flex; justify-content: space-between; background: var(--paper); padding: 10px 12px; border-radius: 4px; border: 1px solid var(--line); }
.mock-row b { color: var(--danger-text); }
@media (max-width: 900px) { .inside-grid { grid-template-columns: 1fr; } .mock-body { grid-template-columns: 1fr; } .mock-side { display: none; } }

/* tiers */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.tier { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 32px; display: flex; flex-direction: column; }
.tier.featured { background: var(--navy); color: var(--on-navy); border-color: var(--brass); position: relative; }
.tier.featured .tier-coin { width: 84px; position: absolute; top: -34px; right: 20px; }
.tier.featured h3 { padding-right: 76px; }
.tier h3 { font-size: 34px; }
.price { font: 800 64px/1 var(--display); margin: 8px 0 2px; }
.price small { font: 500 15px var(--text); color: var(--muted); margin-left: 6px; }
.tier.featured .price small { color: #aeb7c6; }
.tier ul { padding: 0; margin: 20px 0 28px; list-style: none; flex: 1; }
.tier li { padding: 9px 0 9px 26px; position: relative; border-top: 1px solid var(--line); font-size: 16px; }
.tier.featured li { border-color: rgba(255,255,255,.12); }
.tier li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 12px; height: 7px; border-left: 2px solid var(--brass); border-bottom: 2px solid var(--brass); transform: rotate(-45deg); }
.tier .btn { justify-content: center; }
.fine { font-size: 13px; color: var(--muted); margin-top: 18px; }
@media (max-width: 960px) { .tiers { grid-template-columns: 1fr; max-width: 520px; } }

/* story */
.story { background: var(--paper); }
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; }
.story blockquote { margin: 0; font: 600 clamp(30px, 3.6vw, 44px)/1.12 var(--display); color: var(--ink); border-left: 4px solid var(--red); padding-left: 28px; }
.mv { margin-top: 40px; display: grid; gap: 28px; }
.mv h3 { color: var(--ink); }
@media (max-width: 900px) { .story-grid { grid-template-columns: 1fr; gap: 40px; } }

/* brand CTA band */
.band { background: var(--brass); color: var(--navy); padding-block: 72px; }
.band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.band h2 { margin: 0; max-width: 16ch; }

/* page heads */
.page-head { background: var(--navy); color: var(--on-navy); padding-block: 88px 64px; }
.page-head h1 { font-size: clamp(56px, 8vw, 104px); color: #fff; }
.page-head .lede { color: #c5cbd6; }

/* forms */
.form-wrap { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: start; }
.form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 32px; display: grid; gap: 18px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: grid; gap: 6px; font-weight: 600; font-size: 14px; }
label .hint { font-weight: 400; color: var(--muted); }
input, select, textarea { font: 400 16px var(--text); padding: 12px 14px; border: 1px solid var(--input-line); border-radius: var(--r-sm); background: var(--input); color: var(--ink); width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brass); border-color: var(--brass); }
textarea { min-height: 120px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.check input { width: auto; margin-top: 4px; }
.form-done { background: var(--success-bg); border: 1px solid var(--success-line); padding: 24px; border-radius: var(--r-md); }
@media (max-width: 900px) { .form-wrap { grid-template-columns: 1fr; } .form .row { grid-template-columns: 1fr; } }

.benefits { list-style: none; padding: 0; margin: 24px 0 0; }
.benefits li { padding: 16px 0; border-top: 1px solid var(--line); }
.benefits b { display: block; font: 700 24px/1.1 var(--display); color: var(--ink); }

.prose { max-width: 72ch; }
.prose h2 { font-size: 40px; margin-top: 1.2em; }

/* demo banner */
.demo-banner { background: var(--notice-bg); color: var(--ink); font-size: 14px; text-align: center; padding: 8px 16px; }
.demo-banner button { background: none; border: 0; text-decoration: underline; color: inherit; cursor: pointer; font: inherit; }

/* footer */
.site-foot { background: #0d1729; color: #9aa5b8; padding-block: 64px 32px; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.site-foot h4 { color: var(--on-navy); font: 600 15px var(--text); margin: 0 0 14px; }
.site-foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-foot a { text-decoration: none; }
.site-foot a:hover { color: var(--brass-2); }
.foot-base { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; }
.foot-base a { color: var(--brass-2); }
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr 1fr; } }

#toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 140%); background: var(--navy); color: var(--on-navy); padding: 14px 22px; border-radius: 6px; transition: transform .25s; z-index: 100; max-width: 90vw; }
#toast.show { transform: translate(-50%, 0); }
#toast.err { background: var(--red); }

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

/* Shared layout and appearance controls */
html { scroll-padding-top: 100px; }
.head-controls { display: flex; align-items: center; gap: 8px; }
.site-head .brand img { width: clamp(128px, 16vw, 202px); height: auto; }
.site-head .nav { margin-inline-start: auto; }
.site-head .nav a[aria-current="page"]:not(.btn) { text-decoration: underline; text-underline-offset: 7px; }
.nav .btn { white-space: nowrap; }
.theme-toggle,
.menu-btn {
  min-height: 40px;
  padding: 6px 10px;
  border: 1px solid #ffffff42;
  border-radius: 5px;
  background: transparent;
  color: var(--on-navy);
  font: 600 13px var(--text);
  cursor: pointer;
  white-space: nowrap;
}
.theme-toggle, .topbar .theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
}
.theme-toggle svg { width: 21px; height: 21px; }
.theme-toggle .theme-sun, .theme-toggle[aria-pressed="true"] .theme-moon { display: none; }
.theme-toggle[aria-pressed="true"] .theme-sun { display: block; }
.theme-toggle:hover, .menu-btn:hover { border-color: var(--brass-2); }
.theme-toggle[aria-pressed="true"] { background: #e2c27d20; border-color: var(--brass-2); color: var(--brass-2); }
.btn { line-height: 1.2; }
.btn:disabled { opacity: .65; cursor: wait; }
:root[data-theme="dark"] .btn-navy { background: #263c5c; border-color: #7990b1; }
:root[data-theme="dark"] .btn-navy:hover { background: #344e73; }
.how { border-bottom: 1px solid var(--line); }
.section-head { grid-template-columns: 1.25fr 1fr; margin-bottom: 36px; }
.section-head h2 { margin: 0; }
.step .num { font: 600 15px/1.2 var(--mono); margin-bottom: 18px; }
.step p { color: var(--muted); }
.pillars { gap: 1px; background: var(--line); border: 1px solid var(--line); }
.pillar { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(20px, 3vw, 34px); background: var(--paper); }
.pillar a { margin-top: auto; text-underline-offset: 4px; }
.pillar a:hover { color: var(--accent-text); }
.inside { background: #101d33; }
.tier { border-radius: 6px; }
.tier.featured .tier-coin { top: 16px; width: 68px; }
.definition { margin: 30px 0 0; color: var(--accent-text); font: 600 13px/1.55 var(--mono); }
.band { border-top: 1px solid var(--brass); background: var(--navy); color: var(--on-navy); }
.band .btn-navy, :root[data-theme="dark"] .band .btn-navy { background: var(--brass); color: var(--navy); border-color: transparent; }
.band .btn-navy:hover, :root[data-theme="dark"] .band .btn-navy:hover { background: var(--brass-2); }
.page-head { background: linear-gradient(108deg, #101d33, #1c2e4d); border-bottom: 1px solid var(--brass); padding-block: clamp(54px, 8vw, 96px); }
.page-head h1 { max-width: 18ch; }
.page-head .lede { margin-bottom: 0; }
.form { padding: clamp(18px, 3vw, 32px); }
.check { display: block; }
.check input { margin-inline: 0 6px; }
.site-foot .brand img { width: min(200px, 100%); height: auto; }

:root:not([data-theme="dark"]) .hero {
  background: radial-gradient(ellipse at 77% 45%, #e9d7af 0%, transparent 53%), #f3f1ec;
  color: var(--navy);
}
:root:not([data-theme="dark"]) .hero::before {
  background: repeating-linear-gradient(-28deg, transparent 0 36px, #13213a16 36px 37px, transparent 37px 52px);
}
:root:not([data-theme="dark"]) .hero h1 { color: var(--navy); }
:root:not([data-theme="dark"]) .hero h1 span { color: #775521; }
:root:not([data-theme="dark"]) .hero-name { color: #775521; }
:root:not([data-theme="dark"]) .hero .lede,
:root:not([data-theme="dark"]) .hero-note,
:root:not([data-theme="dark"]) .flip-hint { color: var(--muted); }
:root:not([data-theme="dark"]) .hero .btn-ghost:hover { background: #13213a0d; }
:root:not([data-theme="dark"]) .coin-stage,
:root:not([data-theme="dark"]) .coin-stage::before,
:root:not([data-theme="dark"]) .coin-stage::after { border-color: #77552146; }
:root:not([data-theme="dark"]) .coin-stage > div { filter: drop-shadow(0 20px 26px #39291b55); }
:root:not([data-theme="dark"]) .page-head { background: linear-gradient(108deg, #eae6de, #f3f1ec); }
:root:not([data-theme="dark"]) .page-head h1 { color: var(--navy); }
:root:not([data-theme="dark"]) .page-head .lede { color: var(--muted); }

@media (max-width: 800px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(68px, 13vw, 120px); }
  .hero-coin { max-width: 390px; }
  .section-head { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .wrap { width: calc(100% - 32px); }
  .site-head .wrap { min-height: 68px; gap: 8px; }
  .hero .wrap { padding-block: 52px; }
  .hero-coin { width: min(84%, 340px); }
  .foot-grid { gap: 24px 16px; }
}

/* Public site editorial layout */
.section-label {
  margin: 0 0 20px;
  color: var(--accent-text);
  font: 600 12px/1.4 var(--mono);
  letter-spacing: .16em;
  text-transform: uppercase;
}
.front-cover {
  display: grid;
  align-items: end;
  min-height: clamp(550px, 79svh, 810px);
  padding-block: clamp(74px, 10vw, 138px) clamp(66px, 8vw, 108px);
  background: linear-gradient(90deg, #0c1525f2 0%, #0c1525d6 33%, #0c15255c 70%, #0c152530 100%),
    url("../brand/alliance-flag.jpg") center 48% / cover no-repeat #13213a;
  color: #f3f1ec;
}
.front-cover .section-label { color: #e2c27d; }
.front-cover h1 { font-size: clamp(96px, 15vw, 220px); letter-spacing: -.038em; line-height: .72; margin: 0 0 30px; }
.cover-deck { font-size: clamp(17px, 2.1vw, 23px); max-width: 37ch; color: #f3f1ec; margin-bottom: 26px; }
.cover-link { border-color: #f3f1ec70; color: #f3f1ec; }
.cover-link:hover { border-color: #f3f1ec; background: #f3f1ec16; }

.route-band { padding: 0; background: var(--paper); border-block: 1px solid var(--line); }
.route-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.route-grid a {
  display: grid;
  grid-template-columns: 1fr auto;
  align-content: center;
  gap: 2px 14px;
  min-height: 112px;
  padding: 20px clamp(16px, 3vw, 40px);
  text-decoration: none;
  border-inline-start: 1px solid var(--line);
}
.route-grid a:last-child { border-inline-end: 1px solid var(--line); }
.route-grid a:hover { background: var(--surface-muted); }
.route-grid strong { font: 700 28px/1.1 var(--display); }
.route-grid span { grid-row: 2; color: var(--muted); font-size: 14px; }
.route-grid b { grid-area: 1 / 2 / 3; align-self: center; color: var(--accent-text); font-size: 22px; }

.network-grid, .member-access-grid, .coin-feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.42fr);
  gap: clamp(32px, 8vw, 120px);
  align-items: start;
}
.network-intro h2, .member-access h2, .coin-feature h2 { font-size: clamp(58px, 8vw, 118px); line-height: .85; letter-spacing: -.023em; }
.network .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.network .pillar { min-height: 200px; padding: clamp(20px, 3vw, 32px); }
.network .pillar h3 { font-size: 36px; }
.text-link { font-weight: 600; text-underline-offset: 5px; }
.text-link span { margin-inline-start: 8px; }

.coin-feature {
  background: radial-gradient(ellipse at 24% 50%, #293e60 0%, #13213a 51%, #101a2c 100%);
  color: var(--on-navy);
  border-block: 1px solid var(--brass);
}
.coin-feature-grid { grid-template-columns: 1fr 1fr; align-items: center; }
.coin-feature .section-label { color: var(--brass-2); }
.coin-feature .lede { color: #d0d8e4; }
.coin-feature .hero-coin { width: min(100%, 435px); }
.coin-feature .coin-stage, .coin-feature .coin-stage::before, .coin-feature .coin-stage::after { border-color: #e2c27d51; }
.coin-feature .flip-hint { color: #bdc7d7; }
.member-access { background: var(--paper); }
.access-list { margin: 0; border-top: 1px solid var(--line); }
.access-list div { padding: 20px 0; border-bottom: 1px solid var(--line); }
.access-list dt { font: 700 32px/1 var(--display); margin-bottom: 5px; }
.access-list dd { margin: 0; color: var(--muted); }
.join-section { border-top: 1px solid var(--line); }
.join-section .tier { border-radius: 0; border-top: 3px solid var(--brass); }

.page-head {
  background: var(--paper);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
:root:not([data-theme="dark"]) .page-head { background: var(--paper); }
.page-head .wrap { position: relative; z-index: 1; }
.page-head::after {
  content: "";
  position: absolute;
  inset: 0 0 0 60%;
  background: repeating-linear-gradient(-37deg, transparent 0 18px, var(--line) 18px 19px, transparent 19px 35px);
  mask-image: linear-gradient(90deg, transparent, #000);
  pointer-events: none;
}
.page-head h1, :root:not([data-theme="dark"]) .page-head h1 { color: var(--ink); font-size: clamp(66px, 10vw, 148px); }
.page-head .lede, :root:not([data-theme="dark"]) .page-head .lede { color: var(--muted); }
.page-head .btn-ghost:hover { background: var(--surface-muted); }
.form-wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); }
.form-wrap .form, .contact-form-wrap .form { border-radius: 0; border-top: 3px solid var(--brass); }
.contact-form-wrap { max-width: 780px; }
.contact-reply { margin: 16px 0 0; }
#contact-email { margin-bottom: 0; }

@media (max-width: 860px) {
  .front-cover { min-height: 560px; background-position: 62% center; }
  .network-grid, .member-access-grid, .coin-feature-grid, .form-wrap { grid-template-columns: 1fr; }
  .coin-feature-grid .hero-coin { grid-row: 2; max-width: 360px; }
}
@media (max-width: 570px) {
  .front-cover { min-height: 540px; background-position: 65% center; }
  .front-cover h1 { font-size: clamp(77px, 17vw, 100px); }
  .route-grid, .network .pillars { grid-template-columns: 1fr; }
  .route-grid a { min-height: 80px; border-inline: 0; border-bottom: 1px solid var(--line); }
  .route-grid a:last-child { border: 0; }
  .network .pillar { min-height: auto; }
  .page-head::after { opacity: .35; }
}

/* The coin section is navy in both themes, so its hint keeps light text. */
:root .coin-feature .flip-hint { color: #bdc7d7; }
