/* Standard Beans: dark Standard Reserve base, cream engraved plates on top. */

:root {
  /* Standard Reserve's dark palette */
  --ink-0: #191917;
  --ink-1: #1e1e1b;
  --ink-2: #22221f;
  --line: #34342d;
  --line-strong: #44443a;
  --text: #e8e3d9;
  --text-2: #aaa79c;
  --text-3: #8f8c81;
  --gold: #dfc184;
  --gold-hover: #ead39f;
  --bronze: #d5c4a5;
  --success: #b5c69b;
  --danger: #e7a3aa;

  /* Sampled from the bean artwork */
  --paper: #f4ecda;
  --paper-2: #e6d8bc;
  --sepia: #3a2e22;
  --sepia-2: #6b5a46;
  --copper: #b45a2d;
  --copper-hi: #d9926a;
  --copper-deep: #7a2e14;

  --font-sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Cinzel", "Times New Roman", serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --wrap: 1200px;
  --gutter: 16px;
  --shadow-plate: 0 34px 70px -28px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(0, 0, 0, 0.45);

  color-scheme: dark;
}

@media (min-width: 640px) { :root { --gutter: 24px; } }
@media (min-width: 960px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 108px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink-0);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: var(--copper); color: var(--paper); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
/* Touch: no double-tap zoom delay, and a soft gold tap flash instead of the grey box */
a, button { touch-action: manipulation; -webkit-tap-highlight-color: rgba(223, 193, 132, 0.12); }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  padding: 8px 12px;
  border-radius: 6px;
  background: var(--text);
  color: #1c1c19;
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 12px; }

.eyebrow {
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-wrap: balance;
  color: var(--text-2);
}

/* Engraved section numeral before an eyebrow label */
.eyebrow__mark {
  display: inline-block;
  margin-right: 10px;
  padding-right: 10px;
  border-right: 1px solid var(--line-strong);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--copper-hi);
}

/* Scroll reveals: main.js adds .is-revealed as each block enters the viewport.
   Uses the standalone `translate` property so it never fights a component's own transform. */
.js [data-reveal] {
  opacity: 0;
  translate: 0 18px;
  transition: opacity 0.7s ease, translate 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
.js [data-reveal].is-revealed { opacity: 1; translate: 0 0; }

/* Buttons ---------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  height: 36px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 7px;
  font: 600 13px/1 var(--font-sans);
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, transform 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn--lg { height: 48px; padding: 0 20px; border-radius: 9px; font-size: 15px; }
.btn--buy { background: var(--gold); color: #1c1c19; }
.btn--buy:hover { background: var(--gold-hover); }
.btn--light { background: var(--text); color: #1c1c19; }
.btn--light:hover { background: #fff9ee; }
.btn--ghost { background: transparent; border-color: var(--line-strong); color: var(--text); }
.btn--ghost:hover { border-color: #626153; background: rgba(232, 227, 217, 0.05); }
.btn--ghost .mono { font-size: 13px; font-weight: 400; color: var(--text-2); }

/* Top bar + tape ---------------------------------------------------------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(25, 25, 23, 0.97);
  border-bottom: 1px solid var(--line);
}

.topbar__inner { display: flex; align-items: center; gap: 20px; height: 60px; }

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}
@media (max-width: 359px) { .brand { gap: 8px; font-size: 12px; letter-spacing: 0.08em; } }
.brand__bean { flex: none; width: 22px; height: 32px; transition: transform 0.6s; }
@media (hover: hover) and (pointer: fine) { .brand:hover .brand__bean { transform: rotate(-20deg); } }

.topnav { display: none; gap: 2px; }
.topnav a {
  padding: 6px 10px;
  border-radius: 6px;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}
.topnav a:hover { color: var(--text); background: rgba(232, 227, 217, 0.05); }
@media (min-width: 820px) { .topnav { display: flex; } }

.tape {
  position: relative;
  height: 32px;
  overflow: hidden;
  border-top: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.tape__track {
  display: flex;
  align-items: center;
  width: max-content;
  height: 100%;
  will-change: transform;
}
.tape__item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 18px;
  border-right: 1px solid var(--line);
  font: 400 12px/1 var(--font-mono);
  color: var(--text-2);
  white-space: nowrap;
}
.tape__item b { color: var(--text); font-weight: 500; }
.tape__buy { color: var(--gold); }
.tape__item--motto {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper-hi);
}

/* Hero -------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 48px 0 72px;
  background: radial-gradient(60% 70% at 72% 42%, rgba(180, 90, 45, 0.16), transparent 70%);
}
.confetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }

.hero__grid { position: relative; z-index: 1; display: grid; gap: 44px; align-items: center; }

.hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(44px, 5.6vw, 84px);
  line-height: 0.98;
  letter-spacing: 0.005em;
  color: var(--text);
}
.hero__title span {
  display: block;
  background: linear-gradient(180deg, #efb791 0%, #cf7444 52%, #8c3f1c 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}

.hero__lede { margin: 22px 0 0; max-width: 32em; font-size: clamp(16px, 1.4vw, 18px); color: var(--text-2); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__note { margin: 16px 0 0; font-size: 13px; color: var(--text-2); }
@media (max-width: 479px) { .hero__actions .btn { flex: 1 1 auto; } }
.hero__note strong { color: var(--gold); font-weight: 600; }


@media (min-width: 960px) {
  .hero { padding: 72px 0 104px; }
  .hero__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; }
}

/* Plates (framed engravings) ---------------------------------------------- */

.plate { margin: 0; }
.plate__frame {
  position: relative;
  padding: 10px;
  border-radius: 6px;
  background: var(--paper);
  box-shadow: var(--shadow-plate);
}
.plate__frame::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(58, 46, 34, 0.45);
  border-radius: 3px;
  pointer-events: none;
}
.plate__frame img { width: 100%; border-radius: 2px; }
.plate__caption {
  margin-top: 16px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--text-2);
}
.plate__caption span { margin-right: 0.35em; font-weight: 700; color: var(--bronze); }

