/* ============ tokens ============ */
:root {
  --bg: #f5f5f7;
  --fg: #1d1d1f;
  --mut: #6e6e73;
  --dim: #a1a1a6;
  --faint: #d2d2d7;
  --card: #ffffff;
  --line: rgba(0, 0, 0, 0.07);
  --line-2: rgba(0, 0, 0, 0.12);
  --glass: rgba(255, 255, 255, 0.72);
  --btn: #1d1d1f;
  --btn-fg: #ffffff;
  --ghost: rgba(0, 0, 0, 0.05);
  --acc: #e8541e;
  --acc-2: #ff8a3d;
  --acc-grad: linear-gradient(135deg, #ff8a3d, #e8541e);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04), 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 1px 2px rgba(0, 0, 0, 0.04), 0 14px 34px -10px rgba(0, 0, 0, 0.16);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.04), 0 40px 80px -24px rgba(0, 0, 0, 0.28);
  --icon-shadow: 0 14px 28px -10px rgba(0, 0, 0, 0.38), 0 2px 5px rgba(0, 0, 0, 0.1);
  --refl: 0.32;
  --sheen: rgba(255, 255, 255, 0.95);
  --sheen-line: rgba(0, 0, 0, 0.09);
  --sheen-base: rgba(255, 255, 255, 0.45);

  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;
  --dot: 'Doto', 'Courier New', ui-monospace, monospace; /* dot-matrix, Nothing-style */
  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1240px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  /* hero rail: columns of two stacked icons */
  --cw: calc(var(--pw) * 0.43);
  --cgap: calc(var(--cw) * 0.08);
  --ch: calc(var(--cw) * 2 + var(--cgap));
  /* iPhone 15 Pro: 70.6 × 146.6 mm */
  --pw: clamp(290px, 24vw, 340px);
  --ph: calc(var(--pw) * 146.6 / 70.6);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0a0a0c; --fg: #f5f5f7; --mut: #a1a1a6; --dim: #6e6e73; --faint: #2c2c30;
  --card: #161619; --line: rgba(255, 255, 255, 0.07); --line-2: rgba(255, 255, 255, 0.13);
  --glass: rgba(22, 22, 25, 0.72); --btn: #f5f5f7; --btn-fg: #111; --ghost: rgba(255, 255, 255, 0.07);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4); --shadow-md: 0 1px 2px rgba(0, 0, 0, 0.4), 0 18px 40px -12px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 40px 90px -20px rgba(0, 0, 0, 0.85); --icon-shadow: 0 14px 28px -10px rgba(0, 0, 0, 0.85);
  --refl: 0.22;
  --sheen: rgba(165, 180, 255, 0.11);
  --sheen-line: rgba(255, 255, 255, 0.13);
  --sheen-base: rgba(255, 255, 255, 0.025);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0a0c; --fg: #f5f5f7; --mut: #a1a1a6; --dim: #6e6e73; --faint: #2c2c30;
    --card: #161619; --line: rgba(255, 255, 255, 0.07); --line-2: rgba(255, 255, 255, 0.13);
    --glass: rgba(22, 22, 25, 0.72); --btn: #f5f5f7; --btn-fg: #111; --ghost: rgba(255, 255, 255, 0.07);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4); --shadow-md: 0 1px 2px rgba(0, 0, 0, 0.4), 0 18px 40px -12px rgba(0, 0, 0, 0.7);
    --shadow-lg: 0 40px 90px -20px rgba(0, 0, 0, 0.85); --icon-shadow: 0 14px 28px -10px rgba(0, 0, 0, 0.85);
    --refl: 0.22;
    --sheen: rgba(165, 180, 255, 0.11);
    --sheen-line: rgba(255, 255, 255, 0.13);
    --sheen-base: rgba(255, 255, 255, 0.025);
    color-scheme: dark;
  }
}
@media (max-width: 640px) { :root { --cw: 74px; --pw: 226px; } }

/* ============ base ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  background: var(--bg); color: var(--fg); font-family: var(--sans); font-size: 16px; line-height: 1.55;
  overflow-x: hidden; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  transition: background 0.5s var(--ease), color 0.5s var(--ease);
}
body.is-loading { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; color: var(--mut); }
::selection { background: var(--acc); color: #fff; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 12px; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 200; padding: 10px 16px; border-radius: 12px; background: var(--btn); color: var(--btn-fg); font-weight: 600; transition: top 0.3s var(--ease); }
.skip:focus { top: 16px; }

/* ============ intro curtain ============ */
.curtain { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: var(--bg); pointer-events: none; }
.logo span { background: var(--acc-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* launch: the word wraps a cylinder turning on its X axis; each letter lags a little, so it twists like a ribbon */
.curtain__stage { position: relative; display: grid; place-items: center; perspective: 900px; }
.curtain__band { position: absolute; left: 50%; top: 50%; width: clamp(110px, 18vw, 260px); height: 230%; transform: translate(-50%, -50%); background: var(--acc); }
.twist { position: relative; display: flex; font-family: var(--sans); font-weight: 800; font-size: clamp(54px, 11vw, 168px); line-height: 1; letter-spacing: -0.02em; text-transform: uppercase; transform-style: preserve-3d; transform: scaleX(1.18); }
.twist__col { position: relative; display: block; }
.twist__col .ghost { visibility: hidden; display: block; }
.tw { position: absolute; inset: 0; display: block; transform-origin: 50% 50%; will-change: transform, opacity; }
.tw--solid { color: var(--fg); }
.tw--solid { text-shadow: none; }
.tw--stroke { color: transparent; -webkit-text-stroke: 1.6px var(--fg); }
@media (max-width: 640px) { .twist { font-size: 9.6vw; transform: scaleX(1.06); } .curtain__band { width: 26vw; } }
.curtain__bar { position: absolute; left: 50%; bottom: 18%; width: 140px; height: 2px; margin-left: -70px; background: var(--line-2); border-radius: 2px; overflow: hidden; }
.curtain__bar b { display: block; height: 100%; width: 0; background: var(--acc-grad); }

/* scroll progress */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; transform-origin: 0 50%; transform: scaleX(0); background: var(--acc-grad); pointer-events: none; }

/* ============ nav ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap;
  padding: calc(14px + env(safe-area-inset-top, 0px)) 12px 14px; pointer-events: none; transition: transform 0.6s var(--ease);
}
.nav.hide { transform: translateY(-120%); }
/* liquid glass */
.liquid {
  position: relative; isolation: isolate;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.2));
  backdrop-filter: blur(24px) saturate(1.9) brightness(1.04); -webkit-backdrop-filter: blur(24px) saturate(1.9) brightness(1.04);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.95), inset 0 -1px 1px rgba(255, 255, 255, 0.3), inset 0 0 18px rgba(255, 255, 255, 0.25),
    0 12px 32px -10px rgba(0, 0, 0, 0.18), 0 2px 6px rgba(0, 0, 0, 0.05);
}
.liquid::before { /* specular sheen */
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: radial-gradient(120% 90% at 12% -10%, rgba(255, 255, 255, 0.7), transparent 45%), radial-gradient(70% 60% at 100% 110%, rgba(255, 255, 255, 0.35), transparent 60%);
  mix-blend-mode: soft-light;
}
.liquid--dark, :root[data-theme="dark"] .liquid {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04));
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.3), inset 0 -1px 1px rgba(255, 255, 255, 0.06), inset 0 0 20px rgba(255, 255, 255, 0.05), 0 18px 40px -14px rgba(0, 0, 0, 0.6);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .liquid {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04));
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.3), inset 0 -1px 1px rgba(255, 255, 255, 0.06), inset 0 0 20px rgba(255, 255, 255, 0.05), 0 18px 40px -14px rgba(0, 0, 0, 0.6);
  }
}
.pill { pointer-events: auto; display: flex; align-items: center; gap: 2px; border-radius: 30px; padding: 5px 5px 5px 18px; }
.pill__sep { width: 1px; height: 20px; margin: 0 6px; background: var(--line-2); }
.logo { display: inline-flex; align-items: baseline; font-weight: 700; font-size: 18px; letter-spacing: -0.035em; margin-right: 10px; }
.nav__links { display: flex; gap: 2px; }
.nav__links a { font-size: 13.5px; font-weight: 500; color: var(--mut); padding: 8px 12px; border-radius: 24px; transition: color 0.2s, background 0.2s; }
.nav__links a:hover, .nav__links a.on { color: var(--fg); background: var(--ghost); }
.icon-btn { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--mut); transition: background 0.2s, color 0.2s; }
.icon-btn:hover { background: var(--ghost); color: var(--fg); }
.icon-btn .moon { display: none; }
:root[data-theme="dark"] .icon-btn .sun { display: none; }
:root[data-theme="dark"] .icon-btn .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-btn .sun { display: none; }
  :root:not([data-theme="light"]) .icon-btn .moon { display: block; }
}
.menu-btn { display: none; position: relative; }
.menu-btn span { position: absolute; left: 11px; right: 11px; height: 1.6px; border-radius: 2px; background: currentColor; transition: transform 0.4s var(--ease), top 0.4s var(--ease); }
.menu-btn span:first-child { top: 14px; } .menu-btn span:last-child { top: 20px; }
.menu-open .menu-btn span:first-child { top: 17px; transform: rotate(45deg); }
.menu-open .menu-btn span:last-child { top: 17px; transform: rotate(-45deg); }
@media (max-width: 760px) {
  .nav__links, .theme-btn, .pill__sep { display: none; }
  .menu-btn { display: grid; color: var(--fg); }
  .logo { margin-right: auto; }
  .pill { width: 100%; max-width: 420px; }
}
/* mobile menu sheet */
.mnav {
  position: fixed; z-index: 49; top: calc(76px + env(safe-area-inset-top, 0px)); left: 12px; right: 12px; margin: 0 auto; max-width: 420px;
  border-radius: 30px; padding: 12px; display: grid; gap: 2px;
  opacity: 0; transform: translateY(-12px) scale(0.98); pointer-events: none; transition: opacity 0.35s var(--ease), transform 0.5s var(--ease);
}
.menu-open .mnav { opacity: 1; transform: none; pointer-events: auto; }
.mnav > a { font-size: 22px; font-weight: 600; letter-spacing: -0.03em; padding: 12px 14px; border-radius: 18px; }
.mnav > a:active, .mnav > a:hover { background: var(--ghost); }
.mnav__row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 8px; padding: 10px 6px 4px; border-top: 1px solid var(--line); }
.mnav__theme { font-size: 14px; font-weight: 600; color: var(--mut); padding: 10px 12px; }
.mnav .btn { border-radius: 24px; padding: 11px 18px; }
@media (min-width: 761px) { .mnav { display: none; } }

