/* ==========================================================================
   America Coin ($AMER)
   Design language: civic / editorial. Engraved-document typography on white,
   Old Glory red and deep navy, with dark "vault" bands for the coin plates.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */

:root {
  /* Surfaces — white-dominant */
  --paper: #ffffff;
  --paper-wash: #f3f6fb;
  --paper-edge: #e7edf6;

  /* Deep blues */
  --navy: #0a2240;
  --navy-mid: #081c34;
  --navy-deep: #051222;
  --navy-vault: #04101f;

  /* Flag colors */
  --red: #b22234; /* Old Glory Red */
  --red-deep: #8d1728;
  --blue: #1c4f9c;
  --blue-bright: #2f6fc4;

  /* Ink */
  --ink: #0a2240;
  --body: #3d4a5d;
  --muted: #6b7a90;
  --ink-invert: #ffffff;
  --body-invert: #c3d3e8;
  --muted-invert: #8ba2c0;

  /* Lines */
  --rule: #dbe3ef;
  --rule-soft: #eaeff7;
  --rule-invert: rgba(255, 255, 255, 0.14);

  /* Type */
  --display: "Bodoni Moda", "Bodoni MT", Didot, "Times New Roman", serif;
  --sans: "Public Sans", "Helvetica Neue", Helvetica, sans-serif;

  /* Space */
  --gutter: clamp(20px, 5vw, 56px);
  --band: clamp(72px, 9vw, 132px);
  --shell: 1240px;

  /* Depth */
  --lift-sm: 0 1px 2px rgba(10, 34, 64, 0.06), 0 6px 18px rgba(10, 34, 64, 0.06);
  --lift-md: 0 2px 4px rgba(10, 34, 64, 0.08), 0 18px 44px rgba(10, 34, 64, 0.1);
  --lift-vault: 0 24px 60px rgba(4, 16, 31, 0.42);

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  /* Ornament */
  --star-red: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23b22234'%3E%3Cpath d='M12 1.7l2.9 7.1 7.6.5-5.8 4.9 1.8 7.4L12 17.5l-6.5 4.1 1.8-7.4-5.8-4.9 7.6-.5z'/%3E%3C/svg%3E");
  --star-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M12 1.7l2.9 7.1 7.6.5-5.8 4.9 1.8 7.4L12 17.5l-6.5 4.1 1.8-7.4-5.8-4.9 7.6-.5z'/%3E%3C/svg%3E");
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

/* Keep anchor targets clear of the sticky masthead. */
[id] {
  scroll-margin-top: 96px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  color: var(--ink);
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(44px, 6.4vw, 92px);
}

h2 {
  font-size: clamp(32px, 4.1vw, 56px);
}

h3 {
  font-size: 21px;
  line-height: 1.25;
}

p {
  margin: 0 0 1.15em;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

b,
strong {
  color: var(--ink);
  font-weight: 700;
}

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

::selection {
  background: var(--navy);
  color: #fff;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: var(--gutter);
  z-index: 100;
  padding: 11px 18px;
  background: var(--navy);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 12px;
}

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.band {
  padding-block: var(--band);
  position: relative;
}

.band--wash {
  background: var(--paper-wash);
  border-block: 1px solid var(--paper-edge);
}

/* Tricolor rule — used only against navy, where the white bar reads. */
.tricolor {
  height: 4px;
  border: 0;
  margin: 0;
  background: linear-gradient(
    90deg,
    var(--red) 0 34%,
    #ffffff 34% 66%,
    var(--blue) 66%
  );
}

/* Section eyebrow: hairline + star + label */
.label {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 18px;
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.label::before {
  content: "";
  width: 11px;
  height: 11px;
  flex: none;
  background: var(--star-red) center / contain no-repeat;
}

.label--invert {
  color: #fff;
}

.label--invert::before {
  background-image: var(--star-light);
}

.lede {
  max-width: 62ch;
  font-size: clamp(18px, 1.55vw, 21px);
  line-height: 1.58;
  color: var(--body);
}

h2 + .lede {
  margin-top: 18px;
}

.prose {
  max-width: 68ch;
}

.prose > p + p {
  margin-top: 0;
}

/* Editorial two-column: sticky heading rail + body column */
.editorial {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(32px, 6vw, 90px);
  align-items: start;
}

.editorial__head {
  position: sticky;
  top: 116px;
}

.editorial__head h2 {
  margin-bottom: 20px;
}

.editorial__note {
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
  letter-spacing: 0.01em;
}

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border: 1px solid transparent;
  border-radius: 3px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease),
    border-color 0.2s var(--ease), color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: var(--red);
  color: #fff;
  box-shadow: var(--lift-sm);
}

.btn--primary:hover {
  background: var(--red-deep);
  box-shadow: var(--lift-md);
}

.btn--ghost {
  border-color: var(--rule);
  color: var(--ink);
  background: transparent;
}

.btn--ghost:hover {
  border-color: var(--navy);
  background: var(--paper-wash);
}

.btn__arrow {
  transition: transform 0.2s var(--ease);
}

.btn:hover .btn__arrow {
  transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   5. Masthead
   -------------------------------------------------------------------------- */

.topbar {
  background: var(--navy-deep);
  color: var(--muted-invert);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 34px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.topbar__inner p {
  margin: 0;
}

.topbar__ticker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  white-space: nowrap;
}

.topbar__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(178, 34, 52, 0.28);
}

.masthead {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--rule-soft);
  transition: box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

.masthead.is-stuck {
  border-bottom-color: var(--rule);
  box-shadow: 0 1px 0 var(--rule), 0 10px 30px rgba(10, 34, 64, 0.07);
}

.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: var(--ink);
  text-decoration: none;
}

