/* ==========================================================
   sterin.dev — main stylesheet
   Direction: Apple product-page black with a three-flag story.
   India (saffron, white, green) → Singapore (red, white) →
   United Kingdom (navy, white, red). Saffron is the working accent,
   red is the emphasis, navy is the deep surface. The full flag
   ribbon only appears where it tells the journey.
   ========================================================== */
:root {
  /* canvas */
  --bg: #000000;
  --bg-2: #05060a;
  --surface: #0b0d12;
  --surface-2: #12151d;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .16);
  /* ink */
  --text: #f5f6f8;
  --muted: #80869a;
  --muted-2: #adb3c2;
  /* brand */
  --accent: #ff9f43;          /* text-level green on black */
  --accent-strong: #ef3340;
  --accent-soft: #ffd3a1;
  --accent-wash: rgba(255, 153, 51, .12);
  --accent-line: rgba(255, 153, 51, .3);
  --deep: #050b1f;            /* contact band, game, screens */
  --deep-2: #0a1530;
  --on-deep-muted: #9aa6c4;
  /* flags */
  --in-saffron: #ff9933;
  --in-green: #138808;
  --in-chakra: #000080;
  --sg-red: #ef3340;
  --uk-navy: #012169;
  --uk-red: #c8102e;
  --ribbon: linear-gradient(90deg,
    #ff9933 0 11.1%, #ffffff 11.1% 22.2%, #138808 22.2% 33.3%,
    #ef3340 33.3% 50%, #ffffff 50% 66.6%,
    #012169 66.6% 77.7%, #ffffff 77.7% 88.8%, #c8102e 88.8% 100%);
  /* semantic (game) */
  --gold: #f5b83d;
  --red: #ef4444;
  --grad: linear-gradient(95deg, #ff9933 0%, #ffd9b0 34%, #ffffff 52%, #ff8a93 76%, #ef3340 100%);
  --glow: 0 30px 90px -30px rgba(64, 98, 220, .35);
  --font: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Inter", "Helvetica Neue", Arial, sans-serif;
  --mono: "SF Mono", ui-monospace, "JetBrains Mono", Menlo, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --radius: 28px;
  --gutter: clamp(16px, 4vw, 48px);
  --nav-h: 56px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--nav-h); background: var(--bg); }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
::selection { background: rgba(255, 153, 51, .3); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { text-wrap: balance; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 1000; background: #fff; color: #000; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

.container { width: min(1200px, 100%); margin: 0 auto; padding: 0 var(--gutter); }
.center { text-align: center; }
.section { position: relative; padding: clamp(96px, 14vw, 180px) 0; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 18px; height: 1.5px; background: currentColor; border-radius: 2px; }
.center .eyebrow::after { content: ""; width: 18px; height: 1.5px; background: currentColor; border-radius: 2px; }
.section-head { margin-bottom: clamp(48px, 7vw, 88px); }
.section-title {
  font-size: clamp(40px, 6.4vw, 88px);
  line-height: 1.02;
  letter-spacing: -.04em;
  font-weight: 700;
}
.section-sub {
  color: var(--muted-2);
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.55;
  max-width: 640px;
  margin-top: 24px;
}
.center .section-sub { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 24px; border-radius: 999px;
  font-size: 16px; font-weight: 500; letter-spacing: -.01em; white-space: nowrap;
  transition: transform .35s var(--ease), background .25s, color .25s, border-color .25s, box-shadow .35s;
  will-change: transform;
}
.btn-primary { background: #fff; color: #000; }
.btn-primary:hover { background: #fff3e6; box-shadow: 0 10px 40px -8px rgba(255, 153, 51, .55); }
.btn-ghost { border: 1px solid var(--line-2); color: var(--text); background: rgba(255, 255, 255, .03); }
.btn-ghost:hover { border-color: var(--accent); color: #fff; background: var(--accent-wash); }
.btn-sm { height: 34px; padding: 0 16px; font-size: 14px; }
.btn-lg { height: 58px; padding: 0 32px; font-size: 18px; }
.btn:active { transform: scale(.97); }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 600; }
.link-arrow span { transition: transform .3s var(--ease); }
.link-arrow:hover span, .tool:hover .link-arrow span { transform: translate(3px, -1px); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  font-size: 13px; color: var(--muted-2); font-weight: 500;
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .03);
}

.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); display: inline-block; animation: ping 2.2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(255, 153, 51, .55); } 70%, 100% { box-shadow: 0 0 0 10px rgba(255, 153, 51, 0); } }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(0, 0, 0, .55);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color .4s, background .4s;
}
.nav.scrolled { border-bottom-color: var(--line); background: rgba(6, 7, 12, .75); }
.nav-inner { height: 100%; width: min(1200px, 100%); margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -.01em; font-size: 16px; }
.nav-logo svg { width: 26px; height: 26px; }
.nav-links { display: flex; gap: 32px; font-size: 14px; color: var(--muted-2); }
.nav-links a { transition: color .2s; position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transition: transform .35s var(--ease); }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active::after { transform: scaleX(1); }
.nav-progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--ribbon); transform-origin: 0 50%; transform: scaleX(0); opacity: .9; }
@media (max-width: 760px) { .nav-links { display: none; } }

