:root {
  color-scheme: dark;
  --ink: #0B0B0C;
  --card: #141312;
  --gold: #C9A24A;
  --gold-hover: #E6C77A;
  --cream: #F3EEE3;
  --muted: #BDB5A6;
  --line: rgba(201, 162, 74, .55);
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Inter", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, input { font: inherit; }
button { color: inherit; }
.wrap { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.gold { color: var(--gold); }
.eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .2em;
  line-height: 1.5;
  text-transform: uppercase;
}

.hero {
  position: relative;
  display: flex;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  flex-direction: column;
  background: var(--ink) url("../assets/video/hero-poster.jpg") center / cover no-repeat;
}
.hero__video, .hero__shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__video { z-index: -2; object-fit: cover; }
.hero__shade {
  z-index: -1;
  background:
    radial-gradient(ellipse at 75% 55%, rgba(201, 162, 74, .12), transparent 47%),
    linear-gradient(rgba(11, 11, 12, .48), rgba(11, 11, 12, .78)),
    rgba(11, 11, 12, .6);
}
.site-header { display: flex; min-height: 94px; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__gem { width: 30px; height: 34px; fill: none; stroke: var(--gold); stroke-width: 1.35; }
.brand__word { color: var(--cream); font-size: 14px; font-weight: 600; letter-spacing: .2em; }
.brand__word span { color: var(--gold); }
.header-link { color: var(--muted); font-size: 11px; letter-spacing: .13em; text-decoration: none; text-transform: uppercase; }
.header-link span { padding-left: 4px; color: var(--gold); }
.header-link:hover, .site-footer a:hover { color: var(--gold-hover); }
.hero__content {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  padding-top: 26px;
  padding-bottom: 82px;
}
.hero__eyebrow { color: var(--gold-hover); }
.hero h1 {
  margin: 18px 0 0 -7px;
  font-family: var(--serif);
  font-size: clamp(68px, 12vw, 150px);
  font-weight: 400;
  letter-spacing: -.055em;
  line-height: .98;
}
.hero__statement {
  margin: 20px 0 36px;
  color: var(--gold-hover);
  font-family: var(--serif);
  font-size: clamp(20px, 2.7vw, 31px);
  font-style: italic;
  line-height: 1.45;
}
.hero__progress-card { width: min(470px, 100%); }
.hero__progress-heading, .hero__progress-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.hero__goal, .hero__progress-meta { color: var(--muted); font-size: 11px; }
.hero__amount { margin: 2px 0 17px; font-family: var(--serif); font-size: clamp(35px, 5vw, 58px); line-height: 1.2; }
.progress-track { height: 2px; overflow: hidden; background: rgba(243, 238, 227, .25); }
.progress-track__fill { display: block; width: 0; height: 100%; background: var(--gold); transition: width 1.1s ease; }
.hero__progress-meta { margin-top: 11px; }
.hero__index { position: absolute; right: 24px; bottom: 30px; margin: 0; color: var(--muted); font-size: 9px; letter-spacing: .2em; writing-mode: vertical-rl; }
.scroll-cue { display: inline-flex; width: fit-content; align-items: center; gap: 12px; margin-top: 50px; color: var(--muted); font-size: 9px; letter-spacing: .17em; text-decoration: none; text-transform: uppercase; }
.scroll-cue span { width: 32px; height: 1px; background: var(--gold); }

.section { padding-block: 112px; }
.section-heading { margin-bottom: 44px; }
.section-heading h2, .closing h2 {
  margin: 10px 0 0;
  font-family: var(--serif);
  font-size: clamp(37px, 5vw, 58px);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: 1.15;
}
.section-heading--row { display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.section-heading--row .section-heading__aside { margin: 0 0 5px; }
.section-heading__aside { color: var(--muted); font-size: 12px; line-height: 1.8; }
.terms { padding-top: 100px; }
.terms__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.term-card {
  min-height: 224px;
  padding: 31px 34px;
  border: 1px solid var(--line);
  background: var(--card);
}
.term-card__number { margin: 21px 0 10px; color: var(--gold-hover); font-family: var(--serif); font-size: clamp(38px, 5vw, 57px); line-height: 1.1; }
.term-card__note { margin: 0; color: var(--muted); font-size: 12px; }

.growth, .ledger { background: #101011; }
.chart-panel { border: 1px solid var(--line); background: var(--card); padding: 28px 30px 26px; }
.chart-panel__top { display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.chart-panel__caption { margin: 7px 0 0; color: var(--muted); font-size: 12px; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 15px; color: var(--muted); font-size: 10px; }
.chart-legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.legend-dot--pace { background: var(--cream); }
.legend-dot--projected { border: 1px dashed var(--gold); background: transparent; }
.chart-controls { display: flex; gap: 5px; margin: 24px 0 7px; }
.period-button, .retry-button {
  min-width: 72px;
  min-height: 44px;
  padding: 0 15px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: color .2s, border-color .2s, background .2s;
}
.period-button:hover, .period-button.is-active { border-color: var(--line); color: var(--gold-hover); }
.period-button.is-active { background: rgba(201, 162, 74, .08); }
.period-button:focus-visible, .show-all:focus-visible, .cta-button:focus-visible, .retry-button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--gold-hover); outline-offset: 3px; }
.chart-wrap { position: relative; height: 330px; }
.chart-fallback { padding: 50px 0; color: var(--muted); text-align: center; }
.scrubber { padding: 20px 0 17px; border-top: 1px solid rgba(243, 238, 227, .12); }
.scrubber label { display: block; margin-bottom: 13px; }
.scrubber input[type="range"] { display: block; width: 100%; height: 44px; min-height: 44px; margin: 0; accent-color: var(--gold); cursor: pointer; }
.scrubber__ends { display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; }
.day-card { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.day-card > div { min-height: 110px; padding: 19px 14px; }
.day-card > div:first-child { padding-left: 0; }
.day-card > div + div { border-left: 1px solid rgba(201, 162, 74, .25); }
.day-card__day { margin: 9px 0 0; font-family: var(--serif); font-size: 20px; }
.day-card__date-text { margin: 2px 0 0; color: var(--muted); font-size: 11px; }
.day-card__metric { display: flex; flex-direction: column; justify-content: center; gap: 5px; }
.day-card__metric strong { font-family: var(--serif); font-size: 19px; font-weight: 400; }
.day-card__metric small { color: var(--muted); font-size: 10px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 18px; }
.stat-tile { min-height: 142px; padding: 20px; border: 1px solid rgba(201, 162, 74, .38); background: var(--card); }
.stat-tile__value { margin: 17px 0 4px; color: var(--gold-hover); font-family: var(--serif); font-size: clamp(24px, 3vw, 34px); line-height: 1.1; }
.stat-tile__value span { font-family: var(--sans); font-size: 10px; letter-spacing: .08em; }
.stat-tile__value--date { font-size: clamp(19px, 2vw, 26px); }
.stat-tile__note { margin: 0; color: var(--muted); font-size: 10px; }

.allocation-panel { display: grid; grid-template-columns: minmax(230px, .8fr) 1.2fr; align-items: center; gap: 65px; padding: 36px; border: 1px solid var(--line); background: var(--card); }
.allocation-chart-wrap { position: relative; width: min(100%, 300px); margin-inline: auto; }
.allocation-chart-wrap canvas { display: block; }
.allocation-total { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; margin: 0; pointer-events: none; }
.allocation-total strong { margin-top: 5px; font-family: var(--serif); font-size: 27px; font-weight: 400; }
.allocation-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.allocation-list li { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 61px; border-bottom: 1px solid rgba(243, 238, 227, .12); }
.allocation-list li:last-child { border-bottom: 0; }
.allocation-name { display: flex; align-items: center; gap: 11px; color: var(--muted); font-size: 12px; }
.allocation-swatch { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; }
.allocation-amount { white-space: nowrap; font-family: var(--serif); font-size: 17px; }

.ledger-table-wrap { overflow-x: auto; border-top: 1px solid var(--line); }
.ledger-table { width: 100%; border-collapse: collapse; text-align: left; }
.ledger-table th { padding: 14px 18px; color: var(--muted); font-size: 9px; font-weight: 500; letter-spacing: .17em; text-transform: uppercase; }
.ledger-table td { padding: 16px 18px; border-top: 1px solid rgba(243, 238, 227, .12); font-size: 12px; }
.ledger-table td:nth-child(2) { color: var(--gold-hover); font-family: var(--serif); font-size: 17px; white-space: nowrap; }
.ledger-table td:last-child { color: var(--muted); }
.ledger-table th:first-child, .ledger-table td:first-child { padding-left: 0; }
.empty-state { padding: 27px 0; color: var(--muted); font-size: 12px; }
.show-all { min-height: 44px; margin-top: 20px; padding: 0 20px; border: 1px solid var(--line); background: transparent; color: var(--gold-hover); cursor: pointer; font-size: 10px; letter-spacing: .13em; text-transform: uppercase; }
.show-all:hover { background: rgba(201, 162, 74, .1); }

.rules-list { margin: 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.rules-list li { display: grid; grid-template-columns: 100px 1fr; align-items: center; min-height: 95px; border-bottom: 1px solid rgba(243, 238, 227, .14); font-family: var(--serif); font-size: clamp(18px, 2.5vw, 25px); }
.rules-list__number { color: var(--gold); font-size: 34px; }
.closing { padding: 94px 24px 100px; border-top: 1px solid rgba(201, 162, 74, .3); text-align: center; }
.closing h2 { margin-bottom: 29px; }
.cta-button { display: inline-flex; min-height: 52px; align-items: center; gap: 16px; padding: 0 25px; border: 1px solid var(--gold); color: var(--gold-hover); font-size: 10px; letter-spacing: .14em; text-decoration: none; text-transform: uppercase; transition: background .2s, color .2s; }
.cta-button:hover { background: var(--gold); color: var(--ink); }
.site-footer { display: flex; min-height: 95px; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid rgba(243, 238, 227, .12); }
.brand--small .brand__gem { width: 22px; height: 25px; }
.brand--small .brand__word { font-size: 10px; }
.site-footer p, .site-footer > a:last-child { color: var(--muted); font-size: 10px; }
.site-footer > a:last-child { letter-spacing: .1em; text-decoration: none; }
.site-footer p { margin: 0; }

.load-error { position: fixed; z-index: 5; inset: 0; display: grid; place-items: center; padding: 24px; background: rgba(11, 11, 12, .86); }
.load-error[hidden] { display: none; }
.load-error__card { width: min(450px, 100%); padding: 31px; border: 1px solid var(--line); background: var(--card); }
.load-error__card p { color: var(--cream); }
.retry-button { border-color: var(--line); color: var(--gold-hover); }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 760px) {
  .wrap { width: min(100% - 36px, 580px); }
  .hero { min-height: 820px; min-height: 100svh; }
  .hero__video { display: none; }
  .hero__shade { background: linear-gradient(rgba(11, 11, 12, .5), rgba(11, 11, 12, .78)), rgba(11, 11, 12, .6); }
  .site-header { min-height: 76px; }
  .hero__content { padding-bottom: 75px; }
  .hero h1 { margin-left: -3px; font-size: clamp(59px, 13vw, 92px); }
  .hero__statement { margin-bottom: 30px; }
  .scroll-cue { margin-top: 37px; }
  .hero__index { display: none; }
  .section { padding-block: 78px; }
  .terms { padding-top: 78px; }
  .section-heading { margin-bottom: 30px; }
  .term-card { min-height: 190px; padding: 24px; }
  .chart-panel { padding: 22px 18px 19px; }
  .chart-panel__top { flex-direction: column; }
  .chart-wrap { height: 270px; }
  .day-card { grid-template-columns: repeat(2, 1fr); }
  .day-card > div { min-height: 95px; padding: 15px 12px; }
  .day-card > div:first-child { padding-left: 12px; }
  .day-card > div:nth-child(odd) { border-left: 0; }
  .day-card > div:nth-child(n+3) { border-top: 1px solid rgba(201, 162, 74, .25); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .allocation-panel { grid-template-columns: 1fr; gap: 26px; padding: 28px 21px; }
  .allocation-chart-wrap { width: min(230px, 80%); }
  .section-heading--row { align-items: start; flex-direction: column; gap: 10px; }
  .site-footer { flex-wrap: wrap; justify-content: space-between; padding-block: 23px; }
  .site-footer p { order: 3; width: 100%; }
}
@media (max-width: 480px) {
  .wrap { width: calc(100% - 32px); }
  .brand { gap: 8px; }
  .brand__gem { width: 25px; height: 29px; }
  .brand__word { font-size: 12px; }
  .header-link { font-size: 9px; }
  .hero h1 { font-size: clamp(52px, 13vw, 66px); }
  .hero__statement { font-size: 21px; }
  .terms__grid { grid-template-columns: 1fr; gap: 12px; }
  .term-card { min-height: 166px; }
  .term-card__number { margin-top: 15px; }
  .chart-legend { gap: 10px; font-size: 9px; }
  .chart-controls { display: grid; grid-template-columns: repeat(4, 1fr); }
  .period-button { min-width: 0; padding-inline: 5px; font-size: 9px; }
  .chart-wrap { height: 240px; }
  .day-card__metric strong { font-size: 16px; }
  .stats-grid { gap: 9px; }
  .stat-tile { min-height: 125px; padding: 15px 13px; }
  .stat-tile__value { font-size: 25px; }
  .stat-tile__value--date { font-size: 18px; }
  .allocation-panel { padding-inline: 16px; }
  .ledger-table th, .ledger-table td { padding-right: 10px; padding-left: 10px; }
  .ledger-table th:first-child, .ledger-table td:first-child { padding-left: 0; }
  .rules-list li { grid-template-columns: 58px 1fr; min-height: 88px; }
  .rules-list__number { font-size: 29px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .hero__video { display: none; }
  .reveal { opacity: 1; transform: none; }
}
