/* Kernel — the website. Dark like the app, lit in Kernel orange. */

:root {
  color-scheme: dark;
  --bg: #000;
  --bg-2: #0a0a0b;
  --tile: #141416;
  --tile-2: #1c1c1f;
  --ink: #f5f5f7;
  --ink-2: #a1a1a6;
  --ink-3: #6e6e73;
  --line: rgba(255, 255, 255, .12);
  --orange: #ff9a03;
  --orange-hi: #ffc54d;
  --orange-lo: #ff7b00;
  --pink: #ff5e7e;
  --violet: #b86bff;
  --blue: #5e8bff;
  --note: #ffe793;
  --surface: rgba(51, 51, 51, .62);
  --icon-grad: linear-gradient(180deg, #ffc84a 0%, #ff9a03 55%, #ff7a00 100%);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --rounded: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 4.4vw, 48px);
  --nav: 52px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--nav); background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.47 var(--font); letter-spacing: -.022em; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; }
a { color: var(--orange); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; letter-spacing: inherit; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #000; padding: 10px 14px; border-radius: 10px; }
.skip:focus { top: 12px; }
.nowrap { white-space: nowrap; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.center { text-align: center; }
.narrow { max-width: 40rem; }
.center .narrow { margin-left: auto; margin-right: auto; }
.band { position: relative; padding: clamp(96px, 13vw, 170px) 0; }

/* ── Type ─────────────────────────────────────────────────── */
.eyebrow { margin: 0 0 14px; font-size: clamp(17px, 1.6vw, 21px); font-weight: 600; letter-spacing: -.01em; color: var(--orange); }
.headline { margin: 0 0 22px; font-size: clamp(44px, 7.4vw, 92px); line-height: 1.04; font-weight: 700; letter-spacing: -.035em; text-wrap: balance; }
.headline-s { margin: 0 0 18px; font-size: clamp(32px, 4.4vw, 56px); line-height: 1.07; font-weight: 700; letter-spacing: -.03em; text-wrap: balance; }
.title-m { margin: 0 0 10px; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.14; font-weight: 700; letter-spacing: -.02em; }
.body-l { margin: 0; font-size: clamp(19px, 1.9vw, 24px); line-height: 1.33; font-weight: 600; color: var(--ink-2); letter-spacing: -.02em; text-wrap: pretty; }
.body-l strong { color: var(--ink); font-weight: 600; }
.body-m { margin: 0; font-size: clamp(16px, 1.3vw, 18px); line-height: 1.45; color: var(--ink-2); text-wrap: pretty; }
.fineprint { margin-top: 26px; font-size: 13px; line-height: 1.5; color: var(--ink-3); max-width: 52rem; }
.grad { background: linear-gradient(90deg, var(--orange-hi), var(--orange) 45%, var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section-head { margin-bottom: clamp(36px, 5vw, 64px); }

/* ── Buttons ──────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 999px; font-size: 17px; font-weight: 600; text-decoration: none !important; transition: transform .2s var(--ease), background .2s; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--ink); color: #000; }
.btn-primary:hover { background: #fff; }
/* Apple's App Store badge, as Apple draws it: never restyled, with a quarter of its height clear around it. */
.store-badge { display: inline-block; line-height: 0; border-radius: 12px; text-decoration: none !important; }
.store-badge img { height: 52px; width: auto; }
.btn-link { color: var(--ink); padding: 0 12px; }
.btn-link:hover { color: var(--orange-hi); }

/* ── Local nav ────────────────────────────────────────────── */
.localnav { position: fixed; inset: 0 0 auto; z-index: 50; height: calc(var(--nav) + env(safe-area-inset-top)); padding-top: env(safe-area-inset-top); transition: background .4s, border-color .4s; border-bottom: 1px solid transparent; }
.localnav.solid { background: rgba(10, 10, 12, .72); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom-color: rgba(255, 255, 255, .08); }
.localnav-inner { max-width: 1180px; height: var(--nav); margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 21px; font-weight: 700; letter-spacing: -.02em; text-decoration: none !important; margin-right: auto; }
.brand img { width: 28px; height: 28px; }
.localnav-links { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.localnav-links a { color: var(--ink-2); font-size: 13px; text-decoration: none; }
.localnav-links a:hover, .localnav-links a.on { color: var(--ink); }
.pill-cta { display: inline-flex; align-items: center; min-height: 28px; padding: 0 14px; border-radius: 999px; background: var(--ink); color: #000; font-size: 13px; font-weight: 600; letter-spacing: -.01em; text-decoration: none !important; transition: background .2s; }
.pill-cta:hover { background: #fff; }
@media (max-width: 833px) { .localnav-links { display: none; } }

/* ── Scenes: sticky stages driven by scroll ───────────────── */
.scene .stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
html:not(.js) .reveal { opacity: 1; transform: none; }

/* ── Devices ──────────────────────────────────────────────── */
/* Apple's bezel over the app's real screenshot (deviceHTML in site.js). */
.dev { position: relative; width: 100%; }
.dev-screen { position: absolute; overflow: hidden; background: #000; }
.dev-screen img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; opacity: 0; transition: opacity .7s var(--ease); }
.dev-screen img.on { opacity: 1; }
.dev-frame { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; z-index: 1; pointer-events: none; }
/* Every screen is a size container; its UI is drawn in points (--u). */
.screen { position: relative; overflow: hidden; container-type: inline-size; background: #000; isolation: isolate; }
.iphone { --w: 300px; position: relative; width: var(--w); aspect-ratio: 434 / 906; border-radius: calc(var(--w) * .165); }
.iphone::before { content: ""; position: absolute; inset: 0; border-radius: inherit; border: calc(var(--w) * .037) solid #050506; z-index: 2; pointer-events: none; }
.iphone-ring { position: absolute; inset: calc(var(--w) * -.012); border-radius: calc(var(--w) * .177); border: calc(var(--w) * .013) solid transparent; background: linear-gradient(140deg, #8a8a90, #2c2c2f 22%, #55555a 50%, #222224 78%, #6a6a6f) border-box; -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) padding-box exclude, linear-gradient(#000 0 0); z-index: 3; pointer-events: none; }
.iphone { box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .9); }
.iphone-screen { position: absolute; inset: calc(var(--w) * .037); border-radius: calc(var(--w) * .128); z-index: 1; --u: calc(100cqw / 402); }
/* The Dynamic Island: simulator screenshots leave it out, the hardware draws it */
.iphone-screen::after { content: ""; position: absolute; z-index: 30; left: 50%; top: 1.3%; width: 31%; height: 4.2%; translate: -50% 0; border-radius: 999px; background: #000; }

/* ── Hero ─────────────────────────────────────────────────── */
.hero { height: 380vh; }
.hero .stage { background: #000; }
.wall { position: absolute; inset: 0; perspective: 1400px; z-index: 1; will-change: clip-path; }
.wall-plane { position: absolute; left: 0; top: 0; width: max-content; display: flex; gap: var(--gx); transform-origin: 50% 50%; will-change: transform; }
.wall-col { flex: none; display: flex; flex-direction: column; gap: var(--gy); will-change: transform; }
.wall-col img { max-width: none; width: var(--cw); height: calc(var(--cw) * 1.5); object-fit: cover; border-radius: calc(var(--cw) * .085); background: #1a1a1c; }
.hero-vignette { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: radial-gradient(ellipse 60% 55% at 50% 52%, rgba(0, 0, 0, .78), rgba(0, 0, 0, .35) 70%, rgba(0, 0, 0, .1)), linear-gradient(#000, transparent 18%, transparent 78%, #000); }
.hero-phone { position: absolute; left: 0; top: 0; z-index: 3; }
.hero-phone .iphone-screen { background: transparent; }
.hero-shot { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; opacity: 0; }
.hero-phone::before, .hero-phone .iphone-ring, .hero-phone .iphone-screen::after { opacity: var(--frame, 0); }
.hero-phone { box-shadow: none; }
.hero-copy { position: absolute; z-index: 4; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: var(--nav) var(--gutter) 40px; }
.hero-icon { width: clamp(76px, 8vw, 104px); height: auto; border-radius: 22.4%; box-shadow: 0 20px 60px -10px rgba(255, 140, 0, .55); margin-bottom: 26px; }
.hero-copy h1 { margin: 0; display: flex; flex-direction: column; align-items: center; }
.hero-name { font-size: clamp(64px, 11vw, 150px); line-height: .95; font-weight: 800; letter-spacing: -.045em; background: linear-gradient(180deg, #fff 30%, #ffd9a8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-tag { margin-top: 14px; font-size: clamp(24px, 3.2vw, 40px); line-height: 1.1; font-weight: 700; letter-spacing: -.03em; }
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 26px; margin-top: 34px; }
.hero-after { position: absolute; z-index: 4; opacity: 0; pointer-events: none; }
.hero-after.on { pointer-events: auto; }
.cue { position: absolute; z-index: 5; left: 50%; bottom: max(22px, env(safe-area-inset-bottom)); translate: -50% 0; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.cue svg { animation: nudge 2.2s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(5px); } }

/* Kernel's Discover screen, in points */

/* ── The film ─────────────────────────────────────────────── */
.film { padding-bottom: clamp(64px, 9vw, 120px); }
.film-frame { max-width: 1240px; margin: clamp(40px, 5vw, 64px) auto 0; padding: 0 var(--gutter); }
.film-player { position: relative; aspect-ratio: 2 / 1; border-radius: clamp(18px, 2.4vw, 32px); overflow: hidden; background: #0a0a0b; transform-origin: 50% 0; box-shadow: 0 50px 120px -40px rgba(255, 130, 0, .3); }
.film-player video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; background: #000; }
.film-play { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; border: 0; padding: 0; cursor: pointer; font: inherit; color: #fff; background: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, .1), rgba(0, 0, 0, .45)); }
.film-play[hidden], .film-ui[hidden] { display: none; }
.film-ui { position: absolute; right: clamp(12px, 1.6vw, 22px); bottom: clamp(12px, 1.6vw, 22px); display: flex; gap: 10px; }
.film-btn { width: 44px; height: 44px; border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: #fff; background: rgba(40, 40, 44, .55); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); transition: background .2s, transform .2s var(--ease); }
.film-btn:hover { background: rgba(70, 70, 76, .7); }
.film-btn:active { transform: scale(.94); }
.film-btn svg { width: 20px; height: 20px; }
.film-btn[aria-pressed="true"] .i-off, .film-btn[aria-pressed="false"] .i-on { display: none; }
.film-play-btn { width: clamp(72px, 8vw, 96px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; padding-left: 4px; background: rgba(255, 255, 255, .22); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35), 0 20px 50px rgba(0, 0, 0, .35); transition: transform .3s var(--ease), background .3s; }
.film-play:hover .film-play-btn { transform: scale(1.08); background: rgba(255, 255, 255, .3); }
.film-play-label { font-size: 17px; font-weight: 600; text-shadow: 0 2px 12px rgba(0, 0, 0, .6); }

/* ── Top 10 ───────────────────────────────────────────────── */
.region-pick { position: relative; display: inline-block; }
.region-pick select { appearance: none; -webkit-appearance: none; font: inherit; letter-spacing: inherit; color: var(--ink); background: none; border: 0; padding: 0 22px 0 0; cursor: pointer; border-bottom: 2px dotted rgba(255, 255, 255, .35); border-radius: 0; }
.region-pick::after { content: ""; position: absolute; right: 4px; top: 50%; width: 8px; height: 8px; border: solid var(--ink-2); border-width: 0 2px 2px 0; transform: translateY(-75%) rotate(45deg); pointer-events: none; }
.region-pick select option { color: #000; }
.t10-controls { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.service-tabs { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 4px var(--gutter); }
.service-tabs::-webkit-scrollbar { display: none; }
.svc { flex: none; display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 16px 6px 6px; border-radius: 999px; border: 0; background: var(--tile-2); color: var(--ink-2); font-size: 15px; font-weight: 600; cursor: pointer; transition: background .25s, color .25s, transform .2s; }
.svc img { width: 36px; height: 36px; border-radius: 10px; }
.svc[aria-selected="true"] { background: #f5f5f7; color: #000; }
.svc:active { transform: scale(.97); }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--tile-2); }
.seg button { border: 0; background: none; min-height: 40px; padding: 0 18px; border-radius: 999px; color: var(--ink-2); font-size: 15px; font-weight: 600; cursor: pointer; }
.seg button[aria-pressed="true"] { background: rgba(255, 255, 255, .16); color: var(--ink); }
.t10-row-wrap { position: relative; }
.t10-row { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(220px, 23vw, 300px); gap: clamp(8px, 1.2vw, 18px); list-style: none; margin: 0; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 max(var(--gutter), calc((100vw - 1180px) / 2 + var(--gutter))); padding: 10px max(var(--gutter), calc((100vw - 1180px) / 2 + var(--gutter))) 24px; scrollbar-width: none; }
.t10-row::-webkit-scrollbar { display: none; }
.t10 { position: relative; display: flex; align-items: flex-end; scroll-snap-align: start; padding-left: 33%; }
.t10-num { position: absolute; left: 0; bottom: -.06em; font: 800 clamp(140px, 14vw, 190px)/.82 var(--font); letter-spacing: -.07em; color: #000; -webkit-text-stroke: 3px rgba(255, 255, 255, .85); paint-order: stroke fill; user-select: none; }
.t10:nth-child(n+10) { padding-left: 50%; }
.t10 button { position: relative; flex: 1; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 12px; }
.t10 img { width: 100%; aspect-ratio: 2/3; object-fit: cover; border-radius: 12px; background: #1a1a1c; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .9); transition: transform .35s var(--ease); }
.t10 button:hover img { transform: translateY(-4px) scale(1.02); }
.t10 .t10-name { position: absolute; left: 0; right: 0; bottom: -22px; font-size: 13px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left; }
.t10.enter { animation: t10in .7s var(--ease) both; animation-delay: calc(var(--i) * 45ms); }
@keyframes t10in { from { opacity: 0; transform: translateX(40px); } }
.row-arrow { position: absolute; top: calc(50% - 30px); width: 48px; height: 48px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(60, 60, 64, .72); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); color: #fff; cursor: pointer; opacity: 0; transition: opacity .3s; z-index: 2; }
.row-arrow.prev { left: max(10px, calc((100vw - 1180px) / 2 - 20px)); }
.row-arrow.next { right: max(10px, calc((100vw - 1180px) / 2 - 20px)); }
.t10-row-wrap:hover .row-arrow:not([disabled]) { opacity: 1; }
@media (hover: none) { .row-arrow { display: none; } }

/* ── Story: a detail page in three beats ──────────────────── */
.story-grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
.story-device { display: none; }
.story-step { padding: 8vh 0; }
.story-step .body-l { max-width: 32rem; }
.story-mini { margin-top: 30px; width: min(66vw, 280px); }
.rate-demo { margin-top: 26px; display: inline-flex; flex-direction: column; gap: 10px; }
.rate-demo .k-badge-row { font-size: 17px; }
.rate-stars { display: inline-flex; gap: 6px; cursor: pointer; touch-action: none; padding: 6px 0; }
.rate-stars svg { width: 34px; height: 34px; }
.rate-hint { font-size: 14px; color: var(--ink-3); min-height: 1.4em; }
@media (min-width: 900px) {
  .story-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6vw; }
  .story-device { display: block; position: sticky; top: 0; height: 100vh; height: 100svh; }
  .story-phone { position: absolute; left: 50%; top: 50%; width: min(345px, 40svh); translate: -50% -46%; }
  .story-step { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 0; opacity: .25; transition: opacity .6s; }
  .story-step.on { opacity: 1; }
  .story-mini { display: none; }
}

/* Kernel's detail screen */
.k-badge-row { display: inline-flex; align-items: center; gap: .4em; font-size: calc(var(--u) * 15); font-weight: 600; }
.k-badge { width: 1.15em; height: 1.15em; border-radius: 26%; background: var(--icon-grad); display: inline-grid; place-items: center; overflow: hidden; }
.k-badge img { width: 100%; height: 100%; }

/* ── Playlists ────────────────────────────────────────────── */
.playlists { height: 330vh; }
.playlists .stage { display: flex; flex-direction: column; align-items: center; padding: calc(var(--nav) + clamp(16px, 5svh, 56px)) var(--gutter) 24px; }
.pl-head { text-align: center; max-width: 60rem; }
.pl-head .headline, .ev-head .headline { margin-bottom: 14px; font-size: clamp(38px, 5.4vw, 72px); }
.pl-board { position: relative; flex: 1; width: 100%; max-width: 1040px; margin-top: clamp(18px, 3svh, 36px); min-height: 0; }
.pl-grid { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr); gap: clamp(10px, 1.6vw, 20px); }
.pl-card { position: relative; border-radius: clamp(16px, 2vw, 26px); overflow: hidden; padding: clamp(10px, 1.4vw, 16px); display: flex; flex-direction: column; background: linear-gradient(160deg, color-mix(in srgb, var(--tint, #555) 55%, #3a3a3c), color-mix(in srgb, var(--tint, #555) 22%, #1c1c1e)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 30px 60px -30px rgba(0, 0, 0, .8); transition: --tint 1s; opacity: 0; transform: translateY(24px) scale(.97); }
.pl-card.empty { --tint: #48484a; }
.pl-slots { flex: 1 1 0; min-height: 0; display: flex; gap: clamp(5px, .7vw, 9px); }
.pl-slot { flex: none; height: 100%; aspect-ratio: 2/3; border-radius: clamp(5px, .6vw, 8px); background: rgba(255, 255, 255, .08); }
.pl-emoji { flex: 1; display: grid; place-items: center; font-size: clamp(38px, 5vw, 64px); line-height: 1; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .35)); }
.pl-name { margin-top: clamp(6px, 1vw, 12px); font-size: clamp(14px, 1.45vw, 19px); font-weight: 700; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-count { font-size: clamp(12px, 1.1vw, 14px); color: rgba(255, 255, 255, .55); font-weight: 600; font-variant-numeric: tabular-nums; }
.pl-flyers { position: absolute; inset: 0; pointer-events: none; }
.pl-flyer { position: absolute; left: 0; top: 0; object-fit: cover; border-radius: clamp(5px, .6vw, 8px); box-shadow: 0 16px 34px -12px rgba(0, 0, 0, .8); will-change: transform; background: #222; }
.pl-foot { display: flex; align-items: center; gap: 10px; margin-top: 18px; text-align: center; color: var(--ink-2); opacity: 0; transition: opacity .6s; }
.pl-foot.on { opacity: 1; }
@media (max-width: 733px) {
  .pl-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(3, 1fr); }
  .pl-foot { font-size: 14px; }
}

/* ── Countdowns ───────────────────────────────────────────── */
.countdown { padding-bottom: clamp(60px, 8vw, 100px); }
.spotlight { position: relative; margin-top: clamp(40px, 5vw, 64px); border-radius: clamp(24px, 3vw, 36px); overflow: hidden; min-height: clamp(460px, 44vw, 560px); display: grid; grid-template-columns: 1fr; align-items: end; background: #111 center / cover no-repeat; isolation: isolate; }
.spotlight::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0, 0, 0, .88), rgba(0, 0, 0, .55) 55%, rgba(0, 0, 0, .15)), linear-gradient(transparent 40%, rgba(0, 0, 0, .7)); }
.spot-body { padding: clamp(24px, 4vw, 56px); }
.spot-eyebrow { font-size: 15px; font-weight: 600; color: var(--orange-hi); margin: 0 0 8px; display: flex; align-items: center; gap: 8px; }
.spot-title { margin: 0; font-size: clamp(34px, 4.6vw, 60px); line-height: 1.02; font-weight: 800; letter-spacing: -.035em; max-width: 14ch; }
.spot-date { margin: 10px 0 0; font-size: clamp(16px, 1.5vw, 19px); color: rgba(255, 255, 255, .72); font-weight: 600; }
.clock { display: flex; gap: clamp(6px, 2vw, 28px); margin-top: clamp(22px, 3vw, 34px); }
.clock-unit { display: flex; flex-direction: column; align-items: flex-start; }
.clock-num { position: relative; overflow: hidden; height: 1em; font: 800 clamp(34px, 7vw, 96px)/1 var(--rounded); font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.clock-num span { display: block; }
.clock-num span.tick { animation: tick .5s var(--ease); }
@keyframes tick { from { transform: translateY(-60%); opacity: 0; } }
.clock-unit small { margin-top: 8px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.clock-sep { font: 800 clamp(34px, 7vw, 96px)/1 var(--rounded); color: rgba(255, 255, 255, .35); }
.spot-add { margin-top: clamp(24px, 3vw, 34px); display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px 0 18px; border: 0; border-radius: 999px; cursor: pointer; font-size: 17px; font-weight: 600; color: #fff; background: rgba(255, 255, 255, .16); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); transition: background .3s, color .3s, transform .2s; }
.spot-add:active { transform: scale(.97); }
.spot-add[aria-pressed="true"] { background: #fff; color: #000; }
.spot-poster { display: none; }
@media (min-width: 900px) {
  .spotlight { grid-template-columns: 1fr auto; }
  .spot-poster { display: block; width: clamp(200px, 20vw, 280px); margin: 0 clamp(24px, 4vw, 56px) clamp(24px, 4vw, 56px) 0; aspect-ratio: 2/3; object-fit: cover; border-radius: 18px; box-shadow: 0 30px 80px rgba(0, 0, 0, .7); transform: rotate(3deg); }
}
.cd-more { display: grid; grid-template-columns: 1fr; gap: 40px; margin-top: clamp(40px, 5vw, 64px); }
@media (min-width: 1000px) { .cd-more { grid-template-columns: 1.35fr 1fr; align-items: center; } }

.widgets-board { position: relative; height: clamp(500px, 52vw, 620px); }
.wdg { position: absolute; display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 26px; color: #fff; background: linear-gradient(150deg, color-mix(in srgb, var(--tint, #555) 80%, #fff 6%), color-mix(in srgb, var(--tint, #555) 50%, #111)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 30px 60px -24px rgba(0, 0, 0, .9); will-change: transform; }
.wdg img { height: 100%; aspect-ratio: 2/3; object-fit: cover; border-radius: 12px; box-shadow: 0 8px 20px rgba(0, 0, 0, .35); }
.wdg .wdg-days { font: 700 32px/1 var(--rounded); letter-spacing: -.02em; white-space: nowrap; }
.wdg .wdg-name { margin-top: 6px; font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .7); max-width: 12ch; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wdg .wdg-mark { position: absolute; right: 11px; top: 11px; width: 19px; height: 17px; background: #fff; -webkit-mask: url(img/kernel-mark.svg) center / contain no-repeat; mask: url(img/kernel-mark.svg) center / contain no-repeat; }
.wdg.m { width: 300px; height: 140px; }
.wdg.s { width: 140px; height: 140px; flex-direction: column; align-items: flex-start; justify-content: space-between; }
.wdg.s img { height: 70px; border-radius: 10px; }
.wdg.s .wdg-days { font-size: 26px; }
/* A notification banner as iOS draws it in Dark Mode: glass, app icon, title and time, the message, the picture. */
.ios-notif { display: flex; align-items: center; gap: 11px; padding: 12px 13px 12px 12px; border-radius: 26px; color: #fff; text-align: left; letter-spacing: -.01em; font-family: var(--font); background: rgba(38, 38, 40, .62); -webkit-backdrop-filter: blur(30px) saturate(190%); backdrop-filter: blur(30px) saturate(190%); box-shadow: inset 0 .5px 0 rgba(255, 255, 255, .22), inset 0 0 0 .5px rgba(255, 255, 255, .1), 0 16px 40px rgba(0, 0, 0, .35); }
.ios-notif .n-icon { flex: none; align-self: flex-start; width: 38px; height: 38px; border-radius: 9.5px; margin-top: 1px; }
.ios-notif .n-text { flex: 1; min-width: 0; align-self: center; }
.ios-notif .n-text b { display: block; font-size: 15px; line-height: 20px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ios-notif p { margin: 0; font-size: 15px; line-height: 20px; color: rgba(255, 255, 255, .92); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ios-notif .n-side { flex: none; align-self: stretch; display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 4px; }
.ios-notif .n-time { font-size: 13px; line-height: 16px; color: rgba(255, 255, 255, .55); }
.ios-notif .n-thumb { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; }
.notif { position: absolute; left: 50%; top: 0; z-index: 5; width: min(370px, 94%); transform: translate(-50%, -30px); opacity: 0; transition: transform .7s var(--ease), opacity .5s; }
.notif.show { transform: translate(-50%, 0); opacity: 1; }
.cd-side { display: flex; flex-direction: column; align-items: center; gap: 30px; text-align: center; }
.cd-copy { max-width: 26rem; }
@media (max-width: 733px) {
  .widgets-board { height: 560px; }
  .wdg.m { width: 290px; height: 136px; }
  .wdg.s { width: 138px; height: 138px; }
  .wdg.s img { height: 66px; }
  .wdg .wdg-days { font-size: 29px; }
  .wdg.s .wdg-days { font-size: 22px; }
}

/* Apple Watch: Apple's own Series 11 (46 mm) bezel, the real watch app showing through its screen */
.watch-wrap { position: relative; padding: 0; }
.aw { position: relative; width: clamp(200px, 19vw, 250px); aspect-ratio: 560 / 880; }
.aw-frame { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.aw-screen { position: absolute; left: 12.857%; top: 21.818%; width: 74.286%; height: 56.364%; background: #000; border-radius: 22%/18%; overflow: hidden; }
.aw-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s; }
.aw-screen img.on { opacity: 1; }

/* ── Kernel AI ────────────────────────────────────────────── */
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.ai { overflow: hidden; }
.ai-glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 50% at 18% 105%, rgba(255, 154, 3, .38), transparent 70%), radial-gradient(50% 45% at 85% 100%, rgba(184, 107, 255, .26), transparent 70%), radial-gradient(40% 30% at 50% 100%, rgba(255, 94, 126, .2), transparent 70%); }
.eyebrow-ai { display: inline-flex; align-items: center; gap: 8px; background: linear-gradient(90deg, var(--orange), var(--pink), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow-ai svg { color: var(--orange); }
.ai-title { background: linear-gradient(90deg, #fff, #ffd9a8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ai-demo { position: relative; max-width: 860px; margin: clamp(40px, 5vw, 64px) auto 0; }
.ai-field { position: relative; display: flex; align-items: center; gap: 12px; min-height: 68px; padding: 14px 22px; border-radius: 999px; font-size: clamp(17px, 2vw, 22px); font-weight: 600; border: 2px solid transparent; background: linear-gradient(#111113, #111113) padding-box, conic-gradient(from var(--ang), var(--orange), var(--pink), var(--violet), var(--blue), var(--orange)) border-box; animation: spin 6s linear infinite; }
.ai-field::before { content: ""; position: absolute; inset: -6px; z-index: -1; border-radius: inherit; background: conic-gradient(from var(--ang), var(--orange), var(--pink), var(--violet), var(--blue), var(--orange)); filter: blur(22px); opacity: .55; animation: spin 6s linear infinite; }
.ai-demo.thinking .ai-field, .ai-demo.thinking .ai-field::before { animation-duration: 1.6s; }
.ai-demo.thinking .ai-field::before { opacity: .9; }
@keyframes spin { to { --ang: 360deg; } }
.ai-field-icon { color: var(--orange); display: grid; }
.ai-text { min-width: 0; }
.ai-text:empty::before { content: "Describe a movie or show"; color: var(--ink-3); }
.ai-caret { width: 2px; height: 1.2em; background: var(--orange); animation: blink 1s steps(2) infinite; margin-left: -8px; }
@keyframes blink { 50% { opacity: 0; } }
.ai-answer { min-height: 230px; margin-top: 28px; display: flex; justify-content: center; }
.ai-card { display: flex; gap: 22px; align-items: center; text-align: left; padding: 16px 26px 16px 16px; border-radius: 28px; background: rgba(40, 40, 44, .62); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); animation: pop .7s var(--ease) both; max-width: 100%; }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.97); } }
.ai-card img { width: clamp(110px, 14vw, 140px); aspect-ratio: 2/3; object-fit: cover; border-radius: 14px; box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .8); }
.ai-card p { margin: 0; font-size: clamp(19px, 2vw, 24px); font-weight: 700; line-height: 1.2; letter-spacing: -.02em; }
.ai-card p b { background: linear-gradient(90deg, #fff, #ffd9a8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ai-card small { display: block; margin-top: 8px; color: var(--ink-2); font-size: 15px; font-weight: 600; }
.ai-card .ai-open { margin-top: 16px; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, .14); color: #fff; font-size: 15px; font-weight: 600; cursor: pointer; }
.ai-thinking { align-self: center; display: flex; align-items: center; gap: 10px; color: var(--ink-2); font-weight: 600; }
.ai-thinking svg { color: var(--orange); animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(.7); opacity: .5; } }
.ai-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }
.ai-chip { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, .08); color: var(--ink-2); font-size: 14px; font-weight: 600; cursor: pointer; text-align: left; transition: background .25s, color .25s; }
.ai-chip:hover { background: rgba(255, 255, 255, .14); color: var(--ink); }
.ai-chip[aria-pressed="true"] { background: rgba(255, 154, 3, .18); color: #ffd9a8; box-shadow: inset 0 0 0 1px rgba(255, 154, 3, .45); }

/* ── Everywhere: the family ───────────────────────────────── */
.everywhere { height: 240vh; }
.everywhere .stage { display: flex; flex-direction: column; align-items: center; padding: calc(var(--nav) + clamp(16px, 5svh, 56px)) var(--gutter) 20px; }
.ev-head { text-align: center; max-width: 52rem; }
.family { position: relative; width: min(100%, 1060px, calc((100svh - 420px) * 1.96)); aspect-ratio: 1100 / 560; margin-top: auto; margin-bottom: auto; container-type: inline-size; }
.fam { position: absolute; will-change: transform, opacity; opacity: 0; }
.fam-tv { left: 20%; top: 0; width: 60%; }
.fam-tv .tvbox { position: relative; aspect-ratio: 16/9; border-radius: 1.1cqw; background: #050505; padding: .7cqw; box-shadow: 0 3cqw 6cqw -2cqw rgba(0, 0, 0, .9), inset 0 0 0 1px rgba(255, 255, 255, .12); }
.fam-tv img { width: 100%; height: 100%; object-fit: cover; border-radius: .5cqw; }
.fam-vision { left: 75%; top: 1%; width: 25%; }
.fam-vision img { width: 100%; height: auto; }
.fam-duo { left: 0; top: 42%; width: 35%; }
.fam-iphone { left: 40%; top: 25%; width: 14.5%; }
.fam-watch { left: 58.5%; top: 52%; width: 12.5%; }
.family-labels { display: none; }
@media (max-width: 733px) {
  .clock-unit small { font-size: 11px; letter-spacing: .04em; }
  /* On a phone the family is rearranged to fit the screen, rather than cropped at its sides. */
  .family { width: 100%; aspect-ratio: 1100 / 840; }
  .fam-tv { left: 3%; top: 3%; width: 70%; }
  .fam-vision { left: 61%; top: 0; width: 39%; }
  .fam-iphone { left: 38%; top: 29%; width: 21.5%; }
  .fam-duo { left: 0; top: 52%; width: 40%; }
  .fam-watch { left: 62.5%; top: 50%; width: 17%; }
}

/* A small Duo, open, for the family */

/* A small visionOS window */
.vwin { position: relative; aspect-ratio: 16/10.5; border-radius: 6.5%/10%; overflow: hidden; background: rgba(150, 150, 160, .22); -webkit-backdrop-filter: blur(24px) saturate(150%); backdrop-filter: blur(24px) saturate(150%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22), 0 3cqw 6cqw -2cqw rgba(0, 0, 0, .7); container-type: inline-size; --u: calc(100cqw / 1000); }
.vgrab { margin: 3% auto 0; width: 16%; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .5); }

/* visionOS Kernel home, in window points */
.v-app { position: absolute; inset: 0; padding: calc(var(--u) * 40) calc(var(--u) * 44); color: #fff; letter-spacing: 0; }
.v-app h5 { margin: 0 0 calc(var(--u) * 18); font-size: calc(var(--u) * 40); font-weight: 700; }
.v-hero { height: calc(var(--u) * 330); border-radius: calc(var(--u) * 30); background: #333 center / cover no-repeat; position: relative; overflow: hidden; }
.v-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .65), transparent 60%); }
.v-hero b { position: absolute; z-index: 1; left: calc(var(--u) * 30); bottom: calc(var(--u) * 46); font-size: calc(var(--u) * 34); max-width: 50%; line-height: 1.1; }
.v-hero small { position: absolute; z-index: 1; left: calc(var(--u) * 30); bottom: calc(var(--u) * 20); font-size: calc(var(--u) * 20); color: rgba(255, 255, 255, .7); font-weight: 600; }
.v-row-title { margin: calc(var(--u) * 26) 0 calc(var(--u) * 14); font-size: calc(var(--u) * 26); font-weight: 700; }
.v-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: calc(var(--u) * 16); }
.v-row img { width: 100%; aspect-ratio: 2/3; object-fit: cover; border-radius: calc(var(--u) * 18); background: #333; }

/* ── iPhone Duo ───────────────────────────────────────────── */
.duo { height: 460vh; }
.duo .stage { display: grid; grid-template-rows: auto 1fr; padding: calc(var(--nav) + 20px) var(--gutter) 20px; }
.duo-copy { position: relative; text-align: center; max-width: 46rem; margin: 0 auto; z-index: 2; }
.duo-copy .eyebrow { margin-bottom: 10px; }
.duo-lines { display: grid; }
.duo-line { grid-area: 1 / 1; opacity: 0; transition: opacity .5s, transform .5s var(--ease); transform: translateY(14px); }
.duo-line.on { opacity: 1; transform: none; }
.duo-line .headline-s { margin-bottom: 10px; }
.duo-scene { position: relative; perspective: 1800px; display: grid; place-items: center; min-height: 0; }
.duo-device { --w: min(44vw, 26svh); position: relative; width: calc(var(--w) * 2); height: calc(var(--w) * 1.428); transform-style: preserve-3d; transform-origin: 75% 50%; will-change: transform; }
.duo-half { position: absolute; top: 0; width: var(--w); height: 100%; border-radius: calc(var(--w) * .11); background: #141416; padding: calc(var(--w) * .035); box-shadow: inset 0 0 0 calc(var(--w) * .008) #56565b; }
.duo-right { left: var(--w); border-top-left-radius: 0; border-bottom-left-radius: 0; padding-left: 0; box-shadow: inset calc(var(--w) * -.008) 0 0 0 #56565b, inset 0 calc(var(--w) * .008) 0 0 #56565b, inset 0 calc(var(--w) * -.008) 0 0 #56565b, 0 40px 80px -30px rgba(0, 0, 0, .9); }
.duo-door { left: 0; background: none; padding: 0; box-shadow: none; transform-origin: right center; transform-style: preserve-3d; will-change: transform; }
.duo-face { position: absolute; inset: 0; border-radius: inherit; background: #141416; padding: calc(var(--w) * .035); -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.duo-front { border-top-right-radius: 0; border-bottom-right-radius: 0; padding-right: 0; box-shadow: inset calc(var(--w) * .008) 0 0 0 #56565b, inset 0 calc(var(--w) * .008) 0 0 #56565b, inset 0 calc(var(--w) * -.008) 0 0 #56565b; }
.duo-back { transform: rotateY(180deg); box-shadow: inset 0 0 0 calc(var(--w) * .008) #56565b, 0 40px 80px -30px rgba(0, 0, 0, .9); }
.duo-screen { width: 100%; height: 100%; border-radius: calc(var(--w) * .08); }
.duo-inner-right { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.duo-inner-left { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.duo-shade { position: absolute; inset: 0; z-index: 9; pointer-events: none; background: #000; opacity: 0; }
/* the open spread: one screenshot, half of it on each side of the fold */
.duo-spread { position: absolute; top: 0; height: 100%; width: 200%; left: 0; background: #000 0 0 / 100% 100% no-repeat; }
.duo-inner-right .duo-spread { left: -100%; }
/* the outer display: Cover Flow is a landscape screenshot, turned to sit in the upright screen */
.duo-cf { position: absolute; left: 50%; top: 50%; width: calc(var(--w) * 1.358); height: calc(var(--w) * .93); max-width: none; translate: -50% -50%; rotate: 90deg; object-fit: cover; }
video.duo-cf:not(.ready) { visibility: hidden; }
.duo-port { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; opacity: 0; }
@media (min-width: 900px) {
  .duo .stage { grid-template-rows: none; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: center; gap: 4vw; max-width: 1400px; margin: 0 auto; }
  .duo-copy { text-align: left; margin: 0; }
  .duo-device { --w: min(22vw, 34svh); }
}

/* ── Apple TV ─────────────────────────────────────────────── */
.tv-wrap { max-width: 1240px; margin: clamp(40px, 5vw, 64px) auto 0; padding: 0 var(--gutter); }
.tv { position: relative; border-radius: clamp(10px, 1.4vw, 18px); background: #050505; padding: clamp(5px, .7vw, 10px); box-shadow: 0 60px 120px -40px rgba(0, 0, 0, .95), inset 0 0 0 1px rgba(255, 255, 255, .1); transform-origin: 50% 30%; will-change: transform; }
.tv-screen { position: relative; aspect-ratio: 16/9; border-radius: clamp(5px, .7vw, 9px); overflow: hidden; background: #111; }
.tv-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .9s ease; }
.tv-screen img.on { opacity: 1; }
.tv-stand { width: 26%; height: clamp(10px, 1.6vw, 22px); margin: 0 auto; background: linear-gradient(#1b1b1d, #0c0c0d); border-radius: 0 0 10px 10px; }
.tv-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; list-style: none; margin-top: 28px; }
.tv-tabs button { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 0; background: var(--tile-2); color: var(--ink-2); font-size: 15px; font-weight: 600; cursor: pointer; position: relative; overflow: hidden; }
.tv-tabs button[aria-pressed="true"] { color: #000; background: #f5f5f7; }

/* ── Apple Vision Pro ─────────────────────────────────────── */
.vision { height: 300vh; }
.vision .stage { background: #000; }
.vision-env { position: absolute; inset: -6%; background: #222 center / cover no-repeat; filter: blur(28px) saturate(1.25) brightness(.5); transform: scale(1.1); }
.vision-env::after { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 70% at 50% 40%, transparent, rgba(0, 0, 0, .75)); }
/* Apple Vision Pro, Apple's photograph, on its own at the start of the section */
.vision-device { position: absolute; z-index: 4; left: 50%; top: 43%; width: min(74vw, 620px, 100svh); max-width: none; height: auto; transform: translate(-50%, -50%); will-change: transform, opacity; pointer-events: none; }
.vision-copy { position: absolute; z-index: 5; left: var(--gutter); right: var(--gutter); bottom: max(28px, 5svh); max-width: 34rem; }
.vision-space { position: absolute; inset: 0; perspective: 1200px; perspective-origin: 50% 42%; }
.vision-win { position: absolute; left: 50%; top: 38%; width: min(78vw, 760px, 90svh); translate: -50% -50%; will-change: transform, opacity; }
.vision-win .vwin { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25), 0 40px 90px -30px rgba(0, 0, 0, .7); }
.vorn { position: absolute; left: -5.6%; top: 50%; translate: 0 -50%; display: flex; flex-direction: column; gap: 14px; padding: 12px 10px; border-radius: 999px; background: rgba(150, 150, 160, .26); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
.vorn i { width: clamp(22px, 2.6vw, 34px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; color: rgba(255, 255, 255, .75); }
.vorn i.on { background: rgba(255, 255, 255, .22); color: #fff; }
.vorn svg { width: 56%; height: 56%; }
.ring { position: absolute; left: 50%; top: 42%; width: 0; height: 0; transform-style: preserve-3d; will-change: transform; }
.ring img { position: absolute; max-width: none; width: clamp(110px, 13vw, 190px); aspect-ratio: 2/3; margin: calc(clamp(110px, 13vw, 190px) * -.75) 0 0 calc(clamp(110px, 13vw, 190px) * -.5); object-fit: cover; border-radius: 12px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8); -webkit-backface-visibility: hidden; backface-visibility: hidden; background: #222; }
@media (max-width: 733px) { .vorn { display: none; } .vision-win { top: 36%; } }

/* ── Bento ────────────────────────────────────────────────── */
.bento { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
@media (min-width: 734px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1068px) { .bento { grid-template-columns: repeat(3, minmax(0, 1fr)); } .tile-wide, .tile-premium { grid-column: span 2; } }
.tile { position: relative; overflow: hidden; border-radius: 30px; background: var(--tile); padding: clamp(26px, 3vw, 40px); min-height: 300px; display: flex; flex-direction: column; }
.tile .title-m { color: var(--ink); }
.tile-rec { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
@media (min-width: 734px) { .tile-rec { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; } }
/* A Lock Screen with the friend's recommendation on it */
.rec-visual { position: relative; display: flex; justify-content: center; }
.lock { position: relative; width: min(100%, 340px); aspect-ratio: 340 / 300; border-radius: 30px; overflow: hidden; isolation: isolate; padding: 0 12px; display: flex; flex-direction: column; align-items: center; text-align: center; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 30px 60px -30px rgba(0, 0, 0, .9); }
.lock-wall { position: absolute; inset: -12%; z-index: -1; background: #333 center / cover no-repeat; filter: blur(22px) saturate(1.4) brightness(.62); transform: scale(1.1); }
.lock-date { margin-top: 26px; font: 600 15px/1.2 var(--font); color: rgba(255, 255, 255, .78); letter-spacing: 0; }
.lock-time { font: 700 78px/1 var(--rounded); letter-spacing: -.03em; color: rgba(255, 255, 255, .9); margin-top: 2px; }
.lock .ios-notif { width: 100%; margin-top: auto; margin-bottom: 14px; }
/* Siri, and the App Shortcuts Kernel gives it */
.siri-ask { margin: 6px 0 12px; font-size: 17px; line-height: 1.35; font-weight: 600; color: var(--ink-2); }
.siri-snippet { position: relative; padding: 14px; border-radius: 22px; background: #1d1d20; isolation: isolate; }
.siri-snippet::before { content: ""; position: absolute; inset: -1.5px; z-index: -1; border-radius: 23.5px; background: conic-gradient(from var(--ang), #ff9a03, #ff5e7e, #b86bff, #5e8bff, #39d5ff, #ff9a03); animation: spin 8s linear infinite; }
.siri-snippet::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: #1d1d20; }
.ss-app { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.ss-icon { width: 20px; height: 20px; border-radius: 5px; background: url(img/icon-128.png) center / cover; }
.ss-row { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.ss-row img { width: 44px; aspect-ratio: 2/3; object-fit: cover; border-radius: 7px; }
.ss-row b { display: block; font: 700 28px/1.05 var(--rounded); letter-spacing: -.02em; }
.ss-row small { display: block; margin-top: 3px; font-size: 14px; line-height: 1.3; color: var(--ink-2); }
.shortcut-tiles { margin: auto 0 0; padding: 20px 0 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.shortcut-tiles li { display: flex; flex-direction: column; justify-content: space-between; gap: 10px; min-height: 76px; padding: 12px 13px; border-radius: 18px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); color: var(--ink); font-size: 14px; font-weight: 600; line-height: 1.2; letter-spacing: -.01em; }
.shortcut-tiles svg { width: 22px; height: 22px; color: var(--orange); }
.glass-demo { position: relative; height: 150px; margin: -6px -6px 22px; border-radius: 22px; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 10px; background: #222; }
.glass-demo .blob { position: absolute; width: 90px; aspect-ratio: 2/3; object-fit: cover; border-radius: 10px; animation: drift 9s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate(var(--dx), var(--dy)) rotate(var(--dr)); } }
.g-btn { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: 999px; font-size: 15px; font-weight: 600; color: #fff; background: rgba(255, 255, 255, .12); -webkit-backdrop-filter: blur(10px) saturate(180%) brightness(1.1); backdrop-filter: blur(10px) saturate(180%) brightness(1.1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -1px 0 rgba(255, 255, 255, .12), inset 0 0 0 1px rgba(255, 255, 255, .22), 0 8px 20px rgba(0, 0, 0, .25); }
.g-btn.round { width: 44px; padding: 0; justify-content: center; }
.times { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: auto 0 0; padding: 22px 0 0; }
.times li { padding: 8px 14px; border-radius: 12px; background: var(--tile-2); font-weight: 600; font-variant-numeric: tabular-nums; }
.times li.hot { background: var(--orange); color: #000; }
.tile-icon { color: var(--orange); margin-bottom: auto; padding-bottom: 22px; }
.big-hola { margin: 0 0 auto; padding-bottom: 18px; font-size: 64px; font-weight: 800; letter-spacing: -.04em; line-height: 1; background: linear-gradient(90deg, var(--orange-hi), var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tile-show .title-m, .tile-sync .title-m { margin-top: 0; }
/* Kernel Premium: a quiet dark tile, warm light from one corner, the perks in a row */
.tile-premium { min-height: 260px; display: grid; grid-template-columns: 1fr; gap: 28px; align-content: space-between; background: radial-gradient(70% 120% at 100% 0%, rgba(255, 154, 3, .16), transparent 60%), var(--tile); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.prem-icon { display: block; width: 44px; height: 44px; margin-bottom: 18px; border-radius: 10px; background: url(img/icon-128.png) center / cover; box-shadow: 0 10px 24px -8px rgba(255, 140, 0, .55); }
.tile-premium .body-m { max-width: 34rem; }
.prem-perks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.prem-perks li { display: flex; flex-direction: column; gap: 2px; padding: 14px; border-radius: 18px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); font-size: 15px; font-weight: 600; line-height: 1.25; }
.prem-perks i { display: grid; place-items: center; width: 30px; height: 30px; margin-bottom: 8px; border-radius: 50%; background: rgba(255, 154, 3, .14); color: var(--orange); }
.prem-perks svg { width: 15px; height: 15px; }
.prem-perks small { font-size: 13px; font-weight: 500; color: var(--ink-3); }
@media (min-width: 1068px) { .tile-premium { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: end; } .prem-perks { align-self: end; } }

/* ── Download ─────────────────────────────────────────────── */
.download { position: relative; overflow: hidden; padding: clamp(110px, 15vw, 200px) 0; isolation: isolate; }
.dl-posters { position: absolute; inset: -10% -5%; z-index: -1; display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 12px; transform: rotate(-8deg); opacity: .22; -webkit-mask: radial-gradient(ellipse 60% 55% at 50% 50%, transparent 25%, #000 75%); mask: radial-gradient(ellipse 60% 55% at 50% 50%, transparent 25%, #000 75%); }
.dl-posters img { width: 100%; aspect-ratio: 2/3; object-fit: cover; border-radius: 10px; }
.dl-icon { width: clamp(100px, 11vw, 140px); height: auto; margin: 0 auto 30px; border-radius: 22.4%; box-shadow: 0 30px 90px -10px rgba(255, 140, 0, .6); }
.download .headline { font-size: clamp(56px, 9vw, 110px); }
.download .body-l { margin: 0 auto; }
.badge { display: inline-block; margin-top: 36px; }
.badge img { height: 54px; width: auto; }
.platforms { margin: 22px 0 0; color: var(--ink-3); font-size: 15px; font-weight: 600; }

/* ── Footer ───────────────────────────────────────────────── */
.footer { border-top: 1px solid rgba(255, 255, 255, .08); padding: 34px 0 calc(40px + env(safe-area-inset-bottom)); font-size: 12px; line-height: 1.5; color: var(--ink-3); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 22px; font-size: 14px; }
.footer-links a { color: var(--ink-2); }
.attrib { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.attrib p { margin: 0; max-width: 44rem; }
.attrib-logo { flex: none; width: 120px; }
.attrib-logo img { height: 14px; width: auto; }
.legal { margin: 18px 0 0; max-width: 62rem; }

/* ── Detail sheet ─────────────────────────────────────────── */
.sheet { width: min(94vw, 760px); max-height: min(88vh, 900px); padding: 0; border: 0; border-radius: 30px; background: #111; color: var(--ink); overflow: hidden; box-shadow: 0 50px 120px rgba(0, 0, 0, .8), inset 0 0 0 1px rgba(255, 255, 255, .1); }
.sheet::backdrop { background: rgba(0, 0, 0, .6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.sheet[open] { animation: sheetin .5s var(--ease); }
@keyframes sheetin { from { opacity: 0; transform: translateY(30px) scale(.98); } }
.sheet-bg { position: absolute; inset: 0; background: radial-gradient(90% 70% at 30% 0%, color-mix(in srgb, var(--tint, #553) 80%, #000), #111 75%); pointer-events: none; }
.sheet-close { position: absolute; right: 16px; top: 16px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer; }
.sheet-body { position: relative; max-height: inherit; overflow-y: auto; padding: clamp(24px, 4vw, 40px); display: grid; grid-template-columns: 1fr; gap: 26px; }
@media (min-width: 640px) { .sheet-body { grid-template-columns: 220px 1fr; } }
.sheet-body > img { width: min(220px, 60%); aspect-ratio: 2/3; object-fit: cover; border-radius: 16px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .9); }
@media (min-width: 640px) { .sheet-body > img { width: 100%; } }
.sheet-status { margin: 0; font-size: 15px; font-weight: 600; color: var(--orange-hi); }
.sheet-body h3 { margin: 4px 36px 8px 0; font-size: clamp(28px, 4vw, 38px); line-height: 1.05; font-weight: 800; letter-spacing: -.03em; }
.sheet-meta { margin: 0 0 14px; font-size: 15px; color: var(--ink-2); font-weight: 600; }
.sheet-body p.ov { margin: 0; font-size: 16px; line-height: 1.5; color: rgba(245, 245, 247, .86); }
.sheet-where h4 { margin: 22px 0 10px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.sheet-provs { display: flex; flex-wrap: wrap; gap: 8px; }
.sheet-provs span { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border-radius: 999px; background: rgba(255, 255, 255, .1); font-size: 14px; font-weight: 600; }
.sheet-provs img { width: 30px; height: 30px; border-radius: 8px; }
.sheet-cta { margin-top: 26px; }

/* ── Less motion, or no script: everything at rest, in order ── */
.still .scene { height: auto !important; }
.still .scene .stage { position: relative; }
.still .reveal { opacity: 1; transform: none; transition: none; }
.still .cue, .still .cue svg { animation: none; }
.still .ai-field, .still .ai-field::before { animation: none; }
.still .glass-demo .blob, .still .siri-snippet::before { animation: none; }
html:not(.js) .scene { height: auto; }
html:not(.js) .scene .stage { position: relative; height: auto; overflow: visible; padding-top: calc(var(--nav) + 40px); padding-bottom: 40px; }
html:not(.js) .hero-copy, html:not(.js) .hero-after { position: relative; opacity: 1; inset: auto; }
html:not(.js) .hero-after { padding: 0 var(--gutter) 60px; text-align: center; }
html:not(.js) .cue, html:not(.js) .duo-scene, html:not(.js) .pl-board, html:not(.js) .row-arrow, html:not(.js) .t10-controls, html:not(.js) .vision-space { display: none; }
html:not(.js) .duo-line { opacity: 1; transform: none; margin-bottom: 30px; }
html:not(.js) .duo-lines { display: block; }
html:not(.js) .vision-copy { position: relative; inset: auto; padding: 40px 0; }
html:not(.js) .vision-device { position: relative; left: auto; top: auto; transform: none; margin: 0 auto; }
html:not(.js) .vision .stage { overflow: clip; }
html:not(.js) .siri-snippet { display: none; }
html:not(.js) .story-step { opacity: 1; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
