/*
  base.css — layout, grid and components for direction B «Mint».
  Colours, type families and radii come only from theme.css tokens.
*/

:root {
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-pad: clamp(80px, 9vw, 128px);
  --header-h: 76px;
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 12px);
  background: var(--bg);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
::selection { background: var(--gold-300); color: var(--ink-950); }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
[hidden] { display: none !important; }
.mob-only,
.eras-table td small.mob-only { display: none; }
.nowrap { white-space: nowrap; }

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

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

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

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 60;
  padding: 10px 14px;
  background: var(--bone);
  color: var(--ink-950);
  border-radius: var(--radius);
  text-decoration: none;
}
.skip:focus { top: 12px; }

body.is-loading main,
body.is-loading .site-footer { opacity: 0; }
main, .site-footer { transition: opacity 0.4s var(--ease-out); }

/* ---------- type ---------- */
.display {
  font-family: var(--serif);
  font-weight: 340;
  font-variation-settings: var(--display-axes);
  font-optical-sizing: auto;
  letter-spacing: -0.012em;
  line-height: 0.98;
  color: var(--bone);
}
.display em {
  font-style: italic;
  font-weight: 300;
  font-variation-settings: var(--italic-axes);
  color: var(--gold-300);
}
.kicker {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 360;
  font-variation-settings: var(--italic-axes);
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.35;
  color: var(--bone-2);
}
.label {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone-3);
}

/* placeholder marker + its footnote */
.fn {
  font-family: var(--sans);
  font-style: normal;
  font-size: max(10px, 0.5em);
  font-weight: 500;
  color: var(--gold-300);
  vertical-align: super;
  line-height: 0;
  margin-left: 0.1em;
  letter-spacing: 0;
  cursor: help;
}
.footnote {
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--bone-3);
}

/* ---------- buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 30px;
  border: 0;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--gold-100) 0%, var(--gold-300) 46%, var(--gold-500) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 -1px 0 rgba(74, 52, 24, 0.55), 0 1px 0 rgba(2, 7, 10, 0.4);
  color: var(--ink-950);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s var(--ease-out), filter 0.2s ease;
}
.btn:hover { filter: brightness(1.06) saturate(1.04); transform: translateY(-1px); }
.btn:active { transform: translateY(0); filter: brightness(0.97); }
.btn--wide { width: 100%; }
.btn[disabled] { cursor: progress; filter: saturate(0.6) brightness(0.9); transform: none; }

.btn-line {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 18px;
  border: 1px solid var(--gold-700);
  border-radius: var(--radius);
  color: var(--gold-100);
  font-weight: 550;
  font-size: 15px;
  text-decoration: none;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.btn-line:hover { border-color: var(--gold-300); background: rgba(227, 192, 126, 0.06); }

.link {
  padding: 0 0 3px;
  border: 0;
  border-bottom: 1px solid var(--ink-400);
  background: none;
  color: var(--bone);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 16px;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.link:hover { border-bottom-color: var(--gold-300); color: var(--gold-100); }

/* ---------- header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 30;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}
.site-header.is-scrolled {
  background: rgba(6, 17, 24, 0.86);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--rule);
}
.site-header__bar {
  display: flex;
  align-items: center;
  gap: 38px;
  height: var(--header-h);
}
/* the mark: brand/logo-on-dark.svg, used as a file, never redrawn here */
.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
  text-decoration: none;
  border-radius: 2px;
}
.brand__logo { width: auto; height: 40px; }
.brand__logo--l { height: 48px; }
.site-nav {
  display: flex;
  gap: 38px;
  margin-left: auto;
}
.site-nav a {
  position: relative;
  color: var(--bone-2);
  font-size: 15px;
  font-weight: 450;
  text-decoration: none;
  transition: color 0.2s ease;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: var(--gold-300);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}
.site-nav a:hover { color: var(--bone); }
.site-nav a[aria-current="true"] { color: var(--bone); }
.site-nav a[aria-current="true"]::after { transform: scaleX(1); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: max(820px, min(100svh, 960px));
  padding-top: calc(var(--header-h) + clamp(28px, 6vh, 80px));
  padding-bottom: 26px;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(10, 26, 34, 0) 78%, var(--ink-900) 100%),
    linear-gradient(160deg, #10283a 0%, var(--ink-900) 45%, #081720 100%);
}
.grain::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .55  0 0 0 0 .62  0 0 0 0 .6  0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.07;
  mix-blend-mode: screen;
  -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
}
.hero__grid {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
}
.hero__kicker { margin-bottom: 26px; }
.hero__title { font-size: clamp(44px, 5.85vw, 84px); line-height: 1; }
.hero__title .line { display: block; }
.hero__sub {
  margin-top: 34px;
  max-width: 30ch;
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.5;
  color: var(--bone-2);
  text-wrap: pretty;
}
.hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px 30px;
  margin-top: 42px;
}

/* the struck coin */
.hero__coin {
  justify-self: end;
  width: 100%;
  max-width: 520px;
  margin-top: -4%;
  margin-right: -14px;
}
.coin-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 2.13 / 2.27; /* Coin.HALVE: 2R + gap by 2R + edge + rise; set exactly once the coin is struck */
  perspective: 1400px;
}
.coin-stage__tilt {
  position: absolute;
  inset: 0;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d;
  will-change: transform;
}
.coin-stage__canvas {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 22px 26px rgba(2, 7, 10, 0.72));
  opacity: 0;
  transform: translateY(14px) scale(0.975);
  transition: opacity 1.1s var(--ease-out), transform 1.4s var(--ease-out);
}
.coin-stage.is-struck .coin-stage__canvas { opacity: 1; transform: none; }
.coin-stage__sheen {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  background: linear-gradient(112deg,
    rgba(255, 238, 206, 0) 36%,
    rgba(255, 238, 206, 0.17) 47%,
    rgba(255, 238, 206, 0.05) 53%,
    rgba(255, 238, 206, 0) 60%);
  background-size: 300% 100%;
  background-position: var(--sx, 50%) 0;
  mix-blend-mode: screen;
  opacity: var(--so, 0.25);
}

