:root {
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif;
  --serif: "PT Serif", Georgia, serif;
  --gap: 22px; /* one spacing step for stacked bottom blocks */
  --pill: 60px; /* the sticky pill: 16px off the bottom + 44px tall */
  --safe: calc(var(--pill) + var(--gap)); /* nothing sits lower than this while the pill is out */
  --bg: #fff8fb;
  --blush: #ff8fc8;
  --hot: #ff3fa4;
  --mint: #57c785;
  --mint2: #9be8c4;
  --gold: #f2c14e;
  --ink: #1b1220;
  --sub: rgba(27, 18, 32, 0.6);
}
* { box-sizing: border-box; margin: 0; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { background: radial-gradient(120% 70% at 50% 0%, #ffe9f4 0%, var(--bg) 60%) fixed; color: var(--ink); font-family: var(--sans); font-weight: 500; overflow-x: hidden; }
a { color: inherit; }

#gl { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; opacity: 0; transition: opacity 0.35s ease; }
#gl.on { opacity: 1; }
main, footer, .top { position: relative; z-index: 1; }

.top { position: fixed; top: 0; left: 0; right: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; font-size: 14px; }
.logo { font-weight: 500; font-size: 19px; letter-spacing: -0.03em; }
.logo b { color: var(--hot); }
.ig { text-decoration: none; font-weight: 500; color: var(--sub); }

.scene { position: relative; height: 100vh; }
.pin { position: relative; height: 100vh; width: 100%; overflow: hidden; }

.headline { font-weight: 500; font-size: clamp(38px, min(11vw, 9vh), 84px); line-height: 1.02; letter-spacing: -0.035em; text-align: center; }
.headline em { font-family: var(--serif); font-style: italic; font-weight: 700; color: var(--hot); letter-spacing: -0.03em; }
h2.headline { font-size: clamp(32px, 9vw, 70px); padding: 0 20px; }
.sub { font-size: 16px; color: var(--sub); text-align: center; margin-top: 10px; font-weight: 500; }
.kicker { font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--hot); text-align: center; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 18px 28px; font: 500 17px var(--sans); color: #fff; text-decoration: none; cursor: pointer; background: linear-gradient(180deg, #ff5db3, var(--hot)); box-shadow: 0 14px 34px rgba(255, 63, 164, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.35); transition: transform 0.15s ease; }
.btn:active { transform: scale(0.97); }

/* hero */
#hero .hint { position: absolute; bottom: 6vh; width: 100%; text-align: center; color: var(--sub); font-size: 14px; }
.hero-h { position: absolute; top: 11vh; left: 0; right: 0; }
.hero-h .w { display: inline-block; opacity: 0; transform: translateY(0.4em); filter: blur(10px); }
.hero-sub { position: absolute; top: calc(11vh + clamp(38px, min(11vw, 9vh), 84px) * 2.1); left: 0; right: 0; opacity: 0; }
.hero-btn { position: absolute; left: 50%; bottom: 7vh; transform: translateX(-50%) scale(0.8); opacity: 0; white-space: nowrap; }

/* leaks */
#leaks .headline { position: absolute; top: 12vh; left: 0; right: 0; }
.tag { position: absolute; left: var(--x); top: var(--y); padding: 10px 14px; border-radius: 14px; background: #fff; box-shadow: 0 10px 30px rgba(90, 30, 70, 0.12); font-size: 14px; white-space: nowrap; opacity: 0; transform: scale(0.6); }
.tag b { color: var(--hot); }
.counter { position: absolute; bottom: var(--safe); left: 0; right: 0; text-align: center; }
.counter span { display: block; font-weight: 500; font-size: clamp(56px, 17vw, 120px); line-height: 0.78; letter-spacing: -0.045em; color: var(--hot); font-variant-numeric: tabular-nums; }
.counter small { display: block; margin-top: var(--gap); font-size: 15px; line-height: 1; color: var(--sub); }

/* jar */
#jar .headline { position: absolute; top: max(64px, 8vh); left: 0; right: 0; }
.jar-n { top: 40vh; bottom: auto; } /* main.js pins it right under the jar rim */
.jar-n small { margin-top: 12px; }
.jar-n span { color: var(--mint); }
.miles { position: absolute; bottom: var(--safe); left: 0; width: max-content; display: flex; gap: 12px; padding: 0 50vw; }
.mile { width: 210px; padding: 14px 16px; border-radius: 18px; background: #fff; box-shadow: 0 10px 30px rgba(40, 90, 60, 0.12); font-size: 15px; line-height: 1.3; }
.mile b { display: block; color: var(--mint); font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 4px; }

/* book */
#book .kicker { position: absolute; top: 12vh; left: 0; right: 0; }
.book-h { position: absolute; bottom: max(9vh, var(--safe)); left: 0; right: 0; font-size: clamp(28px, 8vw, 56px) !important; }
#chapNum { font-family: var(--serif); font-style: italic; font-weight: 700; color: var(--hot); }

/* era */
.era { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px; text-align: center; padding: 0 24px; }
.brokie { background: #e9e6ea; color: #6d6670; justify-content: flex-start; padding-top: 20vh; }
.baddie { background: linear-gradient(160deg, #ffd3ea, #ff8fc8); color: var(--ink); clip-path: inset(0 100% 0 0); justify-content: flex-end; padding-bottom: 26vh; }
.era-k { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; }
.era-big { font-weight: 500; font-size: clamp(72px, 22vw, 160px); letter-spacing: -0.045em; line-height: 1; }
.era-s { font-size: 15px; }
.era-h { position: absolute; bottom: max(9vh, var(--safe)); left: 0; right: 0; }

/* penny */
#penny .kicker { position: absolute; top: 11vh; left: 0; right: 0; }
#penny .headline { position: absolute; top: calc(11vh + 26px); left: 0; right: 0; }
#penny .sub { position: absolute; top: calc(11vh + 26px + 1.1em * 2.4 + 20px); left: 0; right: 0; }
.quotes { position: absolute; bottom: var(--safe); left: 0; right: 0; height: 42vh; }
.q { position: absolute; left: 50%; width: min(300px, 80vw); padding: 14px 16px; border-radius: 18px; background: #fff; box-shadow: 0 12px 34px rgba(90, 30, 70, 0.14); font-family: var(--serif); font-style: italic; font-weight: 700; font-size: 17px; line-height: 1.25; text-align: center; opacity: 0; }
.q:nth-child(1) { top: 0; transform: translateX(-62%) rotate(-3deg); }
.q:nth-child(2) { top: 34%; transform: translateX(-38%) rotate(2deg); }
.q:nth-child(3) { top: 68%; transform: translateX(-58%) rotate(-2deg); }

/* form */
.final { position: relative; min-height: 100vh; display: flex; align-items: flex-end; justify-content: center; padding: 38vh 16px 8vh; }
.card { width: 100%; max-width: 480px; padding: 30px 22px 24px; border-radius: 32px; background: linear-gradient(170deg, #fff 0%, #ffeaf5 100%); box-shadow: 0 30px 80px rgba(255, 63, 164, 0.22), inset 0 1px 0 #fff; text-align: center; }
.card .headline { font-size: clamp(32px, 9vw, 48px); padding: 0; margin: 10px 0 20px; }
form { display: flex; flex-direction: column; gap: 10px; }
input { width: 100%; padding: 18px 20px; border-radius: 999px; border: 2px solid rgba(255, 63, 164, 0.25); background: #fff; font: 500 17px var(--sans); color: var(--ink); outline: none; }
input:focus { border-color: var(--hot); }
.err { min-height: 18px; color: #d4145a; font-size: 14px; }
.fine { font-size: 13px; color: var(--sub); margin-top: 4px; }

.sticky { position: fixed; left: 50%; bottom: 16px; z-index: 6; transform: translateX(-50%) translateY(120px); padding: 12px 20px; line-height: 20px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 15px; text-decoration: none; box-shadow: 0 10px 30px rgba(27, 18, 32, 0.3); transition: transform 0.3s ease; }
.sticky.on { transform: translateX(-50%) translateY(0); }

footer { padding: 30px 20px 90px; text-align: center; font-size: 13px; color: var(--sub); line-height: 1.8; }

@media (prefers-reduced-motion: reduce) {
  .hero-h .w, .hero-sub, .hero-btn, .tag, .q { opacity: 1 !important; transform: none !important; filter: none !important; }
  .baddie { clip-path: inset(0 0 0 50%); }
}
