/* FishermanTrades website. Builds on css/tokens.css (brand tokens from the SINI video and the beta app).
   Navy canvas, one glow, gold only where something happened, Plus Jakarta Sans only, no emoji. */

:root {
  --panel: #0c1829;
  --panel-2: #0f1d31;
  --gold-ink: #1a1204;
  --gold-soft: #f0c97a;
  --purple: #c9b3ff;
  --orange: #ffb36b;
  --wrap: 1180px;
  --gutter: 20px;
  --radius: 18px;
  --dur: .9s;
  --step-0: clamp(1rem, .96rem + .2vw, 1.125rem);
  --step-1: clamp(1.15rem, 1.05rem + .5vw, 1.4rem);
  --step-2: clamp(1.5rem, 1.25rem + 1.2vw, 2.1rem);
  --step-3: clamp(2rem, 1.5rem + 2.4vw, 3.2rem);
  --step-4: clamp(2.5rem, 1.7rem + 4vw, 4.6rem);
  --sp-1: clamp(1rem, .9rem + .5vw, 1.5rem);
  --sp-2: clamp(2rem, 1.5rem + 2vw, 3.5rem);
  --sp-3: clamp(4rem, 2.5rem + 6vw, 8rem);
}
@media (min-width: 720px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
/* one canvas: a single navy, one soft glow at the very top that scrolls away with the page; nothing else paints a ground */
html { background: #08111f; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh;
  background-color: #08111f;
  background-image: radial-gradient(1200px 620px at 50% -8%, rgba(40, 78, 130, .22), rgba(40, 78, 130, 0) 72%);
  background-repeat: no-repeat;
  color: var(--fg);
  font-family: var(--font); font-size: var(--step-0); line-height: 1.6;
  font-feature-settings: "tnum" 1, "lnum" 1;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-x: clip; /* clip, not a scroll container: keeps the window as the scroller and sticky sections working */
}
[hidden] { display: none !important; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; text-wrap: pretty; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: var(--track-headline); line-height: 1.08; text-wrap: balance; color: #fff; }
h1 { font-size: var(--step-4); line-height: 1.06; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); letter-spacing: -0.01em; }
strong { font-weight: 600; color: #fff; }
.num { font-variant-numeric: tabular-nums; }
::selection { background: rgba(217, 164, 65, .35); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--gold-ink); padding: 8px 14px; border-radius: 999px; z-index: 100; }
.skip:focus { left: 12px; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.wrap-narrow { width: min(760px, 100% - 2 * var(--gutter)); margin-inline: auto; }

/* labels, eyebrows, chips */
.label, .eyebrow {
  font-size: 11.5px; font-weight: 700; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--dim2);
  margin: 0 0 12px;
}
.eyebrow-wordmark { letter-spacing: var(--track-wordmark); font-weight: 600; color: rgba(255,255,255,.55); }
.eyebrow-brand { color: var(--gold); font-weight: 700; } /* the "Fisherman Trades" name above the account pages */
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: .02em; line-height: 1.2; white-space: nowrap;
  background: rgba(142, 163, 189, .10); color: var(--dim);
}
.chip-gold { background: var(--gold); color: var(--gold-ink); }
.chip-blue { background: rgba(90, 169, 255, .22); color: #bcdcff; }
.chip-green { background: transparent; box-shadow: inset 0 0 0 1px rgba(47, 191, 143, .6); color: var(--green); }
.chip-red { background: rgba(255, 107, 87, .16); color: #ffb0a4; }
.chip-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* buttons: gold fill or hairline pill */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--line-strong);
  font-weight: 600; font-size: 15px; letter-spacing: .01em; line-height: 1; color: var(--fg);
  background: transparent; cursor: pointer; text-decoration: none;
  transition: background-color .4s var(--ease), border-color .4s var(--ease), transform .4s var(--ease), color .4s var(--ease);
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.btn:hover { border-color: rgba(142, 163, 189, .34); background: rgba(142, 163, 189, .06); }
.btn:active { transform: scale(.985); }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.btn-gold:hover { background: #e2b256; border-color: #e2b256; }
.btn-lg { min-height: 54px; padding: 0 30px; font-size: 16px; }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.arrow::after { content: "→"; font-weight: 500; transition: transform .4s var(--ease); }
.arrow:hover::after { transform: translateX(3px); }
.link { color: var(--gold); font-weight: 600; border-bottom: 1px solid rgba(217,164,65,.35); }
.link:hover { border-bottom-color: var(--gold); }

/* navigation */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8, 17, 31, .72); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top);
}
.nav-row { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 24px; }
.brand { display: inline-flex; align-items: center; position: relative; overflow: hidden; border-radius: 4px; }
.wordmark { width: 134px; height: auto; }
.nav .wordmark { width: 120px; }
.brand::after { /* the light sweep from the video, once, on load */
  content: ""; position: absolute; inset: -20% -60%; pointer-events: none;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.28) 50%, transparent 60%);
  transform: translateX(-120%); animation: sweep 1.8s var(--ease) .6s 1 both;
}
@keyframes sweep { to { transform: translateX(120%); } }
.nav-links { display: none; align-items: center; gap: 28px; }
.nav-link { font-size: 15px; font-weight: 500; color: var(--dim); transition: color .35s var(--ease); padding: 6px 0; position: relative; }
.nav-link:hover, .nav-link.is-active { color: #fff; }
.nav-link.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--gold); border-radius: 2px; }
.nav-cta { min-height: 40px; padding: 0 18px; font-size: 14px; }
.nav-toggle { display: inline-flex; flex-direction: column; justify-content: center; gap: 6px; width: 44px; height: 44px; margin-right: -10px; padding: 0 10px; background: none; border: 0; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: var(--fg); border-radius: 2px; transition: transform .4s var(--ease), opacity .3s; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
@media (max-width: 859px) {
  .nav-links.is-open {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; left: 0; right: 0; top: 100%; padding: 8px var(--gutter) 20px;
    background: rgba(8, 17, 31, .96); border-bottom: 1px solid var(--line);
    animation: menu .45s var(--ease) both;
  }
  .nav-links.is-open .nav-link { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav-links.is-open .nav-link.is-active::after { display: none; }
  .nav-links.is-open .nav-cta { margin-top: 16px; min-height: 48px; }
  @keyframes menu { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
}
@media (min-width: 860px) { .nav-links { display: flex; } .nav-toggle { display: none; } }

/* sections */
.section { padding: var(--sp-3) 0; position: relative; }
.section-tight { padding: var(--sp-2) 0; }
.section-head { max-width: 720px; margin-bottom: var(--sp-2); }
.section-head p { color: var(--dim); font-size: var(--step-1); line-height: 1.5; margin-top: 16px; }
.lead { color: var(--dim); font-size: var(--step-1); line-height: 1.5; }
.gold { color: var(--gold); }
.muted { color: var(--dim); }
.hair { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* hero */
.hero { position: relative; padding: clamp(3rem, 2rem + 5vw, 7rem) 0 clamp(2rem, 1rem + 3vw, 4rem); overflow: hidden; }
.hero-inner { display: grid; gap: 0; }
.hero h1 { max-width: 12ch; margin: 6px 0 22px; }
.hero .lead { max-width: 46ch; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 18px; color: var(--dim2); font-size: 13px; margin: 22px 0 0; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta span::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--dim2); opacity: .6; }
/* the stage: text first, then the devices large across the content width */
.hero-visual { position: relative; margin: clamp(1.5rem, 1rem + 3vw, 3.5rem) auto 0; width: min(1240px, 100%); }
.hero-visual .monitor { width: 100%; transform: translateY(calc(var(--sy, 0) * -.04px)); }
.hero-visual .phone { position: absolute; right: -2%; bottom: -3%; width: 27%; max-width: 330px; transform: translateY(calc(var(--sy, 0) * -.12px)); }
.moment-card {
  position: absolute; left: 4%; bottom: 10%; z-index: 2; max-width: 300px;
  padding: 16px 18px; border-radius: 16px; background: rgba(12, 24, 41, .82); border: 1px solid var(--line-strong);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 30px 60px rgba(0, 0, 0, .45);
  transform: translateY(calc(var(--sy, 0) * -.08px));
}
.moment-card .label { margin-bottom: 8px; color: var(--gold); }
.moment-card .mc-main { font-weight: 700; font-size: 1.05rem; color: #fff; letter-spacing: -0.01em; line-height: 1.25; }
.moment-card .mc-main b { color: var(--gold); font-weight: 800; }
.moment-card .mc-sub { margin: 6px 0 0; font-size: 12.5px; color: var(--dim); line-height: 1.45; }
/* devices are cut out (transparent), so they stand on the page itself; the page makes the light:
   a soft glow behind (a gradient that ends in nothing) and a faint reflection below, no photo edge anywhere */
.shot, .shot-phone {
  -webkit-box-reflect: below 2px linear-gradient(transparent 84%, rgba(255, 255, 255, .12));
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .55));
}
.glow { position: relative; isolation: isolate; }
.glow::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  left: 50%; top: 42%; width: 120%; height: 110%; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(50, 98, 165, .30), rgba(40, 78, 130, .12) 45%, rgba(8, 17, 31, 0) 100%);
}
/* the sea dissolves on every side, so the hero never ends in an edge */
.hero-sea { position: absolute; inset: auto 0 0; height: 62%; z-index: -1; pointer-events: none; opacity: .5;
  background: url("/assets/img/bg_sea_s.webp") center 70% / cover no-repeat;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 38%, #000 55%, transparent 100%), linear-gradient(to right, transparent, #000 20%, #000 80%, transparent);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 38%, #000 55%, transparent 100%), linear-gradient(to right, transparent, #000 20%, #000 80%, transparent);
  -webkit-mask-composite: source-in; mask-composite: intersect; }
