/* Prism site. One pale room, one object at a time: a near-white card on grey, tiny uppercase labels, bold condensed
   titles in the corner, liquid glass surfaces. The lander opens in the dark and fills with light. */
:root {
  --bg: #ebebea;
  --bg-hi: #f6f6f5;
  --outer: #9ba1a4;
  --rim: #f8f8f7;
  --ink: #121213;
  --ink-2: rgba(18, 18, 19, .62);
  --ink-3: rgba(18, 18, 19, .4);
  --line: rgba(18, 18, 19, .1);
  --card: rgba(255, 255, 255, .55);
  --red: #ff4d5e;
  --orange: #ff8a3d;
  --yellow: #ffd23f;
  --green: #4fdc7c;
  --blue: #3fb4ff;
  --indigo: #6b6bff;
  --violet: #b36bff;
  --spectrum: linear-gradient(90deg, var(--red), var(--orange), var(--yellow), var(--green), var(--blue), var(--indigo), var(--violet));
  --sans: "Inter Tight", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --display: "Archivo", "Helvetica Neue", "Arial Narrow", Arial, sans-serif;
  --inset: 14px;
  --gutter: clamp(22px, 4.4vw, 68px);
  --radius: 26px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.4, .5, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
html.snap { scroll-snap-type: y proximity; }
body {
  margin: 0;
  background: radial-gradient(120% 90% at 50% 38%, var(--bg-hi), var(--bg) 60%, #e2e2e1);
  background-attachment: fixed;
  color: var(--ink);
  font: 400 15px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  transition: background-color 1.2s var(--ease);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: rgba(107, 107, 255, .22); }
.tiny { font: 700 10.5px/1.35 var(--sans); letter-spacing: .06em; text-transform: uppercase; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.defs { position: absolute; width: 0; height: 0; }
h1, h2, h3 { margin: 0; }
:focus-visible { outline: 2px solid var(--indigo); outline-offset: 3px; border-radius: 8px; }

/* ---------- Atmosphere: the underwater logo loop, turned to a pale ghost behind the slides ---------- */
.sky { position: fixed; inset: 0; z-index: -3; overflow: hidden; pointer-events: none; transition: opacity 1.6s var(--ease); }
.sky-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; mix-blend-mode: multiply; filter: invert(1) grayscale(.7) contrast(.85) brightness(1.04); }
/* The first slide keeps its single object clean: a pale fade over the top of the page scrolls away, the loop stays put. */
body::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 120svh; z-index: -2; pointer-events: none; background: linear-gradient(180deg, var(--bg-hi) 0%, color-mix(in srgb, var(--bg-hi) 96%, transparent) 45%, color-mix(in srgb, var(--bg) 60%, transparent) 75%, transparent 100%); transition: opacity 1.2s var(--ease); }

/* ---------- Liquid glass (tuned for a pale backdrop) ---------- */
.glass {
  position: relative;
  isolation: isolate;
  background: linear-gradient(180deg, rgba(255, 255, 255, .62), rgba(255, 255, 255, .2) 45%, rgba(255, 255, 255, .34));
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  backdrop-filter: blur(18px) saturate(170%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .95),
    inset 0 -1px 0 rgba(255, 255, 255, .4),
    inset 1px 0 0 rgba(255, 255, 255, .5),
    inset -1px 0 0 rgba(255, 255, 255, .3),
    0 1px 2px rgba(20, 24, 28, .06),
    0 26px 60px -26px rgba(20, 24, 28, .38);
}
/* Rim light: a thin gradient border that catches light at the corners. */
.glass::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 2;
  background: linear-gradient(135deg, rgba(255, 255, 255, .95), rgba(255, 255, 255, .2) 30%, rgba(120, 128, 136, .14) 60%, rgba(255, 255, 255, .7));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
/* Specular highlight that follows the pointer. */
.glass::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 1;
  background: radial-gradient(220px circle at var(--mx, 30%) var(--my, -20%), rgba(255, 255, 255, .55), transparent 60%);
  opacity: var(--hl, .7); transition: opacity .4s var(--ease);
}
/* Chromium: real refraction through an SVG lens (set per element by app.js). */
.lens-on .glass[data-lens] { -webkit-backdrop-filter: var(--lens, none) blur(2px) saturate(170%); backdrop-filter: var(--lens, none) blur(2px) saturate(170%); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-height: 50px; padding: 8px 26px;
  border-radius: 999px; text-decoration: none; font: 600 15px/1.15 var(--sans); letter-spacing: -.01em; white-space: nowrap;
  transition: transform .5s var(--spring), box-shadow .4s var(--ease), background .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(.97); transition-duration: .12s; }