.wordmark__seal {
  width: 34px;
  height: 34px;
  flex: none;
}

.wordmark__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.wordmark__name {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.wordmark__ticker {
  color: var(--red);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 34px);
}

.nav__link {
  position: relative;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding-block: 6px;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.24s var(--ease);
}

.nav__link:hover::after,
.nav__link.is-current::after {
  transform: scaleX(1);
}

.masthead__cta {
  padding: 11px 19px;
  font-size: 11.5px;
}

/* Mobile menu control */
.menu-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 3px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}

.menu-toggle__bars {
  position: relative;
  width: 15px;
  height: 9px;
  flex: none;
}

.menu-toggle__bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.24s var(--ease), opacity 0.18s var(--ease);
}

.menu-toggle__bars span:nth-child(1) {
  top: 0;
}
.menu-toggle__bars span:nth-child(2) {
  top: 3.75px;
}
.menu-toggle__bars span:nth-child(3) {
  top: 7.5px;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(1) {
  transform: translateY(3.75px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(2) {
  opacity: 0;
}
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(3) {
  transform: translateY(-3.75px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(56px, 7vw, 104px) clamp(64px, 8vw, 120px);
}

/* Engraved banknote hatching + a soft civic wash */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
      120% 90% at 88% 6%,
      rgba(28, 79, 156, 0.09),
      transparent 60%
    ),
    radial-gradient(
      80% 70% at 2% 100%,
      rgba(178, 34, 52, 0.055),
      transparent 62%
    ),
    repeating-linear-gradient(
      90deg,
      rgba(10, 34, 64, 0.045) 0 1px,
      transparent 1px 8px
    );
  mask-image: linear-gradient(180deg, #000 0 62%, transparent 100%);
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: clamp(36px, 5vw, 76px);
  align-items: center;
}

.hero__eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--navy);
}

.hero__eyebrow span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.hero__eyebrow span::after {
  content: "";
  width: 9px;
  height: 9px;
  background: var(--star-red) center / contain no-repeat;
}

.hero__eyebrow span:last-child::after {
  display: none;
}

.hero h1 {
  margin-bottom: 24px;
}

.hero h1 em {
  display: block;
  color: var(--red);
  font-style: normal;
}

.hero__lede {
  max-width: 54ch;
  margin-bottom: 32px;
  font-size: clamp(18px, 1.6vw, 21.5px);
  line-height: 1.56;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 44px;
}

/* Honest key-facts strip — no figures, no promises */
.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
}

