/* =====================================================================
   FITCOM — SCROLL STORY  ·  assets/css/story-scroll.css
   Apple / DJI style scroll-driven founding-story narrative.
   10 pinned/revealed scenes. Motion driven by story-scroll.js (GSAP
   ScrollTrigger). This file = base + rest states; JS handles scrub.
   Tokens mirror the live site (--fc-orange #F6921E / Geist / Newsreader).
   Kelvin approved structure 2026-07-26.
   ===================================================================== */

.ss {
  --ss-ink: #0b0b0c;
  --ss-paper: #f3efe8;
  --orange: #F6921E;
  --orange-deep: #d97a10;
  --head: 'Geist', 'Noto Sans SC', system-ui, sans-serif;
  --serif: 'Newsreader', Georgia, serif;
  --zh: 'Noto Sans SC', 'Geist', sans-serif;

  background: var(--ss-ink);
  color: #fff;
  font-family: var(--head);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.ss * { box-sizing: border-box; }
.ss a { color: inherit; text-decoration: none; }
.ss a:hover { text-decoration: none; }

/* scroll progress rail (thin, top) */
.ss-progress {
  position: fixed; inset: 0 auto auto 0; height: 3px; width: 100%;
  transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--orange), #ffd39b);
  z-index: 200; pointer-events: none;
}

/* ---- scene shell ---- */
.ss-scene {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(4rem, 10vh, 8rem) clamp(1.25rem, 5vw, 4rem);
  overflow: hidden;
}
.ss-scene__bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
  will-change: transform;
}
.ss-scene__scrim { position: absolute; inset: 0; z-index: 1; }
/* legibility scrims — direction varies by scene */
.ss-scrim--center { background: radial-gradient(120% 90% at 50% 50%, rgba(0,0,0,.35), rgba(0,0,0,.72)); }
.ss-scrim--bottom { background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,.4) 45%, rgba(0,0,0,.85) 100%); }
.ss-scrim--ink    { background: rgba(8,8,9,.6); }

.ss-scene__inner {
  position: relative; z-index: 2;
  width: 100%; max-width: 1080px; margin: 0 auto;
  text-align: center;
}
.ss-scene__inner--left { text-align: left; max-width: 980px; }

/* ---- type scale ---- */
.ss-eyebrow {
  font-size: clamp(.72rem, .66rem + .3vw, .86rem);
  letter-spacing: .22em; text-transform: uppercase; font-weight: 600;
  color: var(--orange); margin: 0 0 1.1rem;
}
.ss-display {
  font-family: var(--head); font-weight: 800;
  font-size: clamp(2.6rem, 1.4rem + 6.2vw, 6.4rem);
  line-height: .98; letter-spacing: -.025em; margin: 0;
  text-wrap: balance; text-shadow: 0 2px 40px rgba(0,0,0,.35);
}
.ss-display--tight { line-height: .94; }
.ss-sub {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(1.15rem, .95rem + 1.1vw, 1.9rem);
  line-height: 1.4; margin: 1.4rem auto 0; max-width: 46ch;
  color: rgba(255,255,255,.82); text-wrap: pretty;
}
.ss-scene__inner--left .ss-sub { margin-inline: 0; }
.ss-body {
  font-size: clamp(1rem, .92rem + .5vw, 1.28rem);
  line-height: 1.7; margin: 1.4rem auto 0; max-width: 54ch;
  color: rgba(255,255,255,.86); text-wrap: pretty;
}
.ss-scene__inner--left .ss-body { margin-inline: 0; }
.ss-accent { color: var(--orange); }
.ss-strong { font-weight: 800; color: #fff; }

/* Chinese big-type accent (used only on the 3 emotional beats) */
.ss-zh {
  font-family: var(--zh); font-weight: 700;
  font-size: clamp(1.3rem, 1rem + 1.6vw, 2.4rem);
  letter-spacing: .04em; line-height: 1.35;
  margin: 1.1rem 0 0; color: rgba(255,255,255,.9);
}

/* reveal primitive — JS toggles .is-in (reduced-motion shows instantly) */
.ss-rv { opacity: 0; transform: translateY(26px); }
.ss-rv.is-in { opacity: 1; transform: none; transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1); }
.ss-rv-2 { transition-delay: .08s; }
.ss-rv-3 { transition-delay: .16s; }
.ss-rv-4 { transition-delay: .24s; }