/* ---------- Story (hero + pinned) ---------- */
.story { position: relative; height: 520vh; }
.story-sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  background: radial-gradient(55% 50% at 50% 55%, rgba(64, 98, 220, .10), transparent 70%), var(--bg);
}
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.story-vignette { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 85% at 50% 50%, transparent 55%, rgba(0, 0, 0, .8) 100%); }

.hero-copy {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: var(--nav-h) var(--gutter) 40px;
  will-change: transform, opacity, filter;
}
.status-pill {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 500; color: var(--accent-soft);
  padding: 8px 16px 8px 14px; border-radius: 999px;
  border: 1px solid var(--accent-line); background: rgba(64, 98, 220, .08);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  margin-bottom: 28px;
}
.hero-hello { font-size: clamp(19px, 2vw, 24px); color: var(--muted-2); font-weight: 500; margin-bottom: 14px; letter-spacing: -.01em; }
.hero-title { font-size: clamp(44px, 8.6vw, 128px); line-height: .98; letter-spacing: -.05em; font-weight: 700; }
.hero-title .line { display: block; padding-bottom: .06em; }
.hero-sub { margin-top: 28px; font-size: clamp(17px, 1.7vw, 22px); color: var(--muted-2); max-width: 620px; line-height: 1.5; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 36px; }

/* intro (on load) */
.js .intro { opacity: 0; transform: translateY(28px); filter: blur(10px); }
.loaded .intro { animation: intro 1.2s var(--ease) forwards; animation-delay: calc(var(--d, 0) * 110ms + 150ms); }
@keyframes intro { to { opacity: 1; transform: none; filter: blur(0); } }

.chapter {
  position: absolute; z-index: 2;
  left: max(var(--gutter), calc((100vw - 1200px) / 2 + var(--gutter)));
  top: 50%;
  width: min(480px, 42vw);
  transform: translateY(-50%);
  opacity: 0; visibility: hidden;
  --a: 0;
}
.chapter > * { transform: translateY(calc((1 - var(--a)) * 36px)); }
.chapter > :nth-child(2) { transform: translateY(calc((1 - var(--a)) * 54px)); }
.chapter > :nth-child(3) { transform: translateY(calc((1 - var(--a)) * 72px)); }
.chapter > :nth-child(4) { transform: translateY(calc((1 - var(--a)) * 90px)); }
.chapter-kicker { font-family: var(--mono); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; display: flex; gap: 12px; align-items: center; }
.chapter-kicker span { color: var(--accent); font-weight: 500; }
.chapter-title { font-size: clamp(64px, 9vw, 140px); font-weight: 700; letter-spacing: -.055em; line-height: .92; margin-bottom: 26px; }
.chapter-text { font-size: clamp(17px, 1.5vw, 21px); color: var(--muted-2); line-height: 1.55; margin-bottom: 26px; }

.story-steps {
  position: absolute; z-index: 3; left: 50%; bottom: 32px; transform: translateX(-50%);
  display: flex; gap: 4px; padding: 5px; border-radius: 999px;
  background: rgba(18, 21, 30, .65); border: 1px solid var(--line);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  opacity: 0; transition: opacity .5s;
}
.story-steps.show { opacity: 1; }
.story-steps span { font-size: 12px; font-weight: 500; color: var(--muted); padding: 6px 14px; border-radius: 999px; transition: background .4s, color .4s; }
.story-steps span.on { background: #fff; color: #000; }

.scroll-cue { position: absolute; z-index: 3; left: 50%; bottom: 28px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); transition: opacity .4s; }
.scroll-cue span { width: 22px; height: 34px; border-radius: 12px; border: 1.5px solid var(--line-2); position: relative; }
.scroll-cue span::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--accent); animation: wheel 1.8s var(--ease) infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(-3px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(10px); } }