.facts__cell {
  background: var(--paper);
  padding: 16px 18px;
}

.facts dd {
  margin: 0;
}

.facts__key {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.facts__val {
  display: block;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(17px, 1.35vw, 19px);
  font-weight: 600;
  line-height: 1.2;
  overflow-wrap: break-word;
}

/* --------------------------------------------------------------------------
   7. Coin plates (dark "vault" presentation)
   -------------------------------------------------------------------------- */

.plate {
  position: relative;
  background: linear-gradient(180deg, #061426 0%, var(--navy-vault) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--lift-vault);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

.plate__bar {
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--red) 0 34%,
    #ffffff 34% 66%,
    var(--blue) 66%
  );
}

.plate__figure {
  margin: 0;
  position: relative;
}

.plate__figure img {
  width: 100%;
}

/* Slow specular sweep across the coin face */
.plate__figure::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    108deg,
    transparent 32%,
    rgba(255, 255, 255, 0.14) 48%,
    transparent 62%
  );
  transform: translateX(-120%);
  transition: transform 0.9s var(--ease);
}

.plate:hover {
  transform: translateY(-6px);
  box-shadow: 0 32px 74px rgba(4, 16, 31, 0.5);
}

.plate:hover .plate__figure::after {
  transform: translateX(120%);
}