/* the era ladder under the hero */
.hero__ladder {
  position: relative;
  margin-top: clamp(20px, 3vh, 36px);
}
.ladder__cap {
  position: absolute;
  left: var(--gutter);
  top: 18px;
  z-index: 1;
  display: grid;
  gap: 4px;
}
.ladder__curve {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 360;
  font-variation-settings: var(--italic-axes);
  font-size: 18px;
  line-height: 1.3;
  color: var(--bone-2);
}
.ladder__plot { position: relative; }
.ladder__unit { display: none; }
.ladder__svg { position: absolute; left: 0; top: 0; overflow: visible; }
.ladder__area { opacity: 1; }
.ladder__line { fill: none; stroke: var(--gold-300); stroke-width: 1.4; stroke-dasharray: 1; stroke-dashoffset: 0; }
.ladder__base { stroke: var(--ink-400); stroke-width: 1; }
.ladder__price {
  position: absolute;
  display: flex;
  align-items: baseline;
  gap: 8px;
  white-space: nowrap;
}
.ladder__num {
  font-family: var(--serif);
  font-variation-settings: var(--display-axes);
  font-weight: 380;
  font-size: 40px;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--bone);
  font-variant-numeric: tabular-nums lining-nums;
}
.ladder__u {
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  font-variation-settings: var(--italic-axes);
  color: var(--gold-300);
}
.ladder__era { position: absolute; white-space: nowrap; }
.ladder__x2 {
  position: absolute;
  transform: translateX(-100%);
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  line-height: 1.2;
  color: var(--gold-300);
  font-variation-settings: var(--italic-axes);
}

/* first paint: the copy rises, the line is engraved, the prices follow */
@media (prefers-reduced-motion: no-preference) {
  .hero__kicker, .hero__title .line, .hero__sub, .hero__actions {
    animation: rise 1s var(--ease-out) both;
  }
  .hero__kicker { animation-delay: 0.05s; }
  .hero__title .line { animation-delay: calc(0.12s + var(--i, 0) * 0.09s); }
  .hero__sub { animation-delay: 0.42s; }
  .hero__actions { animation-delay: 0.52s; }
  .hero__ladder.is-drawing .ladder__line { stroke-dashoffset: 1; }
  .hero__ladder.is-drawing .ladder__area,
  .hero__ladder.is-drawing .ladder__price,
  .hero__ladder.is-drawing .ladder__era,
  .hero__ladder.is-drawing .ladder__x2 { opacity: 0; }
  .hero__ladder.is-drawn .ladder__line { stroke-dashoffset: 0; transition: stroke-dashoffset 1.8s var(--ease-in-out) 0.3s; }
  .hero__ladder.is-drawn .ladder__area { opacity: 1; transition: opacity 1.2s ease 0.9s; }
  .hero__ladder.is-drawn .ladder__era { opacity: 1; transition: opacity 0.8s ease 0.6s; }
  .hero__ladder.is-drawn .ladder__price,
  .hero__ladder.is-drawn .ladder__x2 { opacity: 1; transition: opacity 0.8s ease calc(0.8s + var(--i, 2) * 0.28s); }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

/* ---------- reveal on scroll ---------- */
.reveal-on [data-reveal] {
  transition: opacity 0.9s var(--ease-out) var(--d, 0s), transform 0.9s var(--ease-out) var(--d, 0s);
}
.reveal-on [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(18px); }

/* ---------- live numbers ---------- */
.stats { position: relative; background: var(--ink-900); }
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--rule);
}
.stat { display: flex; flex-direction: column; padding: 26px 24px 30px; min-width: 0; }
.stat:first-child { padding-left: 0; }
.stat + .stat { border-left: 1px solid var(--rule); }
.stat__unit {
  margin-left: 0.22em;
  font-style: italic;
  font-variation-settings: var(--italic-axes);
  font-size: 0.42em;
  letter-spacing: 0;
  color: var(--gold-300);
}
.stat dd {
  margin-top: auto;
  padding-top: 12px;
  font-family: var(--serif);
  font-variation-settings: var(--display-axes);
  font-weight: 340;
  font-size: clamp(36px, 3.7vw, 52px);
  line-height: 1;
  letter-spacing: -0.012em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums lining-nums;
}

/* ---------- sections ---------- */
.section { padding: var(--section-pad) 0; }
.section--rule { border-top: 1px solid var(--rule); }
.section--reeded { padding-top: 0; }
.reeded--top { margin-bottom: var(--section-pad); }
.section__head { margin-bottom: clamp(40px, 5vw, 64px); }
.section__head--split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px 56px;
  flex-wrap: wrap;
}
.section__head > div { max-width: 720px; }
.section__title {
  margin-top: 14px;
  font-size: clamp(40px, 4.7vw, 66px);
  line-height: 1.02;
  text-wrap: balance;
}
.section__lede {
  margin-top: 22px;
  max-width: 54ch;
  font-size: clamp(16.5px, 1.3vw, 18.5px);
  line-height: 1.55;
  color: var(--bone-2);
  text-wrap: pretty;
}

