:root {
  --red: #8B0000;
  --live: #C4161F;
  --black: #0A0A0A;
  --bone: #F3EEE3;
  --yel: #F2C200;
  --grn: #5B7B45;
  --pad: clamp(20px, 5vw, 72px);
  --max: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { background: var(--black); color: var(--bone); font-family: Barlow, system-ui, sans-serif; font-size: 18px; line-height: 1.6; overflow-x: hidden; }
a { color: inherit; }
.st { font-family: 'Saira Stencil One', 'Barlow Condensed', Impact, sans-serif; font-weight: 400; text-transform: uppercase; letter-spacing: .01em; line-height: 1; }
.mk { font-family: 'Permanent Marker', cursive; }
.np { font-family: Mukta, sans-serif; font-weight: 800; }
.eb { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: .22em; font-size: 14px; }
:focus-visible { outline: 3px solid var(--yel); outline-offset: 3px; }

/* ---------- Three.js + media background (same system as index.html) ---------- */
#stage { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
#media { position: fixed; inset: 0; z-index: 0; pointer-events: none; background: var(--black); }
#media .mf { position: absolute; inset: 0; opacity: 0; transition: opacity .2s linear; will-change: opacity; }
#media .mf img, #media .mf video { width: 100%; height: 100%; object-fit: cover; filter: brightness(.42) saturate(.85) contrast(1.05) sepia(.18); }
body[data-bg=calm] #media .mf img, body[data-bg=calm] #media .mf video { filter: brightness(.58) saturate(.9) contrast(1.05) sepia(.14); }
#media::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 50%, rgba(10,10,10,.35) 0, rgba(10,10,10,.86) 100%); }
#media .mf0 { background: radial-gradient(1000px 600px at 70% 60%, #142412 0, #0a0a0a 70%); }
#media .mf1 { background: radial-gradient(900px 600px at 70% 50%, #2b0b0c 0, #0a0a0a 70%); }
#media .mf2 { background: radial-gradient(950px 620px at 68% 58%, #2c160c 0, #0a0a0a 70%); }
#media .mf3 { background: radial-gradient(950px 620px at 65% 50%, #0e2229 0, #0a0a0a 70%); }
#media .mf4 { background: radial-gradient(880px 560px at 72% 28%, #382708 0, #0a0a0a 68%); }
#media .mf5 { background: radial-gradient(920px 600px at 68% 55%, #182914 0, #0a0a0a 70%); }
#media .mf6 { background: radial-gradient(900px 600px at 66% 52%, #341708 0, #0a0a0a 70%); }
#media .mf7 { background: radial-gradient(900px 600px at 66% 52%, #241108 0, #0a0a0a 70%); }
#media .mf8 { background: radial-gradient(900px 600px at 66% 55%, #1a0d07 0, #0a0a0a 70%); }
#media .mf9 { background: radial-gradient(900px 600px at 65% 55%, #2a1a10 0, #0a0a0a 70%); }
#mediacredit { position: fixed; right: 10px; bottom: 8px; z-index: 2; font-size: 11px; opacity: .6; max-width: 60vw; text-align: right; }
.no-gl #stage { display: none; }
.no-gl body, body.no-gl { background: radial-gradient(1200px 700px at 75% 30%, #3a0000 0, var(--black) 60%); }
main, header, footer { position: relative; z-index: 1; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

/* ---------- nav ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 10; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav.solid { background: rgba(10,10,10,.92); border-color: rgba(243,238,227,.14); backdrop-filter: blur(8px); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 38px; height: 38px; }
.brand .st { font-size: 20px; white-space: nowrap; }
.brand .st b { font-weight: 400; color: var(--live); }
.links { display: flex; align-items: center; gap: 22px; }
.links a { font-family: 'Barlow Condensed', sans-serif; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; font-size: 14px; text-decoration: none; opacity: .85; white-space: nowrap; }
.links a:hover, .links a.active { opacity: 1; color: var(--yel); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; border: 2px solid var(--yel); background: var(--yel); color: var(--black)!important;
  font-family: 'Saira Stencil One', sans-serif; font-size: 17px; text-transform: uppercase; letter-spacing: .04em; text-decoration: none; cursor: pointer; opacity: 1!important; transition: transform .15s, background .15s, color .15s; }
.btn:hover { transform: translate(-2px,-2px); box-shadow: 4px 4px 0 var(--live); }
.btn.ghost { background: transparent; color: var(--bone)!important; border-color: var(--bone); }
.btn.ghost:hover { box-shadow: 4px 4px 0 var(--yel); }
.btn.sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
@media (max-width: 980px) { .links { gap: 14px; } .links a { font-size: 13px; letter-spacing: .09em; } }
@media (max-width: 740px) { .links a:not(.btn) { display: none; } .brand .st { font-size: 17px; } }

/* ---------- prefs ---------- */
.prefs { display: flex; align-items: center; gap: 8px; }
.lang { display: flex; border: 2px solid currentColor; }
.lang button { font: 600 14px/1 'Barlow Condensed', Mukta, sans-serif; letter-spacing: .06em; background: transparent; color: inherit; border: 0; min-height: 36px; min-width: 40px; padding: 0 8px; cursor: pointer; }
.lang button[aria-pressed=true] { background: var(--bone); color: var(--black); }
.themebtn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 2px solid currentColor; background: transparent; color: inherit; cursor: pointer; padding: 0; }
.themebtn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.themebtn .i-moon, html[data-theme=light] .themebtn .i-sun { display: none; }
html[data-theme=light] .themebtn .i-moon { display: block; }
.on-light { display: none!important; }
html[data-theme=light] .on-light { display: block!important; }
html[data-theme=light] .on-dark { display: none!important; }
@media (max-width: 400px) { .brand .st { display: none; } }

/* ---------- hero ---------- */
.hero { min-height: 92svh; display: flex; align-items: center; padding: 112px 0 72px; position: relative; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,10,10,.92) 0, rgba(10,10,10,.72) 45%, rgba(10,10,10,.08) 78%); pointer-events: none; }
.hero .wrap { position: relative; width: 100%; }
.hero .eb { color: var(--yel); display: flex; align-items: center; gap: 12px; }
.hero .eb::before { content: ""; width: 34px; height: 3px; background: var(--yel); }
.hero h1 { font-size: clamp(54px, 9vw, 124px); margin: 16px 0 8px; line-height: .94; }
.hero h1 .r { color: var(--live); }
.hero .np { font-size: clamp(20px, 2.8vw, 32px); line-height: 1.3; margin-top: 8px; }
.hero .mk { font-size: clamp(22px, 3.4vw, 42px); color: var(--yel); transform: rotate(-2deg); transform-origin: left center; display: inline-block; margin-top: 2px; }
.hero p.lead { max-width: 36em; margin-top: 20px; font-size: clamp(16.5px, 1.4vw, 19px); opacity: .92; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }

.notice { margin-top: 26px; max-width: 44em; padding: 14px 18px; border-left: 4px solid var(--yel); background: rgba(10,10,10,.78); border-top: 1px solid rgba(243,238,227,.16); border-right: 1px solid rgba(243,238,227,.16); border-bottom: 1px solid rgba(243,238,227,.16); font-size: 15.5px; }
.notice b { color: var(--yel); text-transform: uppercase; letter-spacing: .06em; font-family: 'Barlow Condensed', sans-serif; }

/* ---------- sticky phase jump bar ---------- */
.jumpbar { background: rgba(10,10,10,.9); border-top: 2px solid var(--live); border-bottom: 2px solid rgba(243,238,227,.18); padding: 14px 0; position: sticky; top: 68px; z-index: 8; backdrop-filter: blur(8px); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1.5px solid rgba(243,238,227,.35); background: transparent; color: var(--bone); font-family: 'Barlow Condensed', sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: 13.5px; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.pill:hover, .pill[aria-pressed=true] { background: var(--yel); border-color: var(--yel); color: var(--black); }

/* ---------- phase sections (transparent over 3D background) ---------- */
.phase { padding: clamp(56px, 8vw, 96px) 0; position: relative; }
.phase::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,10,10,.88) 0, rgba(10,10,10,.64) 58%, rgba(10,10,10,.25) 100%); pointer-events: none; }
.phase .wrap { position: relative; }
.phase-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; border-bottom: 2px solid rgba(243,238,227,.2); padding-bottom: 16px; }
.phase-head .eb { color: var(--yel); }
.phase-head h2 { font-size: clamp(30px, 4.6vw, 56px); margin-top: 8px; }
.phase-head h2 span { color: var(--live); }
.phase-head .pdesc { max-width: 34em; font-size: 16px; opacity: .88; }

