/* =========================================================
   Foodcoin — $FOODCOIN
   Brand: logo red #E42721 · brick #C93626 · cream #FFF1CA
   ========================================================= */
:root {
  --red: #E42721;
  --brick: #C93626;
  --deep: #8E140F;
  --cream: #FFF1CA;
  --cream-2: #FCEDC4;

  /* live theme, tweened by JS between sections */
  --bg: #FFF1CA;
  --fg: #E42721;
  --muted: color-mix(in srgb, var(--fg) 72%, var(--bg));
  --line: color-mix(in srgb, var(--fg) 24%, transparent);
  --soft: color-mix(in srgb, var(--fg) 7%, transparent);

  --f-display: "Bricolage Grotesque", "Inter Tight", system-ui, sans-serif;
  --f-body: "Inter Tight", system-ui, -apple-system, Segoe UI, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  --pad: clamp(16px, 4vw, 64px);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 8'%3E%3Cpath d='M0 4c2.5-3 5-3 7.5 0s5 3 7.5 0 3.5-2.4 5-1.6' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
::selection { background: var(--fg); color: var(--bg); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img, svg { display: block; max-width: 100%; }

/* headline accent: the wavy line from the logo */
h1 em, h2 em, .m-outro em, .advent-after em {
  font-style: normal; position: relative; display: inline-block; white-space: nowrap;
}
h1 em::after, h2 em::after, .m-outro em::after, .advent-after em::after {
  content: ""; position: absolute; left: .02em; right: .02em; bottom: -.1em; height: .2em;
  background: currentColor;
  -webkit-mask: var(--wave) repeat-x 0 50% / .5em 100%;
          mask: var(--wave) repeat-x 0 50% / .5em 100%;
  transform-origin: left center;
  transition: transform 1.2s var(--ease-out) .25s;
}
.hero-title em::after, [data-split] em::after { transform: scaleX(0); }
.hero-title.waved em::after, [data-split].waved em::after { transform: scaleX(1); }

.label {
  font-family: var(--f-mono); font-size: 12px; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted);
  display: flex; align-items: center; gap: 12px;
}
.label span { color: var(--fg); font-weight: 700; }
.label span::after { content: ""; display: inline-block; width: 26px; height: 1px; background: var(--line); margin-left: 12px; vertical-align: middle; }

.char { display: inline-block; will-change: transform; }
.word { display: inline-block; }
.wm { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .06em .12em; margin: 0 -.06em -.12em; }

/* ---------------- Preloader ---------------- */
.preloader { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; color: var(--cream); }
.pl-curtain { position: absolute; left: 0; right: 0; height: 50.5%; background: var(--red); }
.pl-curtain.top { top: 0; }
.pl-curtain.bottom { bottom: 0; }
.pl-inner { position: relative; z-index: 2; display: grid; place-items: center; gap: 22px; }
.pl-logo { position: relative; width: min(180px, 42vw); aspect-ratio: 1; }
.pl-logo img { position: absolute; inset: 0; width: 100%; height: 100%; }
.pl-ghost { opacity: .22; }
.pl-fill { clip-path: inset(100% 0 0 0); }
.pl-word { font-family: var(--f-display); font-weight: 700; font-size: clamp(22px, 3vw, 34px); letter-spacing: -.02em; overflow: hidden; padding-bottom: .1em; }
.pl-count { font-family: var(--f-mono); font-size: 12px; letter-spacing: .3em; opacity: .8; }

/* ---------------- Chrome ---------------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 120; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--fg); transform-origin: 0 50%; transform: scaleX(0); }

#snow { position: fixed; inset: 0; z-index: 40; pointer-events: none; }

.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

.cursor, .cursor-dot { position: fixed; top: 0; left: 0; z-index: 150; pointer-events: none; border-radius: 50%; display: none; }
.cursor {
  width: 42px; height: 42px; border: 1.5px solid var(--fg);
  transition: width .35s var(--ease-out), height .35s var(--ease-out), background-color .35s;
}
.cursor.is-hover { width: 84px; height: 84px; background: color-mix(in srgb, var(--fg) 14%, transparent); }
.cursor-dot { width: 6px; height: 6px; background: var(--fg); }
@media (hover: hover) and (pointer: fine) { .cursor, .cursor-dot { display: block; } }

.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 160;
  translate: -50% 20px; opacity: 0; pointer-events: none;
  background: var(--fg); color: var(--bg);
  font-family: var(--f-mono); font-size: 12px; font-weight: 500; letter-spacing: .08em;
  padding: 14px 20px; border-radius: 99px;
  transition: opacity .4s, translate .5s var(--ease-out);
  white-space: nowrap;
}
.toast.show { opacity: 1; translate: -50% 0; }

/* ---------------- Nav ---------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 14px var(--pad);
  transition: transform .6s var(--ease-out), background-color .4s, backdrop-filter .4s;
}
.nav.scrolled { background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.nav.hidden { transform: translateY(-110%); }
.brand { display: flex; gap: 10px; align-items: center; font-family: var(--f-display); font-weight: 800; font-size: 22px; letter-spacing: -.03em; }
.brand img { width: 38px; height: 38px; border-radius: 10px; }
.nav-links { display: flex; gap: 30px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.nav-links a { position: relative; transition: color .3s; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--fg); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease-out); }
.nav-links a:hover { color: var(--fg); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-actions { display: flex; gap: 10px; align-items: center; }

.pill {
  font-family: var(--f-mono); font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  border: 1.5px solid var(--line); padding: 9px 14px; border-radius: 99px;
  display: inline-flex; align-items: center; gap: 8px; color: var(--fg); white-space: nowrap;
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--fg); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }

.x-btn { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--fg); color: var(--bg); }
.x-btn svg { width: 16px; height: 16px; }

/* ---------------- Buttons ---------------- */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 17px 26px; border-radius: 99px;
  font-weight: 700; font-size: 14px; letter-spacing: .01em; white-space: nowrap;
  transition: color .4s;
}
.btn::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 100%;
  width: 140%; aspect-ratio: 1; border-radius: 50%;
  translate: -50% 0; transition: translate .6s var(--ease-out);
}
.btn:hover::before { translate: -50% -60%; }
.btn-primary { background: var(--fg); color: var(--bg); }
.btn-primary::before { background: color-mix(in srgb, var(--fg) 78%, #000); }
.btn-ghost { border: 1.5px solid var(--fg); color: var(--fg); }
.btn-ghost::before { background: var(--fg); }
.btn-ghost:hover { color: var(--bg); }
.btn i {
  font-style: normal; font-family: var(--f-mono); font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  background: var(--bg); color: var(--fg); padding: 4px 8px; border-radius: 99px;
}

/* ---------------- Hero ---------------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  padding: 112px var(--pad) 34px;
  display: flex; flex-direction: column; justify-content: space-between;
  overflow: hidden;
}
.hero-glow {
  position: absolute; left: 72%; top: 38%; width: 80vmax; height: 80vmax; translate: -50% -50%;
  background: radial-gradient(circle, rgba(228,39,33,.16), rgba(228,39,33,.05) 30%, transparent 60%);
  pointer-events: none;
}
.eyebrow {
  font-family: var(--f-mono); font-size: 12px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
  display: flex; gap: 14px; align-items: center; position: relative; z-index: 2;
}
.eyebrow::before { content: ""; width: 34px; height: 2px; background: currentColor; }
.hero-title {
  position: relative; z-index: 2; margin-top: 2vh;
  font-family: var(--f-display); font-weight: 800;
  font-size: clamp(3.6rem, 11.2vw, 13rem);
  line-height: .86; letter-spacing: -.055em;
  font-variation-settings: "opsz" 96;
}
.hero-title .line { display: block; overflow: hidden; padding: 0 .06em .14em 0; margin-bottom: -.14em; }
.hero-title .line-in { display: block; }
.hero-title .line:nth-child(2) { padding-left: .9em; }

.coin-stage {
  position: absolute; right: 8vw; top: 16vh; z-index: 3;
  width: clamp(170px, 26vw, 420px); aspect-ratio: 1;
  perspective: 1400px;
}
.coin-float, .coin-tilt, .coin { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; }
.coin-face { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.coin-face img { width: 100%; height: 100%; object-fit: cover; }
.coin-front { transform: translateZ(9px); }
.coin-front::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  box-shadow: inset 0 0 0 clamp(6px, .9vw, 12px) var(--brick), inset 0 0 0 clamp(8px, 1.15vw, 15px) var(--cream);
  background: radial-gradient(circle at 30% 24%, rgba(255,255,255,.35), transparent 42%);
}
.coin-back { transform: rotateY(180deg) translateZ(9px); }
.coin-edge { position: absolute; inset: 0; border-radius: 50%; background: #A3170F; }
.coin-edge:nth-child(odd) { background: #C21E17; }
.coin-shadow {
  position: absolute; left: 20%; right: 20%; bottom: -14%; height: 9%;
  background: radial-gradient(ellipse, rgba(110,14,10,.45), transparent 70%);
  filter: blur(8px);
}

.hero-bottom {
  position: relative; z-index: 4;
  display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 32px; align-items: end;
  margin-top: 5vh;
}
.hero-copy { max-width: 390px; color: var(--muted); font-size: 15px; font-weight: 500; }
.hero-copy strong { color: var(--fg); font-weight: 800; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.countdown { justify-self: end; text-align: right; }
.cd-label { font-family: var(--f-mono); font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.cd-digits { display: flex; gap: 14px; margin-top: 10px; justify-content: flex-end; }
.cd-digits span { display: flex; flex-direction: column; align-items: center; }
.cd-digits b { font-family: var(--f-display); font-weight: 800; font-size: clamp(28px, 3vw, 46px); line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.cd-digits small { font-family: var(--f-mono); font-size: 9px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }

.scroll-cue { position: absolute; left: 50%; bottom: 0; width: 2px; height: 28px; background: var(--line); overflow: hidden; }
.scroll-cue span { position: absolute; inset: 0; background: var(--fg); animation: cue 1.8s var(--ease-out) infinite; }
@keyframes cue { 0% { transform: translateY(-100%); } 100% { transform: translateY(100%); } }

/* ---------------- Meal meter ---------------- */
.meter { padding: 6vh var(--pad) 10vh; position: relative; z-index: 5; }
.meter-card {
  --fg: #FFF1CA; --bg: #E42721;
  --muted: color-mix(in srgb, #FFF1CA 72%, #E42721);
  --line: color-mix(in srgb, #FFF1CA 26%, transparent);
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--red); color: var(--cream);
  border-radius: clamp(24px, 3.4vw, 48px);
  padding: clamp(24px, 4vw, 60px);
  box-shadow: 0 60px 140px -50px rgba(110,14,10,.6);
}
.meter-card::before {
  content: ""; position: absolute; z-index: -1; left: -5%; right: -5%; top: 46%; height: 60px;
  background: var(--cream); opacity: .07;
  -webkit-mask: var(--wave) repeat-x 0 50% / 110px 100%; mask: var(--wave) repeat-x 0 50% / 110px 100%;
}
.meter-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.live {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  border: 1.5px solid var(--line); border-radius: 99px; padding: 9px 14px;
}
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--cream); position: relative; }
.live i::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--cream); animation: ping 1.8s var(--ease-out) infinite; }
.live.is-idle i::after { animation: none; opacity: 0; }
.live.is-error i { background: #FFD36B; }
@keyframes ping { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }

.meter-main { text-align: center; padding: clamp(36px, 7vh, 80px) 0 clamp(28px, 5vh, 56px); position: relative; }
.odo {
  display: flex; justify-content: center; align-items: flex-end;
  font-family: var(--f-display); font-weight: 800;
  font-size: clamp(4.2rem, 15vw, 15rem); line-height: 1; letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
}
.odo-d { display: inline-block; height: 1em; overflow: hidden; }
.odo-d.lead, .odo-c.lead { display: none; }
.odo-s { display: flex; flex-direction: column; will-change: transform; }
.odo-s span { display: block; height: 1em; line-height: 1; text-align: center; }
.odo-c { display: inline-block; width: .28em; text-align: center; }
.meter-sub { max-width: 620px; margin: 22px auto 0; font-size: clamp(1rem, 1.5vw, 1.3rem); font-weight: 600; line-height: 1.4; }
.meter-sub a { border-bottom: 2px solid var(--line); transition: border-color .3s; }
.meter-sub a:hover { border-color: var(--cream); }
.meter-pop {
  position: absolute; left: 50%; top: 30%; translate: -50% 0; pointer-events: none;
  font-family: var(--f-display); font-weight: 800; font-size: clamp(1.4rem, 2.6vw, 2.4rem);
  background: var(--cream); color: var(--red); padding: .2em .6em; border-radius: 99px; white-space: nowrap;
}

.meter-stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1.5px solid var(--line); border-bottom: 1.5px solid var(--line); }
.meter-stats div { padding: 22px 20px 22px 0; }
.meter-stats div + div { border-left: 1.5px solid var(--line); padding-left: 22px; }
.meter-stats dt { font-family: var(--f-mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.meter-stats dd { margin-top: 6px; font-family: var(--f-display); font-weight: 800; font-size: clamp(1.4rem, 2.4vw, 2.3rem); letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.meter-stats .rate dd { color: var(--red); background: var(--cream); display: inline-block; padding: 0 .3em; border-radius: .2em; }

.meter-bottom { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(24px, 4vw, 60px); padding-top: 28px; }
.feed-title { font-family: var(--f-mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.feed { list-style: none; }
.feed ul { list-style: none; display: grid; }
.feed li {
  display: grid; grid-template-columns: auto 1fr auto auto; gap: 14px; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 500;
}
.feed li.feed-empty { display: block; color: var(--muted); }
.feed .f-amt { font-family: var(--f-display); font-weight: 800; font-size: 17px; letter-spacing: -.02em; }
.feed .f-meals { color: var(--muted); }
.feed .f-time { font-family: var(--f-mono); font-size: 11px; color: var(--muted); }
.feed a { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; border-bottom: 1px solid var(--line); }
.meter-meta { display: grid; gap: 14px; align-content: start; font-size: 14px; }
.meter-meta p { display: grid; gap: 4px; }
.meter-meta span { font-family: var(--f-mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.meter-meta a, .meter-meta b { font-weight: 600; word-break: break-all; }
.meter-meta a { border-bottom: 1px solid var(--line); justify-self: start; }

/* ---------------- Bands ---------------- */
.bands { position: relative; height: clamp(190px, 26vw, 340px); overflow: hidden; display: grid; place-items: center; }
.band { position: absolute; left: -5%; width: 110%; padding: clamp(10px, 1.3vw, 18px) 0; overflow: hidden; }
.band-red { background: var(--red); color: var(--cream); rotate: -3deg; z-index: 2; box-shadow: 0 24px 60px rgba(110,14,10,.25); }
.band-cream { background: var(--cream); color: var(--red); rotate: 2.5deg; border-block: 2px solid var(--red); }
.marquee-track { display: flex; width: max-content; }
.marquee-track span {
  display: flex; align-items: center; padding-right: .3em; white-space: nowrap;
  font-family: var(--f-display); font-weight: 800;
  font-size: clamp(28px, 5vw, 72px); letter-spacing: -.035em; line-height: 1.1;
  animation: marquee 28s linear infinite;
}
.marquee-track.reverse span { animation-direction: reverse; animation-duration: 34s; font-weight: 600; }
.marquee-track img { width: .85em; height: .85em; border-radius: .2em; margin: 0 .4em; }
.marquee-track i { font-style: normal; display: inline-block; margin: 0 .4em; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* ---------------- Manifesto ---------------- */
.manifesto { padding: 20vh var(--pad) 22vh; position: relative; }
.manifesto-text {
  margin-top: 6vh; max-width: 1350px;
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(1.9rem, 4.4vw, 4.8rem); line-height: 1.06; letter-spacing: -.04em;
}
.manifesto-text .word { opacity: .16; }
.manifesto-text .hl { font-style: normal; }
.manifesto-text .hl .word { background: var(--fg); color: var(--bg); padding: 0 .2em; margin: 0 -.07em; border-radius: .14em; }

/* ---------------- Stats ---------------- */
.stats { position: relative; height: 100vh; overflow: hidden; }
.stats-head {
  position: absolute; top: 96px; left: var(--pad); right: var(--pad); z-index: 3;
  display: flex; justify-content: space-between; align-items: center;
}
.stat-index { font-family: var(--f-mono); font-size: 12px; letter-spacing: .2em; color: var(--muted); }
.stat-index b { color: var(--fg); font-weight: 700; }
/* plate and text share the exact same box, so their centers always line up */
.stats { --stat-top: 8vh; }
.stat-plate-wrap {
  position: absolute; inset: var(--stat-top) 0 0 0;
  display: flex; align-items: center; justify-content: center; gap: clamp(12px, 3vw, 46px);
}
.stat-plate { flex: 0 0 auto; width: min(64vh, 68vw); height: auto; max-width: none; overflow: visible; }
.sp-base { fill: color-mix(in srgb, var(--fg) 9%, transparent); stroke: var(--line); stroke-width: 2; }
.sp-well { fill: none; stroke: var(--line); stroke-width: 2; stroke-dasharray: 3 10; stroke-linecap: round; }
.sp-track { fill: none; stroke: color-mix(in srgb, var(--fg) 14%, transparent); stroke-width: 6; }
.stat-ring { fill: none; stroke: var(--fg); stroke-width: 6; stroke-linecap: round; }
.cutlery { flex: 0 0 auto; width: clamp(14px, 2.2vw, 30px); height: auto; max-width: none; fill: color-mix(in srgb, var(--fg) 30%, transparent); }
.stat-items { position: absolute; inset: 0; z-index: 2; }
.stat {
  position: absolute; inset: var(--stat-top) 0 0 0; padding: 0 var(--pad);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  visibility: hidden;
}
.stat-num {
  font-family: var(--f-display); font-weight: 800;
  /* sized to sit inside the plate (plate = min(64vh, 76vw)) */
  font-size: clamp(2.4rem, min(8.4vh, 10vw), 8.5rem); line-height: 1; letter-spacing: -.055em;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.stat-cap { max-width: min(420px, 40vh, 66vw); margin-top: 30px; font-size: clamp(1.05rem, 1.5vw, 1.35rem); line-height: 1.4; font-weight: 600; }
.stat-src { margin-top: 16px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* ---------------- Mission ---------------- */
.mission { position: relative; }
.mission-pin { position: relative; height: 100vh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.mission-track { display: flex; gap: clamp(20px, 3vw, 48px); padding: 0 var(--pad); width: max-content; align-items: center; }
.m-intro { width: min(44vw, 640px); flex-shrink: 0; padding-right: 4vw; }
.m-intro h2 { margin-top: 28px; font-family: var(--f-display); font-weight: 800; font-size: clamp(2.8rem, 6.2vw, 6.8rem); line-height: .92; letter-spacing: -.05em; }
.m-lead { margin-top: 28px; max-width: 440px; color: var(--muted); font-size: 17px; font-weight: 500; }
.m-card {
  position: relative; flex-shrink: 0; overflow: hidden;
  width: min(34vw, 460px); height: min(60vh, 540px);
  border-radius: 32px; padding: 34px;
  display: flex; flex-direction: column; justify-content: space-between;
  background: var(--red); color: var(--cream);
  box-shadow: 0 30px 80px -30px rgba(110,14,10,.55);
}
.m-card:nth-of-type(even) { background: var(--brick); }
.m-card::after {
  content: ""; position: absolute; left: -10%; right: -10%; bottom: 34%; height: 26px;
  background: var(--cream); opacity: .12;
  -webkit-mask: var(--wave) repeat-x 0 50% / 60px 100%; mask: var(--wave) repeat-x 0 50% / 60px 100%;
}
.m-top { display: flex; justify-content: space-between; align-items: flex-start; }
.m-num { font-family: var(--f-display); font-weight: 800; font-size: clamp(5rem, 9vw, 9rem); line-height: .8; letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 2px var(--cream); }
.m-icon { width: 46px; height: 46px; }
.m-card h3 { font-family: var(--f-display); font-weight: 800; font-size: clamp(2rem, 3vw, 2.9rem); letter-spacing: -.04em; }
.m-card p { margin-top: 10px; opacity: .85; max-width: 340px; font-weight: 500; }
.m-outro { flex-shrink: 0; width: min(46vw, 640px); padding-left: 4vw; }
.m-outro p { font-family: var(--f-display); font-weight: 800; font-size: clamp(3rem, 7vw, 7.5rem); line-height: .92; letter-spacing: -.055em; }

.flow { position: absolute; left: var(--pad); right: var(--pad); bottom: 7vh; }
.flow-line { height: 2px; background: var(--line); }
.flow-line span { display: block; height: 100%; background: var(--fg); transform-origin: 0 50%; transform: scaleX(0); }
.flow-coin { position: absolute; top: 1px; left: 0; width: 32px; height: 32px; border-radius: 50%; translate: -50% -50%; box-shadow: 0 0 0 3px var(--bg); }
.flow-labels { display: flex; justify-content: space-between; margin-top: 18px; font-family: var(--f-mono); font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

/* ---------------- Table scene ---------------- */
.table-scene {
  position: relative; height: 100vh; overflow: hidden;
  display: grid; grid-template-rows: auto 1fr auto;
  padding: 92px var(--pad) 30px;
}
.ts-heads { position: relative; height: clamp(3.4rem, 6.8vw, 7.2rem); margin-top: 16px; overflow: hidden; }
.ts-head {
  position: absolute; inset: 0; white-space: nowrap;
  font-family: var(--f-display); font-weight: 800;
  font-size: clamp(2rem, 5.4vw, 5.8rem); line-height: 1.02; letter-spacing: -.05em;
}
.ts-stage { position: relative; display: grid; place-items: center; min-height: 0; }
.ts-glow { position: absolute; inset: 5% 10%; border-radius: 50%; opacity: 0; background: radial-gradient(ellipse, rgba(255,180,70,.32), transparent 65%); }
.ts-svg { position: absolute; inset: 2% 0; width: 100%; height: 96%; overflow: visible; }
.chair { fill: var(--deep); }
.candle-flame { filter: drop-shadow(0 0 6px #ffb347); }
.ts-foot { display: flex; justify-content: space-between; gap: 18px; font-family: var(--f-mono); font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.ts-foot b { color: var(--fg); font-weight: 700; }

/* ---------------- Token ---------------- */
.token { padding: 22vh var(--pad) 18vh; }
.token-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 100px); align-items: center; }
.token-copy h2 { margin-top: 28px; font-family: var(--f-display); font-weight: 800; font-size: clamp(3rem, 7vw, 7.5rem); line-height: .9; letter-spacing: -.055em; }
.token-lead { margin-top: 28px; max-width: 500px; color: var(--muted); font-size: 17px; font-weight: 500; }
.facts { margin-top: 44px; display: grid; grid-template-columns: 1fr 1fr; border-top: 1.5px solid var(--line); }
.facts div { padding: 20px 0; border-bottom: 1.5px solid var(--line); }
.facts div:nth-child(odd) { padding-right: 20px; }
.facts dt { font-family: var(--f-mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin-top: 6px; font-family: var(--f-display); font-weight: 800; font-size: 24px; letter-spacing: -.03em; }

.ca-card {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: 36px; padding: clamp(26px, 3.4vw, 48px);
  background: var(--cream); color: var(--red);
  box-shadow: 0 50px 120px -40px rgba(70,6,4,.6);
  --fg: #E42721; --bg: #FFF1CA;
  --muted: color-mix(in srgb, #E42721 72%, #FFF1CA);
  --line: color-mix(in srgb, #E42721 24%, transparent);
}
.ca-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(228,39,33,.08) 50%, transparent 70%);
  background-size: 250% 100%; animation: shimmer 4s linear infinite;
}
@keyframes shimmer { from { background-position: 150% 0; } to { background-position: -100% 0; } }
.ca-glow { position: absolute; z-index: -1; width: 380px; height: 380px; border-radius: 50%; left: 0; top: 0; translate: -50% -50%; background: radial-gradient(circle, rgba(228,39,33,.14), transparent 65%); pointer-events: none; }
.ca-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ca-value {
  margin: 8vh 0; min-height: 1.2em;
  font-family: var(--f-mono); font-weight: 700;
  font-size: clamp(1.6rem, 3.6vw, 3.4rem); letter-spacing: .04em;
  word-break: break-all; line-height: 1.15;
}
.ca-value.is-address { font-size: clamp(.95rem, 1.6vw, 1.35rem); letter-spacing: .02em; }
.ca-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.ca-note { margin-top: 26px; font-size: 13px; font-weight: 500; color: var(--muted); }

/* ---------------- Advent ---------------- */
.advent { padding: 16vh var(--pad) 18vh; position: relative; }
.advent-title { margin-top: 28px; font-family: var(--f-display); font-weight: 800; font-size: clamp(3rem, 7vw, 7.5rem); line-height: .92; letter-spacing: -.055em; }
.advent-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2.4vw, 36px); margin-top: 12vh; }
.week { position: relative; border-top: 2px solid var(--line); padding-top: 30px; }
.week::before { content: ""; position: absolute; top: -2px; left: 0; height: 2px; width: 100%; background: var(--fg); transform: scaleX(var(--lit, 0)); transform-origin: left; transition: transform 1.2s var(--ease-out); }
.week.lit { --lit: 1; }
.candle-css { --ch: var(--h, 120px); position: relative; height: 190px; width: 40px; margin-bottom: 28px; }
.candle-css .body {
  position: absolute; bottom: 0; left: 0; width: 40px; height: var(--ch);
  border-radius: 8px 8px 4px 4px;
  background: linear-gradient(90deg, #B81C15, var(--red) 40%, #F0544A 55%, #B81C15);
}
.candle-css .body.alt { background: linear-gradient(90deg, #E8D4A4, var(--cream) 45%, #fffaf0 55%, #E8D4A4); box-shadow: inset 0 0 0 2px rgba(228,39,33,.25); }
.candle-css .body::before { content: ""; position: absolute; top: -3px; left: 0; right: 0; height: 8px; border-radius: 50%; background: rgba(255,255,255,.25); }
.candle-css .wick { position: absolute; left: 50%; bottom: calc(var(--ch) - 2px); width: 2px; height: 12px; translate: -50% 0; background: #3a120c; border-radius: 2px; }
.flame-wrap { position: absolute; left: 50%; bottom: calc(var(--ch) + 6px); width: 18px; height: 34px; translate: -50% 0; transform-origin: 50% 100%; transform: scale(0); }
.flame-wrap::before { content: ""; position: absolute; left: 50%; top: 50%; width: 140px; height: 140px; translate: -50% -50%; border-radius: 50%; background: radial-gradient(circle, rgba(255,170,60,.4), transparent 65%); }
.flame {
  position: absolute; inset: 0; border-radius: 50% 50% 45% 45% / 62% 62% 38% 38%;
  background: radial-gradient(ellipse at 50% 75%, #fffbe8 0 18%, #ffd36b 38%, #ff8a2a 70%, rgba(255,90,20,0) 72%);
  transform-origin: 50% 100%; animation: flicker 1.4s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 10px rgba(255,150,50,.9));
}
@keyframes flicker {
  0% { transform: scale(1, 1) rotate(-1.5deg); } 30% { transform: scale(.94, 1.06) rotate(1.5deg); }
  60% { transform: scale(1.04, .95) rotate(-.6deg); } 100% { transform: scale(.97, 1.08) rotate(2deg); }
}
.week-n { font-family: var(--f-mono); font-weight: 700; font-size: 14px; letter-spacing: .2em; }
.week h3 { margin-top: 10px; font-family: var(--f-display); font-weight: 800; font-size: clamp(1.5rem, 2.2vw, 2.2rem); letter-spacing: -.04em; line-height: 1.05; }
.week p { margin-top: 12px; color: var(--muted); font-size: 15px; font-weight: 500; max-width: 300px; }
.advent-after { margin-top: 16vh; text-align: center; font-family: var(--f-display); font-weight: 800; font-size: clamp(1.8rem, 3.6vw, 3.8rem); letter-spacing: -.045em; line-height: 1.1; }

/* ---------------- Footer ---------------- */
.footer { position: relative; overflow: hidden; padding: 16vh var(--pad) 30px; }
.footer-cta { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; }
.footer-cta h2 { font-family: var(--f-display); font-weight: 800; font-size: clamp(3rem, 8vw, 8.5rem); line-height: .9; letter-spacing: -.055em; }
.footer-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.banner-stage { margin: 12vh auto 10vh; max-width: 1180px; perspective: 1600px; }
.banner-card {
  border-radius: clamp(18px, 3vw, 40px); overflow: hidden;
  box-shadow: 0 60px 120px -40px rgba(60,4,2,.7), 0 0 0 2px rgba(255,241,202,.4);
  transform-style: preserve-3d; will-change: transform;
}
.banner-card img { width: 100%; height: auto; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 40px 0; border-top: 1.5px solid var(--line); }
.sources { list-style: none; margin-top: 16px; display: grid; gap: 10px; }
.sources a { font-size: 14px; font-weight: 500; border-bottom: 1.5px solid var(--line); transition: border-color .3s; }
.sources a:hover { border-color: var(--fg); }
.disclaimer { margin-top: 16px; color: var(--muted); font-size: 13px; max-width: 560px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 24px; border-top: 1.5px solid var(--line); font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.footer-bottom a:hover { color: var(--fg); }

/* ---------------- Responsive ---------------- */
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .hero-bottom { grid-template-columns: 1fr 1fr; }
  .countdown { grid-column: 1 / -1; justify-self: start; text-align: left; }
  .cd-digits { justify-content: flex-start; }
}

@media (max-width: 900px) {
  .hero { padding-top: 100px; }
  .hero-title { margin-top: 26vw; }
  .coin-stage { right: 6vw; top: 96px; width: 36vw; }
  .hero-bottom { grid-template-columns: 1fr; gap: 24px; }
  .hero-cta { justify-content: flex-start; }

  .mission-pin { height: auto; padding: 14vh 0 10vh; }
  .mission-track { flex-direction: column; width: auto; align-items: stretch; gap: 18px; }
  .m-intro, .m-outro { width: auto; padding: 0; }
  .m-intro { margin-bottom: 30px; }
  .m-outro { margin-top: 40px; }
  .m-card { width: 100%; height: auto; min-height: 300px; gap: 40px; }
  .flow { display: none; }

  .token-grid { grid-template-columns: 1fr; }
  .meter-stats { grid-template-columns: 1fr 1fr; }
  .meter-stats div:nth-child(3) { border-left: 0; padding-left: 0; }
  .meter-stats div:nth-child(n+3) { border-top: 1.5px solid var(--line); }
  .meter-bottom { grid-template-columns: 1fr; }
  .feed li { grid-template-columns: auto 1fr auto; }
  .feed .f-time { display: none; }
  .advent-grid { grid-template-columns: 1fr 1fr; row-gap: 60px; }
  .footer-grid { grid-template-columns: 1fr; }
  .ts-heads { height: 2.2em; font-size: clamp(2rem, 5.6vw, 6rem); }
  .ts-head { font-size: 1em; white-space: normal; }
  .ts-hint { display: none; }
}

@media (max-width: 560px) {
  .nav-actions > .pill { display: none; }
  .eyebrow { max-width: 52%; line-height: 1.6; }
  .eyebrow::before { display: none; }
  .hero-title { font-size: 17.5vw; margin-top: 24vw; }
  .coin-stage { width: 40vw; top: 88px; }
  .advent-grid { grid-template-columns: 1fr; }
  .candle-css { height: 170px; }
  .meter { padding-top: 2vh; }

  /* tighter vertical rhythm on phones */
  .manifesto { padding: 12vh var(--pad) 14vh; }
  .token { padding: 12vh var(--pad) 10vh; }
  .advent { padding: 10vh var(--pad) 10vh; }
  .advent-grid { margin-top: 7vh; row-gap: 34px; }
  .advent-after { margin-top: 9vh; }
  .footer { padding-top: 10vh; }
  .banner-stage { margin: 7vh auto 6vh; }

  /* stats: bigger plate, no cutlery, text fits inside */
  .stats { --stat-top: 6vh; }
  .stats-head { top: 84px; }
  .stats-head .label { font-size: 10px; letter-spacing: .14em; gap: 8px; }
  .stats-head .label span::after { display: none; }
  .cutlery { display: none; }
  .stat-plate { width: 94vw; }
  .stat-num { font-size: 11.5vw; }
  .stat-cap { max-width: 70vw; font-size: .95rem; margin-top: 16px; }
  .stat-src { max-width: 64vw; font-size: 9.5px; letter-spacing: .1em; line-height: 1.6; }

  /* roadmap: candle beside the text */
  .week { display: grid; grid-template-columns: 40px 1fr; column-gap: 22px; align-items: start; padding-top: 22px; }
  .candle-css { --ch: calc(var(--h, 120px) * .68); grid-row: 1 / span 3; height: 150px; margin: 0; }
  .week-n, .week h3, .week p { grid-column: 2; }
  .week h3 { margin-top: 4px; }
  .meter-top .label span::after { display: none; }
  .live { padding: 7px 10px; font-size: 10px; letter-spacing: .12em; white-space: nowrap; }
  .meter-stats dd { font-size: 1.35rem; }
  .meter-stats .rate dd { font-size: 1.1rem; white-space: nowrap; }
  .stat-cap { font-size: 1rem; }
  .facts dd { font-size: 18px; }
  .btn { padding: 15px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .grain, .marquee-track span, .flame, .ca-card::after, .scroll-cue span { animation: none !important; }
}