@media (max-width: 760px) {
  .chapter { left: var(--gutter); right: var(--gutter); width: auto; top: auto; bottom: 88px; transform: none; }
  .chapter-title { font-size: clamp(56px, 17vw, 84px); margin-bottom: 16px; }
  .chapter-text { font-size: 16px; margin-bottom: 18px; }
  .chapter .chips li { font-size: 12px; padding: 5px 10px; }
  .story-steps { bottom: 24px; }
  .hero-sub { font-size: 16px; }
}

/* ---------- Reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(40px); filter: blur(6px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease), filter 1.1s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.js [data-reveal].in { opacity: 1; transform: none; filter: none; }

/* ---------- About ---------- */
.about-lede {
  font-size: clamp(28px, 4.2vw, 56px);
  line-height: 1.16; letter-spacing: -.035em; font-weight: 600;
  max-width: 1080px;
}
.about-lede .w { opacity: .16; transition: opacity .15s linear; }
.about-lede .hl { background: linear-gradient(95deg, #ff9933, #ffc078 55%, #ff8a93); -webkit-background-clip: text; background-clip: text; color: transparent; font-style: normal; }
.about-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(16px, 2vw, 24px); margin-top: clamp(64px, 9vw, 120px); align-items: stretch; }
.portrait { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); aspect-ratio: 4 / 4.2; }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transform: scale(1.08); transition: transform 1.6s var(--ease); }
.portrait.in img { transform: scale(1); }
.portrait { cursor: pointer; isolation: isolate; }
.portrait .p-art { animation: glitch 6s steps(1) infinite; }
.portrait .p-real { position: absolute; inset: 0; clip-path: inset(0 0 100% 0); transition: clip-path .9s var(--ease), transform 1.6s var(--ease); }
.portrait .p-scan { position: absolute; left: 0; right: 0; top: 0; height: 2px; z-index: 2; background: var(--accent); box-shadow: 0 0 18px 4px rgba(255, 153, 51, .7); opacity: 0; transition: top .9s var(--ease), opacity .3s; pointer-events: none; }
.portrait .p-hint { position: absolute; right: 16px; top: 16px; z-index: 3; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-soft); padding: 6px 10px; border-radius: 999px; border: 1px solid var(--accent-line); background: rgba(0, 0, 0, .55); transition: opacity .4s; }
.portrait figcaption { z-index: 3; }
.portrait:hover .p-real, .portrait.decoded .p-real, .portrait:focus-visible .p-real { clip-path: inset(0); }
.portrait:hover .p-scan, .portrait.decoded .p-scan, .portrait:focus-visible .p-scan { top: 100%; opacity: 1; }
.portrait:hover .p-hint, .portrait.decoded .p-hint { opacity: 0; }
@keyframes glitch { 0%, 91%, 100% { transform: none; filter: none; } 92% { transform: translateX(-6px) skewX(4deg); filter: hue-rotate(40deg); } 93% { transform: translateX(5px); } 94% { transform: none; filter: saturate(1.6); } 95% { transform: translateX(-3px) skewX(-3deg); } }
.portrait figcaption { position: absolute; left: 16px; bottom: 16px; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; padding: 8px 14px; border-radius: 999px; background: rgba(0, 0, 0, .6); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; justify-content: space-between; min-height: 180px; transition: transform .5s var(--ease), border-color .5s var(--ease); }
.stat:hover { transform: translateY(-3px); border-color: var(--accent-line); }
.stat:first-child { background: linear-gradient(150deg, #0e2163, #050b1f 70%); border-color: rgba(74, 108, 247, .35); position: relative; overflow: hidden; }
.stat:first-child::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--ribbon); opacity: .85; }
.stat b { font-size: clamp(48px, 6vw, 80px); font-weight: 700; letter-spacing: -.05em; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.stat > span { color: var(--muted-2); font-size: 15px; margin-top: 20px; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } .portrait { aspect-ratio: 4 / 3.4; } .stat { min-height: 150px; } }