/* ---------- launch ---------- */
.launch {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.launch__form { display: grid; gap: 40px; }
.field { min-width: 0; margin: 0; padding: 0; border: 0; }
.field-row {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 20px;
}
.field__label { display: block; margin-bottom: 12px; padding: 0; }
.field__hint {
  margin-left: 10px;
  font-family: var(--serif);
  font-style: italic;
  font-variation-settings: var(--italic-axes);
  font-size: 15px;
  font-weight: 380;
  letter-spacing: 0;
  text-transform: none;
  color: var(--bone-3);
}
.field__error {
  margin-top: 8px;
  font-family: var(--serif);
  font-style: italic;
  font-variation-settings: var(--italic-axes);
  font-size: 15.5px;
  color: var(--error);
}
.field__error:empty { display: none; }

.input {
  width: 100%;
  height: 56px;
  padding: 0 16px;
  border: 1px solid var(--field-line);
  border-radius: var(--radius);
  background: rgba(6, 17, 24, 0.55);
  color: var(--bone);
  font-family: var(--serif);
  font-variation-settings: var(--display-axes);
  font-size: 21px;
  font-weight: 380;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.input::placeholder { color: var(--placeholder); opacity: 1; }
.input:hover { border-color: var(--field-line-hover); }
.input:focus { outline: none; border-color: var(--gold-500); box-shadow: inset 0 0 0 1px var(--gold-500); }
.input[aria-invalid="true"] { border-color: var(--error); box-shadow: inset 0 0 0 1px var(--error); }
.input-affix { position: relative; }
/* phones and tablets: the coin is struck right next to the name as it is typed */
.name-affix { display: block; }
.name-coin { display: none; }
.input-affix__prefix {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--bone-3);
  font-size: 17px;
  pointer-events: none;
}
.input-affix .input {
  padding-left: 32px;
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 550;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* option rows (radio) — rows on a ruled sheet, not chips */
.options__list { border-top: 1px solid var(--rule-strong); }
.option {
  position: relative;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: 2px 16px;
  padding: 16px 8px 17px 6px;
  border-bottom: 1px solid var(--rule);
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.option:hover { background-color: var(--tint); }
.option:has(input:checked) {
  background-image: repeating-linear-gradient(180deg, rgba(201, 154, 82, 0.075) 0 1px, transparent 1px 4px);
}
.option input {
  appearance: none;
  -webkit-appearance: none;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin: 0;
  border: 1px solid var(--bone-3);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: border-color 0.2s ease;
}
.option input::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-300);
  transform: scale(0);
  transition: transform 0.25s var(--ease-out);
}
.option input:checked { border-color: var(--gold-300); }
.option input:checked::after { transform: scale(1); }
.option input:focus-visible { outline: 1.5px solid var(--gold-300); outline-offset: 3px; }
.option__title {
  font-family: var(--serif);
  font-variation-settings: var(--display-axes);
  font-weight: 400;
  font-size: 21px;
  line-height: 1.2;
  color: var(--bone);
  transition: color 0.2s ease;
}
.option:has(input:checked) .option__title { color: var(--gold-100); }
.option__default {
  margin-left: 10px;
  font-family: var(--serif);
  font-style: italic;
  font-variation-settings: var(--italic-axes);
  font-size: 15px;
  font-weight: 380;
  color: var(--bone-3);
}
.option__text {
  grid-column: 2;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--bone-3);
}
.option__aside {
  grid-row: 1 / span 2;
  grid-column: 3;
  text-align: right;
  white-space: nowrap;
}
.option__range {
  display: block;
  font-size: 16px;
  font-weight: 550;
  color: var(--bone);
  font-variant-numeric: tabular-nums lining-nums;
}
.option__aside small {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--bone-3);
}

/* drop zone */
.drop {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 16px 18px 16px 16px;
  border: 1px dashed var(--field-line);
  border-radius: var(--radius);
  background: rgba(6, 17, 24, 0.35);
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.drop:hover,
.drop.is-over { border-color: var(--field-line-hover); background-color: var(--tint); }
.drop:focus-within { border-color: var(--gold-500); border-style: solid; }
.drop.is-filled { border-style: solid; }
.drop__input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.drop__preview {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid var(--gold-700);
  box-shadow: inset 0 0 0 4px rgba(6, 17, 24, 0.6), inset 0 0 0 5px rgba(138, 100, 49, 0.6);
  background: var(--ink-950) center / cover no-repeat;
}
.drop__preview::before,
.drop__preview::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: var(--gold-300);
  transform: translate(-50%, -50%);
}
.drop__preview::before { width: 16px; height: 1px; }
.drop__preview::after { width: 1px; height: 16px; }
.drop.is-filled .drop__preview::before,
.drop.is-filled .drop__preview::after { display: none; }
.drop__text { display: grid; gap: 3px; min-width: 0; }
.drop__text strong {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 19px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.drop__text span { font-size: 14px; line-height: 1.45; color: var(--bone-3); text-wrap: pretty; }
.drop.is-error .drop__text span { color: var(--error); }
.drop__clear { font-size: 14px; }

.launch__submit { display: grid; gap: 14px; }
.launch__note { font-size: 14px; color: var(--bone-3); text-wrap: pretty; }

/* summary: the struck preview */
.summary { position: static; }
@media (min-width: 961px) and (min-height: 880px) {
  .summary { position: sticky; top: calc(var(--header-h) + 16px); }
}
.summary__inner {
  position: relative;
  padding: 26px 30px 28px;
  border: 1px solid var(--ink-700);
  border-radius: 4px;
  background: var(--ink-850);
}
/* engraved ruling behind the coin, fading out before the figures */
.summary__inner::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 300px;
  pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(127, 163, 157, 0.07) 0 1px, transparent 1px 5px);
  -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 30%, transparent 100%);
}
.summary__inner > * { position: relative; }
.summary__state {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone-3);
}
.summary__state::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1px solid var(--bone-3);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.summary.is-ready .summary__state { color: var(--gold-100); }
.summary.is-ready .summary__state::before { border-color: var(--gold-300); background: var(--gold-300); }
.summary__coin {
  display: grid;
  justify-items: center;
  text-align: center;
  margin: 18px 0 22px;
}
.summary__strike {
  position: relative;
  width: min(184px, 54%);
  aspect-ratio: 1 / 1.06;
  margin-bottom: 16px;
}
.summary.is-ready .summary__strike { width: min(236px, 74%); margin-bottom: 20px; }
.summary__canvas {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 14px 16px rgba(2, 7, 10, 0.7));
}
.summary__strike.is-struck .summary__canvas { animation: strike 0.6s var(--ease-out); }
@keyframes strike {
  from { opacity: 0.4; transform: scale(0.97); }
  to { opacity: 1; transform: none; }
}
/* the die comes down once: the blank drops, hits, the metal flashes and settles */
.summary__strike.is-struck .summary__canvas.is-hammer { animation: hammer 0.9s cubic-bezier(0.3, 0.7, 0.2, 1) both; }
@keyframes hammer {
  0% { opacity: 0; transform: translateY(-14px) scale(1.12); filter: drop-shadow(0 34px 30px rgba(2, 7, 10, 0.5)) brightness(0.85); }
  34% { opacity: 1; transform: translateY(0) scale(0.955); filter: drop-shadow(0 6px 6px rgba(2, 7, 10, 0.85)) brightness(1.3); }
  52% { transform: scale(1.018); }
  70% { transform: scale(0.996); }
  100% { opacity: 1; transform: none; filter: drop-shadow(0 14px 16px rgba(2, 7, 10, 0.7)) brightness(1); }
}
/* struck lines ring out from the die, once, then are gone */
.summary__strike::before,
.summary__strike::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 47%;
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid var(--gold-300);
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
  pointer-events: none;
}
.summary.is-ready .summary__strike.is-hammered::before { animation: ring-out 1.1s var(--ease-out) 0.28s; }
.summary.is-ready .summary__strike.is-hammered::after { animation: ring-out 1.3s var(--ease-out) 0.4s; }
@keyframes ring-out {
  0% { opacity: 0.5; transform: translate(-50%, -50%) scale(0.92); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.32); }
}
.summary__name {
  font-family: var(--serif);
  font-weight: 360;
  font-variation-settings: var(--display-axes);
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}
.summary__ticker {
  margin-top: 4px;
  font-size: 14px;
  font-weight: 550;
  letter-spacing: 0.1em;
  color: var(--gold-300);
}
.summary__name.is-empty { color: var(--bone-3); }
.summary__ticker.is-empty { color: var(--placeholder); }
.kv { border-top: 1px solid var(--rule-strong); }
.kv__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid var(--rule);
}
.kv dt { font-size: 14px; color: var(--bone-3); flex: none; }
.kv dd {
  text-align: right;
  font-size: 15px;
  font-weight: 550;
  min-width: 0;
  font-variant-numeric: tabular-nums lining-nums;
}
.kv dd small {
  display: block;
  margin-top: 1px;
  font-weight: 400;
  font-size: 12.5px;
  color: var(--bone-3);
}
.summary__ready { margin-top: 26px; display: grid; gap: 14px; }
.summary__ready .link { justify-self: start; font-size: 14.5px; }
.sign-reply {
  min-height: 1.45em;
  margin-top: -4px;
  font-family: var(--serif);
  font-style: italic;
  font-variation-settings: var(--italic-axes);
  font-size: 16px;
  line-height: 1.45;
  color: var(--gold-100);
}
.sign-reply:empty { min-height: 0; margin-top: -14px; }
.sign-reply.is-in { animation: rise 0.5s var(--ease-out); }
.steps { display: grid; }
.steps li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  padding: 10px 0;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--bone-2);
  text-wrap: pretty;
}
.steps li + li { border-top: 1px solid var(--rule); }
.steps i {
  font-family: var(--serif);
  font-variation-settings: var(--italic-axes);
  color: var(--gold-300);
}
.summary.is-ready .summary__inner { border-color: var(--gold-700); animation: settle 0.5s var(--ease-out); }
@keyframes settle {
  from { transform: translateY(6px); }
  to { transform: none; }
}

