/* collectionday.co.uk
   Light only, in the app's blue. Bin colours appear only where they mean bins.
   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;
}

/* The story's glow changes colour smoothly between chapters. */
@property --glow { syntax: "<color>"; inherits: true; initial-value: rgba(47, 140, 255, .36); }

:root {
  color-scheme: light;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter CD", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --nav-h: 48px;
  --pad: clamp(104px, 12vw, 168px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-soft: cubic-bezier(.25, .1, .25, 1);

  --bg: #ffffff;
  --ink: #1d1d1f;
  --dim: #6e6e73;
  --faint: #d2d2d7;
  --tile: #f5f5f7;
  --line: rgba(0, 0, 0, .08);
  --link: #0066cc;

  /* The app's colours */
  --blue: #0a5fd8;
  --blue-hi: #2f8cff;
  --green: #1f9d45;
  --green-hi: #34c759;
  --purple: #9b45d6;
  --purple-hi: #b85ce8;
  --bingrey: #8e8e93;

  --grad-blue: linear-gradient(90deg, #0a4fc4 0%, #1a73f0 55%, #4aa0ff 100%);
  --grad-blue-deep: linear-gradient(90deg, #083f9e 0%, #0a5fd8 50%, #2f8cff 100%);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
/* Nothing may make the page wider than the screen, so it never scrolls sideways. */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: hidden; overflow-x: clip; }
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(--blue-hi); 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: glass over the page, like a bar on an iPhone. */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .72); -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: calc(var(--nav-h) - 1px); margin: 0 auto; padding: 0 22px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 600; font-size: 17px; letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand img { width: 26px; height: 26px; border-radius: 6px; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 13px; }
.nav-links a { color: var(--ink); opacity: .8; transition: opacity .2s ease; }
.nav-links a:hover { opacity: 1; text-decoration: none; }
.nav-links .nav-cta { opacity: 1; background: var(--blue); color: #fff; padding: 5px 13px; border-radius: 99px; font-weight: 500; transition: background-color .2s ease; }
.nav-links .nav-cta:hover { background: #1a6cf0; }
.nav-links .nav-council { opacity: 1; color: var(--blue); padding: 4px 12px; border-radius: 99px; box-shadow: inset 0 0 0 1px rgba(10, 95, 216, .45); font-weight: 500; margin-left: -16px; transition: background-color .2s ease, box-shadow .2s ease; }
.nav-links a { white-space: nowrap; }
.nav-council .short { display: none; }
.nav-links .nav-council:hover { background: rgba(10, 95, 216, .06); box-shadow: inset 0 0 0 1px var(--blue); }

/* Shared type */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 600; color: var(--dim); }
.eyebrow img { width: 30px; height: 30px; border-radius: 7px; }
.kicker { font-size: clamp(17px, 1.6vw, 21px); font-weight: 600; letter-spacing: -0.012em; color: var(--blue); }
.section-title { font-size: clamp(40px, 5.6vw, 76px); line-height: 1.05; font-weight: 700; letter-spacing: -0.032em; }
.kicker + .section-title { margin-top: 10px; }
.caption { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.48; color: var(--dim); font-weight: 500; max-width: 660px; margin: 22px auto 0; }
.caption strong { color: var(--ink); font-weight: 600; }
.more { font-size: 17px; font-weight: 500; }
.more::after { content: "\203A"; display: inline-block; margin-left: .3em; transition: transform .3s var(--ease); }
.more:hover::after { transform: translateX(3px); }
.button { display: inline-block; background: var(--blue); color: #fff; padding: 12px 24px; border-radius: 99px; font-size: 17px; font-weight: 500; letter-spacing: -0.01em; transition: background-color .2s ease, transform .3s var(--ease); }
.button:hover { background: #1a6cf0; text-decoration: none; }
.button:active { transform: scale(.97); }
.small { margin-top: 16px; font-size: 14px; color: var(--dim); font-weight: 500; }
.ctas { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: center; align-items: center; margin-top: 32px; }
.grad { background: linear-gradient(100deg, #0a4fc4 0%, #1a73f0 30%, #4aa0ff 38%, #b9dcff 46%, #4aa0ff 54%, #1a73f0 62%, #0a4fc4 100%); background-size: 260% 100%; background-position: 0% 0; -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .06em; }

/* 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, 0 30px 80px rgba(10, 40, 110, .22);
}
.phone .screen { container-type: inline-size; position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: calc(var(--u) * 60); 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: a blue evening at six o'clock. */
.screen.lock { color: #fff; text-align: center; background: radial-gradient(120% 55% at 50% 110%, #4d8dff 0%, rgba(77, 141, 255, 0) 62%), radial-gradient(90% 50% at 8% 78%, #1e6fe0 0%, rgba(30, 111, 224, 0) 70%), linear-gradient(180deg, #06122f 0%, #0c2766 42%, #15409f 78%, #2459c4 100%); }
.lock .date { margin-top: calc(18 / 402 * 100cqw); font-size: calc(19 / 402 * 100cqw); font-weight: 600; opacity: .9; }
.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(236 / 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, .22); -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(20, 10, 60, .22); }
.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: .65; font-size: .88em; }

/* Soft colour behind sections */
.glow { position: absolute; pointer-events: none; border-radius: 50%; }

/* Bin dots and words in their colours */
.dg, .dgy, .dp { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
.dg { background: var(--green-hi); } .dgy { background: var(--bingrey); } .dp { background: var(--purple-hi); }
.bg { color: var(--green); } .bgy { color: var(--bingrey); }

/* 1. Hero. It slides up under the glass bar, so the colour shows through it. */
.hero { position: relative; margin-top: calc(-1 * var(--nav-h)); --w: clamp(230px, 34svh, 330px); }
.hero .stick { position: relative; overflow: hidden; padding: calc(var(--nav-h) + 72px) 0 110px; background: linear-gradient(180deg, #ffffff 0%, #fbfbff 55%, #f1f3ff 100%); }
/* The glows fade out at the foot, so the hero runs into the next section without an edge. */
.hero .stick::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 24%; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(255, 255, 255, 0), #ffffff 92%); }
.hero .g1 { left: 50%; top: 50%; width: min(1100px, 140vw); height: min(900px, 110svh); transform: translateX(-50%); background: radial-gradient(closest-side, rgba(47, 140, 255, .30), rgba(10, 95, 216, .12) 55%, transparent); }
.hero .g2 { left: -12%; top: 30%; width: 46vw; height: 46vw; background: radial-gradient(closest-side, rgba(90, 170, 255, .22), transparent); }
.hero .g3 { right: -14%; top: 8%; width: 44vw; height: 44vw; background: radial-gradient(closest-side, rgba(10, 95, 216, .13), transparent); }
.hero .g6 { left: 60%; top: 70%; width: 38vw; height: 38vw; background: radial-gradient(closest-side, rgba(120, 180, 255, .2), transparent); }
.hero .copy { position: relative; z-index: 1; text-align: center; padding: 0 24px; }
.hero h1 { margin-top: 16px; font-size: clamp(46px, 8vw, 104px); font-size: clamp(46px, min(8vw, 10.6svh), 104px); line-height: 1.02; font-weight: 700; letter-spacing: -0.036em; }
.hero .lede { max-width: 700px; margin: 22px auto 0; font-size: clamp(19px, 1.8vw, 23px); 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; z-index: 2; }
/* The hero phone is a rendered picture (store/render-phone.py), not CSS 3D: a frame of 750 x 1400
   with the phone, face on, 554 pixels wide in the middle. phone.js draws the frame for the scroll. */
.ph-in { position: absolute; inset: 0; }
.lockphone .ph { position: absolute; left: calc(50% - var(--w) * .677); top: calc(50% - var(--w) * 1.2637); width: calc(var(--w) * 1.354); height: calc(var(--w) * 2.5275); max-width: none; pointer-events: none; }
.lockphone .ph-tilt, .lockphone .ph-seq { display: none; }
.motion .lockphone .ph-front { display: none; }
.motion .lockphone .ph-tilt { display: block; }
.motion .lockphone.drawn .ph-tilt { display: none; }
.motion .lockphone.drawn .ph-seq { display: block; }
.hero h1 .ln { display: block; }

/* The 3D phone: the front is the .phone, then a back and a rim of narrow strips (edges.css),
   all in one 3D space, so it can turn and spin like the real thing. */
.phone3d { --u: calc(var(--w, 300px) / 422); position: relative; width: var(--w, 300px); aspect-ratio: 422 / 894; flex: none; perspective: 2400px; }
.phone3d::after { content: ""; position: absolute; left: 4%; right: 4%; bottom: -8%; height: 10%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(10, 40, 110, .3), transparent); }
.p3-in, .p3 { position: absolute; inset: 0; }
.p3 > .rim { position: absolute; inset: 0; }
/* Real depth only while the phone is turning. Once it is still, it is drawn flat (it looks the same):
   Chrome leaves parts of a 3D phone unpainted as a pinned section scrolls away. motion.js sets .flat. */
.motion .p3-in, .motion .p3, .motion .p3 > .rim { transform-style: preserve-3d; }
.motion .flat .p3-in, .motion .flat .p3, .motion .flat .p3 > .rim { transform-style: flat; }
.p3 > .rim > i, .ic3 > .rim > i { position: absolute; display: block; }
.p3 > .rim > i { background: linear-gradient(180deg, hsl(222 14% calc(var(--l) * .5%)), hsl(222 18% calc(var(--l) * 1%)) 40%, hsl(222 24% calc(var(--l) * 1.2%)) 52%, hsl(222 16% calc(var(--l) * .7%))); }
.phone.p3-front { position: absolute; inset: 0; transform: translateZ(calc(var(--u) * 23)); -webkit-backface-visibility: hidden; backface-visibility: hidden; box-shadow: inset 0 0 0 calc(var(--u) * 1.6) #4a4a4d; }
.phone.p3-front::after { content: ""; position: absolute; inset: 0; z-index: 4; border-radius: inherit; pointer-events: none; background: linear-gradient(115deg, transparent 36%, rgba(255, 255, 255, .2) 47%, rgba(255, 255, 255, .05) 55%, transparent 64%); background-size: 320% 100%; background-position: var(--sheen, 80%) 0; }
.p3-back { position: absolute; inset: 0; border-radius: calc(var(--u) * 70); transform: rotateY(180deg) translateZ(calc(var(--u) * 23)); -webkit-backface-visibility: hidden; backface-visibility: hidden; background: radial-gradient(120% 70% at 20% 0%, rgba(255, 255, 255, .2), transparent 60%), linear-gradient(155deg, #5a6d92 0%, #3b4c6d 55%, #2b3a56 100%); box-shadow: inset 0 0 0 calc(var(--u) * 3) rgba(255, 255, 255, .1); }
.p3-back .cam { position: absolute; left: calc(var(--u) * 26); top: calc(var(--u) * 26); width: calc(var(--u) * 170); height: calc(var(--u) * 176); border-radius: calc(var(--u) * 52); background: linear-gradient(150deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .05)); box-shadow: inset 0 0 0 calc(var(--u) * 2) rgba(255, 255, 255, .14), 0 calc(var(--u) * 6) calc(var(--u) * 16) rgba(0, 0, 0, .28); }
.p3-back .cam i { position: absolute; width: calc(var(--u) * 70); height: calc(var(--u) * 70); border-radius: 50%; background: radial-gradient(circle, #05070c 30%, #19212f 40%, #5a6680 50%, #1a2130 58%, #2d374c 70%); box-shadow: 0 0 0 calc(var(--u) * 3) rgba(255, 255, 255, .12); }
.p3-back .cam i:nth-child(1) { left: calc(var(--u) * 12); top: calc(var(--u) * 12); }
.p3-back .cam i:nth-child(2) { left: calc(var(--u) * 12); top: calc(var(--u) * 94); }
.p3-back .cam i:nth-child(3) { left: calc(var(--u) * 88); top: calc(var(--u) * 53); }
.p3-back .cam b { position: absolute; right: calc(var(--u) * 18); top: calc(var(--u) * 18); width: calc(var(--u) * 20); height: calc(var(--u) * 20); border-radius: 50%; background: radial-gradient(circle, #fff8e6, #cdbd8e 60%, #7d7458); }

/* What the app does, floating around the hero phone once it settles (only with motion). */
.cloud { display: none; }
.cc { position: absolute; color: var(--ink); text-align: left; }
.cc.card { background: #fff; border-radius: 22px; padding: 14px 16px; box-shadow: 0 26px 60px rgba(10, 40, 110, .15), 0 2px 8px rgba(10, 40, 110, .06); }
.cc.widget { box-shadow: 0 26px 60px rgba(10, 40, 110, .16), 0 2px 8px rgba(10, 40, 110, .06); }
.cc2 { width: 330px; padding: 12px; }
.cc-k { margin: 2px 0 8px 4px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); }
.cc2 .ev-note { box-shadow: none; background: var(--tile); }
.cc.moved { margin: 0; width: 250px; }
.siri-q { width: 290px; }
.siri-q .orb { float: right; width: 34px; height: 34px; margin: 0 0 6px 10px; border-radius: 50%; background: conic-gradient(from 0deg, #2f8cff, #8fd0ff, #ffffff, #5aa8ff, #1a5fe0, #2f8cff); -webkit-mask: radial-gradient(closest-side, transparent 58%, #000 64%); mask: radial-gradient(closest-side, transparent 58%, #000 64%); }
.siri-q .q { font-size: 17px; font-weight: 600; letter-spacing: -0.015em; }
.siri-q .a { clear: both; margin-top: 8px; padding: 10px 13px; border-radius: 16px 16px 16px 5px; background: #eaf2ff; color: #0a3f9e; font-size: 15px; line-height: 1.35; font-weight: 500; }
.homes-mini { width: 230px; padding: 10px; }
.homes-mini p { padding: 10px 12px; border-radius: 14px; background: var(--tile); }
.homes-mini p + p { margin-top: 8px; }
.homes-mini b { display: block; font-size: 15px; letter-spacing: -0.01em; }
.homes-mini span { display: flex; align-items: center; gap: 4px; margin-top: 2px; color: var(--dim); font-size: 13px; font-weight: 500; }
.homes-mini span i:last-of-type { margin-right: 4px; }

/* A notification, as on a lock screen in light mode. */
.ev-note { display: flex; gap: 12px; align-items: flex-start; padding: 13px 15px; border-radius: 22px; background: #fff; box-shadow: 0 16px 40px rgba(10, 40, 110, .12), 0 1px 3px rgba(10, 40, 110, .06); font-size: 15px; line-height: 1.3; color: var(--ink); text-align: left; }
.ev-note img { width: 38px; height: 38px; border-radius: 9px; flex: none; }
.ev-note > div { flex: 1; min-width: 0; }
.ev-note .nt { display: flex; justify-content: space-between; gap: 8px; }
.ev-note .nt span { color: var(--dim); font-size: 13px; font-weight: 500; }

/* 1b. Every evening, across the UK */
.evening { position: relative; background: linear-gradient(180deg, #ffffff 0%, #f3f6ff 50%, #ffffff 100%); }
.evening .stick { position: relative; overflow: hidden; }
.ev-in { max-width: 1180px; margin: 0 auto; padding: var(--pad) 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.ev-copy .caption { margin-left: 0; }
.ev-copy .section-title { font-size: clamp(42px, 5.2vw, 76px); }
.ev-stream { position: relative; height: 560px; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 82%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 82%, transparent 100%); }
.ev-tilt { padding: 0 40px; }
.ev-col { display: grid; gap: 14px; max-width: 400px; margin: 0 auto; }

/* 2. Story: one phone, four screens. */
.story { position: relative; padding: var(--pad) 0; --glow: rgba(47, 140, 255, .36); }
.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: 4% 0; background: radial-gradient(closest-side, var(--glow), transparent); transition: --glow .8s ease; }
.story .phone3d { --w: clamp(240px, 36svh, 330px); }
.app-stack { position: relative; }
.app-stack .s:not(.s0) { display: none; }
.chapters { position: relative; display: grid; gap: 48px; }
.chapter .kicker { color: var(--blue); }
.chapter h2 { margin-top: 8px; font-size: clamp(34px, 3.8vw, 54px); line-height: 1.06; font-weight: 700; letter-spacing: -0.032em; }
.chapter h2 em { font-style: normal; color: var(--blue); }
.chapter > p:last-child { margin-top: 16px; color: var(--dim); font-size: 19px; line-height: 1.48; font-weight: 500; max-width: 33ch; }
.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: var(--nav-h); }
.js .app-stack .s:not(.s0) { display: block; position: absolute; inset: 0; }
.js .app-stack .s { opacity: 0; transition: opacity .7s var(--ease-soft), transform .9s var(--ease); 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 blue line that fills. */
.js .chapters { display: block; min-height: 340px; }
.js .index { display: flex; flex-wrap: wrap; gap: 6px 22px; list-style: none; font-size: 15px; font-weight: 600; color: var(--dim); }
.js .index li { opacity: .5; 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(--blue); }
.js .track { display: block; position: relative; height: 3px; margin: 14px 0 0; background: var(--tile); border-radius: 3px; overflow: hidden; }
.js .track i { display: block; height: 100%; background: var(--grad-blue); clip-path: inset(0 calc((1 - var(--p, 0)) * 100%) 0 0); }
.js .chapter { position: absolute; left: 0; right: 0; top: 44px; opacity: 0; transform: translate3d(0, 20px, 0); transition: opacity .5s var(--ease-soft), transform .8s var(--ease); }
.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; transition-delay: .08s; }

/* 3. Reach */
.reach { position: relative; }
.reach .stick { position: relative; overflow: hidden; }
.reach-in { position: relative; max-width: 1180px; margin: 0 auto; padding: var(--pad) 24px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.reach-copy .caption { margin-left: 0; }
.map { display: none; }
.js .map { display: block; position: relative; height: min(80svh, 800px); aspect-ratio: .5258; justify-self: center; }
.map canvas { display: block; width: 100%; height: 100%; }
.more-reach { position: relative; overflow: hidden; padding: 24px 0 var(--pad); }
.reach .g4 { left: 50%; top: 0; width: 1000px; height: 640px; margin-left: -500px; background: radial-gradient(closest-side, rgba(47, 140, 255, .16), rgba(10, 95, 216, .06) 55%, transparent); }
.huge { position: relative; margin-left: -.04em; font-size: clamp(96px, 12.5vw, 210px); line-height: .9; font-weight: 700; letter-spacing: -0.055em; font-variant-numeric: tabular-nums; }
.huge span { background: var(--grad-blue-deep); -webkit-background-clip: text; background-clip: text; color: transparent; padding: 0 .04em; }
.reach-title { position: relative; max-width: 560px; margin: 18px 0 0; font-size: clamp(28px, 3.5vw, 46px); line-height: 1.12; font-weight: 700; letter-spacing: -0.03em; }
.rows { margin: 0 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; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
/* Council names: blue and grey in turn. */
.row span:nth-child(odd) { background: #eaf2ff; color: #0a56c4; }
.row span:nth-child(even) { background: var(--tile); color: #424245; }
.row.r2 span:nth-child(odd) { background: var(--tile); color: #424245; }
.row.r2 span:nth-child(even) { background: #eaf2ff; color: #0a56c4; }
.row.r1 { transform: translate3d(-4%, 0, 0); }
.row.r2 { transform: translate3d(-16%, 0, 0); }
.row.r3 { transform: translate3d(-9%, 0, 0); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; max-width: 900px; margin: 0 auto; }
.stats b { display: block; font-size: clamp(56px, 6vw, 76px); line-height: 1; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; -webkit-background-clip: text; background-clip: text; color: transparent; padding: 0 .04em .04em; }
.stats b { background-image: var(--grad-blue-deep); }
.stats span { display: block; margin-top: 10px; color: var(--dim); font-size: 17px; font-weight: 500; }

/* 4. Features: blue, grey and one deep blue tile. */
.features { padding: var(--pad) 0; }
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; margin-top: 64px; }
.tile::after { content: ""; position: absolute; inset: 0; z-index: 5; border-radius: inherit; pointer-events: none; background: radial-gradient(560px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .6), transparent 42%); opacity: 0; transition: opacity .4s ease; }
.siri::after { background: radial-gradient(560px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .16), transparent 42%); }
.tile.tilt::after { opacity: 1; }
.tile { --hue: var(--blue); position: relative; overflow: hidden; min-height: 400px; padding: 36px; border-radius: 28px; background: var(--tile); display: flex; flex-direction: column; }
.lead { max-width: 30ch; font-size: clamp(21px, 1.9vw, 24px); line-height: 1.24; font-weight: 600; letter-spacing: -0.022em; color: var(--ink); }
.lead h3, .lead p { display: inline; font: inherit; }
.lead h3 { color: var(--hue); }
.tile { grid-column: span 2; }
.w2 { grid-column: span 3; }
.widgets .wstage { margin-right: -36px; }
.widgets { background: linear-gradient(160deg, #eef5ff 0%, #dbe9ff 100%); }
.siri { --hue: #fff; color: #fff; background: linear-gradient(160deg, #0a1f5c 0%, #123c9c 100%); }
.siri .lead { color: rgba(255, 255, 255, .72); }
.homes { background: var(--tile); }
.sort { background: linear-gradient(160deg, #eef5ff 0%, #dbe9ff 100%); }
.hols { background: var(--tile); }
.modes { background: linear-gradient(160deg, #eef5ff 0%, #dbe9ff 100%); }

.wstage { margin-top: auto; padding-top: 30px; 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: #fff; box-shadow: 0 12px 30px rgba(10, 60, 150, .13); 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; color: var(--blue); }
.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: 34px; right: 34px; width: 92px; height: 92px; border-radius: 50%; background: conic-gradient(from 0deg, #2f8cff, #8fd0ff, #ffffff, #5aa8ff, #1a5fe0, #2f8cff); -webkit-mask: radial-gradient(closest-side, transparent 62%, #000 66%); mask: radial-gradient(closest-side, transparent 62%, #000 66%); }
.siri .lead { padding-right: 110px; }
.siri .q { margin-top: auto; padding-top: 40px; font-size: 22px; line-height: 1.25; font-weight: 600; letter-spacing: -0.02em; }
.siri .a { align-self: flex-start; margin-top: 14px; padding: 14px 18px; border-radius: 20px 20px 20px 6px; background: #fff; color: var(--ink); font-size: 18px; line-height: 1.35; font-weight: 500; box-shadow: 0 10px 26px rgba(0, 0, 0, .18); }

.homelist { list-style: none; margin: auto -8px -8px; padding-top: 24px; display: grid; gap: 10px; }
.homelist li { padding: 13px 16px; border-radius: 16px; background: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .06); }
.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; box-shadow: inset 0 0 0 calc(var(--u) * 1.6) #4a4a4d, 0 20px 50px rgba(10, 40, 110, .2); }

.moved { margin: auto -8px -8px; display: grid; gap: 4px; padding: 18px; border-radius: 18px; background: #fff; text-align: center; font-weight: 600; box-shadow: 0 6px 18px rgba(0, 0, 0, .06); }
.moved .was { color: var(--dim); text-decoration: line-through; font-weight: 500; }
.moved .arrow { color: var(--blue); font-size: 20px; }
.moved .now { font-size: 19px; letter-spacing: -0.02em; color: var(--blue); }

.split { position: relative; height: 190px; margin: auto -36px -36px; }
.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); }
/* On a computer, light and dark gets the whole last row, words on the left and phones on the right. */
@media (min-width: 1001px) {
  .modes { grid-column: span 6; flex-direction: row; align-items: center; min-height: 340px; }
  .modes .lead { flex: 1; max-width: 22ch; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.18; letter-spacing: -0.026em; }
  .modes .split { flex: none; align-self: stretch; width: 460px; height: auto; margin: -36px -36px -36px auto; }
  .modes .split .phone { --w: 178px; top: 46px; }
  .modes .split .light { left: 70px; }
  .modes .split .dark { left: 222px; }
}

/* 5. Privacy */
.privacy { padding: var(--pad) 0; }
.privacy .kicker { color: var(--blue); }
.words { max-width: 980px; margin: 22px auto 0; text-align: center; font-size: clamp(32px, 4.5vw, 60px); line-height: 1.14; font-weight: 700; letter-spacing: -0.034em; }
/* The last sentence in blue. */
.words .em { color: var(--blue); }
.privacy .more { display: inline-block; margin-top: 40px; }

/* 6. Questions: one line each, opened with a tap (native <details>, so no script). */
.faq { padding: calc(var(--pad) * .35) 0; }
/* One rounded card of rows, like iPhone Settings. Each answer slides open where the browser can
   animate to its natural height (interpolate-size); elsewhere it simply opens. */
.qa { max-width: 860px; margin: 64px auto 0; padding: 6px 40px; border-radius: 28px; background: var(--tile); interpolate-size: allow-keywords; }
.qa details + details { border-top: 1px solid rgba(0, 0, 0, .09); }
.qa summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 0; border-radius: 12px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
.qa h3 { font-size: clamp(19px, 1.8vw, 22px); line-height: 1.25; font-weight: 600; letter-spacing: -0.02em; }
/* The round button: a blue plus on white that turns into a cross when the answer is open. */
.qa summary::after { content: ""; flex: none; width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(var(--blue), var(--blue)) center / 13px 2px no-repeat, linear-gradient(var(--blue), var(--blue)) center / 2px 13px no-repeat, #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 4px 14px rgba(10, 60, 150, .08); transition: transform .45s var(--ease), background-color .2s ease; }
.qa summary:hover::after { background-color: #eef5ff; }
.qa details[open] summary::after { transform: rotate(45deg); }
.qa details::details-content { block-size: 0; overflow-y: clip; transition: block-size .45s var(--ease), content-visibility .45s allow-discrete; }
.qa details[open]::details-content { block-size: auto; }
.qa details p { max-width: 640px; padding: 0 60px 26px 0; font-size: 17px; line-height: 1.5; color: var(--dim); }
@media (prefers-reduced-motion: reduce) {
  .qa details::details-content, .qa summary::after { transition: none; }
}

/* The page shown for an address that isn't on the site (404.html). */
.nf { min-height: calc(100vh - var(--nav-h)); min-height: calc(100svh - var(--nav-h)); display: flex; align-items: center; padding: 96px 0; }
.nf .wrap { width: 100%; }
.nf .ctas { margin-top: 36px; }

/* Council pages (site/councils/, made by store/make-council-pages.py): plain, no scroll motion. */
.cp-hero { padding: clamp(72px, 9vw, 120px) 0 clamp(48px, 6vw, 80px); }
.cp-hero .section-title { font-size: clamp(36px, 5vw, 64px); text-wrap: balance; }
.cp-small { max-width: 560px; margin: 20px auto 0; font-size: 14px; line-height: 1.5; color: var(--dim); }
.cp-sec { padding: 0 0 clamp(48px, 6vw, 72px); }
.cp-col { max-width: 808px; }
.cp-sec h2 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.15; font-weight: 700; letter-spacing: -0.026em; margin-bottom: 16px; }
.cp-text { font-size: clamp(17px, 1.5vw, 19px); line-height: 1.5; color: var(--dim); max-width: 680px; }
.cp-note { margin-top: 14px; font-size: 15px; line-height: 1.5; color: var(--dim); max-width: 680px; }
.cp-bins { list-style: none; margin-top: 22px; border-top: 1px solid rgba(0, 0, 0, .12); }
.cp-bins li { display: flex; align-items: center; gap: 14px; padding: 15px 2px; border-bottom: 1px solid rgba(0, 0, 0, .12); font-size: clamp(17px, 1.5vw, 19px); }
.cp-bins b { font-weight: 600; }
.cp-bins span { margin-left: auto; padding-left: 16px; color: var(--dim); white-space: nowrap; }
.cp-steps { padding-left: 1.4em; font-size: clamp(17px, 1.5vw, 19px); line-height: 1.5; max-width: 680px; }
.cp-steps li + li { margin-top: 8px; }
.cp-links { list-style: none; margin-top: 18px; font-size: 17px; }
.cp-links li + li { margin-top: 10px; }
.cp-more { list-style: none; columns: 3 180px; column-gap: 28px; font-size: 17px; line-height: 2; margin-bottom: 14px; }
.cp-all { list-style: none; columns: 4 200px; column-gap: 28px; font-size: 16px; line-height: 2; color: var(--dim); }
.cp-all li, .cp-more li { break-inside: avoid; }
.cp-all a { font-weight: 500; }
.cp-count { color: var(--dim); font-weight: 500; }
/* Bin dots: the colour in the bin's name, else its kind's, as in the app. */
.bd { flex: none; width: 14px; height: 14px; border-radius: 50%; background: #8e8e93; }
.bd-green { background: #28a745; } .bd-grey { background: #8e8e93; } .bd-black { background: #2c2c2e; }
.bd-blue { background: #007aff; } .bd-brown { background: #a2845e; } .bd-purple { background: #af52de; }
.bd-pink { background: #ff2d78; } .bd-red { background: #ff3b30; } .bd-yellow { background: #f2b800; }
.bd-orange { background: #ff9500; } .bd-teal { background: #30b0c7; } .bd-paper { background: #5856d6; }
.bd-general { background: #5b5b66; } .bd-other { background: #8e8e93; }
.bd-white { background: #fff; box-shadow: inset 0 0 0 1.5px #c7c7cc; }

/* 6. Download */
.download { position: relative; overflow: hidden; padding: var(--pad) 0 calc(var(--pad) + 20px); }
.download .g5 { left: 50%; top: 4%; width: 900px; height: 640px; margin-left: -450px; background: radial-gradient(closest-side, rgba(47, 140, 255, .26), rgba(10, 95, 216, .1) 55%, transparent); }
.download .g7 { left: 50%; top: 30%; width: 520px; height: 420px; margin-left: -520px; background: radial-gradient(closest-side, rgba(120, 180, 255, .18), transparent); }
.download .g8 { left: 50%; top: 22%; width: 520px; height: 420px; margin-left: 0; background: radial-gradient(closest-side, rgba(10, 95, 216, .1), transparent); }
.icon3d { --iw: 150px; --u: calc(var(--iw) / 100); position: relative; width: var(--iw); height: var(--iw); margin: 0 auto 48px; perspective: 1000px; }
.icon3d::after { content: ""; position: absolute; left: 6%; right: 6%; bottom: -16%; height: 14%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(10, 60, 160, .35), transparent); }
.ic3 { position: absolute; inset: 0; transform-style: preserve-3d; }
.ic3 > .rim { position: absolute; inset: 0; transform-style: preserve-3d; }
.ic3 > .rim > i { background: linear-gradient(180deg, hsl(214 80% calc(var(--l) * .45%)), hsl(214 85% calc(var(--l) * .8%)) 50%, hsl(214 80% calc(var(--l) * .5%))); }
.ic3-front { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 22.5%; transform: translateZ(calc(var(--u) * 7)); -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.ic3-back { position: absolute; inset: 0; border-radius: 22.5%; background: linear-gradient(160deg, #2f8cff, #0a4fc4); transform: rotateY(180deg) translateZ(calc(var(--u) * 7)); -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.download .section-title, .download .caption, .download .ctas { position: relative; }

/* Footer */
.foot { background: var(--tile); padding: 26px 0 48px; color: var(--dim); font-size: 12px; line-height: 1.6; }
.foot p + p { margin-top: 8px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid rgba(0, 0, 0, .1); font-size: 13px; }
.foot-links a { color: var(--ink); opacity: .85; }

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

/* Arrive once */
.motion [data-reveal] { opacity: 0; transform: translate3d(0, 40px, 0); transition: opacity .9s var(--ease-soft), transform 1.1s var(--ease); transition-delay: var(--d, 0ms); }
.motion [data-reveal].in { opacity: 1; transform: none; }
.d1 { --d: 100ms; } .d2 { --d: 200ms; } .d3 { --d: 300ms; }
.motion .rise { animation: rise 1.2s var(--ease) both; }
.motion .r2 { animation-delay: .1s; } .motion .r3 { animation-delay: .2s; } .motion .r4 { animation-delay: .3s; } .motion .r5 { animation-delay: .45s; }
@keyframes rise { from { opacity: 0; transform: translate3d(0, 28px, 0); } to { opacity: 1; transform: none; } }

/* Hero: pinned for three and a third screens. At the top the phone sits under the words, turned a
   little, with the reminder arriving on its lock screen as the page opens. As you scroll the words
   lift away; the phone straightens and rises to the middle (motion.js measures how far: --lift),
   spins once to show its back, and what the app does gathers around it in depth. */
.motion .hero {
  height: 330vh; height: 330svh;
  --c: clamp(0, (var(--p, 0) - .01) / .14, 1);
  --r: clamp(0, (var(--p, 0) - .02) / .28, 1);
  --s: clamp(0, (var(--p, 0) - .33) / .27, 1);
  --s1: clamp(0, (var(--p, 0) - .33) / .135, 1);
  --s2: clamp(0, (var(--p, 0) - .465) / .135, 1);
  --k1: clamp(0, (var(--p, 0) - .62) / .09, 1);
  --k2: clamp(0, (var(--p, 0) - .66) / .09, 1);
  --k3: clamp(0, (var(--p, 0) - .70) / .09, 1);
  --k4: clamp(0, (var(--p, 0) - .64) / .09, 1);
  --k5: clamp(0, (var(--p, 0) - .68) / .09, 1);
  --k6: clamp(0, (var(--p, 0) - .72) / .09, 1);
}
.motion .hero .stick { position: sticky; top: 0; height: 100vh; height: 100svh; padding: calc(var(--nav-h) + clamp(28px, 6.5svh, 84px)) 0 0; }
.motion .hero .copy { opacity: calc(1 - var(--c)); transform: translate3d(0, calc(var(--c) * -7svh), 0) scale(calc(1 - var(--c) * .04)); transform-origin: 50% 0; will-change: transform, opacity; }
.motion .hero h1 .ln { overflow: hidden; padding: 0 .08em .12em; margin: 0 -.08em -.12em; }
.motion .hero h1 .ln > span { display: inline-block; animation: up 1.1s var(--ease) both; }
.motion .hero h1 .ln + .ln > span { animation: up 1.1s var(--ease) .12s both, sweep 2.6s var(--ease-soft) 1s both; }
@keyframes up { from { transform: translate3d(0, 108%, 0); } to { transform: none; } }
@keyframes sweep { from { background-position: 100% 0; } to { background-position: 0% 0; } }
.motion .hero .stage { position: static; margin-top: clamp(30px, 5svh, 60px); }
.motion .hero .lockphone { transform: translate3d(0, calc(var(--r) * var(--lift, 0) * -1px), 0) scale(calc(.95 + var(--r) * .05 - (var(--s1) - var(--s2)) * .1)); will-change: transform; }
.motion .hero .ph-in { animation: phonein 1.6s var(--ease) .1s both; }
@keyframes phonein { from { transform: translate3d(0, 140px, 0); } to { transform: none; } }
.motion .hero .g1 { transform: translate3d(-50%, calc(var(--p, 0) * -24svh), 0) scale(calc(1 + var(--p, 0) * .3)); }
.motion .hero .g2 { transform: translate3d(calc(var(--p, 0) * 12vw), calc(var(--p, 0) * -30svh), 0); }
.motion .hero .g3 { transform: translate3d(calc(var(--p, 0) * -10vw), calc(var(--p, 0) * 26svh), 0); }
.motion .hero .g6 { transform: translate3d(calc(var(--p, 0) * -16vw), calc(var(--p, 0) * -36svh), 0); }
.motion .hero .cloud { display: block; position: absolute; inset: 0; z-index: 3; perspective: 1400px; pointer-events: none; --cy: calc(50% + var(--nav-h) / 2); }
.motion .hero .cc { opacity: var(--ki); transform: translate3d(0, calc((1 - var(--ki)) * 110px + (var(--p, 0) - .6) * var(--dy)), calc((1 - var(--ki)) * -520px + var(--z))) rotateY(var(--ry)); }
.cc1 { --ki: var(--k1); --z: 40px; --dy: -240px; --ry: 14deg; right: calc(50% + var(--w) / 2 + 90px); top: calc(var(--cy) - 33svh); transform-origin: 100% 50%; }
.cc2 { --ki: var(--k2); --z: -90px; --dy: -140px; --ry: 16deg; right: calc(50% + var(--w) / 2 + 30px); top: calc(var(--cy) - 8svh); transform-origin: 100% 50%; }
.cc3 { --ki: var(--k3); --z: 20px; --dy: -300px; --ry: 12deg; right: calc(50% + var(--w) / 2 + 120px); top: calc(var(--cy) + 15svh); transform-origin: 100% 50%; }
.cc4 { --ki: var(--k4); --z: -60px; --dy: -180px; --ry: -14deg; left: calc(50% + var(--w) / 2 + 100px); top: calc(var(--cy) - 32svh); transform-origin: 0 50%; }
.cc5 { --ki: var(--k5); --z: 60px; --dy: -260px; --ry: -12deg; left: calc(50% + var(--w) / 2 + 40px); top: calc(var(--cy) - 6svh); transform-origin: 0 50%; }
.cc6 { --ki: var(--k6); --z: -120px; --dy: -160px; --ry: -16deg; left: calc(50% + var(--w) / 2 + 110px); top: calc(var(--cy) + 17svh); transform-origin: 0 50%; }

/* Every evening: the wall of reminders streams up as you scroll. */
.motion .evening { height: 280vh; height: 280svh; }
.motion .evening .stick { position: sticky; top: 0; height: 100vh; height: 100svh; }
.motion .ev-in { height: 100%; padding-top: var(--nav-h); padding-bottom: 0; }
.motion .ev-stream { height: 100vh; height: 100svh; margin-top: calc(-1 * var(--nav-h)); }
.motion .ev-col { transform: translate3d(0, calc(45svh - var(--p, 0) * (100% - 10svh)), 0); will-change: transform; }

/* Reach: pinned while the map lights up and the number climbs (map.js draws it). */
.motion .reach { height: 260vh; height: 260svh; }
.motion .reach .stick { position: sticky; top: 0; height: 100vh; height: 100svh; }
.motion .reach-in { height: 100%; padding-top: var(--nav-h); padding-bottom: 0; }

/* Story: the phone floats a little against the scroll. */
.motion .story .phone3d { transform: translate3d(0, calc((.5 - var(--p, .5)) * 5svh), 0); }
.motion .story .p3 { transform: rotateY(-16deg) rotateX(5deg) rotateZ(-1deg); transition: transform 1.4s var(--ease); }
.motion .story[data-step="1"] .p3 { transform: rotateY(14deg) rotateX(3deg) rotateZ(1deg); }
.motion .story[data-step="2"] .p3 { transform: rotateY(-12deg) rotateX(-3deg) rotateZ(-1deg); }
.motion .story[data-step="3"] .p3 { transform: rotateY(16deg) rotateX(4deg) rotateZ(1deg); }
/* At the end the phone turns to face you, then goes flat once the turn is over. */
.motion .story.flat .p3 { transform: none; transition: transform 1.4s var(--ease), transform-style 0s linear 1.4s; transition-behavior: allow-discrete; }
.motion .story.flat .p3-in, .motion .story.flat .p3 > .rim { transition: transform-style 0s linear 1.4s; transition-behavior: allow-discrete; }

/* Council names drift past at three speeds. */
.motion .more-reach .row.r1 { transform: translate3d(calc(4% - var(--p, 0) * 26%), 0, 0); }
.motion .more-reach .row.r2 { transform: translate3d(calc(-28% + var(--p, 0) * 26%), 0, 0); }
.motion .more-reach .row.r3 { transform: translate3d(calc(-2% - var(--p, 0) * 17%), 0, 0); }
.motion .reach .g4 { transform: translate3d(0, calc(var(--p, 0) * 20svh), 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, .motion .siri-q .orb { animation: spin 9s linear infinite; }
@keyframes spin { to { transform: rotate(1turn); } }
.motion .siri .a { opacity: 0; transform: translate3d(0, 14px, 0) scale(.96); transform-origin: 0 100%; transition: opacity .7s var(--ease-soft) .6s, transform .8s var(--ease) .6s; }
.motion .siri.in .a { opacity: 1; transform: none; }

/* Tiles tip under the pointer, with a soft light where it is (motion.js, mouse and trackpad only). */
.motion .tile.in { transform: perspective(1200px) rotateX(var(--trx, 0deg)) rotateY(var(--try, 0deg)); }
.motion .tile.in.hov { transition: opacity .9s var(--ease-soft), transform .6s var(--ease); transition-delay: 0s; }

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

/* Download: the icon turns in 3D, grows and rises into place. */
.motion .download .icon3d { transform: translate3d(0, calc((.5 - min(var(--p, .5), .5)) * 140px), 0) scale(calc(.75 + min(var(--p, .5), .5) * .5)); }
.motion .download .ic3 { transform: rotateX(calc((.5 - min(var(--p, .5), .5)) * 80deg)) rotateY(calc((.5 - min(var(--p, .5), .5)) * 300deg)); }
.motion .download .g5 { transform: translate3d(0, calc((.5 - var(--p, .5)) * -160px), 0) scale(calc(.8 + var(--p, .5) * .5)); }
.motion .download .g7 { transform: translate3d(calc((var(--p, .5) - .5) * -120px), calc((.5 - var(--p, .5)) * -60px), 0); }
.motion .download .g8 { transform: translate3d(calc((var(--p, .5) - .5) * 120px), calc((.5 - var(--p, .5)) * -100px), 0); }

/* ───────────── Smaller screens ───────────── */
@media (max-width: 1000px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile { grid-column: auto; }
  .w2 { grid-column: span 2; }
  .nav-links a:not(.nav-cta):not(.nav-council) { display: none; }
}
/* Phones: both buttons stay on one line. The name beside the icon goes first (still read out), then "sign in". */
@media (max-width: 440px) {
  .nav-in { padding: 0 16px; }
  .brand-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media (max-width: 350px) {
  .nav-council .long { display: none; }
  .nav-council .short { display: inline; }
}
@media (max-width: 1180px) and (min-width: 861px) {
  .cc { scale: .82; }
}
@media (max-width: 860px) {
  /* Around the phone, four smaller cards overlap its edges. */
  .cc { scale: .72; }
  .cc2, .cc6 { display: none; }
  .cc1 { right: auto; left: 2%; top: calc(var(--cy) - 34svh); transform-origin: 0 50%; }
  .cc4 { left: auto; right: 2%; top: calc(var(--cy) + 2svh); transform-origin: 100% 50%; }
  .cc5 { left: auto; right: 0; top: calc(var(--cy) + 21svh); transform-origin: 100% 50%; }
  .cc3 { right: auto; left: 1%; top: calc(var(--cy) + 12svh); transform-origin: 0 50%; }

  .ev-in { grid-template-columns: 1fr; gap: 10px; text-align: center; }
  .ev-copy .caption { margin-left: auto; }
  .ev-copy .section-title { font-size: 40px; }
  .motion .ev-in { align-content: start; padding-top: calc(var(--nav-h) + 4svh); }
  .motion .ev-stream { height: 64svh; margin-top: 0; }
  .ev-copy .caption { font-size: 17px; margin-top: 12px; }
  .ev-tilt { padding: 0 10px; }
  .ev-note { font-size: 14px; padding: 11px 13px; }

  .reach-in { grid-template-columns: 1fr; gap: 6px; text-align: center; }
  .motion .reach-in { align-content: start; padding-top: calc(var(--nav-h) + 3svh); }
  .huge { font-size: 92px; margin: 0; }
  .reach-title { font-size: 26px; margin: 10px auto 0; max-width: 420px; }
  .reach-copy .caption { display: none; }
  .js .map { height: 54svh; }

  .story .stick { grid-template-columns: 1fr; gap: 30px; text-align: center; }
  .story .phone3d { --w: 250px; }
  .chapter > p:last-child { margin-left: auto; margin-right: auto; }
  .js .story .stick { align-content: center; gap: 22px; }
  .js .story .phone3d { --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) {
  .qa { padding: 4px 22px; border-radius: 24px; }
  .qa summary { gap: 16px; padding: 20px 0; }
  .qa summary::after { width: 30px; height: 30px; }
  .qa details p { padding-right: 0; }
  .bento { grid-template-columns: 1fr; }
  .w2 { grid-column: auto; }
  .tile { min-height: 360px; padding: 28px; border-radius: 26px; }
  .split { margin: auto -28px -28px; }
  .widgets .wstage { margin-right: -28px; }
  .widget { --s: 136px; padding: 12px; border-radius: 22px; }
  .widget .hl { font-size: 17px; }
  .widget .hl.big { font-size: 36px; }
  .widget.f3 { display: none; }
  .siri .orb { width: 58px; height: 58px; top: 26px; right: 26px; }
  .siri .lead { padding-right: 66px; }
  .siri .q { font-size: 20px; }
  .row span { font-size: 15px; padding: 10px 18px; }
  .hero .stick { padding-top: calc(var(--nav-h) + 40px); }
  .hero .eyebrow { display: none; }
  .hero h1 { margin-top: 0; }
  .hero .lede { font-size: 18px; }
  .ctas { gap: 14px 22px; }
}

/* Small phones (iPhone SE and the like): tighter words, so the reminder on the phone is still
   in the first view. */
@media (max-width: 640px) and (max-height: 760px) {
  .motion .hero .stick { padding-top: calc(var(--nav-h) + 18px); }
  .hero h1 { font-size: 40px; }
  .hero .lede { font-size: 16px; margin-top: 12px; }
  .hero .ctas { margin-top: 18px; }
  .hero .small { display: none; }
  .motion .hero .stage { margin-top: 20px; }
}
@media (max-width: 640px) and (max-height: 600px) {
  .hero h1 { font-size: 36px; }
  .hero .ctas .more { display: none; }
}

/* Short screens, such as laptops: the bar at the top already names the app, so the hero
   drops its own name to leave room for the phone. */
@media (max-height: 820px) and (min-width: 641px) {
  .hero .eyebrow { display: none; }
  .hero h1 { margin-top: 0; }
  .ctas { margin-top: 26px; }
}

/* 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; }
}