.btn-solid { color: var(--bg-hi); background: var(--ink); box-shadow: 0 14px 34px -14px rgba(0, 0, 0, .55); }
.btn-sub { font: 700 9.5px/1.3 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--bg-hi); opacity: .6; margin-top: 2px; }
.btn-small { min-height: 34px; padding: 0 16px; font-size: 13px; }
.btn-glass { color: var(--ink); }

/* ---------- Nav: tiny, uppercase, spread across the top of the card ---------- */
.nav {
  position: fixed; z-index: 50; top: calc(var(--inset) + 20px); left: calc(var(--inset) + var(--gutter)); right: calc(var(--inset) + var(--gutter));
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 40px;
}
.brand { justify-self: start; display: flex; align-items: baseline; gap: 18px; text-decoration: none; }
.brand b { font: 800 15px/1 var(--display); font-stretch: 75%; letter-spacing: .02em; text-transform: uppercase; }
.brand span, .nav nav a { font: 700 10.5px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.brand span { color: var(--ink-2); }
.nav nav { display: flex; gap: clamp(22px, 4.5vw, 72px); }
.nav nav a { text-decoration: none; padding: 8px 0; position: relative; }
.nav nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav nav a:hover::after, .nav nav a[aria-current]::after { transform: scaleX(1); }
.nav-cta { justify-self: end; display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 16px; border-radius: 999px; text-decoration: none; font: 700 10.5px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; transition: transform .5s var(--spring); }
.nav-cta:hover { transform: translateY(-1px); }

/* ---------- Slide dots ---------- */
.dots { position: fixed; z-index: 50; left: 50%; bottom: calc(var(--inset) + 34px); transform: translateX(-50%); display: flex; gap: 12px; margin: 0; padding: 0; list-style: none; }
.dots a { display: block; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--ink); font-size: 0; color: transparent; transition: background .3s, transform .4s var(--spring); }
.dots a.on { background: var(--ink); }
.dots a:hover { transform: scale(1.3); }

/* ---------- Slides: one object in the middle, a title bottom-left, a few words bottom-right ---------- */
.slide {
  position: relative; min-height: 100svh; scroll-snap-align: start;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: minmax(0, 1fr) auto;
  column-gap: 40px; padding: calc(var(--inset) + 92px) calc(var(--inset) + var(--gutter)) calc(var(--inset) + 72px);
}
.slide-object { grid-column: 1 / -1; place-self: center; position: relative; }
.slide-title { align-self: end; min-width: 0; }
.slide-side { align-self: end; justify-self: end; text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 18px; margin: 0; padding: 0; }
.slide-no { margin: 0 0 22px; display: flex; gap: 18px; }
.slide-no span { color: var(--ink-3); }
.title { font: 800 clamp(30px, 3.6vw, 52px)/.94 var(--display); font-stretch: 72%; letter-spacing: .005em; text-transform: uppercase; text-wrap: balance; }
.title em { font-style: normal; }
/* The full stop is a dot of light: it carries the spectrum, or the colour of the feature on show. */
.spec-dot { display: inline-block; width: .2em; height: .2em; margin-left: .14em; border-radius: 50%; vertical-align: baseline; background: conic-gradient(var(--red), var(--orange), var(--yellow), var(--green), var(--blue), var(--indigo), var(--violet), var(--red)); transition: background .6s var(--ease); }
.tags { margin: 0; line-height: 1.75; }
.tags mark { background: var(--ink); color: var(--bg-hi); padding: 2px 4px; }
.facts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.facts a { text-decoration: none; }
.facts a:hover { text-decoration: underline; text-underline-offset: 3px; }
.fine { margin: 0; max-width: 250px; color: var(--ink-3); font-size: 12px; line-height: 1.45; }