/* ---------- scale switch: tabs, not chips ---------- */
.scale-switch {
  display: flex;
  border-bottom: 1px solid var(--rule-strong);
}
.scale-switch__btn {
  position: relative;
  display: grid;
  gap: 2px;
  padding: 10px 20px 13px;
  border: 0;
  background: none;
  text-align: left;
  color: var(--bone-3);
  transition: color 0.2s ease;
}
.scale-switch__btn:first-child { padding-left: 0; }
.scale-switch__btn::after {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: -1px;
  height: 2px;
  background: var(--gold-300);
  transform: scaleX(0);
  transition: transform 0.35s var(--ease-out);
}
.scale-switch__btn:first-child::after { left: 0; }
.scale-switch__btn:hover { color: var(--bone-2); }
.scale-switch__btn[aria-checked="true"] { color: var(--bone); }
.scale-switch__btn[aria-checked="true"]::after { transform: scaleX(1); }
.scale-switch__name {
  font-family: var(--serif);
  font-variation-settings: var(--display-axes);
  font-size: 20px;
  line-height: 1.2;
}
.scale-switch__btn[aria-checked="true"] .scale-switch__name { color: var(--gold-100); }
.scale-switch__btc { font-size: 13px; font-variant-numeric: tabular-nums lining-nums; }
.scale-switch--compact { display: none; }

/* ---------- curve ---------- */
.curve { position: relative; }
.curve__plot { position: relative; height: clamp(380px, 38vw, 520px); }
.curve__caption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 32px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  font-size: 14px;
  color: var(--bone-3);
}
.curve__caption strong { color: var(--bone); font-weight: 550; }
.curve__caption span { text-wrap: pretty; }
.curve + .footnote { margin-top: 12px; }

