/* ============================================================
   Clicker — marketing site
   Design tokens mirror the iOS app's three themes (Theme.swift).
   Aura is the default; the switcher swaps [data-theme] on <html>.
   ============================================================ */

/* Outward — display family used for the wordmark (SIL Open Font License,
   Raoul Audouin / Velvetyne). Three cuts: Block (regular), Round, Borders. */
@font-face {
  font-family: "Outward Block";
  src: url("./fonts/outward-block-webfont.woff2") format("woff2"),
       url("./fonts/outward-block-webfont.woff") format("woff");
  font-weight: normal; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Outward Round";
  src: url("./fonts/outward-round-webfont.woff2") format("woff2");
  font-weight: normal; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Outward Borders";
  src: url("./fonts/outward-borders-webfont.woff2") format("woff2");
  font-weight: normal; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Nasalization Ext";
  src: url("./fonts/nasalization-ext-bold.ttf") format("truetype");
  font-weight: 700; font-style: normal; font-display: swap;
}

:root,
[data-theme="aura"] {
  --bg:        #0C0F0A;
  --bg-2:      #11150D;
  --surface:   #161A12;
  --surface-2: #1c2117;
  --accent:    #B6F03C;
  --accent-ink:#0C0F0A;     /* text that sits on the accent */
  --text:      #F2F5EC;
  --text-dim:  #8A9378;
  --border:    rgba(242,245,236,0.10);
  --disc:      #141811;
  --cross:     rgba(255,255,255,0.92);
  --corner-lg: 34px;
  --corner-sm: 18px;
}

[data-theme="midnight"] {
  --bg:        #000000;
  --bg-2:      #0a0a0a;
  --surface:   rgba(255,255,255,0.05);
  --surface-2: rgba(255,255,255,0.08);
  --accent:    #FF6B35;
  --accent-ink:#1a0e07;
  --text:      #ffffff;
  --text-dim:  rgba(255,255,255,0.5);
  --border:    rgba(255,255,255,0.10);
  --disc:      rgba(255,255,255,0.055);
  --cross:     rgba(255,255,255,0.92);
}

/* Midnight-only: no orange TEXT anywhere — accent-coloured labels read white/75%.
   (The accent still drives button gradients, glows and borders.) */
.eyebrow, .section-label, .eyebrow__link, .footer__link,
.device-card__k, .scenario__k, .capcard__eyebrow,
.marquee__track i, .disc-hint, .phone-status__id {
  color: rgba(255, 255, 255, 0.75);
}
.eyebrow__link, .footer__link { border-bottom-color: rgba(255, 255, 255, 0.4); }
.eyebrow__link:hover, .footer__link:hover { color: #fff; border-bottom-color: #fff; }

/* Secondary buttons get a hover state too (subtle lift + brighter glass). */
.btn--ghost, .store-btn--alt {
  transition: background-color .25s ease, border-color .25s ease, transform .25s ease;
}
.btn--ghost:hover, .store-btn--alt:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-2px);
  /* soft white inner glow, like the primary buttons */
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.30),
              inset 0 0 22px rgba(255,255,255,0.16),
              0 10px 30px -16px rgba(0,0,0,.6);
}

[data-theme="studio"] {
  --bg:        #D5D6DA;
  --bg-2:      #c9cace;
  --surface:   #F4F5F7;
  --surface-2: #ffffff;
  --accent:    #FF4D00;
  --accent-ink:#ffffff;
  --text:      #1A1A1A;
  --text-dim:  #6c7177;
  --border:    rgba(0,0,0,0.10);
  --disc:      #1C1D22;
  --cross:     rgba(255,255,255,0.92);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; -webkit-text-size-adjust: 100%; }
/* fixed, GPU-composited gradient backdrop — no scroll repaint */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    radial-gradient(120% 80% at 50% -10%, color-mix(in srgb, var(--accent) 7%, transparent), transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}
body {
  /* subtle off-black gradient for depth/texture (Apple-style), theme-aware.
     Painted on a composited fixed layer (body::before) instead of
     background-attachment:fixed, which repaints the viewport on every scroll. */
  background: var(--bg);
  color: var(--text);
  /* Match the iOS app: Apple system fonts (SF Pro for text, SF Mono for labels). */
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
               system-ui, "Segoe UI", Roboto, sans-serif;
  font-size: 18px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color .6s ease, color .6s ease;
}
a { color: inherit; text-decoration: none; }
canvas { display: block; }
img { display: block; max-width: 100%; }

::selection { background: var(--accent); color: var(--accent-ink); }

/* Secondary font: Fragment Mono — only ever used for small labels (≤ 12px). */
.mono, .section-label, .eyebrow, .bento__tag,
.device-card__k, .device-card__pill, .nav__links a, .footer__meta,
.hero__scroll, .disc-hint, .footer__theme-hint {
  font-family: "Fragment Mono", ui-monospace, "SF Mono", Menlo, monospace;
  letter-spacing: .01em;
}

/* ---------- motion foundation (from the motion system) ---------- */
html.has-motion [data-motion-text],
html.has-motion [data-reveal],
html.has-motion [data-reveal-item] { visibility: hidden; }

.motion-line-mask, .motion-word-mask {
  display: inline-block; overflow: hidden; vertical-align: top;
  /* descenders (p, y, g…) live below the baseline — give the clip box room
     so the reveal mask never shears off the bottoms of letters */
  padding-bottom: 0.18em; margin-bottom: -0.18em;
}
/* line-type reveals always stack as their own lines */
[data-motion-text="lines"] .motion-line-mask { display: block; }
.motion-line, .motion-word { display: inline-block; will-change: transform, opacity; }

[data-cursor] {
  position: fixed; left: 0; top: 0; z-index: 9999; pointer-events: none;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent);
  mix-blend-mode: difference;
  transform: translate3d(-50%, -50%, 0);
  will-change: transform; display: grid; place-items: center;
}
[data-cursor] [data-cursor-label] {
  position: absolute; white-space: nowrap; font-family: "Space Mono", monospace;
  font-size: 10px; color: var(--accent); top: 18px; left: 50%;
  transform: translateX(-50%); text-transform: uppercase; letter-spacing: .1em;
}
@media (prefers-reduced-motion: reduce), (pointer: coarse) {
  [data-cursor] { display: none; }
}