/* ---------- 01 · Lander ---------- */
.hero .title { font-size: clamp(38px, 5.4vw, 84px); }
.hero .title > span { display: block; font-size: .5em; letter-spacing: .02em; margin-bottom: .14em; }
.logo-stage { width: clamp(180px, 24vw, 330px); aspect-ratio: 1; margin-top: -4vh; touch-action: pan-y; }
.logo-still { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 30px 50px rgba(20, 24, 28, .22)); }
.logo-stage canvas { z-index: 2; }
.logo-hint { position: absolute; left: 50%; bottom: -26px; transform: translateX(-50%); white-space: nowrap; color: var(--ink-3); margin: 0; opacity: 0; transition: opacity .6s; }
.logo-stage:hover .logo-hint, .logo-stage.hinting .logo-hint { opacity: 1; }

/* ---------- 02 · Window ---------- */
.device-wrap { width: min(100%, 980px, (100svh - 300px) * 1.6); perspective: 1600px; }
.device { padding: 7px; border-radius: 20px; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .8s var(--ease); }
.device-screen { position: relative; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; background: #ddd; }
.shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s var(--ease); }
.shot.is-on { opacity: 1; }
.look-switch { position: relative; display: flex; padding: 4px; border-radius: 999px; }
.look-switch button { position: relative; z-index: 3; border: 0; background: none; padding: 9px 15px; border-radius: 999px; cursor: pointer; font: 700 10.5px/1 var(--sans); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-2); transition: color .3s; }
.look-switch button[aria-selected="true"] { color: var(--bg-hi); }
.look-thumb { position: absolute; z-index: 2; top: 4px; bottom: 4px; left: 0; border-radius: 999px; background: var(--ink); transition: transform .5s var(--spring), width .5s var(--spring); }