.chart-svg { overflow: visible; }
.chart-svg text {
  font-family: var(--sans);
  font-size: 12px;
  font-variant-numeric: tabular-nums lining-nums;
  fill: var(--bone-3);
}
.chart-svg .t-axis { fill: var(--bone-3); }
.chart-svg .t-unit { font-family: var(--serif); font-style: italic; font-size: 14px; fill: var(--gold-300); }
.chart-svg .t-price {
  font-family: var(--serif);
  font-variation-settings: var(--display-axes);
  font-weight: 380;
  font-size: 28px;
  fill: var(--bone);
  transition: fill 0.2s ease;
}
.chart-svg .t-price .t-u {
  font-style: italic;
  font-variation-settings: var(--italic-axes);
  font-size: 15px;
  fill: var(--gold-300);
}
.chart-svg .t-era { font-size: 11.5px; font-weight: 500; letter-spacing: 0.14em; fill: var(--bone-3); }
.curve.is-narrow .chart-svg .t-era { font-size: 10px; letter-spacing: 0.1em; }
.chart-svg .t-num { font-family: var(--serif); font-style: italic; font-variation-settings: var(--italic-axes); font-size: 14px; fill: var(--gold-300); }
.curve__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 10px;
  font-size: 13px;
  color: var(--bone-3);
}
.curve__legend li { display: inline-flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.curve__legend i {
  font-family: var(--serif);
  font-variation-settings: var(--italic-axes);
  font-size: 14.5px;
  color: var(--gold-300);
}
.chart-svg .t-grad { fill: var(--verdigris); }
.chart-svg .t-pool { font-family: var(--serif); font-style: italic; font-variation-settings: var(--italic-axes); font-size: 16px; fill: var(--bone-2); }
.chart-svg .t-pool--sub { font-family: var(--sans); font-style: normal; font-size: 12.5px; fill: var(--bone-3); }
.chart-svg .halo { paint-order: stroke; stroke: var(--ink-900); stroke-width: 6px; stroke-linejoin: round; }
.hatch { fill: var(--gold-500); opacity: 0.34; }
.hatch--hot { fill: var(--gold-300); opacity: 0.62; }
.hatch--pool { fill: var(--verdigris); opacity: 0.3; }
.chart-grid { stroke: var(--ink-700); stroke-width: 1; stroke-dasharray: 1 5; shape-rendering: crispEdges; }
.chart-axis { stroke: var(--ink-400); stroke-width: 1; shape-rendering: crispEdges; }
.chart-tick { stroke: var(--ink-600); stroke-width: 1; shape-rendering: crispEdges; }
.chart-step { fill: none; stroke: var(--gold-300); stroke-width: 1.5; stroke-linejoin: miter; }
.chart-step--pool { stroke: var(--verdigris); stroke-dasharray: 4 4; stroke-width: 1.2; }
.chart-fill { fill: url(#cv-hatch); }
.chart-fill.is-hot { fill: url(#cv-hot); }
.chart-pool { opacity: 0.75; transition: opacity 0.2s ease; }
.chart-pool.is-hot { opacity: 1; }
.chart-grad { stroke: var(--verdigris); stroke-width: 1; stroke-dasharray: 2 4; opacity: 0.8; }
.chart-hit { fill: transparent; cursor: pointer; outline: none; }
.chart-hit:focus-visible { stroke: var(--gold-300); stroke-width: 1; stroke-dasharray: 2 3; }
.chart-svg .t-price.is-hot { fill: var(--gold-100); }
.chart-svg .t-pool.is-hot { fill: var(--bone); }

.tooltip {
  position: absolute;
  z-index: 5;
  left: 0;
  top: 0;
  min-width: 220px;
  padding: 14px 16px 12px;
  border-radius: var(--radius);
  background: var(--bone);
  color: var(--ink-900);
  font-size: 13.5px;
  line-height: 1.4;
  pointer-events: none;
  box-shadow: 0 18px 40px rgba(2, 7, 10, 0.55);
  transform: translateY(6px);
  opacity: 0;
  transition: opacity 0.18s ease, transform 0.25s var(--ease-out);
}
.tooltip.is-in { opacity: 1; transform: none; }
.curve.is-narrow .tooltip {
  position: relative;
  left: auto;
  top: auto;
  min-width: 0;
  margin-top: 16px;
  padding: 14px 16px 12px;
  box-shadow: none;
  transform: none;
}
.curve.is-narrow .tooltip__rows {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 22px;
}
.curve.is-narrow .tooltip__row { gap: 10px; }
.curve.is-narrow .tooltip__note { max-width: none; }
.tooltip[hidden] { display: none; }
.tooltip__title {
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(10, 26, 34, 0.18);
  font-family: var(--serif);
  font-variation-settings: var(--display-axes);
  font-size: 20px;
  font-weight: 420;
  line-height: 1.1;
}
.tooltip__row {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  padding: 2px 0;
  font-variant-numeric: tabular-nums lining-nums;
}
.tooltip__row span:first-child { color: rgba(10, 26, 34, 0.62); }
.tooltip__row span:last-child { font-weight: 600; text-align: right; }
.tooltip__note { margin-top: 8px; max-width: 240px; color: rgba(10, 26, 34, 0.66); }

/* ---------- rules ---------- */
.rules { border-top: 1px solid var(--rule-strong); }
.rule {
  display: grid;
  grid-template-columns: 76px minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 12px 48px;
  align-items: baseline;
  padding: clamp(28px, 3.2vw, 44px) 0;
  border-bottom: 1px solid var(--rule);
}
.rule__num {
  display: inline-grid;
  place-items: center;
  align-self: center;
  width: 56px;
  height: 60px;
  padding-bottom: 4px;
  border-radius: 50%;
  background: center top / 100% auto no-repeat;
  box-shadow: inset 0 0 0 1px var(--gold-700);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-variation-settings: var(--italic-axes);
  font-size: 24px;
  line-height: 1;
  color: var(--gold-300);
}
.rule__num.has-coin { color: transparent; box-shadow: none; border-radius: 0; filter: drop-shadow(0 6px 7px rgba(2, 7, 10, 0.6)); }
.rule { transition: background-color 0.3s ease; }
.rule__title, .rule__text { align-self: center; }
.rule__title {
  font-family: var(--serif);
  font-weight: 340;
  font-variation-settings: var(--display-axes);
  font-size: clamp(30px, 3.5vw, 50px);
  line-height: 1.06;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
.rule__text {
  max-width: 40ch;
  font-size: 17px;
  line-height: 1.55;
  color: var(--bone-2);
  text-wrap: pretty;
}

/* ---------- tables: thin rules ---------- */
.table-wrap { min-width: 0; overflow-x: auto; }
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15.5px;
}
.data-table th,
.data-table td {
  padding: 18px 16px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--rule);
}
.data-table td { font-variant-numeric: tabular-nums lining-nums; }
.data-table thead th {
  padding-top: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule-strong);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone-3);
  white-space: nowrap;
  vertical-align: bottom;
}
.data-table th:first-child,
.data-table td:first-child { padding-left: 0; }
.data-table th:last-child,
.data-table td:last-child { padding-right: 0; }
.data-table .is-num { text-align: right; }
.era-name { display: inline-flex; align-items: center; gap: 14px; white-space: nowrap; }
.era-swatch { width: 28px; height: 16px; flex: none; }
.era-swatch path { fill: none; stroke: var(--gold-500); stroke-width: 1.2; }
.era-swatch__on { fill: var(--gold-300); opacity: 0.55; }

.eras-table tbody th {
  font-family: var(--serif);
  font-weight: 360;
  font-variation-settings: var(--display-axes);
  font-size: 24px;
  white-space: nowrap;
}
.eras-table td { white-space: nowrap; color: var(--bone-2); }
.eras-table .col-scale { width: 12%; transition: background-color 0.3s ease; }
.eras-table .is-active {
  background-image: repeating-linear-gradient(180deg, rgba(201, 154, 82, 0.09) 0 1px, transparent 1px 4px);
}
.eras-table td.is-active { color: var(--bone); }
.eras-table td.is-active .price { color: var(--gold-100); font-weight: 600; }
.eras-table td small {
  display: block;
  margin-top: 1px;
  font-size: 12.5px;
  color: var(--bone-3);
}
.eras-table tbody tr { transition: background-color 0.2s ease; }
.eras-table tbody tr:hover { background-color: var(--tint); }
.scale-head {
  display: grid;
  justify-items: end;
  gap: 2px;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: var(--bone-3);
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  text-align: right;
  transition: color 0.2s ease;
}
.scale-head:hover { color: var(--bone); }
.is-active > .scale-head { color: var(--gold-100); }
.scale-head__btc { font-size: 12px; letter-spacing: 0.02em; text-transform: none; color: var(--bone-3); font-variant-numeric: tabular-nums lining-nums; }
.eras-table tfoot th,
.eras-table tfoot td {
  padding-top: 14px;
  padding-bottom: 14px;
  font-size: 14px;
  color: var(--bone-3);
  border-bottom: 0;
}
.eras-table tfoot tr:first-child > * { border-top: 1px solid var(--rule-strong); }
.eras-table tfoot th { font-weight: 500; white-space: nowrap; }
.eras-table tfoot td.is-active { color: var(--gold-100); }
.eras-table tfoot td small { display: inline; margin-left: 4px; }

/* coins */
.sort-select {
  display: none;
  align-items: center;
  gap: 12px;
}
.sort-select select {
  height: 42px;
  padding: 0 36px 0 14px;
  border: 1px solid var(--field-line);
  border-radius: var(--radius);
  background-color: rgba(6, 17, 24, 0.55);
  color: var(--bone);
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold-300) 50%), linear-gradient(135deg, var(--gold-300) 50%, transparent 50%);
  background-position: calc(100% - 19px) 50%, calc(100% - 14px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
.sort-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.sort-btn:hover { color: var(--bone); }
.sort-btn::after {
  content: "";
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.sort-btn:hover::after { opacity: 0.4; }
th[aria-sort] .sort-btn { color: var(--gold-100); }
th[aria-sort] .sort-btn::after { opacity: 1; }
th[aria-sort="ascending"] .sort-btn::after { transform: rotate(180deg); }
.is-num .sort-btn { flex-direction: row-reverse; }

.coins-table td { white-space: nowrap; }
.coins-table tbody tr { transition: background-color 0.2s ease; }
.coins-table tbody tr:hover { background-color: var(--tint); }
.coin { display: flex; align-items: center; gap: 16px; min-width: 0; }
.coin__id { min-width: 0; }
.coin__name {
  display: block;
  font-family: var(--serif);
  font-variation-settings: var(--display-axes);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
}
.coin__sub { display: block; margin-top: 1px; font-size: 13px; font-weight: 500; letter-spacing: 0.08em; color: var(--bone-3); }
.coin__age-inline { display: none; letter-spacing: 0; }
.coins-table td.c-price { font-weight: 600; color: var(--bone); }
.coins-table .c-unit { display: none; }
.coins-table .c-usd { color: var(--bone-3); }
.coins-table .c-era { color: var(--bone-2); }
.coins-table .era-cell { display: grid; gap: 1px; line-height: 1.3; }
.coins-table .c-curve { font-size: 12.5px; color: var(--bone-3); }
.c-curve__sep { display: none; }
.coins-table .c-grad { width: 230px; }
.coins-table .c-age { color: var(--bone-3); }

.avatar {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 43px;
  padding-bottom: 3px;
  border-radius: 50%;
  background: center top / 100% auto no-repeat;
  color: var(--gold-300);
  font-family: var(--serif);
  font-weight: 560;
  font-size: 18px;
  line-height: 1;
  box-shadow: inset 0 0 0 1px var(--gold-700);
  transition: box-shadow 0.3s ease, color 0.3s ease;
}
.avatar.has-coin { color: transparent; box-shadow: none; border-radius: 0; }

.grad { display: flex; align-items: center; gap: 14px; }
.grad__bar {
  flex: 1;
  min-width: 96px;
  display: flex;
  gap: 3px;
}
.grad__seg {
  position: relative;
  flex: 1;
  height: 4px;
  background: var(--ink-700);
  overflow: hidden;
}
.grad__fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-300));
}
.grad__pct { width: 44px; text-align: right; font-size: 14px; color: var(--bone-2); font-variant-numeric: tabular-nums lining-nums; }

