/* ============================================================
   GATCo — Experience Concepts
   Shared design system. Museum label, not landing page.
   ============================================================ */

:root {
  --bg: #0B0C0E;
  --surface: #15181D;
  --text: #F4EFE6;
  --muted: #8A8F98;
  --gold: #C8A45C;
  --silver: #C9CDD3;
  --hairline: rgba(200, 164, 92, 0.28);
  --hairline-soft: rgba(200, 164, 92, 0.12);

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --gutter: clamp(20px, 5vw, 72px);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }

::selection {
  background: rgba(200, 164, 92, 0.32);
  color: var(--text);
}

:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 4px;
}

/* ---------- Shared top bar ---------- */

.topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 24px var(--gutter);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.brand {
  justify-self: start;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--text);
}

.topbar-center {
  justify-self: center;
  color: var(--muted);
  white-space: nowrap;
}

.topbar-link {
  justify-self: end;
  color: var(--muted);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  white-space: nowrap;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.topbar-link:hover {
  color: var(--gold);
  border-bottom-color: var(--hairline);
}

/* ---------- Shared text link ---------- */

.text-link {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  padding-bottom: 5px;
  border-bottom: 1px solid var(--hairline);
  transition: color 0.25s ease, border-color 0.25s ease;
}

.text-link:hover {
  color: var(--text);
  border-bottom-color: var(--gold);
}

/* ============================================================
   HUB
   ============================================================ */

/* Line the bar up with the 1320px content column on wide screens. */
.hub .topbar {
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
}

.hub {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
}

.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100svh - 84px);
  padding: clamp(64px, 9vh, 120px) var(--gutter) clamp(56px, 8vh, 100px);
  max-width: 1320px;
  margin: 0 auto;
  width: 100%;
}

.eyebrow {
  margin: 0 0 clamp(24px, 4vh, 40px);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero h1 {
  margin: 0;
  max-width: 16ch;
  font-family: var(--serif);
  font-size: clamp(44px, 7.2vw, 96px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.subline {
  max-width: 46ch;
  margin: clamp(24px, 3.5vh, 36px) 0 0;
  font-size: clamp(15px, 1.35vw, 18px);
  line-height: 1.55;
  color: var(--silver);
}

.note {
  margin: 20px 0 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Hub cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2.2vw, 30px);
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(72px, 11vh, 132px);
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: clamp(340px, 38vh, 440px);
  padding: clamp(22px, 2.4vw, 32px) 0 clamp(22px, 2.4vw, 30px);
  border-top: 1px solid var(--hairline);
  overflow: hidden;
}

/* thin-line / gradient motif, kept faint */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  inset: 0 0 0 auto;
  width: 44%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(200, 164, 92, 0.055) 100%
  );
  border-left: 1px solid rgba(200, 164, 92, 0.1);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 88%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 88%);
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    120% 80% at 100% 0%,
    rgba(200, 164, 92, 0.055),
    transparent 62%
  );
}

.card > * { position: relative; z-index: 1; }

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(28px, 4vh, 48px);
}

.card-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.card-dash { color: var(--muted); }

.card-status {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding-left: 10px;
  border-left: 1px solid var(--hairline-soft);
}

.card-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(30px, 3.1vw, 46px);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.card-question {
  margin: 14px 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(15px, 1.35vw, 19px);
  line-height: 1.4;
  color: var(--silver);
}

.card-desc {
  margin: 14px 0 0;
  max-width: 46ch;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--muted);
}

.card-foot {
  display: flex;
  align-items: flex-end;
  margin-top: auto;
  padding-top: clamp(24px, 4vh, 40px);
}

.card-stack {
  transition: background 0.35s ease;
}

.card-stack:hover {
  background: linear-gradient(
    180deg,
    rgba(21, 24, 29, 0.55),
    rgba(21, 24, 29, 0)
  );
}

.card-stack .card-title {
  transition: color 0.3s ease;
}

.card-stack:hover .card-title { color: var(--gold); }

/* ---------- Hub footer ---------- */

.hub-footer {
  margin-top: auto;
  padding: 24px var(--gutter) 28px;
  border-top: 1px solid var(--hairline-soft);
}

.hub-footer p {
  margin: 0;
  max-width: calc(1320px - 2 * var(--gutter));
  margin-inline: auto;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  line-height: 1.8;
  color: var(--muted);
}

/* ============================================================
   CONCEPT 02 — THE OWNERSHIP STACK
   ============================================================ */

.stack-page {
  background: var(--bg);
  overflow-x: hidden;
}

#scene {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  touch-action: pan-y;
}

.scroll-space {
  position: relative;
  z-index: 0;
  height: 600vh;
  pointer-events: none;
}

.stack-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 20px var(--gutter);
  background: linear-gradient(
    180deg,
    rgba(11, 12, 14, 0.94) 0%,
    rgba(11, 12, 14, 0.55) 62%,
    rgba(11, 12, 14, 0) 100%
  );
}

.stack-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  white-space: nowrap;
}

.stack-nav .nav-item {
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

.stack-nav a.nav-item:hover {
  color: var(--gold);
  border-bottom-color: var(--hairline);
}

.stack-nav .nav-current {
  color: var(--text);
  border-bottom-color: var(--hairline);
}

.stack-nav .nav-sep {
  color: var(--muted);
}

/* thin scroll progress */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 11;
  width: 100%;
  height: 1px;
  background: var(--gold);
  opacity: 0.65;
  transform: scaleX(0);
  transform-origin: 0 50%;
}

/* ---------- Fixed overlay ---------- */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.overlay button,
.overlay a { pointer-events: auto; }

/* ---------- Intro ---------- */