.plate__caption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 20px 17px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.plate__face {
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.plate__meta {
  color: var(--muted-invert);
  font-size: 12px;
  letter-spacing: 0.04em;
}

/* Hero coin sits slightly off-axis for an asymmetric composition */
.hero__plate {
  transform: rotate(-1.4deg);
  animation: drift 7s ease-in-out infinite;
}

.hero__plate:hover {
  transform: rotate(-1.4deg) translateY(-6px);
  animation-play-state: paused;
}

@keyframes drift {
  50% {
    transform: rotate(-1.4deg) translateY(-9px);
  }
}

/* Dark full-width gallery band */
.vault {
  position: relative;
  background: var(--navy-deep);
  color: var(--body-invert);
  overflow: hidden;
}

/* Starfield */
.vault::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.55;
  background-image: radial-gradient(
      1.4px 1.4px at 12% 18%,
      rgba(255, 255, 255, 0.6),
      transparent
    ),
    radial-gradient(1.2px 1.2px at 27% 62%, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(1.6px 1.6px at 44% 12%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1.2px 1.2px at 63% 78%, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(1.5px 1.5px at 79% 32%, rgba(255, 255, 255, 0.55), transparent),
    radial-gradient(1.2px 1.2px at 91% 70%, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(1.3px 1.3px at 55% 44%, rgba(255, 255, 255, 0.35), transparent),
    radial-gradient(
      70% 60% at 50% 0%,
      rgba(28, 79, 156, 0.28),
      transparent 70%
    );
}

.vault > * {
  position: relative;
}

.vault h2 {
  color: #fff;
}

.vault__head {
  max-width: 720px;
  margin-bottom: clamp(38px, 5vw, 62px);
}

.vault__head p {
  margin-top: 18px;
  color: var(--body-invert);
  font-size: clamp(17px, 1.4vw, 19px);
}

.vault__plates {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 34px);
}

.vault__plates .plate {
  background: linear-gradient(180deg, #071729 0%, var(--navy-vault) 100%);
}

.vault__legend {
  margin-top: clamp(34px, 4vw, 52px);
  padding-top: 26px;
  border-top: 1px solid var(--rule-invert);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
}

.vault__legend h3 {
  color: #fff;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 9px;
}

.vault__legend p {
  color: var(--muted-invert);
  font-size: 15px;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   8. Tokenomics — supply ledger
   -------------------------------------------------------------------------- */

.ledger__facts {
  margin-top: clamp(28px, 3.4vw, 44px);
}

.facts__unit {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ledger {
  margin-top: clamp(30px, 3.6vw, 48px);
}

/* The whole supply as one struck strip — stripes, not a pie. */
.split {
  display: flex;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--lift-sm);
}

.split__seg {
  flex: 0 0 var(--pct);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  background: var(--bar);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  transform-origin: left center;
}

.split__seg + .split__seg {
  box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.5);
}

/* Narrow slivers carry no room for a figure; the table states them. */
.split__seg--slim .split__pct {
  display: none;
}

/* Wipe the strip open left-to-right once the ledger scrolls into view. */
.js .reveal .split__seg {
  transform: scaleX(0);
}

.js .reveal.is-visible .split__seg {
  transform: none;
  transition: transform 0.62s var(--ease);
}

.js .reveal.is-visible .split__seg:nth-child(2) {
  transition-delay: 0.1s;
}
.js .reveal.is-visible .split__seg:nth-child(3) {
  transition-delay: 0.2s;
}
.js .reveal.is-visible .split__seg:nth-child(4) {
  transition-delay: 0.3s;
}
.js .reveal.is-visible .split__seg:nth-child(5) {
  transition-delay: 0.38s;
}
.js .reveal.is-visible .split__seg:nth-child(6) {
  transition-delay: 0.46s;
}

/* Allocation table — an engraved account, ruled like a document. */
.alloc {
  width: 100%;
  margin-top: clamp(30px, 3.6vw, 46px);
  border-collapse: collapse;
  font-variant-numeric: lining-nums tabular-nums;
}

.alloc__caption {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-align: left;
}

.alloc thead th {
  padding: 0 0 12px;
  border-bottom: 1px solid var(--navy);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: left;
  white-space: nowrap;
}

.alloc tbody th,
.alloc tbody td,
.alloc tfoot th,
.alloc tfoot td {
  padding: 17px 0;
  vertical-align: baseline;
}

.alloc tbody th,
.alloc tbody td {
  border-bottom: 1px solid var(--rule);
}

.alloc tbody th {
  text-align: left;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  padding-right: 24px;
}

.alloc__name {
  display: flex;
  align-items: center;
  gap: 11px;
  line-height: 1.3;
}

.alloc__dot {
  width: 9px;
  height: 9px;
  flex: none;
  border-radius: 2px;
  background: var(--bar);
}

.alloc__num {
  text-align: right;
  white-space: nowrap;
}

.alloc__pct {
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(20px, 2vw, 25px);
  font-weight: 600;
  line-height: 1;
}

.alloc__amt {
  color: var(--body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding-left: 22px;
}

/* Row meter: the same proportion again, at reading scale. */
.alloc__meter {
  display: block;
  max-width: 440px;
  height: 6px;
  margin-top: 11px;
  margin-left: 20px;
  border-radius: 99px;
  background: var(--rule-soft);
  overflow: hidden;
}

.alloc__fill {
  display: block;
  width: var(--pct);
  height: 100%;
  border-radius: inherit;
  background: var(--bar);
  transform-origin: left center;
}

.js .reveal .alloc__fill {
  transform: scaleX(0);
}

.js .reveal.is-visible .alloc__fill {
  transform: none;
  transition: transform 0.85s var(--ease);
}

.js .reveal.is-visible tbody tr:nth-child(2) .alloc__fill {
  transition-delay: 0.08s;
}
.js .reveal.is-visible tbody tr:nth-child(3) .alloc__fill {
  transition-delay: 0.16s;
}
.js .reveal.is-visible tbody tr:nth-child(4) .alloc__fill {
  transition-delay: 0.24s;
}
.js .reveal.is-visible tbody tr:nth-child(5) .alloc__fill {
  transition-delay: 0.32s;
}
.js .reveal.is-visible tbody tr:nth-child(6) .alloc__fill {
  transition-delay: 0.4s;
}

.alloc tfoot th {
  text-align: left;
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
}

.alloc tfoot tr {
  border-top: 2px solid var(--navy);
}

.alloc tfoot .alloc__amt {
  color: var(--ink);
  font-weight: 700;
}

.ledger__note {
  max-width: 68ch;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   9. Lore timeline
   -------------------------------------------------------------------------- */

.timeline {
  position: relative;
  margin: clamp(34px, 4vw, 50px) 0 0;
  padding: 0 0 0 34px;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(
    180deg,
    var(--red),
    var(--blue) 55%,
    var(--rule)
  );
}

.timeline li {
  position: relative;
  padding-bottom: 26px;
}

.timeline li:last-child {
  padding-bottom: 0;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 7px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--red);
}

.timeline li:nth-child(even)::before {
  border-color: var(--blue);
}

.timeline__era {
  display: block;
  color: var(--ink);
  font-family: var(--display);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 2px;
}

.timeline__what {
  color: var(--body);
  font-size: 15.5px;
  line-height: 1.6;
}

.dropcap::first-letter {
  float: left;
  margin: 8px 12px 0 0;
  color: var(--red);
  font-family: var(--display);
  font-size: 74px;
  font-weight: 700;
  line-height: 0.72;
}

/* --------------------------------------------------------------------------
   10. Charter — numbered articles, not feature cards
   -------------------------------------------------------------------------- */

.charter {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(34px, 5vw, 78px);
  margin-top: clamp(34px, 4vw, 54px);
  border-top: 1px solid var(--rule);
}

.article {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 4px 18px;
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
}

.article__num {
  grid-row: span 2;
  color: var(--red);
  font-family: var(--display);
  font-size: 30px;
  font-weight: 500;
  line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
  padding-top: 2px;
}

.article h3 {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.005em;
}

.article p {
  color: var(--body);
  font-size: 15.5px;
  line-height: 1.62;
}

/* --------------------------------------------------------------------------
   11. Pull quote / motto band
   -------------------------------------------------------------------------- */

.motto {
  position: relative;
  background: var(--navy);
  color: #fff;
  overflow: hidden;
  text-align: center;
}

.motto::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.035) 0 2px,
      transparent 2px 12px
    ),
    radial-gradient(
      60% 80% at 50% 120%,
      rgba(178, 34, 52, 0.4),
      transparent 70%
    );
}

.motto > * {
  position: relative;
}

.motto blockquote {
  max-width: 22ch;
  margin: 0 auto;
  font-family: var(--display);
  font-size: clamp(34px, 5.4vw, 74px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.motto__attr {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  color: #fff;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.motto__attr::before,
.motto__attr::after {
  content: "";
  width: 34px;
  height: 1px;
  background: rgba(255, 255, 255, 0.35);
}

/* --------------------------------------------------------------------------
   12. Formal notice
   -------------------------------------------------------------------------- */

.notice {
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 56px);
  padding: clamp(26px, 3vw, 38px);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--navy);
  border-radius: 3px;
}

.notice h2 {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
}

.notice p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.72;
}

.notice p + p {
  margin-top: 0.9em;
}

/* --------------------------------------------------------------------------
   13. Footer
   -------------------------------------------------------------------------- */

.footer {
  background: var(--navy-deep);
  color: var(--muted-invert);
}

.footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr));
  gap: clamp(30px, 5vw, 70px);
  padding-block: clamp(48px, 6vw, 76px);
}