/* ---------- FAQ ---------- */
.faq {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr);
  gap: 28px 72px;
  align-items: start;
}
.faq .section__head { margin-bottom: 0; }
.faq__aside { margin-top: 26px; font-size: 16px; color: var(--bone-3); }
.faq__aside .link { font-size: inherit; }
.faq__main { min-width: 0; }
.faq__list { border-top: 1px solid var(--rule-strong); }
.faq__item { border-bottom: 1px solid var(--rule); }
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--serif);
  font-weight: 360;
  font-variation-settings: var(--display-axes);
  font-size: clamp(21px, 2vw, 27px);
  line-height: 1.2;
  transition: color 0.2s ease;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--gold-100); }
.faq__icon {
  position: relative;
  flex: none;
  width: 20px;
  height: 20px;
}
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 1px;
  background: var(--gold-300);
  transform: translate(-50%, -50%);
  transition: transform 0.35s var(--ease-out);
}
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item.is-open .faq__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq__body { overflow: hidden; }
.faq__body p {
  max-width: 60ch;
  padding: 0 52px 28px 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--bone-2);
  text-wrap: pretty;
}

/* ---------- footer ---------- */
.reeded {
  height: 7px;
  background:
    linear-gradient(180deg, rgba(255, 240, 205, 0.3), rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, 0.45) 100%),
    repeating-linear-gradient(90deg,
      var(--gold-900) 0px, var(--gold-700) 1.2px, var(--gold-300) 2.4px,
      var(--gold-500) 3.2px, var(--gold-700) 4.2px, var(--gold-900) 5px);
  opacity: 0.85;
}
/* a reeded edge laid inside the column, fading out at both ends */
.reeded--rule {
  height: 6px;
  opacity: 0.7;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.stats .reeded--rule { margin-bottom: 0; }

/* engraved rosette, Coin.draw.guilloche at poster size, as a watermark */
.rosette {
  position: absolute;
  z-index: 0;
  aspect-ratio: 1;
  pointer-events: none;
  background: center / contain no-repeat;
  opacity: 0;
  transition: opacity 1.6s ease;
}
.rosette.is-drawn { opacity: var(--watermark-opacity); }
#launch > .wrap,
.faq .section__head { position: relative; }
#launch .section__head,
#launch .launch { position: relative; z-index: 1; }
.rosette--launch { right: calc(var(--gutter) + 2%); top: -40px; width: min(400px, 36%); }
.rosette--faq { left: -4%; top: 210px; width: min(400px, 100%); }
.faq__main { position: relative; z-index: 1; }

.site-footer {
  margin-top: 0;
  padding: 0 0 40px;
  background: var(--ink-950);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: 36px 64px;
  align-items: start;
  padding-top: 56px;
}
.site-footer__built {
  margin-top: 18px;
  font-family: var(--serif);
  font-style: italic;
  font-variation-settings: var(--italic-axes);
  font-size: 18px;
  color: var(--bone-2);
}
.site-footer__links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 32px;
}
.site-footer__links div { min-width: 0; padding-top: 14px; border-top: 1px solid var(--rule); }
.site-footer__links dd { margin-top: 8px; font-size: 16px; font-weight: 500; overflow-wrap: anywhere; }
.site-footer__links dd a { text-decoration: none; border-bottom: 1px solid var(--ink-400); padding-bottom: 2px; transition: border-color 0.2s ease, color 0.2s ease; }
.site-footer__links dd a:hover { border-color: var(--gold-300); color: var(--gold-100); }
.site-footer__links .is-placeholder { color: var(--bone-3); font-weight: 400; }
.site-footer__links .is-placeholder small { display: block; margin-top: 2px; font-size: 13px; }
.site-footer__fine {
  margin-top: 48px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--bone-3);
}
.site-footer__fine p { padding-top: 18px; border-top: 1px solid var(--rule); }