/* Rope divider, after the seal's border ----------------------------------- */

.rope {
  width: calc(100% - 2 * var(--gutter));
  max-width: var(--wrap);
  height: 14px;
  margin-inline: auto;
  border-block: 1px solid rgba(213, 196, 165, 0.18);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='12' viewBox='0 0 16 12'%3E%3Cg fill='none' stroke='%23d5c4a5' stroke-opacity='.42'%3E%3Cellipse cx='4' cy='6' rx='7' ry='3.6'/%3E%3Cellipse cx='12' cy='6' rx='7' ry='3.6'/%3E%3C/g%3E%3C/svg%3E") repeat-x center / 16px 12px;
}

/* Parade: beans marching along the rope, full width ----------------------- */

.parade {
  --marcher-w: 40px;
  --marcher-h: 60px;
  --marcher-gap: 24px;
  position: relative;
  height: calc(var(--marcher-h) + 26px);
  margin-top: -56px;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
@media (min-width: 960px) {
  .parade { --marcher-w: 48px; --marcher-h: 72px; --marcher-gap: 30px; margin-top: -72px; }
}
.parade .rope { position: absolute; left: 0; bottom: 0; width: 100%; max-width: none; }
/* Soles sit on the rope's top edge (the rope is 14px tall) */
.parade__track {
  position: absolute;
  left: 0;
  bottom: 13px;
  display: flex;
  width: max-content;
  animation: march var(--march-duration, 60s) linear infinite;
}
@keyframes march { from { transform: translateX(-50%); } to { transform: translateX(0); } }

.marcher {
  display: block;
  flex: none;
  width: var(--marcher-w);
  height: var(--marcher-h);
  margin-right: var(--marcher-gap);
  overflow: visible;
}
.marcher__leg { transform-box: view-box; animation: leg-swing 0.45s ease-in-out infinite alternate; }
.marcher__leg--front { transform-origin: 17px 54px; }
.marcher__leg--back { transform-origin: 24px 54px; animation-direction: alternate-reverse; }
.marcher__shin { fill: none; stroke: #5a2d14; stroke-width: 3.6; stroke-linecap: round; }
.marcher__boot { fill: #24150c; }
.marcher__leg--back .marcher__shin { stroke: #3f1f0e; }
.marcher__leg--back .marcher__boot { fill: #160d07; }
.marcher__body { transform-box: view-box; transform-origin: 20px 58px; animation: bob 0.225s ease-in-out infinite alternate; }
.marcher__spear { fill: none; stroke: #3a2416; stroke-width: 1.5; stroke-linecap: round; }
.marcher__tip { fill: #b9a07c; stroke: #3a2416; stroke-width: 0.6; stroke-linejoin: round; }
.marcher__flag { transform-box: view-box; transform-origin: 34px 10px; animation: flutter 0.9s ease-in-out infinite alternate; }
.marcher__pennant { fill: var(--copper); stroke: #6e2c12; stroke-width: 0.6; stroke-linejoin: round; }
.marcher__emblem { fill: var(--paper); opacity: 0.9; }
.marcher__fill { fill: url(#marcher-copper); }
.marcher__hatch { fill: none; stroke: rgba(60, 18, 4, 0.42); stroke-width: 0.45; stroke-linecap: round; }
.marcher__shade { fill: rgba(50, 15, 3, 0.4); }
.marcher__glow { fill: rgba(255, 230, 205, 0.28); }
.marcher__crease { fill: none; stroke: #3a1608; stroke-width: 0.9; stroke-linecap: round; }
.marcher__shine { fill: none; stroke: rgba(255, 238, 220, 0.85); stroke-width: 1.4; stroke-linecap: round; }
.marcher__outline { fill: none; stroke: #2e1206; stroke-width: 1.3; }
.marcher__arm { fill: none; stroke: #4a2412; stroke-width: 2.4; stroke-linecap: round; }
.marcher__hand { fill: #3a1f10; }
@keyframes leg-swing { from { transform: rotate(24deg); } to { transform: rotate(-24deg); } }
@keyframes bob { from { transform: translateY(0); } to { transform: translateY(-2px) rotate(1.5deg); } }
@keyframes flutter { from { transform: skewY(-4deg); } to { transform: skewY(3deg) scaleX(0.92); } }

.parade.is-paused .parade__track,
.parade.is-paused .marcher__leg,
.parade.is-paused .marcher__body,
.parade.is-paused .marcher__flag { animation-play-state: paused; }

/* Sections ---------------------------------------------------------------- */

.section { padding-block: 72px; }
@media (min-width: 960px) { .section { padding-block: 104px; } }
/* For a section followed directly by another with no divider between them */
.section--snug { padding-bottom: 8px; }
@media (min-width: 960px) { .section--snug { padding-bottom: 16px; } }

.section__head { margin-bottom: 36px; }
.section__head--row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }
.section__title {
  margin: 0;
  font-size: clamp(30px, 4.2vw, 52px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text);
  text-wrap: balance;
}
.section__lede { margin: 14px 0 0; max-width: 36em; color: var(--text-2); }

/* Live status ------------------------------------------------------------- */

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--ink-2);
  font-size: 12px;
  color: var(--text-2);
}
.status a { color: var(--text); }
.status__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); }
.status.is-live .status__dot { background: var(--success); animation: pulse 2.2s infinite; }
.status.is-down .status__dot { background: var(--danger); }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(181, 198, 155, 0.55); }
  70%, 100% { box-shadow: 0 0 0 7px rgba(181, 198, 155, 0); }
}

/* Stats ------------------------------------------------------------------- */

.stats { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stat {
  position: relative;
  overflow: hidden;
  min-width: 0;
  padding: 18px 18px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--ink-2);
}
.stat > :not(.stat__spark) { position: relative; z-index: 1; }
.stat__label { margin: 0; font-size: 12px; color: var(--text-2); }
.stat__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 8px; }
@media (max-width: 479px) { .stat__period { display: none; } }
.stat__head .stat__meta { white-space: nowrap; }
/* Live 24h market-cap line along the bottom of the card */
.stat__spark {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 34%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}
.stat__spark.is-ready { opacity: 1; }
.stat__spark-area { fill: url(#spark-fill); }
.stat__spark-line { fill: none; stroke: var(--copper-hi); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; opacity: 0.85; }
.stat__value {
  margin: 10px 0 4px;
  overflow: hidden;
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--text);
}
.stat__value.is-flash { animation: flash 1s ease-out; }
@keyframes flash { from { color: var(--gold); } }
.stat__meta { margin: 0; font-size: 12px; color: var(--text-2); }
.stat__meta .up { color: var(--success); font-weight: 600; }
.stat__meta .down { color: var(--danger); font-weight: 600; }
.lock { color: var(--gold); font-size: 9px; vertical-align: 1px; }

.stat--rank {
  grid-column: span 2;
  border-color: rgba(180, 90, 45, 0.5);
  background: linear-gradient(135deg, rgba(180, 90, 45, 0.18), rgba(180, 90, 45, 0.04) 60%), var(--ink-2);
}
.stat--rank .stat__value { color: var(--copper-hi); }
.stat--rank::after {
  content: "♛";
  position: absolute;
  right: 12px;
  bottom: -18px;
  font-size: 96px;
  line-height: 1;
  color: rgba(217, 146, 106, 0.1);
  pointer-events: none;
}

@media (min-width: 720px) { .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1080px) {
  .stats { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .stat--rank { grid-column: auto; }
}

/* Monetary policy --------------------------------------------------------- */

.policy { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .policy { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; } }

.policy__coin { position: relative; display: flex; flex-direction: column; align-items: center; gap: 18px; }

.coin {
  --size: clamp(240px, 30vw, 400px);
  width: var(--size);
  height: var(--size);
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
          user-select: none;
  transition: transform 0.4s, scale 0.15s;
  animation: coin-float 4.8s ease-in-out infinite;
}
@keyframes coin-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
.coin:active { scale: 0.97; }
@media (hover: hover) and (pointer: fine) { .coin:hover { transform: rotate(-4deg) scale(1.02); } }
/* A flat flip: squash to the edge, swap faces at the midpoint (main.js), open back up.
   Renders identically everywhere, unlike a 3D rotateY flip, which iOS Safari draws unreliably. */
.coin__inner { position: relative; display: block; width: 100%; height: 100%; }
.coin__inner.is-spinning { animation: coin-spin 0.56s cubic-bezier(0.45, 0, 0.55, 1); }
@keyframes coin-spin {
  0%, 100% { transform: scaleX(1) translateY(0); }
  50% { transform: scaleX(0.06) translateY(-14px); }
}
.coin__face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 50%;
  box-shadow: 0 34px 60px -24px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(0, 0, 0, 0.35);
}
.coin.is-flipped .coin__face--front,
.coin:not(.is-flipped) .coin__face--back { visibility: hidden; }
.coin__face img { width: 100%; height: 100%; }
.coin__face--back {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.7em;
  background: radial-gradient(circle at 34% 28%, #f0b38d 0%, #c8693a 38%, #8c3f1c 78%, #5e2610 100%);
  color: var(--paper);
  font-family: var(--font-display);
  text-align: center;
}
.coin__face--back::before,
.coin__face--back::after { content: ""; position: absolute; border-radius: 50%; }
.coin__face--back::before { inset: 5%; border: 3px dotted rgba(244, 236, 218, 0.55); }
.coin__face--back::after { inset: 9%; border: 1px solid rgba(244, 236, 218, 0.45); }
.coin__motto {
  font-size: calc(var(--size) * 0.105);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-shadow: 0 2px 0 rgba(60, 20, 5, 0.45);
}
.coin__year { font-size: calc(var(--size) * 0.045); letter-spacing: 0.32em; opacity: 0.85; }

.coin__count { margin: 0; font-size: 13px; color: var(--text-2); -webkit-user-select: none; user-select: none; }
.coin__count .mono { color: var(--text); }
.coin__hint { color: var(--text-3); }
.coin__plus {
  position: absolute;
  top: 10%;
  left: 50%;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--gold);
  pointer-events: none;
  animation: plus 0.9s ease-out forwards;
}
@keyframes plus {
  from { opacity: 1; transform: translate(-50%, 0) scale(0.9); }
  to { opacity: 0; transform: translate(-50%, -56px) scale(1.15); }
}

.minutes {
  padding: clamp(22px, 3vw, 40px);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--ink-2);
}
.minutes .section__title { font-size: clamp(26px, 3vw, 38px); }
.minutes__date {
  margin: 12px 0 0;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--text-2);
}
.articles { margin: 0; padding: 0; list-style: none; }
.articles li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.articles__num { font-family: var(--font-display); font-size: 18px; font-weight: 700; line-height: 1.45; color: var(--copper-hi); }
.articles h3 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; color: var(--text); }
.articles p { margin: 4px 0 0; font-size: 15px; color: var(--text-2); }
.minutes__sig { display: flex; align-items: center; gap: 16px; margin-top: 24px; }
.minutes__sig p { display: flex; flex-direction: column; gap: 2px; margin: 0; }
.minutes__signer { font-family: var(--font-display); font-size: 15px; font-weight: 600; letter-spacing: 0.08em; color: var(--bronze); }
.minutes__vote { font-size: 12px; color: var(--text-2); }
/* Copper wax seal pressed with the bean */
.wax-seal {
  position: relative;
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 48% 52% 50% 50% / 50% 46% 54% 50%;
  background: radial-gradient(circle at 35% 30%, #cf6034, #8a2a12 55%, #5a1607 100%);
  box-shadow: 0 0 0 3px rgba(138, 42, 18, 0.35), 0 6px 14px rgba(0, 0, 0, 0.45), inset 0 -3px 6px rgba(0, 0, 0, 0.35), inset 0 2px 3px rgba(255, 190, 150, 0.25);
  transform: rotate(-8deg);
}
.wax-seal::before { content: ""; position: absolute; inset: 6px; border: 1px dashed rgba(255, 214, 190, 0.35); border-radius: 50%; }
.wax-seal::after {
  content: "";
  position: absolute;
  inset: 13px 17px;
  background: rgba(58, 14, 4, 0.6);
  -webkit-mask: url("assets/bean.svg") center / contain no-repeat;
          mask: url("assets/bean.svg") center / contain no-repeat;
}

/* Banknote ---------------------------------------------------------------- */

.note-wrap { container-type: inline-size; max-width: 980px; margin: 0 auto 48px; }

.note {
  position: relative;
  aspect-ratio: 2.35;
  padding: 1.6cqi;
  border-radius: 0.8cqi;
  color: var(--sepia);
  background:
    repeating-linear-gradient(45deg, rgba(58, 46, 34, 0.2) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(-45deg, rgba(58, 46, 34, 0.2) 0 1px, transparent 1px 4px),
    var(--paper-2);
  overflow: hidden;
  box-shadow: var(--shadow-plate);
  transform: rotate(-1.2deg);
  transition: transform 0.5s;
}
@media (hover: hover) and (pointer: fine) { .note:hover { transform: rotate(0deg); } }
.note::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 45%;
  pointer-events: none;
  background: linear-gradient(105deg, rgba(255, 250, 235, 0) 20%, rgba(255, 250, 235, 0.42) 50%, rgba(255, 250, 235, 0) 80%);
  transform: translateX(-120%);
  animation: sheen 7s ease-in-out infinite;
}
@keyframes sheen { 0%, 55% { transform: translateX(-120%); } 100% { transform: translateX(340%); } }

.note__border {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-rows: auto 1fr auto;
  align-items: center;
  gap: 1.8cqi 3cqi;
  height: 100%;
  padding: 2.2cqi 5.4cqi;
  border: 0.3cqi solid var(--sepia-2);
  outline: 1px solid rgba(107, 90, 70, 0.7);
  outline-offset: -0.9cqi;
  background:
    repeating-radial-gradient(circle at 50% 52%, rgba(58, 46, 34, 0.08) 0 1px, transparent 1px 7px),
    repeating-radial-gradient(circle at 12% 55%, rgba(58, 46, 34, 0.05) 0 1px, transparent 1px 5px),
    repeating-radial-gradient(circle at 88% 55%, rgba(58, 46, 34, 0.05) 0 1px, transparent 1px 5px),
    var(--paper);
}

.note__corner {
  position: absolute;
  font-family: var(--font-display);
  font-size: 2.6cqi;
  font-weight: 700;
  line-height: 1;
}
.note__corner--tl { top: 1.4cqi; left: 1.6cqi; }
.note__corner--tr { top: 1.4cqi; right: 1.6cqi; }
.note__corner--bl { bottom: 1.4cqi; left: 1.6cqi; }
.note__corner--br { bottom: 1.4cqi; right: 1.6cqi; }

.note__title { text-align: center; font-family: var(--font-display); line-height: 1; }
.note__issuer { display: block; font-size: 3.6cqi; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.note__kind { display: block; margin-top: 0.7cqi; font-size: 1.6cqi; letter-spacing: 0.5em; text-transform: uppercase; color: var(--sepia-2); }

.note__serial {
  display: flex;
  flex-direction: column;
  gap: 0.4cqi;
  font-size: 1.2cqi;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sepia-2);
}
.note__serial .mono { font-size: 1.5cqi; letter-spacing: 0.06em; color: var(--copper-deep); }
.note__serial--right { align-items: flex-end; text-align: right; }

.note__legal {
  margin: 0;
  max-width: 22cqi;
  font-family: var(--font-display);
  font-size: 1.45cqi;
  line-height: 1.55;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.note__medallion {
  width: 20cqi;
  height: 20cqi;
  padding: 0.4cqi;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 0 0 0.25cqi var(--sepia-2), 0 0 0 0.9cqi var(--paper), 0 0 0 1.05cqi var(--sepia-2);
}
.note__medallion img { width: 100%; height: 100%; border-radius: 50%; }

.note__denomination { text-align: right; font-family: var(--font-display); }
.note__amount { display: block; font-size: 3.3cqi; font-weight: 700; line-height: 1; letter-spacing: 0.02em; }
.note__words { display: block; margin-top: 0.9cqi; font-size: 1.35cqi; letter-spacing: 0.3em; text-transform: uppercase; color: var(--sepia-2); }

.note__signature {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-size: 1.1cqi;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sepia-2);
}
.note__signature:last-child { align-items: flex-end; justify-self: end; }
.note__signature svg { width: 11cqi; height: auto; fill: none; stroke: var(--sepia); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.note__signature span { padding-top: 0.4cqi; border-top: 1px solid var(--sepia-2); }

.note__motto {
  margin: 0;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.8cqi;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

/* Narrow screens: a simpler, taller note so the type stays legible */
@container (max-width: 600px) {
  .note { aspect-ratio: auto; padding: 3cqi; border-radius: 1.6cqi; transform: rotate(-1.5deg); }
  .note__border {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    justify-items: center;
    row-gap: 4.5cqi;
    padding: 13cqi 6cqi 12cqi;
    border-width: 0.6cqi;
    outline-offset: -2cqi;
  }
  .note__legal, .note__signature, .note__serial--right { display: none; }
  .note__corner { font-size: 5cqi; }
  .note__corner--tl, .note__corner--tr { top: 3.6cqi; }
  .note__corner--bl, .note__corner--br { bottom: 3.6cqi; }
  .note__corner--tl, .note__corner--bl { left: 4cqi; }
  .note__corner--tr, .note__corner--br { right: 4cqi; }
  .note__title { order: 1; }
  .note__issuer { font-size: 6.6cqi; }
  .note__kind { margin-top: 1.6cqi; font-size: 3cqi; }
  .note__medallion { order: 2; width: 44cqi; height: 44cqi; padding: 0.8cqi; box-shadow: 0 0 0 0.5cqi var(--sepia-2), 0 0 0 1.8cqi var(--paper), 0 0 0 2.1cqi var(--sepia-2); }
  .note__denomination { order: 3; text-align: center; }
  .note__amount { font-size: 8cqi; }
  .note__words { margin-top: 1.6cqi; font-size: 3cqi; }
  .note__motto { order: 4; font-size: 3.4cqi; }
  .note__serial--left { order: 5; align-items: center; font-size: 2.4cqi; }
  .note__serial .mono { font-size: 3cqi; }
}

/* Ledger + fees ----------------------------------------------------------- */

.ledger { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 900px) { .ledger { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; } }

.ledger__list { margin: 0; padding: 6px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--ink-2); }
.ledger__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.ledger__row:last-child { border-bottom: 0; }
.ledger__row dt { flex: none; color: var(--text-2); }
.ledger__row dd { min-width: 0; margin: 0; text-align: right; color: var(--text); }

.ca {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text);
  font: inherit;
  cursor: pointer;
}
.ca .mono { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.ca__hint {
  flex: none;
  padding: 3px 7px;
  border: 1px solid rgba(223, 193, 132, 0.35);
  border-radius: 5px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  transition: background-color 0.15s;
}
.ca:hover .ca__hint { background: rgba(223, 193, 132, 0.12); }

.fees { display: flex; flex-direction: column; gap: 18px; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--ink-2); }
.fees__title { margin: 0; font-size: 14px; color: var(--text); }
.fees__bar { display: flex; gap: 2px; height: 12px; overflow: hidden; border-radius: 999px; }
.fees__seg { width: var(--w); transform-origin: left center; transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s; }
.fees__seg--pool { transition-delay: 0.35s; }
.fees__seg--protocol { transition-delay: 0.5s; }
.js .fees:not(.is-revealed) .fees__seg { transform: scaleX(0); }
.fees__seg--creator, .swatch--creator { background: var(--copper); }
.fees__seg--pool, .swatch--pool { background: var(--gold); }
.fees__seg--protocol, .swatch--protocol { background: #6f685a; }
.fees__legend { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--text-2); }
.fees__note { margin: auto 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-2); }
.fees__legend li { display: flex; align-items: center; gap: 10px; }
.fees__legend strong { min-width: 2.6em; color: var(--text); font-variant-numeric: tabular-nums; }
.swatch { flex: none; width: 10px; height: 10px; border-radius: 3px; }
.swatch--bean { background: var(--copper); }

/* King of the Markets ----------------------------------------------------- */

.throne {
  border-block: 1px solid var(--line);
  background: radial-gradient(50% 80% at 85% 50%, rgba(223, 193, 132, 0.07), transparent 70%), var(--ink-1);
}
.throne__grid { display: grid; gap: 44px; align-items: center; }
@media (min-width: 960px) { .throne__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; } }
.throne__copy p { max-width: 34em; margin: 18px 0 0; color: var(--text-2); }
.throne__copy strong { color: var(--text); }
.throne__copy .btn { margin-top: 30px; }

.board {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: radial-gradient(rgba(232, 227, 217, 0.07) 1px, transparent 1.3px) 0 0 / 10px 10px, var(--ink-0);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7);
}
.board__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.board__title { font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text); }
.board__title span { margin: 0 6px; color: var(--text-3); }
.bell {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: var(--ink-2);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-2);
}
.bell .mono { letter-spacing: 0.02em; color: var(--text); }
.bell__time { display: inline-flex; gap: 4px; }
.bell__unit { display: inline-flex; align-items: baseline; gap: 2px; font-size: 10px; color: var(--text-3); }
.bell__unit b {
  min-width: 2.4ch;
  padding: 2px 4px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--ink-0);
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  color: var(--text);
}