/* ---------- preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 9998; background: var(--bg);
  display: grid; place-items: center;
}
.preloader__inner {
  display: flex; flex-direction: column; align-items: center; gap: 26px;
}
/* big count with a thermal-gradient fill + warm glow (on-theme) */
/* the number is the mask: a live, SWIRLING thermal disc fills it, revealed bottom→top
   (height = --pre-p) as it counts to 100, over a dim un-lit base */
.preloader__count {
  --pre-p: 0%;
  position: relative; display: inline-block;
  font-family: "Nasalization Ext", nasalization, "Outward Block", sans-serif;
  font-size: clamp(56px, 14vw, 132px); line-height: 1; letter-spacing: -0.07em;
  filter: drop-shadow(0 0 26px hsl(35 95% 55% / 0.22));
}
.preloader__count-dim, .preloader__count-fill {
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.preloader__count-dim { background-image: linear-gradient(rgba(255,255,255,0.16), rgba(255,255,255,0.16)); }
.preloader__count-fill {
  position: absolute; inset: 0;
  /* drifting thermal blobs + base wash = a swirling thermal disc */
  background-image:
    radial-gradient(42% 52% at 30% 34%, hsl(140 70% 55%), transparent 70%),
    radial-gradient(46% 56% at 72% 30%, hsl(45 95% 56%), transparent 70%),
    radial-gradient(50% 60% at 62% 74%, hsl(8 90% 54%), transparent 72%),
    radial-gradient(46% 56% at 28% 70%, hsl(28 95% 55%), transparent 72%),
    linear-gradient(120deg, hsl(60 85% 55%), hsl(20 95% 54%));
  background-size: 200% 200%;
  animation: pcSwirl 7s ease-in-out infinite, pcHue 13s linear infinite;
  /* reveal only the bottom --pre-p of the number */
  -webkit-mask: linear-gradient(to top, #000 calc(var(--pre-p) - 6%), transparent var(--pre-p));
          mask: linear-gradient(to top, #000 calc(var(--pre-p) - 6%), transparent var(--pre-p));
}
@keyframes pcSwirl {
  0%   { background-position: 0% 0%, 100% 0%, 50% 100%, 0% 100%, 0% 50%; }
  50%  { background-position: 60% 45%, 38% 62%, 28% 28%, 74% 34%, 100% 50%; }
  100% { background-position: 0% 0%, 100% 0%, 50% 100%, 0% 100%, 0% 50%; }
}
@keyframes pcHue { to { filter: hue-rotate(360deg); } }
.preloader__bar {
  width: min(42vw, 240px); height: 3px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.10); overflow: hidden;
}
.preloader__fill {
  display: block; height: 100%; width: 0%; border-radius: 999px;
  background: linear-gradient(90deg, hsl(140 60% 50%), hsl(60 85% 55%), hsl(35 95% 55%), hsl(8 88% 52%));
}

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 150;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px clamp(20px, 5vw, 60px);
  transition: background-color .4s ease, padding .4s ease, border-color .4s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border); padding-top: 14px; padding-bottom: 14px;
}
.nav__logo, .footer__logo {
  display: inline-flex; align-items: flex-end; gap: 0;
  font-family: "Nasalization Ext", nasalization, "Outward Block", -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 700; letter-spacing: -0.01em; line-height: 1; text-transform: uppercase;
  background: transparent;
}
.nav__logo { font-size: 19.5px; }
.footer__logo { font-size: 18px; }
/* the cursor arrow stands in for the "R" — raised above the baseline */
.logo-cursor { width: 0.5em; height: 0.78em; margin-left: 0.04em; align-self: flex-end;
  transform: translateY(-0.22em);
  filter: drop-shadow(0 0 8px color-mix(in srgb, var(--accent) 45%, transparent)); }
/* empty fill — the cursor reads as an outline glyph that matches the wordmark color */
.logo-cursor path { fill: none; stroke: currentColor; stroke-width: 1.3;
  stroke-linejoin: round; stroke-linecap: round; }
.nav__dot { width: 11px; height: 11px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 14px var(--accent); }
.nav__links { display: flex; align-items: center; gap: clamp(14px, 3vw, 34px); font-size: 12px; text-transform: uppercase; }
.nav__links a { color: var(--text-dim); transition: color .3s ease; }
.nav__links a:hover { color: var(--text); }
.nav__cta {
  color: var(--accent-ink) !important; background: var(--accent);
  padding: 9px 18px; border-radius: 999px;
}

/* ---------- shared type ---------- */
.eyebrow, .section-label {
  display: inline-block; font-size: 12px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 22px;
}
.section-label { color: var(--text-dim); }
.h2 { font-size: clamp(40px, 8vw, 96px); font-weight: 600; line-height: 0.98; letter-spacing: -0.02em; }

/* ---------- hero (centered, single focal disc) ---------- */
.hero {
  isolation: isolate;
  position: relative; min-height: 100svh; display: flex; flex-direction: column;
  align-items: center; justify-content: flex-start; text-align: center;
  gap: clamp(20px, 3.5vw, 40px); padding: clamp(120px, 15vh, 150px) clamp(20px, 5vw, 70px) 80px;
}
.hero__glow {
  position: absolute; width: 92vw; height: 92vw; max-width: 1000px; max-height: 1000px;
  left: 50%; top: 52%; transform: translate(-50%, -50%); border-radius: 50%;
  pointer-events: none; z-index: 0;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 18%, transparent), transparent 60%);
}
.hero__inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; max-width: 1000px; }
.hero__title {
  font-size: clamp(38px, 7.7vw, 80px); font-weight: 700; line-height: 0.98;
  letter-spacing: -0.03em; margin-bottom: 22px;
}
.hero__title .motion-line-mask { display: block; }
.hero__sub { font-size: clamp(17px, 2.1vw, 22px); color: var(--text-dim); max-width: 42ch; margin-bottom: 36px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px; font-weight: 600; font-size: 16px;
  border: 1px solid var(--border); transition: transform .4s cubic-bezier(.2,.8,.2,1), background-color .3s ease, color .3s ease;
}
.btn--primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn--primary svg { transition: transform .4s ease; }
.btn--primary:hover svg { transform: translateY(3px); }
.btn--ghost { background: transparent; color: var(--text); }
.btn--ghost:hover { background: var(--surface); }