.load-error {
  position: fixed;
  inset: auto 16px 16px 16px;
  max-width: 560px;
  margin-inline: auto;
  padding: 16px 18px;
  border: 1px solid var(--gold-700);
  border-radius: var(--radius);
  background: var(--ink-850);
  font-size: 14.5px;
}

/* ---------- responsive ---------- */
/* laptops with the browser's chrome (1280×720, 1366×768, 1440×790, 1536×864): the hero, ladder
   included, fits above the fold. The ladder itself is drawn lower in app.js (shortHero). */
@media (min-width: 861px) and (max-height: 880px) {
  .hero {
    min-height: 100svh;
    padding-top: calc(var(--header-h) + clamp(6px, 2.4vh, 22px));
    padding-bottom: 12px;
  }
  .hero__kicker { margin-bottom: 14px; }
  .hero__title { font-size: clamp(44px, min(5.85vw, 9.2vh), 84px); }
  .hero__sub { margin-top: 18px; }
  .hero__actions { margin-top: 24px; }
  .hero__coin { max-width: min(40vw, 54vh); margin-top: 0; }
  .hero__ladder { margin-top: 4px; }
  .ladder__cap { top: 0; }
  .ladder__num { font-size: 34px; }
}

@media (max-width: 1100px) {
  .site-nav { gap: 26px; }
  .hero__coin { margin-right: 0; }
}

@media (max-width: 1040px) {
  /* eras: the chosen scale's column only, picked with tabs above the table */
  .scale-switch--compact { display: flex; margin-bottom: 8px; }
  .eras-table .col-scale:not(.is-active),
  .eras-table .col-span { display: none; }
  .eras-table .col-scale { width: auto; }
  .eras-table thead .is-active .scale-head__btc { display: none; }
}

@media (max-width: 960px) {
  .launch { grid-template-columns: minmax(0, 1fr); }
  .name-affix { display: grid; grid-template-columns: 52px minmax(0, 1fr); align-items: center; gap: 12px; }
  .name-coin { display: block; width: 52px; aspect-ratio: 1 / 1.06; background: center / contain no-repeat; }
  .name-coin canvas { width: 100%; height: auto; filter: drop-shadow(0 6px 7px rgba(2, 7, 10, 0.6)); }
  .rosette--launch { width: min(300px, 46%); top: -20px; right: var(--gutter); }
  .rosette--faq { display: none; }
  .summary { position: static; }
  .rule { grid-template-columns: 48px minmax(0, 1fr); }
  .rule__text { grid-column: 2; }
  .faq { grid-template-columns: minmax(0, 1fr); }
  .site-footer__grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 860px) {
  .site-nav { display: none; }
  .site-header__bar { justify-content: space-between; }
  .hero { min-height: 0; padding-bottom: 20px; }
  .hero__grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 20px; }
  .hero__title { font-size: clamp(44px, 6.4vw, 56px); }
  .hero__coin { margin: 0; }
}

@media (max-width: 720px) {
  .hero { padding-top: calc(var(--header-h) + 8px); }
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .hero__coin { order: -1; justify-self: center; max-width: 340px; margin: 0; padding: 0 6%; }
  .hero__sub { max-width: 34ch; }
  .ladder__cap { position: static; margin-bottom: 14px; }
  .hero__ladder { margin-top: 40px; }
}

