

:root {
  --bg:        #0e0f12;
  --surface:   #15171c;
  --ink:       #f3f0e9;
  --ink-2:     #b9b6ad;
  --muted:     #8a8781;
  --hairline:  #26282e;
  --gold:      #c98500;
  --gold-text: #f0b429;
  --context:   #4d515a;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--gold); color: #0e0f12; }

a { color: var(--ink-2); }
a:hover { color: var(--gold-text); }
:focus-visible { outline: 2px solid var(--gold-text); outline-offset: 3px; }

strong { color: var(--ink); font-weight: 650; }

.topbar {
  position: sticky;
  top: 0;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1rem;
  background: rgba(14, 15, 18, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
  z-index: 9;
}
.topbar-title {
  font-family: var(--serif);
  font-size: 0.95rem;
  color: var(--ink-2);
  white-space: nowrap;
}
.share-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}
.share-label {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 0.2rem;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
  background: transparent;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 0.32rem 0.7rem;
  text-decoration: none;
  cursor: pointer;
}
.share-ico { width: 13px; height: 13px; fill: currentColor; flex: none; }
.interstitial .share-ico { width: 15px; height: 15px; }
.share-btn:hover { color: var(--gold-text); border-color: var(--gold); }
@media (max-width: 640px) {
  .topbar-title { display: none; }
  .topbar { justify-content: center; }
  .topbar .btn-label { display: none; }
  .topbar .share-btn { padding: 0.45rem; border: none; }
  .topbar .share-ico { width: 16px; height: 16px; }
}
.share-lead {
  margin-top: 3rem;
  font-size: 0.95rem;
  color: var(--ink-2);
  text-align: center;
}
.interstitial .share-row { justify-content: center; margin-top: 0.5rem; }
.interstitial > :not(.hero-photo) { position: relative; z-index: 1; }
.interstitial .hero-photo { background-position: center 30%; opacity: 0.11; }
.interstitial .share-btn { font-size: 0.75rem; padding: 0.45rem 0.95rem; }

.progress {
  position: absolute; inset: auto 0 -1px 0; height: 3px;
  background: transparent;
}
.progress-fill {
  height: 100%; width: 0;
  background: var(--gold);
}

.kicker {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
  text-align: center;
}

.prose {
  max-width: 42rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
}
.prose p + p { margin-top: 1.1em; }
.prose > p:not(.kicker):not(.counter-block) { color: var(--ink-2); }

.hero {
  min-height: 100svh;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  text-align: center;
  border-bottom: 1px solid var(--hairline);
}
.hero-inner { padding: 4rem 1.25rem; max-width: 46rem; position: relative; z-index: 1; perspective: 900px; }

.coin {
  width: 190px;
  height: 190px;
  margin: 0 auto 0.9rem;
  position: relative;
  transform-style: preserve-3d;
  animation: coin-spin 3.8s linear infinite;
}
.coin-face {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 6rem;
  font-weight: 600;
  color: #7a5200;
  text-shadow: 0 1px 0 rgba(255, 230, 160, 0.55);
  background: radial-gradient(circle at 35% 28%, #f0b429, #c98500 62%, #8f5e00);
  border: 4px solid #a06c00;
  backface-visibility: hidden;
}
.coin-front { transform: translateZ(6.5px); }
.coin-portrait {
  background: #c98500 url("farage-coin.jpg") center / cover no-repeat;
  background-blend-mode: multiply;
}
.coin-back { transform: rotateY(180deg) translateZ(6.5px); }
.coin-edge {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}
.coin-edge span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 13px;
  margin: -6.5px 0 0 -7px;
  background: #8f5e00;
}
.coin-edge span:nth-child(odd) { background: #a06c00; }
@keyframes coin-spin {
  from { transform: rotateX(-10deg) rotateY(0deg); }
  to   { transform: rotateX(-10deg) rotateY(360deg); }
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(3.4rem, 12vw, 7.5rem);
  line-height: 0.98;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin: 0 0 1.8rem;
}
.standfirst {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  color: var(--ink-2);
  max-width: 34rem;
  margin-inline: auto;
  line-height: 1.6;
}
.scroll-cue {
  margin-top: 3.2rem;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  animation: cue 2.4s ease-in-out infinite;
}
@keyframes cue {
  0%, 100% { transform: translateY(0); opacity: 0.7; }
  50%      { transform: translateY(6px); opacity: 1; }
}

.hero-photo {
  position: absolute;
  inset: 0;
  background-image: url("farage-bw.jpg");
  background-size: cover;
  background-position: center 18%;
  opacity: 0.13;
  filter: grayscale(1) contrast(1.05);
  -webkit-mask-image: radial-gradient(ellipse 75% 80% at 50% 38%, #000 30%, transparent 76%);
  mask-image: radial-gradient(ellipse 75% 80% at 50% 38%, #000 30%, transparent 76%);
  pointer-events: none;
}

.chapter {
  padding-block: clamp(5.5rem, 14vh, 9rem);
  border-bottom: 1px solid var(--hairline);
}

.counter-block {
  display: grid;
  gap: 0.6rem;
  justify-items: center;
  text-align: center;
  width: min(92vw, 60rem);
  margin: 0 0 2.6rem calc(50% - min(46vw, 30rem));
}
.big-money {
  font-family: var(--serif);
  font-size: clamp(3.2rem, 11vw, 8rem);
  font-weight: 600;
  line-height: 1.05;
  color: var(--gold-text);
  letter-spacing: -0.01em;
}
.counter-caption { max-width: 36rem; }
.money-suffix, .money-prefix { font-size: 0.55em; color: var(--gold-text); }
.counter-caption {
  font-size: 0.95rem;
  color: var(--muted);
}

.pull-quote {
  max-width: 42rem;
  margin: 3.4rem auto 0;
  padding-inline: 1.25rem;
}
.quote-car {
  width: 74px;
  height: auto;
  display: block;
  fill: var(--gold);
  margin-bottom: 1.1rem;
}
.pull-quote p {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3.4vw, 2.2rem);
  line-height: 1.4;
  color: var(--ink);
}
.pull-quote footer {
  margin-top: 1.3rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.pull-stat {
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.5;
  color: var(--ink);
  border-left: 2px solid var(--gold);
  padding-left: 1.2rem;
  margin-top: 2.2rem;
}

.fact-chips {
  max-width: 42rem;
  margin: 2.6rem auto 0;
  padding-inline: 1.25rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.fact-chips > div {
  padding: 0.95rem 1.1rem;
  border-bottom: 1px solid var(--hairline);
}
.fact-chips > div:nth-child(odd) { border-right: 1px solid var(--hairline); }
.fact-chips > div:nth-last-child(-n+2) { border-bottom: none; }
.fact-chips dt {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.3rem;
}
.fact-chips dd { font-size: 0.95rem; color: var(--ink); }

.chart {
  max-width: 46rem;
  margin: 3.2rem auto 0;
  padding: 1.6rem 1.4rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 10px;
}
.chart-title {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.chart-sub { font-size: 0.85rem; color: var(--muted); margin-bottom: 1.6rem; }

.bars { display: grid; gap: 1.05rem; }
.bar-row { display: grid; gap: 0.35rem; }
.bar-label { font-size: 0.82rem; color: var(--ink-2); }
.bar-track {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border-left: 1px solid var(--hairline);
  height: 18px;
  flex: 1;
}
.bar-row .bar-track { width: calc(100% - 5.5rem); }
.bar-row { grid-template-areas: "label label" "track value"; grid-template-columns: 1fr auto; }
.bar-label { grid-area: label; }
.bar-track { grid-area: track; width: auto; }
.bar-value {
  grid-area: value;
  align-self: center;
  font-size: 0.82rem;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  min-width: 4.6rem;
  text-align: right;
}
.bar {
  height: 100%;
  width: var(--w);
  border-radius: 0 4px 4px 0;
  transition: width 1.1s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.bar-accent { background: var(--gold); }
.bar-context { background: var(--context); }
.bar-row:hover .bar { filter: brightness(1.18); }

.js .bar { width: 0; }
.js .in-view .bar { width: var(--w); }
.in-view .bar-row:nth-child(2) .bar { transition-delay: 0.12s; }
.in-view .bar-row:nth-child(3) .bar { transition-delay: 0.24s; }
.in-view .bar-row:nth-child(4) .bar { transition-delay: 0.36s; }
.in-view .bar-row:nth-child(5) .bar { transition-delay: 0.48s; }
.in-view .bar-row:nth-child(6) .bar { transition-delay: 0.60s; }

figcaption, .chart-note {
  margin-top: 1.4rem;
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.55;
}
.chart-note { max-width: 42rem; margin-inline: auto; padding-inline: 1.25rem; }

.ingots { max-width: 46rem; margin: 1rem auto 2.4rem; padding-inline: 1.25rem; }
.ingot-svg { width: 100%; display: block; }
.ingot path { fill: var(--gold); }
.js .ingot {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--d, 0s);
}
.js .in-view .ingot { opacity: 1; transform: none; }

.interstitial {
  min-height: 92svh;
  display: grid;
  place-items: center;
  align-content: center;
  position: relative;
  overflow: hidden;
  background: #0a0b0d;
  border-bottom: 1px solid var(--hairline);
  padding: 4rem 1rem;
}
.interstitial-text {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.7rem, 6.5vw, 4.2rem);
  line-height: 1.45;
  text-transform: uppercase;
  text-align: center;
  color: var(--ink);
  letter-spacing: 0.42em;
  padding-left: 0.42em;
  opacity: 1;
  transition: letter-spacing 1.9s cubic-bezier(0.19, 1, 0.22, 1), opacity 1.9s ease;
}
.js .interstitial-text { letter-spacing: 0.06em; padding-left: 0.06em; opacity: 0.08; }
.js .interstitial-text.in-view { letter-spacing: 0.42em; padding-left: 0.42em; opacity: 1; }

.houses {
  list-style: none;
  max-width: 52rem;
  margin: 3rem auto 0;
  padding-inline: 1.25rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}

@media (min-width: 700px) {
  .houses { grid-template-columns: repeat(6, 1fr); }
  .house:nth-child(-n+2) { grid-column: span 3; min-height: 15rem; }
  .house:nth-child(-n+2) .house-icon { width: 58px; height: 52px; }
  .house:nth-child(n+3) { grid-column: span 2; }
}
.house {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 1.2rem 1.1rem 1.1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.house-icon { width: 42px; height: 38px; margin-bottom: 0.8rem; }
.house.declared .house-icon path { fill: var(--gold); }
.house.undeclared .house-icon path {
  fill: none;
  stroke: var(--muted);
  stroke-width: 2;
  stroke-dasharray: 4 3;
  stroke-linejoin: round;
}
.house h3 { font-family: var(--serif); font-size: 1.02rem; font-weight: 600; margin-bottom: 0.2rem; }
.house-value { font-size: 0.9rem; color: var(--gold-text); font-variant-numeric: tabular-nums; }
.house-note { font-size: 0.78rem; color: var(--ink-2); margin-top: 0.35rem; line-height: 1.45; }
.house-tag {
  margin-top: 0.7rem;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.house.declared .house-tag { color: var(--gold-text); }
.house.undeclared .house-tag { color: var(--muted); font-style: italic; }

.js .houses .house { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .houses.in-view .house { opacity: 1; transform: none; }
.houses.in-view .house:nth-child(2) { transition-delay: 0.18s; }
.houses.in-view .house:nth-child(3) { transition-delay: 0.36s; }
.houses.in-view .house:nth-child(4) { transition-delay: 0.54s; }
.houses.in-view .house:nth-child(5) { transition-delay: 0.72s; }

.stat-pair {
  max-width: 46rem;
  margin: 1rem auto 0;
  padding-inline: 1.25rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 1.8rem 1.5rem;
}
.stat-value {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5.5vw, 3.2rem);
  font-weight: 600;
  color: var(--gold-text);
  margin-bottom: 0.8rem;
  line-height: 1.1;
}
.stat-label { font-size: 0.9rem; color: var(--ink-2); line-height: 1.6; }

.timeline {
  list-style: none;
  max-width: 42rem;
  margin: 2.4rem auto 0;
  padding-inline: 1.25rem;
}
.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 6rem 1fr;
  gap: 1.2rem;
  padding: 0 0 2rem 1.8rem;
  border-left: 1px solid var(--hairline);
  margin-left: 0.4rem;
}
.timeline li:last-child { padding-bottom: 0.4rem; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 0.45em;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--gold);
}
.timeline li.tl-upcoming::before { background: var(--bg); border: 2px solid var(--gold); left: -6px; }
.tl-date {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 0.2em;
}
.tl-text { font-size: 0.95rem; color: var(--ink-2); }
.tl-upcoming .tl-text { font-style: italic; }

@media (max-width: 540px) {
  .timeline li { grid-template-columns: 1fr; gap: 0.2rem; }
}

.sources { padding-block: clamp(4rem, 10vh, 7rem); }
.sources { font-size: 0.85rem; }
.method { color: var(--ink-2); }
.source-list {
  list-style: none;
  margin-top: 2rem;
  display: grid;
  gap: 0.65rem;
  color: var(--muted);
}
.source-list a {
  color: var(--muted);
  text-decoration-color: var(--hairline);
  text-underline-offset: 3px;
}
.source-list a:hover { color: var(--gold-text); }
.colophon { margin-top: 2.5rem; color: var(--muted); }

.js [data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.85s ease, transform 0.85s ease;
}
.js [data-animate].in-view { opacity: 1; transform: none; }

.js .houses[data-animate], .js .ingots[data-animate] { transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-animate],
  .js .interstitial-text,
  .js .houses .house,
  .js .ingot,
  .js .dot-field .dot {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .js .interstitial-text { letter-spacing: 0.42em; padding-left: 0.42em; }
  .js .bar { width: var(--w) !important; transition: none !important; }
  .scroll-cue, .coin { animation: none !important; }
}