/* Midnight — PRIMARY buttons: dark glass with the thermal rainbow glow CONTAINED
   inside the capsule (clipped), showing softly through the glass. */
[data-theme="midnight"] .btn--primary,
[data-theme="midnight"] .nav__cta,
[data-theme="midnight"] .store-btn:not(.store-btn--alt) {
  position: relative; overflow: hidden; isolation: isolate;
  background: rgba(15, 15, 19, 0.88) !important;   /* dark glass — keeps the gradient subtle */
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  /* a crisp edge: bright hairline at the top, faint at the bottom */
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), inset 0 -1px 0 rgba(255, 255, 255, 0.06);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}
/* the thermal gradient pooled at the BOTTOM, dissolving into the dark toward the top */
[data-theme="midnight"] .btn--primary::before,
[data-theme="midnight"] .nav__cta::before,
[data-theme="midnight"] .store-btn:not(.store-btn--alt)::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  /* match the thermal disc's live palette: green -> yellow -> orange -> red */
  background: linear-gradient(110deg,
    hsl(140 60% 48%), hsl(70 80% 52%), hsl(45 92% 54%), hsl(28 95% 53%), hsl(10 88% 52%));
  -webkit-mask: linear-gradient(to top, #000 0%, rgba(0,0,0,0.55) 34%, transparent 78%);
          mask: linear-gradient(to top, #000 0%, rgba(0,0,0,0.55) 34%, transparent 78%);
  filter: blur(6px); opacity: 0.7; transition: opacity .3s ease;
}
[data-theme="midnight"] .btn--primary:hover::before,
[data-theme="midnight"] .nav__cta:hover::before,
[data-theme="midnight"] .store-btn:not(.store-btn--alt):hover::before { opacity: 0.92; }
/* Midnight — SECONDARY buttons: plain dark glass, no rainbow */
[data-theme="midnight"] .btn--ghost,
[data-theme="midnight"] .store-btn--alt {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
}
/* Midnight — the small accent labels read as white/75% (not orange) */
[data-theme="midnight"] .eyebrow,
[data-theme="midnight"] .section-label,
[data-theme="midnight"] .eyebrow__link,
[data-theme="midnight"] .footer__link,
[data-theme="midnight"] .phone-status__id { color: rgba(255, 255, 255, 0.75); }
[data-theme="midnight"] .eyebrow__link,
[data-theme="midnight"] .footer__link { text-decoration-color: rgba(255, 255, 255, 0.4); }

.hero__stage { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 22px; }
/* the hero presented as the real app inside an outlined iPhone — true phone proportions */
.phone-frame {
  position: relative; display: flex; flex-direction: column; align-items: center;
  justify-content: space-between; gap: 0;
  width: min(50vh, 300px); aspect-ratio: 9 / 19.5;
  padding: 52px 18px 30px; border: 2px solid color-mix(in srgb, var(--text) 30%, transparent);
  border-radius: 16% / 7.4%;
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 30%, transparent), color-mix(in srgb, var(--surface) 12%, transparent));
  box-shadow: inset 0 1px 0 color-mix(in srgb, #fff 7%, transparent), 0 60px 100px -50px rgba(0,0,0,.7);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
}
.phone-frame__island {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  width: 92px; height: 24px; border-radius: 14px;
  background: color-mix(in srgb, var(--text) 16%, transparent);
}
.phone-status { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 0 6px; }
.phone-status__id { display: inline-flex; align-items: center; gap: 7px; color: var(--accent);
  font: 600 11px "Fragment Mono", ui-monospace, monospace; letter-spacing: .5px; }
.phone-status__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.phone-status__icons { display: inline-flex; gap: 12px; color: var(--text-dim); }
/* Mouse mode: the trackpad fills the screen edge-to-edge (like the app). */
.phone-frame .disc-wrap { width: calc(100% + 30px); }
/* Remote mode: a smaller, centred navigation pad. */
.phone-frame.is-remote .disc-wrap { width: min(42vh, 224px); }
.disc-wrap { position: relative; width: min(30vh, 300px); aspect-ratio: 1; isolation: isolate; margin: 0; }
.disc-wrap canvas { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%;
  cursor: none; }   /* over the pad the OS arrow hides; the finger circle takes over */
.disc-wrap [data-trackpad-canvas] { z-index: 2;   /* crosshair/UI layer, above the GL thermal */
  box-shadow: 0 40px 120px -40px color-mix(in srgb, var(--accent) 40%, transparent); }
.disc-wrap [data-thermal-gl] { z-index: 1; display: none; }   /* WebGL thermal, shown only on Midnight */
/* a fingerprint pressed into the pad, fading slowly like a heat residue */
.fingerprint-mark {
  position: absolute; z-index: 3; pointer-events: none; width: 48px; height: 68px;
  /* difference blend → the print takes on inverted thermal tones and shifts as the
     gradient moves beneath it — organic, reactive, part of the field (clipped to the
     circle per-element via clip-path set in JS) */
  background: rgba(235, 238, 240, 0.82);
  mix-blend-mode: exclusion;
  -webkit-mask: url("./fingerprint.svg") center / contain no-repeat;
          mask: url("./fingerprint.svg") center / contain no-repeat;
  opacity: 0; animation: fpFade 3.6s ease-out forwards;
}
/* opacity-only fade — NO transform, so the circular clip-path stays exactly aligned to the disc */
@keyframes fpFade {
  0%   { opacity: 0; }
  14%  { opacity: 0.9; }
  100% { opacity: 0; }
}
/* the cursor "becomes a circle" (a fingertip) while over the trackpad */
.disc-finger {
  position: absolute; left: 0; top: 0; z-index: 4; pointer-events: none;
  width: 32px; height: 32px; border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.06), 0 2px 12px rgba(0, 0, 0, 0.25);
  transform: translate(-50%, -50%); will-change: transform; opacity: 0; transition: opacity .2s ease;
}
.disc-finger.is-on { opacity: 1; }
@media (pointer: coarse) { .disc-finger { display: none; } }
.disc-hint {
  position: absolute; bottom: -32px; left: 50%; transform: translateX(-50%);
  font-size: 10px; text-transform: uppercase; color: var(--text-dim); white-space: nowrap;
}
/* mouse vs remote toggle — mirrors the app's liquid-glass tab bar */
.mode-toggle { position: relative; display: flex; align-items: center; gap: 6px; padding: 6px;
  width: min(88%, 248px);
  border-radius: 999px; border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 12px 34px -14px rgba(0,0,0,.55); }
