/* ============================================================
   VAULT HOLLANDIA NOIR — design tokens
   Palette is drawn from the subject itself: a warm near-black
   vault, true metallic gold, and cool silver. Two accents,
   because the site's content is literally the two metals.
   ============================================================ */

:root {
  /* surfaces */
  --noir-0: #0A0908;
  --noir-1: #131110;
  --noir-2: #1B1816;
  --noir-3: #242019;

  /* metals */
  --gold: #C9A24B;
  --gold-bright: #EAD28A;
  --gold-deep: #8A6B2B;
  --silver: #C4C9CF;
  --silver-bright: #EDF0F3;
  --silver-deep: #84898F;

  /* ink */
  --text: #EDE9E0;
  --text-mute: #A39C8F;
  --line: rgba(201, 162, 75, 0.16);
  --line-strong: rgba(201, 162, 75, 0.32);

  /* semantics */
  --gain: #9DBB8B;
  --loss: #D08A7E;
  --ring: var(--gold-bright);

  /* type */
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Archivo", "Segoe UI", system-ui, sans-serif;
  --font-data: "Spline Sans Mono", "Consolas", monospace;

  /* rhythm */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6.5rem;
  --radius: 10px;
  --container: 1200px;

  /* motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 180ms;
  --t-med: 320ms;
}

/* ============ base ============ */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  /* ambient candlelight: warm glows in opposite corners */
  background:
    radial-gradient(1100px 700px at 88% -5%, rgba(201, 162, 75, 0.06), transparent 60%),
    radial-gradient(950px 700px at -8% 105%, rgba(170, 100, 40, 0.07), transparent 60%),
    var(--noir-0);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
  overflow-x: hidden;
}

/* film grain — the texture that photography would otherwise provide */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 95;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='170' height='170'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='170' height='170' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 170px 170px;
}

h1, h2, h3 { margin: 0 0 var(--space-2); line-height: 1.12; font-weight: 600; }
p { margin: 0 0 var(--space-2); }
p:last-child { margin-bottom: 0; }

h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  letter-spacing: 0.01em;
}

a { color: var(--gold); }

img, svg { max-width: 100%; height: auto; }

button { font: inherit; cursor: pointer; }
input, select { font: inherit; }

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

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

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-2);
  z-index: 100;
  background: var(--gold);
  color: var(--noir-0);
  padding: 0.6rem 1rem;
  border-radius: 0 0 var(--radius) var(--radius);
  text-decoration: none;
  font-weight: 600;
  transition: top var(--t-fast) var(--ease-out);
}
.skip-link:focus { top: 0; }

/* ============ shared atoms ============ */

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-2);
}

.section {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--space-6) var(--space-3);
}

.section__head { max-width: 38rem; margin-bottom: var(--space-4); }
.section__lede { color: var(--text-mute); font-size: 1.06rem; }

.card {
  background: linear-gradient(160deg, var(--noir-2), var(--noir-1) 70%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-3);
}

.card__title {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: var(--space-2);
}

.metal-ag { color: var(--silver); }
.metal-au { color: var(--gold); }

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.65rem 1.6rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: transform var(--t-fast) var(--ease-out),
              border-color var(--t-fast) var(--ease-out),
              background-color var(--t-fast) var(--ease-out),
              color var(--t-fast) var(--ease-out);
}
.btn:active { transform: scale(0.97); }

.btn--gold {
  /* gold midpoint pushed to 55% so wide/block buttons sweep smoothly into gold-deep
     instead of showing a hard vertical band on the right edge */
  background: linear-gradient(120deg, var(--gold-bright), var(--gold) 55%, var(--gold-deep));
  color: #221A08;
}
.btn--gold::after {
  /* sheen sweep on hover */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit; /* follow the button's rounded corners (no sharp edge mid-sweep) */
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.45) 50%, transparent 70%);
  transform: translateX(-110%);
  transition: transform 600ms var(--ease-out);
}
.btn--gold:hover::after, .btn--gold:focus-visible::after { transform: translateX(110%); }

.btn--ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-bright); }

.btn--small { min-height: 44px; padding: 0.4rem 1.1rem; font-size: 0.85rem; }
.btn--block { width: 100%; }