.intro {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--gutter);
  max-width: min(920px, 100%);
  pointer-events: none;
  /* Keeps the copy legible where it crosses the 3D scene. */
  text-shadow: 0 0 22px rgba(11, 12, 14, 0.9), 0 1px 2px rgba(11, 12, 14, 0.8);
}

.intro .eyebrow { margin-bottom: clamp(22px, 3vh, 32px); }

.intro h1 {
  margin: 0;
  max-width: 14ch;
  font-family: var(--serif);
  font-size: clamp(42px, 6vw, 82px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.intro-sub {
  margin: clamp(20px, 2.6vh, 28px) 0 0;
  font-family: var(--serif);
  font-size: clamp(17px, 1.7vw, 22px);
  font-style: italic;
  color: var(--silver);
}

.scroll-cue {
  position: absolute;
  left: var(--gutter);
  bottom: clamp(28px, 6vh, 56px);
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.scroll-cue::before {
  content: "";
  display: block;
  width: 1px;
  height: 34px;
  background: linear-gradient(180deg, var(--gold), transparent);
  animation: cue-drift 2.8s ease-in-out infinite;
}

@keyframes cue-drift {
  0%, 100% { opacity: 0.45; transform: scaleY(0.7); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
}

/* ---------- Finale ---------- */

.finale {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 var(--gutter);
  text-align: center;
  opacity: 0;
  pointer-events: none;
}

.finale h2 {
  margin: 0;
  max-width: 18ch;
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 68px);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.finale .text-link {
  margin-top: clamp(26px, 4vh, 40px);
  font-size: 11px;
}

.finale-note {
  margin: 22px 0 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.finale.is-visible { pointer-events: auto; }

/* A soft scrim so finale copy never sits directly on the scene. */
.finale { isolation: isolate; }

.finale::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(
    ellipse 62% 58% at 50% 50%,
    rgba(7, 8, 12, 0.86) 0%,
    rgba(7, 8, 12, 0.62) 42%,
    rgba(7, 8, 12, 0) 82%
  );
}

/* ---------- Layer rail ---------- */

.rail {
  position: fixed;
  top: 50%;
  right: clamp(14px, 2.4vw, 34px);
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 1px;
  transform: translateY(-50%);
  pointer-events: auto;
}

.rail button {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: baseline;
  min-width: 148px;
  padding: 9px 10px 9px 12px;
  border: 0;
  border-left: 1px solid var(--hairline-soft);
  background: transparent;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
  cursor: pointer;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.rail button:hover {
  color: var(--text);
  border-left-color: var(--hairline);
  background: rgba(21, 24, 29, 0.45);
}

.rail .rail-num { color: var(--muted); transition: color 0.25s ease; }

.rail button.is-active {
  color: var(--text);
  border-left-color: var(--gold);
  background: rgba(21, 24, 29, 0.55);
}

.rail button.is-active .rail-num { color: var(--gold); }

/* ---------- Projected plate labels ---------- */

.labels {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.plate-label {
  position: absolute;
  display: flex;
  align-items: baseline;
  gap: 9px;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  opacity: 0;
  will-change: left, top, opacity;
}

.plate-label .pl-num { color: var(--gold); }

/* ---------- Layer copy (tour) ---------- */

.layer-copy {
  position: fixed;
  left: var(--gutter);
  bottom: clamp(84px, 13vh, 128px);
  z-index: 3;
  width: min(430px, calc(100% - var(--gutter) * 2));
  min-height: 160px;
  pointer-events: none;
  isolation: isolate;
}

.layer-copy::before {
  content: "";
  position: absolute;
  left: calc(-1 * var(--gutter));
  bottom: -80px;
  width: min(760px, 100vw);
  height: 340px;
  z-index: -1;
  background: radial-gradient(
    ellipse 70% 60% at 22% 68%,
    rgba(7, 8, 12, 0.8) 0%,
    rgba(7, 8, 12, 0.4) 52%,
    rgba(7, 8, 12, 0) 100%
  );
}

.lc-item {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  opacity: 0;
  will-change: opacity, transform;
}

.lc-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 0;
}

.lc-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--accent, var(--gold));
  text-shadow: 0 0 10px var(--accent, transparent);
}

.lc-name {
  font-family: var(--serif);
  font-size: clamp(26px, 2.7vw, 38px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--text);
}

.lc-what {
  margin: 14px 0 0;
  max-width: 38ch;
  font-size: 15px;
  line-height: 1.55;
  color: var(--silver);
}

.lc-unlocks {
  margin: 12px 0 0;
  padding: 0;
  max-width: 40ch;
  list-style: none;
  counter-reset: unlock;
}

.lc-unlocks li {
  position: relative;
  margin: 0 0 6px;
  padding-left: 28px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--silver);
  counter-increment: unlock;
}

.lc-unlocks li::before {
  content: "0" counter(unlock);
  position: absolute;
  left: 0;
  top: 1px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--magenta, #FF6FD8);
}

.lc-unlocks strong { color: var(--text); font-weight: 500; }

.plate-label.is-active { color: var(--text); }

@media (max-width: 760px) {
  .layer-copy {
    left: 16px;
    right: 16px;
    width: auto;
    bottom: 120px; /* clears the two-row layer rail */
    min-height: 0;
  }

  .lc-name { font-size: 24px; }

  .lc-what { font-size: 13.5px; margin-top: 8px; }
}

@media (max-width: 1024px) {
  /* The rail already names every layer; on phones and tablets plate labels clip or run into it. */
  .stack-page .plate-label { display: none; }
}

/* ---------- Drawer ---------- */

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(11, 12, 14, 0.62);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0s linear 0.4s;
}

.drawer-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  cursor: pointer;
  transition: opacity 0.4s ease, visibility 0s;
}

/* The drawer lives inside .overlay, which sits under the fixed top bar.
   While it is open, lift the whole overlay above the bar so the close
   button and the backdrop receive clicks. */