/* ---------- Work (stacked cards) ---------- */
.stack { display: flex; flex-direction: column; gap: 32px; }
.pcard { position: relative; }
.pcard-inner {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(24px, 4vw, 64px); align-items: center;
  padding: clamp(28px, 4vw, 64px);
  border-radius: 36px; border: 1px solid var(--line);
  background: linear-gradient(180deg, #0d0f15, #07080c);
  transform-origin: 50% 0%;
  will-change: transform, filter;
}
.pcard-inner::after { content: ""; position: absolute; right: -10%; top: -20%; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(64, 98, 220, .14), transparent); pointer-events: none; }
.pcard-copy { position: relative; z-index: 1; min-width: 0; }
.pcard-index { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.pcard h3 { font-size: clamp(40px, 5vw, 72px); letter-spacing: -.05em; line-height: 1; font-weight: 700; margin-bottom: 20px; }
.pcard-copy > p:not(.pcard-index) { color: var(--muted-2); font-size: clamp(16px, 1.3vw, 19px); line-height: 1.6; margin-bottom: 24px; max-width: 520px; }
.pcard .chips { margin-bottom: 24px; }
.pcard-points li { position: relative; padding-left: 26px; color: var(--muted-2); font-size: 15px; margin-top: 10px; }
.pcard-points li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 17px; height: 17px; border-radius: 50%; background: var(--accent-wash); color: var(--accent); font-size: 10px; font-weight: 700; display: grid; place-items: center; }
.pcard-visual { position: relative; z-index: 1; display: flex; justify-content: center; align-items: center; min-height: 420px; }

@media (min-width: 961px) {
  .pcard { position: sticky; top: calc(var(--nav-h) + 28px + var(--i) * 18px); }
  .pcard-inner { min-height: min(640px, calc(100vh - var(--nav-h) - 96px)); }
}
@media (max-width: 960px) {
  .pcard-inner { grid-template-columns: 1fr; border-radius: 28px; }
  .pcard-visual { min-height: 360px; order: -1; }
}

/* spotlight hover */
.spotlight { --mx: 50%; --my: 50%; }
.spotlight::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s; z-index: 0;
  background: radial-gradient(600px circle at var(--mx) var(--my), rgba(255, 153, 51, .08), transparent 45%);
}
.spotlight:hover::before { opacity: 1; }

/* viewer (CloudExpo) */
.viewer { width: 100%; max-width: 560px; border-radius: 20px; overflow: hidden; background: var(--deep); border: 1px solid var(--line-2); box-shadow: var(--glow); position: relative; }
.viewer-bar { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--deep-2); }
.viewer-bar i { width: 11px; height: 11px; border-radius: 50%; }
.viewer-bar i:nth-child(1) { background: #ff5f57; } .viewer-bar i:nth-child(2) { background: #febc2e; } .viewer-bar i:nth-child(3) { background: #28c840; }
.viewer-bar span { margin-left: 12px; font-size: 12px; color: var(--on-deep-muted); font-family: var(--mono); }
#cloud-canvas { display: block; width: 100%; aspect-ratio: 4 / 3; }
.viewer-hud { position: absolute; left: 14px; bottom: 14px; display: flex; align-items: center; gap: 8px; font-size: 11px; font-family: var(--mono); color: var(--text); padding: 6px 10px; border-radius: 8px; background: rgba(0, 0, 0, .6); }
.rec { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .2; } }