/* ---------- 03 · Features ---------- */
.feature-view { width: min(100%, 900px, (100svh - 320px) * 1.6); }
.feature-frame { aspect-ratio: 16 / 10; padding: 7px; border-radius: 20px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), 0 40px 80px -50px var(--glow, transparent), 0 26px 60px -26px rgba(20, 24, 28, .38); transition: box-shadow .8s var(--ease); }
.fshot { position: absolute; inset: 7px; width: calc(100% - 14px); height: calc(100% - 14px); object-fit: cover; border-radius: 14px; opacity: 0; transform: scale(.985); transition: opacity .6s var(--ease), transform .8s var(--ease); }
.fshot.is-on { opacity: 1; transform: none; }
.memory-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: var(--card); color: var(--ink-2); text-align: center; }
.mem-big { margin: 0; font: 800 clamp(70px, 12vw, 170px)/.85 var(--display); font-stretch: 72%; color: var(--ink); font-variant-numeric: tabular-nums; }
.mem-big small { font-size: .32em; margin-left: .12em; color: var(--green); }
.memory-card .tiny { margin: 0; }
/* Feature cards drawn in HTML where a screenshot would say less: Spectrum, Reader, web apps, imports, Liquid Glass. */
.fcard { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(12px, 2.4vw, 26px); padding: clamp(16px, 4vw, 48px); background: var(--card); color: var(--ink-2); text-align: center; overflow: hidden; }
.fcard p { margin: 0; }
.spectrum-card { align-items: stretch; text-align: left; justify-content: space-between; }
.sp-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sp-big { font: 800 clamp(44px, 7vw, 96px)/.9 var(--display); font-stretch: 72%; color: var(--ink); font-variant-numeric: tabular-nums; }
.sp-big small { font-size: .4em; margin: 0 .18em 0 .04em; color: var(--ink-3); }
.sp-head .up { color: var(--ink); }
.sp-hours { display: grid; grid-template-columns: repeat(12, 1fr); align-items: end; gap: clamp(3px, .8vw, 8px); height: clamp(60px, 12vw, 150px); }
.sp-hours i { position: relative; height: 100%; border-radius: 4px; background: linear-gradient(to top, var(--line) calc(var(--u) * 100%), transparent 0); }
.sp-hours i::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: 0; height: calc(var(--h) * 100%); border-radius: 3px; background: var(--spectrum); background-size: 1200% 100%; background-position: calc(var(--i) / 11 * 100%) 0; }
.sp-notes { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px 18px; flex-wrap: wrap; color: var(--ink-2); }
.sp-notes b { margin-right: 6px; color: var(--ink); }
.sp-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; height: clamp(40px, 7vw, 80px); }
.sp-week span { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; font: 700 9.5px/1 var(--sans); color: var(--ink-3); }
.sp-week span::before { content: ""; width: 100%; max-width: 34px; height: calc(var(--h) * 70%); border-radius: 4px; background: var(--ink-3); opacity: .5; }
.sp-week .today::before { background: var(--spectrum); opacity: 1; }
.rd-page { width: min(78%, 420px); padding: clamp(14px, 3vw, 34px); border-radius: 12px; background: #f4ecd8; color: #3b2f22; text-align: left; box-shadow: 0 20px 50px -30px rgba(60, 40, 20, .6); }
.rd-page .tiny { color: #9a5b2c; margin-bottom: 8px; }
.rd-title { font: 700 clamp(20px, 3.4vw, 40px)/1.05 Charter, "Iowan Old Style", Georgia, serif; margin-bottom: clamp(10px, 2vw, 22px) !important; }
.rd-page i { display: block; height: clamp(5px, .8vw, 9px); margin-top: clamp(6px, 1vw, 11px); border-radius: 3px; background: rgba(59, 47, 34, .2); }
.rd-page i.short { width: 62%; }
.rd-themes { display: flex; gap: 10px; }
.rd-themes span { width: 22px; height: 22px; border-radius: 50%; background: var(--t); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .14); }
.rd-themes .on { box-shadow: 0 0 0 2px var(--ink); }
.dock { display: flex; gap: clamp(8px, 1.6vw, 16px); padding: clamp(10px, 1.6vw, 16px); border-radius: clamp(20px, 3vw, 30px); }
.dock span { display: grid; place-items: center; width: clamp(44px, 8vw, 84px); aspect-ratio: 1; border-radius: 24%; background: var(--a); color: #fff; font: 800 clamp(20px, 3.4vw, 36px)/1 var(--display); box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .5); }
.dock .new { position: relative; animation: dock-in 4.8s var(--spring) infinite; }
.dock .new::after { content: "3"; position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; display: grid; place-items: center; border-radius: 11px; background: var(--red); font: 700 12px/1 var(--sans); }
@keyframes dock-in { 0% { transform: translateY(-40%); opacity: 0; } 12%, 100% { transform: none; opacity: 1; } }
.im-from { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.im-from span { padding: 7px 14px; border-radius: 999px; background: var(--bg-hi); box-shadow: inset 0 0 0 1px var(--line); font: 600 clamp(12px, 1.6vw, 16px)/1 var(--sans); color: var(--ink); }
.im-arrow { font: 800 clamp(28px, 4vw, 48px)/1 var(--display); color: var(--ink-3); }
.im-to { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.glass-card { gap: clamp(18px, 3vw, 34px); background: var(--spectrum); }
.glass-card > * { position: relative; }
.glass-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 70% at 50% 45%, color-mix(in srgb, var(--bg-hi) 35%, transparent), color-mix(in srgb, var(--bg-hi) 80%, transparent)); }
.lg-pane { width: min(60%, 360px); aspect-ratio: 16 / 9; border-radius: 22px; background: color-mix(in srgb, var(--bg-hi) calc(var(--tint, .2) * 100%), transparent); backdrop-filter: blur(calc(4px + var(--tint, .2) * 26px)); -webkit-backdrop-filter: blur(calc(4px + var(--tint, .2) * 26px)); animation: tint 6s ease-in-out infinite; }
.lg-slider { position: relative; display: flex; align-items: center; gap: 12px; color: var(--ink); }
.lg-track { position: relative; width: clamp(120px, 22vw, 240px); height: 6px; border-radius: 3px; background: color-mix(in srgb, var(--bg-hi) 70%, transparent); }
.lg-track i { position: absolute; top: 50%; left: 20%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: var(--bg-hi); box-shadow: 0 2px 8px rgba(0, 0, 0, .25); animation: knob 6s ease-in-out infinite; }
@property --tint { syntax: "<number>"; inherits: true; initial-value: .2; }
@keyframes tint { 0%, 100% { --tint: .15; } 50% { --tint: .85; } }
@keyframes knob { 0%, 100% { left: 15%; } 50% { left: 85%; } }
/* Eleven features: two short columns, so the list stays as short as the old seven and the slide fits on a laptop screen. */
.feature-list { list-style: none; display: grid; grid-auto-flow: column; grid-template-rows: repeat(6, auto); gap: 2px 22px; justify-items: end; align-content: end; }
.feature button { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; padding: 2px 4px; color: var(--ink-3); transition: color .25s, background .25s; }
.feature button::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c); opacity: 0; transition: opacity .25s; }
.feature button:hover { color: var(--ink); }
.feature button:focus-visible { outline: 2px solid var(--indigo); }
.feature.is-on button { background: var(--ink); color: var(--bg-hi); }
.feature.is-on button::before { opacity: 1; }