body.drawer-open .overlay { z-index: 40; }
.drawer.is-open { pointer-events: auto; }

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 21;
  width: 380px;
  max-width: 100%;
  padding: 44px 34px 40px;
  background: var(--surface);
  border-left: 1px solid var(--hairline);
  overflow-y: auto;
  visibility: hidden;
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(0.22, 0.8, 0.24, 1),
              visibility 0s linear 0.45s;
}

.drawer.is-open {
  visibility: visible;
  transform: none;
  transition: transform 0.45s cubic-bezier(0.22, 0.8, 0.24, 1),
              visibility 0s;
}

.drawer-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--hairline-soft);
  background: transparent;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.drawer-close:hover {
  color: var(--gold);
  border-color: var(--hairline);
}

.drawer-num {
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.drawer h2 {
  margin: 0;
  padding-right: 40px;
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.drawer-rule {
  height: 1px;
  margin: 24px 0 26px;
  background: var(--hairline);
}

.drawer-label {
  margin: 0 0 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.drawer-copy {
  margin: 0 0 26px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--silver);
}

.drawer .text-link { margin-top: 4px; }

/* ---------- WebGL fallback ---------- */

.fallback {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: none;
  overflow-y: auto;
  padding: 132px var(--gutter) 120px;
  background: var(--bg);
}

/* `.no-webgl` is set by a page when WebGL is unavailable, and by its
   loader when a script fails to load: the plain version takes over. */
.no-webgl #scene,
.no-webgl #coin-scene,
.no-webgl #custody-scene,
.no-webgl .scroll-space,
.no-webgl .overlay,
.no-webgl .coin-vignette,
.no-webgl .custody-vignette,
.no-webgl .coin-footnote,
.no-webgl .custody-note,
.no-webgl .custody-footnote { display: none; }

.no-webgl .fallback,
.no-webgl .coin-fallback,
.no-webgl .custody-fallback { display: block; }

.fallback h2 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 400;
  line-height: 1.08;
}

.fallback-intro {
  max-width: 52ch;
  margin: 0 0 36px;
  font-size: 14px;
  color: var(--muted);
}

.fallback ol {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 760px;
}

.fallback li {
  padding: 20px 0;
  border-top: 1px solid var(--hairline-soft);
}

.fallback .fb-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--gold);
}

.fallback h3 {
  margin: 6px 0 6px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
}

.fallback p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--silver);
}

/* ---------- Visually hidden ---------- */

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

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 960px) {
  .cards { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .card-top { margin-bottom: 22px; }
  .card-foot { padding-top: 24px; }
  .card-desc { max-width: 60ch; }
}

@media (max-width: 760px) {
  .topbar {
    gap: 8px;
    padding: 14px 12px;
    font-size: 11px;
    letter-spacing: 0.04em;
  }

  .brand { font-size: 19px; }

  .topbar-center {
    font-size: 11px;
    letter-spacing: 0.04em;
  }

  .topbar-link { font-size: 11px; }

  .hero {
    min-height: calc(100svh - 72px);
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .hero h1 { font-size: clamp(40px, 11.5vw, 58px); }

  .subline { max-width: 100%; }

  .cards {
    gap: 0;
    padding-bottom: 72px;
  }

  .card {
    padding: 24px 0 30px;
    border-bottom: 1px solid var(--hairline-soft);
  }

  .card:last-child { border-bottom: 0; }

  .card-title { font-size: clamp(32px, 9vw, 42px); }

  .card-question { font-size: 17px; }

  .card-desc { font-size: 13.5px; }

  .hub-footer p { font-size: 11px; }

  /* stack page */

  .stack-topbar {
    padding: 14px 12px;
    gap: 8px;
  }

  .stack-topbar .brand { font-size: 18px; }

  .stack-topbar .topbar-link { font-size: 11px; }

  .stack-nav { font-size: 11px; gap: 6px; }

  .intro {
    padding: 0 20px;
    justify-content: center;
  }

  .intro h1 { font-size: clamp(38px, 10.5vw, 54px); max-width: 12ch; }

  .intro-sub { font-size: 16px; }

  /* Follow the subline: a fixed bottom offset runs into it on short phones. */
  .scroll-cue { position: static; margin-top: 24px; font-size: 11px; }

  .finale { padding: 0 24px 88px; }

  .finale h2 { font-size: clamp(32px, 8.6vw, 46px); }

  .finale-note { font-size: 11px; }

  .rail {
    top: auto;
    right: 10px;
    bottom: 10px;
    left: 10px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    transform: none;
    background: rgba(11, 12, 14, 0.82);
    border-top: 1px solid var(--hairline);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    padding: 4px 6px;
  }

  .rail button {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    justify-content: flex-start;
    gap: 7px;
    min-width: 0;
    padding: 7px 4px;
    border-left: 0;
    border-top: 1px solid transparent;
    font-size: 11px;
    letter-spacing: 0.02em;
    text-align: left;
    background: transparent;
  }

  .rail button:nth-child(n + 4) {
    border-top-color: var(--hairline-soft);
  }

  .rail button:hover { background: transparent; }

  .rail .rail-num { font-size: 11px; letter-spacing: 0.04em; }

  .rail button.is-active {
    border-top-color: var(--gold);
    background: transparent;
  }

  .plate-label { font-size: 11px; letter-spacing: 0.04em; }

  .drawer {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-height: 80vh;
    padding: 38px 24px 30px;
    border-left: 0;
    border-top: 1px solid var(--hairline);
    transform: translateY(100%);
  }

  .drawer.is-open { transform: none; }

  .drawer h2 { font-size: 28px; }

  .fallback { padding: 108px 20px 96px; }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-cue::before { animation: none; }
  .card-stack,
  .card-stack .card-title,
  .text-link,
  .rail button { transition: none; }
  .drawer,
  .drawer-backdrop { transition-duration: 0.01s; }
}

/* ============================================================
   CONCEPT 01 — ONE OUNCE
   ============================================================ */

.coin-page {
  background: var(--bg);
  overflow-x: hidden;
}

#coin-scene {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  touch-action: pan-y;
}

.coin-vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(
    ellipse at 50% 46%,
    rgba(11, 12, 14, 0) 34%,
    rgba(11, 12, 14, 0.42) 76%,
    rgba(11, 12, 14, 0.72) 100%
  );
}