/* ---- scene 1: the ranking gap (data moment) ---- */
.ss-rank { display: flex; align-items: stretch; justify-content: center; gap: clamp(1.5rem, 5vw, 4.5rem); flex-wrap: wrap; margin-top: 2.4rem; }
.ss-rank__cell { text-align: center; }
.ss-rank__num { font-family: var(--head); font-weight: 800; font-size: clamp(3.4rem, 2rem + 8vw, 8rem); line-height: 1; letter-spacing: -.03em; }
.ss-rank__num--good { color: #fff; }
.ss-rank__num--bad  { color: var(--orange); }
.ss-rank__label { font-size: clamp(.82rem, .76rem + .3vw, 1rem); color: rgba(255,255,255,.7); margin-top: .7rem; letter-spacing: .04em; }
.ss-rank__div { align-self: center; font-size: 2rem; color: rgba(255,255,255,.3); }
.ss-rank__foot { margin-top: 2rem; font-size: clamp(.9rem,.84rem+.3vw,1.1rem); color: rgba(255,255,255,.62); }

/* ---- scene 2: three reasons — photo + caption, 3 columns ---- */
.ss-reasons { margin: 2.8rem auto 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 2.4vw, 2.2rem); max-width: 1080px; }
.ss-reason { margin: 0; text-align: left; }
.ss-reason img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 14px; display: block; }
.ss-reason figcaption {
  margin-top: 1rem; font-size: clamp(1rem, .92rem + .5vw, 1.28rem); font-weight: 600;
  line-height: 1.4; color: rgba(255,255,255,.9); text-wrap: pretty;
}
.ss-reason figcaption b { color: var(--orange); font-weight: 800; }
@media (max-width: 720px) {
  .ss-reasons { grid-template-columns: 1fr; gap: 1.6rem; max-width: 380px; }
  .ss-reason { text-align: center; }
}

/* ---- scene 5: SARCOPENIA hammer ---- */
.ss-scene--word { background: #000; }
.ss-word {
  font-family: var(--head); font-weight: 800;
  font-size: clamp(2.6rem, .5rem + 12vw, 11rem);
  line-height: .9; letter-spacing: -.03em; margin: 0;
  color: #fff; text-transform: uppercase; text-wrap: balance;
}
.ss-word em { color: var(--orange); font-style: normal; }
.ss-word__def { display: block; font-family: var(--serif); font-style: italic; font-weight: 400; text-transform: none; font-size: clamp(1.05rem, .9rem + .9vw, 1.7rem); color: rgba(255,255,255,.62); letter-spacing: 0; margin-top: 1.5rem; }

/* ---- scene 8: the scale (number count-up) ---- */
.ss-scale { display: grid; gap: clamp(1.6rem, 4vh, 3rem); margin-top: 2rem; }
.ss-scale__row { display: flex; align-items: baseline; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.ss-bignum { font-family: var(--head); font-weight: 800; font-size: clamp(3rem, 1.5rem + 9vw, 9rem); line-height: 1; letter-spacing: -.03em; color: var(--orange); }
.ss-bignum--white { color: #fff; }
.ss-scale__cap { font-size: clamp(.95rem, .86rem + .4vw, 1.25rem); color: rgba(255,255,255,.72); letter-spacing: .03em; }
.ss-scale__note { margin-top: .4rem; font-size: clamp(.9rem,.84rem+.3vw,1.1rem); color: rgba(255,255,255,.55); max-width: 40ch; margin-inline: auto; }

/* ---- CTA scene ---- */
.ss-cta { display: inline-flex; align-items: center; gap: .5rem; margin-top: 2rem; padding: 1.05rem 2.1rem; min-height: 52px; border-radius: 999px; background: var(--orange); color: #17110a; font-family: var(--head); font-weight: 700; font-size: 1.02rem; transition: transform .2s ease, filter .2s ease; }
.ss-cta:hover { transform: translateY(-2px); filter: brightness(1.04); text-decoration: none; }
.ss-cta__row { display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; margin-top: 2rem; }
.ss-cta--ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.4); }
.ss-cta--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--orange); color: var(--orange); }

/* footer handoff into rest of page */
.ss-end { padding: clamp(3rem,8vh,6rem) 1.25rem; text-align: center; background: var(--ss-ink); border-top: 1px solid rgba(255,255,255,.08); }

/* ---------- reduced motion / no-JS: everything visible ---------- */
@media (prefers-reduced-motion: reduce) {
  .ss-rv { opacity: 1; transform: none; }
  .ss-cue__line { animation: none; }
  .ss-scene__bg { transform: none !important; }
}
.ss-nojs .ss-rv { opacity: 1; transform: none; }

/* ---------- mobile ---------- */
@media (max-width: 640px) {
  .ss-scene { min-height: 92svh; }
  .ss-rank { gap: 1.4rem; }
  .ss-rank__div { display: none; }
  .ss-reasons li { text-align: center; }
}