/* reeded divider — the milled edge of a coin, as a section break */
.reeded {
  height: 14px;
  background-image: repeating-linear-gradient(
    90deg,
    var(--line-strong) 0 1px,
    transparent 1px 7px
  );
  opacity: 0.5;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* ============ topbar ============ */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 0.7rem var(--space-3);
  background: rgba(10, 9, 8, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  text-decoration: none;
  min-height: 44px;
}
.brand__mark { width: 30px; height: 30px; color: var(--gold); flex: none; }
.brand__name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.brand__name em { font-style: italic; color: var(--gold); }

.topnav {
  display: flex;
  gap: var(--space-2);
  margin-left: auto;
}
.topnav a {
  color: var(--text-mute);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 0.6rem 0.5rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: color var(--t-fast) var(--ease-out);
}
.topnav a:hover, .topnav a:focus-visible { color: var(--gold-bright); }

.ticker {
  display: none;
  font-family: var(--font-data);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--text-mute);
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  white-space: nowrap;
  transition: border-color var(--t-fast) var(--ease-out);
}
.ticker:hover { border-color: var(--line-strong); }
.ticker__metal--ag { color: var(--silver); }
.ticker__metal--au { color: var(--gold); }
.ticker__sep { margin: 0 0.5rem; opacity: 0.5; }

/* ============ hero ============ */

.hero {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--space-5) var(--space-3) var(--space-6);
  display: grid;
  gap: var(--space-4);
  align-items: center;
}

.hero__text { position: relative; z-index: 2; }

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 9.5vw, 6.6rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  margin-bottom: var(--space-3);
  text-shadow: 0 2px 28px rgba(10, 9, 8, 0.85);
}
.hero__title span {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.4em);
  animation: rise 700ms var(--ease-out) forwards;
}
.hero__title span:nth-child(2) { animation-delay: 120ms; }
.hero__title-accent {
  font-style: italic;
  color: var(--gold);
  animation-delay: 240ms !important;
}

.hero__eyebrow,
.hero__lede,
.hero__actions,
.hero__hint {
  opacity: 0;
  animation: rise 700ms var(--ease-out) forwards;
}
.hero__eyebrow { animation-delay: 60ms; }
.hero__lede { animation-delay: 380ms; }
.hero__actions { animation-delay: 500ms; }
.hero__hint { animation-delay: 900ms; }

@keyframes rise {
  from { opacity: 0; transform: translateY(0.4em); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero__lede {
  color: var(--text-mute);
  font-size: 1.1rem;
  max-width: 34rem;
}
.hero__lede strong { color: var(--text); font-weight: 500; }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.hero__hint {
  margin-top: var(--space-3);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--text-mute);
}

/* the signature: a minted coin, silver obverse / gold reverse */
.hero__coin {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}

/* floating data chips, fed by the real ledger */
.hero__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  opacity: 0;
  animation: rise 700ms var(--ease-out) 750ms forwards;
}
.chip {
  display: inline-flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.6rem 0.95rem;
  border-radius: var(--radius);
  background: rgba(19, 17, 16, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.chip__label {
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.chip__value {
  font-family: var(--font-data);
  font-variant-numeric: tabular-nums;
  font-size: 0.95rem;
  color: var(--text);
}
.chip::after {
  /* hairline connector toward the coin (desktop only) */
  content: "";
  position: absolute;
  width: 42px;
  height: 1px;
  background: rgba(234, 210, 138, 0.4);
  display: none;
}

.coin {
  width: min(78vw, 380px);
  aspect-ratio: 1;
  background: none;
  border: none;
  padding: 0;
  perspective: 1200px;
  border-radius: 50%;
  opacity: 0;
  animation: coin-arrive 900ms var(--ease-out) 200ms forwards;
}
@keyframes coin-arrive {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}

.coin__inner {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 900ms var(--ease-out);
}
.coin.is-flipped .coin__inner { transform: rotateY(180deg); }

.coin__face {
  position: absolute;
  inset: 0;
  display: block;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 50%;
  filter: drop-shadow(0 18px 42px rgba(0, 0, 0, 0.55));
}
.coin__face--au { transform: rotateY(180deg); }

.coin__gleam {
  position: absolute;
  inset: 2%;
  border-radius: 50%;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 38%, rgba(255,255,255,0.32) 50%, transparent 62%);
  transform: translateX(-120%);
  animation: gleam 1400ms var(--ease-out) 1100ms forwards;
}
.coin:hover .coin__gleam,
.coin:focus-visible .coin__gleam {
  animation: gleam 1100ms var(--ease-out) forwards;
}
@keyframes gleam {
  from { transform: translateX(-120%); }
  to   { transform: translateX(120%); }
}

.coin__legend {
  font-family: var(--font-body);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.34em;
}
.coin__monogram {
  font-family: var(--font-display);
  font-size: 118px;
  font-weight: 600;
  letter-spacing: 0.08em;
}
.coin__year {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.3em;
}

/* ============ ledger ============ */

.greeting {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  color: var(--text-mute);
  margin-bottom: 0.3rem;
}
.greeting em { color: var(--gold); }

.spot { margin-bottom: var(--space-3); }
.spot__updated {
  font-family: var(--font-data);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--text-mute);
  margin-bottom: 0.5rem;
}
.spot__note { color: var(--text-mute); font-size: 0.92rem; max-width: 46rem; }
.spot__controls {
  display: grid;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.summary {
  display: grid;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}
.summary__label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 0.4rem;
}
.summary__value {
  font-family: var(--font-data);
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.4rem, 2.6vw, 1.8rem);
  font-weight: 500;
  margin-bottom: 0.3rem;
  color: var(--text);
}
.summary__value.is-gain { color: var(--gain); }
.summary__value.is-loss { color: var(--loss); }
.summary__value--split { font-size: clamp(1.1rem, 2vw, 1.35rem); }
.summary__oz-sep { color: var(--text-mute); font-size: 0.8em; }
.summary__sub { font-size: 0.82rem; color: var(--text-mute); }