.coin-scroll-space {
  position: relative;
  z-index: 0;
  height: 500vh;
  pointer-events: none;
}

.coin-overlay { z-index: 2; }

.coin-intro h1 { max-width: 14ch; }

/* Keeps the subline clear of the coin at laptop widths. */
.coin-intro .intro-sub { max-width: 36ch; }

/* ---------- Story beats ---------- */

.beats {
  position: fixed;
  left: var(--gutter);
  bottom: clamp(84px, 13vh, 128px);
  z-index: 3;
  width: min(560px, calc(100% - var(--gutter) * 2));
  min-height: 2.6em;
  pointer-events: none;
}

.coin-beat {
  position: absolute;
  left: 0;
  bottom: 0;
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(23px, 2.6vw, 36px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--text);
  opacity: 0;
  will-change: opacity;
}

.beat-num {
  flex: none;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--gold);
}

/* ---------- Finale + proof chips ---------- */

.coin-finale::before {
  background: radial-gradient(
    ellipse 60% 42% at 50% 28%,
    rgba(7, 8, 12, 0.86) 0%,
    rgba(7, 8, 12, 0.55) 50%,
    rgba(7, 8, 12, 0) 85%
  );
}

.coin-finale {
  justify-content: flex-start;
  padding-top: clamp(110px, 16vh, 168px);
  padding-bottom: 72px;
}

.proof-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: clamp(24px, 4vh, 38px) 0 0;
  padding: 0;
  list-style: none;
}

.proof-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 13px;
  border: 1px solid var(--hairline);
  background: rgba(21, 24, 29, 0.42);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.proof-chip:hover {
  color: var(--text);
  border-color: var(--gold);
  background: rgba(21, 24, 29, 0.72);
}

.coin-footnote {
  position: fixed;
  right: var(--gutter);
  bottom: 18px;
  z-index: 3;
  margin: 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  pointer-events: none;
}

/* ---------- WebGL fallback ---------- */

.coin-fallback {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: none;
  overflow-y: auto;
  padding: 132px var(--gutter) 120px;
  background: var(--bg);
}


.coin-fallback h2 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: clamp(32px, 4.6vw, 54px);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.02em;
}

.coin-fallback .fallback-intro {
  max-width: 54ch;
  margin: 0 0 38px;
  font-size: 14px;
  color: var(--muted);
}

.fallback-beats {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 760px;
}

.fallback-beats li {
  padding: 20px 0;
  border-top: 1px solid var(--hairline-soft);
}

.fallback-beats h3 {
  margin: 6px 0 6px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
}

.fallback-beats p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--silver);
}

.coin-fallback .proof-chips { justify-content: flex-start; }

.fallback-note {
  margin: 32px 0 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 760px) {
  .coin-intro h1 { font-size: clamp(38px, 10.2vw, 54px); max-width: 12ch; }

  .beats {
    left: 20px;
    right: 20px;
    bottom: 138px;
    width: auto;
  }

  .coin-beat { font-size: clamp(21px, 6vw, 28px); gap: 10px; }

  .coin-finale {
    padding: 92px 20px 96px;
  }

  .coin-finale h2 { font-size: clamp(31px, 8.4vw, 44px); }

  .coin-finale .proof-chips { gap: 8px; margin-top: 26px; }

  .proof-chip {
    font-size: 11px;
    padding: 7px 10px;
    letter-spacing: 0.06em;
  }

  .coin-footnote {
    right: auto;
    left: 20px;
    bottom: 12px;
    font-size: 10px;
  }

  .coin-fallback { padding: 108px 20px 96px; }
}

/* hub card 01 now enters Concept 01 */
.card-coin {
  transition: background 0.35s ease;
}

.card-coin:hover {
  background: linear-gradient(
    180deg,
    rgba(21, 24, 29, 0.55),
    rgba(21, 24, 29, 0)
  );
}

.card-coin .card-title {
  transition: color 0.3s ease;
}

.card-coin:hover .card-title { color: var(--gold); }

.card-coin .text-link::after {
  content: "";
  position: absolute;
  inset: 0;
}

/* ============================================================
   CONCEPT 03 — CHAIN OF CUSTODY
   ============================================================ */

.custody-page {
  background: #07080C;
  overflow-x: hidden;
}

#custody-scene {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  touch-action: pan-y;
}

.custody-vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(
    ellipse at 50% 44%,
    rgba(11, 12, 14, 0) 30%,
    rgba(11, 12, 14, 0.38) 72%,
    rgba(11, 12, 14, 0.78) 100%
  );
}

.custody-scroll-space {
  position: relative;
  z-index: 0;
  height: 1150vh;
  pointer-events: none;
}

.custody-overlay { z-index: 2; }

.custody-intro h1 { max-width: 15ch; }

.custody-intro { isolation: isolate; }

.custody-intro::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(7, 8, 12, 0.9) 0%,
    rgba(7, 8, 12, 0.72) 32%,
    rgba(7, 8, 12, 0) 62%
  );
}

/* ---------- Story beats ---------- */

