/* Scroll story under the hero. Every animated value is driven by story.js through transform/opacity. */
:root {
  --slate: #131720;
  --tunnel: #1d212b;
  --rope: #212631;
  --grey: #818898;
  --green: #00e67a;
  --c-push: #00a1d6;
  --c-squat: #00e67a;
  --c-crunch: #ff8000;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --gut: 16px;
}
body { overflow-x: clip; }

/* ---------- scene scaffolding ---------- */
.scene { position: relative; height: var(--len, 280vh); }
@media (max-width: 899px) { .scene { height: calc(var(--len, 280vh) * .7); } }
.pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; align-items: center; }
.inner { position: relative; width: min(1240px, 100% - 2 * var(--gut)); margin-inline: auto; display: grid; gap: 20px;
  align-content: center; padding-block: 20px; }
h2 { font: 700 clamp(32px, 4.4vw, 62px)/1 "Chakra Petch"; letter-spacing: -.015em; text-wrap: balance; }
h2 em { font-style: normal; color: var(--cyan); }
.lead { margin-top: 14px; font-size: clamp(15px, 1.25vw, 18px); line-height: 1.6; color: #c3ccd8; max-width: 44ch; text-wrap: pretty; }
.lead b { color: var(--ink); font-weight: 600; }
.mono { font-variant-numeric: tabular-nums; }
.ex { display: block; font: 600 10.5px/1 "Inter Tight"; letter-spacing: .1em; text-transform: uppercase; color: var(--grey); }

@media (min-width: 900px) {
  :root { --gut: clamp(24px, 4vw, 56px); }
  .inner { gap: clamp(40px, 5vw, 88px); padding-block: 48px; }
}

/* ---------- 1. camera ---------- */
.s-cam .inner { grid-template-areas: "copy" "phone"; }
.cam-copy { grid-area: copy; }
.chain { list-style: none; padding: 0; margin-top: 22px; display: grid; gap: 2px; counter-reset: c; }
.chain li { position: relative; display: grid; grid-template-columns: 28px 1fr; column-gap: 12px; padding: 8px 0;
  color: var(--grey); transition: color .4s var(--ease); counter-increment: c; }
.chain li::before { content: counter(c); grid-row: span 2; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center;
  font: 700 13px/1 "Chakra Petch"; border: 1px solid var(--rope); background: var(--slate); transition: background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease); }