/* the assay — silver/gold split of the stack's value */
.assay { margin-bottom: var(--space-3); }
.assay__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
}
.assay__caption {
  font-family: var(--font-data);
  font-size: 0.85rem;
  color: var(--text-mute);
}
.assay__body {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-2);
}

.donut { width: 152px; height: 152px; flex: none; }
.donut__track { fill: none; stroke: rgba(255, 255, 255, 0.07); stroke-width: 13; }
.donut__seg {
  fill: none;
  stroke-width: 13;
  stroke-dasharray: 0 301.6;
  transition: stroke-dasharray 700ms var(--ease-out), stroke-dashoffset 700ms var(--ease-out);
}
.donut__seg--ag { stroke: var(--silver); }
.donut__seg--au { stroke: var(--gold); }
.donut__total {
  font-family: var(--font-data);
  font-variant-numeric: tabular-nums;
  font-size: 17px;
  fill: var(--text);
}
.donut__cur {
  font-family: var(--font-body);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.3em;
  fill: var(--text-mute);
}

.donut-legend p {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  font-size: 0.95rem;
  color: var(--text-mute);
  margin-bottom: 0.5rem;
}
.donut-legend strong {
  color: var(--text);
  font-family: var(--font-data);
  font-weight: 500;
}
.legend-val { font-family: var(--font-data); font-size: 0.8rem; }
.legend-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  display: inline-block;
  transform: translateY(1px);
  flex: none;
}
.legend-dot--ag { background: linear-gradient(135deg, var(--silver-bright), var(--silver-deep)); }
.legend-dot--au { background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep)); }

/* metal stack cards */
.stacks {
  display: grid;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}