/* ---------- 04 · Just a browser ---------- */
.newtab-wrap { width: min(100%, 720px, (100svh - 300px) * 1.6); }
.newtab { padding: 7px; border-radius: 20px; }
.newtab img { border-radius: 14px; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

/* ---------- 05 · Download: the object is a lens you can press ---------- */
.orb {
  width: clamp(200px, 26vw, 300px); aspect-ratio: 1; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  text-decoration: none; transition: transform .6s var(--spring);
}
.orb img { width: 30%; margin-bottom: 6px; filter: drop-shadow(0 10px 18px rgba(20, 24, 28, .25)); position: relative; z-index: 3; }
.orb b { font: 800 clamp(22px, 2.4vw, 30px)/1 var(--display); font-stretch: 72%; text-transform: uppercase; letter-spacing: .02em; position: relative; z-index: 3; }
.orb span { color: var(--ink-2); position: relative; z-index: 3; }
.orb:hover { transform: scale(1.04); }
.orb:active { transform: scale(.98); transition-duration: .12s; }

/* ---------- Dark: the same room with the lights down, following the Mac's appearance ---------- */
:root[data-theme="dark"] {
  --bg: #121214;
  --bg-hi: #1c1c1f;
  --outer: #050506;
  --rim: #26262a;
  --ink: #f1f1ef;
  --ink-2: rgba(241, 241, 239, .64);
  --ink-3: rgba(241, 241, 239, .4);
  --line: rgba(255, 255, 255, .1);
  --card: rgba(22, 22, 26, .6);
  color-scheme: dark;
}
:root[data-theme="dark"] body { background: radial-gradient(120% 90% at 50% 38%, var(--bg-hi), var(--bg) 60%, #0c0c0e); background-attachment: fixed; }
/* In the dark the underwater loop plays as it was shot. */
:root[data-theme="dark"] .sky-video { mix-blend-mode: screen; filter: none; opacity: .75; }
:root[data-theme="dark"] .glass {
  background: linear-gradient(180deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .035) 42%, rgba(255, 255, 255, .06));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .38), inset 0 -1px 0 rgba(255, 255, 255, .08), inset 1px 0 0 rgba(255, 255, 255, .1), inset -1px 0 0 rgba(255, 255, 255, .06), 0 1px 1px rgba(0, 0, 0, .2), 0 26px 60px -24px rgba(0, 0, 0, .7);
}
:root[data-theme="dark"] .glass::before { background: linear-gradient(135deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, .06) 30%, rgba(255, 255, 255, 0) 55%, rgba(255, 255, 255, .2)); }
:root[data-theme="dark"] .glass::after { background: radial-gradient(220px circle at var(--mx, 30%) var(--my, -20%), rgba(255, 255, 255, .14), transparent 60%); }
:root[data-theme="dark"] .feature-frame { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .38), 0 40px 80px -50px var(--glow, transparent), 0 26px 60px -24px rgba(0, 0, 0, .7); }