/* ============ buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 12px; padding: 9px 16px;
  font-weight: 600; font-size: 13.5px; transition: background 0.2s, box-shadow 0.3s, border-color 0.2s;
}
.btn--dark { background: var(--btn); color: var(--btn-fg); }
.pill .btn { border-radius: 24px; padding: 10px 18px; }
/* backlit rim light: on hover the button goes dark, its edge lights up (brightest at the bottom) and light leaks from behind */
.btn--ray { position: relative; border: 1.5px solid transparent; transition: background 0.45s var(--ease), color 0.45s var(--ease), box-shadow 0.45s var(--ease); }
.btn--ray::before { /* light source behind the button, leaking out at the edges */
  content: ''; position: absolute; inset: -3px -4px -9px; z-index: -1; border-radius: inherit; pointer-events: none;
  background: #fff; filter: blur(11px); opacity: 0; transition: opacity 0.45s var(--ease);
}
.btn--ray::after { /* light cast onto the surface below */
  content: ''; position: absolute; left: 50%; top: 100%; width: 130%; height: 46px; transform: translateX(-50%); z-index: -2; pointer-events: none;
  background: radial-gradient(60% 100% at 50% 0%, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.12) 55%, transparent 75%);
  filter: blur(3px); opacity: 0; transition: opacity 0.5s var(--ease);
}
.btn--ray:hover, .btn--ray:focus-visible {
  color: #fff;
  background: linear-gradient(#08080a, #111114) padding-box, linear-gradient(180deg, rgba(255, 255, 255, 0.35), #fff 65%) border-box;
  box-shadow: 0 0 2px rgba(255, 255, 255, 0.95), 0 0 10px rgba(255, 255, 255, 0.55), 0 4px 18px rgba(255, 255, 255, 0.4), inset 0 -8px 14px -10px rgba(255, 255, 255, 0.35);
}
.btn--ray:hover::before, .btn--ray:focus-visible::before { opacity: 0.6; }
.btn--ray:hover::after, .btn--ray:focus-visible::after { opacity: 1; }
.btn--dark:hover { box-shadow: 0 8px 20px -6px rgba(0, 0, 0, 0.35); }
.btn--ghost { background: var(--card); border: 1px solid var(--line-2); box-shadow: var(--shadow-sm); }
.btn--ghost:hover { border-color: var(--fg); }
.btn--lg { padding: 15px 24px; font-size: 15px; border-radius: 14px; }
.store {
  display: inline-flex; align-items: center; gap: 12px; padding: 11px 22px 11px 16px; border-radius: 14px; background: var(--btn); color: var(--btn-fg);
  box-shadow: 0 10px 26px -8px rgba(0, 0, 0, 0.35); transition: box-shadow 0.3s;
}
.store:hover { box-shadow: 0 16px 34px -8px rgba(0, 0, 0, 0.45); }
.store span { display: grid; line-height: 1.1; text-align: left; }
.store small { font-size: 10px; letter-spacing: 0.08em; opacity: 0.75; font-weight: 600; }
.store b { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.store--light { background: #fff; color: #111; }

/* ============ hero ============ */
.hero { position: relative; padding-top: calc(92px + env(safe-area-inset-top, 0px)); text-align: center; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 45% at 50% 62%, color-mix(in srgb, var(--acc-2) 13%, transparent), transparent 70%),
    radial-gradient(40% 30% at 18% 32%, color-mix(in srgb, #8b5cf6 7%, transparent), transparent 70%);
}
.hero__intro { padding: 0 var(--gutter); position: relative; z-index: 6; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--mut);
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: border-color 0.2s, color 0.2s;
}
.chip b { color: var(--fg); font-weight: 700; }
.chip:hover { border-color: var(--line-2); color: var(--fg); }
.chip__dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18); animation: ping 2s infinite; }
@keyframes ping { 50% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); } }
.chip__arrow { transition: transform 0.3s var(--ease); }
.chip:hover .chip__arrow { transform: translateX(3px); }
.hero__title { font-weight: 600; font-size: clamp(42px, min(7.2vw, 9vh), 92px); line-height: 1; letter-spacing: -0.05em; margin: 18px auto 0; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.hero__title .line > span { display: inline-block; }
.hero__title em { font-size: 1.08em; letter-spacing: -0.02em; }

/* stage: one concave rail of stacked icon pairs */
.stage { position: relative; height: max(calc(var(--ch) + 160px), calc(var(--ph) * 0.8)); margin-top: clamp(44px, 7vh, 84px); }
.rail {
  /* extra room above/below so cards swinging toward the viewer aren't clipped by the mask */
  position: absolute; left: 0; width: 100%; top: calc(var(--ph) / 2 - var(--ch) / 2 - 170px); height: calc(var(--ch) + 340px); perspective: 1000px; perspective-origin: 50% 50%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.track { position: relative; top: 170px; height: var(--ch); transform-style: preserve-3d; cursor: grab; touch-action: pan-y; }
.track.dragging { cursor: grabbing; }
.rc { position: absolute; left: 50%; top: 0; width: var(--cw); height: var(--ch); margin-left: calc(var(--cw) / -2); will-change: transform; user-select: none; -webkit-user-drag: none; }
.rc__layer { position: absolute; inset: 0; display: flex; flex-direction: column; gap: var(--cgap); }
.rc__layer .ri { box-shadow: var(--icon-shadow); transition: transform 0.5s var(--ease); }
.ri { position: relative; display: block; width: 100%; aspect-ratio: 1; border-radius: 23%; overflow: hidden; }
.ri img { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
/* inner glass: curved specular highlight, fine rim and a smoky depth toward the bottom */
.rc__layer .ri::before {
  content: ''; position: absolute; inset: 0; z-index: 1; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, transparent 45%, var(--glass-depth, rgba(0, 0, 0, 0.12)) 100%);
}
.rc__layer .ri::after {
  content: ''; position: absolute; inset: 0; z-index: 2; border-radius: inherit; pointer-events: none;
  background:
    radial-gradient(120% 55% at 50% -12%, rgba(255, 255, 255, 0.42) 0%, rgba(255, 255, 255, 0.12) 48%, transparent 50%),
    linear-gradient(115deg, transparent 58%, rgba(255, 255, 255, 0.1) 64%, transparent 70%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 0 0 1px var(--glass-rim, rgba(255, 255, 255, 0.22)), inset 0 -10px 22px -10px var(--glass-depth, rgba(0, 0, 0, 0.12));
}
:root[data-theme="dark"] .rc__layer .ri { --glass-depth: rgba(0, 0, 0, 0.42); --glass-rim: rgba(255, 255, 255, 0.14); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .rc__layer .ri { --glass-depth: rgba(0, 0, 0, 0.42); --glass-rim: rgba(255, 255, 255, 0.14); } }
.rc__layer .ri:hover { transform: translateY(-6px) scale(1.05); }
.rc__refl { /* mirror reflection of the bottom icon */
  position: absolute; left: 0; top: calc(100% + var(--cgap)); width: 100%; aspect-ratio: 1; border-radius: 23%; pointer-events: none;
  transform: scaleY(-1); opacity: var(--refl); filter: blur(0.6px);
  -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 55%); mask-image: linear-gradient(to top, #000 0%, transparent 55%);
}

/* ============ iPhone 15 Pro — natural titanium ============ */
.iphone-wrap {
  /* oversized box so float/tilt never clips the top */
  --pad: 120px;
  --fade: 0.5;
  position: absolute; left: 0; right: 0; top: calc(var(--pad) * -1); margin: 0 auto; width: max-content; z-index: 5;
  padding: var(--pad) 110px 0; perspective: 1600px; pointer-events: none;
  height: calc(var(--pad) + var(--ph)); overflow: hidden;
}
/* the phone fades out into a dark backing plate, and the plate dissolves into the page: no see-through, no hard edge */
.iphone { -webkit-mask-image: linear-gradient(to bottom, #000 56%, transparent 84%); mask-image: linear-gradient(to bottom, #000 56%, transparent 84%); }
.iphone-wrap::after {
  content: ''; position: absolute; left: 70px; right: 70px; bottom: 0; z-index: -1; pointer-events: none;
  top: calc(var(--pad) + var(--ph) * 0.4);
  background: var(--bg);
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 100%), linear-gradient(90deg, transparent 0%, #000 16%, #000 84%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, #000 72%, transparent 100%), linear-gradient(90deg, transparent 0%, #000 16%, #000 84%, transparent 100%);
  mask-composite: intersect;
}
.iphone {
  --r: calc(var(--pw) * 0.168);
  --fw: max(3px, calc(var(--pw) * 0.0125));
  --bz: calc(var(--pw) * 0.024);
  position: relative; width: var(--pw); height: var(--ph); transform-style: preserve-3d; will-change: transform; pointer-events: auto;
}
.iphone__frame {
  position: absolute; inset: 0; border-radius: var(--r); padding: var(--fw);
  background:
    conic-gradient(from 200deg at 50% 50%,
      #f7f7f9 0deg, #b9b9bf 22deg, #ececef 48deg, #8e8e95 80deg, #d8d8dc 110deg, #a5a5ab 150deg,
      #f4f4f6 182deg, #b3b3b9 214deg, #e6e6ea 242deg, #8a8a91 276deg, #d1d1d6 312deg, #a9a9af 340deg, #f7f7f9 360deg);
  box-shadow:
    inset 0 0 0 0.6px rgba(0, 0, 0, 0.45),
    inset 0 1px 1px rgba(255, 255, 255, 0.9),
    0 0 0 0.5px rgba(0, 0, 0, 0.18),
    0 2px 6px rgba(0, 0, 0, 0.08),
    0 60px 100px -40px rgba(0, 0, 0, 0.5),
    0 34px 60px -34px rgba(0, 0, 0, 0.4);
}
.iphone__frame::before { /* polished chamfer */
  content: ''; position: absolute; inset: calc(var(--fw) * 0.42); border-radius: calc(var(--r) - var(--fw) * 0.42); pointer-events: none;
  border: 0.75px solid rgba(255, 255, 255, 0.85); box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.12);
}
.ant { position: absolute; background: rgba(60, 60, 66, 0.55); z-index: 1; }
.ant--l1, .ant--l2 { left: 0; width: var(--fw); height: 1.6px; }
.ant--r1, .ant--r2 { right: 0; width: var(--fw); height: 1.6px; }
.ant--l1, .ant--r1 { top: 9%; }
.ant--l2, .ant--r2 { top: 91%; }
.ant--t { top: 0; left: 22%; width: 1.6px; height: var(--fw); }
.ant--b { bottom: 0; right: 22%; width: 1.6px; height: var(--fw); }
.iphone__bezel {
  position: relative; width: 100%; height: 100%; border-radius: calc(var(--r) - var(--fw)); background: #000; padding: var(--bz);
  box-shadow: inset 0 0 0 0.75px rgba(0, 0, 0, 0.9), inset 0 0 0 1.5px rgba(40, 40, 44, 0.9);
}
.iphone__screen {
  position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: calc(var(--r) - var(--fw) - var(--bz));
  background: #000; color: #fff; text-align: left; font-size: calc(var(--pw) * 0.04); isolation: isolate;
}
.hw { position: absolute; width: calc(var(--fw) * 0.9 + 1px); z-index: -1; }
.hw--action, .hw--volup, .hw--voldown { left: calc(var(--fw) * -0.75); border-radius: 3px 0 0 3px; background: linear-gradient(90deg, #77777d 0%, #e9e9ec 40%, #c2c2c7 65%, #8d8d93 100%); }
.hw--power { right: calc(var(--fw) * -0.75); border-radius: 0 3px 3px 0; background: linear-gradient(270deg, #77777d 0%, #e9e9ec 40%, #c2c2c7 65%, #8d8d93 100%); }
.hw--action { top: 17.5%; height: 4.4%; }
.hw--volup { top: 25.6%; height: 7.4%; }
.hw--voldown { top: 34.6%; height: 7.4%; }
.hw--power { top: 28.2%; height: 11.2%; }
.island {
  position: absolute; top: 1.4%; left: 50%; transform: translateX(-50%); width: 32%; height: 4.3%; border-radius: 999px; background: #000; z-index: 8;
  display: flex; align-items: center; justify-content: flex-end; padding-right: 7%;
}
.island i { width: 0.6em; height: 0.6em; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #33456a, #0a0d14 62%); box-shadow: inset 0 0 0 1px #111a2a; }
.status {
  position: absolute; top: 0; left: 0; right: 0; height: 7.2%; z-index: 7; display: flex; align-items: center; justify-content: space-between;
  padding: 0.3em 8.5% 0 11%; font-weight: 600; font-size: 1.04em; letter-spacing: -0.01em;
  background: linear-gradient(#0b0b0e 55%, rgba(11, 11, 14, 0));
}
.status__icons { display: flex; align-items: center; gap: 0.35em; }
.status svg { fill: #fff; }
.batt { position: relative; width: 1.7em; height: 0.82em; border: 1px solid rgba(255, 255, 255, 0.5); border-radius: 0.28em; padding: 1px; }
.batt::after { content: ''; position: absolute; right: -3px; top: 30%; width: 1.5px; height: 40%; background: rgba(255, 255, 255, 0.5); border-radius: 0 1px 1px 0; }
.batt i { display: block; width: 78%; height: 100%; background: #fff; border-radius: 0.14em; }
.app {
  position: absolute; inset: 0; overflow: hidden;
  background: radial-gradient(120% 60% at 100% 0%, rgba(255, 138, 61, 0.22), transparent 55%), radial-gradient(100% 50% at 0% 30%, rgba(139, 92, 246, 0.16), transparent 60%), #0b0b0e;
}
.app__scroll { padding: 19% 6.5% 16%; will-change: transform; }
.app__date { display: block; font-size: 0.72em; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255, 255, 255, 0.5); }
.app__head { display: flex; align-items: center; justify-content: space-between; margin-top: 0.1em; }
.app__head h4 { font-size: 2em; font-weight: 700; letter-spacing: -0.035em; }
.app__avatar { width: 2.1em; height: 2.1em; border-radius: 50%; background: var(--acc-grad); display: grid; place-items: center; font-size: 0.72em; font-weight: 800; }
.app__search { display: flex; align-items: center; gap: 0.5em; background: rgba(255, 255, 255, 0.08); border-radius: 0.8em; padding: 0.65em 0.8em; margin: 0.9em 0 1em; font-size: 0.82em; color: rgba(255, 255, 255, 0.5); }
.app__feature { position: relative; height: 10.5em; border-radius: 1.2em; overflow: hidden; }
.feat { position: absolute; inset: 0; padding: 0.95em; display: flex; flex-direction: column; justify-content: space-between; opacity: 0; transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transform: scale(1.04); isolation: isolate; }
.feat.on { opacity: 1; transform: scale(1); }
.feat::before { content: ''; position: absolute; inset: 0; z-index: -2; background: linear-gradient(150deg, var(--c, #555), color-mix(in srgb, var(--c, #555) 35%, #000)); }
.feat__bg { position: absolute; right: -12%; bottom: -18%; width: 62%; border-radius: 24%; z-index: -1; transform: rotate(-14deg); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); }
.feat small { font-size: 0.66em; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.85; }
.feat b { display: block; font-size: 1.3em; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; max-width: 62%; margin-top: 0.15em; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3); }
.feat__get { align-self: flex-start; font-size: 0.72em; font-weight: 700; background: rgba(255, 255, 255, 0.95); color: #111; border-radius: 999px; padding: 0.4em 1.1em; }
.app__section { display: flex; justify-content: space-between; align-items: baseline; margin: 1.2em 0 0.4em; }
.app__section b { font-size: 1.12em; letter-spacing: -0.02em; }
.app__section span { font-size: 0.76em; color: var(--acc-2); font-weight: 600; }
.app__list .li { display: flex; align-items: center; gap: 0.7em; padding: 0.55em 0; border-bottom: 0.5px solid rgba(255, 255, 255, 0.08); }
.app__list img { width: 2.7em; height: 2.7em; border-radius: 24%; }
.app__list div { flex: 1; min-width: 0; }
.app__list b { display: block; font-size: 0.86em; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -0.01em; }
.app__list small { font-size: 0.7em; color: rgba(255, 255, 255, 0.5); text-transform: capitalize; }
.app__list .get { font-size: 0.72em; font-weight: 700; color: var(--acc-2); background: rgba(255, 255, 255, 0.1); border-radius: 999px; padding: 0.35em 1em; }
.tabbar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; height: 11%; display: flex; justify-content: space-around; align-items: flex-start; padding-top: 2.2%;
  background: rgba(16, 16, 20, 0.72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 0.5px solid rgba(255, 255, 255, 0.1);
}
.tabbar span { display: grid; justify-items: center; gap: 0.2em; font-size: 0.58em; font-weight: 600; color: rgba(255, 255, 255, 0.45); }
.tabbar svg { width: 1.9em; height: 1.9em; fill: currentColor; }
.tabbar .on { color: var(--acc-2); }
.home-ind { position: absolute; bottom: 1.2%; left: 50%; transform: translateX(-50%); width: 35%; height: 0.32em; border-radius: 999px; background: rgba(255, 255, 255, 0.85); z-index: 6; }
.glare { /* static glass reflection, shifts with tilt */
  position: absolute; inset: 0; z-index: 9; pointer-events: none;
  background: linear-gradient(118deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.05) 24%, transparent 38%, transparent 100%);
  background-size: 220% 100%; background-position: var(--gp, 50%) 0;
}
.sweep { /* light sweep across the glass */
  position: absolute; inset: -20% -60%; z-index: 9; pointer-events: none; mix-blend-mode: screen;
  background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, 0.18) 48%, rgba(255, 255, 255, 0.04) 52%, transparent 58%);
  animation: sweep 7s var(--ease) infinite 2.5s; transform: translateX(-60%);
}
@keyframes sweep { 0% { transform: translateX(-60%); } 22%, 100% { transform: translateX(60%); } }

.hero__outro { padding: clamp(28px, 4vh, 48px) var(--gutter) clamp(70px, 10vh, 110px); position: relative; z-index: 6; }
/* LED dot-matrix ticker (Nothing Glyph-style), drawn on canvas */
.led {
  --s: 9px; position: relative; width: min(1100px, 100%); height: calc(var(--s) * 9 * 3.3); margin: clamp(36px, 6vh, 64px) auto 0; cursor: crosshair;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}
.led canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
@media (max-width: 640px) { .led { --s: 5px; } }
.hero__ctas { display: flex; justify-content: center; align-items: center; gap: clamp(16px, 2.4vw, 26px); margin-top: clamp(36px, 5vh, 52px); }
/* plain icon + text links, no box, no motion */
.cta-link { display: inline-flex; align-items: center; gap: 10px; color: var(--mut); }
.cta-link svg { flex: none; opacity: 0.75; }
.cta-link span { display: grid; line-height: 1.1; text-align: left; }
.cta-link small { font-size: 9px; font-weight: 300; letter-spacing: 0.16em; opacity: 0.6; }
.cta-link b { font-size: 15px; font-weight: 300; letter-spacing: 0; opacity: 0.8; }
.cta-link:hover { color: var(--fg); }
.cta-div { width: 1px; height: 28px; background: var(--line-2); }

/* ============ stats ============ */
.stats {
  position: relative; isolation: isolate; max-width: var(--maxw); margin: 0 auto; padding: 18px var(--gutter); display: grid; grid-template-columns: repeat(4, 1fr);
}
/* full-width lit band: light glows inward from the top and bottom edges */
.stats::before {
  content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%); z-index: -1; pointer-events: none;
  background:
    radial-gradient(55% 90% at 50% 0%, var(--sheen), transparent 70%),
    radial-gradient(55% 90% at 50% 100%, var(--sheen), transparent 70%),
    linear-gradient(180deg, var(--sheen-base), transparent 35%, transparent 65%, var(--sheen-base));
}
.stats::after { /* fine highlight lines on both edges, fading out to the sides */
  content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%); z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, transparent, var(--sheen-line) 30%, var(--sheen-line) 70%, transparent) top / 100% 1px no-repeat,
    linear-gradient(90deg, transparent, var(--sheen-line) 30%, var(--sheen-line) 70%, transparent) bottom / 100% 1px no-repeat;
}
.stat { padding: 40px 20px; display: grid; gap: 4px; justify-items: center; text-align: center; }
.stat__viz { height: 44px; display: grid; place-items: center; margin-bottom: 10px; }
.viz-stack { display: flex; }
.viz-stack img { width: 38px; height: 38px; border-radius: 23%; margin-left: -12px; box-shadow: 0 6px 14px -6px rgba(0, 0, 0, 0.45), 0 0 0 2px var(--bg); transition: transform 0.5s var(--ease); }
.viz-stack img:first-child { margin-left: 0; }
.stat:hover .viz-stack img { transform: translateY(-4px) rotate(-6deg); }
.stat:hover .viz-stack img:nth-child(2) { transform: translateY(-6px); }
.stat:hover .viz-stack img:nth-child(3) { transform: translateY(-4px) rotate(6deg); }
.viz-dots { display: flex; gap: 7px; }
.viz-dots i { width: 12px; height: 12px; border-radius: 50%; background: var(--d); box-shadow: 0 0 12px -2px var(--d); animation: dot 2.4s var(--ease) infinite; animation-delay: calc(var(--i) * 0.16s); }
@keyframes dot { 0%, 100% { transform: translateY(0); } 30% { transform: translateY(-8px); } }
.viz-cube { perspective: 300px; }
.cube { position: relative; width: 26px; height: 26px; transform-style: preserve-3d; animation: cube 8s linear infinite; }
.cube i { position: absolute; inset: 0; border-radius: 5px; border: 1.5px solid var(--acc); background: color-mix(in srgb, var(--acc) 14%, transparent); }
.cube i:nth-child(1) { transform: translateZ(13px); } .cube i:nth-child(2) { transform: rotateY(180deg) translateZ(13px); }
.cube i:nth-child(3) { transform: rotateY(90deg) translateZ(13px); } .cube i:nth-child(4) { transform: rotateY(-90deg) translateZ(13px); }
.cube i:nth-child(5) { transform: rotateX(90deg) translateZ(13px); } .cube i:nth-child(6) { transform: rotateX(-90deg) translateZ(13px); }
@keyframes cube { from { transform: rotateX(-24deg) rotateY(0); } to { transform: rotateX(-24deg) rotateY(360deg); } }
.viz-ring svg { width: 44px; height: 44px; transform: rotate(-90deg); }
.ring-bg, .ring-fg { fill: none; stroke-width: 4; }
.ring-bg { stroke: var(--line-2); }
.ring-fg { stroke: #3ddc84; stroke-linecap: round; stroke-dasharray: 113.1; stroke-dashoffset: 113.1; filter: drop-shadow(0 0 4px rgba(61, 220, 132, 0.6)); }
.stat + .stat { border-left: 1px solid var(--line); }
.stat b { font-size: clamp(36px, 4.4vw, 60px); font-weight: 600; letter-spacing: -0.05em; line-height: 1; }
.stat b small { font-size: 0.5em; color: var(--mut); margin-left: 2px; }
.stat > span { color: var(--mut); font-size: 14px; }
@media (max-width: 760px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ============ sections ============ */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(90px, 14vh, 150px) var(--gutter); }
.section.apps { padding-bottom: 20px; }
.section__head { margin-bottom: clamp(36px, 6vh, 60px); }
@media (max-width: 760px) {
  .section { padding-top: 56px; padding-bottom: 56px; }
  .section.apps { padding-bottom: 20px; }
  .section__head { margin-bottom: 24px; }
}
.section__head--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--acc); letter-spacing: 0.02em; }
.eyebrow::before { content: ''; width: 18px; height: 2px; border-radius: 2px; background: var(--acc-grad); }
.eyebrow--light { color: var(--acc-2); }
.h2 { font-size: clamp(36px, 5.4vw, 68px); font-weight: 600; letter-spacing: -0.045em; line-height: 1.02; margin-top: 14px; }
.h2 em { font-size: 1.06em; }
.split-line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.split-line > span { display: inline-block; }

/* ============ categories: kinetic type + layered icons ============ */
.universe { position: relative; height: 500vh; }
.universe__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; isolation: isolate; display: grid; grid-template-rows: auto 1fr auto; }
.uni__glow {
  position: absolute; left: 50%; top: 48%; width: min(110vw, 1300px); aspect-ratio: 1.6; transform: translate(-50%, -50%); z-index: -1; border-radius: 50%;
  background-color: var(--acc); opacity: 0.18; filter: blur(120px); transition: background-color 1.1s var(--ease);
}
.uni__top { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 96px var(--gutter) 0; display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 4; }
.uni__count { font-size: 14px; font-weight: 600; color: var(--dim); font-variant-numeric: tabular-nums; }
.uni__count b { color: var(--fg); }
.uni__stage { position: relative; display: grid; place-items: center; min-height: 0; }
.uni__layer { position: absolute; inset: 0; pointer-events: none; }
.uni__layer--back { z-index: 1; }
.uni__layer--front { z-index: 3; }
.bigword {
  position: relative; z-index: 2; pointer-events: none; display: grid; place-items: center;
  font-size: clamp(84px, 16.5vw, 250px); font-weight: 700; letter-spacing: -0.065em; line-height: 0.9; white-space: nowrap;
}
.bigword__w { grid-area: 1 / 1; display: flex; overflow: hidden; padding: 0.06em 0.14em 0.22em; margin-bottom: -0.1em; }
.bigword__w span {
  display: inline-block; will-change: transform; padding: 0 0.06em 0.2em; margin: 0 -0.06em -0.2em;
  background: linear-gradient(180deg, var(--fg) 30%, color-mix(in srgb, var(--fg) 55%, var(--bg)) 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.uicon { --s: clamp(78px, 8vw, 124px); position: absolute; left: 50%; top: 50%; width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2); pointer-events: auto; opacity: 0; }
.uicon__in { position: relative; display: block; width: 100%; height: 100%; will-change: transform; transition: filter 0.4s; }
.uicon__in img { width: 100%; height: 100%; border-radius: 23%; box-shadow: 0 30px 50px -18px rgba(0, 0, 0, 0.45), 0 4px 10px rgba(0, 0, 0, 0.08); }
.uicon__in::after {
  content: ''; position: absolute; inset: 0; border-radius: 23%; pointer-events: none;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.42) 0%, rgba(255, 255, 255, 0.06) 32%, transparent 50%); box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.35);
}
.uni__layer--back .uicon__in { filter: blur(2.2px) saturate(0.9); }
.uni__layer--back .uicon:hover .uicon__in { filter: none; }
.uicon__name {
  position: absolute; left: 50%; top: calc(100% + 12px); transform: translate(-50%, 6px); white-space: nowrap; font-style: normal;
  font-size: 13px; font-weight: 600; padding: 5px 11px; border-radius: 999px; background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm); opacity: 0; transition: opacity 0.3s, transform 0.4s var(--ease); pointer-events: none;
}
.uicon:hover .uicon__name { opacity: 1; transform: translate(-50%, 0); }
.uni__bottom { position: relative; z-index: 4; padding: 0 var(--gutter) 34px; display: grid; justify-items: center; gap: 22px; text-align: center; }
.uni__blurb { max-width: 560px; color: var(--mut); font-size: clamp(15px, 1.2vw, 18px); min-height: 3.2em; }
.uni__tabs { display: flex; gap: 4px; padding: 5px; border-radius: 16px; background: var(--glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.uni__tabs button { position: relative; overflow: hidden; font-size: 13.5px; font-weight: 600; color: var(--mut); padding: 9px 16px; border-radius: 11px; transition: color 0.3s; isolation: isolate; }
.uni__tabs button small { font-size: 11px; opacity: 0.55; margin-left: 4px; font-variant-numeric: tabular-nums; }
.uni__tabs button { transition: color 0.3s, background 0.4s var(--ease); }
.uni__tabs button i { position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--acc-grad); transform: scaleX(0); transform-origin: left; opacity: 0; transition: opacity 0.3s; }
.uni__tabs button.on { color: var(--btn-fg); background: var(--btn); }
.uni__tabs button.on i { opacity: 1; }
.uni__tabs button:hover:not(.on) { color: var(--fg); }
@media (max-width: 760px) {
  .uni__top { padding-top: 68px; }
  .uni__bottom { padding-bottom: 16px; gap: 16px; }
  .bigword { font-size: 21vw; }
  .uicon { --s: 60px; }
  .uicon__name { display: none; }
  .uni__tabs { flex-wrap: nowrap; gap: 2px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .uni__tabs::-webkit-scrollbar { display: none; }
  .uni__tabs button { flex: none; padding: 7px 9px; font-size: 12.5px; }
  .uni__tabs button i { left: 9px; right: 9px; }
  .uni__tabs button small { display: none; }
}
@media (max-width: 380px) {
  .uni__tabs { gap: 0; }
  .uni__tabs button { padding: 7px 8px; font-size: 12px; }
  .uni__tabs button i { left: 8px; right: 8px; }
}

/* ============ flagships: cinema with ambient light ============ */
.cinema { position: relative; height: 600vh; }
.cinema__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; isolation: isolate; }
.cinema__ambient { position: absolute; inset: -10%; z-index: -1; pointer-events: none; }
.cinema__ambient img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(90px) saturate(1.7); opacity: 0; transition: opacity 1.2s var(--ease); transform: scale(1.1); }
.cinema__ambient img.on { opacity: 0.42; }
:root[data-theme="dark"] .cinema__ambient img.on { opacity: 0.5; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cinema__ambient img.on { opacity: 0.5; } }
.cinema__ambient::after { content: ''; position: absolute; inset: 0; background: radial-gradient(70% 60% at 50% 55%, transparent, var(--bg) 92%); }
.cinema__inner { height: 100%; max-width: var(--maxw); margin: 0 auto; padding: 88px var(--gutter) 26px; display: grid; grid-template-rows: auto 1fr auto; gap: clamp(14px, 2.4vh, 26px); }
.cinema__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.cinema__h2 { font-size: clamp(28px, 3.4vw, 46px); margin-top: 8px; }
.cinema__count { font-size: 14px; font-weight: 600; color: var(--dim); font-variant-numeric: tabular-nums; padding-bottom: 6px; }
.cinema__count b { color: var(--fg); }
@media (max-width: 400px) { .cinema__h2 { font-size: min(25px, 6.4vw); } .cinema__count { white-space: nowrap; } }
/* art bleeds off the right edge and feathers into the page; details sit on the page, no card */
.cinema__stage { position: relative; display: grid; grid-template-columns: minmax(300px, 0.8fr) 1.2fr; align-items: center; min-height: 0; }
.cinema__frame {
  position: absolute; top: 50%; right: calc(var(--gutter) * -1 - max(0px, (100vw - var(--maxw)) / 2)); transform: translateY(-50%);
  height: min(100%, 62vw * 9 / 16); aspect-ratio: 16 / 9; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 34%, #000 100%), linear-gradient(180deg, transparent 0%, #000 28%, #000 72%, transparent 100%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent 0%, #000 34%, #000 100%), linear-gradient(180deg, transparent 0%, #000 28%, #000 72%, transparent 100%); mask-composite: intersect;
}
.cinema__screen { position: absolute; inset: 0; }
.cset { position: absolute; inset: 0; clip-path: inset(0 0 0 0); }
.cset img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity 1s var(--ease), transform 6s linear; }
.cset img.on { opacity: 1; transform: scale(1); }
.cinema__panel { position: relative; z-index: 3; grid-column: 1; max-width: 440px; }
.cpanel__top { display: flex; align-items: center; gap: 14px; }
.cpanel__top img { width: 60px; height: 60px; border-radius: 23%; box-shadow: var(--icon-shadow); flex: none; }
.cpanel__top small { display: block; font-size: 13px; font-weight: 600; color: var(--acc); }
.cpanel__top b { display: block; font-size: clamp(34px, 4vw, 60px); font-weight: 600; letter-spacing: -0.05em; line-height: 1; margin-top: 4px; }
.cpanel p { font-size: clamp(15px, 1.2vw, 17px); color: var(--mut); margin-top: 18px; line-height: 1.55; }
.cpanel ul { list-style: none; display: grid; gap: 10px; margin-top: 20px; }
.cpanel li { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 500; }
.cpanel li::before {
  content: ''; flex: none; width: 22px; height: 22px; border-radius: 50%;
  background: color-mix(in srgb, var(--acc) 14%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-5' fill='none' stroke='%23e8541e' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/70% no-repeat;
}
.cpanel__get { display: inline-flex; align-items: center; gap: 8px; margin-top: 26px; padding: 13px 22px; border-radius: 999px; background: var(--btn); color: var(--btn-fg); font-size: 14px; font-weight: 700; box-shadow: 0 12px 26px -10px rgba(0, 0, 0, 0.4); transition: transform 0.3s var(--ease); }
.cpanel__get:hover { transform: scale(1.04); }
@media (max-height: 760px) and (min-width: 761px) { .cpanel ul { display: none; } }
.cinema__tabs { justify-self: center; display: flex; gap: 4px; padding: 6px; border-radius: 30px; }
.cinema__tabs button { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 24px; font-size: 13px; font-weight: 600; color: var(--mut); transition: color 0.3s, background 0.4s var(--ease); overflow: hidden; }
.cinema__tabs img { width: 30px; height: 30px; border-radius: 23%; }
.cinema__tabs button:hover { color: var(--fg); }
.cinema__tabs button.on { background: var(--btn); color: var(--btn-fg); }
.cinema__tabs button i { position: absolute; left: 44px; right: 14px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--acc-grad); transform: scaleX(0); transform-origin: left; opacity: 0; }
.cinema__tabs button.on i { opacity: 1; }
@media (max-width: 1100px) { .cinema__tabs button span { display: none; } .cinema__tabs button { padding: 6px; } .cinema__tabs button i { left: 10px; right: 10px; } }
@media (max-width: 760px) {
  .cinema__inner { padding-top: 68px; padding-bottom: 18px; }
  /* phones: the shot grows to fill whatever height the panel leaves, so the screen has no dead band */
  .cinema__stage { display: flex; flex-direction: column; }
  .cinema__frame { position: relative; top: auto; right: auto; transform: none; width: calc(100% + var(--gutter) * 2); margin: 0 calc(var(--gutter) * -1);
    flex: 1 1 auto; height: auto; min-height: calc(100vw * 9 / 16); max-height: 120vw; aspect-ratio: auto;
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 12%, #000 78%, transparent); mask-image: linear-gradient(180deg, transparent, #000 12%, #000 78%, transparent); -webkit-mask-composite: source-over; mask-composite: add; }
  .cinema__panel { margin-top: -6px; flex: none; max-width: none; }
  .cpanel__top b { font-size: 32px; }
  .cpanel p { margin-top: 10px; font-size: 14.5px; }
  .cpanel ul { gap: 8px; margin-top: 14px; }
  .cpanel li { font-size: 14px; }
  .cpanel__get { margin-top: 18px; }
}
@media (max-width: 760px) and (max-height: 720px) { .cpanel ul { display: none; } }

/* ============ catalogue: editorial index + cursor preview ============ */
.filters { display: flex; gap: 4px; flex-wrap: wrap; padding: 5px; border-radius: 30px; }
.filters button { font-size: 13.5px; font-weight: 600; color: var(--mut); padding: 9px 15px; border-radius: 24px; transition: color 0.2s, background 0.3s; display: inline-flex; gap: 6px; align-items: center; }
.filters button small { font-size: 11px; opacity: 0.6; font-variant-numeric: tabular-nums; }
.filters button:hover { color: var(--fg); }
.filters button.on { background: var(--btn); color: var(--btn-fg); }
@media (max-width: 760px) {
  /* phones: a single edge-to-edge row of separate chips that scrolls, fading out at the right edge */
  .filters.liquid { background: none !important; border: 0 !important; box-shadow: none !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
  .filters.liquid::before { display: none; }
  .filters {
    flex-wrap: nowrap; gap: 8px; border-radius: 0; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain;
    margin: 0 calc(var(--gutter) * -1); width: calc(100% + var(--gutter) * 2); padding: 4px var(--gutter);
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent);
  }
  .filters::-webkit-scrollbar { display: none; }
  .filters::after { content: ''; flex: none; width: 24px; } /* lets the last chip scroll clear of the fade */
  .filters button { flex: none; padding: 9px 15px; font-size: 13.5px; border: 1px solid var(--line-2); background: var(--glass); }
  .filters button.on { border-color: transparent; background: var(--btn); }
}
.index { border-top: 1px solid var(--line-2); }
.row {
  position: relative; display: grid; grid-template-columns: 56px 64px minmax(200px, 1.1fr) 2fr 110px 44px; align-items: center; gap: 22px;
  padding: 18px 8px; border-bottom: 1px solid var(--line-2); isolation: isolate;
}
.row::before { /* hover wash in the app's colour */
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 0.4s var(--ease);
  background: linear-gradient(90deg, color-mix(in srgb, var(--c, var(--acc)) 12%, transparent), transparent 70%);
}
.row__n { font-size: 13px; font-weight: 600; color: var(--dim); font-variant-numeric: tabular-nums; }
.row__icon { width: 56px; height: 56px; border-radius: 23%; box-shadow: var(--icon-shadow); transition: transform 0.6s var(--ease); }
.row__name { font-size: clamp(20px, 2vw, 28px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.1; transition: transform 0.6s var(--ease); }
.row__name .tag--3d { font-size: 11px; vertical-align: middle; margin-left: 8px; letter-spacing: 0; }
.row__tag { color: var(--mut); font-size: 14.5px; line-height: 1.5; }
.row__cat { font-size: 13px; font-weight: 600; color: var(--mut); }
.row__go {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); color: var(--fg);
  transition: background 0.35s, color 0.35s, border-color 0.35s, transform 0.5s var(--ease);
}
.row:hover::before { opacity: 1; }
.row:hover .row__name { transform: translateX(10px); }
.row:hover .row__icon { transform: rotate(-8deg) scale(1.08); }
.row:hover .row__go { background: var(--btn); color: var(--btn-fg); border-color: var(--btn); transform: rotate(-45deg); }
.row.is-hidden { display: none; }
.tag--3d { color: var(--acc); background: color-mix(in srgb, var(--acc) 12%, transparent); padding: 2px 7px; border-radius: 6px; font-weight: 700; }
.peek { position: fixed; left: 0; top: 0; z-index: 40; width: 190px; pointer-events: none; opacity: 0; transform: translate(-50%, -50%) scale(0.6); will-change: transform, opacity; }
.peek__img { width: 100%; aspect-ratio: 1; border-radius: 23%; box-shadow: 0 40px 70px -24px rgba(0, 0, 0, 0.5), 0 10px 24px -10px var(--c, transparent); }
.peek__refl { width: 100%; aspect-ratio: 1; margin-top: 10px; border-radius: 23%; transform: scaleY(-1); opacity: var(--refl); -webkit-mask-image: linear-gradient(to top, #000, transparent 50%); mask-image: linear-gradient(to top, #000, transparent 50%); }
@media (pointer: coarse), (max-width: 900px) { .peek { display: none; } }
@media (max-width: 900px) {
  .row { grid-template-columns: 52px 1fr 40px; gap: 4px 14px; padding: 16px 4px; }
  .row__n, .row__cat { display: none; }
  .row__icon { width: 52px; height: 52px; grid-row: span 2; }
  .row__name { font-size: 18px; grid-column: 2; }
  .row__tag { grid-column: 2; font-size: 13.5px; }
  .row__go { grid-column: 3; grid-row: 1 / span 2; width: 38px; height: 38px; }
}

/* ============ craft: scroll-drawn journey ============ */
.journey { position: relative; height: 420vh; }
.journey__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; isolation: isolate; }
.journey__sticky::before { /* fine dot grid, fading at the edges */
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(color-mix(in srgb, var(--fg) 14%, transparent) 1px, transparent 1.2px); background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(60% 55% at 50% 52%, #000, transparent); mask-image: radial-gradient(60% 55% at 50% 52%, #000, transparent);
}
.journey__sticky::after { content: ''; position: absolute; inset: 0; z-index: -2; background: radial-gradient(40% 40% at var(--ox, 20%) 50%, color-mix(in srgb, var(--acc-2) 14%, transparent), transparent 70%); pointer-events: none; }
.journey__inner { height: 100%; max-width: var(--maxw); margin: 0 auto; padding: 96px var(--gutter) 40px; display: grid; grid-template-rows: auto auto 1fr; gap: clamp(10px, 3vh, 34px); }
.journey__head { display: flex; justify-content: space-between; align-items: flex-end; }
.journey__h2 { font-size: clamp(30px, 3.6vw, 50px); margin-top: 8px; }
.journey__count { font-size: 14px; font-weight: 600; color: var(--dim); font-variant-numeric: tabular-nums; padding-bottom: 8px; }
.journey__count b { color: var(--fg); }
@media (max-width: 400px) { .journey__h2 { font-size: min(25px, 6.4vw); } .journey__count { white-space: nowrap; } }
.journey__map { position: relative; height: clamp(150px, 26vh, 240px); }
.journey__map svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.j-base { fill: none; stroke: color-mix(in srgb, var(--fg) 12%, transparent); stroke-width: 2; stroke-dasharray: 2 8; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.j-line, .j-glow { fill: none; stroke: url(#jGrad); stroke-linecap: round; vector-effect: non-scaling-stroke; }
.j-line { stroke-width: 3; }
.j-glow { stroke-width: 10; opacity: 0.45; filter: url(#jGlow); }
.j-orb { position: absolute; left: 0; top: 0; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255, 122, 47, 0.35), 0 0 22px 6px rgba(255, 122, 47, 0.75), 0 0 60px 18px rgba(255, 122, 47, 0.35); will-change: transform; }
.j-orb i { position: absolute; inset: -14px; border-radius: 50%; border: 1px solid rgba(255, 122, 47, 0.5); animation: orb 2s ease-out infinite; }
@keyframes orb { from { transform: scale(0.5); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }
.j-node { position: absolute; transform: translate(-50%, -50%); display: grid; place-items: center; }
.j-node b {
  width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 2px solid color-mix(in srgb, var(--fg) 25%, transparent);
  transition: background 0.4s, border-color 0.4s, box-shadow 0.4s, transform 0.5s var(--ease);
}
.j-node span {
  position: absolute; white-space: nowrap; font-size: 13px; font-weight: 600; color: var(--dim); padding: 6px 12px; border-radius: 999px;
  transition: color 0.4s, background 0.4s, border-color 0.4s; border: 1px solid transparent;
}
.j-node.up span { bottom: calc(100% + 14px); }
.j-node.down span { top: calc(100% + 14px); }
.j-node.done b { background: var(--acc); border-color: var(--acc); box-shadow: 0 0 0 5px color-mix(in srgb, var(--acc) 18%, transparent); }
.j-node.on b { transform: scale(1.35); }
.j-node.on span { color: var(--fg); background: var(--glass); border-color: var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: var(--shadow-sm); }
.journey__detail { position: relative; min-height: 0; }
.jstep { position: absolute; inset: 0; display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 4vw, 64px); align-items: center; align-content: start; }
.jstep__n {
  font-size: clamp(110px, 15vw, 210px); font-weight: 700; letter-spacing: -0.07em; line-height: 0.85; padding: 0 0.04em 0.06em;
  color: transparent; -webkit-text-stroke: 1.5px color-mix(in srgb, var(--fg) 55%, transparent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--acc-2) 55%, transparent), transparent 75%); -webkit-background-clip: text; background-clip: text;
}
.jstep h3 { font-size: clamp(28px, 3.2vw, 46px); font-weight: 600; letter-spacing: -0.045em; line-height: 1.05; }
.jstep p { color: var(--mut); font-size: clamp(15px, 1.25vw, 18px); max-width: 560px; margin-top: 14px; line-height: 1.6; }
@media (max-width: 760px) {
  .journey__inner { padding-top: 68px; padding-bottom: 12px; }
  .journey__inner { grid-template-rows: auto 1fr auto; }
  .journey__map { height: 100%; min-height: 150px; max-height: 340px; align-self: center; }
  .journey__detail { height: calc(clamp(96px, 16vh, 140px) + 210px); }
  .j-node span { display: none; }
  .jstep { grid-template-columns: 1fr; gap: 6px; align-content: end; }
  .jstep__n { font-size: clamp(96px, 16vh, 140px); }
}

/* ============ CTA (open, on the page background) ============ */
.cta-wrap { padding: 0 var(--gutter) clamp(60px, 10vh, 110px); }
.cta {
  position: relative; max-width: var(--maxw); margin: 0 auto; overflow: hidden; min-height: min(720px, 90vh);
  display: grid; place-items: center; text-align: center; isolation: isolate;
}
.cta::before { content: ''; position: absolute; inset: 0; z-index: -2; background: radial-gradient(45% 45% at 50% 50%, color-mix(in srgb, var(--acc-2) 16%, transparent), transparent 70%); }
.orbit { position: absolute; inset: 0; z-index: -1; pointer-events: none; -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent 100%); mask-image: radial-gradient(closest-side, #000 72%, transparent 100%); }
.orbit img { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 23%; box-shadow: var(--icon-shadow); will-change: transform, opacity; }
.cta__content { position: relative; padding: 60px 24px; max-width: 1000px; }
.cta__content::before { content: ''; position: absolute; inset: -10% -20%; z-index: -1; background: radial-gradient(closest-side, var(--bg), color-mix(in srgb, var(--bg) 70%, transparent) 60%, transparent); }
.cta__title { font-size: clamp(36px, 5.6vw, 72px); font-weight: 600; letter-spacing: -0.05em; line-height: 1.02; margin: 16px 0 18px; }
.cta__sub { color: var(--mut); font-size: 17px; margin-bottom: 30px; }
@media (max-width: 640px) { .orbit img { width: 46px; height: 46px; margin: -23px 0 0 -23px; } .cta { min-height: 600px; } .cta__content { padding: 40px 8px; } }

/* ============ footer ============ */
.footer { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter) calc(28px + env(safe-area-inset-bottom, 0px)); overflow: hidden; }
.footer__row { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; padding: 28px 0; border-top: 1px solid var(--line); }
.footer__row nav { display: flex; gap: 22px; flex-wrap: wrap; font-size: 14px; color: var(--mut); }
.footer__row nav a:hover { color: var(--fg); }
.footer__big {
  font-size: 15.4vw; font-weight: 800; letter-spacing: -0.06em; line-height: 0.85; text-align: center; white-space: nowrap; user-select: none;
  background: linear-gradient(180deg, color-mix(in srgb, var(--fg) 14%, transparent), transparent 85%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
@media (min-width: 1240px) { .footer__big { font-size: 190px; } }
.footer__copy { text-align: center; color: var(--dim); font-size: 13px; margin-top: 10px; }

/* mobile hero: give the phone room (kept last so it wins over the base rules) */
@media (max-width: 640px) {
  .stage { height: calc(var(--ph) * 0.7); margin-top: 32px; }
  .hero__outro { padding-top: 0; padding-bottom: 56px; }
  .led { margin-top: 0; }
  .hero__ctas { margin-top: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; }
}