.custody-beats {
  position: fixed;
  left: var(--gutter);
  bottom: clamp(92px, 14vh, 136px);
  z-index: 3;
  width: min(620px, calc(100% - var(--gutter) * 2));
  min-height: 2.6em;
  pointer-events: none;
}

.custody-beat {
  position: absolute;
  left: 0;
  bottom: 0;
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(22px, 2.5vw, 34px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--text);
  opacity: 0;
  will-change: opacity;
}

.custody-beats::before,
.beats::before {
  content: "";
  position: absolute;
  left: calc(-1 * var(--gutter));
  bottom: -70px;
  width: min(820px, 100vw);
  height: 280px;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(
    ellipse 70% 60% at 22% 70%,
    rgba(7, 8, 12, 0.78) 0%,
    rgba(7, 8, 12, 0.42) 50%,
    rgba(7, 8, 12, 0) 100%
  );
}

.custody-beats,
.beats { isolation: isolate; }

/* ---------- Projected node labels ---------- */

.custody-labels {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.custody-label {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  border: 1px solid var(--hairline-soft);
  background: rgba(11, 12, 14, 0.58);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  cursor: pointer;
  transform: translate(-50%, -100%);
  opacity: 0;
  will-change: left, top, opacity;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.custody-label .cl-dot {
  flex: none;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent, var(--gold));
  box-shadow: 0 0 6px var(--accent, var(--gold));
}

.custody-label:hover,
.custody-label.is-active {
  color: var(--text);
  border-color: var(--hairline);
  background: rgba(21, 24, 29, 0.78);
}

.custody-label.is-active {
  border-color: var(--accent, var(--hairline));
  box-shadow: 0 0 14px -4px var(--accent, transparent);
}

.custody-label.is-active .cl-dot {
  background: var(--text);
}

/* Institutions and their SATCHELs: smaller chips that appear in their beat. */
.custody-label.is-secondary {
  padding: 4px 7px;
  font-size: 9px;
  gap: 5px;
}

/* ---------- Persistent notes ---------- */

.custody-note,
.custody-footnote {
  position: fixed;
  bottom: 18px;
  z-index: 3;
  margin: 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  pointer-events: none;
}

.custody-note { left: var(--gutter); }
.custody-footnote { right: var(--gutter); }

/* Side by side they overlap below ~900px: stack them, as on phones. */
@media (min-width: 761px) and (max-width: 900px) {
  .custody-note { bottom: 36px; }
  .custody-footnote { left: var(--gutter); right: auto; bottom: 14px; }
}

/* ---------- Finale ---------- */

/* Back on the map, the closing copy sits where the intro did. */
.custody-finale {
  align-items: flex-start;
  text-align: left;
}

.custody-finale::before {
  background: linear-gradient(
    90deg,
    rgba(7, 8, 12, 0.9) 0%,
    rgba(7, 8, 12, 0.72) 32%,
    rgba(7, 8, 12, 0) 62%
  );
}

.custody-finale h2 { max-width: 14ch; }

.custody-finale .proof-chips {
  justify-content: flex-start;
  max-width: 560px;
}

/* ---------- WebGL fallback ---------- */

.custody-fallback {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: none;
  overflow-y: auto;
  padding: 132px var(--gutter) 120px;
  background: var(--bg);
}


.custody-fallback h2 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: clamp(32px, 4.6vw, 54px);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.02em;
}

.custody-fallback .fallback-intro {
  max-width: 56ch;
  margin: 0 0 36px;
  font-size: 14px;
  color: var(--muted);
}

.fallback-heading {
  margin: 34px 0 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.custody-fallback ol,
.fallback-routes {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 760px;
}

.custody-fallback li {
  padding: 18px 0;
  border-top: 1px solid var(--hairline-soft);
}

.custody-fallback h4 {
  margin: 6px 0 6px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
}

.custody-fallback p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--silver);
}

.fallback-routes {
  margin-top: 14px;
}

.fallback-routes li {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--silver);
}

/* ---------- Hub card 03 now enters Concept 03 ---------- */

.card-custody {
  transition: background 0.35s ease;
}

.card-custody:hover {
  background: linear-gradient(
    180deg,
    rgba(21, 24, 29, 0.55),
    rgba(21, 24, 29, 0)
  );
}

.card-custody .card-title {
  transition: color 0.3s ease;
}

.card-custody:hover .card-title { color: var(--gold); }

.card-custody .text-link::after {
  content: "";
  position: absolute;
  inset: 0;
}

@media (max-width: 760px) {
  .custody-intro h1 {
    font-size: clamp(38px, 10.2vw, 54px);
    max-width: 12ch;
  }

  .custody-beats {
    left: 20px;
    right: 20px;
    bottom: 142px;
    width: auto;
  }

  .custody-beat {
    font-size: clamp(20px, 5.8vw, 27px);
    gap: 10px;
  }

  .custody-note,
  .custody-footnote {
    left: 20px;
    right: auto;
    font-size: 9px;
    letter-spacing: 0.04em;
  }

  .custody-note { bottom: 36px; }
  .custody-footnote { bottom: 12px; }

  .custody-finale {
    justify-content: flex-start;
    padding: 92px 20px 96px;
  }

  .custody-finale::before {
    background: linear-gradient(
      180deg,
      rgba(7, 8, 12, 0.9) 0%,
      rgba(7, 8, 12, 0.7) 45%,
      rgba(7, 8, 12, 0) 75%
    );
  }

  .custody-finale h2 { font-size: clamp(31px, 8.4vw, 44px); }

  .custody-finale .proof-chips { gap: 8px; margin-top: 24px; }

  .custody-label {
    font-size: 9px;
    letter-spacing: 0.04em;
    padding: 5px 7px;
  }

  .custody-fallback { padding: 108px 20px 96px; }
}

/* ============================================================
   MOBILE PASS — phone-only adjustments (max-width: 760px)
   ============================================================ */