.countries { display: grid; gap: 20px; margin: 0; padding: 0; list-style: none; }
.country__row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 14px; }
.country__code {
  flex: none;
  padding: 3px 5px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  font: 500 11px/1 var(--font-mono);
  color: var(--text-2);
}
.country__name { flex: 1; min-width: 0; color: var(--text); }
.country__name em { margin-left: 4px; font-size: 13px; font-style: normal; color: var(--text-2); }
.country.is-leader .country__name::after { content: "♛ Leading"; margin-left: 8px; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; color: var(--gold); }
.country__pts { flex: none; font-size: 13px; color: var(--text); }
.tag {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(180, 90, 45, 0.22);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: 1px;
  color: var(--copper-hi);
}
.country__bar { position: relative; height: 10px; overflow: hidden; border: 1px solid var(--line); border-radius: 999px; background: var(--ink-2); }
.country__bar > span { position: absolute; inset: 0 auto 0 0; width: var(--w, 0%); transform-origin: left center; transition: width 0.9s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.25s; }
.js .board:not(.is-revealed) .country__bar > span { transform: scaleX(0); }
.country__bar [data-bar] { border-radius: 999px; background: #5f5d52; }
.country--bean .country__bar [data-bar] { background: var(--bronze); }
.country__beans { border-radius: 999px; background: var(--copper); }
.board__legend { display: flex; align-items: center; gap: 8px; margin: 20px 0 0; font-size: 12px; color: var(--text-2); }

@media (max-width: 480px) {
  .tag { display: none; }
  .country.is-leader .country__name::after { content: "♛"; }
}

/* How to buy -------------------------------------------------------------- */

.steps { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
/* Phones: numeral beside the text so the stack stays compact */
.step {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  column-gap: 12px;
  align-content: start;
  padding: 20px 20px 20px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--ink-2);
}
.step { position: relative; }
.step > :not(.step__num) { grid-column: 2; }
.step__icon { position: absolute; top: 18px; right: 18px; width: 26px; height: 26px; fill: none; stroke: var(--gold); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; opacity: 0.75; }
@media (max-width: 719px) { .step h3 { padding-right: 34px; } }
.step__num { grid-row: 1 / span 3; font-family: var(--font-display); font-size: 28px; font-weight: 700; line-height: 1; color: var(--gold); }
.step h3 { margin: 0; font-size: 18px; font-weight: 600; line-height: 1.35; letter-spacing: -0.01em; }
.step p { margin: 8px 0 0; font-size: 15px; color: var(--text-2); }
.step__link { justify-self: start; margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--gold); text-decoration: none; }
.step__link:hover { text-decoration: underline; }
@media (min-width: 720px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .step { display: flex; flex-direction: column; padding: 24px 22px 22px; }
  .step__num { margin-bottom: 22px; font-size: 34px; }
  .step__link { margin-top: auto; padding-top: 16px; }
}

