:root {
  --wine-950: #16040e;
  --wine-900: #1e0713;
  --wine-800: #2c0b1d;
  --wine-700: #4a1432;
  --rose: #e893a7;
  --rose-soft: #f3c4cf;
  --flame: #ff5fa8;
  --marble: #f7ecef;
  --muted: #c49aab;
  --gold: #d4a945;
  --gold-deep: #9c7426;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --wrap: 1160px;
  --gap: clamp(1rem, 2.5vw, 1.75rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background:
    radial-gradient(60rem 40rem at 85% -10%, rgba(255, 95, 168, 0.18), transparent 60%),
    var(--wine-900);
  color: var(--marble);
  font: 400 1.03rem/1.65 var(--sans);
  font-variation-settings: "SOFT" 100, "WONK" 0;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rose); }
a:hover { color: var(--rose-soft); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
code { font-family: var(--mono); font-size: 0.85em; word-break: break-all; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }

.sr-only, .skip:not(:focus) {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip:focus { position: fixed; top: .5rem; left: .5rem; z-index: 99; background: var(--gold); color: var(--wine-950); padding: .5rem .75rem; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 1.5rem;
  padding: .75rem max(var(--gap), calc((100vw - var(--wrap)) / 2));
  background: rgba(30, 7, 19, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--wine-700);
}
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--marble); font: 700 1.35rem/1 var(--serif); }
.brand img { border-radius: 50%; border: 1.5px solid var(--gold); }
.nav nav { display: flex; gap: 1.25rem; margin-left: auto; }
.nav nav a { color: var(--muted); text-decoration: none; font-size: .9rem; }
.nav nav a:hover { color: var(--marble); }
.status {
  font-size: .8rem; color: var(--muted);
  padding: .3rem .7rem; border: 1px solid var(--wine-700); border-radius: 999px;
}
.status.live { color: var(--rose-soft); border-color: var(--rose); }
.status.live::before { content: ""; display: inline-block; width: .5rem; height: .5rem; margin-right: .4rem; border-radius: 50%; background: var(--flame); vertical-align: middle; }
.status.error { color: var(--gold); border-color: var(--gold-deep); }

main { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gap); }