@media (max-width: 760px) {
  /* Touch targets: iOS wants 44px. Pad the tap area without moving the type. */
  .topbar {
    /* The ends size to their content, so the link can't spill into the nav. */
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 4px 12px;
  }

  .brand {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 8px 0 0;
  }

  /* Drop the wordmark from the phone top bar: it is what pushes the page past the screen. */
  .topbar-center { display: none; }

  .topbar-link {
    grid-column: 3; /* stays right-aligned on the hub, where the middle column is hidden */
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 0 0 8px;
    border-bottom: 0;
  }

  /* One nav item on phones: the current concept. Long names wrap to two lines. */
  .stack-nav a.nav-item:not(.nav-current),
  .stack-nav .nav-sep { display: none; }

  .stack-nav { white-space: normal; }

  .stack-nav a.nav-current {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    text-align: center;
    line-height: 1.3;
  }

  /* Whole hub card is the link; give the footer row a full-width 44px target. */
  .card-foot { padding-top: 20px; }

  .card .text-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 44px;
    padding: 0;
    border-bottom: 0;
    font-size: 12px;
    letter-spacing: 0.1em;
  }

  .card .text-link::before {
    content: "";
    order: 2;
    width: 24px;
    height: 1px;
    background: var(--hairline);
  }

  /* Finale and drawer links get a 44px row too; the inline "Documents" link gets 44px of vertical padding. */
  .finale .text-link,
  .coin-finale .text-link,
  .custody-finale .text-link,
  .drawer .text-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0;
  }

  /* Inline links in the closing copy and footnotes get 44px of tap area. */
  .finale p a,
  .coin-finale p a,
  .custody-finale p a,
  .sr-only a,
  .coin-note a,
  .custody-note a,
  .coin-footnote a,
  .custody-footnote a {
    display: inline-block;
    padding: 12px 0;
  }

  .proof-chip {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 12px;
  }

  /* Concept 03 map chips: 44px tall and never wider than the screen. The chip is
     centred on its map point (transform -50%,-100%), so it has to fit in half a
     screen from wherever the point sits; long names wrap to a second line instead. */
  .custody-label {
    min-height: 44px;
    padding: 0 10px;
    font-size: 10px;
    white-space: normal;
    line-height: 1.25;
    /* It is centred on its map point: half the screen is the real budget. */
    max-width: calc(50vw - 12px);
    text-align: center;
  }

  /* The chip centres on its map point, so half a screen is its real budget; long names wrap. */
  .custody-label .cl-name {
    white-space: normal;
    max-width: calc(50vw - 40px);
    line-height: 1.25;
  }

  .custody-label.is-secondary {
    padding: 0 8px;
    font-size: 10px;
    letter-spacing: 0.06em;
  }

  /* Concept 02 layer rail: full-height rows so each layer is a 44px tap. */
  .rail button {
    min-height: 44px;
    padding: 6px 10px 6px 12px;
  }

  .drawer-close { width: 44px; height: 44px; }

  /* Small mono type: raise the floor so it reads on a phone without zooming. */
  .coin-footnote,
  .custody-footnote,
  .custody-note { font-size: 11px; letter-spacing: 0.06em; }

  .eyebrow,
  .card-num,
  .card-status { font-size: 12px; }

  .subline,
  .card-desc,
  .note { font-size: 15px; line-height: 1.55; }

  .finale p,
  .coin-finale p,
  .custody-finale p { font-size: 15px; }

  /* Long scroll pages: story copy and notes stay clear of the home indicator. */
  .beats,
  .custody-beats { bottom: calc(142px + env(safe-area-inset-bottom, 0px)); }

  .coin-footnote,
  .custody-footnote { bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }

  .coin-note,
  .custody-note { bottom: calc(36px + env(safe-area-inset-bottom, 0px)); }
}
/* ---------- end mobile pass ---------- */

/* Below ~370px both custody notes wrap to two lines: lift the note above the footnote. */
@media (max-width: 370px) {
  .custody-note { bottom: calc(56px + env(safe-area-inset-bottom, 0px)); }
}

/* Touch screens wider than the phone pass (iPad portrait): 44px tap areas on the
   header and the layer rail, without moving any text or underline. */
@media (pointer: coarse) and (min-width: 761px) {
  .brand,
  .topbar-link,
  .stack-nav a.nav-item { position: relative; }

  .brand::after,
  .topbar-link::after,
  .stack-nav a.nav-item::after {
    content: "";
    position: absolute;
    inset: -12px -4px;
  }

  .rail button { min-height: 44px; }
}

/* ============================================================
   ONE STORY — the three concepts as chapters of one scroll
   ============================================================ */

.story { overflow-x: hidden; }

/* Only the chapter at mid-screen shows. The next one fades in across the
   one-screen hold between chapters, where both scenes rest. */
.story .chapter {
  background: none;
  overflow: visible;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0s linear 0.6s;
}

.story .chapter.is-current {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.6s ease;
}

/* Plain version: every chapter's text, one after another. */
.story.no-webgl .chapter { opacity: 1; visibility: visible; }

.story .fallback,
.story .coin-fallback,
.story .custody-fallback { position: static; padding-bottom: 0; }

.story-error { padding: 132px var(--gutter) 0; color: var(--muted); }

/* ============================================================
   REBRAND — "The mint, not the exchange"
   Black, ivory and gold. Full name in the header, a real button,
   and paper sections for proof and documents.
   ============================================================ */

:root {
  --paper: #F3EEE3;
  --paper-deep: #E9E2D2;
  --ink: #16181D;
  --ink-soft: #4B4F58;
  --gold-deep: #7C5E22;
  --rule: rgba(22, 24, 29, 0.16);
}

