/* Ulv website. One dark, warm theme (the app's Beast Mode world): black with an ember glow, the app's
   orange, cream text. Layout: hero, a scroll story with a pinned phone, then blocks and tiles, one finale. */

@font-face { font-family: 'Jakarta'; src: url('/fonts/PlusJakartaSans_400Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Jakarta'; src: url('/fonts/PlusJakartaSans_600SemiBold.ttf') format('truetype'); font-weight: 500 700; font-display: swap; }
@font-face { font-family: 'Jakarta'; src: url('/fonts/PlusJakartaSans_800ExtraBold.ttf') format('truetype'); font-weight: 800; font-display: swap; }

:root {
  /* Normal mode: the app's orange gradient, white text, glass cards. */
  --bg: #eb673a;
  --bg-2: #e4502a;
  --tile: rgba(255, 255, 255, 0.16);
  --tile-2: rgba(255, 255, 255, 0.24);
  --line: rgba(255, 255, 255, 0.32);
  --fg: #ffffff;
  --muted: rgba(255, 255, 255, 0.86);
  --faint: rgba(255, 255, 255, 0.72);
  --eyebrow: #fff1e8;
  --mark: #1b1b2f;
  --glow: 255, 236, 222;
  --pill-bg: #1b1b2f;
  --pill-fg: #ffffff;
  --nav-bg: rgba(228, 80, 42, 0.78);
  --grad: linear-gradient(100deg, #ffffff 10%, #ffe1cf 90%);
  --accent: #ee5f2f;
  --accent-2: #ef905f;
  --accent-3: #ffc49c;
  --ink: #1b1b2f;
  --max: 1120px;
  --gutter: max(20px, calc((100% - var(--max)) / 2));
  --sans: 'Jakarta', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', system-ui, sans-serif;
  --r-lg: 28px;
  --r-md: 20px;
  color-scheme: light;
}
/* Beast Mode: the app's own black, graphite and hot orange (src/constants/theme.ts → Beast). */
html.beast {
  --bg: #000000;
  --bg-2: #0b0b0c;
  --tile: #131315;
  --tile-2: #1c1c20;
  --line: rgba(255, 255, 255, 0.1);
  --fg: #f5f5f7;
  --muted: rgba(235, 235, 245, 0.62);
  --faint: rgba(235, 235, 245, 0.42);
  --eyebrow: #ff8a5b;
  --mark: #ff5a1f;
  --glow: 255, 90, 31;
  --pill-bg: #ff5a1f;
  --pill-fg: #ffffff;
  --nav-bg: rgba(16, 16, 18, 0.78);
  --grad: linear-gradient(100deg, #ff5a1f 5%, #ff8a5b 55%, #ffc49c 95%);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; scroll-padding-top: 90px; overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--fg); transition: background-color 0.7s ease, color 0.7s ease; font-family: var(--sans); font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -0.035em; line-height: 1.04; font-weight: 800; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 16px; border-radius: 999px; background: var(--fg); color: var(--ink); font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: 0.02em; color: var(--eyebrow); }
.lede { font-size: clamp(18px, 2vw, 22px); color: var(--muted); font-weight: 500; max-width: 34ch; text-wrap: pretty; }
.big { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 52ch; text-wrap: pretty; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.link { color: var(--eyebrow); font-weight: 700; text-decoration: none; }
.link::after { content: ' →'; }
.link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ── Nav ─────────────────────────────────────────────── */
/* A floating capsule (like the app's tab bar), no full-width bar. The wolf sits on a coin that flips to the
   Beast bolt on hover and every few seconds on its own. */
.nav { position: fixed; z-index: 30; top: calc(env(safe-area-inset-top, 0px) + 14px); left: 50%; transform: translateX(-50%); width: min(1040px, calc(100% - 24px)); }
.nav-in { height: 60px; display: flex; align-items: center; gap: 24px; padding: 0 8px 0 10px; border-radius: 999px;
  background: rgba(22, 14, 11, 0.42); border: 1px solid rgba(255, 255, 255, 0.16); box-shadow: 0 12px 40px rgba(60, 12, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(22px) saturate(180%); -webkit-backdrop-filter: blur(22px) saturate(180%); transition: background-color 0.7s, border-color 0.7s; }
html.beast .nav-in { background: rgba(14, 14, 16, 0.72); border-color: rgba(255, 255, 255, 0.1); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.word { font-weight: 800; font-size: 22px; letter-spacing: 0.06em; line-height: 1; }
.coin { position: relative; width: 42px; height: 42px; transform-style: preserve-3d; animation: coin 9s cubic-bezier(0.6, 0, 0.3, 1) infinite; }
.brand:hover .coin { animation: coin-now 0.9s cubic-bezier(0.3, 1.4, 0.5, 1) forwards; }
.coin-face { position: absolute; inset: 0; border-radius: 50%; display: grid; place-items: center; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  box-shadow: 0 0 0 1px rgba(27, 27, 47, 0.08), 0 4px 12px rgba(0, 0, 0, 0.25); background: #ffffff; overflow: hidden; }
.coin-face img { width: 100%; height: 100%; }
.coin-back { transform: rotateY(180deg); background: #ff5a1f; color: #fff; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9), 0 0 18px rgba(255, 90, 31, 0.7); }
.coin-back svg { width: 22px; height: 22px; }
@keyframes coin { 0%, 78% { transform: rotateY(0) } 86%, 92% { transform: rotateY(180deg) } 100% { transform: rotateY(360deg) } }
@keyframes coin-now { from { transform: rotateY(0) } to { transform: rotateY(180deg) } }
.nav nav { margin-left: auto; }
.nav-links { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a { position: relative; display: block; padding: 8px 12px; text-decoration: none; color: rgba(255, 255, 255, 0.86); font-size: 15px; font-weight: 700; letter-spacing: 0.01em; transition: color 0.2s; }
.nav-links a::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; border-radius: 2px; background: #ff8a5b; transform: scaleX(0); transition: transform 0.25s cubic-bezier(0.3, 0.7, 0.2, 1); }
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { transform: scaleX(1); }
.pill { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; background: var(--pill-bg); color: var(--pill-fg);
  font-weight: 800; text-decoration: none; transition: transform 0.2s, filter 0.2s; }
.pill:hover { filter: brightness(1.12); transform: translateY(-1px); }
.nav .pill { background: #fff; color: #1b1b2f; height: 44px; padding-inline: 20px; font-size: 15px; }
html.beast .nav .pill { background: #ff5a1f; color: #fff; }
.pill-sm { height: 36px; padding-inline: 18px; font-size: 14px; }
@media (max-width: 720px) {
  .nav nav { display: none; }
  .nav .pill { margin-left: auto; }
  .nav-in { height: 56px; }
}
@media (prefers-reduced-motion: reduce) { .coin { animation: none; } }
/* ── App Store button ────────────────────────────────── */
.store { display: inline-flex; align-items: center; gap: 12px; height: 58px; padding: 0 24px 0 18px; border-radius: 16px; background: var(--fg);
  color: var(--ink); text-decoration: none; transition: transform 0.2s, box-shadow 0.2s; box-shadow: 0 10px 40px rgba(var(--glow), 0.25); }
.store:hover { transform: translateY(-2px); box-shadow: 0 16px 50px rgba(var(--glow), 0.35); }
.store svg { width: 26px; height: 26px; color: var(--accent); }
.store span { display: grid; font-size: 20px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; }
.store small { font-size: 11px; font-weight: 600; letter-spacing: 0.02em; opacity: 0.7; }
.store-lg { height: 66px; }
.cta-row { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 22px; margin-top: 8px; }
.cta-note { color: var(--faint); font-size: 15px; font-weight: 600; }

/* ── Devices ─────────────────────────────────────────── */
.phone { position: relative; aspect-ratio: 720 / 1564; border-radius: 15% / 7%; padding: 3.2%; background: linear-gradient(145deg, #3a302c, #0e0b0a 40%, #2a221f);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset, 0 40px 90px rgba(0, 0, 0, 0.55), 0 0 0 1.5px #000; }
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 12.5% / 5.8%; }
.phone::after { content: ''; position: absolute; top: 4.6%; left: 50%; width: 30%; height: 3.4%; transform: translateX(-50%); border-radius: 999px; background: #000; }
.watch { position: relative; aspect-ratio: 416 / 496; border-radius: 30%; padding: 7%; background: linear-gradient(150deg, #4a3d37, #120e0d 45%, #322825);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1) inset, 0 30px 70px rgba(0, 0, 0, 0.6); }
.watch img { width: 100%; height: 100%; object-fit: cover; border-radius: 24%; }
.watch::before { content: ''; position: absolute; right: -4.5%; top: 26%; width: 5%; height: 15%; border-radius: 0 6px 6px 0; background: linear-gradient(90deg, #2c2421, #6b5a52); }
.watch::after { content: ''; position: absolute; right: -2.5%; top: 50%; width: 3%; height: 17%; border-radius: 0 4px 4px 0; background: #2c2421; }

/* ── Hero ────────────────────────────────────────────── */
/* Copy left, devices right. Light blooms, grain and the wolf give the orange depth; the whole backdrop fades into
   the page colour at the bottom (no hard edge). The hook pill at the foot points down to Beast Mode. */
.hero { position: relative; min-height: 100svh; padding: 96px var(--gutter) 0; display: grid; grid-template-columns: 1fr 1.05fr;
  align-items: center; gap: clamp(16px, 3vw, 48px); isolation: isolate; --mx: 0; --my: 0; }
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background: linear-gradient(170deg, #d6411d 0%, #e4502a 30%, #ec6436 62%, var(--bg) 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 100%); mask-image: linear-gradient(to bottom, #000 72%, transparent 100%); }
.bloom { position: absolute; border-radius: 50%; filter: blur(60px); transition: transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1); }
.bloom-1 { width: 64vmax; height: 64vmax; left: 72%; top: 48%; margin: -32vmax 0 0 -32vmax; background: radial-gradient(closest-side, rgba(255, 220, 190, 0.8), rgba(255, 160, 110, 0.28) 55%, transparent 72%);
  transform: translate(calc(var(--mx) * 4vmax), calc(var(--my) * 3vmax)); }
.bloom-2 { width: 50vmax; height: 50vmax; left: -16vmax; top: -18vmax; background: radial-gradient(closest-side, rgba(160, 30, 8, 0.55), transparent 70%);
  transform: translate(calc(var(--mx) * -3vmax), calc(var(--my) * -2vmax)); }
.bloom-3 { width: 36vmax; height: 36vmax; left: 30%; bottom: 0; background: radial-gradient(closest-side, rgba(255, 196, 156, 0.4), transparent 70%);
  transform: translate(calc(var(--mx) * -5vmax), calc(var(--my) * 2vmax)); }
.hero-wolf { position: absolute; left: 72%; top: 46%; width: min(980px, 90vw); transform: translate(-50%, -50%) translate(calc(var(--mx) * -1.5vmax), calc(var(--my) * -1vmax));
  opacity: 0.08; mix-blend-mode: soft-light; }
.grain { position: absolute; inset: 0; opacity: 0.16; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.hero-copy { position: relative; z-index: 3; display: grid; gap: 22px; padding-bottom: 40px; }
.hero h1 { font-size: clamp(48px, min(8.4vw, 13.5svh), 124px); line-height: 0.92; letter-spacing: -0.055em; text-shadow: 0 20px 60px rgba(120, 30, 5, 0.25); }
.hero .lede { max-width: 30ch; color: rgba(255, 255, 255, 0.92); }
.hero .cta-note { color: rgba(255, 255, 255, 0.85); }
.ghost:active, .store:active, .pill:active { transform: scale(0.97); transition-duration: 0.1s; }
.hero-art { position: relative; height: min(820px, 86svh); min-height: 520px; }
.phone-hero { position: absolute; width: min(300px, 60%); left: 50%; top: 8%; transform: translateX(-50%) rotate(-4deg); }
.watch-hero { position: absolute; width: min(150px, 30%); left: 8%; bottom: 14%; transform: rotate(6deg); }
/* Cards and Bjørn sit off the phone's edges: devices3d.js measures the phone on screen and sets --pl/--pr/--pt/--pb (px). */
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.hero.ready3d .hero-canvas { opacity: 1; }
.hero.ready3d .hero-art .phone-hero, .hero.ready3d .hero-art .watch-hero { opacity: 0; }
.hero-bjorn { position: absolute; z-index: 2; width: var(--bjw, 260px); left: calc(var(--pr, 82%) - 70px); top: calc(var(--pb, 90svh) - var(--bjw, 260px) * 1.333 + 10px); filter: drop-shadow(0 24px 40px rgba(90, 20, 0, 0.45));
  transform: translate(calc(var(--mx) * 18px), calc(var(--my) * 10px)); }
.float { position: absolute; z-index: 2; display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 10px; padding: 12px 16px; border-radius: 18px;
  color: #1b1b2f; background: rgba(255, 246, 240, 0.8); border: 1px solid rgba(255, 255, 255, 0.75); box-shadow: 0 18px 50px rgba(120, 30, 5, 0.28);
  backdrop-filter: blur(18px) saturate(170%); -webkit-backdrop-filter: blur(18px) saturate(170%); font-size: 14px; line-height: 1.3;
  transform: translate(calc(var(--mx) * var(--d, 1) * 30px), calc(var(--my) * var(--d, 1) * 22px)); transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.8s, translate 0.8s; }
.float b { font-weight: 800; }
.float span { color: #6b6275; }
.float b + span { grid-column: 1 / -1; }
.f-pr { right: calc(100% - var(--pl, 60%) - 22px); top: calc(var(--pt, 20svh) + (var(--pb, 80svh) - var(--pt, 20svh)) * 0.62); --d: 1.3; }
.f-pr b::before { content: ''; display: inline-block; width: 10px; height: 10px; margin-right: 8px; border-radius: 50%; background: #2fa56a; box-shadow: 0 0 0 4px rgba(47, 165, 106, 0.2); }
.f-rival { left: calc(var(--pr, 80%) - 28px); top: calc(var(--pt, 20svh) + (var(--pb, 80svh) - var(--pt, 20svh)) * 0.08); --d: 1.7; max-width: 240px; }
.f-rival .av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #3c5a4a; color: #fff; font-weight: 800; }
.f-rival span:last-child { color: #1b1b2f; font-weight: 600; }
/* The hook: a glowing pill that dares you to scroll. */
.hook { position: absolute; z-index: 4; left: 50%; bottom: clamp(18px, 4vh, 40px); transform: translateX(-50%); display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 18px 10px 10px; border-radius: 999px; color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; white-space: nowrap;
  background: rgba(17, 17, 20, 0.86); border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 14px 40px rgba(60, 10, 0, 0.35), 0 0 0 0 rgba(255, 90, 31, 0.6);
  animation: hook-glow 2.4s ease-in-out infinite; }
.hook b { color: #ff8a5b; }
.hook-bolt { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #ff5a1f; color: #fff; box-shadow: 0 0 18px rgba(255, 90, 31, 0.8); }
.hook-bolt svg { width: 18px; height: 18px; }
.hook-arrow { animation: hook-arrow 1.4s ease-in-out infinite; }
.hook:hover { background: #000; }
@keyframes hook-glow { 0%, 100% { box-shadow: 0 14px 40px rgba(60, 10, 0, 0.35), 0 0 0 0 rgba(255, 90, 31, 0.55) } 50% { box-shadow: 0 14px 40px rgba(60, 10, 0, 0.35), 0 0 0 10px rgba(255, 90, 31, 0) } }
@keyframes hook-arrow { 0%, 100% { transform: translateY(-2px) } 50% { transform: translateY(4px) } }
/* The opening (first visit): the copy waits while the camera pulls back from the watch. */
/* The copy, nav and hook are there from the first frame (no waiting on 3D); only the decorations land after the pull-back. */
html.intro .float, html.intro .hero-bjorn { opacity: 0; translate: 0 16px; }
html.landed .float, html.landed .hero-bjorn { opacity: 1; translate: 0 0; transition: opacity 0.9s ease, translate 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
html.landed .float { transition-delay: 0.3s; }
html.landed .hero-bjorn { transition-delay: 0.15s; }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 108px; align-items: start; min-height: 0; }
  .hero-copy { padding-bottom: 0; }
  .hero-art { height: auto; min-height: 0; aspect-ratio: 1 / 1.12; max-width: 520px; width: 100%; margin: 0 auto 90px; }
  .f-pr, .f-rival { font-size: 12.5px; max-width: 200px; }
  .hook { font-size: 14px; }
}
/* ── Proof strip ─────────────────────────────────────── */
.strip { padding: 0 var(--gutter); }
.strip ul { list-style: none; margin: 0; padding: 26px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; border-block: 1px solid var(--line); }
.strip li { display: grid; gap: 2px; }
.strip strong { font-size: clamp(30px, 3.4vw, 44px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.strip span { color: var(--muted); font-size: 15px; }
@media (max-width: 720px) { .strip ul { grid-template-columns: repeat(2, 1fr); row-gap: 26px; } }

/* ── Scroll story ────────────────────────────────────── */
/* Without JS (or with reduced motion) the steps simply stack, each with its own screenshot. */
.story { position: relative; padding: clamp(64px, 9vw, 120px) var(--gutter) 0; }
.story-stage { display: none; }
.story-steps { display: grid; gap: clamp(56px, 8vw, 96px); }
.step { display: grid; grid-template-columns: minmax(0, 320px) 1fr; align-items: center; gap: clamp(28px, 5vw, 72px); }
.step-shot { border-radius: 36px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); }
.step-copy { display: grid; gap: 14px; }
.step h2 { font-size: clamp(34px, 4.6vw, 60px); }
.step p:not(.eyebrow) { color: var(--muted); font-size: clamp(17px, 1.6vw, 20px); max-width: 44ch; }
@media (max-width: 720px) {
  .step { grid-template-columns: 1fr; }
  .step-shot { max-width: 300px; margin-inline: auto; order: 2; }
}

/* With JS: one pinned phone; the copy scrolls past it and the screen changes with each step. */
@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  .js .story { display: grid; grid-template-columns: 1fr 1fr; gap: 6vw; padding-top: 0; }
  .js .story-stage { display: grid; place-items: center; position: sticky; top: 0; height: 100svh; grid-column: 2; grid-row: 1; }
  .js .story-steps { grid-column: 1; grid-row: 1; gap: 0; }
  .js .step { min-height: 100svh; grid-template-columns: 1fr; align-content: center; opacity: 0.25; transition: opacity 0.5s; }
  .js .step.on { opacity: 1; }
  .js .step-shot { display: none; }
  .story-glow { position: absolute; width: 120%; aspect-ratio: 1; background: radial-gradient(closest-side, rgba(var(--glow), 0.24), transparent 70%); pointer-events: none; }
  .phone-story { width: min(330px, 26vw); max-height: 78svh; aspect-ratio: 720 / 1564; transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
  .phone-story img { position: absolute; inset: 3.2%; width: 93.6%; height: 93.6%; opacity: 0; transform: scale(1.03); transition: opacity 0.55s ease, transform 0.8s ease; }
  .phone-story img.on { opacity: 1; transform: none; }
  .story-dots { position: absolute; right: 0; top: 50%; transform: translateY(-50%); list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
  .story-dots li { width: 6px; height: 6px; border-radius: 50%; background: var(--line); transition: background 0.3s, height 0.3s; }
  .story-dots li.on { height: 22px; border-radius: 3px; background: var(--mark); }
}

/* ── Blocks ──────────────────────────────────────────── */
.block { padding: clamp(80px, 11vw, 150px) var(--gutter) 0; }
.block-head { display: grid; gap: 16px; margin-bottom: clamp(32px, 5vw, 56px); max-width: 760px; }
.block h2 { font-size: clamp(38px, 5.4vw, 72px); }
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(32px, 6vw, 88px); }
.split-copy { display: grid; gap: 18px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split-rev .split-copy { order: -1; } }



.watch-stage { display: grid; place-items: center; position: relative; padding: 30px 0; }
.watch-stage::before { content: ''; position: absolute; width: 90%; aspect-ratio: 1; background: radial-gradient(closest-side, rgba(var(--glow), 0.26), transparent 70%); }
.watch-big { width: min(300px, 70%); }
.watch-big img { position: absolute; inset: 7%; width: 86%; height: 86%; opacity: 0; transition: opacity 0.6s ease; }
.watch-big img.on { opacity: 1; }
.watch-big img:first-child { position: relative; inset: auto; width: 100%; height: 100%; }
.no-js-watch .watch-big img:first-child { opacity: 1; }
.ticks { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 32px; color: var(--fg); font-weight: 500; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--mark) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; }

/* ── Tiles ───────────────────────────────────────────── */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.tile { transition: background-color 0.7s, border-color 0.7s; border-radius: var(--r-lg); background: var(--tile); border: 1px solid var(--line); padding: clamp(24px, 3.4vw, 40px); display: grid; gap: 12px; align-content: start; overflow: hidden; }
.tile h3 { font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -0.03em; }
.tile p { color: var(--muted); }
.tile-wide { grid-column: 1 / -1; }
.quote { margin-top: 6px; padding: 14px 18px; border-radius: 16px; background: rgba(var(--glow), 0.12); border: 1px solid rgba(var(--glow), 0.3); color: var(--fg) !important; font-weight: 700; }
.duo { display: grid; gap: 10px; margin-top: 10px; }
.duo-row { display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px; background: linear-gradient(90deg, rgba(var(--glow), 0.22), rgba(239, 144, 95, 0.1)); border: 1px solid rgba(var(--glow), 0.25); font-size: 15px; }
.duo-row span:not(.av) { color: var(--muted); min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.duo-row em { font-style: normal; font-weight: 700; font-size: 13px; padding: 4px 10px; border-radius: 999px; background: rgba(0, 0, 0, 0.35); }
.av { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #3c5a4a; font-weight: 800; font-size: 14px; }
.av-2 { background: #4b4a6e; }
@media (max-width: 560px) { .duo-row { grid-template-columns: auto 1fr auto; } .duo-row span:not(.av) { grid-column: 1 / -1; grid-row: 2; white-space: normal; } }
.medals { grid-template-columns: 1fr 1.1fr; align-items: center; gap: 24px; }
.medals > div { display: grid; gap: 12px; }
.medals ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.medals li img { width: 100%; filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.4)); transition: transform 0.3s; }
.medals li:hover img { transform: translateY(-4px) rotate(-4deg); }
@media (max-width: 900px) { .tiles { grid-template-columns: 1fr; } .medals { grid-template-columns: 1fr; } }

.tiles-2 .tile-shot { grid-template-rows: auto 1fr; gap: 28px; padding-bottom: 0; }
.tile-shot > div { display: grid; gap: 12px; }
.tile-shot img { width: min(320px, 80%); justify-self: center; border-radius: 34px 34px 0 0; box-shadow: 0 -10px 60px rgba(var(--glow), 0.18); align-self: end; }

/* ── Bjørn ───────────────────────────────────────────── */
.bjorn { display: grid; grid-template-columns: 0.9fr 1.1fr; align-items: center; gap: clamp(24px, 5vw, 72px); }
.bjorn-art { position: relative; display: grid; place-items: center; }
.bjorn-art::before { content: ''; position: absolute; width: 95%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(var(--glow), 0.4), rgba(var(--glow), 0.08) 60%, transparent 72%); }
.bjorn-art img { position: relative; width: min(420px, 100%); filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.5)); }
.bjorn-copy { display: grid; gap: 18px; }
.lines { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; }
.lines li { padding: 14px 18px; border-radius: 18px 18px 18px 6px; background: var(--tile); border: 1px solid var(--line); font-weight: 600; max-width: 46ch; }
.lines li:nth-child(even) { margin-left: clamp(0px, 4vw, 48px); }
@media (max-width: 900px) { .bjorn { grid-template-columns: 1fr; } .bjorn-art img { width: min(300px, 70%); } }

/* ── iPad ────────────────────────────────────────────── */
.ipad { width: min(860px, 100%); margin-inline: auto; padding: 1.8%; border-radius: 4.5%; background: linear-gradient(145deg, #3a302c, #0e0b0a 40%, #2a221f);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset, 0 50px 120px rgba(0, 0, 0, 0.6), 0 -20px 120px rgba(var(--glow), 0.12); }
.ipad img { border-radius: 3.2%; width: 100%; aspect-ratio: 1200 / 1600; object-fit: cover; object-position: top; max-height: 76vh; }

/* ── Privacy promise ─────────────────────────────────── */
.promise { display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 4vw, 48px); align-items: start; padding: clamp(28px, 5vw, 64px); border-radius: var(--r-lg);
  background: radial-gradient(120% 140% at 0% 0%, rgba(var(--glow), 0.24), transparent 60%), var(--tile); border: 1px solid var(--line); }
.promise > div { display: grid; gap: 16px; }
.promise h2 { font-size: clamp(32px, 4.4vw, 56px); }
@media (max-width: 640px) { .promise { grid-template-columns: 1fr; } .promise img { width: 64px; } }

/* ── FAQ ─────────────────────────────────────────────── */
.faq { display: grid; max-width: 860px; 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; align-items: center; gap: 20px; padding: 22px 0; font-size: clamp(18px, 1.8vw, 21px); font-weight: 700; letter-spacing: -0.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--tile-2); color: var(--eyebrow); font-size: 22px; font-weight: 600; transition: transform 0.25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 48px 24px 0; max-width: 62ch; }
.faq a { color: var(--eyebrow); }

/* ── Finale ──────────────────────────────────────────── */
.finale { position: relative; display: grid; justify-items: center; text-align: center; gap: 18px; padding: clamp(100px, 12vw, 170px) var(--gutter) clamp(80px, 10vw, 130px); overflow: hidden; }
.finale-glow { position: absolute; left: 50%; top: 40%; width: min(1100px, 150vw); aspect-ratio: 1.4; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(var(--glow), 0.36), rgba(var(--glow), 0.08) 55%, transparent 75%); pointer-events: none; }
.finale > *:not(.finale-glow) { position: relative; }
.finale-bjorn { width: min(240px, 50vw); filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.5)); }
.finale h2 { font-size: clamp(44px, 7vw, 92px); letter-spacing: -0.05em; }
.finale .big { margin-bottom: 10px; }

/* ── Footer ──────────────────────────────────────────── */
.foot { border-top: 1px solid var(--line); background: var(--bg-2); padding: 56px var(--gutter) 32px; }
.foot-in { display: grid; grid-template-columns: 1.2fr 2fr; gap: 40px; }
.foot-brand { display: grid; gap: 14px; align-content: start; }
.foot-brand p { color: var(--muted); font-size: 15px; max-width: 34ch; }
.foot-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.foot h2 { font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); margin-bottom: 12px; font-weight: 700; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot a { text-decoration: none; color: var(--muted); font-size: 15px; }
.foot a:hover { color: var(--fg); }
.foot-base { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; color: var(--faint); font-size: 13px; }
@media (max-width: 760px) { .foot-in { grid-template-columns: 1fr; } .foot-cols { grid-template-columns: repeat(2, 1fr); } }

/* ── Legal pages ─────────────────────────────────────── */
.doc { padding: calc(90px + clamp(32px, 5vw, 72px)) var(--gutter) clamp(64px, 8vw, 110px); }
.doc-head { display: grid; gap: 14px; max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.doc-head h1 { font-size: clamp(44px, 6.6vw, 84px); letter-spacing: -0.05em; }
.doc-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.toc { position: sticky; top: 84px; display: grid; gap: 12px; }
.toc p { font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); font-weight: 700; }
.toc ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; counter-reset: toc; }
.toc a { text-decoration: none; color: var(--muted); font-size: 14.5px; font-weight: 600; line-height: 1.35; display: block; }
.toc a:hover { color: var(--fg); }
.doc-body { display: grid; gap: 40px; max-width: 70ch; }
.doc-body section { display: grid; gap: 14px; scroll-margin-top: 84px; }
.doc-body h2 { font-size: clamp(24px, 2.6vw, 30px); letter-spacing: -0.03em; }
.doc-body p { color: var(--muted); font-size: 17px; line-height: 1.7; }
.doc-body a { color: var(--eyebrow); }
@media (max-width: 860px) { .doc-grid { grid-template-columns: 1fr; } .toc { position: static; padding: 20px; border-radius: var(--r-md); background: var(--tile); border: 1px solid var(--line); } }

/* ── 404 ─────────────────────────────────────────────── */
.lost { display: grid; justify-items: center; text-align: center; gap: 18px; padding: calc(90px + clamp(40px, 8vw, 100px)) var(--gutter) clamp(60px, 10vw, 120px); }
.lost img { width: min(260px, 60vw); }
.lost h1 { font-size: clamp(44px, 7vw, 84px); letter-spacing: -0.05em; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ── Beast Mode unlocked ─────────────────────────────── */
/* A tall section with a pinned stage. Scrolling through it (--p, 0 to 1, set by site.js) slides the switch on,
   floods the screen black from the switch, then lands the line. Past the middle the whole page is html.beast. */
.unlock { position: relative; height: 280vh; --p: 0; }
.unlock-stage { position: sticky; top: 0; height: 100svh; height: 100dvh; overflow: hidden; display: grid; place-items: center; }
.unlock-in { position: relative; display: grid; justify-items: center; text-align: center; gap: 16px; padding: 0 20px; }
.unlock-flood { position: absolute; inset: 0; background: #000; clip-path: circle(calc(var(--flood, 0) * 150vmax) at 50% calc(50% - var(--land, 0) * 24%)); }
.unlock-burst { position: absolute; left: 50%; top: 50%; width: 40vmax; aspect-ratio: 1; transform: translate(-50%, -50%) scale(calc(0.2 + var(--burst, 0) * 2.4));
  border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 90, 31, 0.9), rgba(255, 90, 31, 0.25) 45%, transparent 70%); opacity: calc(var(--burst, 0) * (1 - var(--burst, 0)) * 3.2); pointer-events: none; }
.switch { display: grid; justify-items: center; gap: 10px; transform: translateY(calc((1 - var(--land, 0)) * 26svh)); }
.switch-label { font-weight: 800; letter-spacing: 0.24em; text-transform: uppercase; font-size: 14px; color: var(--fg); }
.switch-track { position: relative; width: 132px; height: 72px; border-radius: 999px; background: rgba(27, 27, 47, 0.3); box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.25);
  transition: background-color 0.35s; }
.switch-knob { position: absolute; top: 6px; left: 6px; width: 60px; height: 60px; border-radius: 50%; background: #fff; color: #1b1b2f; display: grid; place-items: center;
  transform: translateX(calc(var(--knob, 0) * 60px)); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3); transition: color 0.35s; }
.switch-knob svg { width: 30px; height: 30px; }
.unlock.on .switch-track { background: #ff5a1f; box-shadow: 0 0 40px rgba(255, 90, 31, 0.7), inset 0 2px 8px rgba(0, 0, 0, 0.25); }
.unlock.on .switch-knob { color: #ff5a1f; }
.unlock-bjorn { width: min(300px, 46vw); max-height: 38svh; object-fit: contain; opacity: var(--land, 0); transform: translateY(calc((1 - var(--land, 0)) * 60px)) scale(calc(0.7 + var(--land, 0) * 0.3));
  filter: drop-shadow(0 20px 40px rgba(255, 90, 31, 0.35)); }
.unlock-title { font-size: clamp(48px, 8vw, 104px); letter-spacing: -0.05em; line-height: 0.95; opacity: var(--land, 0); transform: scale(calc(1.25 - var(--land, 0) * 0.25)); }
.unlock-copy { margin-inline: auto; opacity: var(--land, 0); }
.unlock-eyebrow { opacity: calc(1 - var(--knob, 0)); }
.unlock.boom .unlock-in { animation: boom 0.55s cubic-bezier(0.3, 0.7, 0.3, 1); }
@keyframes boom {
  0% { transform: translate(0, 0) scale(1) } 15% { transform: translate(-10px, 4px) scale(1.04) } 30% { transform: translate(9px, -5px) }
  45% { transform: translate(-6px, 3px) } 60% { transform: translate(4px, -2px) } 100% { transform: none }
}
/* No JS or reduced motion: no pinned stage, just the finished picture. */
html:not(.js) .unlock, .reduce .unlock { height: auto; }
html:not(.js) .unlock-stage, .reduce .unlock-stage { position: relative; height: auto; padding: 120px 0; background: #000; }
html:not(.js) .unlock, .reduce .unlock { --knob: 1; --land: 1; }

/* ── 3D devices (js/devices3d.js) ────────────────────── */
/* The canvas sits over the flat devices; once a model is on screen (.ready3d) the flat ones fade out. */
canvas.three { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 0.8s ease; pointer-events: none; }
.ready3d > canvas.three { opacity: 1; }
.hero-art.ready3d .phone-hero, .hero-art.ready3d .watch-hero,
.story-stage.ready3d .phone-story, .watch-stage.ready3d .watch-big { opacity: 0; transition: opacity 0.6s ease; }
.watch-stage { min-height: min(560px, 80vw); }
.watch-stage canvas.three { inset: -10% -20%; width: 140%; height: 120%; }
.watch-block { overflow: clip; }
.story-stage { overflow-x: clip; } /* sideways only: a card's soft shadow can fade out below the stage instead of being cut */

/* iPad: a 3D iPad Pro 13" (built in code) that tilts up as the section scrolls in (--t, 0 to 1). */
.ipad-stage { position: relative; height: min(88svh, 128vw, 980px); display: grid; place-items: center; }
.ipad-stage canvas.three { inset: 0; width: 100%; height: 100%; }
.ipad-stage .ipad { height: 82%; width: auto; aspect-ratio: 0.75; }
.ipad-stage.ready3d .ipad { opacity: 0; transition: opacity 0.6s ease; }

/* Phones: the phone stays centred in the screen above a caption card; the steps are invisible scroll spacers and
   the card shows the current step's copy (site.js copies it into .story-cap). Screen readers get the steps. */
.story-cap { display: none; }
@media (max-width: 899px) and (prefers-reduced-motion: no-preference) {
  .js .story { display: grid; grid-template-columns: 1fr; padding: 0; }
  .js .story-stage { display: block; position: sticky; top: 0; height: 100svh; height: 100dvh; grid-row: 1; grid-column: 1; --cap: clamp(220px, 30svh, 270px); }
  .js .story-steps { grid-row: 1; grid-column: 1; gap: 0; }
  .js .step { min-height: 130svh; opacity: 0; pointer-events: none; }
  .js .step-shot { display: none; }
  /* One card that never moves: its colour and its words change with the step (site.js: .on and data-tone). */
  .js .story-cap { display: grid; align-items: end; position: absolute; left: var(--gutter); right: var(--gutter); bottom: calc(env(safe-area-inset-bottom, 0px) + 14px); height: var(--cap); z-index: 2; }
  .js .cap-card { display: grid; padding: 18px 20px 20px; border-radius: 26px; border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 12px 36px rgba(60, 12, 0, 0.14);
    background: var(--tone-bg); --fg: var(--tone-fg); --muted: var(--tone-muted); --eyebrow: var(--tone-eyebrow);
    -webkit-backdrop-filter: blur(22px) saturate(160%); backdrop-filter: blur(22px) saturate(160%); transition: background-color 0.7s ease, border-color 0.7s ease; }
  .js .cap-card .step-copy { grid-area: 1 / 1; gap: 8px; opacity: 0; transition: opacity 0.45s ease; }
  .js .cap-card .step-copy.on { opacity: 1; transition-delay: 0.12s; }
  .js .cap-card .step-copy * { transition: color 0.7s ease; }
  .js .cap-card { color: var(--tone-fg); }
  .js .cap-card p:not(.eyebrow) { color: var(--tone-muted); }
  .js .cap-card .eyebrow { color: var(--tone-eyebrow); }
  .js .cap-card h2 { font-size: clamp(22px, 6.4vw, 30px); }
  .js .cap-card p:not(.eyebrow) { font-size: 15px; line-height: 1.5; }
  .story-glow { position: absolute; width: 140%; aspect-ratio: 1; left: -20%; top: calc(76px + (100% - 76px - var(--cap) - 28px) / 2); transform: translateY(-50%);
    background: radial-gradient(closest-side, rgba(var(--glow), 0.24), transparent 70%); pointer-events: none; }
  .story-dots { display: none; }
  .js .story-stage canvas.three { inset: 0; width: 100%; height: 100%; }
}

.nowrap { white-space: nowrap; }
/* Phones: the hook floats at the foot of the first screen, and slides away once you scroll (site.js: .scrolled). */
@media (max-width: 900px) {
  .hook { position: fixed; bottom: calc(env(safe-area-inset-bottom, 0px) + 16px); transition: opacity 0.4s, translate 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); }
  html.scrolled .hook { opacity: 0; translate: 0 30px; pointer-events: none; }
}

/* Out of room (devices3d.js): a card or Bjørn that would leave the hero or cover the phone's screen is dropped. */
.hero .no-room { opacity: 0 !important; pointer-events: none; }

/* Desktop: the hook sits in the copy column under the buttons, clear of the devices. */
@media (min-width: 901px) {
  .hook { left: var(--gutter); transform: none; bottom: clamp(20px, 5svh, 56px); }
}
@media (min-width: 901px) { .hero-copy { padding-bottom: clamp(96px, 14svh, 150px); } }
.ipad-stage::before { content: ''; position: absolute; width: min(900px, 120%); aspect-ratio: 1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(var(--glow), 0.34), rgba(var(--glow), 0.08) 55%, transparent 72%); }

/* ── Posters: renders of the same 3D devices, at the same size and place, shown until the 3D has loaded (and
   instead of it without WebGL). Renders keep a margin: the device is 86% of the image height. ── */
.hero-art { container-type: size; }
.poster { position: absolute; display: block; width: auto; max-width: none; pointer-events: none; transition: opacity 0.6s ease; }
/* Hero: the phone is 82% of the column's height, centred; the watch is 0.4 of a phone, 0.42 phones left and 0.3 down. */
.poster-phone { height: calc(82cqh / 0.8); left: 50%; top: 50%; transform: translate(-50%, -50%); }
.poster-watch { height: calc(82cqh * 0.4 / 0.8); left: calc(50cqw - 82cqh * 0.42); top: calc(50cqh + 82cqh * 0.3); transform: translate(-50%, -50%); }
.hero.ready3d .poster { opacity: 0; }
/* Story: the phone is 1/1.6 of the screen height, centred a little below the nav (phones: see .story-cap). The 3D
   phone is placed wherever these posters are. */
.phone-story { position: absolute; inset: 0; }
.phone-story img { position: absolute; height: calc(100% / 1.6 / 0.86); width: auto; max-width: none; left: 50%; top: calc(50% + 22px); transform: translate(-50%, -50%); opacity: 0; transition: opacity 0.5s ease; border-radius: 0; }
.phone-story img.on { opacity: 1; }
.story-stage.ready3d .phone-story { opacity: 0; transition: opacity 0.6s ease; }
@media (max-width: 899px) {
  .js .phone-story { position: absolute; inset: 0; width: auto; max-height: none; aspect-ratio: auto; }
  /* Centred in the room between the nav (76 px) and the caption card. */
  .js .phone-story img { inset: auto; left: 50%; height: calc((100% - 76px - var(--cap, 0px) - 28px) * 0.96); width: auto; top: calc(76px + (100% - 76px - var(--cap, 0px) - 28px) / 2); }
}
.step-shot { border-radius: 0; box-shadow: none; filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.35)); }
/* Watch section: the watch is 80% of its canvas (which is 120% of the stage). */
.watch-big { position: absolute; inset: -10% -20%; width: auto; aspect-ratio: auto; padding: 0; background: none; box-shadow: none; border-radius: 0; }
.watch-big::before, .watch-big::after { display: none; }
.watch-big img { position: absolute; inset: auto; height: calc(80% / 0.86); width: auto; max-width: none; left: 50%; top: 50%; transform: translate(-50%, -50%); border-radius: 0; opacity: 0; transition: opacity 0.6s ease; }
.watch-big img.on, .watch-big img:first-child.on { opacity: 1; position: absolute; width: auto; height: calc(80% / 0.86); inset: auto; left: 50%; top: 50%; }
/* iPad: 80% of the stage's height. */
.ipad-stage .ipad { position: absolute; inset: 0; height: auto; width: auto; padding: 0; background: none; box-shadow: none; border-radius: 0; aspect-ratio: auto; }
.ipad-stage .ipad img { position: absolute; height: calc(80% / 0.86); width: auto; max-width: none; max-height: none; aspect-ratio: auto; left: 50%; top: 50%; transform: translate(-50%, -50%); border-radius: 0; object-fit: contain; }

/* Safari zooms a phone page out to fit anything wider than the screen, and older Safari ignores overflow: clip on
   html/body. So each section without a pinned (sticky) child clips itself, hidden first, clip where supported. */
.hero, .watch-block, .ipad-block, .finale, .block, .strip, .foot { overflow: hidden; overflow: clip; }
@media (max-width: 900px) {
  /* Phones: a compact one-line pill, so it covers as little of the devices as possible. */
  .hook { gap: 9px; padding: 6px 14px 6px 6px; font-size: 13.5px; }
  .hook-bolt { width: 28px; height: 28px; }
  .hook-bolt svg { width: 15px; height: 15px; }
  .hook-more { display: none; }
}

/* Cards and Bjørn only appear once devices3d.js has measured the phone and placed them (.placed). */
.hero:not(.placed) .float, .hero:not(.placed) .hero-bjorn { opacity: 0 !important; visibility: hidden; }

/* ── Light zone: from Bjørn to the footer, a white sheet that slides up over the black ── */
.light-zone, main:has(.light-zone) + .foot {
  --bg: #ffffff;
  --bg-2: #f6f2ef;
  --tile: #f7f3f0;
  --tile-2: #efe8e3;
  --line: rgba(27, 27, 47, 0.1);
  --fg: #1b1b2f;
  --muted: #5d5768;
  --faint: #8b8594;
  --eyebrow: #e4502a;
  --mark: #ee5f2f;
  --glow: 238, 95, 47;
  --pill-bg: #1b1b2f;
  --pill-fg: #ffffff;
  --grad: linear-gradient(100deg, #e4502a 5%, #ef905f 60%, #f5a77c 95%);
  color: var(--fg);
  color-scheme: light;
}
.light-zone { position: relative; z-index: 1; margin-top: clamp(64px, 9vw, 120px); padding-bottom: 1px; background: var(--bg);
  border-radius: clamp(28px, 4vw, 48px) clamp(28px, 4vw, 48px) 0 0; box-shadow: 0 -30px 80px rgba(255, 90, 31, 0.18); }
.light-zone > .block:first-child { padding-top: clamp(64px, 9vw, 120px); }
main:has(.light-zone) + .foot { background: var(--bg-2); border-top-color: var(--line); }
.light-zone .store { background: #1b1b2f; color: #ffffff; box-shadow: 0 14px 40px rgba(27, 27, 47, 0.25); }
.light-zone .store svg { color: #ff8a5b; }
.light-zone .lines li { background: var(--tile); border-color: var(--line); color: var(--fg); }
.light-zone .tile p, .light-zone .faq details p { color: var(--muted); }
.light-zone .tile-shot img { box-shadow: 0 -10px 50px rgba(27, 27, 47, 0.18); }
.light-zone .promise { background: radial-gradient(120% 140% at 0% 0%, rgba(238, 95, 47, 0.14), transparent 60%), var(--tile); }
.light-zone .faq summary::after { background: var(--tile-2); color: var(--eyebrow); }
.light-zone .finale .big, .light-zone .cta-note { color: var(--muted); }
.light-zone .bjorn-art img { filter: drop-shadow(0 30px 40px rgba(27, 27, 47, 0.25)); }
.light-zone .ipad-stage::before { background: radial-gradient(closest-side, rgba(238, 95, 47, 0.18), rgba(238, 95, 47, 0.04) 55%, transparent 72%); }
.light-zone ::selection { background: rgba(238, 95, 47, 0.25); }

/* ── The fold: a pinned stage; scrolling turns the foldable iPhone, opens it and looks at each half ── */
/* Without WebGL it's a heading and a list. */
.fold { position: relative; padding: clamp(64px, 9vw, 120px) var(--gutter); }
.fold-head { text-align: center; display: grid; gap: 10px; justify-items: center; }
.fold-head h2 { font-size: clamp(40px, 7vw, 88px); letter-spacing: -0.045em; line-height: 0.98; }
.fold-caps { list-style: none; margin: 28px auto 0; padding: 0; display: grid; gap: 14px; max-width: 560px; }
.fold-caps li { color: var(--muted); font-size: 17px; line-height: 1.5; }
.fold-caps strong { color: var(--fg); font-weight: 800; }
.fold-canvas, .fold-flat, .fold-glow { display: none; }
html.gl .fold { height: 600vh; padding: 0; }
html.gl .fold-stage { position: sticky; top: 0; height: 100svh; height: 100dvh; overflow: hidden; overflow: clip; }
html.gl .fold-head { position: absolute; left: 0; right: 0; top: clamp(96px, 14svh, 150px); padding: 0 var(--gutter); z-index: 2;
  opacity: calc(1 - var(--p, 0) * 9); transform: translateY(calc(var(--p, 0) * -240px)); pointer-events: none; }
html.gl .fold-canvas { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }
html.gl .fold-glow { display: block; position: absolute; left: 50%; top: 50%; width: min(130vw, 130svh); aspect-ratio: 1; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(255, 240, 225, 0.32), rgba(255, 240, 225, 0.08) 55%, transparent 72%); pointer-events: none; }
/* Until the model is in: the open screen, flat, where the phone will be. */
html.gl .fold-flat { display: block; position: absolute; left: 50%; top: 50%; width: min(78vw, 60svh * 1.43, 760px); aspect-ratio: 1001 / 700; transform: translate(-50%, -50%);
  border-radius: 22px; border: 7px solid #15171f; box-shadow: 0 40px 90px rgba(90, 20, 0, 0.35); transition: opacity 0.6s ease; }
.fold.ready3d .fold-flat { opacity: 0; }
html.gl .fold-caps { position: absolute; left: 50%; bottom: max(18px, 4svh); transform: translateX(-50%); width: min(560px, calc(100% - 2 * var(--gutter)));
  margin: 0; display: grid; z-index: 2; }
html.gl .fold-caps { padding: 16px 20px 18px; border-radius: 22px; background: var(--tone-bg, rgba(120, 30, 8, 0.3)); border: 1px solid rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); opacity: var(--show, 0); transition: opacity 0.5s ease, background-color 0.7s ease; }
html.gl .fold-caps li { grid-area: 1 / 1; align-self: center; color: var(--tone-muted, rgba(255, 247, 242, 0.86)); font-size: clamp(15px, 1.3vw, 17px); opacity: 0; transition: opacity 0.45s ease, color 0.7s ease; }
html.gl .fold-caps li.on { opacity: 1; transition-delay: 0.12s; }
html.gl .fold-caps strong { color: var(--tone-fg, #fff); transition: color 0.7s ease; }
@media (prefers-reduced-transparency: reduce) { html.gl .fold-caps li { background: #8a2a0c; -webkit-backdrop-filter: none; backdrop-filter: none; } }
.fold.ready3d .fold-canvas { opacity: 1; }

/* Over the white sheet the nav turns to white glass with dark ink (site.js: html.nav-light). */
.nav .word { transition: color 0.4s; }
html.nav-light .nav-in { background: rgba(255, 255, 255, 0.74); border-color: rgba(27, 27, 47, 0.08); box-shadow: 0 12px 40px rgba(27, 27, 47, 0.12), inset 0 1px 0 #fff; }
html.nav-light .nav .word, html.nav-light .nav-links a, html.nav-light .nav-links a:hover { color: #1b1b2f; }
html.nav-light .nav .pill { background: #ee5f2f; color: #fff; }
/* Touch: footer links get a finger-sized row (about 42 px). */
@media (pointer: coarse) { .foot ul { gap: 0; } .foot ul a { display: inline-block; padding: 9px 0; } }

/* Under the switch until it starts to move. */
.switch-hint { font-size: 15px; font-weight: 700; color: rgba(255, 255, 255, 0.9); opacity: calc(1 - var(--knob, 0) * 3); transition: opacity 0.2s; }
.switch-hint::after { content: ' ↓'; display: inline-block; animation: hook-arrow 1.4s ease-in-out infinite; }
html:not(.js) .switch-hint, .reduce .switch-hint { display: none; }

/* Card tones (story cards and the fold's caption card). */
[data-tone] { transition: background-color 0.7s ease, border-color 0.7s ease; }
[data-tone="ember"] { --tone-bg: rgba(120, 30, 8, 0.3); --tone-fg: #ffffff; --tone-muted: rgba(255, 247, 242, 0.86); --tone-eyebrow: #ffd9c7; }
[data-tone="cream"] { --tone-bg: #fff4ec; --tone-fg: #1b1b2f; --tone-muted: #5d5768; --tone-eyebrow: #e4502a; border-color: rgba(27, 27, 47, 0.06) !important; }
[data-tone="night"] { --tone-bg: rgba(24, 14, 10, 0.88); --tone-fg: #f5f5f7; --tone-muted: #b7b0ad; --tone-eyebrow: #ff8a5b; }
[data-tone="flame"] { --tone-bg: #ff5a1f; --tone-fg: #ffffff; --tone-muted: rgba(255, 255, 255, 0.9); --tone-eyebrow: #ffe3d6; }