/* the highlighted pill that SLIDES between the two tabs */
.mode-toggle::before {
  content: ""; position: absolute; z-index: 0; top: 6px; bottom: 6px; left: 6px;
  width: calc((100% - 12px - 6px) / 2); border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  transition: transform .36s cubic-bezier(.22,.9,.25,1);
}
.mode-toggle.is-remote::before { transform: translateX(calc(100% + 6px)); }
.mode-toggle__btn {
  position: relative; z-index: 1; flex: 1 1 0;
  appearance: none; border: 0; cursor: pointer; font: inherit; font-size: 14px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 8px; border-radius: 999px;
  background: transparent; color: var(--text-dim); transition: color .3s ease;
}
.mode-toggle__btn.is-on { color: var(--accent); }
/* Midnight: white text + icon, and a white (not orange) selected highlight */
[data-theme="midnight"] .mode-toggle::before { background: rgba(255, 255, 255, 0.18); }
[data-theme="midnight"] .mode-toggle__btn.is-on { color: #fff; }
.mode-ico { width: 17px; height: 17px; }

/* ---------- Remote-mode-only controls (mirror the app screen) ---------- */
.remote-only { display: none; }
.phone-frame.is-remote .remote-only { display: flex; }
/* target picker: Mac / Apple TV / Fire TV / Google TV (compact segmented) */
.target-picker { width: 100%; gap: 2px; padding: 3px; border-radius: 999px;
  border: 1px solid var(--border); background: color-mix(in srgb, var(--surface) 55%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.target-picker__opt { flex: 1 1 0; text-align: center; white-space: nowrap;
  padding: 5px 2px; border-radius: 999px; color: var(--text-dim);
  font: 600 10px -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Helvetica Neue", sans-serif;
  letter-spacing: -0.01em;
  transition: background-color .25s ease, color .25s ease; }
.target-picker__opt.is-on { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }
[data-theme="midnight"] .target-picker__opt.is-on { background: rgba(255,255,255,0.16); color: #fff; }
/* Back · Settings · Home round buttons */
.remote-actions { gap: 16px; justify-content: center; }
.remote-actions__btn { width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; color: var(--text-dim);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 40%, transparent), color-mix(in srgb, var(--surface) 14%, transparent));
  box-shadow: inset 0 1px 0 color-mix(in srgb, #fff 10%, transparent), 0 8px 18px -10px rgba(0,0,0,.6);
  transition: transform .15s ease, color .2s ease; }
.remote-actions__btn:hover { color: var(--text); transform: translateY(-1px); }
.remote-actions__btn:active { transform: scale(.94); }

/* ---------- Apple-TV-style app switcher (Remote mode) ----------
   No dark scrim — just blurs whatever is behind it. The tile row floats just
   above the phone, overlapping its top edge a little (positioned in JS). */
.appswitcher {
  position: fixed; inset: 0; z-index: 70;
  background: transparent;
  -webkit-backdrop-filter: blur(6px) saturate(1.03); backdrop-filter: blur(6px) saturate(1.03);
  opacity: 0; pointer-events: none; transition: opacity .35s ease;
}
.appswitcher.is-on { opacity: 1; }
.appswitcher__row {
  position: fixed; left: 50%; top: 38%; transform: translate(-50%, -50%);
  display: flex; gap: clamp(10px, 1.4vw, 18px);
}
.appswitcher__tile {
  width: clamp(72px, 8.5vw, 104px); aspect-ratio: 1; border-radius: 22.5%;
  overflow: hidden;                          /* transform owned by GSAP (entrance + focus pop) */
  box-shadow: 0 14px 36px -16px rgba(0,0,0,.65);
  transition: box-shadow .3s ease;
}
.appswitcher__tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.appswitcher__tile.is-focused {
  box-shadow: 0 0 0 3px #fff, 0 22px 54px -18px rgba(0,0,0,.8);
}
.mode-hint { text-align: center; font-family: "Fragment Mono", ui-monospace, monospace;
  font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-dim); }

/* B150 links */
.eyebrow__link, .footer__link { color: var(--accent); text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); transition: border-color .2s ease; }
.eyebrow__link:hover, .footer__link:hover { border-bottom-color: var(--accent); }
/* remote mode: pad is clickable (D-pad), not a cursor surface */
.disc-wrap.is-remote canvas { cursor: pointer; }
/* tvOS-style focus ring on navigable elements */
.tv-focus { box-shadow: 0 0 0 2px var(--accent), 0 0 22px color-mix(in srgb, var(--accent) 55%, transparent) !important;
  transition: box-shadow .2s ease; }

.hero__scroll {
  position: absolute; bottom: 26px; left: clamp(20px, 5vw, 70px); z-index: 2;
  display: flex; align-items: center; gap: 12px; font-size: 11px; text-transform: uppercase; color: var(--text-dim);
}
.hero__scroll-line { width: 60px; height: 1px; background: var(--text-dim); position: relative; overflow: hidden; }
.hero__scroll-line::after { content:""; position:absolute; inset:0; width:40%; background: var(--accent); animation: scrollLine 2.2s infinite; }
@keyframes scrollLine { 0%{transform:translateX(-100%);} 100%{transform:translateX(260%);} }

/* ---------- marquee ---------- */
.marquee { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); overflow: hidden; padding: 18px 0; }
.marquee__track { display: inline-flex; align-items: center; gap: 26px; white-space: nowrap; font-size: clamp(22px, 4vw, 44px); font-weight: 700; will-change: transform; }
.marquee__track i { color: var(--accent); font-style: normal; }