/* ---------- Wordmark ---------- */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.brand-name {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1.3;
  text-transform: uppercase;
  white-space: nowrap;
}

/* "Co" keeps its small o, as in GATCo. */
.brand-o { text-transform: none; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border: 1px solid var(--gold);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn-gold { background: var(--gold); color: #0B0C0E; }
.btn-gold:hover { background: #E3C98A; border-color: #E3C98A; }

.btn-line {
  border-color: var(--hairline);
  background: rgba(11, 12, 14, 0.4);
  color: var(--text);
}

.btn-line:hover { border-color: var(--gold); color: var(--gold); }

.topbar-cta {
  justify-self: end;
  min-height: 38px;
  padding: 0 18px;
}

.intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: clamp(24px, 3.6vh, 38px) 0 0;
  text-shadow: none;
}

.finale .btn { margin-top: clamp(26px, 4vh, 40px); }

.inline-link {
  color: var(--text);
  border-bottom: 1px solid var(--gold);
  transition: color 0.2s ease;
}

.inline-link:hover { color: var(--gold); }

/* Faded-out copy must not catch clicks. */
.intro[aria-hidden="true"] a,
.finale[aria-hidden="true"] a { pointer-events: none; }

/* ---------- Shorter film ---------- */

.coin-scroll-space { height: 420vh; }
.stack-page .scroll-space { height: 500vh; }
.custody-scroll-space { height: 680vh; }

/* Plain labels instead of glowing ones. */
.lc-num { text-shadow: none; }
.custody-label .cl-dot,
.custody-label.is-active { box-shadow: none; }
.lc-unlocks li::before { color: var(--gold); }

.story .stack-nav { gap: clamp(14px, 1.8vw, 26px); }

/* ---------- Sheets: content that scrolls over the film ---------- */

.sheet {
  position: relative;
  z-index: 6;
}

/* ---------- Narrow screens ---------- */

/* The header shows the story's three chapters first; the site's sections join as room allows. */
@media (max-width: 1560px) {
  .story .stack-nav .nav-item:nth-child(n + 4) { display: none; }
}

@media (max-width: 760px) {
  .brand { gap: 9px; }
  .brand-mark { width: 34px; height: 34px; }
  .brand-name { font-size: 10.5px; letter-spacing: 0.14em; }
  .brand-break { display: block; }

  /* The name and the button are the phone header; sections are a scroll away. */
  .story .stack-nav { display: none; }
  .topbar-cta { grid-column: 3; min-height: 38px; padding: 0 12px; font-size: 10px; letter-spacing: 0.1em; }

  /* Phone hero: copy sits high and left, the coin stands to its right, and the
     first caption has the bottom of the screen to itself. */
  .coin-intro { justify-content: flex-start; padding-top: 104px; }
  .coin-intro h1 { max-width: 11ch; }
  .coin-intro .btn-line,
  .coin-intro .scroll-cue { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
}

/* ============================================================
   LOGO INTRO — the full logo opens the landing page. The hero's 3D
   coin stands behind it where the seal is; a hole opens over the seal
   and the coin spins there (assets/intro.js, introState in coin.js).
   The seal sits at centre (521, 366) in the 1040 × 1014 logo, 662 wide.
   ============================================================ */

.logo-intro {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  overflow: hidden;
  cursor: pointer;
}

.logo-intro[hidden] { display: none; }

.li-bg {
  position: absolute;
  inset: 0;
  background: #060606; /* the logo artwork's own black */
}

.li-stage {
  position: relative;
  width: min(92vw, 86vh);
  width: min(92vw, 86svh);
  aspect-ratio: 1040 / 1014;
}

.li-logo {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.9s ease;
}

.logo-intro.is-ready .li-logo { opacity: 1; }

/* The hole: over the seal in the logo, and following the coin in the black.
   --hole-a is how solid the hole still is: 1 covered, 0 open. */
.logo-intro.has-hole .li-logo {
  -webkit-mask-image: radial-gradient(circle at 50.096% 36.095%, rgba(0, 0, 0, var(--hole-a, 0)) calc(var(--logo-hole) - 0.5px), #000 calc(var(--logo-hole) + 0.5px));
  mask-image: radial-gradient(circle at 50.096% 36.095%, rgba(0, 0, 0, var(--hole-a, 0)) calc(var(--logo-hole) - 0.5px), #000 calc(var(--logo-hole) + 0.5px));
}

/* The black's hole is simply open: until the logo's own hole dissolves, the
   logo above still covers it. (Fading both at once dims the seal mid-way.) */
.logo-intro.has-hole .li-bg {
  -webkit-mask-image: radial-gradient(circle at var(--hole-x) var(--hole-y), transparent calc(var(--hole-r) - 0.5px), #000 calc(var(--hole-r) + 0.5px));
  mask-image: radial-gradient(circle at var(--hole-x) var(--hole-y), transparent calc(var(--hole-r) - 0.5px), #000 calc(var(--hole-r) + 0.5px));
}

/* ============================================================
   MARBLE — everything after the story. The sections and footer are the
   main site's own (markup in full/index.html, styles in site.css, which
   is the site stylesheet scoped to .paper). This block only lays the one
   continuous face of marble behind them and fits the header to it.
   ============================================================ */

/* One face of marble runs behind every section: a tall slab built from the
   marble photo (four orientations cross-faded, seamless top to bottom),
   washed lighter toward the copy on the left. Narrow screens get it at
   twice their width: at 1500px a phone only sees a plain sliver of it. */
.paper {
  background:
    linear-gradient(to right, rgba(255, 252, 246, 0.88), rgba(255, 252, 246, 0.46)),
    url("brand/marble-slab.webp") center top / max(100%, min(1500px, 200vw)) auto repeat-y,
    #f7f4ee;
  border-top: 1px solid #d2c6b3;
}

/* The site's page-wide tint layer is not wanted over the slab. */
.paper::before { content: none; }

/* Sections sit on the slab with no rules or fills between them. */
.paper .section {
  border-top: 0;
  background: none;
}

/* Section anchors clear the fixed header. */
.paper .section,
.paper [id] { scroll-margin-top: 84px; }

/* The header over the marble: a cream bar with a hairline, as on the site. */
body.on-paper .stack-topbar {
  background: rgba(255, 252, 247, 0.96);
  border-bottom: 1px solid #dfd7c9;
}

body.on-paper .brand,
body.on-paper .stack-nav .nav-current { color: #22211e; }
body.on-paper .stack-nav { color: #59534a; }
body.on-paper .stack-nav a.nav-item:hover { color: #72511e; }
body.on-paper .stack-nav .nav-current { border-bottom-color: #8f682d; }
body.on-paper .topbar-cta { background: #27231d; border-color: #27231d; color: #fffaf0; }
body.on-paper .scroll-progress { opacity: 0; }

@media print {
  .paper { background: #fff; }
}

/* ============================================================
   TYPE FLOOR — no copy on the page is set smaller than 16px.
   One place, stated with !important, because the sizes it overrides
   are spread over many rules and breakpoints (and site.css is generated).
   ============================================================ */

/* --- header and story --- */
.topbar,
.brand-name,
.stack-nav,
.stack-nav .nav-item,
.btn,
.topbar-cta,
.eyebrow,
.scroll-cue,
.beat-num,
.proof-chip,
.custody-label,
.custody-label.is-secondary,
.custody-label .cl-name,
.drawer-copy,
.drawer-label,
.drawer-num,
.text-link,
.lc-num,
.lc-what,
.lc-unlocks li,
.lc-unlocks li::before,
.rail button,
.rail .rail-num,
.rail .rail-label,
.finale-note,
.finale p,
.note,
.coin-footnote,
.custody-note,
.custody-footnote { font-size: 16px !important; }

/* Wide-set capitals take a lot of room at this size: tighten them. */
.eyebrow { letter-spacing: 0.12em; }
.stack-nav .nav-item { letter-spacing: 0.04em; }
.btn, .proof-chip, .scroll-cue, .rail button, .custody-label, .text-link { letter-spacing: 0.06em; }
.brand-name { letter-spacing: 0.1em; }
.beat-num, .lc-num { letter-spacing: 0.08em; }

/* Header: brand left, sections centred in the room between, button right. */
.story .topbar { grid-template-columns: auto minmax(0, 1fr) auto; }
.story .stack-nav { gap: clamp(12px, 1.4vw, 24px); }
.topbar-cta { min-height: 42px; }
.cta-short { display: none; }

/* All eight sections need a wide screen; below that the site's five, then none. */
@media (max-width: 1899px) {
  .story .stack-nav .nav-item:nth-child(n + 4) { display: inline; }
  .story .stack-nav .nav-item:nth-child(-n + 3) { display: none; }
}

@media (max-width: 1360px) {
  .story .stack-nav { display: none; }
}

/* Layer rail and captions at the larger size. */
.rail button { grid-template-columns: 30px 1fr; min-width: 0; padding: 10px 14px; }
.lc-unlocks li { padding-left: 36px; }
.proof-chip { min-height: 42px; padding: 8px 16px; }
.custody-label { padding: 7px 12px; }
.custody-label.is-secondary { padding: 6px 10px; }
.stack-page .plate-label { display: none; }

@media (max-width: 760px) {
  .brand-name { letter-spacing: 0.06em; line-height: 1.2; }
  .cta-long { display: none; }
  .cta-short { display: inline; }
  .topbar-cta { padding: 0 14px; }

  /* Two columns of three: each layer name fits on one line. */
  .rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rail button:nth-child(n + 3) { border-top-color: var(--hairline-soft); }
  .rail button.is-active { border-top-color: var(--gold); }
  .layer-copy { bottom: 172px; }

  .eyebrow { letter-spacing: 0.08em; }
  .custody-label { max-width: calc(60vw - 12px); }
  .custody-label .cl-name { max-width: calc(60vw - 40px); }
}

/* --- the site sections on marble --- */
.paper :is(
  .kicker, .btn, .link, .text-link, .also, .also a,
  .bridge__label, .briefing__legal, .briefing__points li,
  .callout p, .check span,
  .claim__means, .claim__proof, .claim__label, .claim__proof a,
  .extend__item, .extend__item span, .extend__label,
  .field label, .field legend, .req,
  .foot-brand__desc, .foot-col__head, .foot-col a,
  .layer-card__label,
  .member__cv li, .member__cv li a, .member__role,
  .partner__desc, .partner__does, .partner__role,
  .signup label,
  .step p, .step__party,
  .ticks li,
  .tier__role, .tier__cell span, .tiers__law,
  .site-foot__disclaimer, .site-foot__base p,
  .product__line, .hero__caption,
  input, select, textarea, button
) { font-size: 16px !important; }

.paper :is(.kicker, .claim__label, .step__party, .tier__role, .partner__role, .layer-card__label, .bridge__label,
  .foot-col__head, .extend__label, .field label, .field legend, .signup label, .tiers__law, .member__role, .extend__item span) { letter-spacing: 0.1em !important; }
.paper .btn { letter-spacing: 0.06em !important; }

/* ============================================================
   TOUCH — 44px tap areas for the marble sections' small links and
   the briefing form's checkboxes (they were 26px tall).
   ============================================================ */
@media (pointer: coarse), (max-width: 760px) {
  .paper :is(.link, .foot-col a) { display: inline-flex; align-items: center; min-height: 44px; }
  .paper .foot-col { gap: 0; }
  .paper .check { min-height: 44px; }
}