@media (max-width: 880px) {
  .sort-select { display: inline-flex; }

  /* coins: table to card list */
  .coins-table, .coins-table tbody { display: block; }
  .coins-table thead { display: none; }
  .coins-table tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "coin price"
      "era usd"
      "grad grad";
    gap: 6px 16px;
    padding: 18px 0;
    border-bottom: 1px solid var(--rule);
  }
  .coins-table tbody tr:first-child { border-top: 1px solid var(--rule-strong); }
  .coins-table td { padding: 0; border: 0; white-space: normal; }
  .coins-table .c-coin { grid-area: coin; min-width: 0; }
  .coins-table .c-price { grid-area: price; text-align: right; font-size: 16px; }
  .coins-table .c-unit { display: inline; font-weight: 400; color: var(--bone-3); font-size: 13.5px; }
  .coins-table .c-usd { grid-area: usd; text-align: right; font-size: 13.5px; }
  .coins-table .c-era { grid-area: era; padding-left: 56px; font-size: 13.5px; }
  .coins-table .c-era .era-swatch { display: none; }
  .coins-table .c-era .era-name { white-space: normal; }
  .coins-table .era-cell { display: block; }
  .coins-table .c-curve { font-size: inherit; }
  .c-curve__sep { display: inline; }
  .coins-table .c-grad { grid-area: grad; width: auto; padding-left: 56px; padding-top: 4px; }
  .coins-table .c-age { display: none; }
  .coin__age-inline { display: inline; }
  .coin__name { font-size: 18px; }
}

@media (max-width: 720px) {
  :root { --header-h: 62px; }
  body { font-size: 15.5px; }
  .brand__logo { height: 34px; }
  .brand__logo--l { height: 44px; }
  .btn-line { height: 38px; padding: 0 14px; font-size: 14.5px; }
  .hero__kicker { margin: 18px 0 16px; font-size: 16px; }
  .hero__sub { margin-top: 22px; }
  .hero__actions { margin-top: 30px; }
  .ladder__num { font-size: 22px; }
  .ladder__u { display: none; }
  .ladder__unit { display: inline; }
  .ladder__x2 { display: none; }
  .ladder__era { font-size: 10.5px; letter-spacing: 0.1em; }
  .ladder__curve { font-size: 16px; }

  .stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding: 20px 14px 22px; }
  .stat:nth-child(odd) { padding-left: 0; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--rule); }

  .field-row { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .launch__form { gap: 34px; }
  .summary__inner { padding: 24px 18px; }
  .option { padding: 14px 4px 15px 2px; gap: 2px 14px; }
  .option__title { font-size: 19px; }

  .section__head--split { align-items: stretch; flex-direction: column; }
  .scale-switch { width: 100%; }
  .scale-switch__btn { flex: 1; padding: 10px 6px 12px; }
  .scale-switch__btn::after { left: 6px; right: 6px; }
  .scale-switch__btn:first-child::after { left: 0; }
  .scale-switch__name { font-size: 17px; }
  .scale-switch__btc { font-size: 12px; }
  .curve__plot { height: 380px; }
  .chart-svg .t-price { font-size: 19px; }

  .rule { grid-template-columns: 36px minmax(0, 1fr); gap: 10px 8px; }
  .rule__num { font-size: 20px; }

  /* eras: only the chosen scale's column on a phone */
  .eras-table thead th:nth-child(2),
  .eras-table thead th:nth-child(3) { font-size: 11px; letter-spacing: 0.08em; }
  .eras-table .col-coins { display: none; }
  .eras-table .mob-only { display: inline; }
  .eras-table thead .mob-only,
  .eras-table td small.mob-only { display: block; }
  .eras-table th, .eras-table td { padding: 14px 8px; }
  .eras-table tbody th { font-size: 18px; }
  .eras-table .era-swatch { display: none; }
  .eras-table tfoot th { white-space: normal; }


  .faq__body p { padding-right: 0; }
  .site-footer__links { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .site-footer__links div:last-child { grid-column: 1 / -1; }
}

@media (max-width: 420px) {
  /* eras table at 320–420 px: no tracking-wide nowrap headers pushing the page sideways */
  .eras-table thead th { white-space: normal; letter-spacing: 0.06em; }
  .eras-table th, .eras-table td { padding: 12px 4px; }
  .eras-table th:first-child, .eras-table td:first-child { padding-left: 0; }
  .eras-table th:last-child, .eras-table td:last-child { padding-right: 0; }
  .eras-table tfoot th { text-wrap: balance; }
  .eras-table .scale-head__name { letter-spacing: 0.06em; }

  .hero__actions .btn { width: 100%; }
  /* coin cards: the curve gets its own line under the era instead of a broken "Standard / curve" */
  .coins-table .era-cell { display: grid; }
  .coins-table .c-curve { font-size: 12.5px; color: var(--bone-3); }
  .c-curve__sep { display: none; }
  .drop { grid-template-columns: 56px minmax(0, 1fr); }
  .drop__preview { width: 56px; height: 56px; }
  .drop__clear { grid-column: 2; justify-self: start; }
  .option { grid-template-columns: 20px minmax(0, 1fr); }
  .option__aside { grid-row: auto; grid-column: 2; text-align: left; margin-top: 6px; }
  .option__aside small { display: inline; margin-left: 6px; }
  .option__range { display: inline; }
}

/* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .coin-stage__sheen { display: none; }
}

/* small phones: "Twenty-one million." stays on one line */
@media (max-width: 360px) {
  .hero__title { font-size: clamp(34px, 10.9vw, 44px); }
  .hero__title em { white-space: nowrap; }
}

/* a phone on its side (844×390, 932×430): the button stays above the fold */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { min-height: 0; padding-top: calc(var(--header-h) + 4px); padding-bottom: 16px; }
  .hero__grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr); gap: 24px; }
  .hero__coin { order: 0; max-width: min(100%, 64vh); margin: 0; padding: 0; justify-self: end; }
  .hero__kicker { margin: 0 0 10px; font-size: 16px; }
  .hero__title { font-size: 38px; }
  .hero__sub { margin-top: 14px; max-width: 46ch; font-size: 16px; line-height: 1.45; }
  .hero__actions { margin-top: 18px; }
  .hero__actions .btn { width: auto; min-height: 50px; }
  .hero__ladder { margin-top: 28px; }
}