/* ---------- intro ---------- */
.intro { padding: clamp(90px, 16vw, 200px) clamp(40px, 11vw, 200px); max-width: none; margin: 0 auto; }
.intro__statement { font-size: clamp(28px, 5vw, 64px); font-weight: 500; line-height: 1.04; letter-spacing: -0.015em; max-width: none; }

/* ---------- features ---------- */
.features { padding: clamp(40px, 8vw, 90px) clamp(20px, 5vw, 70px) clamp(80px, 12vw, 160px); }
.features__head { margin-bottom: clamp(40px, 6vw, 70px); }
/* bento: one featured cell (Trackpad) + two stacked */
.bento { display: grid; grid-template-columns: 1.5fr 1fr; grid-auto-rows: 1fr; gap: 16px; }
.bento__cell {
  position: relative; padding: clamp(26px, 3vw, 40px); border-radius: var(--corner-lg);
  background: var(--surface); border: 1px solid var(--border);
  display: flex; flex-direction: column; justify-content: space-between; gap: 26px;
  min-height: 230px; overflow: hidden;
  transition: background-color .4s ease, transform .5s cubic-bezier(.2,.8,.2,1);
}
.bento__cell:hover { background: var(--surface-2); }
.bento__cell--lg { grid-row: span 2; }
.bento__cell .eyebrow { margin-bottom: 0; }
.bento__cell h3 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 600; letter-spacing: -0.01em; margin-bottom: 10px; }
.bento__cell--lg h3 { font-size: clamp(30px, 4.4vw, 56px); line-height: 1.02; }
.bento__cell p { color: var(--text-dim); font-size: 16px; max-width: 44ch; }
.bento__tag { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-dim); }

/* ---------- webgl demo (phone trackpad → cursor) ---------- */
.webgl { padding: clamp(80px, 12vw, 150px) clamp(20px, 5vw, 70px) clamp(60px, 8vw, 110px); }
.webgl__head { max-width: 760px; margin: 0 auto clamp(20px, 3vw, 40px); text-align: center; }
.webgl__title { font-size: clamp(40px, 8vw, 96px); font-weight: 600; line-height: 0.98; letter-spacing: -0.02em; }
.webgl__title .motion-line-mask { display: block; }
.webgl__copy { margin: 24px auto 0; max-width: 52ch; color: var(--text-dim); font-size: clamp(16px, 2vw, 20px); }
.webgl__stage { position: relative; width: 100%; height: min(72vh, 720px); }
.webgl__stage canvas { width: 100%; height: 100%; display: block; touch-action: none; }
.webgl__fallback { position: absolute; inset: 0; display: grid; place-items: center;
  color: var(--text-dim); font-family: "Fragment Mono", ui-monospace, monospace; font-size: 12px; }
.webgl__fallback[hidden] { display: none; }

/* ---------- devices (pinned horizontal) ---------- */
.devices { position: relative; }
.devices__sticky { height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: 40px; overflow: hidden; }
.devices__head { padding: 0 clamp(20px, 5vw, 70px); }
.devices__track { display: flex; gap: 26px; padding: 0 clamp(20px, 5vw, 70px); will-change: transform; }
.device-card {
  flex: 0 0 min(78vw, 460px); border-radius: var(--corner-lg);
  background: var(--surface); border: 1px solid var(--border);
  padding: 40px 36px; min-height: 52vh; display: flex; flex-direction: column;
}
.device-card__k { font-size: 12px; color: rgba(255,255,255,0.75); text-transform: uppercase; }
.device-card h3 { font-size: clamp(40px, 6vw, 76px); font-weight: 600; margin: auto 0 14px; letter-spacing: -0.02em; }
.device-card p { color: var(--text-dim); max-width: 36ch; }
.device-card__pill { margin-top: 22px; align-self: flex-start; font-size: 11px; text-transform: uppercase;
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border); color: var(--text-dim); }

/* ---------- download ---------- */
.download { position: relative; overflow: hidden; text-align: center;
  padding: clamp(120px, 20vw, 240px) clamp(20px, 5vw, 70px); }