.footer .wordmark {
  color: #fff;
}

.footer__tagline {
  margin-top: 18px;
  max-width: 38ch;
  color: var(--muted-invert);
  font-size: 14.5px;
}

.footer h3 {
  color: #fff;
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 4px;
}

.footer a {
  display: inline-block;
  padding-block: 4px;
  color: var(--body-invert);
  font-size: 14.5px;
  text-decoration: none;
  transition: color 0.18s var(--ease);
}

.footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer__base {
  border-top: 1px solid var(--rule-invert);
  padding-block: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  letter-spacing: 0.05em;
}

.footer__base p {
  margin: 0;
}

/* --------------------------------------------------------------------------
   14. Reveal on scroll (progressive enhancement)
   -------------------------------------------------------------------------- */

.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.js .reveal[data-delay="1"] {
  transition-delay: 0.09s;
}
.js .reveal[data-delay="2"] {
  transition-delay: 0.18s;
}
.js .reveal[data-delay="3"] {
  transition-delay: 0.27s;
}
.js .reveal[data-delay="4"] {
  transition-delay: 0.36s;
}

/* --------------------------------------------------------------------------
   15. Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: clamp(40px, 6vw, 60px);
  }

  .hero__plate {
    max-width: 520px;
  }

  .editorial {
    grid-template-columns: 1fr;
  }

  .editorial__head {
    position: static;
  }

  .charter {
    grid-template-columns: 1fr;
  }

  .footer__inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 20px;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    box-shadow: 0 18px 40px rgba(10, 34, 64, 0.1);
    display: none;
  }

  .nav.is-open {
    display: flex;
  }

  .nav__link {
    padding: 14px 0;
    border-bottom: 1px solid var(--rule-soft);
    font-size: 15px;
  }

  .nav__link::after {
    display: none;
  }

  .nav .btn {
    margin-top: 16px;
    justify-content: center;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .vault__legend {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .notice {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 16.5px;
  }

  .topbar__inner p:not(.topbar__ticker) {
    display: none;
  }

  .facts {
    grid-template-columns: 1fr;
  }

  .vault__plates {
    grid-template-columns: 1fr;
  }

  .article {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 4px 12px;
  }

  /* The ledger keeps all three columns; it just tightens up. */
  .alloc tbody th {
    font-size: 15px;
    padding-right: 14px;
  }

  .alloc__amt {
    font-size: 14px;
    padding-left: 12px;
  }

  .alloc__meter {
    margin-left: 0;
  }

  .split__seg {
    min-height: 38px;
  }

  .split__seg:nth-child(n + 3) .split__pct {
    display: none;
  }

  .footer__inner {
    grid-template-columns: 1fr;
  }

  .hero__plate {
    transform: none;
    animation: none;
  }

  .hero__plate:hover {
    transform: translateY(-4px);
  }
}