.hero { isolation: isolate; }
@media (min-width: 720px) { .hero-sea { background-image: url("/assets/img/bg_sea.webp"); } }
@media (min-width: 900px) {
  .hero-copy { display: grid; grid-template-columns: 1.15fr .85fr; align-items: start; gap: 48px; }
  .hero-copy .lead { margin-bottom: 0; }
  .hero-copy .hero-side { padding-top: var(--hero-side-top, 38px); } /* first line of the lead sits level with the first line of the headline */
  .hero h1 { font-size: clamp(3.4rem, 2rem + 4.6vw, 5.6rem); }
}
@media (max-width: 899px) {
  .moment-card { position: static; max-width: none; margin-top: 18px; transform: none; }
  .hero-visual .phone { display: none; }
}

/* push-in: slow scale settle, like the video's camera */
.push { animation: push 1.8s var(--ease) both; transform-origin: 50% 70%; }
@keyframes push { from { transform: scale(1.045); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* masked reveals on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .12s; } .reveal[data-delay="2"] { transition-delay: .24s; } .reveal[data-delay="3"] { transition-delay: .36s; }
/* descender room: the clip box extends .18em below the line and pulls back the same amount */
.mask { display: block; overflow: hidden; padding: 0 .06em .18em 0; margin: 0 -.06em -.18em 0; }
.mask > span { display: block; transform: translateY(130%); transition: transform 1.1s var(--ease); }
.reveal.in .mask > span, .mask.in > span { transform: none; }
.mask:nth-child(2) > span { transition-delay: .08s; }

/* cards and panels */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.grid-3 { display: grid; gap: 16px; }
@media (min-width: 720px) { .grid-3 { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.card { padding: 28px; display: flex; flex-direction: column; gap: 14px; transition: border-color .5s var(--ease), transform .6s var(--ease); }
.card:hover { border-color: rgba(142,163,189,.24); }
.card h3 { font-size: 1.35rem; }
.card p { color: var(--dim); margin: 0; }
.card .card-cta { margin-top: auto; padding-top: 10px; color: var(--gold); font-weight: 600; }
.card-kicker { display: flex; align-items: center; gap: 10px; }

/* the dated moment: numbers as in the video */
.moment { display: grid; gap: 20px; }
@media (min-width: 900px) { .moment { grid-template-columns: 1fr 1fr; align-items: start; gap: 40px; } }
.moment-big { font-size: clamp(4rem, 2.5rem + 8vw, 8rem); font-weight: 800; letter-spacing: var(--track-number); line-height: .95; color: var(--gold); margin: 4px 0 18px; }
.moment .caveat { max-width: 40ch; font-size: 14px; color: var(--dim); }
.timeline { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.timeline li { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.timeline time { font-weight: 700; color: var(--dim2); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.timeline .t { color: var(--fg); }
.timeline .t strong { color: #fff; }
.timeline li.is-moment time { color: var(--gold); }
.timeline li.is-moment .t strong { color: var(--gold); }
.caveat { font-size: 13px; color: var(--dim2); line-height: 1.55; }

/* feature rows (terminal page) */
.feature { display: grid; gap: 28px; align-items: center; padding: var(--sp-2) 0; border-top: 1px solid var(--line); }
.feature:last-of-type { border-bottom: 1px solid var(--line); }
.feature-text { max-width: 44ch; }
.feature-text p { color: var(--dim); }
.feature-text h3 { font-size: var(--step-2); margin-bottom: 12px; }
.feature-media img.ui { border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255,255,255,.02); }
.ui-fig { margin: 0; }
.shot-cap, .shot-note { margin: 10px 2px 0; font-size: 12px; line-height: 1.5; color: var(--dim2); }
.shot-note { text-align: center; max-width: 60ch; margin-inline: auto; }
.hero .shot-note { margin-top: clamp(18px, 3vw, 36px); }
.lineup + .shot-note { margin-top: 28px; }
.feature-media.phone-media { flex-direction: column; align-items: center; }
.feature.no-media { grid-template-columns: 1fr; }
.feature.no-media .feature-text { max-width: 60ch; }
.feature-media.phone-media { display: flex; justify-content: center; }
.feature-media.phone-media img { width: min(340px, 78%); }
@media (min-width: 860px) {
  .feature { grid-template-columns: 5fr 7fr; gap: 56px; }
  .feature.flip { grid-template-columns: 7fr 5fr; }
  .feature.flip .feature-text { order: 2; } .feature.flip .feature-media { order: 1; }
}

/* list of small facts, uppercase table labels like the app */
.facts { display: grid; gap: 0; border-top: 1px solid var(--line); }
.facts > div { display: grid; grid-template-columns: 1fr; gap: 6px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.facts .label { margin: 0; }
.facts p { margin: 0; color: var(--fg); }
@media (min-width: 720px) { .facts > div { grid-template-columns: 220px 1fr; gap: 24px; } }

/* status band */
.band { border-block: 1px solid var(--line); padding: 20px 0; }
.band-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; color: var(--dim); font-size: 14px; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 20px 0; font-weight: 600; color: #fff; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--dim2); font-weight: 400; font-size: 22px; transition: transform .4s var(--ease); flex-shrink: 0; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-body { padding: 0 0 20px; color: var(--dim); max-width: 64ch; }

/* forms */
.form { display: grid; gap: 18px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--dim); margin-bottom: 8px; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line-strong);
  background: var(--panel); color: var(--fg); font: inherit; font-size: 16px; transition: border-color .35s var(--ease);
}
.field input:focus { border-color: rgba(217,164,65,.7); outline: none; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; inset: 0; opacity: 0; }
.choice span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--dim); font-weight: 600; font-size: 14px; cursor: pointer; transition: all .35s var(--ease); }
.choice input:checked + span { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.choice input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 3px; }
.consent { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; font-size: 14px; color: var(--dim); }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--gold); }
.form-note { font-size: 13px; color: var(--dim2); }
.form-ok { display: none; padding: 28px; }
.form.is-done { display: none; }
.form-ok.is-done { display: block; }

/* footer */
.footer { margin-top: var(--sp-3); border-top: 1px solid var(--line); padding: 40px 0 calc(32px + env(safe-area-inset-bottom)); color: var(--dim); font-size: 14px; }
.disclaimer { color: var(--dim); font-size: 13px; line-height: 1.6; padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); margin-bottom: 36px; }
.footer-grid { display: grid; gap: 28px; }
.footer-grid nav { display: grid; gap: 10px; align-content: start; }
.footer-grid nav a { color: var(--dim); }
.footer-grid nav a:hover { color: #fff; }
.footer-grid .label { margin-bottom: 4px; }
.footer-note { margin: 14px 0 0; max-width: 36ch; }
.footer-fine { margin: 32px 0 0; color: var(--dim2); font-size: 12.5px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }

/* legal pages */
.prose { color: var(--dim); }
.prose h2 { font-size: var(--step-1); color: #fff; margin: 2em 0 .6em; }
.prose h3 { font-size: 1.05rem; color: #fff; margin: 1.6em 0 .5em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin: .4em 0; }
.prose strong { color: var(--fg); }
.updated { color: var(--dim2); font-size: 13px; }

/* video */
.video-frame { position: relative; border-radius: 22px; overflow: hidden; background: var(--bg-deep); border: 1px solid var(--line); aspect-ratio: 9 / 16; max-width: 360px; margin-inline: auto; }
.video-frame video { width: 100%; height: 100%; object-fit: cover; }

/* CTA block */
.cta-block { text-align: center; padding: clamp(3rem, 2rem + 4vw, 5rem) 24px; }
.cta-block h2 { max-width: 16ch; margin-inline: auto; }
.cta-block .lead { max-width: 44ch; margin: 16px auto 28px; }

/* ---------- scroll story: pinned monitor, screens change with scroll ---------- */
.story { position: relative; height: 320vh; }
.story-pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; overflow: hidden; }
.story-grid { display: grid; grid-template-columns: 3.4fr 8.6fr; gap: 40px; align-items: center; width: min(1320px, 100% - 2 * var(--gutter)); }
.story-device { -webkit-box-reflect: below 2px linear-gradient(transparent 84%, rgba(255, 255, 255, .12)); }
.story-steps { list-style: none; margin: 0; padding: 0; display: grid; }
/* out fast, in after: the two captions never overlap */
.story-steps li { grid-area: 1 / 1; opacity: 0; transform: translateY(-10px); transition: opacity .28s ease, transform .28s ease; pointer-events: none; }
.story-steps li.is-on { opacity: 1; transform: none; pointer-events: auto; transition: opacity .7s var(--ease) .28s, transform .7s var(--ease) .28s; }
.story-steps h2 { font-size: var(--step-3); margin-bottom: 16px; }
.story-steps p { color: var(--dim); font-size: var(--step-1); line-height: 1.5; max-width: 34ch; }
.story-dots { display: flex; gap: 8px; margin: 28px 0 18px; }
.story-dots span { width: 22px; height: 3px; border-radius: 3px; background: var(--line-strong); transition: background .5s var(--ease), width .5s var(--ease); }
.story-dots span.is-on { background: var(--gold); width: 38px; }
.story-stage { perspective: 1400px; }
.story-device { position: relative; transform: scale(calc(.9 + var(--sp, 0) * .1)); transform-origin: 50% 60%; transition: transform .1s linear; }
.story-screen { position: absolute; left: 1.912%; top: 1.84%; width: 97.004%; height: 75.811%; overflow: hidden; border-radius: 3px; background: #08111f; }
.story-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; opacity: 0; transform: scale(1.02); transition: opacity .8s var(--ease), transform 1.2s var(--ease); }
/* each screen opens on the whole app, then glides into the panel its caption is about */
.story-screen img { transform-origin: var(--ox, 50%) var(--oy, 50%); transition: opacity .8s var(--ease), transform 1.6s var(--ease) .35s; }
.story-screen img.is-on { opacity: 1; transform: scale(var(--z, 1)); }
.story-screen::after { /* glass reflection */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, rgba(255,255,255,.07) 0%, rgba(255,255,255,0) 38%);
}
@media (max-width: 899px) {
  .story { height: auto; padding: var(--sp-3) 0 0; }
  .story-pin { position: relative; height: auto; display: block; }
  .story-grid { grid-template-columns: 1fr; gap: 20px; }
  .story-stage { order: -1; }
  .story-device { transform: none; }
  .story-dots { margin: 16px 0 12px; }
}

/* count-up and timeline that draws itself */
.timeline-draw { position: relative; }
.timeline-draw::before { content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 100%; background: var(--gold); transform-origin: left; transform: scaleX(0); transition: transform 1.6s var(--ease) .3s; }
.timeline-draw.in::before { transform: scaleX(1); }
.timeline-draw li { opacity: 0; transform: translateX(-8px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.timeline-draw.in li { opacity: 1; transform: none; }
.timeline-draw.in li:nth-child(2) { transition-delay: .35s; } .timeline-draw.in li:nth-child(3) { transition-delay: .7s; } .timeline-draw.in li:nth-child(4) { transition-delay: 1.05s; }
.timeline-draw li.is-moment { position: relative; }
.timeline-draw li.is-moment::before { content: ""; position: absolute; left: -14px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(217,164,65,.6); }
.timeline-draw.in li.is-moment::before { animation: ping 2.4s var(--ease) 1.2s 2; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(217,164,65,.55); } 100% { box-shadow: 0 0 0 14px rgba(217,164,65,0); } }

/* cards: a soft light that follows the pointer */
.card { position: relative; overflow: hidden; isolation: isolate; }
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .5s var(--ease);
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(90, 169, 255, .10), transparent 60%);
}
.card:hover::before { opacity: 1; }
a.card:hover { transform: translateY(-3px); }