.stack-card {
  position: relative;
  overflow: hidden;
  min-height: 200px;
}
.stack-card__bg {
  position: absolute;
  top: -38%;
  right: -18%;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  opacity: 0.16;
  pointer-events: none;
}
.stack-card--ag .stack-card__bg { background: radial-gradient(circle at 35% 30%, #EDF0F3, #84898F 60%, transparent 74%); }
.stack-card--au .stack-card__bg { background: radial-gradient(circle at 35% 30%, #F2DD96, #8A6B2B 60%, transparent 74%); }
.stack-card__oz {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4.5vw, 3.4rem);
  line-height: 1;
  margin: 0.2rem 0 var(--space-2);
}
.stack-card--ag .stack-card__oz { color: var(--silver-bright); }
.stack-card--au .stack-card__oz { color: var(--gold-bright); }
.stack-card__unit {
  font-size: 0.42em;
  font-family: var(--font-body);
  letter-spacing: 0.08em;
  color: var(--text-mute);
}
.stack-card__value {
  font-family: var(--font-data);
  font-variant-numeric: tabular-nums;
  font-size: 1.35rem;
  margin-bottom: var(--space-2);
}
.stack-card__link {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-fast) var(--ease-out);
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.stack-card__link:hover, .stack-card__link:focus-visible { border-color: var(--gold); }

.milestones {
  display: grid;
  gap: var(--space-2);
  margin-top: var(--space-3);
}
.milestone__label {
  font-size: 0.85rem;
  color: var(--text-mute);
  margin-bottom: 0.45rem;
}
.milestone__label span:first-child { font-weight: 600; }
.milestone__track {
  height: 6px;
  border-radius: 3px;
  background: var(--noir-0);
  border: 1px solid var(--line);
  overflow: hidden;
}
.milestone__fill {
  display: block;
  height: 100%;
  width: 0%;
  transition: width 700ms var(--ease-out);
}
.milestone__fill--ag { background: var(--silver); }
.milestone__fill--au { background: var(--gold); }

/* form + table */
.vault-grid {
  display: grid;
  gap: var(--space-3);
  align-items: start;
}
/* let the holdings card shrink below its table's intrinsic width;
   the table then scrolls inside its own wrap */
.vault-grid > * { min-width: 0; }

.field { margin-bottom: var(--space-2); }
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
  color: var(--text);
}
.field__unit { color: var(--text-mute); font-weight: 400; }

.field input,
.field select {
  width: 100%;
  min-height: 48px;
  padding: 0.6rem 0.85rem;
  background: var(--noir-0);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-data);
  font-variant-numeric: tabular-nums;
  transition: border-color var(--t-fast) var(--ease-out);
}
.field input::placeholder { color: #6B6457; }
.field input:hover, .field select:hover { border-color: var(--gold-deep); }
.field input:focus-visible, .field select:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 1px;
  border-color: var(--gold);
}
.field input[aria-invalid="true"] { border-color: var(--loss); }

.field__error {
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: var(--loss);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
}
.field-row .field { margin-bottom: var(--space-2); }

.field--inline { margin-bottom: 0; }

.holding-form .btn { margin-top: var(--space-1); }

.holdings__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

/* empty state */
.empty {
  text-align: center;
  padding: var(--space-4) var(--space-2);
  color: var(--text-mute);
}
.empty__icon { width: 56px; height: 56px; color: var(--gold-deep); margin-bottom: var(--space-2); }
.empty__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--text);
  margin-bottom: 0.4rem;
}
.empty__text { max-width: 26rem; margin: 0 auto var(--space-3); font-size: 0.95rem; }

/* table */
.holdings__table-wrap { overflow-x: auto; }
.holdings__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.holdings__table th {
  text-align: left;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
  padding: 0.6rem 0.65rem;
  border-bottom: 1px solid var(--line-strong);
  white-space: nowrap;
}
.holdings__table td {
  padding: 0.7rem 0.65rem;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.holdings__table .num, .holdings__table td.num {
  text-align: right;
  font-family: var(--font-data);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.holdings__table tbody tr {
  transition: background-color var(--t-fast) var(--ease-out);
}
.holdings__table tbody tr:hover { background: rgba(201, 162, 75, 0.05); }
.holdings__table tr.is-new { animation: row-in 400ms var(--ease-out); }
@keyframes row-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.holding__piece { display: flex; align-items: center; gap: 0.6rem; min-width: 11rem; }
.holding__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex: none;
}
.holding__dot--ag { background: linear-gradient(135deg, var(--silver-bright), var(--silver-deep)); }
.holding__dot--au { background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep)); }
.holding__name { font-weight: 500; }
.holding__meta { display: block; font-size: 0.76rem; color: var(--text-mute); }

td.is-gain { color: var(--gain); }
td.is-loss { color: var(--loss); }

.row-delete {
  width: 44px; height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  border-radius: var(--radius);
  color: var(--text-mute);
  transition: color var(--t-fast) var(--ease-out), background-color var(--t-fast) var(--ease-out);
}
.row-delete:hover, .row-delete:focus-visible { color: var(--loss); background: rgba(208, 138, 126, 0.08); }
.row-delete svg { width: 16px; height: 16px; }

/* ============ collection ============ */

.plates {
  display: grid;
  gap: var(--space-3);
}

.plate { padding: var(--space-3); }
.plate__art {
  display: flex;
  justify-content: center;
  padding: var(--space-2) 0 var(--space-3);
}
.plate__art svg {
  width: 132px;
  height: 132px;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.5));
  transition: transform var(--t-med) var(--ease-out);
}
.plate:hover .plate__art svg { transform: translateY(-4px) rotate(-3deg); }

.plate__denom {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 600;
}
.plate__denom-unit { font-size: 17px; letter-spacing: 0.04em; }
.plate__name-sm {
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
}
.plate__fine {
  font-family: var(--font-data);
  font-size: 9.5px;
  letter-spacing: 0.14em;
}

.plate__title {
  font-family: var(--font-display);
  font-size: 1.55rem;
  margin-bottom: 0.25rem;
}
.plate__spec {
  font-family: var(--font-data);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: var(--gold);
  margin-bottom: var(--space-2);
}
.plate__story { color: var(--text-mute); font-size: 0.95rem; }

/* ============ doctrine ============ */