/* --------------------------------------------------------------------------
   16. Motion & print preferences
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

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

  /* Draw the supply bars in place rather than wiping them open. */
  .js .reveal .split__seg,
  .js .reveal .alloc__fill {
    transform: none;
  }
}

@media print {
  .topbar,
  .masthead,
  .menu-toggle,
  .wp-progress,
  .doc__rail,
  .wp-hero__actions {
    display: none;
  }

  body {
    color: #000;
    background: #fff;
  }

  .vault,
  .motto,
  .footer {
    background: #fff;
    color: #000;
  }

  .vault h2,
  .motto,
  .footer a,
  .footer h3 {
    color: #000;
  }

  /* Allocation colors carry meaning, so keep them on paper. */
  .split__seg,
  .alloc__fill,
  .alloc__dot {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
}

/* --------------------------------------------------------------------------
   17. Whitepaper document (/whitepaper/)
   A long-form record: sticky contents rail, numbered articles, ruled tables.
   -------------------------------------------------------------------------- */

/* Reading progress — a thin draw across the very top of the viewport. */
.wp-progress {
  position: fixed;
  inset: 0 0 auto;
  height: 3px;
  z-index: 60;
  pointer-events: none;
}

.wp-progress__fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--red), var(--blue));
  transform: scaleX(0);
  transform-origin: left center;
}

/* ---- Document masthead --------------------------------------------------- */

.wp-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(46px, 6vw, 92px) clamp(40px, 5vw, 72px);
  background: var(--paper-wash);
  border-bottom: 1px solid var(--paper-edge);
}

/* Same engraved hatching as the home hero, so the pages read as one set. */
.wp-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
      120% 90% at 88% 4%,
      rgba(28, 79, 156, 0.1),
      transparent 60%
    ),
    radial-gradient(
      80% 70% at 0% 100%,
      rgba(178, 34, 52, 0.06),
      transparent 62%
    ),
    repeating-linear-gradient(
      90deg,
      rgba(10, 34, 64, 0.045) 0 1px,
      transparent 1px 8px
    );
  mask-image: linear-gradient(180deg, #000 0 66%, transparent 100%);
}

