:root {
  --bg: #050505;
  --ink: #ffffff;
  --pink: #ff2b93;       /* brand pink (logo outline) */
  --pink-dark: #c4136c;
  --pink-soft: #fb6fb1;  /* banner/video background pink */
  --blush: #fff0f6;
  --gray: #9a9a9a;
  --line: #1e1e1e;
  --display: "Anton", Impact, sans-serif;
  --body: "Sora", system-ui, sans-serif;
  --mono: "Space Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { background: var(--bg); color: var(--ink); font-family: var(--body); overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img, canvas, svg, video { display: block; max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.c-pink { color: var(--pink); }
.c-white { color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  font-family: var(--body); font-weight: 800; font-size: .85rem; letter-spacing: .06em;
  padding: .95em 1.8em; border: 2px solid transparent; border-radius: 4px; cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
.btn:disabled { opacity: .35; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-pink { background: var(--pink); color: #fff; }
.btn-dark { background: var(--bg); color: #fff; }
.btn-outline { border-color: #fff; color: #fff; background: transparent; }
.btn-outline:hover { border-color: var(--pink); color: var(--pink); box-shadow: 4px 4px 0 var(--pink); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  display: flex; align-items: center; gap: 2rem;
  padding: .75rem clamp(16px, 3vw, 2rem);
  background: var(--pink); color: var(--bg);
  border-bottom: 2px solid var(--bg);
}
.brand { margin-right: auto; }
.brand img { height: 40px; width: auto; }
.nav-links { display: flex; gap: 1.6rem; font-weight: 700; font-size: .9rem; }
.nav-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: var(--bg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 0; background: var(--bg); }
.hero-video { width: 100%; aspect-ratio: 16 / 9; max-height: calc(100vh - 66px); object-fit: cover; }
/* desktop: buttons float over the bottom of the video; mobile: stacked below on black */
.hero-ctas {
  position: absolute; left: 0; right: 0; bottom: clamp(1.5rem, 5vh, 3rem);
  display: flex; flex-direction: column; align-items: center; gap: 1rem; padding: 0 16px;
}
.hero .btn-outline { border-color: var(--bg); color: var(--bg); }
.hero .btn-outline:hover { background: var(--bg); color: #fff; box-shadow: 4px 4px 0 #fff; }
.btn-sol { gap: .6em; padding-right: 1.2em; }
.btn-sol img { width: 1.9em; height: auto; margin: -.5em 0; filter: drop-shadow(0 2px 3px rgba(0,0,0,.4)); }
.btn-dex { background: transparent; color: #fff; border-color: #fff; font-family: var(--mono); letter-spacing: .1em; padding: .75em 1.4em; }
.btn-dex small { font-size: .65em; opacity: .6; margin-left: .4em; }
.btn-dex:hover { border-color: var(--pink); color: var(--pink); box-shadow: 4px 4px 0 var(--pink); }
/* desktop: sits over the pink video, so give it a solid dark fill */
.hero .btn-dex { background: var(--bg); border-color: var(--bg); }
.ca {
  font-family: var(--mono); font-weight: 700; font-size: clamp(.75rem, 2.5vw, .95rem); letter-spacing: .08em;
  color: #fff; background: var(--bg); border: 0; border-radius: 4px;
  padding: .8em 1.3em; max-width: 100%; word-break: break-all; cursor: pointer; transition: transform .15s;
}
.ca:hover { transform: translateY(-2px); }
.ca span { color: var(--pink); }

/* ---------- Divider: CK badge rolls along the line as you scroll, lighting it up ---------- */
@property --p { syntax: "<number>"; inherits: true; initial-value: 0; }
.divider { padding: 1.4rem clamp(16px, 5vw, 4rem); background: var(--bg); overflow: hidden; }
.divider-track { --badge: 60px; --p: 0; position: relative; height: 72px; transition: --p .35s cubic-bezier(.22, 1, .36, 1); }
/* unlit path ahead of the badge */
.divider-track::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; transform: translateY(-50%);
  background: repeating-linear-gradient(90deg, rgba(255, 43, 147, .35) 0 10px, transparent 10px 18px);
}
/* lit path behind the badge */
.divider-fill {
  position: absolute; left: 0; top: 50%; height: 3px; transform: translateY(-50%);
  width: calc(var(--p) * (100% - var(--badge)) + var(--badge) / 2);
  background: linear-gradient(90deg, transparent, var(--pink) 25%);
  box-shadow: 0 0 12px var(--pink), 0 0 28px rgba(255, 43, 147, .6);
  border-radius: 2px;
}
.divider-badge {
  position: absolute; top: 50%; left: calc(var(--p) * (100% - var(--badge)));
  width: var(--badge); height: var(--badge); border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg); border: 3px solid var(--pink);
  box-shadow: 0 0 18px rgba(255, 43, 147, .55);
  transform: translateY(-50%) rotate(calc(var(--p) * 720deg));
}
.divider-badge img { width: 64%; height: auto; }
/* pulse ring when the badge reaches the end of the line */
.divider-badge::after {
  content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 2px solid var(--pink); opacity: 0;
}
.divider.hit .divider-badge::after { animation: ring .9s ease-out; }
@keyframes ring { from { transform: scale(1); opacity: .9; } to { transform: scale(2.2); opacity: 0; } }

/* ---------- Sections ---------- */
section { padding: clamp(4rem, 9vw, 7rem) clamp(16px, 5vw, 4rem); }
.eyebrow { font-family: var(--mono); color: var(--pink); letter-spacing: .2em; font-size: .8rem; text-align: center; margin-bottom: 1rem; font-weight: 700; }
.section-title { font-family: var(--display); font-style: italic; font-size: clamp(3rem, 9vw, 6.5rem); line-height: .95; text-align: center; margin-bottom: 1.5rem; }
.lede { max-width: 720px; margin: 0 auto 4rem; text-align: center; font-size: 1.05rem; line-height: 1.7; }

/* ---------- Story (light pink) ---------- */
.story { background: var(--blush); color: var(--bg); padding-bottom: 0; }
/* dark panel so the white logo in the image stays visible on the light background */
.story-hero { max-width: 1100px; margin: 0 auto 3rem; padding: clamp(1rem, 3vw, 2rem); border-radius: 10px; background: radial-gradient(ellipse at 30% 60%, #3a0a20 0%, var(--bg) 70%); border: 2px solid var(--bg); box-shadow: 8px 8px 0 var(--pink); }
.story-hero img { width: 100%; height: auto; }
.timeline { list-style: none; max-width: 760px; margin: 0 auto; position: relative; padding-left: 2.5rem; }
.timeline::before { content: ""; position: absolute; left: 10px; top: 0; bottom: 0; width: 3px; background: var(--pink); }
.tl-item { position: relative; padding: 0 0 3.5rem; opacity: 0; transform: translateY(30px); transition: .6s; }
.tl-item.in { opacity: 1; transform: none; }
.tl-item::before { content: ""; position: absolute; left: -2.5rem; top: 2px; width: 23px; height: 23px; border-radius: 50%; background: var(--pink); border: 4px solid var(--blush); box-shadow: 0 0 0 2px var(--pink); }
/* circle logo that slides down the line and lands on the current milestone */
.tl-marker {
  --size: 54px;
  position: absolute; top: 0; left: calc(11.5px - var(--size) / 2); z-index: 2;
  width: var(--size); height: var(--size); border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg); border: 3px solid var(--pink);
  box-shadow: 0 0 0 4px var(--blush), 0 6px 18px rgba(255, 43, 147, .45);
  transform: translateY(var(--y, 0px));
  transition: transform .8s cubic-bezier(.34, 1.45, .64, 1);
  pointer-events: none;
}
.tl-marker img { width: 64%; height: auto; }
.tl-marker.landed img { animation: land .45s ease-out; }
@keyframes land { 0% { transform: scale(.7) rotate(-12deg); } 60% { transform: scale(1.15) rotate(4deg); } 100% { transform: none; } }
.tl-item.active::before { background: var(--bg); box-shadow: 0 0 0 2px var(--bg); }
.tl-date { font-family: var(--mono); font-weight: 700; font-size: .75rem; background: var(--bg); color: #fff; padding: .25em .6em; margin-right: .6rem; }
.tl-tag { font-family: var(--mono); font-size: .75rem; color: var(--pink-dark); letter-spacing: .1em; font-weight: 700; }
.tl-item h3 { font-size: clamp(1.5rem, 4vw, 2.2rem); font-weight: 800; color: var(--pink); margin: .6rem 0 .5rem; }
.tl-item p { line-height: 1.7; color: #444; }
/* crowd drawing: draws itself in left to right, then the fist-raiser pops up and keeps cheering */
.crowd { position: relative; width: min(100%, 900px); margin: 1rem auto 0; }
.crowd img { display: block; width: 100%; height: auto; }
.crowd > img:first-child { clip-path: inset(0 100% 0 0); }
.crowd-hero { position: absolute; inset: 0; opacity: 0; transform-origin: 49% 75%; } /* origin = his feet */
.crowd.in > img:first-child { animation: draw 1.6s cubic-bezier(.65, 0, .35, 1) forwards; }
.crowd.in .crowd-hero { animation: popup .7s 1.2s cubic-bezier(.34, 1.56, .64, 1) forwards, cheer 3s 2.2s ease-in-out infinite; }
@keyframes draw { to { clip-path: inset(0 0 0 0); } }
@keyframes popup { from { opacity: 0; transform: translateY(14%) scale(.8); } to { opacity: 1; transform: none; } }
@keyframes cheer {
  0%, 55%, 100% { opacity: 1; transform: none; filter: none; }
  65% { opacity: 1; transform: scaleY(1.07) rotate(-2deg); filter: drop-shadow(0 0 10px rgba(255, 43, 147, .7)); }
  75% { opacity: 1; transform: scaleY(.97); }
  85% { opacity: 1; transform: scaleY(1.04) rotate(-1deg); filter: drop-shadow(0 0 6px rgba(255, 43, 147, .5)); }
}

/* ---------- Where it goes ---------- */
.where { background: var(--bg); }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; max-width: 1100px; margin: 2rem auto 0; }
.pillar { text-align: center; padding: 2rem 1.4rem; border: 2px solid var(--line); border-radius: 8px; background: #0b0b0b; transition: border-color .2s, transform .2s; }
.pillar:hover { border-color: var(--pink); transform: translateY(-4px); }
.pillar-icon {
  width: 140px; aspect-ratio: 1; margin: 0 auto 1.4rem;
  background: var(--icon) no-repeat center / contain;
  filter: drop-shadow(0 0 18px rgba(255, 43, 147, .55));
}
.pillar.featured { grid-column: 1 / -1; display: flex; align-items: center; gap: 2.5rem; text-align: left; border-color: var(--pink); background: linear-gradient(135deg, #1a0510, #0b0b0b 60%); padding: 2.5rem; }
.pillar.featured .pillar-icon { flex: none; margin: 0; width: 160px; }
.brother-video { flex: none; width: 240px; aspect-ratio: 864 / 1040; object-fit: cover; border-radius: 8px; border: 2px solid var(--pink); box-shadow: 0 0 30px rgba(255, 43, 147, .35); }
.featured-kicker { font-family: var(--mono); font-weight: 700; letter-spacing: .2em; font-size: .85rem; color: var(--pink) !important; margin-bottom: .4rem; }
.pillar.featured h3 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1; margin-bottom: .6rem; }
.featured-handle { display: inline-block; font-family: var(--mono); font-weight: 700; color: var(--pink); margin-bottom: 1rem; }
.featured-handle:hover { text-decoration: underline; text-underline-offset: 4px; }
.pillar.featured p:last-child { color: #fff; font-size: 1.15rem; font-weight: 600; line-height: 1.5; }
/* bold pink percentages in the Where It Goes cards */
.pct { font-family: var(--display); font-weight: 400; font-size: 1.45em; letter-spacing: .02em; color: var(--pink); }

/* ---------- Creator fee donut ---------- */
/* slice colours checked for colourblind separation against the black section background */
.fee-chart { --fee-rev: #ff2b93; --fee-buy: #1f9fd0; --fee-lf: #9b6bff; max-width: 900px; margin: 3.5rem auto 0; }
.fee-title { font-family: var(--display); font-style: italic; font-size: clamp(2rem, 5vw, 3rem); text-align: center; margin-bottom: 1.5rem; }
.fee-body { display: flex; align-items: center; justify-content: center; gap: clamp(1.5rem, 5vw, 4rem); flex-wrap: wrap; }
.fee-donut { position: relative; width: min(100%, 300px); aspect-ratio: 1; }
.fee-donut svg { width: 100%; height: 100%; overflow: visible; }
.fee-seg { fill: none; stroke-width: 34; cursor: pointer; transition: stroke-width .2s, opacity .2s, stroke-dasharray .9s cubic-bezier(.65, 0, .35, 1); }
.fee-seg:focus-visible { outline: none; stroke-width: 42; }
.fee-chart.dim .fee-seg:not(.hot) { opacity: .35; }
.fee-seg.hot { stroke-width: 42; }
.fee-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; pointer-events: none; }
.fee-center-num { font-family: var(--display); font-size: clamp(2.2rem, 7vw, 3rem); line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.fee-center-label { font-family: var(--mono); font-size: .7rem; letter-spacing: .15em; text-transform: uppercase; color: #bbb; margin-top: .3rem; }
.fee-tip { position: absolute; z-index: 3; pointer-events: none; background: #fff; color: var(--bg); font-size: .85rem; font-weight: 700; padding: .45rem .7rem; border-radius: 4px; white-space: nowrap; transform: translate(-50%, calc(-100% - 12px)); box-shadow: 0 4px 14px rgba(0, 0, 0, .5); }
.fee-legend { list-style: none; display: flex; flex-direction: column; gap: .9rem; min-width: 0; }
.fee-legend li { display: grid; grid-template-columns: 14px auto 1fr; align-items: center; gap: .8rem; padding: .7rem 1rem; border: 2px solid #222; border-radius: 6px; cursor: default; transition: border-color .2s, background .2s; }
.fee-legend li.hot { border-color: var(--c); background: #111; }
.fee-swatch { width: 14px; height: 14px; border-radius: 3px; background: var(--c); }
.fee-legend .fee-val { font-family: var(--display); font-size: 1.8rem; color: #fff; font-variant-numeric: tabular-nums; min-width: 3.2ch; }
.fee-legend .fee-name { font-weight: 600; color: #ddd; }

/* flow image: pink back-glow travels bubble to bubble as you scroll */
.flow-wrap { position: relative; width: min(100%, 1100px); margin: 3rem auto 0; }
.flow { position: relative; z-index: 1; display: block; width: 100%; height: auto; }
.flow-glow {
  position: absolute; z-index: 0; left: var(--x); top: var(--y); width: calc(var(--d) * 2); aspect-ratio: 1;
  border-radius: 50%; pointer-events: none; will-change: transform, opacity;
  /* bubble edge sits at ~50% of this radius; the soft band starts just outside it */
  background: radial-gradient(circle, rgba(255, 70, 165, .9) 0%, rgba(255, 70, 165, .9) 48%, rgba(255, 43, 147, .45) 60%, rgba(255, 43, 147, .12) 74%, rgba(255, 43, 147, 0) 86%);
  transform: translate(-50%, -50%) scale(.6); opacity: 0;
  transition: opacity .45s ease, transform .6s cubic-bezier(.34, 1.4, .64, 1);
}
.flow-glow.on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
/* one ring ripples out when a bubble lights up */
.flow-glow::after { content: ""; position: absolute; inset: 24%; border-radius: 50%; border: 2px solid rgba(255, 120, 190, .8); opacity: 0; will-change: transform, opacity; }
.flow-glow.on::after { animation: glowRing 1.1s .15s ease-out; }
@keyframes glowRing { from { transform: scale(.95); opacity: .85; } to { transform: scale(1.5); opacity: 0; } }
.flow-sparks { position: absolute; z-index: 2; inset: -15% -5%; width: 110%; height: 130%; pointer-events: none; }
.pillar-svg { flex: none; width: 160px; height: auto; margin: 0 auto 1.4rem; fill: none; stroke: var(--pink); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 18px rgba(255, 43, 147, .55)); }
.pillar-svg text { fill: var(--pink); stroke: none; font-family: var(--display); font-size: 30px; }
.pillar.featured .pillar-svg { margin: 0; }
.pillar h3 { font-family: var(--display); font-size: 2rem; letter-spacing: .03em; margin-bottom: .5rem; }
.pillar p { color: #bbb; line-height: 1.6; font-size: .95rem; }

/* ---------- Piggy bank animation ---------- */
.impact { padding: 0; background: var(--bg); }
.impact-video { width: 100%; aspect-ratio: 16 / 9; max-height: calc(100vh - 66px); object-fit: cover; }

/* ---------- Donate (pink) ---------- */
.donate { background: var(--pink); color: var(--bg); }
.donate-head { display: flex; align-items: center; justify-content: center; gap: 3rem; max-width: 1100px; margin: 0 auto; }
.donate-head .section-title { text-align: left; margin: 0; font-size: clamp(2.6rem, 6vw, 5rem); }
.donate-video { width: min(460px, 45%); border-radius: 8px; border: 3px solid var(--bg); box-shadow: 8px 8px 0 var(--bg); }


/* ---------- PFP generator ---------- */
.pfp { background: var(--blush); color: var(--bg); display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.pfp > * { max-width: 560px; justify-self: center; width: 100%; }
.pfp .section-title { text-align: left; }
.pfp-copy > p { line-height: 1.7; margin-bottom: 1.5rem; }
.seg { display: inline-flex; border: 2px solid var(--bg); border-radius: 4px; overflow: hidden; margin-bottom: 1.2rem; }
.seg-btn { font-family: var(--mono); font-weight: 700; font-size: .8rem; padding: .6rem 1.2rem; border: 0; background: transparent; color: var(--bg); cursor: pointer; }
.seg-btn.active { background: var(--bg); color: var(--pink); }
.ctrl { display: grid; grid-template-columns: 90px 1fr 44px; align-items: center; gap: .8rem; font-family: var(--mono); font-size: .8rem; font-weight: 700; margin-bottom: .8rem; }
.ctrl input { accent-color: var(--pink); width: 100%; }
.hint { font-size: .8rem; color: #666; margin: .5rem 0 1.4rem !important; }
.pfp-btns { display: flex; gap: .8rem; flex-wrap: wrap; }
#pfpCanvas { width: 100%; aspect-ratio: 1; border-radius: 8px; border: 3px solid var(--bg); background: #222; cursor: grab; touch-action: none; box-shadow: 8px 8px 0 var(--pink); }
#pfpCanvas:active { cursor: grabbing; }

/* ---------- Join ---------- */
.join { background: var(--bg); text-align: center; }
.join-kicker { font-family: var(--display); font-style: italic; font-size: clamp(3rem, 9vw, 6rem); line-height: 1; }
.join-logo { width: min(100%, 900px); margin: .5rem auto 2.5rem; }
.socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.social { font-family: var(--mono); font-weight: 700; font-size: .85rem; border: 2px solid #333; padding: 1.1rem 1.6rem; border-radius: 6px; color: #777; transition: .2s; }
/* live links read as active; "SOON" placeholders stay dim */
.social:not([aria-disabled]) { color: #fff; border-color: #555; }
.social small { font-size: .65rem; margin-left: .5rem; opacity: .6; }
.social:hover { border-color: var(--pink); color: var(--pink); }
.social.hot { border-color: var(--pink); background: var(--pink); color: #fff; }
.join-video { width: min(100%, 900px); margin: 3rem auto 0; border-radius: 10px; border: 2px solid var(--pink); box-shadow: 0 0 40px rgba(255, 43, 147, .3); }
.foot { text-align: center; padding: 2.5rem 16px; font-family: var(--mono); font-size: .75rem; color: var(--gray); border-top: 1px solid var(--line); background: #0a0a0a; }

/* ---------- Toast ---------- */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 120px); background: var(--pink); color: #fff; font-family: var(--mono); font-weight: 700; padding: .8rem 1.4rem; border-radius: 4px; border: 2px solid var(--bg); transition: transform .3s; z-index: 100; }
.toast.show { transform: translate(-50%, 0); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .pfp { grid-template-columns: 1fr; }
  .pfp .section-title { text-align: center; }
  .donate-head { flex-direction: column; gap: 1.5rem; }
  .donate-head .section-title { text-align: center; }
  .donate-video { width: 100%; max-width: 520px; }
}
@media (max-width: 720px) {
  .nav { gap: 1rem; }
  .brand img { height: 32px; }
  .nav-cta { display: none; }
  .hero-ctas { position: static; padding: 1.8rem 16px 2.2rem; }
  .hero .btn-outline { border-color: #fff; color: #fff; }
  .ca { border: 1px dashed var(--pink); }
  .hero .btn-dex { border-color: #fff; }
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: var(--pink); padding: 1rem 16px 1.4rem; border-bottom: 2px solid var(--bg); }
  .nav-links.open { display: flex; }
  .brother-video { width: 100%; max-width: 320px; }
  .pillar.featured .pillar-svg { width: 140px; }
  .pillar.featured { flex-direction: column; text-align: center; padding: 2rem 1.4rem; gap: 1.2rem; }
  .pillars { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .tl-item { opacity: 1; transform: none; }
  .crowd > img:first-child { clip-path: none; }
  .crowd-hero { opacity: 1; }
  .flow-glow { opacity: .45; transform: translate(-50%, -50%); }
  .divider-track { --p: .5 !important; }
}