/* Bridge / X -------------------------------------------------------------- */

.plate--wide .plate__frame { transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.5s; }
@media (hover: hover) and (pointer: fine) { .plate--wide:hover .plate__frame { transform: translateY(-4px); box-shadow: 0 44px 80px -28px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(0, 0, 0, 0.45); } }

/* Positioned over the X doorway in the artwork (offsets account for the 10px frame) */
.portal {
  position: absolute;
  left: calc(10px + (100% - 20px) * 0.6603);
  top: calc(10px + (100% - 20px) * 0.1892);
  width: calc((100% - 20px) * 0.1818);
  height: calc((100% - 20px) * 0.4485);
  border-radius: 50% 50% 3px 3px / 30% 30% 3px 3px;
}
.portal::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  animation: portal 2.8s ease-in-out infinite;
}
.portal:hover::after, .portal:focus-visible::after {
  animation: none;
  box-shadow: 0 0 0 2px rgba(223, 193, 132, 0.9), 0 0 60px 16px rgba(223, 193, 132, 0.45);
}
@keyframes portal {
  0%, 100% { box-shadow: 0 0 0 1px rgba(223, 193, 132, 0), 0 0 30px 6px rgba(223, 193, 132, 0); }
  50% { box-shadow: 0 0 0 2px rgba(223, 193, 132, 0.55), 0 0 50px 12px rgba(223, 193, 132, 0.3); }
}