.tenets {
  display: grid;
  gap: var(--space-3);
}
.tenet {
  border-top: 1px solid var(--line-strong);
  padding-top: var(--space-3);
}
.tenet__num {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--gold);
  margin-bottom: 0.6rem;
}
.tenet__title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
}
.tenet p { color: var(--text-mute); }

/* ============ footer ============ */

.footer {
  border-top: 1px solid var(--line);
  background: var(--noir-1);
  margin-top: var(--space-5);
}
.footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--space-4) var(--space-3);
}
.footer__brand {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-2);
}
.footer__brand em { color: var(--gold); }
.footer__privacy { color: var(--text); font-size: 0.92rem; max-width: 44rem; }
.footer__legal { color: var(--text-mute); font-size: 0.82rem; max-width: 44rem; }

/* ============ toast ============ */

.toast[hidden] { display: none; }

.toast {
  position: fixed;
  left: 50%;
  bottom: var(--space-3);
  transform: translateX(-50%);
  z-index: 60;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--noir-3);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 0.7rem 1.1rem;
  font-size: 0.9rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  animation: rise 300ms var(--ease-out);
  max-width: calc(100vw - 2 * var(--space-3));
}

/* ============ bottom nav (mobile, app-style) ============ */

.bottomnav { display: none; }

@media (max-width: 639px) {
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .toast { bottom: calc(90px + env(safe-area-inset-bottom)); }

  .bottomnav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 55;
    display: flex;
    align-items: center;
    justify-content: space-around;
    background: rgba(10, 9, 8, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
    padding: 0.4rem 0.5rem calc(0.4rem + env(safe-area-inset-bottom));
  }
  .bottomnav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    min-width: 52px;
    min-height: 48px;
    justify-content: center;
    color: var(--text-mute);
    text-decoration: none;
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    transition: color var(--t-fast) var(--ease-out);
  }
  .bottomnav a:hover, .bottomnav a:focus-visible { color: var(--gold-bright); }
  .bottomnav a svg { width: 21px; height: 21px; }
  .bottomnav__add {
    width: 56px;
    height: 56px;
    margin-top: -24px;
    border: 1px solid var(--gold-bright);
    border-radius: 50%;
    background: linear-gradient(140deg, var(--gold-bright), var(--gold) 45%, var(--gold-deep));
    color: #221A08;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.55);
    transition: transform var(--t-fast) var(--ease-out);
  }
  .bottomnav__add:active { transform: scale(0.94); }
  .bottomnav__add svg { width: 22px; height: 22px; }
}

/* ============ scroll reveals ============ */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ breakpoints ============ */

@media (min-width: 640px) {
  .spot__controls { grid-template-columns: 1fr 1fr 1fr; }
  .summary { grid-template-columns: 1fr 1fr; }
  .stacks { grid-template-columns: 1fr 1fr; }
  .milestones { grid-template-columns: 1fr 1fr; }
  .plates { grid-template-columns: 1fr 1fr; }
  .ticker { display: inline-block; }
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1.05fr 0.95fr;
    min-height: calc(92dvh - 4rem);
  }
  /* the headline rides over the coin, Vitória-style */
  .hero__text { margin-right: -4.5rem; }
  .coin { width: min(42vw, 430px); }

  /* chips float around the coin with hairline connectors */
  .hero__chips {
    position: absolute;
    inset: 0;
    pointer-events: none;
    margin: 0;
  }
  .chip {
    position: absolute;
    pointer-events: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  }
  .chip::after { display: block; }
  .chip--melt { top: 4%; left: -6%; }
  .chip--melt::after { right: -40px; bottom: 10px; transform: rotate(18deg); transform-origin: left center; }
  .chip--ag { top: 46%; right: 0; }
  .chip--ag::after { left: -42px; top: 50%; }
  .chip--au { bottom: 2%; left: 0; }
  .chip--au::after { right: -40px; top: 8px; transform: rotate(-14deg); transform-origin: left center; }

  .summary { grid-template-columns: repeat(4, 1fr); }
  .vault-grid { grid-template-columns: minmax(280px, 360px) 1fr; }
  .tenets { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1100px) {
  .plates { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 639px) {
  .topnav { display: none; }
  .brand { min-width: 0; }
  .brand__name { font-size: 1rem; }
}

/* ============ reduced motion ============ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }
  .hero__title span,
  .hero__eyebrow, .hero__lede, .hero__actions, .hero__hint,
  .hero__chips,
  .coin { opacity: 1; transform: none; animation: none; }
  .coin__gleam { display: none; }
  .reveal { opacity: 1; transform: none; }
}