.wp-hero__inner {
  position: relative;
}

.wp-hero h1 {
  font-size: clamp(38px, 5.2vw, 76px);
  margin-bottom: 22px;
}

.wp-hero h1 em {
  display: block;
  color: var(--red);
  font-style: normal;
}

.wp-hero__lede {
  max-width: 60ch;
  font-size: clamp(18px, 1.55vw, 21px);
  line-height: 1.58;
}

.wp-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: clamp(26px, 3vw, 36px) 0 clamp(28px, 3.4vw, 40px);
}

.facts--quad {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.wp-hero__note {
  max-width: 78ch;
  margin-top: 22px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.7;
}

/* ---- Contents rail ------------------------------------------------------- */

.doc {
  display: grid;
  grid-template-columns: 254px minmax(0, 1fr);
  gap: clamp(30px, 4.4vw, 72px);
  align-items: start;
  padding-block: clamp(42px, 5vw, 74px) clamp(58px, 7vw, 110px);
}

.doc__rail {
  position: sticky;
  top: 104px;
  max-height: calc(100vh - 148px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.doc__rail-title {
  margin: 0 0 13px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.doc__contents {
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 1px solid var(--rule);
}

.doc__link {
  display: flex;
  gap: 10px;
  margin-left: -1px;
  padding: 7px 0 7px 14px;
  border-left: 2px solid transparent;
  color: var(--body);
  font-size: 13.5px;
  line-height: 1.35;
  text-decoration: none;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.doc__link:hover {
  color: var(--ink);
  border-left-color: var(--rule);
}

.doc__link.is-current {
  color: var(--ink);
  font-weight: 700;
  border-left-color: var(--red);
}

.doc__num {
  flex: none;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
  font-variant-numeric: lining-nums tabular-nums;
  padding-top: 2px;
}

.doc__link.is-current .doc__num {
  color: var(--red);
}

/* ---- Numbered sections --------------------------------------------------- */

.wp-sec {
  padding-block: clamp(30px, 3.4vw, 46px);
  border-top: 1px solid var(--rule);
}

.wp-sec:first-child {
  padding-top: 0;
  border-top: 0;
}

.wp-sec__head {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  margin-bottom: 20px;
}

.wp-sec__num {
  color: var(--red);
  font-family: var(--display);
  font-size: 28px;
  font-weight: 500;
  line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
  padding-top: 5px;
}

.wp-sec h2 {
  font-size: clamp(26px, 2.7vw, 38px);
}

/* Body hangs off the same left edge as the heading text. */
.wp-sec__body {
  padding-left: 70px;
}

.wp-sec__body > * + * {
  margin-top: clamp(20px, 2.2vw, 28px);
}

/* ---- Document furniture -------------------------------------------------- */

/* Term list — a definition rail for principles and symbols. */
.wp-terms {
  margin: 0;
  border-top: 1px solid var(--rule-soft);
}

.wp-terms > div {
  display: grid;
  grid-template-columns: minmax(0, 0.32fr) minmax(0, 1fr);
  gap: 6px 26px;
  padding: 15px 0;
  border-bottom: 1px solid var(--rule-soft);
}

.wp-terms dt {
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding-top: 3px;
}

.wp-terms dd {
  margin: 0;
  color: var(--body);
  font-size: 15.5px;
  line-height: 1.62;
}

/* Bordered aside for compliance-critical statements. */
.wp-callout {
  padding: clamp(20px, 2.4vw, 26px);
  background: var(--paper-wash);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--navy);
  border-radius: 3px;
}

.wp-callout__title {
  display: block;
  margin-bottom: 9px;
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.wp-callout p {
  font-size: 15.5px;
  line-height: 1.68;
}

.wp-callout p + p {
  margin-top: 0.9em;
}

.wp-alert {
  border-left-color: var(--red);
  background: #fdf6f7;
}

/* Struck statement — the lines the document wants read twice. */
.wp-pull {
  margin: 0;
  padding: 2px 0 2px 22px;
  border-left: 3px solid var(--red);
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(21px, 2.2vw, 30px);
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.wp-bullets {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.wp-bullets li {
  position: relative;
  padding-left: 22px;
  color: var(--body);
  font-size: 15.5px;
  line-height: 1.6;
}

.wp-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 10px;
  height: 10px;
  transform: translateY(-50%);
  background: var(--star-red) center / contain no-repeat;
}

.wp-bullets--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(22px, 3vw, 40px);
}

/* Short emphatic lines, set in the display face. */
.wp-lines {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 7px;
}

.wp-lines li {
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(18px, 1.8vw, 23px);
  font-weight: 500;
  line-height: 1.28;
}

/* Physical-edition section: prose beside a single coin plate. */
.wp-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.62fr);
  gap: clamp(24px, 3.4vw, 46px);
  align-items: start;
}

.wp-split > * + * {
  margin-top: 0;
}

.wp-plate {
  max-width: 360px;
}

.wp-edition {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.wp-edition span {
  padding: 7px 13px;
  background: var(--paper-wash);
  border: 1px solid var(--rule);
  border-radius: 3px;
  color: var(--ink);
  font-variant-numeric: lining-nums tabular-nums;
}

/* Roadmap phases */
.wp-phases {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
}

.wp-phase {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 6px 22px;
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
}

.wp-phase__id {
  color: var(--red);
  font-family: var(--display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-top: 3px;
}

.wp-phase h3 {
  margin-bottom: 7px;
  font-family: var(--sans);
  font-size: 16.5px;
  font-weight: 800;
  letter-spacing: 0.005em;
}

.wp-phase p {
  color: var(--body);
  font-size: 15.5px;
  line-height: 1.62;
}

/* Colophon line under the closing motto */
.motto__colophon {
  max-width: 56ch;
  margin: 20px auto 0;
  color: var(--body-invert);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---- Responsive ---------------------------------------------------------- */

@media (max-width: 1080px) {
  .doc {
    grid-template-columns: 1fr;
  }

  /* Contents becomes a plain index above the document. */
  .doc__rail {
    position: static;
    max-height: none;
    overflow: visible;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--rule);
  }

  .doc__contents {
    columns: 2;
    column-gap: clamp(24px, 4vw, 44px);
    border-left: 0;
  }

  .doc__contents li {
    break-inside: avoid;
  }

  .doc__link {
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
  }

  .doc__link.is-current {
    border-left: 0;
  }

  .wp-split {
    grid-template-columns: 1fr;
  }

  .wp-plate {
    max-width: 320px;
  }
}

@media (max-width: 900px) {
  .facts--quad {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .doc__contents {
    columns: 1;
  }

  .facts--quad {
    grid-template-columns: 1fr;
  }

  .wp-sec__head {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px;
  }

  .wp-sec__num {
    font-size: 22px;
    padding-top: 3px;
  }

  /* Full measure on small screens; the number no longer indents the body. */
  .wp-sec__body {
    padding-left: 0;
  }

  .wp-terms > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .wp-bullets--two {
    grid-template-columns: 1fr;
  }

  .wp-phase {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .wp-edition {
    flex-wrap: wrap;
  }
}

/* ---- Print: the document should print like a document ------------------- */

@media print {
  .doc {
    display: block;
    padding-block: 0;
  }

  .wp-hero {
    background: #fff;
    border: 0;
    padding-block: 0 24px;
  }

  .wp-hero::before {
    display: none;
  }

  .wp-sec {
    break-inside: avoid;
  }

  .wp-callout,
  .wp-alert {
    background: #fff;
  }

  .motto__colophon {
    color: #000;
  }
}

/* Homepage whitepaper panel */
.lede + .wp-bullets {
  margin-top: clamp(22px, 2.6vw, 30px);
}

.whitepaper__cta {
  margin: clamp(24px, 3vw, 34px) 0 0;
}