.download__glow {
  position: absolute; width: 80vw; height: 80vw; max-width: 1000px; max-height: 1000px;
  left: 50%; top: 50%; transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none; z-index: 0;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 18%, transparent), transparent 60%);
  filter: blur(30px);
}
.download__title { position: relative; z-index: 2; font-size: clamp(40px, 9vw, 120px); font-weight: 700; line-height: 0.95; letter-spacing: -0.03em; }
.download__title .motion-line-mask { display: block; }
.download__sub { position: relative; z-index: 2; margin: 26px auto 40px; max-width: 56ch; color: var(--text-dim); font-size: clamp(16px, 2vw, 20px); }
.download__buttons { position: relative; z-index: 2; display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; margin-top: clamp(40px, 5vw, 64px); }
.store-btn {
  display: inline-flex; align-items: center; gap: 14px; padding: 16px 26px;
  border-radius: 16px; background: var(--text); color: var(--bg);
  transition: transform .4s cubic-bezier(.2,.8,.2,1); will-change: transform;
}
.store-btn--alt { background: transparent; color: var(--text); border: 1px solid var(--border); }
.store-btn__txt { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.store-btn__txt small { font-size: 11px; opacity: .7; }
.store-btn__txt strong { font-size: 19px; font-weight: 600; }
.download__note { position: relative; z-index: 2; margin-top: clamp(32px, 4vw, 48px); font-size: 14px; line-height: 1.6; color: var(--text-dim); max-width: 52ch; margin-left: auto; margin-right: auto; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 40px clamp(20px, 5vw, 70px); }
.footer__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer__row--sub { margin-top: 18px; font-size: 13px; color: var(--text-dim); }
.footer__logo { font-size: 15.75px; }
.footer__meta { font-size: 12px; color: var(--text-dim); }
.footer__theme-hint { font-size: 12px; }

/* ---------- gestures ---------- */
.gestures { padding: clamp(70px, 11vw, 140px) clamp(20px, 5vw, 70px); }
.gestures__head, .themes__head, .capabilities__head { max-width: 760px; margin: 0 auto clamp(40px, 6vw, 70px); text-align: center; }
.gestures__copy, .themes__copy { margin: 20px auto 0; max-width: 50ch; color: var(--text-dim); font-size: clamp(15px, 1.8vw, 19px); }
.gesture-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 1100px; margin: 0 auto; }
.gesture { background: var(--surface); border: 1px solid var(--border); border-radius: var(--corner-lg); padding: 22px; }
.gesture h4 { font-size: 18px; font-weight: 600; margin: 18px 0 6px; }
.gesture p { color: var(--text-dim); font-size: 14px; }
.g-pad {
  position: relative; height: 150px; border-radius: var(--corner-sm); overflow: hidden;
  /* a faint, drifting thermal field — like a mini thermal disc behind the gesture */
  background:
    radial-gradient(42% 58% at 28% 32%, hsl(140 65% 52% / 0.16), transparent 65%),
    radial-gradient(44% 60% at 72% 66%, hsl(18 95% 54% / 0.15), transparent 65%),
    radial-gradient(38% 52% at 62% 22%, hsl(45 92% 55% / 0.12), transparent 60%),
    var(--bg-2);
  background-size: 180% 180%, 190% 190%, 170% 170%, 100% 100%;
  border: 1px solid var(--border);
  animation: gPadDrift 11s ease-in-out infinite;
}
@keyframes gPadDrift {
  0%, 100% { background-position: 0% 0%, 100% 100%, 50% 0%, 0 0; }
  50%      { background-position: 28% 22%, 72% 74%, 38% 30%, 0 0; }
}
/* comet smear-trails behind the moving dots (motion runs one way, then resets) */
.g-scroll { box-shadow: 0 -12px 16px -6px hsl(35 95% 55% / 0.55), 0 -22px 22px -10px hsl(35 95% 55% / 0.30); }
.g-swipe  { box-shadow: -14px 0 16px -6px hsl(35 95% 55% / 0.55), -26px 0 24px -10px hsl(35 95% 55% / 0.30); }
.g-drag   { box-shadow: -10px -10px 16px -6px hsl(35 95% 55% / 0.5), -20px -20px 24px -10px hsl(35 95% 55% / 0.28); }
/* "Trails & haptics" pad buzzes, like the tactile feedback it describes */
.g-pad--buzz { animation: gPadDrift 11s ease-in-out infinite, gBuzz 0.12s linear infinite; }
@keyframes gBuzz {
  0%, 100% { transform: translate(0, 0); }
  25%      { transform: translate(0.8px, -0.6px); }
  50%      { transform: translate(-0.7px, 0.7px); }
  75%      { transform: translate(0.6px, 0.5px); }
}
@media (prefers-reduced-motion: reduce) { .g-pad--buzz { animation: gPadDrift 11s ease-in-out infinite; } }
.g-pad--split::before { content:""; position:absolute; left:50%; top:14%; bottom:14%; width:1px; background: var(--border); }
.g-finger { position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; border-radius: 50%;
  background: radial-gradient(circle at 50% 38%, hsl(140 65% 55%), hsl(55 92% 58%) 45%, hsl(30 95% 55%) 72%, hsl(8 88% 52%));
  box-shadow: 0 0 16px hsl(35 95% 55% / 0.6); transform: translate(-50%, -50%); }
/* two-finger scroll */
.g-scroll { animation: gScroll 2.6s ease-in-out infinite; margin-left: -14px; }
.g-scroll--2 { margin-left: 14px; }
@keyframes gScroll { 0%,100% { transform: translate(-50%, -130%); } 45% { transform: translate(-50%, 40%); } 60% { transform: translate(-50%, 64%); opacity:.6 } 75% { opacity:0 } 76%{ transform: translate(-50%,-130%); opacity:0 } 90%{ opacity:1 } }
/* pinch */
.g-pinch { animation: gPinch 2.4s ease-in-out infinite; }
.g-pinch--a { animation-name: gPinchA; }
.g-pinch--b { animation-name: gPinchB; }
@keyframes gPinchA { 0%,100%{ transform: translate(-160%, -50%);} 50%{ transform: translate(-40%, -50%);} }
@keyframes gPinchB { 0%,100%{ transform: translate(60%, -50%);} 50%{ transform: translate(-60%, -50%);} }
/* three-finger swipe */
.g-swipe { animation: gSwipe 2.6s ease-in-out infinite; margin-top: -22px; }
.g-swipe--2 { margin-top: 0; animation-delay: .04s; }
.g-swipe--3 { margin-top: 22px; animation-delay: .08s; }
@keyframes gSwipe { 0%,18%{ transform: translate(-180%,-50%); opacity:0 } 30%{opacity:1} 70%{ transform: translate(120%,-50%); opacity:1 } 82%,100%{ transform: translate(160%,-50%); opacity:0 } }
/* drag-select */
.g-drag { animation: gDrag 3s ease-in-out infinite; }
.g-sel { position:absolute; left:34%; top:42%; width:0; height:0; border:1px solid hsl(35 95% 55%);
  background: hsl(35 95% 55% / 0.16); animation: gSel 3s ease-in-out infinite; }
@keyframes gDrag { 0%,15%{ transform: translate(-180%,-110%);} 70%,100%{ transform: translate(60%,60%);} }
@keyframes gSel { 0%,15%{ width:0; height:0; opacity:0 } 25%{opacity:1} 70%,100%{ width:34%; height:30%; opacity:1 } }
/* tap left/right */
.g-tap { position:absolute; top:50%; width:22px; height:22px; border-radius:50%; transform: translate(-50%,-50%);
  border:2px solid hsl(40 92% 56%); }