/* nav steps aside when scrolling down, returns on the way up */
.nav { transition: transform .5s var(--ease), background-color .4s var(--ease); }
.nav.is-hidden { transform: translateY(-100%); }

/* page to page: a quiet cross-fade (browsers that support cross-document view transitions) */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .45s; animation-timing-function: cubic-bezier(.65, 0, .35, 1); }
.nav { view-transition-name: nav; }

/* device lineup (terminal page) */
.lineup { display: grid; grid-template-columns: 2.2fr 1.1fr .62fr; align-items: end; gap: clamp(20px, 3vw, 48px); margin-top: 24px; }
.lineup figure { margin: 0; text-align: center; }
.lineup figcaption { margin-top: 64px; font-size: 13px; color: var(--dim2); letter-spacing: .08em; text-transform: uppercase; font-weight: 700; }
@media (max-width: 719px) { .lineup { grid-template-columns: 1fr; gap: 24px; } .lineup figure:nth-child(3) img { width: 60%; margin-inline: auto; } }

/* motion off */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .mask > span, .push, .brand::after, .timeline-draw li, .timeline-draw::before { animation: none !important; transition: none !important; opacity: 1 !important; transform: none !important; }
  .story { height: auto; } .story-pin { position: relative; height: auto; padding: var(--sp-2) 0; }
  .story-steps li { position: static; opacity: 1; transform: none; margin-bottom: 24px; } .story-steps { display: block; }
  .story-screen img, .story-steps li { transition: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* phone wrapper so an annotation can sit on the exact card (hero) */
.hero-visual .phone-wrap { position: absolute; right: -2%; bottom: -3%; width: 27%; max-width: 330px; transform: translateY(calc(var(--sy, 0) * -.12px)); }
.hero-visual .phone-wrap img { width: 100%; }
.spot {
  position: absolute; border-radius: 12px; pointer-events: none;
  box-shadow: 0 0 0 2px var(--gold), 0 0 24px 4px rgba(217, 164, 65, .35);
  animation: spot 2.6s var(--ease) 1.4s infinite;
}
.spot-tag {
  position: absolute; right: -6px; top: -26px; white-space: nowrap;
  font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--gold-ink); background: var(--gold);
  padding: 3px 8px; border-radius: 999px;
}
@keyframes spot { 0%, 100% { box-shadow: 0 0 0 2px var(--gold), 0 0 18px 2px rgba(217,164,65,.25); } 50% { box-shadow: 0 0 0 2px var(--gold), 0 0 30px 8px rgba(217,164,65,.45); } }
@media (max-width: 899px) { .hero-visual .phone-wrap { display: none; } }
@media (prefers-reduced-motion: reduce) { .spot { animation: none; } }
