/* collectionday.co.uk
   Follows the visitor's light or dark setting. Everything is laid out at rest first; the rules
   under .motion (set by start.js unless Reduce Motion is on) add the scroll-driven movement,
   using --p, which motion.js sets from 0 to 1 as each section scrolls past. */

@font-face {
  font-family: "Inter CD";
  src: url(fonts/inter-latin.woff2) format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter CD";
  src: url(fonts/inter-latin-ext.woff2) format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light dark;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter CD", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --bg: #ffffff;
  --ink: #1d1d1f;
  --dim: #6e6e73;
  --faint: #d2d2d7;
  --tile: #f5f5f7;
  --tile2: #ffffff;
  --line: rgba(0, 0, 0, .1);
  --nav: rgba(255, 255, 255, .72);
  --accent: #0a5fd8;
  --accent2: #3b9bff;
  --link: #0066cc;
  --green: #28a745;
  --bingrey: #8e8e93;
  --purple: #af52de;
  --screen: #f2f2f7;
  --screen-ink: #000;
  --widget: #ffffff;
  --widget-shadow: 0 12px 30px rgba(10, 40, 90, .12);
  --hero-bg: linear-gradient(180deg, #ffffff 0%, #f4f8ff 50%, #dde9ff 100%);
  --glow-a: rgba(59, 155, 255, .5);
  --glow-b: rgba(10, 95, 216, .22);
  --glow-c: rgba(140, 120, 255, .18);
  --grad-head: linear-gradient(180deg, #1d1d1f 20%, #0a5fd8 120%);
  --grad-num: linear-gradient(90deg, #0a5fd8, #3b9bff 45%, #1d1d1f 100%);
  --phone-glow: 0 40px 100px rgba(10, 60, 140, .25);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --ink: #f5f5f7;
    --dim: #a1a1a6;
    --faint: #3a3a3c;
    --tile: #161618;
    --tile2: #262628;
    --line: rgba(255, 255, 255, .12);
    --nav: rgba(0, 0, 0, .62);
    --accent: #4da3ff;
    --accent2: #3b9bff;
    --link: #4da3ff;
    --green: #30d158;
    --bingrey: #98989d;
    --purple: #bf5af2;
    --screen: #000000;
    --screen-ink: #fff;
    --widget: #2c2c2e;
    --widget-shadow: 0 12px 30px rgba(0, 0, 0, .4);
    --hero-bg: linear-gradient(180deg, #000 0%, #050d22 55%, #0b1f4d 100%);
    --glow-a: rgba(30, 79, 184, .9);
    --glow-b: rgba(18, 58, 138, .8);
    --glow-c: rgba(77, 60, 180, .35);
    --grad-head: linear-gradient(180deg, #ffffff 30%, #a9c8ff 100%);
    --grad-num: linear-gradient(90deg, #3b9bff, #7ab8ff 45%, #ffffff 100%);
    --phone-glow: 0 0 140px rgba(59, 155, 255, .35);
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.011em;
  line-height: 1.4;
  overflow-x: clip;
}
img, picture, svg { display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--accent2); outline-offset: 3px; border-radius: 6px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 50; background: var(--nav); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--line); }
.nav-in { max-width: 1080px; height: 52px; margin: 0 auto; padding: 0 22px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; font-size: 17px; letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 13px; }
.nav-links a { color: var(--ink); opacity: .8; }
.nav-links a:hover { opacity: 1; text-decoration: none; }
.nav-links .nav-cta { opacity: 1; background: #0a5fd8; color: #fff; padding: 6px 14px; border-radius: 99px; font-weight: 500; }
.nav-links .nav-cta:hover { background: #0b55c0; }

/* Shared type */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 600; color: var(--dim); }
.eyebrow img { width: 32px; height: 32px; border-radius: 8px; }
.kicker { font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.section-title { font-size: clamp(40px, 6vw, 80px); line-height: 1.04; font-weight: 700; letter-spacing: -0.04em; }
.caption { font-size: clamp(18px, 1.7vw, 21px); line-height: 1.5; color: var(--dim); font-weight: 500; max-width: 640px; margin: 22px auto 0; }
.more { font-size: 17px; font-weight: 500; }
.more::after { content: " \203A"; }
.chip { display: inline-block; border: 1px solid var(--line); color: var(--ink); padding: 11px 20px; border-radius: 99px; font-size: 16px; font-weight: 500; background: color-mix(in srgb, var(--bg) 40%, transparent); }
.button { display: inline-block; background: #0a5fd8; color: #fff; padding: 13px 24px; border-radius: 99px; font-size: 17px; font-weight: 500; letter-spacing: -0.01em; box-shadow: 0 8px 24px rgba(10, 95, 216, .35); transition: background-color .2s ease, transform .2s ease; }
.button:hover { background: #0b55c0; text-decoration: none; transform: translateY(-1px); }
.small { margin-top: 14px; font-size: 14px; color: var(--dim); font-weight: 500; }
.ctas { display: flex; flex-wrap: wrap; gap: 14px 26px; justify-content: center; align-items: center; margin-top: 30px; }
.grad { background: var(--grad-head); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* The phone */
.phone {
  --u: calc(var(--w, 300px) / 422);
  width: var(--w, 300px); aspect-ratio: 422 / 894; flex: none; position: relative;
  border-radius: calc(var(--u) * 70); padding: calc(var(--u) * 10); background: #1d1d1f;
  box-shadow: inset 0 0 0 calc(var(--u) * 1.6) #4a4a4d, var(--phone-glow);
}
.phone .screen { container-type: inline-size; position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: calc(var(--u) * 60); background: var(--screen); color: var(--screen-ink); }
.phone.light .screen { background: #f2f2f7; color: #000; }
.phone.dark .screen { background: #000; color: #fff; }
.screen .island { position: absolute; z-index: 3; top: calc(11 / 402 * 100cqw); left: 50%; width: calc(124 / 402 * 100cqw); height: calc(36 / 402 * 100cqw); transform: translateX(-50%); background: #000; border-radius: 99px; }
.screen .sb { height: calc(62 / 402 * 100cqw); display: flex; align-items: center; justify-content: space-between; padding: calc(4 / 402 * 100cqw) calc(30 / 402 * 100cqw) 0 calc(50 / 402 * 100cqw); font: 600 calc(17 / 402 * 100cqw)/1 var(--font); letter-spacing: 0; }
.screen .sbi { width: calc(78 / 402 * 100cqw); height: calc(14 / 402 * 100cqw); fill: currentColor; }
.screen img { width: 100%; height: auto; }
.screen .homebar { position: absolute; z-index: 3; bottom: calc(8 / 402 * 100cqw); left: 50%; width: calc(140 / 402 * 100cqw); height: calc(5 / 402 * 100cqw); transform: translateX(-50%); border-radius: 9px; background: currentColor; }

/* The lock screen (dark in both themes, like a real one at 6pm in November) */
.screen.lock { color: #fff; text-align: center; background: radial-gradient(90% 60% at 80% 100%, #3d5bd9 0%, rgba(61, 91, 217, 0) 70%), radial-gradient(80% 50% at 10% 70%, #1e7bef 0%, rgba(30, 123, 239, 0) 70%), linear-gradient(180deg, #07122b 0%, #0e2350 55%, #163a80 100%); }
.lock .date { margin-top: calc(18 / 402 * 100cqw); font-size: calc(19 / 402 * 100cqw); font-weight: 600; opacity: .85; }
.lock .clock { font-size: calc(96 / 402 * 100cqw); font-weight: 700; line-height: 1; letter-spacing: -0.02em; }
.lock .note { position: absolute; left: calc(12 / 402 * 100cqw); right: calc(12 / 402 * 100cqw); top: calc(300 / 402 * 100cqw); display: flex; gap: calc(11 / 402 * 100cqw); align-items: flex-start; text-align: left; padding: calc(13 / 402 * 100cqw) calc(14 / 402 * 100cqw); border-radius: calc(22 / 402 * 100cqw); background: rgba(255, 255, 255, .2); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); font-size: calc(15 / 402 * 100cqw); line-height: 1.3; box-shadow: 0 8px 30px rgba(0, 0, 0, .2); }
.lock .note img { width: calc(38 / 402 * 100cqw); height: calc(38 / 402 * 100cqw); border-radius: calc(9 / 402 * 100cqw); flex: none; }
.lock .note > div { flex: 1; }
.lock .nt { display: flex; justify-content: space-between; gap: 8px; }
.lock .nt span { opacity: .6; font-size: .88em; }

/* Glows behind sections */
.glow { position: absolute; pointer-events: none; border-radius: 50%; filter: blur(10px); }

/* 1. Hero */
.hero { position: relative; --w: clamp(230px, 34svh, 330px); }
.hero .stick { position: relative; overflow: hidden; padding: 96px 0 110px; background: var(--hero-bg); }
.hero .g1 { left: 50%; bottom: -30%; width: 130vw; height: 90%; margin-left: -65vw; background: radial-gradient(closest-side, var(--glow-a), transparent); }
.hero .g2 { left: -15%; top: 45%; width: 55vw; height: 55vw; background: radial-gradient(closest-side, var(--glow-b), transparent); }
.hero .g3 { right: -20%; top: 20%; width: 50vw; height: 50vw; background: radial-gradient(closest-side, var(--glow-c), transparent); }
.hero .copy { position: relative; z-index: 1; text-align: center; padding: 0 24px; }
.hero h1 { margin-top: 18px; font-size: clamp(44px, 8.4vw, 104px); line-height: 1; font-weight: 700; letter-spacing: -0.045em; }
.hero h1 { color: var(--ink); }
.hero .lede { max-width: 640px; margin: 24px auto 0; font-size: clamp(19px, 1.9vw, 24px); line-height: 1.4; font-weight: 500; color: var(--dim); }
.hero .lede strong { color: var(--ink); font-weight: 600; }
.hero .stage { position: relative; z-index: 2; margin-top: 64px; }
.hero .lockphone { margin: 0 auto; }
.hero .caps { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; max-width: 760px; margin: 56px auto 0; padding: 0 24px; }
.cap h2 { font-size: 24px; letter-spacing: -0.02em; line-height: 1.15; }
.cap p { color: var(--dim); font-size: 17px; line-height: 1.45; margin-top: 6px; font-weight: 500; }

/* 2. Story */
.story { position: relative; padding: 140px 0; }
.story .stick { max-width: 1080px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.story-phone { position: relative; display: flex; justify-content: center; }
.story-phone::before { content: ""; position: absolute; inset: 10% -10%; background: radial-gradient(closest-side, var(--glow-b), transparent); filter: blur(20px); }
.story .phone { --w: clamp(240px, 36svh, 330px); }
.app-stack { position: relative; }
.app-stack .s:not(.s0) { display: none; }
.chapters { position: relative; display: grid; gap: 48px; }
.chapter h2 { margin-top: 8px; font-size: clamp(32px, 3.6vw, 50px); line-height: 1.05; letter-spacing: -0.038em; }
.chapter > p:last-child { margin-top: 14px; color: var(--dim); font-size: 19px; line-height: 1.45; font-weight: 500; max-width: 32ch; }
.index, .track { display: none; }

.js .story { height: 440vh; height: 440svh; padding: 0; }
.js .story .stick { position: sticky; top: 0; height: 100vh; height: 100svh; padding-top: 52px; }
.js .app-stack .s:not(.s0) { display: block; position: absolute; inset: 0; }
.js .app-stack .s { opacity: 0; transition: opacity .7s ease, transform .9s cubic-bezier(.16, 1, .3, 1); transform: scale(1.03); }
.js .story[data-step="0"] .s0, .js .story[data-step="1"] .s1, .js .story[data-step="2"] .s2, .js .story[data-step="3"] .s3 { opacity: 1; transform: none; }
/* With JavaScript, one chapter at a time, with the four listed above it and a line that fills. */
.js .chapters { display: block; }
.js .index { display: flex; flex-wrap: wrap; gap: 6px 22px; list-style: none; font-size: 14px; font-weight: 600; color: var(--dim); }
.js .index li { opacity: .55; transition: opacity .4s ease, color .4s ease; }
.js .story[data-step="0"] .i0, .js .story[data-step="1"] .i1, .js .story[data-step="2"] .i2, .js .story[data-step="3"] .i3 { opacity: 1; color: var(--ink); }
.js .track { display: block; position: relative; height: 2px; margin: 14px 0 0; background: var(--faint); border-radius: 2px; overflow: hidden; }
.js .track i { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: linear-gradient(90deg, var(--accent2), var(--accent)); }
.js .chapter { position: absolute; left: 0; right: 0; top: 40px; opacity: 0; transform: translate3d(0, 24px, 0); transition: opacity .55s ease, transform .8s cubic-bezier(.16, 1, .3, 1); }
.js .chapter .kicker { display: none; }
.js .story[data-step="0"] .c0, .js .story[data-step="1"] .c1, .js .story[data-step="2"] .c2, .js .story[data-step="3"] .c3 { opacity: 1; transform: none; }
.js .chapters { min-height: 330px; }

/* 3. Reach */
.reach { position: relative; overflow: hidden; padding: 170px 0 150px; }
.reach .g4 { left: 50%; top: 0; width: 900px; height: 600px; margin-left: -450px; background: radial-gradient(closest-side, var(--glow-b), transparent); opacity: .7; }
.huge { position: relative; font-size: clamp(110px, 19vw, 250px); line-height: .9; font-weight: 700; letter-spacing: -0.055em; font-variant-numeric: tabular-nums; }
.huge span { background: var(--grad-num); -webkit-background-clip: text; background-clip: text; color: transparent; padding: 0 .04em; }
.reach-title { position: relative; max-width: 820px; margin: 20px auto 0; font-size: clamp(28px, 3.6vw, 48px); line-height: 1.12; letter-spacing: -0.035em; }
.rows { margin: 80px 0 64px; display: grid; gap: 14px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.row { display: flex; gap: 12px; width: max-content; white-space: nowrap; }
.row span { padding: 12px 22px; border-radius: 99px; background: var(--tile); color: var(--dim); font-size: 17px; font-weight: 500; }
.r1 { transform: translate3d(-4%, 0, 0); }
.r2 { transform: translate3d(-16%, 0, 0); }
.r3 { transform: translate3d(-9%, 0, 0); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; max-width: 900px; margin: 80px auto 0; }
.stats b { display: block; font-size: clamp(56px, 6vw, 76px); line-height: 1; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; background: var(--grad-num); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats span { display: block; margin-top: 10px; color: var(--dim); font-size: 17px; font-weight: 500; }

/* 4. Features */
.features { padding: 150px 0; }
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 64px; }
.tile { position: relative; overflow: hidden; min-height: 380px; padding: 32px; border-radius: 30px; background: var(--tile); display: flex; flex-direction: column; }
.tile h3 { font-size: 26px; line-height: 1.12; letter-spacing: -0.03em; }
.tile > p { margin-top: 8px; max-width: 32ch; color: var(--dim); font-size: 17px; line-height: 1.45; font-weight: 500; }
.w2 { grid-column: span 2; }
.dg, .dgy, .dp { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
.dg { background: var(--green); } .dgy { background: var(--bingrey); } .dp { background: var(--purple); }
.bg { color: var(--green); } .bgy { color: var(--bingrey); }

.wstage { margin-top: auto; padding-top: 28px; display: flex; gap: 14px; align-items: flex-end; }
.widget { --s: 158px; width: var(--s); height: var(--s); flex: none; display: flex; flex-direction: column; padding: 14px; border-radius: 26px; background: var(--widget); box-shadow: var(--widget-shadow); color: var(--ink); text-align: left; }
.widget .ey { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
.widget .hl { margin-top: 3px; font-size: 20px; line-height: 1.12; font-weight: 700; letter-spacing: -0.02em; }
.widget .hl.big { font-size: 42px; line-height: 1; letter-spacing: -0.04em; }
.widget .dots { display: flex; gap: 5px; margin-top: 8px; }
.widget .dots i { width: 10px; height: 10px; }
.widget .ft { margin-top: auto; font-size: 12px; color: var(--dim); }
.widget .li { display: flex; align-items: center; gap: 3px; font-size: 13px; }
.widget .li b { margin-left: 3px; }
.widget .lt { font-size: 11.5px; color: var(--dim); margin: 1px 0 7px; }

.siri .orb { position: absolute; top: 32px; right: 32px; width: 92px; height: 92px; border-radius: 50%; background: conic-gradient(from 0deg, #3b9bff, #bf5af2, #ff6482, #ffd60a, #30d158, #3b9bff); -webkit-mask: radial-gradient(closest-side, transparent 62%, #000 66%); mask: radial-gradient(closest-side, transparent 62%, #000 66%); filter: blur(.4px) saturate(1.1); }
.siri .q { margin-top: 56px; font-size: 22px; line-height: 1.25; font-weight: 600; letter-spacing: -0.02em; }
.siri .a { display: inline-block; margin-top: 16px; padding: 14px 18px; border-radius: 20px; background: var(--tile2); font-size: 18px; line-height: 1.35; font-weight: 500; }

.homelist { list-style: none; margin: auto -8px -8px; padding-top: 24px; display: grid; gap: 10px; }
.homelist li { padding: 13px 16px; border-radius: 16px; background: var(--tile2); }
.homelist b { display: block; font-size: 16px; letter-spacing: -0.01em; }
.homelist span { display: flex; align-items: center; gap: 4px; margin-top: 3px; color: var(--dim); font-size: 14px; font-weight: 500; }
.homelist span i:last-of-type { margin-right: 4px; }

.crop { align-self: center; margin: auto 0 -130px; padding-top: 24px; }
.phone.small { --w: 190px; }

.moved { margin: auto -8px -8px; display: grid; gap: 4px; padding: 18px; border-radius: 18px; background: var(--tile2); text-align: center; font-weight: 600; }
.moved .was { color: var(--dim); text-decoration: line-through; font-weight: 500; }
.moved .arrow { color: var(--accent); font-size: 20px; }
.moved .now { font-size: 19px; letter-spacing: -0.02em; }

.split { position: relative; height: 190px; margin: auto -32px -32px; }
.split .phone { position: absolute; top: 26px; --w: 150px; }
.split .light { left: calc(50% - 138px); transform: rotate(-7deg); }
.split .dark { left: calc(50% - 12px); transform: rotate(7deg); }

/* 5. Privacy */
.privacy { padding: 170px 0; }
.words { max-width: 980px; margin: 26px auto 0; text-align: center; font-size: clamp(32px, 4.6vw, 62px); line-height: 1.14; font-weight: 700; letter-spacing: -0.04em; }
.words .em { color: var(--accent); }
.privacy .more { display: inline-block; margin-top: 40px; }

/* 6. Download */
.download { position: relative; overflow: hidden; padding: 170px 0 190px; }
.download .g5 { left: 50%; top: 10%; width: 760px; height: 560px; margin-left: -380px; background: radial-gradient(closest-side, var(--glow-a), transparent); opacity: .55; }
.appicon { position: relative; width: 132px; height: 132px; margin: 0 auto 34px; border-radius: 30px; box-shadow: 0 20px 60px rgba(10, 95, 216, .45); }
.download .section-title, .download .caption, .download .ctas { position: relative; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 34px 0 60px; color: var(--dim); font-size: 13px; line-height: 1.6; }
.foot p + p { margin-top: 8px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 16px; }
.foot-links a { color: var(--ink); }

/* ───────────── Scroll motion (only with .motion) ───────────── */
html.motion { scroll-behavior: smooth; }

/* Arrive once */
.motion [data-reveal] { opacity: 0; transform: translate3d(0, 56px, 0) scale(.98); transition: opacity 1.1s cubic-bezier(.16, 1, .3, 1), transform 1.2s cubic-bezier(.16, 1, .3, 1); transition-delay: var(--d, 0ms); }
.motion [data-reveal].in { opacity: 1; transform: none; }
.d1 { --d: 120ms; } .d2 { --d: 240ms; } .d3 { --d: 360ms; }
.motion .rise { animation: rise 1.3s cubic-bezier(.16, 1, .3, 1) both; }
.motion .r2 { animation-delay: .12s; } .motion .r3 { animation-delay: .26s; } .motion .r4 { animation-delay: .4s; }
@keyframes rise { from { opacity: 0; transform: translate3d(0, 34px, 0); } to { opacity: 1; transform: none; } }

/* Hero: pinned for two and a half screens. The words lift away, the phone rises to the middle,
   the reminder lands, then a line appears either side. */
.motion .hero {
  height: 260vh; height: 260svh;
  --c: clamp(0, (var(--p, 0) - .01) / .2, 1);
  --r: clamp(0, (var(--p, 0) - .01) / .42, 1);
  --n: clamp(0, (var(--p, 0) - .45) / .13, 1);
  --k: clamp(0, (var(--p, 0) - .62) / .14, 1);
}
.motion .hero .stick { position: sticky; top: 0; height: 100vh; height: 100svh; padding: 0; }
.motion .hero .copy { position: absolute; left: 0; right: 0; top: calc(52px + 7svh); opacity: calc(1 - var(--c)); transform: translate3d(0, calc(var(--c) * -9svh), 0) scale(calc(1 - var(--c) * .06)); will-change: transform, opacity; }
.motion .hero .stage { position: absolute; inset: 52px 0 0; margin: 0; display: grid; place-items: center; }
.motion .hero .lockphone { margin: 0; transform: translate3d(0, calc((1 - var(--r)) * 54svh), 0) scale(calc(.9 + var(--r) * .1)); will-change: transform; }
.motion .hero .note { opacity: var(--n); transform: translate3d(0, calc((1 - var(--n)) * -40px), 0) scale(calc(.9 + var(--n) * .1)); }
.motion .hero .date, .motion .hero .clock { opacity: calc(1 - var(--n) * .32); }
.motion .hero .g1 { transform: translate3d(0, calc(var(--p, 0) * -26svh), 0) scale(calc(1 + var(--p, 0) * .35)); opacity: calc(.65 + var(--r) * .35); }
.motion .hero .g2 { transform: translate3d(calc(var(--p, 0) * 10vw), calc(var(--p, 0) * -40svh), 0); }
.motion .hero .g3 { transform: translate3d(calc(var(--p, 0) * -8vw), calc(var(--p, 0) * 22svh), 0); }
.motion .hero .caps { position: absolute; inset: 0; display: block; max-width: none; margin: 0; padding: 0; pointer-events: none; }
.motion .hero .cap { position: absolute; top: 50%; width: min(290px, 25vw); opacity: var(--k); transform: translate3d(0, calc(-50% + (1 - var(--k)) * 44px), 0); }
.motion .hero .cap.l { right: calc(50% + var(--w) / 2 + 60px); text-align: right; }
.motion .hero .cap.r { left: calc(50% + var(--w) / 2 + 60px); }

/* Story: the phone floats a little against the scroll. */
.motion .story .phone { transform: translate3d(0, calc((.5 - var(--p, .5)) * 5svh), 0) rotate(calc((var(--p, .5) - .5) * -3deg)); }

/* Reach: names drift past at three speeds; the glow sinks slower than the page. */
.motion .reach .r1 { transform: translate3d(calc(4% - var(--p, 0) * 26%), 0, 0); }
.motion .reach .r2 { transform: translate3d(calc(-28% + var(--p, 0) * 26%), 0, 0); }
.motion .reach .r3 { transform: translate3d(calc(-2% - var(--p, 0) * 17%), 0, 0); }
.motion .reach .g4 { transform: translate3d(0, calc(var(--p, 0) * 30svh), 0); }
.motion .row, .motion .lockphone, .motion .glow { will-change: transform; }

/* Features: what's inside each tile moves at its own speed. */
.motion .widgets .f1 { transform: translate3d(0, calc((.5 - var(--p, .5)) * 30px), 0); }
.motion .widgets .f2 { transform: translate3d(0, calc((.5 - var(--p, .5)) * 70px), 0); }
.motion .widgets .f3 { transform: translate3d(0, calc((.5 - var(--p, .5)) * 110px), 0); }
.motion .sort .crop .phone { transform: translate3d(0, calc((.5 - var(--p, .5)) * 90px), 0); }
.motion .modes .light { transform: translate3d(calc((var(--p, .5) - .5) * -40px), calc((.5 - var(--p, .5)) * 40px), 0) rotate(calc(-7deg - var(--p, .5) * 4deg)); }
.motion .modes .dark { transform: translate3d(calc((var(--p, .5) - .5) * 40px), calc((.5 - var(--p, .5)) * 70px), 0) rotate(calc(7deg + var(--p, .5) * 4deg)); }
.motion .siri .orb { animation: spin 9s linear infinite; }
@keyframes spin { to { transform: rotate(1turn); } }
.motion .siri .a { opacity: 0; transform: translate3d(0, 14px, 0); transition: opacity .8s ease .7s, transform .8s cubic-bezier(.16, 1, .3, 1) .7s; }
.motion .siri.in .a { opacity: 1; transform: none; }

/* Privacy: each word lights up in turn. */
.motion .words .w { color: var(--faint); transition: color .4s ease; }
.motion .words .w.lit { color: var(--ink); }
.motion .words .w.em.lit { color: var(--accent); }

/* Download: the icon grows and rises into place. */
.motion .download .appicon { transform: translate3d(0, calc((.5 - var(--p, .5)) * 120px), 0) scale(calc(.8 + var(--p, .5) * .4)); }
.motion .download .g5 { transform: translate3d(0, calc((.5 - var(--p, .5)) * -160px), 0) scale(calc(.8 + var(--p, .5) * .5)); }

/* ───────────── Smaller screens ───────────── */
@media (max-width: 1000px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .nav-links a:not(.nav-cta) { display: none; }
}
@media (max-width: 860px) {
  .hero .caps { grid-template-columns: 1fr; text-align: center; gap: 20px; }
  .motion .hero .lockphone { transform: translate3d(0, calc((1 - var(--r)) * 54svh - var(--k) * 11svh), 0) scale(calc(.9 + var(--r) * .1 - var(--k) * .12)); }
  .motion .hero .caps { inset: auto 20px 3svh; display: grid; gap: 14px; text-align: center; opacity: var(--k); transform: translate3d(0, calc((1 - var(--k)) * 30px), 0); }
  .motion .hero .cap { position: static; width: auto; opacity: 1; transform: none; }
  .motion .hero .cap.l, .motion .hero .cap.r { text-align: center; }
  .cap h2 { font-size: 19px; }
  .cap p { font-size: 15px; margin-top: 2px; }

  .story .stick { grid-template-columns: 1fr; gap: 30px; text-align: center; }
  .story .phone { --w: 250px; }
  .chapter > p:last-child { margin-left: auto; margin-right: auto; }
  .js .story .stick { align-content: center; gap: 22px; }
  .js .story .phone { --w: min(230px, 25svh); }
  .js .index { justify-content: center; gap: 4px 14px; font-size: 13px; }
  .js .chapters { min-height: 210px; }
  .js .chapter { top: 30px; }
  .chapter h2 { font-size: 30px; }
  .chapter > p:last-child { font-size: 17px; margin-top: 8px; }

  .stats { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .w2 { grid-column: auto; }
  .tile { min-height: 340px; padding: 28px; }
  .widget { --s: 136px; padding: 12px; border-radius: 22px; }
  .widget .hl { font-size: 17px; }
  .widget .hl.big { font-size: 36px; }
  .widget.f3 { display: none; }
  .wstage { left: 28px; right: 28px; bottom: 28px; }
  .siri .orb { width: 58px; height: 58px; top: 26px; right: 26px; }
  .siri h3, .siri > p:not(.q):not(.a) { padding-right: 70px; }
  .siri .q { margin-top: 40px; font-size: 20px; }
  .features, .privacy { padding: 110px 0; }
  .reach { padding: 130px 0 110px; }
  .row span { font-size: 15px; padding: 10px 18px; }
  .hero .stick { padding-top: 64px; }
}

/* Reduce Motion: no animation anywhere, even from the browser's own smooth scrolling. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