.g-tap--l { left:27%; animation: gTap 2.2s ease-in-out infinite; }
.g-tap--r { left:73%; animation: gTap 2.2s ease-in-out infinite 1.1s; }
@keyframes gTap { 0%,40%,100%{ transform: translate(-50%,-50%) scale(.5); opacity:0 } 12%{ opacity:1 } 24%{ transform: translate(-50%,-50%) scale(1.4); opacity:0 } }
/* trail */
.g-trail { animation: gTrail 3.4s ease-in-out infinite; box-shadow: 0 0 22px 6px hsl(35 95% 55% / 0.55); }
@keyframes gTrail { 0%{ transform: translate(-150%,30%);} 50%{ transform: translate(120%,-40%);} 100%{ transform: translate(-150%,30%);} }
@media (prefers-reduced-motion: reduce) { .g-finger, .g-tap, .g-sel { animation: none !important; } }

/* ---------- themes showcase ---------- */
.themes { padding: clamp(70px, 11vw, 140px) clamp(20px, 5vw, 70px); }
.theme-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 4vw, 50px); max-width: 1100px; margin: 0 auto; }
.theme-card {
  appearance: none; background: none; border: 0; cursor: pointer; color: inherit; font: inherit;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px;
  padding: 14px; border-radius: 28px; transition: transform .4s cubic-bezier(.2,.8,.2,1), background-color .3s ease;
}
.theme-card:hover { transform: translateY(-4px); }
.theme-card[aria-current="true"] { background: var(--surface); }
.theme-disc { width: min(24vw, 240px); aspect-ratio: 1; border-radius: 50%;
  box-shadow: 0 30px 80px -40px color-mix(in srgb, var(--accent) 35%, transparent);
  outline: 2px solid transparent; outline-offset: 8px; transition: outline-color .3s ease; }
.theme-card[aria-current="true"] .theme-disc { outline-color: var(--accent); }
.theme-card__cap { display: flex; flex-direction: column; gap: 4px; }
.theme-card strong { font-size: 19px; font-weight: 600; }
.theme-card__cap span { color: var(--text-dim); font-size: 14px; }

/* ---------- capabilities ---------- */
.capabilities { padding: clamp(70px, 11vw, 140px) clamp(20px, 5vw, 70px); }
.cap-grid { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  max-width: 1200px; margin: 0 auto; background: var(--border); border: 1px solid var(--border); border-radius: var(--corner-lg); overflow: hidden; }
.cap-grid li { background: var(--bg); padding: 24px 22px; display: flex; flex-direction: column; gap: 6px;
  transition: background-color .3s ease; }
.cap-grid li:hover { background: var(--surface); }
.cap-grid strong { font-size: 16px; font-weight: 600; }
.cap-grid span { color: var(--text-dim); font-size: 13px; }

/* ---------- "Everything it does" visual bento ---------- */
.capbento {
  max-width: 1120px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(168px, auto); gap: 14px;
}
.capcard {
  position: relative; overflow: hidden; border-radius: var(--corner-lg, 22px);
  padding: 26px 24px; display: flex; flex-direction: column; gap: 10px;
  border: 1px solid var(--border);
  /* warm "thermal glass" tint — accent glow from the top over the glass depth */
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 13%, transparent), transparent 55%),
    linear-gradient(180deg, color-mix(in srgb, var(--surface) 42%, transparent), color-mix(in srgb, var(--surface) 14%, transparent));
  box-shadow: inset 0 1px 0 color-mix(in srgb, #fff 8%, transparent), 0 24px 60px -40px rgba(0,0,0,.7);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .35s ease;
}
.capcard:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
.capcard__eyebrow { font: 600 11px "Fragment Mono", ui-monospace, monospace; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent); }
[data-theme="midnight"] .capcard__eyebrow { color: rgba(255,255,255,0.75); }
.capcard h3 { font-size: clamp(18px, 1.7vw, 23px); font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; }
.capcard p { color: var(--text-dim); font-size: 14px; line-height: 1.5; }