/* phones */
.phone {
  position: relative; width: 250px; aspect-ratio: 9 / 19; border-radius: 44px; padding: 10px;
  background: linear-gradient(145deg, #2a2d36, #0b0e0c);
  box-shadow: 0 0 0 1.5px #3a3e4a inset, 0 50px 120px -20px rgba(64, 98, 220, .3), 0 30px 60px rgba(0, 0, 0, .6);
  transform: rotate(-4deg);
  transition: transform 1s var(--ease);
}
.pcard:hover .phone { transform: rotate(0deg) translateY(-6px); }
.phone-island { position: absolute; z-index: 2; top: 20px; left: 50%; width: 82px; height: 24px; margin-left: -41px; border-radius: 14px; background: #000; }
.phone-screen { position: relative; height: 100%; border-radius: 35px; overflow: hidden; padding: 56px 18px 20px; display: flex; flex-direction: column; }
.bible { background: linear-gradient(180deg, #fffdf8, #f3ede0); color: #2b2216; }
.b-ref { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.b-tabs { display: flex; flex-wrap: wrap; gap: 5px; margin: 12px 0 16px; }
.b-tabs span { font-size: 10px; padding: 4px 8px; border-radius: 99px; border: 1px solid rgba(43, 34, 22, .15); color: rgba(43, 34, 22, .6); }
.b-tabs span.on { background: #c8102e; color: #fff; border-color: #c8102e; }
.b-verse { font-family: Georgia, "Times New Roman", serif; font-size: 14px; line-height: 1.55; }
.b-lines { margin-top: 16px; display: grid; gap: 8px; }
.b-lines i { height: 6px; border-radius: 3px; background: rgba(43, 34, 22, .08); width: 100%; }
.b-compare { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-radius: 14px; background: #fff1e0; color: #7a3b00; font-size: 12px; font-weight: 500; }
.player { background: radial-gradient(120% 60% at 50% 0%, #1a2a6c, #050b1f 70%); align-items: center; text-align: center; color: #fff; }
.art { width: 100%; aspect-ratio: 1; border-radius: 22px; background: conic-gradient(from 200deg, #ff9933, #059669, #065f46, #ffd3a1, #ff9933); display: grid; place-items: center; box-shadow: 0 20px 50px rgba(64, 98, 220, .35); }
.disc { width: 34%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #050b1f 22%, rgba(255, 255, 255, .25) 23%, rgba(255, 255, 255, .05) 60%); animation: spin 6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.p-title { margin-top: 18px; font-weight: 700; font-size: 17px; }
.p-artist { font-size: 12px; color: var(--on-deep-muted); }
.eq { display: flex; gap: 4px; align-items: flex-end; height: 44px; margin: 16px 0 12px; }
.eq i { width: 6px; border-radius: 3px; background: linear-gradient(180deg, #ffffff, #ff9f43); height: 30%; animation: eq 1.1s ease-in-out infinite alternate; }
.eq i:nth-child(2n) { animation-duration: .8s; } .eq i:nth-child(3n) { animation-duration: 1.4s; } .eq i:nth-child(4n) { animation-delay: -.4s; } .eq i:nth-child(5n) { animation-duration: .65s; }
@keyframes eq { from { height: 15%; } to { height: 100%; } }
.p-bar { width: 100%; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.p-bar span { display: block; height: 100%; width: 38%; background: #fff; border-radius: 2px; }
.p-ctrl { display: flex; gap: 28px; align-items: center; margin-top: auto; font-size: 18px; color: #fff; }
.p-ctrl .play { width: 48px; height: 48px; border-radius: 50%; background: #fff; color: #050b1f; display: grid; place-items: center; font-size: 14px; }

/* screenshot phones + VR scene */
.pcard-points + .btn, .pcard-points + .play-badge, .pcard-points + .pcard-links { margin-top: 28px; }
.pcard-more { display: flex; width: fit-content; margin-bottom: 18px; font-size: 15px; }
.pcard-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.phone-screen.shot { padding: 0; background: #000; }
.phone-screen.shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.vr-scene { display: block; width: 100%; aspect-ratio: 4 / 3; }
.vr-bat { transform-box: view-box; transform-origin: 0 0; animation: vr-swing 2.6s var(--ease) infinite; }
@keyframes vr-swing { 0%, 70% { rotate: 0deg; } 80% { rotate: -55deg; } 100% { rotate: 0deg; } }
@media (prefers-reduced-motion: reduce) { .vr-bat { animation: none; } }
.sv-scene { display: block; width: 100%; aspect-ratio: 4 / 3; }
.sv-pin { transform-box: fill-box; transform-origin: center; animation: sv-pulse 2.4s ease-in-out infinite; }
@keyframes sv-pulse { 0%, 100% { opacity: .55; transform: scale(.92); } 50% { opacity: 1; transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .sv-pin { animation: none; } }

.play-badge { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 18px 0 14px; border-radius: 12px; background: #fff; color: #000; font-size: 14px; font-weight: 500; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.play-badge:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -8px rgba(255, 153, 51, .55); }
.play-badge svg { width: 20px; height: 20px; }
.play-badge small { display: block; font-size: 10px; opacity: .6; letter-spacing: .04em; text-transform: uppercase; line-height: 1.1; }
.play-badge b { display: block; font-weight: 600; line-height: 1.2; }

/* ---------- Marquee ---------- */
.stack-band { padding: 40px 0 0; display: grid; gap: 14px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee { display: flex; overflow: hidden; }
.marquee-track { display: flex; gap: 14px; padding-right: 14px; flex-shrink: 0; animation: marquee 40s linear infinite; }
.marquee[data-dir="right"] .marquee-track { animation-direction: reverse; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-size: clamp(22px, 3vw, 38px); font-weight: 600; letter-spacing: -.035em; padding: 14px 30px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-2); color: var(--muted-2); white-space: nowrap; transition: color .3s, border-color .3s, background .3s; }
.marquee-track span:hover { color: #fff; border-color: var(--accent-line); background: var(--accent-wash); }
@keyframes marquee { to { transform: translateX(-100%); } }

/* ---------- Journey ---------- */
.timeline { position: relative; display: grid; border-top: 1px solid var(--line); }
.t-item { display: grid; grid-template-columns: 220px 1fr; gap: 32px; padding: 40px 0; border-bottom: 1px solid var(--line); }
.t-when { font-family: var(--mono); font-size: 13px; color: var(--muted); letter-spacing: .06em; padding-top: 10px; }
.t-body { min-width: 0; }
.t-body h3 { font-size: clamp(26px, 3vw, 40px); letter-spacing: -.035em; font-weight: 600; line-height: 1.1; }
.t-org { color: var(--accent); margin: 8px 0 14px; font-weight: 600; }
.t-body > p:last-child { color: var(--muted-2); max-width: 640px; }
.t-roles { display: grid; margin: 4px 0 18px; padding-left: 26px; position: relative; }
.t-roles::before { content: ""; position: absolute; left: 5px; top: 18px; bottom: 18px; width: 2px; border-radius: 2px; background: linear-gradient(180deg, var(--accent), rgba(255, 153, 51, .15)); }
.t-roles li { position: relative; padding: 6px 0; }
.t-roles li::before { content: ""; position: absolute; left: -26px; top: 50%; margin-top: -6px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); }
.t-roles li:first-child::before { background: var(--accent); box-shadow: 0 0 0 5px rgba(255, 153, 51, .18); }
.t-roles b { font-size: clamp(24px, 2.8vw, 38px); font-weight: 600; letter-spacing: -.035em; line-height: 1.15; }
.t-roles li + li b { font-size: clamp(19px, 1.9vw, 24px); color: var(--muted-2); font-weight: 500; }
.t-roles span { display: inline-block; margin-left: 12px; font-size: 12px; font-weight: 600; color: var(--accent-soft); background: var(--accent-wash); border: 1px solid var(--accent-line); padding: 3px 10px; border-radius: 999px; vertical-align: middle; }
@media (max-width: 700px) { .t-item { grid-template-columns: 1fr; gap: 10px; padding: 32px 0; } .t-when { padding-top: 0; } }

/* ---------- Lab / Game ---------- */
.game {
  position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: 78vh;
  border-radius: 36px; overflow: hidden; border: 1px solid var(--line-2);
  background: radial-gradient(120% 80% at 50% 0%, #0d1e52, var(--deep) 60%);
  box-shadow: 0 60px 160px -40px rgba(64, 98, 220, .28);
  touch-action: manipulation; user-select: none; -webkit-user-select: none;
}
@media (max-width: 760px) { .game { aspect-ratio: 4 / 5; border-radius: 28px; max-height: 80vh; } }
#game-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: crosshair; }
.game-ui { position: absolute; inset: 0; pointer-events: none; }
.g-hud { position: absolute; top: 20px; left: 24px; right: 24px; display: flex; justify-content: space-between; align-items: flex-start; opacity: 0; transition: opacity .4s; }
.game.playing .g-hud { opacity: 1; }
.g-score span { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--on-deep-muted); }
.g-score b { font-size: 44px; font-weight: 700; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.g-score em { display: block; font-style: normal; font-size: 13px; color: var(--gold); min-height: 18px; margin-top: 4px; }
.g-lives { display: flex; gap: 8px; padding-top: 6px; }
.g-lives i { width: 12px; height: 12px; border-radius: 50%; background: var(--sg-red); box-shadow: 0 0 12px var(--sg-red); transition: .3s; }
.g-lives i.off { background: transparent; box-shadow: none; border: 1.5px solid var(--line-2); }
.g-panel {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(440px, calc(100% - 32px)); text-align: center; pointer-events: auto;
  padding: 32px 28px 24px; border-radius: 28px;
  background: rgba(6, 10, 24, .62); border: 1px solid var(--line-2);
  backdrop-filter: blur(24px) saturate(160%); -webkit-backdrop-filter: blur(24px) saturate(160%);
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.game.playing .g-panel { opacity: 0; transform: translate(-50%, -46%) scale(.96); pointer-events: none; }
.g-kicker { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.g-panel h3 { font-size: 48px; font-weight: 700; letter-spacing: -.045em; margin: 6px 0 10px; }
.g-panel p { color: var(--muted-2); font-size: 15px; }
.g-panel .gold { color: #4ade80; } .g-panel .red { color: var(--red); }
.g-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 22px 0 14px; }
.g-actions .btn { height: 44px; }
.g-note { font-size: 13px !important; color: var(--muted) !important; }
.g-mute { position: absolute; right: 18px; bottom: 16px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(0, 0, 0, .4); pointer-events: auto; font-size: 15px; color: var(--muted-2); }
.g-mute.off { text-decoration: line-through; opacity: .6; }
.g-flash { position: absolute; inset: 0; pointer-events: none; opacity: 0; box-shadow: inset 0 0 120px 20px rgba(239, 68, 68, .6); transition: opacity .5s; }
.g-flash.on { opacity: 1; transition: none; }
.game-fallback { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; color: var(--muted-2); }
.game-ui.xr-overlay .g-hud { opacity: 1; top: max(20px, env(safe-area-inset-top)); }
.game-ui.xr-overlay .g-panel { display: none; }

.tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.tool { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 10px; padding: 32px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); transition: transform .5s var(--ease), border-color .3s; }
.tool:hover { transform: translateY(-4px); border-color: var(--accent-line); }
.tool > * { position: relative; z-index: 1; }
.tool-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; background: var(--accent-wash); color: var(--accent); margin-bottom: 8px; }
.tool h3 { font-size: 22px; letter-spacing: -.025em; font-weight: 600; }
.tool p { color: var(--muted-2); font-size: 15px; flex: 1; }
@media (max-width: 860px) { .tools { grid-template-columns: 1fr; } }

/* ---------- Contact — the one deep-green band ---------- */
.contact { overflow: hidden; padding-bottom: clamp(120px, 16vw, 200px); background: var(--deep); border-radius: clamp(28px, 4vw, 56px) clamp(28px, 4vw, 56px) 0 0; }
.contact .section-sub { color: var(--on-deep-muted); }
.contact-glow { position: absolute; left: 50%; top: 60%; width: min(1100px, 140vw); aspect-ratio: 2 / 1; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(64, 98, 220, .3), rgba(239, 51, 64, .08) 55%, transparent); filter: blur(30px); pointer-events: none; }
.contact-title { font-size: clamp(48px, 8.5vw, 128px); font-weight: 700; letter-spacing: -.055em; line-height: .98; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 44px; }
.socials { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: center; margin-top: 40px; color: var(--on-deep-muted); }
.socials a:hover { color: #fff; }

/* ---------- Footer ---------- */
.footer { background: var(--deep); color: var(--on-deep-muted); border-top: 1px solid var(--line); padding: 28px 0; font-size: 13px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.footer-nav a:hover { color: #fff; }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
#clock { font-variant-numeric: tabular-nums; }
@media (max-width: 600px) { .footer-mid { display: none; } }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 200; transform: translate(-50%, 20px); opacity: 0; padding: 12px 20px; border-radius: 999px; background: rgba(24, 28, 40, .9); border: 1px solid var(--line-2); color: #fff; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); font-size: 14px; transition: .45s var(--ease); pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .intro, [data-reveal] { opacity: 1 !important; transform: none !important; filter: none !important; }
  .marquee-track { animation: none !important; }
}

/* ---------- Flags (journey) ---------- */
.flag { display: inline-block; width: 22px; height: 15px; border-radius: 3px; overflow: hidden; vertical-align: -2px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .14); flex-shrink: 0; }
.flag svg { display: block; width: 100%; height: 100%; }
.t-when { display: flex; flex-direction: column; gap: 10px; }
.t-place { display: inline-flex; align-items: center; gap: 8px; color: var(--muted-2); }
.route { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 22px; color: var(--muted-2); font-size: 15px; }
.route i { width: 34px; height: 1px; background: linear-gradient(90deg, rgba(255,255,255,.1), rgba(255,255,255,.4)); }
.route span { display: inline-flex; align-items: center; gap: 8px; }
.ribbon-rule { height: 3px; border-radius: 3px; background: var(--ribbon); opacity: .8; width: min(280px, 60%); margin: 28px auto 0; }

/* ---------- App showcases: two phones, real app UIs (polished) ---------- */
.duo { position: relative; width: min(100%, 520px); height: 500px; }
.duo .phone { position: absolute; top: 50%; left: 50%; width: 226px; margin: 0; }
.duo .phone.back { transform: translate(-96%, -50%) rotate(-7deg) scale(.9); opacity: .9; filter: saturate(.9); }
.duo .phone.front { transform: translate(-22%, -47%) rotate(3deg); z-index: 2; }
.pcard:hover .duo .phone.back { transform: translate(-102%, -52%) rotate(-9deg) scale(.9); }
.pcard:hover .duo .phone.front { transform: translate(-18%, -50%) rotate(0deg); }
.duo .phone-screen { padding: 44px 12px 12px; gap: 8px; font-size: 10px; line-height: 1.35; }
.duo .phone-island { top: 17px; width: 64px; height: 19px; margin-left: -32px; }
.duo small { font-size: 8px; }
@media (max-width: 520px) {
  .duo { height: 420px; }
  .duo .phone { width: 196px; }
  .duo .phone.back, .pcard:hover .duo .phone.back { transform: translate(-90%, -50%) rotate(-6deg) scale(.88); }
  .duo .phone.front, .pcard:hover .duo .phone.front { transform: translate(-24%, -48%) rotate(2deg); }
}

/* Bible For All — warm paper, serif scripture, saffron highlight */
.bfa { background: #f6f1e7; color: #2b2118; }
.bfa b, .bfa p { font-weight: 600; }
.bfa small { display: block; color: #8a7a68; font-weight: 400; }
.bfa-head { display: flex; align-items: center; gap: 8px; }
.bfa-head b { font-family: Georgia, "Times New Roman", serif; font-size: 14px; letter-spacing: -.01em; }
.bfa-logo { width: 26px; height: 26px; border-radius: 7px; background: linear-gradient(145deg, #7a5a40, #4a3424); color: #fff; font-size: 7px; font-weight: 800; letter-spacing: .04em; display: grid; place-items: center; }
.bfa-today { border-radius: 12px; padding: 9px 10px; background: linear-gradient(140deg, #fffaf2, #fbe9d2); border: 1px solid #efdcc2; }
.bfa-today small { text-transform: uppercase; letter-spacing: .1em; color: #b0661a; font-weight: 700; }
.bfa-today p { font-family: Georgia, serif; font-weight: 400; font-size: 11px; margin: 3px 0; }
.bfa-today span { font-size: 8px; color: #8a7a68; }
.bfa-sec { font-family: Georgia, serif; font-size: 11px; margin-top: 2px; }
.bfa-books { display: grid; gap: 5px; }
.bfa-books li { display: flex; align-items: center; gap: 8px; background: #fffdf9; border-radius: 10px; padding: 6px 8px; box-shadow: 0 1px 0 rgba(43, 33, 24, .05); }
.bfa-books i { width: 18px; height: 18px; border-radius: 5px; background: #efe6d8; font-style: normal; font-size: 8px; display: grid; place-items: center; color: #6b5a48; }
.bfa-books b { font-size: 10px; }
.bfa-bar { display: flex; align-items: center; justify-content: space-between; }
.bfa-bar > span { width: 22px; height: 22px; border-radius: 50%; background: #ece3d4; display: grid; place-items: center; font-size: 10px; color: #5b4636; }
.bfa-bar div { text-align: center; }
.bfa-bar b { font-family: Georgia, serif; font-size: 13px; }
.bfa-lang { display: flex; padding: 2px; border-radius: 99px; background: #ece3d4; }
.bfa-lang span { flex: 1; text-align: center; font-size: 8px; padding: 4px 0; border-radius: 99px; color: #7a6a58; white-space: nowrap; }
.bfa-lang span.on { background: #fff; color: #2b2118; font-weight: 700; box-shadow: 0 1px 3px rgba(43, 33, 24, .12); }
.bfa-verses { display: grid; gap: 7px; margin-top: 2px; }
.bfa-verses li { display: flex; gap: 7px; }
.bfa-verses i { flex-shrink: 0; width: 16px; height: 16px; border-radius: 5px; background: #efe6d8; font-style: normal; font-size: 8px; display: grid; place-items: center; color: #6b5a48; margin-top: 1px; }
.bfa-verses p { font-family: Georgia, serif; font-weight: 400; font-size: 11.5px; line-height: 1.5; }
.bfa-verses li.hl p { background: linear-gradient(transparent 58%, rgba(255, 153, 51, .35) 58%); }
.bfa-listen { margin-top: auto; display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 14px; background: #2b2118; color: #fff; }
.bfa-listen b { width: 22px; height: 22px; border-radius: 50%; background: #ff9933; color: #2b2118; display: grid; place-items: center; font-size: 8px; }
.bfa-listen div { flex: 1; }
.bfa-listen span { font-size: 8.5px; font-weight: 500; }
.bfa-listen i { display: block; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .2); margin-top: 4px; overflow: hidden; }
.bfa-listen em { display: block; height: 100%; width: 40%; background: #fff; animation: listen 6s linear infinite; }
.bfa-listen small { color: rgba(255, 255, 255, .6); }
@keyframes listen { from { width: 8%; } to { width: 92%; } }