/* Hero */
.hero {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4rem);
  align-items: center; padding: clamp(3rem, 8vw, 6rem) 0 clamp(3rem, 6vw, 5rem);
}
.kicker { color: var(--gold); font-size: .95rem; margin-bottom: 1rem; }
.hero h1 {
  font: 700 clamp(3rem, 8vw, 5.1rem)/1.02 var(--serif);
  text-wrap: balance;
  letter-spacing: -0.015em;
  margin-bottom: 1.5rem;
  background: linear-gradient(180deg, var(--marble) 35%, var(--rose) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { font-size: 1.1rem; max-width: 36rem; margin-bottom: 1rem; }
.lede strong { color: var(--rose-soft); }
.lede.quiet { color: var(--muted); font-size: 1rem; }

.cta { display: flex; flex-wrap: wrap; gap: .75rem; margin: 2rem 0; }
.btn {
  display: inline-flex; align-items: center; min-height: 2.9rem; padding: 0 1.25rem;
  border-radius: 999px; border: 1px solid var(--wine-700);
  color: var(--marble); text-decoration: none; font-weight: 500;
  transition: border-color .2s, background .2s;
}
.btn:hover { border-color: var(--rose); color: var(--marble); }
.btn.primary { background: var(--flame); border-color: var(--flame); color: var(--wine-950); font-weight: 600; }
.btn.primary:hover { background: var(--rose-soft); border-color: var(--rose-soft); color: var(--wine-950); }

.facts { display: grid; gap: .9rem; margin: 0; }
.facts div { display: grid; grid-template-columns: 8.5rem 1fr; gap: 1rem; align-items: baseline; }
.facts dt { color: var(--muted); font-size: .9rem; }
.facts dd { margin: 0; }

.ca {
  display: inline-flex; align-items: center; gap: .6rem; max-width: 100%;
  background: var(--wine-800); color: var(--marble);
  border: 1px solid var(--wine-700); border-radius: 8px;
  padding: .45rem .65rem; cursor: pointer; text-align: left; font: inherit;
}
.ca:hover { border-color: var(--gold); }
.copy-hint { flex: none; font-size: .75rem; color: var(--gold); }
.ca.small { margin-top: 1.25rem; width: 100%; justify-content: space-between; }

.hero-art { margin: 0; text-align: center; }
.medallion {
  position: relative; aspect-ratio: 1; max-width: 440px; margin: 0 auto;
  border-radius: 50%; padding: 10px;
  background: conic-gradient(from 200deg, var(--gold-deep), var(--gold), #f3dc97, var(--gold), var(--gold-deep));
  box-shadow: 0 0 0 1px rgba(212, 169, 69, .4), 0 30px 90px -20px rgba(255, 95, 168, .45);
  animation: rise 1.1s cubic-bezier(.2, .7, .2, 1) both;
}
.medallion img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
@keyframes rise { from { opacity: 0; transform: translateY(24px) scale(.97); } to { opacity: 1; transform: none; } }
.hero-art figcaption { margin-top: 1.25rem; color: var(--muted); font-size: .9rem; }
.hero-art figcaption span { color: var(--gold); font: 700 1.1rem var(--serif); margin-right: .35rem; }

/* Blocks */
.block { padding: clamp(3rem, 7vw, 5rem) 0; border-top: 1px solid var(--wine-700); }
.block h2 { font: 700 clamp(2rem, 4.5vw, 3rem)/1.1 var(--serif); margin-bottom: 1rem; }
.block-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 2rem; }
.refresh { color: var(--muted); font-size: .9rem; }
.intro { color: var(--muted); max-width: 44rem; margin-bottom: 2rem; }
.fine { color: var(--muted); font-size: .82rem; line-height: 1.5; }

/* Story */
.story { display: grid; grid-template-columns: .7fr 1.3fr; gap: 1.5rem clamp(2rem, 6vw, 5rem); align-items: start; }
.story h2 { position: sticky; top: 6rem; }
.story-copy p { max-width: 40rem; margin-bottom: 1.1rem; font-size: 1.08rem; }
.story-copy .aside { color: var(--rose-soft); font: italic 500 1.25rem/1.45 var(--serif); padding-left: 1rem; border-left: 2px solid var(--flame); }
.story-quote {
  grid-column: 1 / -1; margin: 1.5rem 0 0; padding: 2rem 0 0; border-top: 1px solid var(--wine-700);
  text-align: center;
}
.story-quote p {
  font: italic 600 clamp(1.7rem, 4.2vw, 2.8rem)/1.2 var(--serif);
  text-wrap: balance;
  background: linear-gradient(90deg, var(--rose), var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Pulse */
.pulse { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--wine-700); border: 1px solid var(--wine-700); border-radius: 14px; overflow: hidden; }
.stat { background: var(--wine-900); padding: 1.4rem 1.5rem; }
.stat h3 { font: 500 .9rem var(--sans); color: var(--muted); margin-bottom: .5rem; }
.num { font: 700 clamp(1.5rem, 3vw, 2rem)/1.15 var(--serif); font-variant-numeric: tabular-nums; }
.sub { color: var(--muted); font-size: .85rem; margin-top: .35rem; }
.lead-stat .num { color: var(--rose-soft); }
.up { color: #7fe3b0 !important; }
.down { color: #ff8a8a !important; }

.chart-wrap { margin-top: var(--gap); border: 1px solid var(--wine-700); border-radius: 14px; overflow: hidden; background: var(--wine-950); }
.chart-wrap iframe { display: block; width: 100%; height: 460px; border: 0; }

/* Versus */
.vs-title { font: 700 1.6rem var(--serif); margin-top: 3.5rem; }
.vs-sub { color: var(--muted); margin: .25rem 0 1.5rem; }
.versus { display: grid; grid-template-columns: 1fr auto 1fr; gap: var(--gap); align-items: stretch; }
.side { background: var(--wine-800); border: 1px solid var(--wine-700); border-radius: 14px; padding: 1.5rem; display: flex; flex-direction: column; }
.side header { display: flex; align-items: center; gap: .85rem; margin-bottom: 1.25rem; }
.side header img { border-radius: 50%; border: 1.5px solid var(--gold); }
.side header strong { display: block; font: 700 1.2rem var(--serif); }
.side header span { color: var(--muted); font-size: .85rem; }
.ptn-badge { width: 48px; height: 48px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--marble); color: var(--wine-900); font: 800 1.4rem var(--serif); }
.side dl { margin: 0; display: grid; gap: .1rem; }
.side dl div { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--wine-700); }
.side dt { color: var(--muted); }
.side dd { margin: 0; font-variant-numeric: tabular-nums; font-weight: 500; text-align: right; }
.side .ca { margin-top: auto; }
.side dl + .ca { margin-top: 1.25rem; }
.vs-mark { align-self: center; font: italic 500 2rem var(--serif); color: var(--gold); }

.note { margin-top: var(--gap); padding: 1.25rem 1.5rem; border-left: 3px solid var(--gold); background: rgba(212, 169, 69, .06); border-radius: 0 10px 10px 0; color: var(--muted); font-size: .92rem; }
.note .links { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-top: .75rem; }

/* Flippening */
.flip { display: grid; grid-template-columns: 1fr 220px; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.flip-copy > p:first-of-type { max-width: 36rem; color: var(--muted); }
.flip-copy strong { color: var(--marble); }
.flip-pct { margin-top: 2rem; color: var(--muted); }
.flip-pct span { display: block; font: 800 clamp(3.5rem, 10vw, 6rem)/1 var(--serif); color: var(--flame); font-variant-numeric: tabular-nums; }
.flip-verdict { font: italic 500 1.25rem var(--serif); margin: .5rem 0 2rem; }
.ref-table { margin: 0 0 1rem; max-width: 30rem; }
.ref-table div { display: flex; justify-content: space-between; padding: .55rem 0; border-bottom: 1px solid var(--wine-700); }
.ref-table dt { color: var(--muted); }
.ref-table dd { margin: 0; font-weight: 500; font-variant-numeric: tabular-nums; }
.ref-table div:last-child dd { color: var(--gold); }

.pillar { display: flex; flex-direction: column; align-items: center; }
.pillar-cap, .pillar-base { width: 170px; height: 22px; background: linear-gradient(180deg, var(--marble), #cdb9bf); border-radius: 4px; }
.pillar-cap { width: 150px; margin-bottom: 4px; }
.pillar-base { margin-top: 4px; height: 28px; }
.pillar-shaft { position: relative; width: 120px; height: 360px; background: #3a1a28; border-radius: 3px; overflow: hidden; }
.pillar-fill {
  position: absolute; left: 0; right: 0; bottom: 0; height: 0%;
  background: linear-gradient(0deg, var(--flame), var(--rose) 70%, #ffd3e2);
  box-shadow: 0 -8px 24px rgba(255, 95, 168, .7);
  transition: height 1.4s cubic-bezier(.2, .7, .2, 1);
}
.pillar-flutes { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(0,0,0,.28) 0 3px, transparent 3px 20px); }
.pillar-legend { display: flex; justify-content: space-between; width: 170px; margin-top: .6rem; color: var(--muted); font-size: .8rem; }

/* Short interest */
.meters { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.meter { background: var(--wine-800); border: 1px solid var(--wine-700); border-radius: 14px; padding: 1.5rem; }
.meter h3 { font: 500 .95rem var(--sans); color: var(--muted); }
.meter .num { font-size: clamp(2.4rem, 5vw, 3.2rem); margin-top: .3rem; }
.bar { height: 10px; background: var(--wine-950); border-radius: 999px; overflow: hidden; margin: 1.25rem 0 1rem; }
.bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--rose), var(--flame)); border-radius: inherit; transition: width 1.2s ease-out; }
.source { margin-top: 1.25rem; }

/* Fees */
.fees { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.fees-figure { text-align: center; padding: 2rem; border: 1px solid var(--gold-deep); border-radius: 50%; aspect-ratio: 1; display: grid; place-content: center; max-width: 320px; }
.fees-figure .big { font: 800 clamp(3.5rem, 8vw, 5rem)/1 var(--serif); color: var(--gold); }
.fees-figure p:last-child { color: var(--muted); font-size: .9rem; max-width: 12rem; margin: .5rem auto 0; }
.fees-copy p { max-width: 38rem; margin-bottom: 1rem; }

/* Risk */
.risk ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .1rem; max-width: 52rem; }
.risk li { padding: .9rem 0 .9rem 1.75rem; border-bottom: 1px solid var(--wine-700); position: relative; color: var(--rose-soft); }
.risk li::before { content: ""; position: absolute; left: 0; top: 1.45rem; width: .6rem; height: .6rem; border: 1.5px solid var(--gold); transform: rotate(45deg); }
.risk code { color: var(--marble); }

/* Footer */
.foot { border-top: 1px solid var(--wine-700); background: var(--wine-950); padding: 2.5rem max(var(--gap), calc((100vw - var(--wrap)) / 2)); display: grid; gap: 1.25rem; }
.foot-brand { display: flex; align-items: center; gap: .8rem; }
.foot-brand img { border-radius: 50%; border: 1.5px solid var(--gold); }
.foot-brand strong { font: 700 1.3rem var(--serif); margin-right: .5rem; }
.foot-brand p { color: var(--muted); }
.foot nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 1.5rem; transform: translate(-50%, 1rem); opacity: 0; pointer-events: none; background: var(--gold); color: var(--wine-950); font-weight: 600; padding: .6rem 1.1rem; border-radius: 999px; transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Responsive */
@media (max-width: 900px) {
  .nav nav { display: none; }
  .status { margin-left: auto; }
  .hero { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .medallion { max-width: 280px; }
  .pulse { grid-template-columns: 1fr 1fr; }
  .versus { grid-template-columns: 1fr; }
  .vs-mark { justify-self: center; }
  .flip { grid-template-columns: 1fr; }
  .pillar-shaft { height: 240px; }
  .fees { grid-template-columns: 1fr; }
  .story { grid-template-columns: 1fr; }
  .story h2 { position: static; }
  .fees-figure { margin: 0 auto; max-width: 240px; }
  .chart-wrap iframe { height: 380px; }
}
@media (max-width: 560px) {
  .pulse, .meters { grid-template-columns: 1fr; }
  .facts div { grid-template-columns: 1fr; gap: .25rem; }
}