.steps-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 820px) { .steps-grid { grid-template-columns: 1fr; } }

.scard { background: rgba(10,10,10,.84); border: 2px solid rgba(243,238,227,.24); padding: 24px 22px 22px; display: flex; flex-direction: column; gap: 10px; transition: border-color .2s; }
.scard.focus { border-color: var(--yel); }
.scard.live { border-color: rgba(242,194,0,.7); }
.scard-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.snum { font-family: 'Saira Stencil One', sans-serif; font-size: 32px; color: var(--yel); line-height: 1; }
.tag { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: .16em; font-size: 12px; padding: 5px 9px; border: 1.5px solid rgba(243,238,227,.5); color: rgba(243,238,227,.86); white-space: nowrap; }
.tag.next { border-color: var(--yel); color: var(--yel); }
.tag.live { background: var(--yel); border-color: var(--yel); color: var(--black); }
.scard h3 { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 24px; line-height: 1.15; }
.scard .np { font-size: 15.5px; font-weight: 600; opacity: .78; margin-top: -4px; }
.scard p { font-size: 15.5px; line-height: 1.52; opacity: .92; }
.specs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.spec { font-family: 'Barlow Condensed', sans-serif; font-weight: 600; letter-spacing: .06em; font-size: 13px; padding: 3px 8px; background: rgba(243,238,227,.08); border: 1px solid rgba(243,238,227,.2); }
.scard-foot { margin-top: auto; padding-top: 10px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.sbtn { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 14px; border: 1.5px solid rgba(243,238,227,.45); background: transparent; color: var(--bone); font-family: 'Barlow Condensed', sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: 13px; text-decoration: none; cursor: pointer; }
.sbtn:hover { border-color: var(--yel); color: var(--yel); }
.sbtn.muted { opacity: .72; }
.sbtn.live { background: var(--yel); border-color: var(--yel); color: var(--black); }
.sbtn.live:hover { background: var(--bone); border-color: var(--bone); color: var(--black); }
.sbtn.live.ghost { background: transparent; border-color: var(--yel); color: var(--yel); }
.sbtn.live.ghost:hover { background: var(--yel); color: var(--black); }

/* ---------- route status banner (when visiting /seed-to-cup/<slug> while coming soon) ---------- */
.rbanner { margin-top: 18px; padding: 14px 18px; border: 2px solid var(--yel); background: rgba(10,10,10,.9); display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.rbanner[hidden] { display: none; }

/* ---------- conversion waterfall band (solid dark/bone contrast break) ---------- */
.waterfall { background: var(--bone); color: var(--black); padding: clamp(56px, 8vw, 96px) 0; border-top: 3px solid var(--black); border-bottom: 3px solid var(--black); }
.waterfall .eb { color: var(--red); }
.waterfall h2 { font-size: clamp(30px, 4.8vw, 60px); margin: 10px 0 10px; }
.waterfall h2 span { color: var(--red); }
.waterfall .lead { max-width: 40em; margin-bottom: 26px; font-size: 17px; }
.wflow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 2px solid var(--black); }
.wstep { padding: 18px 16px; border-right: 2px solid var(--black); background: #fff; }
.wstep:last-child { border-right: 0; background: var(--yel); }
.wstep .big { font-family: 'Saira Stencil One', sans-serif; font-size: clamp(24px, 3vw, 34px); line-height: 1.05; }
.wstep b { display: block; margin-top: 6px; font-family: 'Barlow Condensed', sans-serif; text-transform: uppercase; letter-spacing: .08em; font-size: 15px; color: var(--red); }
.wstep:last-child b { color: var(--black); }
.wstep small { display: block; margin-top: 4px; font-size: 14px; line-height: 1.4; }
.waterfall .src { margin-top: 16px; font-size: 14px; font-style: italic; opacity: .78; }
@media (max-width: 920px) { .wflow { grid-template-columns: repeat(2, 1fr); } .wstep { border-bottom: 2px solid var(--black); } .wstep:nth-child(2n) { border-right: 0; } .wstep:last-child { grid-column: 1 / -1; border-bottom: 0; border-right: 0; } }
@media (max-width: 520px) { .wflow { grid-template-columns: 1fr; } .wstep { border-right: 0; } }

/* ---------- finale (#logoStage for cup + tagline) ---------- */
.join { min-height: 100svh; padding: 100px 0 96px; display: flex; align-items: center; position: relative; }
.join::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,10,10,.9) 0, rgba(10,10,10,.6) 46%, rgba(10,10,10,0) 76%); pointer-events: none; }
.join .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; width: 100%; }
.join .eb { color: var(--yel); }
.join h2 { font-size: clamp(36px, 5.6vw, 76px); margin: 14px 0 14px; }
.join h2 span { color: var(--live); }
.join p { max-width: 30em; }
.joinbtns { display: grid; gap: 12px; margin-top: 26px; max-width: 440px; }
.joinbtns .btn { width: 100%; min-height: 52px; text-align: center; }
.logo-stage { min-height: 46svh; }
@media (max-width: 860px) {
  .join::before { background: linear-gradient(0deg, rgba(10,10,10,.9) 0, rgba(10,10,10,.65) 55%, rgba(10,10,10,0) 85%); }
  .join .wrap { grid-template-columns: 1fr; }
  .logo-stage { order: -1; min-height: 50svh; }
  .join { padding-top: 56px; }
}