/* big feature card carries the live thermal disc */
.capcard--feature { grid-column: span 2; grid-row: span 2; justify-content: flex-end; min-height: 360px; }
.capcard__disc {
  position: absolute; width: 78%; max-width: 420px; aspect-ratio: 1; right: -8%; top: -14%;
  object-fit: contain; pointer-events: none;
  filter: drop-shadow(0 30px 80px rgba(0,0,0,.55));
  -webkit-mask: radial-gradient(circle at 50% 50%, #000 60%, transparent 100%);
          mask: radial-gradient(circle at 50% 50%, #000 60%, transparent 100%);
}
/* the Mac cursor sitting on the thermal disc */
.capcard__cursor { position: absolute; z-index: 2; right: 30%; top: 30%; pointer-events: none;
  filter: drop-shadow(0 10px 22px rgba(0,0,0,.55)); }
.capcard--feature .capcard__text { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 10px; max-width: 30ch; }

/* big-number stat cards */
.capcard--stat { align-items: flex-start; justify-content: center; gap: 6px; }
.capcard__num {
  font-family: "Nasalization Ext", nasalization, sans-serif; font-weight: 700;
  font-size: clamp(58px, 8vw, 104px); line-height: 0.9; letter-spacing: -0.04em;
  background: linear-gradient(125deg, hsl(140 60% 52%), hsl(60 85% 56%), hsl(35 95% 56%), hsl(8 88% 54%));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 18px color-mix(in srgb, hsl(35 95% 55%) 30%, transparent));
}
.capcard__icon { display: block; margin: 2px 0 6px; filter: drop-shadow(0 4px 16px color-mix(in srgb, hsl(35 95% 55%) 28%, transparent)); }
.capcard__cap { font-size: 15px; font-weight: 600; line-height: 1.25; }
.capcard__cap small { display: block; margin-top: 5px; font-weight: 400; font-size: 12.5px; color: var(--text-dim); letter-spacing: .01em; }
/* the featured accent card carries a slightly stronger thermal glow */
.capcard--accent { background:
  linear-gradient(180deg, color-mix(in srgb, var(--accent) 24%, transparent), transparent 62%),
  linear-gradient(180deg, color-mix(in srgb, var(--surface) 42%, transparent), color-mix(in srgb, var(--surface) 14%, transparent)); }

/* wide "feels physical" card with chip row */
.capcard--wide { grid-column: span 2; justify-content: center; }
.capcard__chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.capcard__chips li {
  font: 600 13px -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Helvetica Neue", sans-serif;
  letter-spacing: -0.01em;
  padding: 6px 12px; border-radius: 999px; color: var(--text-dim);
  border: 1px solid var(--border); background: color-mix(in srgb, var(--surface) 40%, transparent);
}

@media (max-width: 900px) {
  .capbento { grid-template-columns: repeat(2, 1fr); }
  .capcard--feature { grid-column: span 2; grid-row: span 1; min-height: 320px; }
  .capcard--wide { grid-column: span 2; }
}
@media (max-width: 560px) {
  .capbento { grid-template-columns: 1fr; }
  .capcard--feature, .capcard--wide { grid-column: span 1; }
}

/* ---------- intro statement: thermal "write-on" (scroll-scrubbed) ---------- */
/* ONE thermal gradient spans the whole block (each word renders its own slice of it,
   sized/positioned in JS), and the colours slowly rotate. The scrub fades the words
   in left→right so the sentence "writes on" in thermal ink as you scroll. */
.intro__statement[data-thermal-writeon] {
  animation: woHue 8s linear infinite;          /* faster colour rotation */
}
@keyframes woHue { to { filter: hue-rotate(360deg); } }
.intro__statement[data-thermal-writeon] .wo-word {
  display: inline-block;
  /* the thermal disc's own texture: drifting radial blobs over a warm wash, sliced
     across the whole block (size/position set in JS) so it reads as one field */
  background-image:
    radial-gradient(38% 60% at 22% 30%, hsl(140 70% 55%), transparent 60%),
    radial-gradient(40% 64% at 58% 24%, hsl(48 95% 57%), transparent 60%),
    radial-gradient(44% 66% at 80% 64%, hsl(8 90% 54%), transparent 62%),
    radial-gradient(40% 62% at 34% 72%, hsl(28 95% 55%), transparent 62%),
    radial-gradient(36% 58% at 64% 88%, hsl(140 55% 50%), transparent 60%),
    linear-gradient(108deg, hsl(60 85% 55%), hsl(20 95% 54%));
  background-repeat: no-repeat;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  opacity: 0.13; will-change: opacity;
}

/* ---------- scenarios ---------- */
.scenarios { padding: clamp(70px, 11vw, 140px) clamp(20px, 5vw, 70px); max-width: 1200px; margin: 0 auto; }
.scenarios__head { max-width: 760px; margin: 0 auto clamp(40px, 6vw, 70px); text-align: center; }
.scenario-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.scenario { padding: clamp(24px, 2.6vw, 34px); border-radius: var(--corner-lg);
  background: var(--surface); border: 1px solid var(--border); }
.scenario__k { display: block; font-size: clamp(18px, 2vw, 22px); font-weight: 600; letter-spacing: -0.01em; margin-bottom: 12px; }
.scenario p { color: var(--text-dim); font-size: 15px; }

/* ---------- premium surface polish (subtle gradient + top highlight) ---------- */
.bento__cell, .gesture, .device-card, .scenario, .cap-grid li {
  /* warm "thermal glass" tint to match the bento accent cards */
  background-image:
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 13%, transparent), transparent 55%),
    linear-gradient(180deg, color-mix(in srgb, var(--surface) 88%, #fff 6%), var(--surface));
  box-shadow: inset 0 1px 0 color-mix(in srgb, #fff 7%, transparent);
}
[data-theme="studio"] .bento__cell, [data-theme="studio"] .gesture,
[data-theme="studio"] .device-card, [data-theme="studio"] .scenario, [data-theme="studio"] .cap-grid li {
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero { padding-top: 116px; }
  .disc-wrap { width: min(64vw, 360px); }
  .bento { grid-template-columns: 1fr; }
  .bento__cell--lg { grid-row: auto; }
  .gesture-grid { grid-template-columns: 1fr 1fr; }
  .theme-row { grid-template-columns: 1fr; gap: 40px; }
  .theme-disc { width: min(60vw, 280px); }
  .cap-grid { grid-template-columns: 1fr 1fr; }
  .nav__links a:not(.nav__cta) { display: none; }
}
@media (max-width: 560px) {
  .gesture-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .theme-switch { top: 12px; right: 12px; }
}

/* ---------- iridescent sheen + subtle hover tilt on all cards ---------- */
.capcard, .device-card, .scenario, .gesture {
  position: relative;
  transform-style: preserve-3d;
  /* snappy enough that the tilt tracks the cursor, quick to settle on exit */
  transition: transform .2s ease, border-color .35s ease, box-shadow .35s ease;
  will-change: transform;
}
/* a faint oil-on-water shimmer in the thermal-disc spectrum; `screen` only
   lightens, so it tints the dark glass without ever muddying the text */
.capcard::after, .device-card::after, .scenario::after, .gesture::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  pointer-events: none; z-index: 1;
  background: linear-gradient(105deg,
    hsla(140, 85%, 60%, 0)    0%,
    hsla(95,  90%, 60%, 0.10) 18%,
    hsla(55,  95%, 60%, 0.13) 38%,
    hsla(30,  95%, 58%, 0.11) 58%,
    hsla(8,   90%, 56%, 0.10) 78%,
    hsla(320, 80%, 62%, 0)    100%);
  background-size: 220% 220%;
  background-position: var(--iri-x, 50%) var(--iri-y, 50%);
  opacity: 0.35;
  mix-blend-mode: screen;
  transition: opacity .45s ease;
}
.capcard:hover::after, .device-card:hover::after,
.scenario:hover::after, .gesture:hover::after { opacity: 0.85; }
/* touch devices: no hover/tilt, drop the per-pointer sheen work */
@media (pointer: coarse) {
  .capcard::after, .device-card::after, .scenario::after, .gesture::after { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .capcard, .device-card, .scenario, .gesture { transition: border-color .35s ease; }
}