.chain b { font: 600 15px/1.3 "Inter Tight"; }
.chain span { font-size: 13px; line-height: 1.45; }
.chain li.on { color: #c3ccd8; }
.chain li.on b { color: var(--ink); }
.chain li.on::before { background: var(--cyan); color: #04121a; border-color: var(--cyan); }

.phone { grid-area: phone; justify-self: center; height: min(560px, 70svh); aspect-ratio: 9 / 18.5; padding: 9px; border-radius: 46px;
  background: #0c1119; border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 50px 90px -40px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.08); }
.screen { position: relative; height: 100%; border-radius: 37px; overflow: hidden; container-type: size;
  background: radial-gradient(130% 60% at 50% 88%, #1c2636 0%, #0c111a 62%); }
.screen::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 24%;
  background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,.035)); }
.notch { position: absolute; top: 2.4cqh; left: 50%; width: 30cqw; height: 3.6cqh; margin-left: -15cqw; border-radius: 99px; background: #05080d; z-index: 2; }
.hud-top { position: absolute; top: 8cqh; left: 7cqw; right: 7cqw; display: flex; justify-content: space-between;
  font: 700 4.4cqw/1 "Chakra Petch"; letter-spacing: .1em; color: var(--mute); }
.hud-top .live { display: inline-flex; align-items: center; gap: 1.6cqw; color: var(--ink); }
.hud-top .live i { width: 1.8cqw; height: 1.8cqw; border-radius: 50%; background: var(--hp); }
.count { position: absolute; top: 15cqh; left: 0; right: 0; text-align: center; font: 700 40cqw/1 "Chakra Petch";
  letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.count.bump { animation: bump .35s var(--ease); }
@keyframes bump { 0% { transform: scale(1.14); color: var(--cyan); } 100% { transform: scale(1); } }
.valid { position: absolute; top: 47cqh; left: 50%; display: inline-flex; align-items: center; gap: 2cqw; white-space: nowrap;
  padding: 2.4cqw 4cqw; border-radius: 99px; font: 600 4.4cqw/1 "Inter Tight"; color: var(--green);
  background: rgba(0,230,122,.12); border: 1px solid rgba(0,230,122,.4); opacity: 0; transform: translateX(-50%); }
.valid svg { width: 4.6cqw; height: 4.6cqw; }
.valid.pop { animation: pop .5s var(--ease) forwards; }
.valid.on { opacity: 1; }
@keyframes pop { 0% { opacity: 0; transform: translateX(-50%) translateY(8px) scale(.85); } 100% { opacity: 1; transform: translateX(-50%) scale(1); } }
.pose { position: absolute; left: 0; right: 0; bottom: 15cqh; width: 100%; overflow: visible; }
.pose .bone { fill: none; stroke: var(--cyan); stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; }
.pose .mass { fill: none; stroke: rgba(0,240,255,.13); stroke-width: 16; stroke-linecap: round; stroke-linejoin: round; }
.pose .head { fill: none; stroke: var(--cyan); stroke-width: 4; }
.pose .jt { fill: var(--ink); }
.pose .floor { stroke: rgba(255,255,255,.12); stroke-width: 1.5; stroke-dasharray: 3 6; }
.arb { position: absolute; left: 6cqw; right: 6cqw; bottom: 4.5cqh; z-index: 1; display: flex; justify-content: space-between; align-items: center;
  font: 600 3.8cqw/1 "Inter Tight"; color: var(--mute); padding: 3cqw 4cqw; border-radius: 4cqw; background: rgba(9,13,21,.7);
  border: 1px solid rgba(255,255,255,.08); }
.arb b { color: var(--ink); font-family: "Chakra Petch"; font-variant-numeric: tabular-nums; }
.corners { position: absolute; inset: 30cqh 8cqw 11cqh; pointer-events: none;
  --c: rgba(0,240,255,.35);
  background:
    linear-gradient(var(--c),var(--c)) 0 0/14px 1.5px no-repeat, linear-gradient(var(--c),var(--c)) 0 0/1.5px 14px no-repeat,
    linear-gradient(var(--c),var(--c)) 100% 0/14px 1.5px no-repeat, linear-gradient(var(--c),var(--c)) 100% 0/1.5px 14px no-repeat,
    linear-gradient(var(--c),var(--c)) 0 100%/14px 1.5px no-repeat, linear-gradient(var(--c),var(--c)) 0 100%/1.5px 14px no-repeat,
    linear-gradient(var(--c),var(--c)) 100% 100%/14px 1.5px no-repeat, linear-gradient(var(--c),var(--c)) 100% 100%/1.5px 14px no-repeat; }

@media (max-width: 899px) {
  .s-cam .lead { margin-top: 10px; font-size: 15px; }
  .s-cam .lead-more { display: none; }
  .chain { margin-top: 14px; }
  .chain li { padding: 5px 0; }
  .chain span { display: none; }
  .chain li::before { grid-row: auto; width: 24px; height: 24px; }
  .chain li { align-items: center; }
  .phone { height: min(420px, 46svh); }
}
@media (min-width: 900px) {
  .s-cam .inner { grid-template-columns: 1fr 1fr; grid-template-areas: "copy phone"; align-items: center; }
}

/* ---------- 2. ranks ---------- */
.s-rank { background: #070a11; }
.rk-glow { position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background: radial-gradient(42% 46% at var(--gx, 50%) 46%, var(--tier, #cf9059) 0%, transparent 70%); mix-blend-mode: screen; filter: saturate(.8); }
.s-rank .inner { grid-template-areas: "copy" "stage"; }
.rk-copy { grid-area: copy; }
.rk-copy h2 em { color: #fac64c; }
.rk-stage { grid-area: stage; display: grid; justify-items: center; text-align: center; }
.emblem { position: relative; width: min(240px, 30svh); aspect-ratio: 1; }
.emblem img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transform: scale(.8);
  transition: opacity .45s var(--ease), transform .6s var(--ease); filter: drop-shadow(0 18px 30px rgba(0,0,0,.7)); }
.emblem img.on { opacity: 1; transform: scale(1); }
.flash { position: absolute; inset: -30%; border-radius: 50%; opacity: 0; pointer-events: none;
  background: radial-gradient(circle, rgba(255,255,255,.9) 0%, var(--tier, var(--hi)) 22%, transparent 62%); }
.flash.go { animation: flash .7s var(--ease); }
@keyframes flash { 0% { opacity: 0; transform: scale(.4); } 25% { opacity: .85; } 100% { opacity: 0; transform: scale(1.3); } }
.rk-name { margin-top: 18px; font: 700 clamp(30px, 3.6vw, 48px)/1 "Chakra Petch"; letter-spacing: .02em; color: var(--tier-ink, #cf9059); }
.rk-req { margin-top: 8px; font-size: 14px; color: var(--mute); }
.rk-req b { color: var(--ink); font-variant-numeric: tabular-nums; }
.ladder { list-style: none; padding: 0; margin-top: 22px; display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; width: min(100%, 460px); }
.ladder li { aspect-ratio: 1; display: grid; place-items: center; border-radius: 8px; background: rgba(255,255,255,.03);
  border: 1px solid transparent; transition: background .3s var(--ease), border-color .3s var(--ease); }
.ladder img { width: 78%; height: 78%; object-fit: contain; opacity: .25; filter: grayscale(1); transition: opacity .3s var(--ease), filter .3s var(--ease); }
.ladder li.got img { opacity: .9; filter: none; }
.ladder li.cur { border-color: var(--tier-ink); background: rgba(255,255,255,.06); }
.lvl { margin-top: 20px; width: min(100%, 460px); display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center;
  font: 700 12px/1 "Chakra Petch"; letter-spacing: .1em; color: var(--mute); }
.lvl b { color: var(--ink); font-size: 16px; font-variant-numeric: tabular-nums; }
.lvl .track { height: 6px; border-radius: 3px; background: rgba(255,255,255,.1); overflow: hidden; }
.lvl .track i { display: block; height: 100%; background: var(--cyan); transform-origin: 0 50%; transform: scaleX(1); }
@media (max-width: 899px) {
  .s-rank .lead { font-size: 15px; }
  .rk-name { margin-top: 12px; }
  .ladder { margin-top: 16px; }
}
@media (min-width: 900px) {
  .s-rank .inner { grid-template-columns: 7fr 5fr; grid-template-areas: "stage copy"; align-items: center; }
  .emblem { width: min(340px, 40svh); }
  .rk-glow { --gx: 32%; }
}

/* ---------- 3. bosses + quests ---------- */
.s-boss .pin { background: radial-gradient(90% 55% at 70% 100%, rgba(255,110,30,.16), transparent 70%), var(--bg); }
.s-boss .inner { grid-template-areas: "copy" "bosses" "quests"; gap: 18px; }
.bs-copy { grid-area: copy; }
.bs-copy h2 em { color: var(--fire); }
.bosses { grid-area: bosses; position: relative; overflow: hidden; margin-inline: calc(-1 * var(--gut)); padding-inline: var(--gut);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, black var(--gut)); mask-image: linear-gradient(90deg, transparent 0, black var(--gut)); }
.btrack { display: flex; gap: 14px; will-change: transform; }
.bcard { position: relative; flex: 0 0 auto; width: min(64vw, 260px); border-radius: 16px; overflow: hidden; background: var(--slate);
  border: 1px solid rgba(255,255,255,.08); }
.bimg { position: relative; aspect-ratio: 16 / 11; overflow: hidden; }
.bimg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; display: block; transition: filter .6s var(--ease); }
.bmeta { padding: 10px 12px 12px; }
.bname { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font: 700 13px/1.1 "Chakra Petch"; letter-spacing: .08em; text-transform: uppercase; }
.bname span:last-child { color: var(--mute); letter-spacing: .02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bbar { height: 8px; margin-top: 8px; border-radius: 3px; background: rgba(0,0,0,.5); border: 1px solid rgba(255,255,255,.14); overflow: hidden; }
.bbar i { display: block; height: 100%; background: linear-gradient(90deg, #c2271b, var(--hp)); transform-origin: 0 50%; }
.bsub { margin-top: 8px; font-size: 12.5px; color: var(--mute); }
.chip { position: absolute; top: 10px; left: 10px; padding: 6px 9px; border-radius: 6px; font: 700 11px/1 "Chakra Petch"; letter-spacing: .1em;
  text-transform: uppercase; background: rgba(9,13,21,.75); border: 1px solid rgba(255,255,255,.14); color: var(--ink); }
.chip.hot { color: var(--fire); border-color: rgba(255,138,42,.45); }
.stamp { position: absolute; top: 34%; left: 50%; padding: 8px 14px; border: 2px solid var(--fire); border-radius: 6px; color: var(--fire);
  font: 700 22px/1 "Chakra Petch"; letter-spacing: .14em; background: rgba(9,13,21,.7); opacity: 0; transform: translate(-50%, -50%) rotate(-8deg) scale(1.5); }
.bcard.dead .stamp { animation: stamp .45s var(--ease) forwards; }
.bcard.dead .bimg img { filter: grayscale(.85) brightness(.7); }
@keyframes stamp { to { opacity: 1; transform: translate(-50%, -50%) rotate(-8deg) scale(1); } }
.bdmg { position: absolute; font: 700 26px/1 "Chakra Petch"; color: var(--hi); pointer-events: none; text-shadow: 0 0 14px var(--fire), 0 2px 0 #6a2400;
  animation: bdmg .9s var(--ease) forwards; }
@keyframes bdmg { 0% { opacity: 0; transform: translateY(8px) scale(.6); } 20% { opacity: 1; transform: scale(1.1); } 100% { opacity: 0; transform: translateY(-46px); } }

.quests { grid-area: quests; }
.qhead { display: flex; justify-content: space-between; align-items: baseline; font: 700 12px/1 "Chakra Petch"; letter-spacing: .12em;
  text-transform: uppercase; color: var(--mute); padding-bottom: 8px; }
.qhead b { color: var(--ink); font-size: 15px; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.qlist { list-style: none; padding: 0; border-top: 1px solid rgba(255,255,255,.1); }
.qlist li { display: grid; grid-template-columns: 34px 1fr auto; gap: 4px 12px; align-items: center; padding: 10px 0; }
.qlist li + li { border-top: 1px solid rgba(255,255,255,.06); }
.qic { grid-row: span 2; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: var(--qc);
  background: color-mix(in srgb, var(--qc) 14%, transparent); transition: background .3s var(--ease), color .3s var(--ease); }
.qic svg { width: 18px; height: 18px; }
.qic .ck { display: none; }
.qt { font-size: 14px; font-weight: 600; line-height: 1.25; }
.qx { font: 600 12px/1 "Inter Tight"; color: var(--mute); font-variant-numeric: tabular-nums; }
.qbar { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; grid-column: 2 / 4; }
.qbar span { font-size: 11.5px; color: var(--mute); font-variant-numeric: tabular-nums; min-width: 52px; text-align: right; }
.qtrack { height: 5px; border-radius: 3px; background: var(--tunnel); overflow: hidden; }
.qtrack i { display: block; height: 100%; background: var(--qc); transform-origin: 0 50%; transform: scaleX(1); }
.qtag { font: 700 10.5px/1 "Chakra Petch"; letter-spacing: .12em; text-transform: uppercase; color: var(--grey); padding: 12px 0 0; }
li.qtag { display: block; border-top: 0 !important; }
.qlist li.done .qic { --qc: var(--green); }
.qlist li.done .qic .ck { display: block; }
.qlist li.done .qic .tg { display: none; }
.qlist li.done .qt { color: var(--mute); }
.qlist li.done .qx { color: var(--green); }
.qlist li.done .qtrack i { background: var(--green); }
.qlist li.fresh { animation: fresh .7s var(--ease); }
@keyframes fresh { 0% { background: rgba(0,230,122,.14); } 100% { background: transparent; } }
@media (max-width: 899px) {
  .bs-copy .lead { margin-top: 10px; }
  .qlist li { padding: 7px 0; }
  .qtag { padding-top: 8px; }
}
@media (min-width: 900px) {
  .s-boss .inner { grid-template-columns: 5fr 7fr; grid-template-areas: "copy bosses" "quests bosses"; align-items: center; row-gap: 28px; }
  .bosses { margin: 0 calc(-1 * var(--gut)) 0 0; padding: 0; }
  .bosses { -webkit-mask-image: linear-gradient(90deg, transparent 0, black 28px); mask-image: linear-gradient(90deg, transparent 0, black 28px); padding-left: 28px; }
  .btrack { gap: 0; }
  .bcard { --cw: clamp(230px, 22vw, 320px); width: var(--cw); box-shadow: -18px 0 40px -12px rgba(5,8,14,.9); }
  .bcard + .bcard { margin-left: calc(var(--cw) * -.3); transform: translateY(14px) rotate(2deg); }
  .bcard + .bcard + .bcard { transform: translateY(28px) rotate(4deg); }
  #golem { z-index: 3; } .bcard:nth-child(2) { z-index: 2; }
  .bcard + .bcard .chip { left: auto; right: 10px; }
  .bimg { aspect-ratio: 4 / 4.4; }
  .quests { align-self: start; max-width: 480px; }
}

/* ---------- 4. clan ---------- */
.s-clan .inner { grid-template-areas: "copy" "battle" "chat"; gap: 18px; }
.cl-copy { grid-area: copy; }
.battle .ex { margin-bottom: 10px; }
.battle { grid-area: battle; border-radius: 16px; background: var(--slate); border: 1px solid rgba(255,255,255,.08); padding: 16px; }
.bt-head { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--mute); }
.bt-head b { font: 700 12px/1.2 "Chakra Petch"; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.side { margin-top: 14px; display: grid; grid-template-columns: 42px 1fr auto; gap: 4px 12px; align-items: center; }
.crest { grid-row: span 2; width: 42px; height: 46px; display: grid; place-items: center; font: 700 14px/1 "Chakra Petch";
  clip-path: polygon(0 0, 100% 0, 100% 70%, 50% 100%, 0 70%); background: var(--cc); color: #071018; }
.side .nm { font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 8px; min-width: 0; }
.side .nm small { font-size: 12px; color: var(--mute); font-weight: 400; white-space: nowrap; }
.side .sc { font: 700 24px/1 "Chakra Petch"; font-variant-numeric: tabular-nums; text-align: right; }
.side .bar2 { grid-column: 2 / 4; height: 10px; border-radius: 4px; background: var(--tunnel); overflow: hidden; }
.side .bar2 i { display: block; height: 100%; background: var(--cc); transform-origin: 0 50%; transform: scaleX(.5); transition: box-shadow .4s var(--ease); }
.us { --cc: var(--cyan); }
.them { --cc: #e2564a; }
.lead-chip { font: 700 10px/1 "Chakra Petch"; letter-spacing: .12em; text-transform: uppercase; padding: 4px 6px; border-radius: 4px;
  background: var(--cc); color: #071018; opacity: 0; transform: scale(.8); transition: opacity .3s var(--ease), transform .3s var(--ease); }
.side.ahead .lead-chip { opacity: 1; transform: scale(1); }
.battle.won .us .bar2 i { box-shadow: 0 0 16px var(--cyan); }
.battle.won .us .sc { color: var(--cyan); }
.feed { margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.06); display: grid; gap: 6px; font-size: 13px; color: var(--mute);
  height: 64px; overflow: hidden; align-content: end; }
.feed p { display: none; justify-content: space-between; gap: 10px; }
.feed p.on { display: flex; animation: rise .4s var(--ease); }
.feed p b { color: var(--ink); font-weight: 600; }
.feed p em { font-style: normal; color: var(--cyan); font-variant-numeric: tabular-nums; }
.feed p.th em { color: #e2564a; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.chatbox { grid-area: chat; display: grid; gap: 8px; }
.chat { display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; height: 150px; overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, black 36px); mask-image: linear-gradient(180deg, transparent 0, black 36px); }
.msg { display: none; max-width: 86%; padding: 9px 12px; border-radius: 14px 14px 14px 4px; background: var(--tunnel); font-size: 14px; line-height: 1.4; }
.msg.on { display: block; animation: rise .45s var(--ease); }
.msg small { display: block; font: 700 11px/1.3 "Chakra Petch"; letter-spacing: .06em; color: var(--mute); margin-bottom: 2px; }
.msg.me { align-self: flex-end; border-radius: 14px 14px 4px 14px; background: rgba(0,240,255,.12); border: 1px solid rgba(0,240,255,.25); }
.msg.me small { color: var(--cyan); }
@media (max-width: 899px) {
  .s-clan .lead { margin-top: 10px; font-size: 15px; }
  .s-clan .lead-more { display: none; }
  .s-clan .inner { gap: 14px; }
  .chat { height: 112px; }
  .msg { font-size: 13.5px; padding: 8px 11px; }
}
@media (min-width: 900px) {
  .s-clan .inner { grid-template-columns: 7fr 5fr; grid-template-areas: "battle copy" "battle chat"; align-items: end; row-gap: 28px; }
  .battle { padding: 24px; align-self: center; }
  .side .sc { font-size: 34px; }
  .side { margin-top: 20px; }
  .crest { width: 52px; height: 58px; }
  .side { grid-template-columns: 52px 1fr auto; }
  .chatbox { align-self: start; }
  .chat { height: 210px; }
  .feed { height: 92px; }
}

/* ---------- 5. leaderboard ---------- */
.s-lb .inner { grid-template-areas: "copy" "board"; }
.lb-copy { grid-area: copy; }
.board { grid-area: board; }
.chips { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 10px; margin-bottom: 4px;
  border-bottom: 1px solid rgba(255,255,255,.1); font: 700 12px/1 "Chakra Petch"; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.rows { position: relative; height: calc(8 * var(--rh)); --rh: 50px; }
.row { position: absolute; left: 0; right: 0; top: 0; height: var(--rh); display: grid; grid-template-columns: 26px 34px 1fr auto; gap: 10px; align-items: center;
  padding: 0 10px; border-radius: 10px; transition: transform .6s var(--ease), background .3s var(--ease); will-change: transform; }
.row .pos { font: 700 16px/1 "Chakra Petch"; color: var(--mute); text-align: center; font-variant-numeric: tabular-nums; }
.row .av { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font: 700 12px/1 "Chakra Petch"; color: var(--ink);
  background: var(--avc, #2a3140); }
.row .who { min-width: 0; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .who small { display: flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 400; color: var(--mute); }
.row .who small img { width: 14px; height: 14px; object-fit: contain; }
.row .val { font: 700 15px/1 "Chakra Petch"; font-variant-numeric: tabular-nums; }
.row.me { background: color-mix(in srgb, var(--cyan) 9%, var(--slate)); box-shadow: inset 0 0 0 1px rgba(0,240,255,.35); z-index: 1; }
.row.me .av { background: var(--cyan); color: #04121a; }
.row.me .val { color: var(--cyan); }
.row.me.top { box-shadow: inset 0 0 0 1px var(--cyan), 0 0 24px rgba(0,240,255,.25); }
.row.me.top .pos { color: var(--cyan); }
.row.p1 .pos { color: #fac64c; }
.lb-note { margin-top: 18px; display: flex; gap: 10px; align-items: center; font-size: 13.5px; color: var(--mute); }
.lb-note svg { flex: none; width: 18px; height: 18px; color: var(--green); }
@media (max-width: 899px) { .rows { --rh: 46px; } .s-lb .lead { font-size: 15px; } }
@media (min-width: 900px) {
  .s-lb .inner { grid-template-columns: 5fr 6fr; grid-template-areas: "copy board"; align-items: center; }
  .board { max-width: 600px; justify-self: end; width: 100%; }
  .rows { --rh: 56px; }
}

/* ---------- 6. nutrition ---------- */
.s-food .inner { grid-template-areas: "copy" "vf" "macros"; gap: 16px; }
.fd-copy { grid-area: copy; }
.plus { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px; padding: 6px 10px; border-radius: 6px; font: 700 12px/1 "Chakra Petch";
  letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); border: 1px solid rgba(0,240,255,.35); }
.vf { grid-area: vf; position: relative; justify-self: center; width: min(100%, 36svh, 540px); aspect-ratio: 1; border-radius: 20px; overflow: hidden; background: #0e1118; }
.vf img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vf .corners { inset: 5%; --c: rgba(255,255,255,.55); }
.scan { position: absolute; left: 0; right: 0; top: 0; height: 30%; pointer-events: none; transform: translateY(-100%);
  background: linear-gradient(180deg, rgba(0,240,255,0) 0%, rgba(0,240,255,.16) 85%, rgba(0,240,255,.0) 100%); }
.scan::after { content: ""; position: absolute; left: 0; right: 0; bottom: 14%; height: 2px; background: var(--cyan); box-shadow: 0 0 14px var(--cyan); }
.det { position: absolute; border: 1.5px solid var(--cyan); border-radius: 8px; opacity: 0; transform: scale(1.08); transition: opacity .35s var(--ease), transform .45s var(--ease); }
.det.on { opacity: 1; transform: none; }
.det span { position: absolute; left: -1.5px; bottom: 100%; margin-bottom: 4px; white-space: nowrap; padding: 4px 6px; border-radius: 5px;
  font: 600 11px/1 "Inter Tight"; background: var(--cyan); color: #04121a; }
.det.r span { left: auto; right: -1.5px; }
.det.dn span { bottom: auto; top: 100%; margin: 4px 0 0; }
.macros { grid-area: macros; display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; align-items: center; }
.kcal { grid-row: span 3; font: 700 44px/1 "Chakra Petch"; font-variant-numeric: tabular-nums; }
.kcal small { display: block; font: 600 12px/1.2 "Inter Tight"; color: var(--mute); margin-top: 4px; letter-spacing: .02em; }
.mac { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; font-size: 12.5px; color: var(--mute); }
.mac b { color: var(--ink); font-variant-numeric: tabular-nums; font-weight: 600; }
.mac .qtrack { grid-column: 1 / 3; }
.mac .qtrack i { background: var(--mc); }
.price { grid-column: 1 / 3; margin-top: 10px; font-size: 14px; color: var(--mute); }
.price b { color: var(--ink); font-weight: 600; }
@media (max-width: 899px) {
  .s-food .lead { margin-top: 10px; }
  .plus { margin-bottom: 8px; }
  .kcal { font-size: 38px; }
}
@media (min-width: 768px) { .cta-bg { object-position: 50% 12%; } }
@media (min-width: 900px) {
  .s-food .inner { grid-template-columns: 6fr 5fr; grid-template-areas: "vf copy" "vf macros"; align-items: end; row-gap: 32px; }
  .fd-copy { align-self: end; }
  .macros { align-self: start; max-width: 440px; }
  .vf { width: min(100%, 72svh, 560px); }
  .kcal { font-size: 56px; }
}

/* ---------- 7. CTA + footer ---------- */
.cta { position: relative; min-height: 100svh; display: grid; align-items: end; overflow: hidden; isolation: isolate; }
.cta-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transform-origin: 50% 20%; transform: scale(1.12); }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(9,13,21,.2) 30%, rgba(9,13,21,.35) 55%, rgba(9,13,21,.92) 82%, var(--bg) 100%); }
.cta-in { width: min(1240px, 100% - 2 * var(--gut)); margin-inline: auto; padding-bottom: clamp(48px, 10vh, 120px); }
@media (max-width: 767px) { .cta { min-height: 88svh; } .cta-in { padding-bottom: 28px; } .foot { padding-top: 20px; } }
.cta h2 { font-size: clamp(42px, 7vw, 104px); line-height: .95; }
.cta h2 em { color: var(--cyan); }
.cta .lead { max-width: 40ch; }
.cta .ctas { margin-top: 28px; }
.cta-in > * { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.cta.in .cta-in > * { opacity: 1; transform: none; }
.cta.in .cta-in > :nth-child(2) { transition-delay: .08s; }
.cta.in .cta-in > :nth-child(3) { transition-delay: .16s; }
.btn:focus-visible, .navcta:focus-visible, .logo:focus-visible, .foot a:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
@media (max-width: 767px) {
  .cta .ctas { display: grid; grid-template-columns: 1fr 1fr; margin: 24px 0 0; }
  .cta .ctas .btn { justify-content: center; }
  .cta .ctas .btn.wide { grid-column: 1 / 3; }
}
.qrbox { display: flex; align-items: center; gap: 14px; padding: 8px 16px 8px 8px; border-radius: 12px; color: var(--ink); text-decoration: none;
  border: 1px solid var(--line); background: rgba(9,13,21,.45); }
.qrbox .qr { flex: none; width: 76px; height: 76px; border-radius: 6px; }
.qrbox span { display: grid; gap: 4px; font-size: 13px; color: var(--mute); max-width: 22ch; }
.qrbox b { font: 600 15px/1.2 "Inter Tight"; color: var(--ink); }
.qrbox:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.foot { width: min(1240px, 100% - 2 * var(--gut)); margin-inline: auto; padding: 28px 0 36px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; justify-content: space-between; font-size: 13.5px; color: var(--mute); }
.foot nav { all: unset; display: flex; gap: 4px 20px; flex-wrap: wrap; }
.foot a { color: var(--mute); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.foot a:hover { color: var(--ink); }

/* ---------- reduced motion: no pinning, final states (story.js renders progress 1) ---------- */
@media (prefers-reduced-motion: reduce) {
  .scene { height: auto; }
  .pin { position: relative; height: auto; min-height: 0; padding-block: 56px; }
  .scene *, .scene *::before, .scene *::after, .cta * { transition: none !important; animation: none !important; }
  .cta-bg { transform: none; }
  .cta-in > * { opacity: 1; transform: none; }
}