/* ---------- footer ---------- */
footer { background: var(--black); border-top: 2px solid rgba(243,238,227,.16); padding: 40px 0 34px; }
footer .wrap { display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
footer .f1 { display: flex; gap: 16px; align-items: center; }
footer .f1 img { width: 84px; height: 84px; transform: rotate(-10deg); }
footer .st { font-size: 22px; }
footer .st b { font-weight: 400; color: var(--live); }
footer small { display: block; font-size: 14px; opacity: .72; line-height: 1.5; }
footer .conv { font-family: 'Barlow Condensed', sans-serif; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; font-size: 13px; opacity: .82; text-align: right; }
@media (max-width: 700px) { footer .conv { text-align: left; } }

/* ---------- Nepali typography ---------- */
html[lang=ne] .en-only { display: none; }
html[lang=ne] :is(main .st, .mk, .btn, .scard h3, .phase-head h2, .wstep b, .pill, .sbtn, .tag, .eb, .links a, footer .conv) { font-family: Mukta, sans-serif; font-weight: 800; text-transform: none; letter-spacing: 0; }
html[lang=ne] body { font-family: Mukta, Barlow, system-ui, sans-serif; }
html[lang=ne] main h1.st, html[lang=ne] main h2.st { line-height: 1.22; }
html[lang=ne] .eb, html[lang=ne] .links a { font-size: 16px; }
html[lang=ne] .btn { font-size: 17px; padding-top: 6px; padding-bottom: 6px; }

/* ---------- light mode ---------- */
html[data-theme=light] body { background: var(--bone); color: var(--black); }
html[data-theme=light] :focus-visible { outline-color: var(--red); }
html[data-theme=light] #media { background: var(--bone); }
html[data-theme=light] #media::after { background: radial-gradient(ellipse at 50% 50%, rgba(243,238,227,.3) 0, rgba(243,238,227,.8) 100%); }
html[data-theme=light] #media .mf0, html[data-theme=light] #media .mf1, html[data-theme=light] #media .mf2, html[data-theme=light] #media .mf3, html[data-theme=light] #media .mf4, html[data-theme=light] #media .mf5, html[data-theme=light] #media .mf6, html[data-theme=light] #media .mf7, html[data-theme=light] #media .mf8, html[data-theme=light] #media .mf9 { background: radial-gradient(1100px 650px at 65% 60%, #e6d6bf 0, var(--bone) 70%); }
html[data-theme=light] .no-gl body, html[data-theme=light] body.no-gl { background: radial-gradient(1200px 700px at 75% 30%, #e8d9c6 0, var(--bone) 60%); }
html[data-theme=light] .nav.solid { background: rgba(243,238,227,.94); border-color: rgba(10,10,10,.14); }
html[data-theme=light] .brand .st b, html[data-theme=light] footer .st b { color: var(--red); }
html[data-theme=light] .links a:hover, html[data-theme=light] .links a.active { color: var(--red); }
html[data-theme=light] .lang button[aria-pressed=true] { background: var(--black); color: var(--bone); }
html[data-theme=light] .btn { background: var(--black); border-color: var(--black); color: var(--bone)!important; }
html[data-theme=light] .btn:hover { box-shadow: 4px 4px 0 var(--red); }
html[data-theme=light] .btn.ghost { background: transparent; color: var(--black)!important; border-color: var(--black); }
html[data-theme=light] .hero::before { background: linear-gradient(90deg, rgba(243,238,227,.94) 0, rgba(243,238,227,.74) 45%, rgba(243,238,227,.08) 78%); }
html[data-theme=light] .hero .eb, html[data-theme=light] .hero .mk, html[data-theme=light] .hero h1 .r { color: var(--red); }
html[data-theme=light] .hero .eb::before { background: var(--red); }
html[data-theme=light] .notice { background: rgba(243,238,227,.9); border-left-color: var(--red); border-color: rgba(10,10,10,.22); border-left-width: 4px; border-left-color: var(--red); }
html[data-theme=light] .notice b { color: var(--red); }
html[data-theme=light] .jumpbar { background: rgba(243,238,227,.94); border-top-color: var(--red); border-bottom-color: rgba(10,10,10,.18); }
html[data-theme=light] .pill { border-color: rgba(10,10,10,.35); color: var(--black); }
html[data-theme=light] .pill:hover, html[data-theme=light] .pill[aria-pressed=true] { background: var(--black); border-color: var(--black); color: var(--bone); }
html[data-theme=light] .phase::before { background: linear-gradient(90deg, rgba(243,238,227,.92) 0, rgba(243,238,227,.7) 58%, rgba(243,238,227,.28) 100%); }
html[data-theme=light] .phase-head { border-bottom-color: rgba(10,10,10,.2); }
html[data-theme=light] .phase-head .eb, html[data-theme=light] .phase-head h2 span { color: var(--red); }
html[data-theme=light] .scard { background: rgba(243,238,227,.92); border-color: rgba(10,10,10,.3); }
html[data-theme=light] .scard.focus { border-color: var(--red); }
html[data-theme=light] .scard.live { border-color: var(--red); }
html[data-theme=light] .snum { color: var(--red); }
html[data-theme=light] .tag { border-color: rgba(10,10,10,.45); color: rgba(10,10,10,.85); }
html[data-theme=light] .tag.next { border-color: var(--red); color: var(--red); }
html[data-theme=light] .tag.live { background: var(--red); border-color: var(--red); color: var(--bone); }
html[data-theme=light] .spec { background: rgba(10,10,10,.06); border-color: rgba(10,10,10,.18); }
html[data-theme=light] .sbtn { border-color: rgba(10,10,10,.45); color: var(--black); }
html[data-theme=light] .sbtn:hover { border-color: var(--red); color: var(--red); }
html[data-theme=light] .sbtn.live { background: var(--black); border-color: var(--black); color: var(--bone); }
html[data-theme=light] .sbtn.live:hover { background: var(--red); border-color: var(--red); color: var(--bone); }
html[data-theme=light] .sbtn.live.ghost { background: transparent; border-color: var(--black); color: var(--black); }
html[data-theme=light] .sbtn.live.ghost:hover { border-color: var(--red); color: var(--red); background: transparent; }
html[data-theme=light] .rbanner { background: rgba(243,238,227,.96); border-color: var(--red); }
html[data-theme=light] .join::before { background: linear-gradient(90deg, rgba(243,238,227,.92) 0, rgba(243,238,227,.66) 46%, rgba(243,238,227,0) 76%); }
@media (max-width: 860px) { html[data-theme=light] .join::before { background: linear-gradient(0deg, rgba(243,238,227,.92) 0, rgba(243,238,227,.68) 55%, rgba(243,238,227,0) 85%); } }
html[data-theme=light] .join .eb, html[data-theme=light] .join h2 span { color: var(--red); }
html[data-theme=light] footer { background: var(--bone); border-color: rgba(10,10,10,.16); }