/* ---------- Release notes page ---------- */
.notes-head { padding: calc(var(--inset) + 150px) calc(var(--inset) + var(--gutter)) 70px; max-width: 1240px; margin: 0 auto; }
.notes-head .title { font-size: clamp(44px, 7vw, 104px); }
.notes { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 48px; max-width: 1240px; margin: 0 auto; padding: 0 calc(var(--inset) + var(--gutter)) 140px; }
.notes-rail { position: sticky; top: 110px; align-self: start; display: flex; flex-direction: column; gap: 2px; max-height: calc(100vh - 160px); overflow: auto; scrollbar-width: none; }
.notes-rail a { align-self: flex-start; display: flex; align-items: center; gap: 10px; padding: 5px 8px; font: 700 10.5px/1.2 var(--sans); letter-spacing: .06em; color: var(--ink-3); text-decoration: none; transition: color .2s, background .2s; }
.notes-rail a:hover { color: var(--ink); }
.notes-rail a.on { color: var(--bg-hi); background: var(--ink); }
.note-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--c, var(--ink-3)); flex: none; }
.notes-list { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.note { border-radius: var(--radius); padding: clamp(22px, 3.4vw, 40px); scroll-margin-top: 100px; }
.note-loading { color: var(--ink-3); }
.note-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-bottom: 22px; margin-bottom: 8px; border-bottom: 1px solid var(--line); position: relative; z-index: 3; }
.note-meta { display: flex; align-items: center; gap: 10px; color: var(--ink-3); margin: 0 0 12px; }
.note-meta b { color: var(--ink); }
.note-version { font: 800 clamp(30px, 3.8vw, 48px)/.95 var(--display); font-stretch: 72%; text-transform: uppercase; letter-spacing: .005em; }
.note-title { font-size: clamp(16px, 1.5vw, 19px); color: var(--ink-2); margin: 8px 0 0; line-height: 1.3; }
.note-title a { color: var(--ink); }
.note-body { color: var(--ink-2); font-size: 15px; line-height: 1.6; position: relative; z-index: 3; }
.note-body h2, .note-body h3, .note-body h4 { font: 700 10.5px/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); margin: 28px 0 10px; }
.note-body ul { margin: 0; padding-left: 0; list-style: none; }
.note-body li { position: relative; padding-left: 18px; margin: 6px 0; }
.note-body li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: var(--c); }
.note-body strong { color: var(--ink); font-weight: 600; }
.note-body code { font: 13px ui-monospace, "SF Mono", Menlo, monospace; background: var(--line); padding: 2px 6px; border-radius: 6px; }
.note-body a, .note-foot a { color: var(--ink); }
.note-foot { margin: 26px 0 0; position: relative; z-index: 3; }
.notes-page .footer { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 26px calc(var(--inset) + var(--gutter)) calc(var(--inset) + 34px); color: var(--ink-3); }
.notes-page .footer a { text-decoration: none; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.slide-side.reveal { transition-delay: .12s; }

/* ---------- Lander intro: darkness, the word "light", a beam, the prism, then the page fills with light ---------- */
.intro-later, .nav, .dots, .logo-still, .logo-stage canvas, .sky, body::before {
  transition: opacity .9s var(--ease), transform 1s var(--ease), filter .9s var(--ease);
}
html.intro body { overflow: hidden; background: #000; }
html.intro .intro-later, html.intro .nav, html.intro .dots { opacity: 0; transform: translateY(12px); }
html.intro .nav, html.intro .dots { transform: none; }
html.intro .sky, html.intro body::before { opacity: 0; }
.slide-title .intro-later { transition-delay: .05s; } .hero .slide-side { transition-delay: .2s; }

.intro-word { display: inline; transition: color 1.2s var(--ease), text-shadow 1.2s var(--ease); }
html.intro .intro-word { color: #fff; text-shadow: 0 0 22px rgba(255, 255, 255, .6); animation: word-in .7s var(--ease) both; }
@keyframes word-in { from { opacity: 0; filter: blur(14px); letter-spacing: .1em; } }

.intro-beam {
  position: absolute; z-index: 3; right: 50%; top: 60%; width: 70vw; height: 2px; border-radius: 2px; pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), #fff 70%);
  box-shadow: 0 0 18px 2px rgba(255, 255, 255, .55);
  transform: rotate(-9deg); transform-origin: 100% 50%;
  clip-path: inset(0 100% 0 0); opacity: 0;
}
html.intro.beam .intro-beam { opacity: 1; clip-path: inset(0 0 0 0); transition: clip-path .3s cubic-bezier(.5, 0, .2, 1), opacity .1s; }
html:not(.intro) .intro-beam { opacity: 0; transition: opacity .8s var(--ease); clip-path: inset(0 0 0 0); }

html.intro .logo-still:not(.glass-fallback), html.intro .logo-stage canvas { opacity: 0; transform: scale(.82); filter: blur(12px) brightness(2.2); }
html.intro .logo-hint { opacity: 0 !important; }
html.intro.prism .logo-still:not(.glass-fallback), html.intro.prism .logo-stage canvas { opacity: 1; transform: none; filter: none; }
.logo-still.glass-fallback { opacity: 0 !important; }
/* The wake: a ring of light spreading from the glass as it appears. */
.logo-stage::after {
  content: ""; position: absolute; left: 50%; top: 55%; width: 100%; aspect-ratio: 1; border-radius: 50%; pointer-events: none; z-index: 1;
  border: 1px solid rgba(255, 255, 255, .7); box-shadow: 0 0 40px rgba(255, 255, 255, .35), inset 0 0 40px rgba(179, 107, 255, .3);
  transform: translate(-50%, -50%) scale(.2); opacity: 0;
}
html.prism .logo-stage::after { animation: wake 1.4s var(--ease) forwards; }
@keyframes wake { 0% { opacity: .9; transform: translate(-50%, -50%) scale(.2); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(3.2); } }

/* ---------- Narrow screens: the corners stack under the object ---------- */
@media (max-width: 860px) {
  .nav nav { display: none; }
  .nav { grid-template-columns: 1fr auto; }
}
@media (max-width: 700px) {
  :root { --inset: 8px; }
  .nav { top: calc(var(--inset) + 12px); }
  .brand span { display: none; }
  .slide { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto auto; row-gap: 26px; padding: calc(var(--inset) + 84px) calc(var(--inset) + var(--gutter)) calc(var(--inset) + 70px); }
  .slide-side { justify-self: start; text-align: left; align-items: flex-start; }
  .slide-no { margin-bottom: 14px; }
  .device-wrap, .feature-view, .newtab-wrap { width: 100%; }
  .device, .feature-frame, .newtab { padding: 5px; border-radius: 16px; }
  .device-screen, .newtab img { border-radius: 12px; }
  .fshot { inset: 5px; width: calc(100% - 10px); height: calc(100% - 10px); border-radius: 12px; }
  .feature-list { display: flex; flex-direction: row; flex-wrap: wrap; gap: 4px 6px; }
  .feature button::before { opacity: 1; }
  .fcard { padding: 14px; gap: 10px; }
  .sp-notes, .sp-week { display: none; }
  .sp-big { font-size: 40px; }
  .sp-hours { height: auto; flex: 1; }
  .rd-page i:nth-of-type(n+4) { display: none; }
  .hero .slide-side { flex-direction: row; align-items: center; justify-content: space-between; width: 100%; }
  .dots { bottom: calc(var(--inset) + 22px); }
  .sky-video { opacity: .28; }
  .notes { grid-template-columns: 1fr; gap: 18px; }
  .notes-rail { top: 70px; z-index: 5; flex-direction: row; overflow-x: auto; max-height: none; padding: 6px; border-radius: 999px; background: color-mix(in srgb, var(--bg-hi) 85%, transparent); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
  .notes-rail a { flex: none; border-radius: 999px; }
  .notes-head { padding-top: calc(var(--inset) + 110px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