/* Footer ------------------------------------------------------------------ */

.footer { padding: 48px 0 32px; border-top: 1px solid var(--line); background: var(--ink-1); }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: center; }
@media (min-width: 1000px) {
  .footer__grid { grid-template-columns: 1fr auto; grid-template-areas: "brand links" "brand ca"; row-gap: 16px; }
  .footer__brand { grid-area: brand; }
  .footer__links { grid-area: links; justify-content: flex-end; }
  .ca--footer { grid-area: ca; justify-self: end; }
}
.footer__brand { display: flex; align-items: center; gap: 14px; }
.footer__bean { flex: none; width: 31px; height: 47px; }
.footer__name { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.footer__motto { margin: 2px 0 0; font-family: var(--font-display); font-size: 14px; color: var(--bronze); }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer__links a { font-size: 14px; color: var(--text-2); text-decoration: none; }
.footer__links a:hover { color: var(--text); }
.ca--footer { justify-self: start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--ink-2); }
.ca__label { flex: none; font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2); }
.disclaimer { margin-top: 32px; font-size: 12px; line-height: 1.65; color: var(--text-3); }
/* Rule drawn inside the content box so it lines up with the text, not the gutters */
.disclaimer::before { content: ""; display: block; height: 1px; margin-bottom: 24px; background: var(--line); }

/* Toast ------------------------------------------------------------------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 100;
  max-width: calc(100% - 32px);
  padding: 10px 16px;
  border-radius: 9px;
  background: var(--text);
  color: #1c1c19;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 16px);
  transition: opacity 0.2s, transform 0.2s;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* Reduced motion ---------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .tape { overflow-x: auto; }
  .parade__track, .marcher__leg, .marcher__body, .marcher__flag { animation: none; }
  .note { transform: none; }
  .js [data-reveal] { opacity: 1; translate: none; }
  .coin, .note::after { animation: none; }
  .js .fees:not(.is-revealed) .fees__seg, .js .board:not(.is-revealed) .country__bar > span { transform: none; }
}
