/* 3E8 · Guardian Light
   Look: white and light grey pages, black type, one blue for links, and the lamp's warm light as the only colour.
   Type: the device's own system font (San Francisco on Apple devices), Figtree elsewhere. */

/* Fallback font for devices without San Francisco. Only downloaded if it's actually used. */
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("assets/fonts/figtree-latin.woff2") format("woff2"); }

:root {
  /* Type scale: every text size on the site comes from these eight steps (big stat numbers and the
     words drawn inside the illustrations size themselves). Text that's 28px or larger gets tighter tracking. */
  --fs-caption: .8125rem;   /* 13: small labels, counters, footnotes */
  --fs-small: .9375rem;     /* 15: secondary text, buttons, menus */
  --fs-body: 1.0625rem;     /* 17: reading text */
  --fs-callout: 1.1875rem;  /* 19: card titles, emphasized lines */
  --fs-lead: 1.3125rem;     /* 21: intro paragraphs */
  --fs-title: clamp(1.5rem, 2.4vw, 1.75rem);  /* 24 to 28: small headings */
  --fs-h2: clamp(2rem, 4vw, 3rem);             /* 32 to 48: section headings */
  --fs-h1: clamp(2.5rem, 5.4vw, 4rem);         /* 40 to 64: page headings */
  --canvas: #ffffff;
  --parchment: #f5f5f7;
  --ink: #1d1d1f;
  --ink-80: #333336;
  --muted: #6e6e73;          /* 5.07:1 on white, 4.62:1 on #f5f5f7 */
  --hairline: #d2d2d7;
  --link: #0066cc;           /* 5.57:1 on white */
  --blue: #0071e3;           /* Apple blue: buttons, symbols, active states. White text on it is 4.69:1 */
  --blue-hover: #0077ed;
  --section: 80px;           /* the one vertical rhythm between sections (56px on phones) */
  --link-on-dark: #2997ff;
  --focus: #0071e3;
  --black: #000000;
  --warm: #FFE9BF;
  --lamp-room: #FFF3DC;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", "Figtree", Helvetica, Arial, sans-serif;
  --radius: 18px;
  --radius-sm: 12px;
  --wrap: 1200px;
  --gutter: 24px;
  /* Critically damped feel: fast start, no overshoot. Used for entrances and for a button easing back after
     a tap. The pop after a long press is the one press motion that overshoots, on purpose (see is-release-pop). */
  --ease: cubic-bezier(.32, .72, 0, 1);
  --ease-hover: cubic-bezier(0, 0, .5, 1);
  --shadow-card: 0 4px 12px rgba(0, 0, 0, .08);
  --shadow-card-hover: 0 10px 30px rgba(0, 0, 0, .12);

  /* Names the survey and results pages still use */
  --text: var(--ink); --line: var(--hairline); --surface: var(--parchment); --surface-2: #e8e8ed;
  --accent: var(--ink); --accent-rgb: 0, 113, 227; --font-head: var(--font);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body {
  margin: 0; background: var(--canvas); color: var(--ink);
  font-family: var(--font); font-size: var(--fs-body); line-height: 1.47; letter-spacing: -.022em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: .18em; }
h1, h2, h3 { margin: 0 0 20px; font-weight: 600; line-height: 1.1; letter-spacing: 0; text-wrap: balance; }
h1 { font-size: var(--fs-h1); letter-spacing: -.012em; line-height: 1.06; } /* 40 to 64px */
h2 { font-size: var(--fs-h2); letter-spacing: -.003em; line-height: 1.1; } /* 32 to 48px */
h3 { margin-bottom: 8px; font-size: var(--fs-lead); letter-spacing: .011em; line-height: 1.21; } /* 21px */
p { margin: 0 0 1em; text-wrap: pretty; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.muted { color: var(--muted); }

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  min-height: 48px; padding: 0 24px; border-radius: 980px; border: 1px solid transparent;
  background: var(--blue); color: #fff; font: 400 var(--fs-body)/1 var(--font); letter-spacing: -.022em;
  cursor: pointer; text-decoration: none !important;
  /* Pressed on pointer-down, instantly, and it springs back from wherever it is. */
}
.btn--sm { min-height: 40px; padding: 0 18px; font-size: var(--fs-small); letter-spacing: -.016em; }
.btn--light { background: #fff; color: var(--ink); }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--block { width: 100%; }
.btn:disabled { opacity: .55; cursor: progress; }
@media (hover: hover) {
  .btn:hover { background: var(--blue-hover); }
  .btn--light:hover { background: #e8e8ed; }
  .btn--outline:hover { background: var(--ink); color: #fff; }
}
/* "Learn more ›" links */
.more { position: relative; font-size: var(--fs-body); white-space: nowrap; }
.more::after { content: "\00a0›"; display: inline-block; transition: translate .2s var(--ease-hover); }
/* A taller invisible hit area (at least 44px), without moving anything. ::after is the arrow, so this uses ::before. */
.more::before { content: ""; position: absolute; inset: -10px -4px; }
@media (hover: hover) { .more:hover::after { translate: 3px 0; } }
.on-dark .more, .on-dark a:not(.btn) { color: var(--link-on-dark); }


/* ---------- Global menu ---------- */
.gnav {
  position: sticky; top: 0; z-index: 50; isolation: isolate;
  background: rgba(245, 245, 247, .82);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  view-transition-name: gnav;
}
.gnav__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 52px; }
.gnav__brand { display: flex; align-items: center; min-height: 44px; flex-shrink: 0; }
.gnav__brand img { height: 32px; width: auto; }
.gnav__menu { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); }
.gnav__menu a { color: var(--ink-80); font-size: var(--fs-small); letter-spacing: -.016em; padding: 12px 0; white-space: nowrap; transition: color .2s var(--ease-hover); }
.gnav__menu a:hover { color: var(--ink); text-decoration: none; }
.gnav__menu a[aria-current="page"] { color: var(--ink); font-weight: 600; }
/* "Get in touch": the one blue button in the menu */
.gnav__menu .gnav__cta { min-height: 36px; padding: 0 16px; color: #fff; font-weight: 400; }
.gnav__menu .gnav__cta:hover { color: #fff; text-decoration: none; }
.gnav__menu .gnav__cta[aria-current="page"] { color: #fff; font-weight: 600; }
@media (max-width: 1023px) { .gnav__menu .gnav__cta { align-self: flex-start; min-height: 52px; margin-top: 16px; padding: 0 28px; font-size: var(--fs-callout); } }
.gnav__toggle { display: none; }

@media (max-width: 1023px) {
  .gnav__toggle {
    display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px;
    width: 44px; height: 44px; margin-right: -10px; padding: 0; background: none; border: 0; cursor: pointer; color: var(--ink);
  }
  .gnav__toggle span { display: block; width: 18px; height: 1.5px; border-radius: 2px; background: currentColor; transition: transform .3s var(--ease); }
  .gnav[data-open] .gnav__toggle span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .gnav[data-open] .gnav__toggle span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .gnav__menu {
    position: fixed; top: 52px; left: 0; right: 0; height: calc(100dvh - 52px); overflow-y: auto;
    flex-direction: column; align-items: stretch; gap: 0; padding: 12px 40px 40px;
    background: var(--parchment); visibility: hidden; opacity: 0; transition: opacity .25s var(--ease), visibility 0s .25s;
  }
  .gnav[data-open] { background: var(--parchment); }
  .gnav[data-open] .gnav__menu { visibility: visible; opacity: 1; transition: opacity .25s var(--ease); }
  .gnav__menu a { font-size: var(--fs-title); font-weight: 600; letter-spacing: -.02em; padding: 8px 0; opacity: 1; transform: translateY(-8px); transition: transform .4s var(--ease), opacity .2s, color .2s var(--ease-hover); }
  .gnav[data-open] .gnav__menu a { transform: none; }
  /* Items arrive one after another, top to bottom. */
  .gnav[data-open] .gnav__menu a:nth-child(2) { transition-delay: 20ms; } .gnav[data-open] .gnav__menu a:nth-child(3) { transition-delay: 40ms; }
  .gnav[data-open] .gnav__menu a:nth-child(4) { transition-delay: 60ms; } .gnav[data-open] .gnav__menu a:nth-child(5) { transition-delay: 80ms; }
  .gnav[data-open] .gnav__menu a:nth-child(6) { transition-delay: 100ms; } .gnav[data-open] .gnav__menu a:nth-child(7) { transition-delay: 120ms; }
  .gnav[data-open] .gnav__menu a:nth-child(n+8) { transition-delay: 140ms; }
  body.menu-open { overflow: hidden; }
}

/* ---------- Topic title bar ---------- */
.lnav { position: sticky; top: 52px; z-index: 40; background: rgba(255, 255, 255, .82); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); box-shadow: 0 1px 0 rgba(0, 0, 0, .08); }
.lnav__inner { display: flex; align-items: center; justify-content: space-between; height: 52px; }
.lnav__title { margin: 0; font-size: var(--fs-lead); font-weight: 600; letter-spacing: .011em; }

.home { background: var(--parchment); }

.lamp { position: relative; width: 180px; aspect-ratio: 1 / 1; }
.lamp > div { position: absolute; transition: opacity .8s var(--ease), box-shadow .8s var(--ease); }
.lamp:not(.is-on) > div, .lamp:not(.is-on) .lamp__dome::after, .lamp:not(.is-on) .lamp__base::after { transition-duration: .45s; }
.lamp__halo { inset: -55% -60% -25%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 196, 110, .55), rgba(255, 214, 150, .22) 45%, rgba(255, 233, 191, 0) 72%); pointer-events: none; }
.lamp__dome { left: 22%; right: 22%; top: 12%; height: 50%; border-radius: 50% 50% 22% 22% / 62% 62% 20% 20%; background: linear-gradient(180deg, #f2f2f4, #dcdce1); box-shadow: 0 0 36px rgba(255, 200, 120, .7); }
.lamp__dome::after, .lamp__base::after { content: ""; position: absolute; inset: 0; border-radius: inherit; transition: opacity .8s var(--ease); }
.lamp__dome::after { background: radial-gradient(circle at 50% 38%, #FFFDF6, #FFF1D2 45%, #F5D59E); }
.lamp__ring { left: 18%; right: 18%; top: 58%; height: 9%; border-radius: 50%; background: linear-gradient(90deg, #B0DDE4, #DF4C73 50%, #286FB4); }
.lamp__base { left: 25%; right: 25%; top: 64%; height: 16%; border-radius: 6px 6px 20px 20px; background: linear-gradient(180deg, #d9d9de, #c4c4ca); }
.lamp__base::after { background: linear-gradient(180deg, #f5f5f7, #dedee3); }
.lamp__shadow { left: 12%; right: 12%; top: 82%; height: 6%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .18), transparent); }
.lamp:not(.is-on) .lamp__halo { opacity: 0; }
.lamp:not(.is-on) .lamp__dome { box-shadow: none; }
.lamp:not(.is-on) .lamp__dome::after, .lamp:not(.is-on) .lamp__base::after { opacity: 0; }
.lamp:not(.is-on) .lamp__ring { opacity: .35; }
.speech__bars { display: inline-flex; align-items: center; gap: 3px; height: 16px; }
.speech__bars i { width: 3px; height: 100%; border-radius: 3px; background: var(--ink); transform: scaleY(.45); }
.speech__bars i:nth-child(2), .speech__bars i:nth-child(4) { transform: scaleY(.75); }
.speech__bars i:nth-child(3) { transform: scaleY(1); }
@keyframes talk { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
.try { min-height: 44px; padding: 0 12px; background: none; border: 0; color: var(--link); font: 400 var(--fs-small) var(--font); cursor: pointer; }
.try:hover { text-decoration: underline; }


/* ---------- Section heads: bold first words, then grey ---------- */
.duo { font-size: var(--fs-h2); line-height: 1.1; letter-spacing: -.003em; margin: 0 0 32px; }
.duo b { font-weight: 600; color: var(--ink); }
.duo span { color: var(--muted); }

/* ---------- Home: tile grid (small white tiles, a few large colored ones) ---------- */
.bento-wrap { padding-bottom: var(--section); }
.bento {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 300px; gap: 20px;
  grid-template-areas: "c c a b" "d d e f";
}
.t { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius); background: var(--canvas); color: var(--ink); text-decoration: none !important; box-shadow: 0 0 0 1px rgba(0, 0, 0, .02);
  transition: transform .4s var(--ease-hover), box-shadow .4s var(--ease-hover); }
@media (hover: hover) { .t:hover { transform: scale(1.012); box-shadow: var(--shadow-card-hover); } }
.t__art { flex: 1; display: grid; place-items: center; min-height: 0; padding: 20px 20px 0; }
.t__text { padding: 14px 20px 20px; }
.t__title { margin: 0; font-size: var(--fs-callout); font-weight: 600; line-height: 1.21; letter-spacing: .011em; }
.t__detail { margin: 4px 0 0; font-size: var(--fs-body); line-height: 1.47; letter-spacing: -.022em; color: var(--ink-80); }
/* Large tiles: a picture and a label, with a round arrow */
.t--big .t__text { position: relative; padding: 22px 64px 24px 28px; }
.t--big .t__title { font-size: var(--fs-title); line-height: 1.17; letter-spacing: .009em; }
.t--big .t__detail { font-size: var(--fs-body); }
.t__go { position: absolute; right: 22px; bottom: 24px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: #fff; transition: transform .3s var(--ease); }
.t__go svg { width: 12px; height: 12px; }
@media (hover: hover) { .t:hover .t__go { transform: translateX(2px); } }
.t--warm { background: linear-gradient(180deg, #FFF7E8, #FFE6B8); }
.t--night { background: #000; color: #f5f5f7; }
.t--night .t__detail { color: #a1a1a6; }
.t--night .t__go { background: #f5f5f7; color: #000; }
.t--split { background: var(--canvas); }
.t--split .t__art { padding: 0; }
.t--split .t__text { background: #d9eef2; }
.a { grid-area: a; } .b { grid-area: b; } .c { grid-area: c; } .d { grid-area: d; } .e { grid-area: e; } .f { grid-area: f; }
.g { grid-area: g; } .h { grid-area: h; } .i { grid-area: i; } .j { grid-area: j; } .k { grid-area: k; }

/* Tile artwork, all drawn in CSS */
.mini-lamp { position: relative; width: 92px; height: 104px; }
.mini-lamp i, .mini-lamp b, .mini-lamp s { position: absolute; display: block; }
.mini-lamp i { left: 8%; right: 8%; top: 0; height: 62%; border-radius: 50% 50% 22% 22% / 62% 62% 20% 20%; background: radial-gradient(circle at 50% 38%, #FFFDF6, #FFF1D2 45%, #F5D59E); box-shadow: 0 0 46px rgba(255, 210, 140, .8); }
.mini-lamp b { left: 2%; right: 2%; top: 58%; height: 13%; border-radius: 50%; background: linear-gradient(90deg, #B0DDE4, #DF4C73 50%, #286FB4); }
.mini-lamp s { left: 15%; right: 15%; top: 70%; bottom: 0; border-radius: 4px 4px 14px 14px; background: linear-gradient(180deg, #f5f5f7, #d2d2d7); }
.mini-lamp--xl { transform: scale(1.3); margin-top: 12px; }
.glow { position: relative; display: grid; place-items: center; width: 100%; height: 100%; }
.glow::before { content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 196, 110, .55), rgba(255, 196, 110, .14) 55%, transparent); pointer-events: none; }
/* Three dots in the light ring's colors, like a product's color options */
.dots { display: flex; justify-content: center; gap: 6px; margin: 10px 0 0; }
.dots i { width: 9px; height: 9px; border-radius: 50%; }
.dots i:nth-child(1) { background: #B0DDE4; } .dots i:nth-child(2) { background: #DF4C73; } .dots i:nth-child(3) { background: #286FB4; }
.art-time { margin: 0; font-size: 4.25rem; font-weight: 600; letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.art-time small { font-size: .3em; letter-spacing: 0; color: var(--muted); font-weight: 500; }
.art-table { align-self: center; width: 100%; list-style: none; margin: 0; padding: 0; }
.art-table li { display: flex; justify-content: space-between; gap: 8px; padding: 9px 0; border-bottom: 1px solid #ececf0; font-size: var(--fs-small); letter-spacing: -.01em; }
.art-table li:last-child { border-bottom: 0; }
.art-table li b { font-weight: 600; }
.art-big { margin: 0; font-size: 6.5rem; font-weight: 600; letter-spacing: -.02em; line-height: .9; font-variant-numeric: tabular-nums; }
.art-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.art-chips span { padding: 6px 12px; border-radius: 980px; background: var(--parchment); font-size: var(--fs-small); letter-spacing: -.01em; font-weight: 500; }
.art-people { display: flex; gap: 10px; align-items: center; }
.art-icon { display: grid; justify-items: center; color: var(--blue); }
.art-icon .icon { width: 64px; height: 64px; stroke-width: 1.5; }
.avatar { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 600; font-size: var(--fs-body); letter-spacing: 0; }
.avatar--alt { background: #e8e8ed; color: var(--ink); }
/* The bedroom at night, lamp on (the story tile) */
.mini-scene { position: relative; width: 100%; height: 100%; overflow: hidden; }
.mini-scene .scene::before, .mini-scene .scene__light, .mini-scene .scene__lamp i::after { opacity: 1; }
.mini-scene .scene__lamp i { box-shadow: 0 0 40px rgba(255, 226, 170, .7); }

/* ---------- "Why families choose" row ---------- */
.why { background: var(--canvas); padding: var(--section) 0; }
.why h2 { margin-bottom: 28px; }
.why-card { position: relative; flex: 0 0 auto; width: 300px; min-height: 220px; padding: 28px 28px 64px; border-radius: var(--radius); background: var(--parchment); color: var(--ink); scroll-snap-align: start; text-decoration: none !important; transition: transform .4s var(--ease-hover), background-color .2s; }
@media (hover: hover) { .why-card:hover { transform: scale(1.012); background: #ececf0; } }
.why-icon { display: block; margin-bottom: 14px; color: var(--blue); }
.why-icon .icon { width: 32px; height: 32px; }
.why-card h3 { margin: 0 0 6px; font-size: var(--fs-callout); }
.why-card p { margin: 0; font-size: var(--fs-body); color: var(--ink-80); }
.why-card .t__go { right: 20px; bottom: 20px; width: 28px; height: 28px; }

/* Sideways rows (used by the "Why" row) */
.shelf {
  display: flex; gap: 20px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  padding: 4px max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))) 20px;
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  scrollbar-width: none;
}
.shelf::-webkit-scrollbar { display: none; }
.shelf__paddles { display: flex; justify-content: center; gap: 12px; margin-top: 8px; }
.paddle { width: 36px; height: 36px; border-radius: 50%; border: 0; background: #e8e8ed; color: var(--ink); cursor: pointer; display: grid; place-items: center; transition: background-color .2s, opacity .2s, transform .2s var(--ease); }
.paddle svg { width: 14px; height: 14px; }
.paddle:hover { background: #dcdce1; }
.paddle:disabled { opacity: .35; cursor: default; }
/* A bigger invisible hit area, so the small round arrows are easy to tap */
.paddle { position: relative; }
.paddle::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; }

/* ---------- Loading skeletons: shown only while something is really on its way ---------- */
.skel { display: block; border-radius: 8px; background: linear-gradient(90deg, #ececf0 0%, #f5f5f7 40%, #ececf0 80%) 0 0 / 220% 100%; animation: shimmer 1.6s linear infinite; }
.skel--dark { background-image: linear-gradient(90deg, #2c2c2e 0%, #3a3a3c 40%, #2c2c2e 80%); }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -120% 0; } }
/* Video and photo frames shimmer until their media has loaded */
.is-loading::after { content: ""; position: absolute; inset: 0; z-index: 4; background: linear-gradient(90deg, #1c1c1e 0%, #2c2c2e 40%, #1c1c1e 80%) 0 0 / 220% 100%; animation: shimmer 1.6s linear infinite; }
.media { position: relative; overflow: hidden; border-radius: var(--radius); background: #ececf0; }
.media img { display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s var(--ease); }
.media.is-loaded img { opacity: 1; }
.media:not(.is-loaded)::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #ececf0 0%, #f5f5f7 40%, #ececf0 80%) 0 0 / 220% 100%; animation: shimmer 1.6s linear infinite; }

/* ---------- Home: the fact ---------- */
.fact { background: var(--canvas); padding: var(--section) 0; text-align: center; }
.fact p.fact__line { max-width: 22em; margin: 0 auto 20px; font-size: var(--fs-h2); font-weight: 600; letter-spacing: -.003em; line-height: 1.1; color: var(--muted); text-wrap: balance; }
.fact__line strong { color: var(--ink); font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.fact__src { margin: 0; font-size: var(--fs-small); color: var(--muted); }

/* ---------- Topic pages ---------- */
.page-hero { padding-block: var(--section) 56px; text-align: center; }
.page-hero h1 { max-width: 16em; margin: 0 auto 20px; }
.page-hero .lede { max-width: 34em; margin: 0 auto; font-size: var(--fs-lead); line-height: 1.38; color: var(--ink-80); letter-spacing: .011em; }
.page-hero .eyebrow { margin: 0 0 12px; font-size: var(--fs-body); font-weight: 600; color: var(--muted); }
.band { background: var(--parchment); padding: var(--section) 0; }
.band--white { background: var(--canvas); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; list-style: none; margin: 0; padding: 0; }
.feature-grid--2 { grid-template-columns: repeat(2, 1fr); }
.section-gap { margin-top: 40px !important; }
.duo + .section-gap { margin-top: 32px !important; } /* a section heading sits 32px above its content everywhere */
.feature { padding: 36px; border-radius: var(--radius); background: var(--canvas); }
.band--white .feature { background: var(--parchment); }
.feature__n { display: block; margin-bottom: 20px; font-size: var(--fs-small); font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.feature h2, .feature h3 { font-size: var(--fs-title); letter-spacing: .009em; line-height: 1.17; margin-bottom: 8px; }
.feature p { margin: 0; color: var(--ink-80); font-size: var(--fs-body); }
.prose { max-width: 36em; margin: 0 auto; font-size: var(--fs-callout); line-height: 1.5; }
.prose p { color: var(--ink-80); }
.center { text-align: center; }

/* Pager at the end of each topic */
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding-top: 40px; padding-bottom: var(--section); }
.pager__link { display: flex; flex-direction: column; gap: 4px; padding: 24px 28px; border-radius: var(--radius); background: var(--parchment); color: var(--ink); font-size: var(--fs-lead); font-weight: 600; letter-spacing: .011em; text-decoration: none !important; transition: background-color .2s, transform .2s var(--ease); }
.pager__link span { font-size: var(--fs-small); font-weight: 400; color: var(--muted); letter-spacing: 0; }
.pager__link--next { text-align: right; }
.pager__link:hover { background: #ebebef; }

/* Compare */
.table-wrap { overflow-x: auto; border-radius: var(--radius); background: var(--canvas); -webkit-overflow-scrolling: touch; }
.compare { width: 100%; min-width: 760px; border-collapse: collapse; font-size: var(--fs-small); }
.compare th, .compare td { padding: 20px 16px; text-align: center; border-bottom: 1px solid var(--hairline); }
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare thead th { font-size: var(--fs-small); font-weight: 600; color: var(--muted); vertical-align: bottom; }
.compare tbody th { text-align: left; font-weight: 400; }
.compare tbody th, .compare thead th:first-child { position: sticky; left: 0; z-index: 1; background: var(--canvas); }
.compare .is-us { background: var(--parchment); }
.compare thead .is-us { color: var(--ink); font-size: var(--fs-body); }
.yes { font-weight: 600; }
.no { color: var(--muted); }
.part { color: var(--ink-80); }
.table-hint { display: none; font-size: var(--fs-small); color: var(--muted); margin: 12px 0 0; text-align: right; }
@media (max-width: 760px) { .table-hint { display: block; } .compare tbody th { min-width: 150px; } }

/* Our story: words light up as you read */
.words { max-width: 22em; margin: 0 auto; font-size: var(--fs-h2); font-weight: 600; letter-spacing: -.003em; line-height: 1.1; text-align: center; color: var(--ink); }
.js .words .w { color: #86868b; transition: color .3s; }
.js .words .w.on { color: var(--ink); }
.story-note { margin-top: 18px !important; padding-top: 18px; border-top: 1px solid var(--hairline); color: var(--ink) !important; font-weight: 600; }

/* Science */
.stat-hero { padding-block: var(--section) 56px; text-align: center; }
.stat-hero .big { margin: 0; font-size: clamp(8rem, 22vw, 14rem); font-weight: 600; letter-spacing: -.02em; line-height: .9; font-variant-numeric: tabular-nums; }
.stat-hero .big__label { max-width: 30em; margin: 20px auto 0; font-size: var(--fs-lead); color: var(--muted); line-height: 1.35; }

/* Team */
.people { list-style: none; margin: 32px 0 0; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 32px; }
.people li { display: flex; align-items: center; gap: 14px; text-align: left; }
.people strong { display: block; font-size: var(--fs-callout); font-weight: 600; color: var(--ink); }
.people li span:last-child { color: var(--muted); }

/* Quote */
.page-quote main { background: var(--parchment); }
.quote-grid { display: grid; grid-template-columns: .9fr 1.1fr; grid-template-rows: auto 1fr; column-gap: 56px; row-gap: 0; align-items: start; padding-block: var(--section); }
.quote-info { grid-column: 1; grid-row: 1; }
.quote-card { grid-column: 2; grid-row: 1 / span 2; }
.quote-contact { grid-column: 1; grid-row: 2; }
/* The promise sits right by the price: no order, nothing to pay. */
.promise { margin-top: 20px; padding: 18px 20px; border-radius: var(--radius-sm); background: var(--canvas); }
.promise p { margin: 0; font-size: var(--fs-body); line-height: 1.47; letter-spacing: -.022em; color: var(--ink-80); }
.promise p + p { margin-top: 6px; }
.promise strong { color: var(--ink); font-weight: 600; }
.field__error { margin: 0; font-size: var(--fs-small); font-weight: 500; color: var(--error-text, #b30000); }
.success__next { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 24px 0 8px; }
.success__copied { min-height: 1.4em; margin: 0 0 8px; font-size: var(--fs-small); color: var(--ink-80); }
.quote-info h1 { font-size: var(--fs-h1); }
.quote-info > p { color: var(--ink-80); font-size: var(--fs-callout); line-height: 1.45; }
.quote-info > h1 + p { font-size: var(--fs-lead); line-height: 1.38; letter-spacing: .011em; } /* the lede */
.price { font-size: var(--fs-callout); }
.price strong { font-size: var(--fs-title); font-weight: 600; letter-spacing: .007em; }
.contact { list-style: none; margin: 32px 0 0; padding: 24px 0 0; border-top: 1px solid var(--hairline); display: grid; gap: 4px; }
.contact li { display: grid; grid-template-columns: 96px 1fr; align-items: center; min-height: 44px; }
.contact span { color: var(--muted); font-size: var(--fs-small); }
.contact a { justify-self: start; padding: 10px 0; }
.quote-card { padding: 40px; border-radius: var(--radius); background: var(--canvas); box-shadow: var(--shadow-card); transition: box-shadow .9s var(--ease); }
/* Success: you asked, and the light comes on. */
.quote-card.is-sent { box-shadow: 0 0 0 1px rgba(255, 200, 120, .45), 0 20px 80px rgba(255, 190, 100, .35); }
.field { display: grid; gap: 8px; margin-bottom: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 120px; gap: 16px; }
.field-row--half { grid-template-columns: 1fr 1fr; }
.field label, .field__label { font-size: var(--fs-small); font-weight: 600; }
.opt { color: var(--muted); font-weight: 400; }
.field :is(input, select, textarea) {
  width: 100%; min-height: 52px; padding: 14px 16px; border-radius: var(--radius-sm);
  border: 1px solid #86868b; background: var(--canvas); color: var(--ink);
  font: 400 var(--fs-body)/1.3 var(--font); letter-spacing: -.022em;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px; background: var(--canvas) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%231d1d1f' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 16px center; }
.field :is(input, select, textarea):focus-visible { outline: none; border-color: var(--focus); box-shadow: 0 0 0 4px rgba(0, 113, 227, .22); }
.field [aria-invalid="true"] { border-color: #e30000; box-shadow: 0 0 0 1px #e30000; }
.trap { position: absolute; left: 0; top: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } /* hidden in place, so it never widens a right-to-left page */
.form__error { margin: 14px 0 0; color: #b30000; font-weight: 500; text-align: center; }
.form__hint { margin: 14px 0 0; font-size: var(--fs-small); color: var(--muted); text-align: center; }
.form__success { padding: 40px 0; text-align: center; }
.form__success h2 { font-size: var(--fs-h2); }
.form__success p { color: var(--ink-80); }
.success__lamp { margin: 0 auto 24px; }
.is-sent .success__lamp { animation: glow-in 1.2s var(--ease) both; }
@keyframes glow-in { from { opacity: 0; transform: translateY(8px) scale(.96); } to { opacity: 1; transform: none; } }

/* ---------- How it works: video frame that grows to fill the screen ---------- */
.reel { height: 170vh; background: #000; color: #f5f5f7; --p: 0; }
.reel__sticky { position: sticky; top: 104px; height: calc(100vh - 104px); height: calc(100svh - 104px); overflow: hidden; }
.reel__head { position: absolute; z-index: 2; top: 16vh; left: 0; right: 0; padding: 0 24px; text-align: center; opacity: calc(1 - var(--p) * 4); transform: translateY(calc(var(--p) * -60px)); }
.reel__head h2 { color: #f5f5f7; max-width: 14em; margin: 0 auto; }
.reel__head p { color: #a1a1a6; margin: 0 0 10px; font-weight: 600; }
.reel__frame { --t: 40vh; --s: 18vw; --b: 8vh; position: absolute; inset: 0; background: #0a0a0a;
  clip-path: inset(calc(var(--t) * (1 - var(--p))) calc(var(--s) * (1 - var(--p))) calc(var(--b) * (1 - var(--p))) round calc(28px * (1 - var(--p)))); }
.scrub-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: none; }
.has-video .scrub-video { display: block; }
.has-video .ph-video, .has-video .scene, .has-video .ph-tag { display: none; }
.ph-video { position: absolute; inset: 0; background: radial-gradient(80% 70% at 50% 100%, #1c1c1e, #000 70%); }
.ph-video__glow { position: absolute; left: 50%; bottom: 8%; width: 90vmin; height: 90vmin; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 220, 160, .7), rgba(255, 220, 160, .16) 45%, transparent 72%); opacity: calc(.12 + var(--p) * .88); }
.ph-video__lamp { position: absolute; left: 50%; bottom: 22%; width: 18vmin; height: 20vmin; transform: translateX(-50%); }
.ph-video__lamp i, .scene__lamp i { position: absolute; left: 8%; right: 8%; top: 0; height: 62%; border-radius: 50% 50% 22% 22% / 62% 62% 20% 20%; background: radial-gradient(circle at 50% 38%, #FFFDF6, #FFF1D2 45%, #F5D59E); box-shadow: 0 0 40px rgba(255, 226, 170, .7); }
.ph-video__lamp b, .scene__lamp b { position: absolute; left: 2%; right: 2%; top: 58%; height: 14%; border-radius: 50%; background: linear-gradient(90deg, #B0DDE4, #DF4C73 50%, #286FB4); }
.ph-video__lamp s, .scene__lamp s { position: absolute; left: 14%; right: 14%; top: 70%; bottom: 0; border-radius: 4px 4px 14px 14px; background: linear-gradient(180deg, #f5f5f7, #c7c7cc); }
.ph-video__lamp i { opacity: calc(.3 + var(--p) * .7); }
.ph-video__floor { position: absolute; left: 0; right: 0; bottom: 22%; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 233, 191, .5), transparent); }
.ph-tag { position: absolute; z-index: 3; left: 50%; transform: translateX(-50%); bottom: calc(var(--b, 0px) * (1 - var(--p, 1)) + 18px); margin: 0; padding: 6px 14px; border-radius: 980px; white-space: nowrap; background: rgba(29, 29, 31, .72); color: #f5f5f7; font-size: var(--fs-small); letter-spacing: -.016em; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.reel__caption { position: absolute; z-index: 3; left: 0; right: 0; top: 18%; margin: 0; padding: 0 24px; text-align: center; font-size: var(--fs-h2); font-weight: 600; letter-spacing: -.003em; line-height: 1.1; color: #f5f5f7; opacity: calc((var(--p) - .62) * 3.2); transform: translateY(calc((1 - var(--p)) * 30px)); }

/* ---------- How it works: one night, scrubbed by scroll ---------- */
.tonight { height: 320vh; position: relative; background: var(--canvas); --p: 0; transition: background-color .9s var(--ease); }
/* The moment: when the lamp shines, its light spills out of the room onto the page. */
.tonight[data-step="3"] { background: var(--lamp-room); }
.tonight__sticky { position: sticky; top: 104px; height: calc(100vh - 104px); height: calc(100svh - 104px); display: flex; align-items: center; overflow: hidden; }
.tonight__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: center; }
.tonight__copy h2 { font-size: var(--fs-h2); margin-bottom: 20px; }
.tonight__copy .eyebrow { margin: 0 0 8px; font-weight: 600; color: var(--muted); }
.tonight__list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 2px; }
.tonight__list li { display: grid; grid-template-columns: 80px 1fr; column-gap: 12px; padding: 8px 0; }
.tonight__list time { grid-row: span 2; padding-top: 3px; font-size: var(--fs-small); font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; transition: color .15s; }
.tonight__list b { font-size: var(--fs-lead); font-weight: 600; letter-spacing: .011em; color: var(--muted); }
.tonight__list li.is-active time { color: var(--blue); }
.tonight__list li.is-active b { color: var(--ink); }
/* Room for three lines, so the heading never jumps when a longer step opens. */
.tonight__list span { display: block; padding-top: 4px; font-size: var(--fs-body); line-height: 1.47; color: var(--ink-80); min-height: calc(3 * 1.47em + 4px); }
/* Steps not on screen are hidden visually only: screen readers still read all five. */
.js .tonight__list li:not(.is-active) span { position: absolute; width: 1px; height: 1px; min-height: 0; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tonight__frame { position: relative; aspect-ratio: 4 / 3; border-radius: 28px; overflow: hidden; background: #0b0b0d; --b: 0px; transition: box-shadow .9s var(--ease); }
.tonight__frame[data-step="3"] { box-shadow: 0 0 140px 30px rgba(255, 214, 150, .7); }
.tonight__frame .ph-tag { bottom: 24px; }
.tonight__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .1); }
.tonight__bar i { display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(var(--p)); background: var(--warm); }
.scene { position: absolute; inset: 0; background: linear-gradient(180deg, #16161a, #0b0b0d); }
.scene::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #3f2e21, #20170f); opacity: 0; transition: opacity .8s var(--ease); }
.scene > div { position: absolute; transition: opacity .8s var(--ease), transform .8s var(--ease); }
.scene__window { right: 9%; top: 10%; width: 22%; height: 30%; border-radius: 8px; border: 3px solid rgba(255, 255, 255, .12); background: radial-gradient(circle at 70% 30%, #F5F1DA 0 7%, transparent 8%), linear-gradient(180deg, #1c1c22, #121216); }
.scene__light { inset: -20% -10% -10% 10%; background: radial-gradient(45% 50% at 62% 62%, rgba(255, 233, 191, .85), rgba(255, 233, 191, .25) 50%, transparent 75%); opacity: 0; }
.scene__bed { left: 0; bottom: 14%; width: 52%; height: 22%; border-radius: 0 18px 0 0; background: linear-gradient(180deg, #3a3a42, #2a2a30); box-shadow: inset 0 10px 0 #4a4a54; }
.scene__bed::before { content: ""; position: absolute; left: 8%; top: -18%; width: 28%; height: 34%; border-radius: 14px; background: #55555f; }
.scene__stand { left: 56%; bottom: 14%; width: 16%; height: 22%; border-radius: 6px 6px 0 0; background: #2e2e34; }
.scene__lamp { left: 57.5%; bottom: 36%; width: 13%; height: 18%; }
.scene::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 14%; background: #08080a; }
.scene__notes { left: 52%; bottom: 56%; width: 26%; height: 24%; opacity: 0; color: var(--warm); font-size: clamp(1rem, 2.4vw, 1.6rem); }
.scene__notes span { position: absolute; animation: note 3.2s ease-in-out infinite; }
.scene__notes span:nth-child(1) { left: 10%; bottom: 0; }
.scene__notes span:nth-child(2) { left: 45%; bottom: 20%; animation-delay: -1.1s; }
.scene__notes span:nth-child(3) { left: 80%; bottom: 5%; animation-delay: -2.2s; }
@keyframes note { 0% { transform: translateY(10px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(-40px); opacity: 0; } }
.scene__bubble { left: 30%; top: 16%; padding: 10px 16px; border-radius: 16px 16px 16px 4px; background: #fff; color: var(--ink); font-weight: 600; font-size: clamp(.9rem, 1.8vw, 1.1rem); opacity: 0; transform: translateY(10px) scale(.96); transform-origin: 0 100%; }
.scene__bubble.is-on { opacity: 1; transform: none; }
.scene__clock { left: 5%; top: 7%; padding: 6px 12px; border-radius: 10px; background: rgba(255, 255, 255, .08); color: #f5f5f7; font: 600 clamp(.85rem, 1.6vw, 1rem) var(--font); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.tonight__frame .scene__lamp i { background: radial-gradient(circle at 50% 38%, #4a4a52, #2e2e34 70%); box-shadow: none; transition: box-shadow .8s var(--ease); }
.scene__lamp i::before, .scene__lamp i::after { content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: 0; transition: opacity .8s var(--ease); }
.scene__lamp i::before { background: radial-gradient(circle at 50% 38%, #8a7a9e, #504a68 70%); }
.scene__lamp i::after { background: radial-gradient(circle at 50% 38%, #FFFDF6, #FFF1D2 45%, #F5D59E); }
.tonight__frame[data-step="0"] .scene__lamp i { box-shadow: 0 0 30px rgba(223, 76, 115, .35); }
.tonight__frame[data-step="0"] .scene__lamp i::before { opacity: 1; }
.tonight__frame[data-step="0"] .scene__notes { opacity: 1; }
.tonight__frame[data-step="0"] .scene__light { opacity: .22; filter: hue-rotate(-40deg) saturate(1.6); }
.tonight__frame[data-step="1"] .scene__lamp b, .tonight__frame[data-step="2"] .scene__lamp b { opacity: .35; }
.tonight__frame[data-step="3"] .scene__lamp i { box-shadow: 0 0 40px rgba(255, 226, 170, .7); }
.tonight__frame[data-step="3"] .scene__lamp i::after, .tonight__frame[data-step="3"] .scene::before, .tonight__frame[data-step="3"] .scene__light { opacity: 1; }
.tonight__frame[data-step="4"] .scene__light { opacity: .12; }

/* ---------- Footer ---------- */
.footer { background: var(--parchment); color: var(--muted); font-size: var(--fs-small); line-height: 1.43; letter-spacing: -.016em; padding: 24px 0 28px; }
.page-home .footer, .page-quote .footer { border-top: 1px solid var(--hairline); }
.footer a { color: var(--ink-80); }
.footer__note { padding-bottom: 16px; margin: 0; border-bottom: 1px solid var(--hairline); }
.footer__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding: 24px 0; }
.footer h2 { margin: 0 0 4px; font-size: var(--fs-small); font-weight: 600; letter-spacing: -.016em; line-height: 1.43; color: var(--ink); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; }
.footer li a { display: inline-flex; align-items: center; min-height: 44px; }
.footer li { min-height: 44px; display: flex; align-items: center; }
.footer__base { display: flex; align-items: center; gap: 14px; padding-top: 16px; border-top: 1px solid var(--hairline); }
.footer__base p { margin: 0; }
.footer__logo { display: flex; min-height: 44px; align-items: center; }
.footer__logo img { height: 32px; width: auto; }

/* ---------- Entrances: one quiet fade per block, never on things already on screen at load ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.done { transition-delay: 0s; }
.js .t.reveal.done, .js .why-card.reveal.done { transition: transform .4s var(--ease-hover), box-shadow .4s var(--ease-hover), background-color .2s; }

/* ---------- Page changes: a quick cross-fade between pages, with the menu holding still ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: .18s ease-in both vt-out; }
::view-transition-new(root) { animation: .32s var(--ease) both vt-in; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(8px); } }


/* ---------- Symbols: one set, one line weight, tinted Apple blue ---------- */
.icon { display: block; width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.feature > .icon { width: 40px; height: 40px; margin-bottom: 18px; color: var(--blue); }
.compare thead .icon { width: 28px; height: 28px; margin: 0 auto 10px; color: var(--blue); }
.compare thead .is-us .icon { color: var(--blue); }

/* ---------- The home lamp: a small bedroom at night, so "off" is dark and "on" clearly lights it ---------- */
.lamp-panel { position: relative; display: grid; place-items: center; width: 240px; height: 240px; border-radius: 28px; overflow: hidden; background: #0b0b0d; isolation: isolate; transition: background-color .8s var(--ease); }
.lamp-panel:has(.lamp.is-on) { background: #1f160b; }
.lamp-panel .lamp { width: 168px; }
.lamp-panel .lamp__dome, .lamp-panel .lamp__base { background: linear-gradient(180deg, #4a4a4f, #2c2c30); }
.lamp-panel .lamp__shadow { display: none; }
.lamp-panel .lamp__halo { inset: -70% -80% -40%; background: radial-gradient(closest-side, rgba(255, 196, 110, .8), rgba(255, 196, 110, .25) 45%, rgba(255, 233, 191, 0) 72%); }

/* ---------- Pictures on topic pages ---------- */
.figure { position: relative; max-width: 980px; aspect-ratio: 16 / 8; margin: 48px auto 0; border-radius: 28px; overflow: hidden; background: #0b0b0d; }
.figure .mini-scene { position: absolute; inset: 0; }
.mini-scene--off .scene::before, .mini-scene--off .scene__lamp i::after { opacity: 0; }
.mini-scene--off .scene__lamp i { background: radial-gradient(circle at 50% 38%, #4a4a52, #2e2e34 70%); box-shadow: none; }
.mini-scene--off .scene__lamp b { opacity: .35; }
.figure .scene__clock { font-size: clamp(.9rem, 1.6vw, 1.25rem); }
/* Soft music, drawn as a calm row of bars */
.music-bars { display: flex; justify-content: center; align-items: center; gap: 6px; height: 72px; margin: 40px auto 0; max-width: 520px; }
.music-bars i { flex: 1; max-width: 10px; border-radius: 10px; background: var(--blue); opacity: .85; }
.music-bars i:nth-child(1) { height: 45px; }
.music-bars i:nth-child(2) { height: 59px; }
.music-bars i:nth-child(3) { height: 67px; }
.music-bars i:nth-child(4) { height: 68px; }
.music-bars i:nth-child(5) { height: 60px; }
.music-bars i:nth-child(6) { height: 48px; }
.music-bars i:nth-child(7) { height: 34px; }
.music-bars i:nth-child(8) { height: 24px; }
.music-bars i:nth-child(9) { height: 19px; }
.music-bars i:nth-child(10) { height: 18px; }
.music-bars i:nth-child(11) { height: 21px; }
.music-bars i:nth-child(12) { height: 26px; }
.music-bars i:nth-child(13) { height: 30px; }
.music-bars i:nth-child(14) { height: 32px; }
.music-bars i:nth-child(15) { height: 34px; }
.music-bars i:nth-child(16) { height: 34px; }
.music-bars i:nth-child(17) { height: 33px; }
.music-bars i:nth-child(18) { height: 30px; }
.music-bars i:nth-child(19) { height: 25px; }
.music-bars i:nth-child(20) { height: 20px; }
.music-bars i:nth-child(21) { height: 18px; }
.music-bars i:nth-child(22) { height: 21px; }
.music-bars i:nth-child(23) { height: 29px; }
.music-bars i:nth-child(24) { height: 43px; }
.music-bars i:nth-child(25) { height: 57px; }
.music-bars i:nth-child(26) { height: 67px; }
.music-bars i:nth-child(27) { height: 71px; }
.music-bars i:nth-child(28) { height: 65px; }


/* ================================================================
   Small motion, used the same way everywhere
   ================================================================ */
:root {
  --spring: cubic-bezier(.34, 1.56, .64, 1);   /* a small overshoot: the bounce back after a press */
  --flare: rgba(0, 113, 227, .38);
}

/* The press itself (squeeze, ease back, pop) is in "Press: one feel for every button" further down. */
.btn, .paddle, .gl-submit button, .menu-btn, .pw-toggle { transition: transform .38s cubic-bezier(.3, 1.3, .6, 1), background-color .2s, box-shadow .2s, opacity .2s; }
/* Flare: a soft ring glows out from the button you used */
.is-flare { animation: flare .45s ease-out; }
.btn--light.is-flare, .t--night .is-flare { --flare: rgba(255, 255, 255, .5); }
@keyframes flare { from { box-shadow: 0 0 0 0 rgba(0, 113, 227, .3); } to { box-shadow: 0 0 0 10px rgba(0, 113, 227, 0); } }

/* Symbols draw themselves in once, as their card appears */
.reveal .icon > * { stroke-dasharray: 1 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1s var(--ease) calc(var(--d, 0ms) + 150ms); }
.reveal.in .icon > * { stroke-dashoffset: 0; }
.reveal--zoom { transform: scale(.94) translateY(24px) !important; }
.reveal--zoom.in { transform: none !important; }

/* ---------- Glass knob, shared by the slider, the pill switches and the on/off switch ---------- */
.glass-knob {
  background: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: blur(6px) saturate(180%); backdrop-filter: blur(6px) saturate(180%);
  box-shadow: 0 0 0 .5px rgba(0, 0, 0, .06), 0 2px 8px rgba(0, 0, 0, .14), inset 0 1px 1px rgba(255, 255, 255, .9), inset 0 -1px 2px rgba(0, 0, 0, .05);
}

/* Pill switches (segmented) */
.seg-glass { position: relative; isolation: isolate; touch-action: pan-y; }
.seg-glass .seg-thumb { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; border-radius: 980px; pointer-events: none; will-change: transform, width;
  background: rgba(255, 255, 255, .9); box-shadow: 0 1px 4px rgba(0, 0, 0, .12), inset 0 1px 1px #fff; transition: box-shadow .2s, scale .25s var(--spring); }
.seg-glass button { position: relative; z-index: 1; background: transparent !important; box-shadow: none !important; }
.seg-glass button[aria-selected="true"], .seg-glass button[aria-pressed="true"] { cursor: grab; }
.seg-glass.is-dragging button { cursor: grabbing; }
.seg-glass.is-dragging .seg-thumb { scale: 1.06 1.1; background: rgba(255, 255, 255, .62); -webkit-backdrop-filter: blur(4px) saturate(180%); backdrop-filter: blur(4px) saturate(180%); box-shadow: 0 4px 14px rgba(0, 0, 0, .18), inset 0 1px 1px #fff; }

/* On/off switch */
.switch { position: relative; flex-shrink: 0; width: 64px; height: 36px; padding: 0; border: 0; border-radius: 980px; cursor: pointer; touch-action: pan-y;
  background: color-mix(in srgb, var(--blue) calc(var(--k, 0) * 100%), #d2d2d7); }
.switch__knob { position: absolute; top: 2px; left: 2px; width: 32px; height: 32px; border-radius: 50%; pointer-events: none; will-change: transform; transition: scale .25s var(--spring); }
.switch:active .switch__knob, .switch.is-dragging .switch__knob { scale: 1.12 1; }
.switch:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

/* Price slider */
.gs { position: relative; padding: 46px 14px 6px; touch-action: none; cursor: pointer; outline: none; }
.gs-track { position: relative; height: 6px; border-radius: 6px; background: #e8e8ed; }
.gs-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 6px; background: var(--blue); opacity: .35; transition: opacity .25s; }
.gs.is-chosen .gs-fill { opacity: 1; }
/* Tick dots sit under the track, one per price, centred on each stop. */
.gs-ticks { position: absolute; left: -2px; right: -2px; top: 14px; display: flex; justify-content: space-between; pointer-events: none; }
.gs-ticks i { width: 4px; height: 4px; border-radius: 50%; background: #c7c7cc; }
/* The knob: a white pill at rest. Hold or drag it and it swells into clear glass, so the track shows through. */
.gs-thumb { position: absolute; top: 49px; left: 0; width: 38px; height: 24px; margin: -12px 0 0 -19px; cursor: grab; }
.gs-thumb::before { content: ""; position: absolute; inset: 0; border-radius: 980px; background-color: #fff;
  box-shadow: 0 0 0 .5px rgba(0, 0, 0, .05), 0 1px 2px rgba(0, 0, 0, .1), 0 4px 12px rgba(0, 0, 0, .12);
  transform: scaleX(var(--stretch, 1));
  transition: scale .4s var(--spring), background-color .22s ease, box-shadow .22s ease, -webkit-backdrop-filter .22s ease, backdrop-filter .22s ease; }
.gs.is-dragging .gs-thumb { cursor: grabbing; }
.gs.is-dragging .gs-thumb::before { scale: 1.5 1.55; background-color: rgba(255, 255, 255, .1);
  -webkit-backdrop-filter: blur(1px) saturate(190%) brightness(1.08); backdrop-filter: blur(1px) saturate(190%) brightness(1.08);
  box-shadow: inset 0 0 0 .75px rgba(255, 255, 255, .85), inset 0 1.5px 1px rgba(255, 255, 255, .95), inset 0 -1.5px 3px rgba(0, 0, 0, .1),
    inset 3px 0 4px -2px rgba(255, 255, 255, .7), inset -3px 0 4px -2px rgba(255, 255, 255, .7), 0 0 0 .5px rgba(0, 0, 0, .08), 0 6px 16px rgba(0, 0, 0, .1); }
.gs-bubble { position: absolute; bottom: calc(100% + 12px); left: 50%; translate: -50% 0; padding: 4px 10px; border-radius: 8px; background: var(--ink); color: #fff; font-size: var(--fs-small); font-weight: 600; letter-spacing: -.016em; white-space: nowrap; font-variant-numeric: tabular-nums; pointer-events: none; transition: translate .4s var(--spring); }
.gs.is-dragging .gs-bubble { translate: -50% -8px; } /* lifts clear of the swollen knob */
.gs:not(.is-chosen) .gs-bubble { background: #e8e8ed; color: var(--ink-80); font-weight: 500; }
.gs-bubble.is-pop { animation: pop .35s var(--spring); }
@keyframes pop { from { scale: .86; } to { scale: 1; } }
/* Focus ring only for keyboard use, never on a tap or drag. */
.gs:focus-visible.is-kbd .gs-thumb::before { outline: 2px solid var(--focus); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .gs-thumb::before, .gs-bubble { transition-duration: .01s; } }
.gs-ends { display: flex; justify-content: space-between; margin-top: 18px; padding: 0 2px; font-size: var(--fs-small); color: var(--muted); letter-spacing: -.01em; }

/* Quote form: the state field slides away and the country field widens to fill the row */
.field-row--half { transition: grid-template-columns .5s var(--ease), column-gap .5s var(--ease); }
.field-row--half.is-single { grid-template-columns: 1fr 0fr; column-gap: 0; }
.field-row--half > #stateField { min-width: 0; overflow: hidden; transition: opacity .3s ease, transform .5s var(--ease); }
.field-row--half.is-single > #stateField { opacity: 0; transform: translateX(12px); }

/* Photo placeholders, until real photos arrive */
.ph { position: relative; display: grid; place-items: center; align-content: center; gap: 10px; min-height: 260px; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(145deg, #ffffff, #ececf0); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .04); color: var(--muted); text-align: center; }
.ph .icon { width: 40px; height: 40px; color: #aeaeb2; }
.ph b { font-size: var(--fs-body); color: var(--ink); font-weight: 600; letter-spacing: -.022em; }
.ph span { font-size: var(--fs-small); letter-spacing: -.016em; }
.ph-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 20px; }
.ph--tall { min-height: 420px; }
.ph--wide { aspect-ratio: 21 / 9; min-height: 0; max-width: 980px; margin: 40px auto 0; }

/* ---------- The problem: one night, told twice as you scroll ---------- */
.fall { position: relative; height: 380vh; background: var(--canvas); }
.fall__sticky { position: sticky; top: 104px; height: calc(100vh - 104px); height: calc(100svh - 104px); display: grid; align-content: center; justify-items: center; gap: 18px; padding: 0 var(--gutter); }
.fall__frame { position: relative; width: min(100%, 1000px); aspect-ratio: 16 / 9; max-height: calc(100svh - 230px); border-radius: 28px; overflow: hidden; background: #0b0b0d; }
.fall__frame svg { display: block; width: 100%; height: 100%; }
.fall__caption { min-height: 2.6em; margin: 0; max-width: 32em; text-align: center; font-size: var(--fs-callout); font-weight: 600; letter-spacing: .004em; line-height: 1.25; transition: opacity .25s; }
.fall__caption.is-swap { opacity: 0; translate: 0 4px; }
.fall__bar { width: min(100%, 1000px); height: 3px; border-radius: 3px; background: #ececf0; overflow: hidden; }
.fall__bar i { display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: var(--blue); }

@media (max-width: 600px) {
  .ph-grid { grid-template-columns: 1fr; }
  .ph--tall { min-height: 260px; }
  .fall { height: 340vh; }
  .fall__frame { border-radius: 20px; aspect-ratio: 4 / 3; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .feature-grid, .feature-grid--2, .quote-grid { grid-template-columns: 1fr; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(270px, auto); grid-template-areas: "c c" "a b" "d d" "e f"; }
  .t.d { min-height: 460px; }
  .quote-grid { gap: 0; row-gap: 32px; }
  .quote-info, .quote-card, .quote-contact { grid-column: 1; grid-row: auto; }
  .quote-contact { order: 2; }
  .quote-contact .contact { margin-top: 0; }
  .tonight { height: 300vh; }
  .tonight__sticky { align-items: stretch; padding-bottom: 20px; }
  .tonight__grid { grid-template-columns: 1fr; grid-template-rows: auto 1fr; gap: 16px; height: 100%; padding-top: 16px; }
  .tonight__copy h2 { margin-bottom: 8px; font-size: var(--fs-title); letter-spacing: .009em; line-height: 1.17; }
  .tonight__list { margin-top: 8px; }
  .tonight__list span { min-height: 0; }
  .js .tonight__list li:not(.is-active) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .tonight__frame { align-self: end; aspect-ratio: auto; height: 42vh; height: 42svh; }
  .reel__frame { --t: 36vh; --s: 5vw; --b: 12vh; }
}
@media (max-width: 880px) and (max-height: 720px) { .tonight__frame { height: 36vh; height: 36svh; } }
@media (max-width: 600px) {
  :root { --gutter: 20px; }
  body { font-size: var(--fs-body); }

  .feature { padding: 28px 24px; }
  .quote-card { padding: 28px 20px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .page-hero { padding-block: 56px 40px; }
  :root { --section: 56px; }
  .pager { grid-template-columns: 1fr; }
  .pager__link--next { text-align: left; }
  .footer__cols { grid-template-columns: 1fr; gap: 16px; }
  .lnav__title { font-size: var(--fs-body); }
  .bento { gap: 12px; grid-auto-rows: minmax(240px, auto); }
  .t__art { padding: 16px 14px 0; }
  .t__text { padding: 12px 14px 16px; }
  .t--big .t__text { padding: 18px 56px 20px 20px; }
  .art-big { font-size: 4.5rem; } .art-time { font-size: 3rem; }
  .art-chips span { padding: 5px 10px; font-size: var(--fs-small); }
  .why-card { width: 270px; }
}

/* ---------- Reduced transparency, increased contrast ---------- */
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .gnav, .lnav { background: var(--canvas); backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: 0 1px 0 var(--hairline); }
  .ph-tag { background: #1d1d1f; backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  :root { --muted: #424245; }
  .t, .why-card, .quote-card { box-shadow: 0 0 0 1px #86868b; }
}

/* ---------- Reduced motion: same information, no movement ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* Phones: the location questions stack, so the state field folds away upward instead of sideways */
@media (max-width: 600px) {
  .field-row--half, .field-row--half.is-single { grid-template-columns: 1fr; }
  .field-row--half > #stateField { max-height: 110px; transition: max-height .5s var(--ease), opacity .3s ease, margin .5s var(--ease); }
  .field-row--half.is-single > #stateField { max-height: 0; margin-bottom: 0; transform: translateY(-8px); }
}

/* ---------- Home: the opening. Words on the left; on the right, a dark nightstand that answers when you ask ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 64px; padding-block: 72px 80px; }
.hero__lede { max-width: 30em; margin: 0 0 28px; font-size: var(--fs-lead); line-height: 1.38; color: var(--ink-80); letter-spacing: .011em; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.hero__by { margin: 28px 0 0; font-size: var(--fs-small); color: var(--muted); }
.hero__by img { display: inline-block; height: 1.5em; width: auto; margin: 0 .15em; vertical-align: -.42em; }
.hero__stage { display: grid; justify-items: center; gap: 18px; }
.hero .lamp-panel { width: 100%; max-width: 480px; height: auto; aspect-ratio: 5 / 4; transition: background-color .8s var(--ease), box-shadow .9s var(--ease); }
.hero .lamp-panel .lamp { width: 44%; }
/* When it answers, the glow spills past the frame onto the page. */
.lamp-panel.is-lit { background: #1f160b; box-shadow: 0 30px 90px -20px rgba(255, 196, 110, .55); }
.say-bubble { position: absolute; z-index: 2; top: 9%; left: 50%; display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 8px 16px; border-radius: 980px; background: #fff; color: var(--ink); font-size: var(--fs-body); font-weight: 600; white-space: nowrap;
  translate: -50% 0; opacity: 0; scale: .92; transition: opacity .22s var(--ease), scale .22s var(--ease); pointer-events: none; }
.say-bubble.is-on { opacity: 1; scale: 1; }
.say { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px 0 18px; border: 0; border-radius: 980px; background: var(--canvas); box-shadow: var(--shadow-card); color: var(--ink); font: 600 var(--fs-body)/1 var(--font); letter-spacing: -.022em; cursor: pointer;
  transition: transform .4s var(--spring), background-color .2s, box-shadow .2s var(--ease-hover); }
.say .icon { width: 22px; height: 22px; color: var(--blue); }
@media (hover: hover) { .say:hover { box-shadow: var(--shadow-card-hover); } }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 32px; padding-block: 40px 56px; }
  .hero .lamp-panel { max-width: 420px; }
}
.say-note { margin: -6px 0 0; font-size: var(--fs-small); color: var(--muted); text-align: center; }

/* ---------- Home: the ending. The lamp is on, and you can ask for one ---------- */
.ask { position: relative; overflow: hidden; padding: var(--section) 0; text-align: center; background: var(--lamp-room); }
.ask::before { content: ""; position: absolute; left: 50%; top: 40px; width: 640px; height: 640px; translate: -50% -38%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 214, 150, .7), rgba(255, 214, 150, 0)); pointer-events: none; }
.ask__inner { position: relative; }
.ask__lamp { margin: 0 auto 28px; }
.ask p { max-width: 30em; margin: 0 auto 24px; font-size: var(--fs-callout); color: var(--ink-80); }
.ask .ask__survey { margin: 28px auto 0; font-size: var(--fs-small); color: var(--ink-80); }
.ask__survey a { color: var(--link); }

/* ---------- Merged sections ---------- */
.stat-hero__title { margin-bottom: 8px; }
.team .lede { max-width: 34em; margin: 0 auto; font-size: var(--fs-lead); line-height: 1.38; letter-spacing: .011em; color: var(--ink-80); }

/* Where you are in the night: one dot per step, the current one in blue. */
.tonight__dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; grid-column: 2; }
.tonight__dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--hairline); transition: background-color .2s; }
.tonight__dots i.is-on { background: var(--blue); }
@media (max-width: 900px) { .tonight__dots { grid-column: 1; margin-top: 0; } }
.fall__caption { transition-property: opacity, translate; }

/* ---------- Still versions, when the device asks for less motion ---------- */
.is-still .reel, .is-still .tonight, .fall.is-still { height: auto; }
.is-still .reel__sticky, .is-still .tonight__sticky, .fall.is-still .fall__sticky { position: relative; top: 0; height: auto; }
.is-still .reel__sticky { height: 80vh; }
.is-still .tonight__sticky { padding-block: var(--section); }
.is-still .tonight__frame { height: auto; aspect-ratio: 4 / 3; }
.is-still .tonight__list li span { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; min-height: 0; }
.is-still .tonight__list li { position: static !important; width: auto !important; height: auto !important; overflow: visible !important; clip: auto !important; white-space: normal !important; }
.is-still .tonight__dots { display: none; }
.fall.is-still .fall__sticky { padding-block: var(--section); }
.fall.is-still .fall__caption, .fall.is-still .fall__bar { display: none; }
.fall__still-cap { margin: 0 0 24px; font-size: var(--fs-callout); font-weight: 600; text-align: center; }
@media (prefers-reduced-motion: reduce) { .reveal--zoom { transform: none !important; } }

/* Compare on phones: one card per alternative, each set against Guardian Light, instead of a table that hides them. */
.compare-cards { display: none; list-style: none; margin: 0; padding: 0; gap: 16px; }
.compare-card { padding: 24px 20px; border-radius: var(--radius); background: var(--canvas); }
.compare-card h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: var(--fs-callout); }
.compare-card h3 .icon { width: 26px; height: 26px; color: var(--blue); }
.compare-card dl { display: grid; grid-template-columns: minmax(0, 1fr) 5.75em 5.75em; column-gap: 0; margin: 0; }
.compare-card dd, .compare-card .cc-head { padding-left: 12px; }
.compare-card .cc-head { align-self: end; font-size: var(--fs-small); line-height: 1.25; color: var(--muted); padding-bottom: 8px; text-align: right; }
.compare-card dt, .compare-card dd { margin: 0; padding: 10px 0; border-top: 1px solid var(--hairline); font-size: var(--fs-small); }
.compare-card dd { text-align: right; }
@media (max-width: 760px) {
  .compare-cards { display: grid; }
  .compare-cards + .table-wrap, .compare-cards ~ .table-hint, .has-cards .table-wrap, .has-cards .table-hint { display: none; }
}

/* Home: the Explore heading, with the survey beside it for people already using a lamp */
.explore-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 24px; margin-bottom: 32px; }
.explore-head .duo { margin: 0; }
.explore-head .btn { flex-shrink: 0; }
.btn .icon { width: 18px; height: 18px; stroke-width: 2; }

/* A second kind of primary button: ink, for the survey, so it never competes with the blue "Get in touch" */
.btn--ink { background: var(--ink); color: #fff; }
@media (hover: hover) { .btn--ink:hover { background: #000; } }
.explore-head .btn--ink { min-height: 52px; padding: 0 26px; font-size: var(--fs-body); font-weight: 600; box-shadow: 0 6px 18px rgba(0, 0, 0, .16); }
.explore-head .btn--ink .icon { width: 20px; height: 20px; }
@media (max-width: 600px) { .explore-head .btn--ink { width: 100%; } }

/* "Skip the story": bottom right while you're inside a long scrolling story */
.skip-scene { position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 45; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 0; border-radius: 980px;
  background: rgba(29, 29, 31, .86); -webkit-backdrop-filter: blur(16px) saturate(180%); backdrop-filter: blur(16px) saturate(180%); color: #fff; font: 600 var(--fs-small)/1 var(--font); cursor: pointer; box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
  opacity: 0; translate: 0 12px; pointer-events: none; transition: opacity .25s var(--ease), translate .35s var(--ease), transform .38s cubic-bezier(.3, 1.3, .6, 1); }
.skip-scene.is-shown { opacity: 1; translate: 0 0; pointer-events: auto; }
.skip-scene svg { width: 16px; height: 16px; }
@media (hover: hover) { .skip-scene:hover { background: #000; } }
@media (prefers-reduced-transparency: reduce) { .skip-scene { background: #1d1d1f; -webkit-backdrop-filter: none; backdrop-filter: none; } }

/* On phones a long press would select the text or open a link menu; on everything that can be held
   (the same list as PRESSABLE in main.js) it just holds. */
:is(button, .btn, [role=button], .say, .paddle, .gl-choice, .gl-opt > label, .t, .why-card, .pager__link, .skip-scene, .try, .pw-toggle, .menu-btn) { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }

/* ---------- Home demo: two ways to ask, a moving sound wave, and light that fills the page ---------- */
.say-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.wave { display: inline-flex; align-items: center; gap: 2.5px; height: 20px; }
.wave i { display: block; width: 3px; height: 100%; border-radius: 2px; background: var(--blue); transform-origin: 50% 50%; transition: transform .2s var(--ease); }
.wave i:nth-child(1), .wave i:nth-child(5) { transform: scaleY(.35); }
.wave i:nth-child(2), .wave i:nth-child(4) { transform: scaleY(.62); }
.wave i:nth-child(3) { transform: scaleY(.9); }
.say.is-speaking .wave i { transition: none; }
.say--rainbow .wave i:nth-child(1) { background: #B0DDE4; } .say--rainbow .wave i:nth-child(2) { background: #6fb7c9; }
.say--rainbow .wave i:nth-child(3) { background: #DF4C73; } .say--rainbow .wave i:nth-child(4) { background: #8a5bb8; } .say--rainbow .wave i:nth-child(5) { background: #286FB4; }
/* The light fills the page: a warm wash over everything, strongest near the lamp. */
.page-glow { position: fixed; inset: 0; z-index: 70; pointer-events: none; opacity: 0; mix-blend-mode: multiply; transition: opacity 1.2s cubic-bezier(.45, 0, .25, 1);
  background: radial-gradient(circle at var(--gx, 72%) var(--gy, 32%), rgba(255, 200, 120, .6), rgba(255, 222, 165, .34) 40vmax, rgba(255, 232, 195, .22) 90vmax);
  transition: opacity .6s var(--ease); }
html.lamp-lit .page-glow--warm { opacity: var(--lvl, 1); }
html.lamp-rainbow .page-glow--rgb { opacity: 1; }
.page-glow--rgb { background: radial-gradient(circle at var(--gx, 72%) var(--gy, 32%), rgba(255, 70, 90, .62), rgba(255, 120, 140, .38) 30vmax, rgba(255, 170, 180, .22) 90vmax); animation: hue-cycle 6s linear infinite; }
/* Rainbow: the lamp, its glow and the page cycle through the colors, like the lamp's RGB ring. */
@keyframes hue-cycle { to { filter: hue-rotate(360deg); } }

.lamp-panel.is-rainbow { background-color: #140b12; box-shadow: none; }
@media (prefers-reduced-transparency: reduce) { .page-glow { mix-blend-mode: normal; background: rgba(255, 220, 160, .18); } }

/* ---------- Questions and answers ---------- */
.faq__list { max-width: 760px; margin: 32px auto 0; border-top: 1px solid var(--hairline); }
.faq__item { border-bottom: 1px solid var(--hairline); }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 16px 4px; font-size: var(--fs-callout); font-weight: 600; cursor: pointer; list-style: none; transition: color .2s var(--ease-hover); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: ""; flex: 0 0 auto; width: 10px; height: 10px; margin-right: 6px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); rotate: 45deg; translate: 0 -3px; transition: rotate .3s var(--ease), translate .3s var(--ease); }
.faq__item[open] summary::after { rotate: -135deg; translate: 0 3px; }
.faq__item summary:hover { color: var(--link); }
.faq__item p { max-width: 58ch; margin: 0 4px 20px; font-size: var(--fs-body); line-height: 1.47; color: var(--ink-80); }
.faq__more { margin-top: 28px; }

/* ---------- Privacy policy and terms: a calm reading page ---------- */
.legal { max-width: 760px; padding-block: var(--section); }
.legal__date { margin: 0 0 28px; color: var(--muted); }
.legal h2 { margin: 40px 0 12px; font-size: var(--fs-title); letter-spacing: .009em; line-height: 1.17; }
.legal h3 { margin: 24px 0 8px; font-size: var(--fs-callout); }
.legal p, .legal li { max-width: 68ch; font-size: var(--fs-body); line-height: 1.47; color: var(--ink-80); }
/* The summary under the title reads as a lede; two classes, so it beats ".legal p" above */
.legal .legal__lede { font-size: var(--fs-lead); line-height: 1.38; letter-spacing: .011em; color: var(--ink-80); }
.legal ul { padding-left: 1.2em; }
.legal li + li { margin-top: 6px; }
.footer__base { flex-wrap: wrap; }
.footer__legal { display: flex; gap: 20px; margin-left: auto !important; }
.footer__legal a { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 600px) { .footer__legal { margin-left: 0 !important; } }

/* ---------- Page not found ---------- */
.notfound { max-width: 640px; padding-block: 96px; text-align: center; }
.notfound__lamp { margin: 0 auto 32px; }
.notfound p { font-size: var(--fs-callout); color: var(--ink-80); }
.notfound__links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 28px; margin-top: 28px; }

/* Answers ease in as they open, instead of appearing all at once. */
.faq__item[open] p { animation: faq-in .3s var(--ease); }
@keyframes faq-in { from { opacity: 0; translate: 0 -6px; } }

/* The menu never shifts between pages: every link reserves the width of its bold version,
   so the current page can be bold without nudging its neighbours. */
.gnav__menu a { display: inline-flex; flex-direction: column; align-items: center; gap: 0; }
.gnav__menu a::after { content: attr(data-label); height: 0; overflow: hidden; visibility: hidden; font-weight: 600; pointer-events: none; user-select: none; speak: never; }
@media (max-width: 1023px) { .gnav__menu a { align-items: flex-start; } }

/* Hold ring: after a long press is let go, one thin blue outline grows away from the button's edge and fades. */
.hold-ring { position: fixed; z-index: 80; pointer-events: none; outline: 2px solid rgba(0, 113, 227, .55); outline-offset: 0; animation: hold-ring .75s cubic-bezier(.2, .7, .3, 1) both; }
.hold-ring--soft { animation-name: hold-ring-soft; }
@keyframes hold-ring { from { outline-offset: 0; opacity: 1; } to { outline-offset: 16px; opacity: 0; } }
@keyframes hold-ring-soft { from { outline-offset: 0; opacity: .8; } to { outline-offset: 10px; opacity: 0; } }

/* Typing: the field's own text is hidden while the copy above it animates the new letters. */
.type-mirror { position: absolute; z-index: 1; display: none; overflow: hidden; margin: 0; border-style: solid; border-color: transparent; background: transparent; color: var(--ink); pointer-events: none; overflow-wrap: break-word; }
.type-mirror.is-on { display: block; }
.type-mirror > div { will-change: transform; }
.is-type-fx { color: transparent !important; -webkit-text-fill-color: transparent; caret-color: var(--ink); }
.is-type-fx::placeholder { color: #86868b; -webkit-text-fill-color: #86868b; }
/* Each new letter rises a little, sharpens and settles from blue to ink. */
.type-mirror .ch-in { position: relative; animation: ch-in .36s cubic-bezier(.22, 1, .36, 1) both; }
@keyframes ch-in { 0% { opacity: 0; top: .2em; filter: blur(2px); color: var(--blue); } 45% { opacity: 1; filter: blur(0); } 100% { opacity: 1; top: 0; filter: blur(0); color: var(--ink); } }
@media (prefers-reduced-motion: reduce) { .hold-ring { display: none; } }
.type-mirror.is-line.is-on { display: flex; align-items: center; }

/* ---------- The lamp (site-builder/lamp.js): one drawing everywhere ----------
   Unlit: the amber shade is dull and the ring's LEDs are dark. .is-on: the shade glows (strength --lvl).
   .is-rainbow: the ring's LEDs cycle through every color, each a step behind the one before. */
.gl-lamp { display: block; width: 100%; height: auto; overflow: visible; }
.gl-lamp .lamp-lit, .gl-lamp .lamp-glow, .gl-lamp .lamp-bloom { opacity: 0; transition: opacity .9s cubic-bezier(.45, 0, .25, 1); }
:is(.gl-lamp.is-on, .is-on > .gl-lamp) :is(.lamp-lit, .lamp-glow) { opacity: var(--lvl, 1); transition: opacity 1.2s cubic-bezier(.45, 0, .25, 1); }
/* Above half brightness a bloom builds around the shade, so the top of the slider is clearly brighter. */
:is(.gl-lamp.is-on, .is-on > .gl-lamp) .lamp-bloom { opacity: calc((var(--lvl, 1) - .45) * 1.1); transition: opacity 1.4s cubic-bezier(.45, 0, .25, 1); }
.gl-lamp .lamp-rgb { opacity: 0; transition: opacity 1.1s cubic-bezier(.45, 0, .25, 1); }
:is(.is-rainbow .gl-lamp, .gl-lamp.is-rainbow) .lamp-rgb { opacity: 1; }
.gl-lamp .lamp-rgb circle { animation: led-hue 4s linear infinite; }
.gl-lamp .lamp-rgb--halo, .gl-lamp .lamp-rgb--cast { opacity: 0; transition: opacity 1.1s cubic-bezier(.45, 0, .25, 1); }
:is(.is-rainbow .gl-lamp, .gl-lamp.is-rainbow) .lamp-rgb--halo { opacity: .9; }
:is(.is-rainbow .gl-lamp, .gl-lamp.is-rainbow) .lamp-rgb--cast { opacity: .35; }
@keyframes led-hue { 0%, 100% { fill: #ff3b30; } 17% { fill: #ffcc00; } 33% { fill: #34c759; } 50% { fill: #32ade6; } 67% { fill: #0a84ff; } 83% { fill: #bf5af2; } }
/* Home demo: the lamp stands in the dark frame */
.hero .lamp-panel .lamp-art { height: 86%; aspect-ratio: 240 / 430; margin-top: 8%; }
.hero .lamp-panel .lamp-art .gl-lamp { height: 100%; width: auto; }
.lamp-panel.is-rainbow { background-color: #120c12; }
/* Brightness slider in the demo */
.bright { display: grid; gap: 2px; width: min(100%, 340px); margin-top: 4px; }
.bright__label { font-size: var(--fs-small); font-weight: 600; text-align: center; }
.gs--bright { padding-top: 42px; }
/* Small lamps: tiles, endings, success, page not found */
.tile-lamp { width: 128px; margin-top: 8px; }
@media (max-width: 600px) { .tile-lamp { width: 96px; } }
.small-lamp { width: 64px; }
.ask__lamp { width: 72px; margin: 0 auto 28px; }
.success__lamp.small-lamp { width: 64px; margin: 0 auto 24px; }
.notfound__lamp.small-lamp { width: 72px; }
/* In the drawn bedrooms the lamp stands on the nightstand */
.scene__lamp { left: 58.5% !important; bottom: 36% !important; width: 11% !important; height: auto !important; }
.mini-scene .scene__lamp :is(.lamp-lit, .lamp-glow) { opacity: 1; }
.tonight__frame[data-step="3"] .scene__lamp :is(.lamp-lit, .lamp-glow) { opacity: 1; }
.tonight__frame[data-step="0"] .scene__lamp :is(.lamp-lit, .lamp-glow) { opacity: .35; }
.ph-video__lamp { width: 15vmin !important; height: auto !important; }
/* The reel: dark at first; as you scroll the lamp warms up (from a quarter of the way), then its ring turns rainbow. */
.ph-video__lamp { --on: clamp(0, (var(--p, 0) - .25) * 2.9, 1); --rgb: clamp(0, (var(--p, 0) - .62) * 4, 1); }
.ph-video__lamp :is(.lamp-lit, .lamp-glow) { opacity: var(--on); transition: none; }
.ph-video__lamp .lamp-bloom { opacity: calc(var(--on) * .55); transition: none; }
.ph-video__lamp .lamp-rgb { opacity: var(--rgb); transition: none; }
.ph-video__lamp .lamp-rgb--halo { opacity: calc(var(--rgb) * .9); }
.ph-video__lamp .lamp-rgb--cast { opacity: calc(var(--rgb) * .35); }
.ph-video__lamp .lamp-rgb circle { animation: led-hue 4s linear infinite; }
/* The frame sits above the page wash, so the lamp keeps its own colors while the page around it glows. */
.hero .lamp-panel { z-index: 75; }
.hero .say-bubble { z-index: 2; }

/* The bedroom picture (Our story): fills its frame without stretching; the lamp stands on the nightstand */
.mini-scene .bedroom { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
/* The night story's room light comes from the lamp's own shade, wherever the lamp is drawn */
.scene__lamp { z-index: 1; }
.scene__lamp::before { content: ""; position: absolute; z-index: -1; left: 66.7%; top: 58.6%; width: 1000%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 205, 135, .62), rgba(255, 190, 110, .24) 30%, rgba(247, 166, 80, .07) 62%, rgba(247, 166, 80, 0)); opacity: 0; transition: opacity 1.1s cubic-bezier(.3, 0, .2, 1); }
.tonight__frame[data-step="3"] .scene__lamp::before { opacity: 1; }
.tonight__frame[data-step="0"] .scene__lamp::before { opacity: .3; }
.tonight__frame .scene__light { display: none; }
.ph-video__lamp::before { content: ""; position: absolute; z-index: -1; left: 66.7%; top: 58.6%; width: 900%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 210, 140, .6), rgba(255, 200, 130, .2) 35%, rgba(255, 190, 120, .06) 65%, rgba(255, 190, 120, 0)); opacity: var(--on); }
.ph-video__lamp { z-index: 1; }
.ph-video__glow { display: none; }

/* Music: soft notes drift up from the lamp's box while it plays */
.music-notes { position: absolute; left: 0; right: 0; bottom: 14%; height: 70%; pointer-events: none; overflow: hidden; }
.music-notes span { position: absolute; bottom: 0; color: #FFE1A8; font-size: var(--fs-callout); opacity: 0; animation: note-rise 3s ease-out forwards; }
@keyframes note-rise { 0% { opacity: 0; translate: 0 0; } 15% { opacity: .9; } 100% { opacity: 0; translate: 14px -150px; } }
.say--music .wave i:nth-child(odd) { background: #DF4C73; }
.say-row { max-width: 560px; }

/* Small tiles: even padding above and below, so the big number sits in the middle of its picture area */
.t:not(.t--big) .t__art { padding-bottom: 20px; }
@media (max-width: 600px) { .t:not(.t--big) .t__art { padding-bottom: 16px; } }

.hero .lamp-panel { transition: background-color 1.2s cubic-bezier(.45, 0, .25, 1), box-shadow 1.2s cubic-bezier(.45, 0, .25, 1); }
/* Music notes rise from anywhere in the dark frame, each its own colour */
.music-notes { inset: 0 !important; bottom: auto !important; height: 100% !important; }
.music-notes span { top: auto; bottom: auto; animation-name: note-drift; text-shadow: 0 0 10px currentColor; }
@keyframes note-drift { 0% { opacity: 0; translate: 0 10px; scale: .7; } 18% { opacity: .95; scale: 1; } 100% { opacity: 0; translate: var(--dx, 0) var(--dy, -150px); scale: 1.05; } }

/* How it works night story: The problem's bedroom, lit step by step */
.scene--svg { background: #0b0b0d; }
.scene--svg::before, .scene--svg::after { display: none; }
.scene .bedroom { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.scene--svg .br-room, .scene--svg .br-glow { transition: opacity 1.2s cubic-bezier(.45, 0, .25, 1); }
.scene--svg .br-moon { transition: opacity 1.2s ease; }
.tonight__frame[data-step="3"] .br-room { opacity: .55; }
.tonight__frame[data-step="3"] .br-glow { opacity: 1; }
.tonight__frame[data-step="3"] .br-moon { opacity: 0; }
.tonight__frame[data-step="0"] .br-glow { opacity: .22; }
.tonight__frame[data-step="4"] .br-glow { opacity: .1; }
.tonight__frame[data-step="3"] .gl-lamp :is(.lamp-lit, .lamp-glow) { opacity: 1; transition: opacity 1.2s cubic-bezier(.45, 0, .25, 1); }
.tonight__frame[data-step="3"] .gl-lamp .lamp-bloom { opacity: .55; }
.tonight__frame[data-step="0"] .gl-lamp :is(.lamp-lit, .lamp-glow) { opacity: .3; transition: opacity 1.2s cubic-bezier(.45, 0, .25, 1); }
.br-bubble { opacity: 0; transition: opacity .3s var(--ease), translate .3s var(--ease); translate: 0 6px; }
.br-bubble.is-on { opacity: 1; translate: 0 0; }
.br-notes { opacity: 0; transition: opacity .6s ease; }
.tonight__frame[data-step="0"] .br-notes { opacity: 1; }
.br-notes text { transform-box: fill-box; animation: note 3.2s ease-in-out infinite; }
.br-notes text:nth-child(2) { animation-delay: -1.1s; } .br-notes text:nth-child(3) { animation-delay: -2.2s; }

/* The sound-wave bars under the 13%: they move, like music playing */
.music-bars i { transform-origin: 50% 50%; animation: bars 1.6s ease-in-out infinite alternate; }
.music-bars i:nth-child(3n) { animation-duration: 1.25s; } .music-bars i:nth-child(3n+1) { animation-duration: 1.9s; }
.music-bars i:nth-child(4n) { animation-delay: -.5s; } .music-bars i:nth-child(4n+1) { animation-delay: -1.1s; } .music-bars i:nth-child(4n+2) { animation-delay: -.2s; }
.music-bars i:nth-child(5n) { animation-delay: -.8s; }
@keyframes bars { from { transform: scaleY(.4); } to { transform: scaleY(1); } }


/* ---------- Footnotes, like Apple's: a small underlined number after the claim, the sources above the footer ---------- */
sup.fn { position: relative; top: -.15em; margin-left: 1px; font-size: min(.7em, 13px); letter-spacing: 0; line-height: 0; vertical-align: super; font-weight: 400; font-variant-numeric: tabular-nums; }
sup.fn a { position: relative; color: inherit; text-decoration: underline; text-underline-offset: .12em; }
sup.fn a::after { content: ""; position: absolute; inset: -15px -18px; }
sup.fn a:hover { color: var(--link); }
.footnotes { padding: 28px 0 8px; background: var(--parchment); border-top: 1px solid var(--hairline); }
.footnotes ol { max-width: 72ch; margin: 0; padding-left: 1.4em; display: grid; gap: 10px; font-size: var(--fs-small); line-height: 1.43; color: var(--muted); }
.footnotes li { padding-left: 4px; scroll-margin-top: 120px; }
.footnotes li:target { color: var(--ink); }
.footnotes a { color: var(--ink-80); text-decoration: underline; text-underline-offset: .15em; }
.footnotes .fn-back { position: relative; margin-left: 6px; color: var(--link); text-decoration: none; white-space: nowrap; }
/* A bigger invisible hit area (at least 44 x 44), so Back is easy to tap; it grows mostly downward, away from the links above it */
.footnotes .fn-back::after { content: ""; position: absolute; left: 50%; top: -8px; width: max(100% + 16px, 44px); height: 44px; translate: -50% 0; }
.footnotes .fn-back:hover { text-decoration: underline; }
.footnotes + .footer { border-top: 0; }
:target > sup.fn, sup.fn a:target { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
/* Why amber: three small light swatches */
.swatch { display: block; width: 40px; height: 40px; margin-bottom: 18px; border-radius: 50%; }
.swatch--amber { background: radial-gradient(circle at 40% 35%, #FFE3A6, #F5A447 60%, #D9822B); box-shadow: 0 0 22px rgba(245, 164, 71, .55); }
.swatch--blue { background: radial-gradient(circle at 40% 35%, #CFE6FF, #4A9BFF 60%, #0A63D6); box-shadow: 0 0 22px rgba(74, 155, 255, .45); }
.swatch--dim { background: radial-gradient(circle at 40% 35%, #F7DDB0, #D8A869 60%, #A87739); opacity: .7; }

/* ---------- Small details ---------- */
/* Browser surfaces in the site's colours: selected text, the typing caret, native controls, scrollbars */
::selection { background: rgba(0, 113, 227, .18); color: inherit; }
:root { accent-color: var(--blue); scrollbar-color: #c7c7cc transparent; }
input, textarea, select, .is-type-fx { caret-color: var(--blue); }
/* Proper kerning and ligatures everywhere; quote marks hang outside the text edge where supported */
body { font-kerning: normal; font-feature-settings: "kern" 1, "liga" 1; hanging-punctuation: first; }
h1, h2, h3, .fact__line, .words { text-rendering: optimizeLegibility; }
/* Same icon size in every placeholder */
.ph .icon { flex: none; width: 40px; height: 40px; min-width: 40px; }
/* Jumping to a footnote or section lands below the sticky menu (and the topic bar on topic pages) */
:root:has(.lnav) { scroll-padding-top: 120px; }

/* ================================================================
   Light, then room (home demo)
   The lamp answers first; the room around it follows a moment later. Turning off, the lamp
   goes first and the room dims after it. Every glow uses the same smooth falloff (site-builder/glow.js).
   ================================================================ */
@property --ring { syntax: "<color>"; inherits: true; initial-value: #0a84ff; }
html { transition: --ring .8s ease; }
/* The lamp itself: lights up right away, with a quick start and a soft finish */
.gl-lamp .lamp-lit, .gl-lamp .lamp-glow, .gl-lamp .lamp-bloom { transition: opacity .7s cubic-bezier(.4, 0, .2, 1); }
:is(.gl-lamp.is-on, .is-on > .gl-lamp) :is(.lamp-lit, .lamp-glow) { transition: opacity .9s cubic-bezier(.16, .8, .3, 1); }
:is(.gl-lamp.is-on, .is-on > .gl-lamp) .lamp-bloom { transition: opacity 1.3s cubic-bezier(.16, .8, .3, 1) .1s; }
.gl-lamp .lamp-rgb, .gl-lamp .lamp-rgb--halo, .gl-lamp .lamp-rgb--cast { transition: opacity .7s cubic-bezier(.4, 0, .2, 1); }
:is(.is-rainbow .gl-lamp, .gl-lamp.is-rainbow) :is(.lamp-rgb, .lamp-rgb--halo, .lamp-rgb--cast) { transition: opacity .9s cubic-bezier(.16, .8, .3, 1); }
/* One color instead of the rainbow: every LED takes the color you said */
.is-solid .gl-lamp .lamp-rgb circle { animation: none; fill: var(--ring); }
html.ring-swap .hero .gl-lamp :is(.lamp-rgb, .lamp-rgb--halo, .lamp-rgb--cast) { opacity: .12; transition: opacity .28s ease; }
/* The frame around the lamp is the room: it warms after the lamp is lit */
.hero .lamp-panel { transition: background-color .9s cubic-bezier(.45, 0, .2, 1), box-shadow .9s cubic-bezier(.45, 0, .2, 1); }
.hero .lamp-panel:is(.is-lit, .is-rainbow) { transition: background-color 1.5s cubic-bezier(.45, 0, .2, 1) .35s, box-shadow 1.5s cubic-bezier(.45, 0, .2, 1) .35s; }
.lamp-panel.is-solid { background-color: color-mix(in srgb, var(--ring) 12%, #0b0b0d); }
.lamp-panel.is-solid.is-lit { background-color: color-mix(in srgb, var(--ring) 8%, #1f160b); }
/* The page around it: the same order, a little later and slower */
.page-glow { background: none; animation: none; opacity: 0; transition: opacity 1s cubic-bezier(.45, 0, .2, 1) .1s; }
.page-glow::before { content: ""; position: absolute; inset: 0; transition: opacity .45s ease; }
.page-glow--warm::before { opacity: var(--lvl, 1); background: radial-gradient(circle at var(--gx, 72%) var(--gy, 32%), rgba(255, 200, 120, 0.600) 0vmax, rgba(255, 201, 123, 0.596) 3.56vmax, rgba(255, 203, 127, 0.575) 8.76vmax, rgba(255, 205, 132, 0.534) 14.84vmax, rgba(255, 208, 138, 0.476) 21.58vmax, rgba(255, 210, 144, 0.414) 28.84vmax, rgba(255, 213, 150, 0.357) 36.55vmax, rgba(255, 216, 157, 0.311) 44.66vmax, rgba(255, 219, 164, 0.276) 53.13vmax, rgba(255, 222, 172, 0.248) 61.92vmax, rgba(255, 225, 179, 0.227) 71.01vmax, rgba(255, 229, 187, 0.211) 80.37vmax, rgba(255, 232, 195, 0.200) 90vmax); }
.page-glow--rgb::before { background: radial-gradient(circle at var(--gx, 72%) var(--gy, 32%), rgba(255, 70, 90, 0.620) 0vmax, rgba(255, 74, 94, 0.615) 3.56vmax, rgba(255, 80, 99, 0.594) 8.76vmax, rgba(255, 86, 105, 0.550) 14.84vmax, rgba(255, 94, 112, 0.490) 21.58vmax, rgba(255, 102, 119, 0.425) 28.84vmax, rgba(255, 111, 127, 0.365) 36.55vmax, rgba(255, 120, 135, 0.317) 44.66vmax, rgba(255, 129, 143, 0.279) 53.13vmax, rgba(255, 139, 152, 0.251) 61.92vmax, rgba(255, 149, 161, 0.228) 71.01vmax, rgba(255, 159, 170, 0.212) 80.37vmax, rgba(255, 170, 180, 0.200) 90vmax); animation: hue-cycle 6s linear infinite; }
html.lamp-solid .page-glow--rgb::before { animation: none; background: radial-gradient(circle at var(--gx, 72%) var(--gy, 32%), color-mix(in srgb, var(--ring) 46%, transparent), color-mix(in srgb, var(--ring) 30%, transparent) 18vmax, color-mix(in srgb, var(--ring) 20%, transparent) 40vmax, color-mix(in srgb, var(--ring) 14%, transparent) 90vmax); }
html.lamp-lit .page-glow--warm, html.lamp-rainbow .page-glow--rgb { opacity: 1; transition: opacity 1.7s cubic-bezier(.45, 0, .2, 1) .45s; }
html.ring-swap .page-glow--rgb { opacity: .3; transition: opacity .28s ease; }
@media (prefers-reduced-transparency: reduce) { .page-glow::before { background: rgba(255, 220, 160, .18) !important; animation: none !important; } }
@media (prefers-reduced-motion: reduce) { .page-glow, .page-glow::before, .hero .lamp-panel, html { transition-duration: .01s !important; transition-delay: 0s !important; } }

/* Smooth falloff for the other glows around a lamp */
.glow::before { background: radial-gradient(closest-side, rgba(255, 196, 110, 0.550) 0%, rgba(255, 196, 110, 0.544) 3.95%, rgba(255, 196, 110, 0.516) 9.74%, rgba(255, 196, 110, 0.459) 16.49%, rgba(255, 196, 110, 0.380) 23.97%, rgba(255, 196, 110, 0.294) 32.04%, rgba(255, 196, 110, 0.216) 40.61%, rgba(255, 196, 110, 0.153) 49.62%, rgba(255, 196, 110, 0.104) 59.03%, rgba(255, 196, 110, 0.066) 68.8%, rgba(255, 196, 110, 0.037) 78.9%, rgba(255, 196, 110, 0.015) 89.3%, rgba(255, 196, 110, 0.000) 100%); }
.ask::before { background: radial-gradient(closest-side, rgba(255, 214, 150, 0.700) 0%, rgba(255, 214, 150, 0.692) 3.95%, rgba(255, 214, 150, 0.656) 9.74%, rgba(255, 214, 150, 0.584) 16.49%, rgba(255, 214, 150, 0.484) 23.97%, rgba(255, 214, 150, 0.375) 32.04%, rgba(255, 214, 150, 0.275) 40.61%, rgba(255, 214, 150, 0.195) 49.62%, rgba(255, 214, 150, 0.132) 59.03%, rgba(255, 214, 150, 0.084) 68.8%, rgba(255, 214, 150, 0.047) 78.9%, rgba(255, 214, 150, 0.020) 89.3%, rgba(255, 214, 150, 0.000) 100%); }
.scene__lamp::before { background: radial-gradient(closest-side, rgba(255, 205, 135, 0.620) 0%, rgba(255, 203, 133, 0.613) 3.95%, rgba(254, 201, 130, 0.581) 9.74%, rgba(254, 199, 126, 0.517) 16.49%, rgba(253, 196, 122, 0.428) 23.97%, rgba(252, 193, 117, 0.332) 32.04%, rgba(252, 189, 113, 0.244) 40.61%, rgba(251, 186, 108, 0.172) 49.62%, rgba(250, 182, 103, 0.117) 59.03%, rgba(249, 178, 97, 0.075) 68.8%, rgba(249, 174, 92, 0.042) 78.9%, rgba(248, 170, 86, 0.017) 89.3%, rgba(247, 166, 80, 0.000) 100%); }
.ph-video__lamp::before { background: radial-gradient(closest-side, rgba(255, 210, 140, 0.600) 0%, rgba(255, 209, 139, 0.594) 3.95%, rgba(255, 208, 138, 0.562) 9.74%, rgba(255, 207, 137, 0.500) 16.49%, rgba(255, 205, 135, 0.414) 23.97%, rgba(255, 204, 134, 0.321) 32.04%, rgba(255, 202, 132, 0.236) 40.61%, rgba(255, 200, 130, 0.167) 49.62%, rgba(255, 198, 128, 0.113) 59.03%, rgba(255, 196, 126, 0.072) 68.8%, rgba(255, 194, 124, 0.040) 78.9%, rgba(255, 192, 122, 0.017) 89.3%, rgba(255, 190, 120, 0.000) 100%); }
.lamp-panel.is-lit { box-shadow: 0 30px 100px -24px rgba(255, 196, 110, .5), 0 12px 40px -18px rgba(255, 196, 110, .35); }

/* ---------- Home demo layout: the lamp with an up-and-down dimmer beside it ---------- */
.hero { padding-block: 48px 20px; row-gap: 8px; }
.hero__stage { gap: 16px; }
.stage-row { display: flex; align-items: stretch; justify-content: center; gap: 12px; width: 100%; max-width: 536px; }
.stage-row .lamp-panel { flex: 1 1 0; width: auto; min-width: 0; max-width: 480px; }
.bright { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 44px; margin: 0; flex: none; }
.bright__icon .icon { display: block; width: 22px; height: 22px; color: var(--muted); }
.bright__val { min-width: 4ch; font-size: var(--fs-caption); font-weight: 600; text-align: center; color: var(--ink-80); font-variant-numeric: tabular-nums; }
.gs--v { flex: 1; width: 44px; padding: 16px 0; display: flex; justify-content: center; }
.gs--v .gs-track { width: 6px; height: 100%; }
.gs--v .gs-fill { top: auto; right: 0; bottom: 0; left: 0; width: auto; height: 0; }
.gs--v .gs-thumb { top: 0; left: 50%; width: 24px; height: 38px; margin: -19px 0 0 -12px; }
.gs--v .gs-thumb::before { transform: scaleY(var(--stretch, 1)); }
.gs--v.is-dragging .gs-thumb::before { scale: 1.55 1.5; }
.say-row { max-width: 520px; }
.say--color .wave i { background: var(--ring, #0a84ff); transition: background-color .6s ease, transform .2s var(--ease); }
.say-note { max-width: 32em; margin-top: -4px; text-wrap: pretty; }
@media (max-width: 900px) { .hero { padding-block: 32px 16px; } .stage-row { max-width: 476px; } }

/* ---------- Scroll to explore: a mouse whose wheel rolls halfway down and back ---------- */
.scroll-hint { grid-column: 1 / -1; justify-self: center; display: inline-flex; align-items: center; gap: 12px; margin: 12px auto 0; padding: 8px 14px; color: var(--muted); font-size: var(--fs-small); font-weight: 600; letter-spacing: -.01em; text-decoration: none !important; }
.page-hero .scroll-hint { display: flex; width: max-content; margin-top: 28px; }
.scroll-hint:hover { color: var(--ink); }
.scroll-hint.is-gone { opacity: 0; translate: 0 8px; pointer-events: none; }
.scroll-hint__mouse { position: relative; flex: none; width: 22px; height: 34px; border: 2px solid currentColor; border-radius: 11px; }
.scroll-hint__mouse i { position: absolute; left: 50%; top: 6px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: currentColor; animation: wheel 1.9s cubic-bezier(.45, 0, .25, 1) infinite; }
@keyframes wheel { 0%, 12% { translate: 0 0; opacity: 1; } 48%, 62% { translate: 0 6px; opacity: .55; } 100% { translate: 0 0; opacity: 1; } }
.scroll-hint__chev { display: none; width: 16px; height: 16px; animation: chev 1.9s cubic-bezier(.45, 0, .25, 1) infinite; }
@keyframes chev { 0%, 12%, 100% { translate: 0 0; } 48%, 62% { translate: 0 4px; } }
@media (hover: none) and (pointer: coarse) { .scroll-hint__mouse { display: none; } .scroll-hint__chev { display: block; } }
@media (prefers-reduced-motion: reduce) { .scroll-hint__mouse i, .scroll-hint__chev, .scroll-hint { animation: none; } }

/* ---------- Section arrows: the same round arrows as the card rows, fixed on the right ---------- */
.stops { position: fixed; right: max(16px, env(safe-area-inset-right)); top: 50%; z-index: 60; display: flex; flex-direction: column; gap: 10px; translate: 0 -50%; opacity: 0; pointer-events: none; transition: opacity .4s var(--ease); }
.stops.is-on { opacity: 1; pointer-events: auto; }
.stops .paddle { background: rgba(232, 232, 237, .78); -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px); box-shadow: 0 0 0 .5px rgba(0, 0, 0, .06), 0 2px 8px rgba(0, 0, 0, .08); }
@media (hover: hover) { .stops .paddle:hover:not(:disabled) { background: rgba(220, 220, 225, .9); } }
@media (max-width: 640px) { .stops { display: none; } }

/* ---------- Prototype timeline (Our story) ---------- */
.tl { list-style: none; margin: 0; }
.tl-card { position: relative; flex: 0 0 auto; width: min(320px, 78vw); padding-top: 34px; scroll-snap-align: start; }
/* The line to the next prototype: grey, then drawn in blue as you reach the card */
.tl-card::before, .tl-card::after { content: ""; position: absolute; top: 9px; left: 22px; right: -20px; height: 2px; border-radius: 2px; background: var(--hairline); }
.tl-card::after { background: var(--blue); transform: scaleX(0); transform-origin: left center; }
.tl-card:last-child::before, .tl-card:last-child::after { display: none; }
.tl-card.is-in::after { transform: scaleX(1); }
.tl-dot { position: absolute; z-index: 1; top: 3px; left: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--parchment); box-shadow: inset 0 0 0 2px var(--hairline); transition: background-color .45s var(--ease), box-shadow .45s var(--ease); }
.tl-card.is-in .tl-dot { background: var(--blue); box-shadow: inset 0 0 0 2px var(--blue), 0 0 0 5px rgba(0, 113, 227, .14); }
.tl-card .ph { min-height: 0; aspect-ratio: 4 / 3; background: var(--canvas); }
.tl-step { margin: 18px 0 4px; font-size: var(--fs-small); font-weight: 600; color: var(--link); font-variant-numeric: tabular-nums; }
.tl-card h3 { margin: 0 0 6px; font-size: var(--fs-callout); }
.tl-card h3 + p { margin: 0; font-size: var(--fs-body); line-height: 1.47; color: var(--ink-80); }
/* Each card slides in from the right as the row scrolls to it */
.tl-card > :not(.tl-dot) { opacity: .3; translate: 28px 0; transition: opacity .6s var(--ease), translate .8s var(--ease); }
.tl-card > .tl-step { transition-delay: .06s; } .tl-card > h3 { transition-delay: .1s; } .tl-card > h3 + p { transition-delay: .14s; }
.tl-card.is-in > :not(.tl-dot) { opacity: 1; translate: 0 0; }
@media (prefers-reduced-motion: reduce) { .tl-card > :not(.tl-dot), .tl-card::after, .tl-dot { transition: none; } }

/* ---------- Our story: the logo, large, and what the name means ---------- */
.logo-story { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); align-items: center; gap: 44px; max-width: 860px; margin: 48px auto 8px; text-align: left; }
.logo-story img { display: block; width: 100%; height: auto; }
.logo-story p { margin: 0 0 14px; font-size: var(--fs-callout); line-height: 1.45; letter-spacing: -.012em; color: var(--ink-80); }
.logo-story p:last-child { margin-bottom: 0; }
.logo-story strong { color: var(--ink); font-weight: 600; }
@media (max-width: 720px) { .logo-story { grid-template-columns: 1fr; gap: 20px; text-align: center; } .logo-story img { max-width: 240px; margin: 0 auto; } }

/* ---------- Menu: the current page is marked by a short bar that slides to the next page you pick ---------- */
.gnav__menu a { position: relative; }
.gnav__bar { position: absolute; left: 0; right: 0; bottom: 5px; height: 2px; border-radius: 2px; background: var(--ink); view-transition-name: nav-bar; }
@media (max-width: 1023px) { .gnav__bar { display: none; } }
::view-transition-group(nav-bar) { animation-duration: .5s; animation-timing-function: cubic-bezier(.32, .72, 0, 1); }
::view-transition-group(gnav) { animation-duration: .5s; }
::view-transition-old(gnav), ::view-transition-new(gnav) { animation-duration: .35s; animation-timing-function: ease; }
/* The page itself just cross-fades; the words then settle in on their own (below) */
::view-transition-old(root) { animation: .22s ease both vt-out; }
::view-transition-new(root) { animation: .38s ease both vt-fade; }
@keyframes vt-fade { from { opacity: 0; } }
.lnav { view-transition-name: lnav; }

/* ---------- Words settle in when a page opens: a short rise and fade, one line after another ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero__copy > *, .page-hero > :not(.reveal, .scroll-hint), .lnav__title, .stat-hero > :not(.reveal) { animation: text-in .75s cubic-bezier(.2, .7, .2, 1) both; }
  .hero__copy > :nth-child(2), .page-hero > :nth-child(2):not(.reveal), .stat-hero > :nth-child(2) { animation-delay: .07s; }
  .hero__copy > :nth-child(3), .page-hero > :nth-child(3):not(.reveal) { animation-delay: .14s; }
  .hero__copy > :nth-child(4) { animation-delay: .21s; }
}
@keyframes text-in { from { opacity: 0; translate: 0 12px; filter: blur(3px); } }
/* Phones: the four "Say" buttons sit two to a row */
@media (max-width: 480px) {
  .say-row { gap: 8px; }
  .say { min-height: 44px; gap: 8px; padding: 0 14px 0 12px; font-size: var(--fs-small); }
  .say .wave { gap: 2px; height: 16px; }
  .say .wave i { width: 2.5px; }
}

/* Scroll to explore, centred: the mouse on the page's centre line, the words under it.
   It eases in once on load, then fades with the scroll position (--fade, set in main.js). */
.scroll-hint { flex-direction: column; gap: 8px; padding: 6px 14px; font-size: var(--fs-caption); animation: none; opacity: var(--fade, 1); translate: 0 calc((1 - var(--fade, 1)) * 12px); transition: color .2s var(--ease-hover); }
.page-hero .scroll-hint { display: flex; margin: 32px auto 0; }
.scroll-hint.is-gone { opacity: 0; pointer-events: none; }
.scroll-hint > * { animation: hint-in 1.2s cubic-bezier(.22, .61, .36, 1) .6s both; }
.scroll-hint > .scroll-hint__text { animation-delay: .72s; }
.scroll-hint__mouse i { animation: wheel 1.9s cubic-bezier(.45, 0, .25, 1) 1.8s infinite both; }
@keyframes hint-in { from { opacity: 0; translate: 0 -6px; } }
@media (prefers-reduced-motion: reduce) { .scroll-hint > *, .scroll-hint__mouse i { animation: none; } .scroll-hint { translate: none; } }
.scroll-hint > .scroll-hint__chev { animation: hint-in 1.2s cubic-bezier(.22, .61, .36, 1) .6s both, chev 1.9s cubic-bezier(.45, 0, .25, 1) 1.8s infinite; }
@media (prefers-reduced-motion: reduce) { .scroll-hint > .scroll-hint__chev { animation: none; } }

/* ---------- The bedroom: winter night outside, and the room's white things lit by the lamp ---------- */
/* The aurora drifts and breathes very slowly; a few stars twinkle; a shooting star crosses now and then. */
.bedroom .aur, #fall .aur { transform-box: fill-box; transform-origin: 50% 100%; }
.bedroom .aur--a, #fall .aur--a { animation: aur-a 17s ease-in-out infinite alternate; }
.bedroom .aur--b, #fall .aur--b { animation: aur-b 23s ease-in-out infinite alternate; }
@keyframes aur-a { 0% { transform: translateX(-6px) scaleY(.92); opacity: .82; } 50% { opacity: 1; } 100% { transform: translateX(7px) scaleY(1.06); opacity: .88; } }
@keyframes aur-b { 0% { transform: translateX(5px) scaleY(1.04); opacity: .7; } 50% { opacity: .95; } 100% { transform: translateX(-6px) scaleY(.94); opacity: .78; } }
:is(.bedroom, #fall) .tw { animation: twinkle 5s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { opacity: .85; } 50% { opacity: .3; } }
:is(.bedroom, #fall) .shoot { opacity: 0; animation: shoot 12s cubic-bezier(.3, 0, .6, 1) infinite; }
:is(.bedroom, #fall) .shoot--2 { animation-duration: 19s; animation-delay: -7s; }
@keyframes shoot { 0%, 91% { opacity: 0; transform: translate(0, 0); } 92% { opacity: .95; } 96.5% { opacity: 0; transform: translate(-64px, 25px); } 100% { opacity: 0; transform: translate(-64px, 25px); } }
@media (prefers-reduced-motion: reduce) { :is(.bedroom, #fall) :is(.aur, .tw) { animation: none; } :is(.bedroom, #fall) .shoot { display: none; } }
/* How it works: the white bed and door stay dim in the dark and come out as the lamp lights the room */
.scene--svg .br-shade { transition: opacity 1.2s cubic-bezier(.45, 0, .25, 1); }
.tonight__frame[data-step="0"] .br-shade { opacity: .58; }
.tonight__frame[data-step="3"] .br-shade { opacity: .2; }
.tonight__frame[data-step="4"] .br-shade { opacity: .66; }


/* ---------- The night story: one clear light level per step ----------
   6:00 pm bright (full) · 9:00 pm dim (a low glow, music) · 10:00 pm completely off
   3:08 am "Lights on." still dark · 3:08 am the room lights up (full) · 3:14 am off again */
.tonight { height: 380vh; }
@media (max-width: 900px) { .tonight { height: 360vh; } }
.tonight__frame:is([data-step="0"], [data-step="4"]) .br-room { opacity: .55; }
.tonight__frame:is([data-step="0"], [data-step="4"]) .br-glow { opacity: 1; }
.tonight__frame:is([data-step="0"], [data-step="4"]) .br-shade { opacity: .2; }
.tonight__frame:is([data-step="0"], [data-step="4"]) .gl-lamp :is(.lamp-lit, .lamp-glow) { opacity: 1; }
.tonight__frame:is([data-step="0"], [data-step="4"]) .gl-lamp .lamp-bloom { opacity: .55; }
.tonight__frame:is([data-step="0"], [data-step="4"]) { box-shadow: 0 0 140px 30px rgba(255, 214, 150, .7); }
.tonight:is([data-step="0"], [data-step="4"]) { background: var(--lamp-room); }
/* Dim: clearly lower, not half-on */
.tonight__frame[data-step="1"] .br-room { opacity: .14; }
.tonight__frame[data-step="1"] .br-glow { opacity: .32; }
.tonight__frame[data-step="1"] .br-shade { opacity: .56; }
.tonight__frame[data-step="1"] .gl-lamp :is(.lamp-lit, .lamp-glow) { opacity: .32; }
.tonight__frame[data-step="1"] .gl-lamp .lamp-bloom { opacity: 0; }
.tonight__frame[data-step="1"] { box-shadow: 0 0 80px 10px rgba(255, 214, 150, .25); }
.tonight[data-step="1"] { background: var(--canvas); }
/* Off: nothing left glowing */
.tonight__frame:is([data-step="2"], [data-step="3"], [data-step="5"]) :is(.br-room, .br-glow) { opacity: 0; }
.tonight__frame:is([data-step="2"], [data-step="3"], [data-step="5"]) .br-shade { opacity: .72; }
.tonight__frame:is([data-step="2"], [data-step="3"], [data-step="5"]) .gl-lamp :is(.lamp-lit, .lamp-glow, .lamp-bloom) { opacity: 0; }
.tonight__frame:is([data-step="2"], [data-step="3"], [data-step="5"]) { box-shadow: none; }
.tonight:is([data-step="2"], [data-step="3"], [data-step="5"]) { background: var(--canvas); }
.tonight__frame:is([data-step="0"], [data-step="1"], [data-step="4"]) .br-moon { opacity: 0; }
.tonight__frame .gl-lamp :is(.lamp-lit, .lamp-glow, .lamp-bloom) { transition: opacity 1.2s cubic-bezier(.45, 0, .25, 1); }
/* Music notes rise at 9 pm only */
.tonight__frame[data-step="0"] .br-notes { opacity: 0; }
.tonight__frame[data-step="1"] .br-notes { opacity: 1; }

/* ---------- Pitch black when the lamp is off (How it works night story) ---------- */
.scene--svg .br-dark { transition: opacity 1.2s cubic-bezier(.45, 0, .25, 1); }
.tonight__frame:is([data-step="0"], [data-step="4"]) .br-dark { opacity: 0; }
.tonight__frame[data-step="1"] .br-dark { opacity: .45; }
.tonight__frame:is([data-step="2"], [data-step="3"], [data-step="5"]) .br-dark { opacity: .9; }
/* Shooting stars: three, on different rhythms, so one crosses every few seconds */
:is(.bedroom, #fall) .shoot--1 { animation-duration: 7s; animation-delay: -1s; }
:is(.bedroom, #fall) .shoot--2 { animation-duration: 9.5s; animation-delay: -4s; }
:is(.bedroom, #fall) .shoot--3 { opacity: 0; animation: shoot 11.5s cubic-bezier(.3, 0, .6, 1) -8s infinite; }
@media (prefers-reduced-motion: reduce) { :is(.bedroom, #fall) .shoot--3 { display: none; } }

/* ---------- How it works: the lamp always lights first, the room follows ---------- */
.tonight__frame .br-lamp { opacity: .1; transition: opacity .5s ease; }
.tonight__frame:is([data-step="0"], [data-step="4"]) .br-lamp { opacity: 1; }
.tonight__frame[data-step="1"] .br-lamp { opacity: .7; }
.tonight__frame .gl-lamp :is(.lamp-lit, .lamp-glow, .lamp-bloom) { transition: opacity .9s cubic-bezier(.16, .8, .3, 1); }
.tonight__frame :is(.br-room, .br-glow, .br-dark) { transition: opacity 1.4s cubic-bezier(.45, 0, .2, 1) .35s; }
.tonight__frame { transition: box-shadow 1.4s cubic-bezier(.45, 0, .2, 1) .35s; }
.tonight { transition: background-color 1.4s cubic-bezier(.45, 0, .2, 1) .35s; }

/* ---------- The reel: a dark frame grows out of the white page (no black bars), eased ---------- */
.reel { background: var(--canvas); color: var(--ink); --e: calc(var(--p) * var(--p) * (3 - 2 * var(--p))); }
.reel__head h2 { color: var(--ink); }
.reel__frame { clip-path: inset(calc(var(--t) * (1 - var(--e))) calc(var(--s) * (1 - var(--e))) calc(var(--b) * (1 - var(--e))) round calc(28px * (1 - var(--e)))); }
.ph-tag { bottom: calc(var(--b, 0px) * (1 - var(--e, var(--p, 1))) + 18px); }
/* The room's glow follows the lamp a moment later */
.ph-video__lamp::before { opacity: clamp(0, (var(--p, 0) - .32) * 2.6, 1); }

/* ---------- The menu bar is always on top, frosted, whatever scrolls under it ---------- */
.gnav { z-index: 200; }
.lnav { z-index: 190; }
.skip { z-index: 300; }
.hold-ring { z-index: 250; }

/* ---------- Shooting stars: one quick streak at a time (main.js picks the moment and the spot) ---------- */
.shoot-line { opacity: 0; }
.shoot-line.is-go { animation: shoot-go .9s cubic-bezier(.2, .6, .3, 1) both; }
@keyframes shoot-go { 0% { opacity: 0; transform: translateX(0); } 12% { opacity: 1; } 100% { opacity: 0; transform: translateX(-84px); } }
@media (prefers-reduced-motion: reduce) { .shoot-line { display: none; } }

/* Grey secondary button (survey switch, results toolbar) */
.btn--grey { background: #e8e8ed; color: var(--ink); }
@media (hover: hover) { .btn--grey:hover { background: #dcdce1; } }

/* Character counter under text boxes */
.chars { margin: 6px 2px 0; text-align: right; font-size: var(--fs-caption); color: var(--ink-60, #6e6e73); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.chars.is-near { color: #a05a00; }
.chars.is-full { color: #b30000; font-weight: 600; }

/* ---------- Home demo, round 3 ---------- */
/* The room's light reaches further and reads clearly: brighter near the lamp, still warm at the far edges. */
.page-glow--warm::before { background: radial-gradient(circle at var(--gx, 72%) var(--gy, 32%), rgba(255, 186, 105, 0.820) 0.00vmax, rgba(255, 186, 105, 0.812) 4.06vmax, rgba(255, 186, 105, 0.789) 9.66vmax, rgba(255, 186, 105, 0.754) 16.04vmax, rgba(255, 186, 105, 0.709) 22.98vmax, rgba(255, 186, 105, 0.657) 30.37vmax, rgba(255, 186, 105, 0.600) 38.14vmax, rgba(255, 186, 105, 0.540) 46.25vmax, rgba(255, 186, 105, 0.480) 54.65vmax, rgba(255, 186, 105, 0.423) 63.32vmax, rgba(255, 186, 105, 0.371) 72.23vmax, rgba(255, 186, 105, 0.326) 81.37vmax, rgba(255, 186, 105, 0.291) 90.72vmax, rgba(255, 186, 105, 0.268) 100.27vmax, rgba(255, 186, 105, 0.260) 110.00vmax); }
/* The top of the dimmer is clearly brighter: a wider glow, a full bloom, and a warm wash inside the panel. */
.hero .gl-lamp .lamp-glow { transform-box: fill-box; transform-origin: center; transform: scale(calc(.8 + .5 * var(--lvl, 1))); }
.hero :is(.gl-lamp.is-on, .is-on > .gl-lamp) .lamp-bloom { opacity: calc(var(--lvl, 1) * var(--lvl, 1)); }
.hero .lamp-panel::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; mix-blend-mode: screen;
  background: radial-gradient(circle at var(--sx, 62%) var(--sy, 50%), rgba(255, 196, 120, .7), rgba(255, 170, 90, .28) 34%, rgba(255, 150, 70, 0) 72%);
  transition: opacity 1.8s cubic-bezier(.4, 0, .2, 1); }
.hero .lamp-panel.is-lit::after { opacity: calc(var(--lvl, 1) * var(--lvl, 1) * .9); transition: opacity .9s cubic-bezier(.16, .8, .3, 1) .1s; }
.hero .lamp-panel.is-lit { background-color: color-mix(in srgb, #4a2e10 calc(var(--lvl, 1) * 100%), #0b0b0d); }

/* Turning off: a slow, even fade of the lamp, the panel and the room together. */
.hero .gl-lamp :is(.lamp-lit, .lamp-glow, .lamp-bloom) { transition: opacity 1.8s cubic-bezier(.4, 0, .2, 1); }
html:not(.lamp-lit):not(.lamp-rainbow) .page-glow { transition: opacity 1.9s cubic-bezier(.4, 0, .2, 1); }
.hero .lamp-panel:not(.is-lit):not(.is-rainbow) { transition: background-color 1.9s cubic-bezier(.4, 0, .2, 1), box-shadow 1.9s cubic-bezier(.4, 0, .2, 1); }
.hero .lamp-panel .gl-lamp .lamp-rgb { transition: opacity 1.6s cubic-bezier(.4, 0, .2, 1); }

/* While the dimmer moves, everything follows it at once. */
html.lvl-live :is(.page-glow, .page-glow::before, .hero .lamp-panel, .hero .lamp-panel::after, .hero .gl-lamp .lamp-lit, .hero .gl-lamp .lamp-glow, .hero .gl-lamp .lamp-bloom) { transition: none !important; }

/* Grooves every 10% on the dimmer */
.gs-grooves { position: absolute; inset: 0; pointer-events: none; }
.gs-grooves i { position: absolute; left: 50%; bottom: var(--at); width: 14px; height: 2px; margin: 0 0 -1px -7px; border-radius: 1px; background: #c7c7cc; }
/* The kept ring color only tints the panel while the ring is actually on. */
.hero .lamp-panel.is-solid:not(.is-rainbow):not(.is-lit) { background-color: #0b0b0d; }
.hero .lamp-panel.is-solid.is-rainbow:not(.is-lit) { background-color: color-mix(in srgb, var(--ring) 12%, #0b0b0d); }
.hero .lamp-panel.is-solid.is-rainbow.is-lit { background-color: color-mix(in srgb, var(--ring) 8%, color-mix(in srgb, #4a2e10 calc(var(--lvl, 1) * 100%), #0b0b0d)); }

/* ---------- Bedroom, round 3: a livelier aurora and shooting stars you can't miss ---------- */
/* The glows sway and swell further and faster; each ray shimmers on its own; the green band breathes. */
.bedroom .aur--a, #fall .aur--a { animation: aur-a2 9s ease-in-out infinite alternate; }
.bedroom .aur--b, #fall .aur--b { animation: aur-b2 12s ease-in-out infinite alternate; }
:is(.bedroom, #fall) .aur--c { animation: aur-c 7s ease-in-out infinite alternate; }
:is(.bedroom, #fall) .ray { transform-box: fill-box; transform-origin: 50% 100%; animation: ray 3.6s ease-in-out infinite alternate; }
@keyframes aur-a2 { 0% { transform: translateX(-14px) scaleY(.84) skewX(-4deg); opacity: .72; } 50% { opacity: 1; } 100% { transform: translateX(14px) scaleY(1.14) skewX(4deg); opacity: .9; } }
@keyframes aur-b2 { 0% { transform: translateX(10px) scaleY(1.1) skewX(3deg); opacity: .62; filter: hue-rotate(-12deg); } 50% { opacity: 1; } 100% { transform: translateX(-12px) scaleY(.86) skewX(-3deg); opacity: .8; filter: hue-rotate(14deg); } }
@keyframes aur-c { 0% { transform: translateX(-8px) scaleX(.9); opacity: .55; } 100% { transform: translateX(8px) scaleX(1.12); opacity: 1; } }
@keyframes ray { 0% { transform: scaleY(.72) translateX(-1.5px); opacity: .25; } 60% { opacity: .9; } 100% { transform: scaleY(1.08) translateX(1.5px); opacity: .55; } }
/* Shooting stars: a bright head, a long glowing tail, a longer run across the sky. */
.shoot-line.is-go { animation: shoot-go2 1.25s cubic-bezier(.25, .55, .3, 1) both; }
@keyframes shoot-go2 { 0% { opacity: 0; transform: translateX(0); } 10% { opacity: 1; } 70% { opacity: .9; } 100% { opacity: 0; transform: translateX(-132px); } }
@media (prefers-reduced-motion: reduce) { :is(.bedroom, #fall) :is(.aur, .ray) { animation: none !important; } }

/* ---------- How it works, round 3 ---------- */
/* 9 pm: a low glow you can still see by. */
.tonight__frame[data-step="1"] .br-room { opacity: .3; }
.tonight__frame[data-step="1"] .br-glow { opacity: .6; }
.tonight__frame[data-step="1"] .br-dark { opacity: .22; }
.tonight__frame[data-step="1"] .gl-lamp :is(.lamp-lit, .lamp-glow) { opacity: .6; }
.tonight__frame[data-step="1"] .gl-lamp .lamp-bloom { opacity: .2; }
/* The notes only rise once "Play music." has been said. */
.tonight__frame[data-step="1"] .br-notes { opacity: 0; }
.tonight__frame[data-step="1"].is-music .br-notes { opacity: 1; }
/* Times and dots are buttons into the story. */
.js .tonight__list li { cursor: pointer; }
.js .tonight__list li.is-active { cursor: default; }
@media (hover: hover) { .js .tonight__list li:not(.is-active):hover :is(time, b) { color: var(--blue); } }
.tonight__dots { gap: 0; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.tonight__dots.is-dragging { cursor: grabbing; }
.tonight__dots button { position: relative; width: 36px; height: 26px; margin: 0; padding: 0; border: 0; background: none; cursor: inherit; }
.tonight__dots button::before { content: ""; position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; background: var(--hairline); transition: background-color .2s, scale .25s var(--spring, ease); }
/* Each dot owns a 36 x 44 hit area, centres 36px apart, so neighbouring areas meet but never overlap */
.tonight__dots button::after { content: ""; position: absolute; inset: -9px 0; }
.tonight__dots button.is-on::before { background: var(--blue); scale: 1.3; }
@media (hover: hover) { .tonight__dots button:not(.is-on):hover::before { background: #aeaeb2; } }
.tonight__dots button:focus-visible { outline: 2px solid var(--focus, #0071e3); outline-offset: -2px; border-radius: 50%; }

/* ---------- Stat tiles and the big stat: number and unit on one baseline, sitting just above the words ---------- */
.t__art--stat { place-items: end start; padding: 20px 20px 0; }
.art-stat { display: flex; align-items: baseline; gap: .12em; margin: 0; font-size: clamp(3rem, 4.6vw, 4rem); font-weight: 600; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.art-stat small { font-size: .34em; font-weight: 600; letter-spacing: -.01em; color: var(--muted); }
@media (max-width: 734px) { .t__art--stat { padding: 18px 14px 0; } .art-stat { font-size: 3.25rem; } .bento .t:has(.t__art--stat) { min-height: 0; } }
.stat-hero .big { display: flex; justify-content: center; align-items: baseline; gap: .06em; font-size: clamp(5.5rem, 16vw, 11rem); letter-spacing: -.035em; }
.stat-hero .big small { font-size: .26em; font-weight: 600; letter-spacing: -.01em; color: var(--muted); }
.small-note { margin-top: 16px; font-size: var(--fs-small); line-height: 1.43; color: var(--muted); }
/* Both stat numbers size to their tile, so they always fit and always match each other. */
.t__art--stat { container-type: inline-size; }
.art-stat, .bento .art-stat { font-size: min(4rem, 30cqi); }


/* ---------- Home demo, round 4 ---------- */
/* On and off: the lamp, its glow, the panel and the page all change together, same time, same curve. */
.hero .gl-lamp :is(.lamp-lit, .lamp-glow, .lamp-bloom) { transition: opacity 1.8s cubic-bezier(.4, 0, .2, 1) 0s; }
.hero :is(.gl-lamp.is-on, .is-on > .gl-lamp) :is(.lamp-lit, .lamp-glow, .lamp-bloom) { transition: opacity 1.2s cubic-bezier(.4, 0, .2, 1) 0s; }
.hero .lamp-panel { transition: box-shadow 1.8s cubic-bezier(.4, 0, .2, 1) 0s !important; }
.hero .lamp-panel:is(.is-lit, .is-rainbow) { transition: box-shadow 1.2s cubic-bezier(.4, 0, .2, 1) 0s !important; }
.hero .lamp-panel::after { transition: opacity 1.8s cubic-bezier(.4, 0, .2, 1) 0s; }
.hero .lamp-panel.is-lit::after { transition: opacity 1.2s cubic-bezier(.4, 0, .2, 1) 0s; }
html:not(.lamp-lit):not(.lamp-rainbow) .page-glow { transition: opacity 1.8s cubic-bezier(.4, 0, .2, 1) 0s; }
html.lamp-lit .page-glow--warm, html.lamp-rainbow .page-glow--rgb, html.lamp-rainbow .page-glow--solid { transition: opacity 1.2s cubic-bezier(.4, 0, .2, 1) 0s; }

/* The panel stays black: only the lamp and a small pool around the shade light up. The page around it is what warms. */
#lampPanel.lamp-panel { background-color: #0b0b0d !important; }
.hero .gl-lamp .lamp-glow { transform: scale(calc(.62 + .3 * var(--lvl, 1))); }
.hero .lamp-panel::after { background: radial-gradient(26% 32% at var(--sx, 62%) var(--sy, 50%), rgba(255, 196, 120, .55), rgba(255, 170, 90, .16) 55%, rgba(255, 150, 70, 0)); }

/* Rainbow and a single color cross-fade instead of switching; one color to another blends through --ring. */
.gl-lamp .lamp-sol { opacity: 0; transition: opacity .9s cubic-bezier(.4, 0, .2, 1); }
.gl-lamp .lamp-sol circle { fill: var(--ring, #0a84ff); transition: fill .8s ease; }
.is-rainbow.is-solid .gl-lamp .lamp-sol { opacity: 1; }
.is-rainbow.is-solid .gl-lamp .lamp-sol--halo { opacity: .9; }
.is-solid .gl-lamp .lamp-rgb circle { animation: led-hue 4s linear infinite; fill: #ff3b30; }
.hero .is-solid .gl-lamp :is(.lamp-rgb, .lamp-rgb--halo, .lamp-rgb--cast) { opacity: 0; transition: opacity .9s cubic-bezier(.4, 0, .2, 1); }
html.lamp-solid .page-glow--rgb::before { animation: hue-cycle 6s linear infinite; background: radial-gradient(circle at var(--gx, 72%) var(--gy, 32%), rgba(255, 70, 90, 0.620) 0vmax, rgba(255, 74, 94, 0.615) 3.56vmax, rgba(255, 80, 99, 0.594) 8.76vmax, rgba(255, 86, 105, 0.550) 14.84vmax, rgba(255, 94, 112, 0.490) 21.58vmax, rgba(255, 102, 119, 0.425) 28.84vmax, rgba(255, 111, 127, 0.365) 36.55vmax, rgba(255, 120, 135, 0.317) 44.66vmax, rgba(255, 129, 143, 0.279) 53.13vmax, rgba(255, 139, 152, 0.251) 61.92vmax, rgba(255, 149, 161, 0.228) 71.01vmax, rgba(255, 159, 170, 0.212) 80.37vmax, rgba(255, 170, 180, 0.200) 90vmax); }
.page-glow--solid::before { background: radial-gradient(circle at var(--gx, 72%) var(--gy, 32%), color-mix(in srgb, var(--ring) 46%, transparent), color-mix(in srgb, var(--ring) 30%, transparent) 18vmax, color-mix(in srgb, var(--ring) 20%, transparent) 40vmax, color-mix(in srgb, var(--ring) 14%, transparent) 90vmax); }
html.lamp-rainbow.lamp-solid .page-glow--rgb { opacity: 0; transition: opacity .9s cubic-bezier(.4, 0, .2, 1); }
html.lamp-rainbow:not(.lamp-solid) .page-glow--solid { opacity: 0; transition: opacity .9s cubic-bezier(.4, 0, .2, 1); }
html.lamp-rainbow.lamp-solid .page-glow--solid { opacity: 1; }

/* Past the demo, the light on the page fades away. */
.page-glow--warm::before { opacity: calc(var(--lvl, 1) * var(--glow-fade, 1)); }
.page-glow--rgb::before, .page-glow--solid::before { opacity: var(--glow-fade, 1); transition: opacity .45s ease; }

/* Ring color menu: the current color and its name; the list shows every color with its swatch. */
.color-pick { position: relative; z-index: 90; }
.say--color { padding: 0 16px 0 14px; }
.say--color .swatch { width: 16px; height: 16px; flex: none; border-radius: 50%; background: conic-gradient(#ff453a, #ffd60a, #30d158, #40c8e0, #0a84ff, #bf5af2, #ff453a); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); transition: background-color .6s ease; }
.say--color .swatch.is-set { background-image: none; }
.say--color .chev { width: 12px; height: 12px; flex: none; color: var(--muted); transition: rotate .25s ease; }
.color-pick.is-open .chev { rotate: 180deg; }
.color-menu { position: absolute; left: 50%; top: calc(100% + 8px); translate: -50% 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; width: 248px; padding: 6px; border-radius: 16px;
  background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 0 0 .5px rgba(0, 0, 0, .08), 0 14px 40px rgba(0, 0, 0, .18); transform-origin: 50% 0; animation: menu-in .18s cubic-bezier(.2, .8, .3, 1); }
.color-menu[hidden] { display: none; }
@keyframes menu-in { from { opacity: 0; scale: .96; } }
.color-menu button { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border: 0; border-radius: 10px; background: none; color: var(--ink); font: 500 var(--fs-small)/1 var(--font); letter-spacing: -.01em; text-align: left; cursor: pointer; }
.color-menu button:last-child { grid-column: 1 / -1; color: var(--ink-80); }
@media (hover: hover) { .color-menu button:hover { background: rgba(0, 0, 0, .05); } }
.color-menu button:focus-visible { outline: 2px solid var(--focus, #0071e3); outline-offset: -2px; }
.color-menu button[aria-checked="true"] { font-weight: 600; background: rgba(0, 0, 0, .04); }
.color-menu i { width: 18px; height: 18px; flex: none; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.color-menu button[aria-checked="true"] i { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--ink); }
.color-menu i.is-off { background: linear-gradient(135deg, transparent 44%, #8e8e93 44%, #8e8e93 56%, transparent 56%), #fff; }
@media (prefers-reduced-motion: reduce) { .color-menu { animation: none; } }

/* Dimmer marks: small dots every 10%, gone once the blue line passes them. */
.gs-grooves i { width: 4px; height: 4px; margin: 0 0 -2px -2px; border-radius: 50%; background: #c7c7cc; transition: opacity .2s ease; }
.gs-grooves i.is-passed { opacity: 0; }

/* ---------- How it works, round 4: the five S's ---------- */
/* State 1 is Sing after "Dim the lights."; the notes rise only after "Play music." */
.tonight__frame[data-step="1"]:not(.is-music) .br-notes { opacity: 0; }
.tonight__frame[data-step="1"].is-music .br-notes { opacity: 1; }
/* Speak: off at first, then the lamp, its glow and the room come up together as you scroll toward Shine. */
.tonight__frame[data-step="3"] .gl-lamp :is(.lamp-lit, .lamp-glow) { opacity: var(--rise, 0); transition: opacity .25s linear; }
.tonight__frame[data-step="3"] .gl-lamp .lamp-bloom { opacity: calc(var(--rise, 0) * .55); transition: opacity .25s linear; }
.tonight__frame[data-step="3"] .br-room { opacity: calc(var(--rise, 0) * .55); transition: opacity .25s linear; }
.tonight__frame[data-step="3"] :is(.br-glow) { opacity: var(--rise, 0); transition: opacity .25s linear; }
.tonight__frame[data-step="3"] .br-dark { opacity: calc(.9 * (1 - var(--rise, 0))); transition: opacity .25s linear; }
/* On and off together: the lamp and the room's light change at the same moment, on the same curve. */
.tonight__frame :is(.br-room, .br-glow, .br-dark) { transition: opacity 1.2s cubic-bezier(.4, 0, .2, 1) 0s; }
.tonight__frame .gl-lamp :is(.lamp-lit, .lamp-glow, .lamp-bloom) { transition: opacity 1.2s cubic-bezier(.4, 0, .2, 1) 0s; }
.tonight__frame[data-step="3"] :is(.br-room, .br-glow, .br-dark), .tonight__frame[data-step="3"] .gl-lamp :is(.lamp-lit, .lamp-glow, .lamp-bloom) { transition: opacity .25s linear; }

/* ---------- Timeline, round 4: one line growing left to right ---------- */
.tl-card.is-in::after { transform: scaleX(0); }
.tl-card::after { transition: transform .62s cubic-bezier(.4, 0, .2, 1) 0s; }
.tl-card.is-line::after { transform: scaleX(1); }
.tl-card.is-in .tl-dot { background: var(--parchment); box-shadow: inset 0 0 0 2px var(--hairline); }
.tl-card.is-lit .tl-dot { background: var(--blue); box-shadow: inset 0 0 0 2px var(--blue), 0 0 0 5px rgba(0, 113, 227, .14); animation: dot-on .5s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes dot-on { 0% { scale: .6; } 60% { scale: 1.25; } 100% { scale: 1; } }
/* Planned prototypes: outlined dots joined by a dashed line, and a lighter label. */
:is(.tl-card--now, .tl-card--plan)::before { background: repeating-linear-gradient(90deg, var(--hairline) 0 6px, transparent 6px 11px); }
:is(.tl-card--now, .tl-card--plan)::after { display: none; }
.tl-card--plan .tl-dot { background: var(--parchment); box-shadow: inset 0 0 0 2px #c7c7cc; }
.tl-card--plan .tl-step { color: var(--muted); }
.tl-card--plan .ph { background: transparent; box-shadow: inset 0 0 0 1.5px #d2d2d7; }
@media (prefers-reduced-motion: reduce) { .tl-card.is-lit .tl-dot { animation: none; } }

/* Privacy policy: a short contents box under the summary */
.legal__toc { margin: 32px 0 8px; padding: 20px 24px 8px; border-radius: 18px; background: var(--canvas, #f5f5f7); }
.legal__toc h2 { margin: 0; font-size: var(--fs-body); letter-spacing: -.022em; }
.legal__toc ol { margin: 0; padding-left: 1.4em; columns: 2 220px; column-gap: 32px; }
/* Each contents link is a full 44px row; the rows themselves are the spacing, so the items carry no margins. */
.legal__toc li, .legal__toc li + li { margin: 0; break-inside: avoid; }
.legal__toc a { display: flex; align-items: center; min-height: 44px; }
.legal h2[id] { scroll-margin-top: 120px; }

/* ---------- Round 5: demo buttons, color menu, press feel, menu bar glow, page-load entrances ---------- */
/* Three buttons on one row. */
.say-row { flex-wrap: nowrap; max-width: 560px; }
.say-row > * { flex: 0 1 auto; min-width: 0; }
.say { white-space: nowrap; }
@media (max-width: 480px) { .say-row { gap: 6px; } .say { gap: 7px; padding: 0 12px 0 10px; font-size: var(--fs-small); } .say .wave { gap: 2px; } .say .wave i { width: 2.5px; } }
/* The color button sits under the page's glow like the others; only its menu floats above it. */
.color-pick { z-index: auto; }
.color-menu { z-index: 95; width: 260px; max-height: min(70vh, 520px); overflow-y: auto; }
.color-menu__head { grid-column: 1 / -1; margin: 6px 10px 2px; font-size: var(--fs-caption); font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.color-menu__head:first-child { margin-top: 4px; }
/* Its wave matches the ring: grey when off, the ring's color, or rainbow bars. */
.say--color .wave i { background: #aeaeb2; transition: background-color .6s ease, transform .2s var(--ease); }
.say--color.is-solid .wave i { background: var(--ring, #0a84ff); }
.say--color.is-rainbow .wave i:nth-child(1) { background: #B0DDE4; } .say--color.is-rainbow .wave i:nth-child(2) { background: #6fb7c9; }
.say--color.is-rainbow .wave i:nth-child(3) { background: #DF4C73; } .say--color.is-rainbow .wave i:nth-child(4) { background: #8a5bb8; } .say--color.is-rainbow .wave i:nth-child(5) { background: #286FB4; }
/* Rainbow styles: swatches in the menu, and how the ring runs. */
.color-menu i.rb { background: conic-gradient(#ff453a, #ffd60a, #30d158, #40c8e0, #0a84ff, #bf5af2, #ff453a); }
.color-menu i.rb--fade { background: linear-gradient(135deg, #ff453a, #ffd60a 30%, #30d158 50%, #0a84ff 75%, #bf5af2); }
.color-menu i.rb--fast { background: repeating-conic-gradient(#ff453a 0 30deg, #ffd60a 30deg 60deg, #30d158 60deg 90deg, #0a84ff 90deg 120deg); }
.color-menu i.rb--pastel { background: conic-gradient(#ffb3ad, #ffeaa0, #b4f0c4, #b3e6f0, #b0d4ff, #e3c2f5, #ffb3ad); }
.ring-fade .gl-lamp .lamp-rgb circle { animation-delay: 0s !important; animation-duration: 6s; }
.ring-fast .gl-lamp .lamp-rgb circle { animation-duration: 1.4s; }
.ring-pastel .gl-lamp .lamp-rgb circle { animation-name: led-hue-pastel; }
@keyframes led-hue-pastel { 0%, 100% { fill: #ffb3ad; } 17% { fill: #ffeaa0; } 33% { fill: #b4f0c4; } 50% { fill: #b3e6f0; } 67% { fill: #b0d4ff; } 83% { fill: #e3c2f5; } }
html.ring-fast .page-glow--rgb::before { animation-duration: 2.2s; }
html.ring-fade .page-glow--rgb::before { animation-duration: 9s; }
html.ring-swap .hero .gl-lamp :is(.lamp-rgb, .lamp-rgb--halo, .lamp-rgb--cast) { opacity: .15 !important; transition: opacity .25s ease !important; }

/* Dimmer dots: hidden from the first paint, fade only after that. */
.gs-grooves i { transition: none; }
.gs-grooves.is-ready i { transition: opacity .2s ease; }

/* Press: one feel for every button (main.js adds the classes, for pointer and for Enter or Space alike).
   In: a small squeeze that stays while held, to 0.96 for buttons and pills, 0.985 for large surfaces (tiles,
   cards, survey answers taller than 64px: is-press-soft). A quick release eases back with no overshoot, from
   wherever the squeeze is (--press-from). Held half a second: one clear pop with a small overshoot, and a blue
   ring. Uses the "scale" property, so it never moves anything around it or replaces a transform. */
:is(.t, .why-card, .pager__link, .btn, .paddle, .gl-submit button, .menu-btn, .pw-toggle, .say, .skip-scene, .btn--block):active { transform: none; }
/* The survey pages squeeze their answers and submit button on :active as well; this press replaces that. */
html .gl-survey .gl-choice:active, html .gl-opt label:active, html .gl-submit button:active { transform: none; }
.is-held, .is-release, .is-release-pop { --press: .96; }
:is(.t, .why-card, .pager__link, .is-press-soft):is(.is-held, .is-release, .is-release-pop) { --press: .985; }
.is-held { animation: press-in .12s ease-out forwards; }
.is-release { animation: press-out .3s var(--ease); }
.is-release-pop { animation: hold-pop .7s cubic-bezier(.2, .9, .3, 1); }
@keyframes press-in { to { scale: var(--press); } }
@keyframes press-out { from { scale: var(--press-from, var(--press)); } to { scale: 1; } }
/* One pop for every size: it grows and dips in step with the squeeze, so a tile pops as clearly as a button
   without swelling over its neighbours (a button peaks near 1.10, a tile near 1.04). */
@keyframes hold-pop { 0% { scale: var(--press-from, var(--press)); } 42% { scale: calc(1 + (1 - var(--press)) * 2.6); } 72% { scale: calc(1 - (1 - var(--press)) * .35); } 100% { scale: 1; } }
.hold-ring { outline: 2.5px solid rgba(0, 113, 227, .7); animation-duration: .8s; }
@keyframes hold-ring { from { outline-offset: 0; opacity: 1; } to { outline-offset: 22px; opacity: 0; } }
@keyframes hold-ring-soft { from { outline-offset: 0; opacity: .9; } to { outline-offset: 14px; opacity: 0; } }
/* Reduced motion: the same small squeeze and the same gentle ease back, but never the pop or the ring. */
@media (prefers-reduced-motion: reduce) { .is-release-pop { animation-name: press-out; animation-duration: .3s; animation-timing-function: var(--ease); } }

/* Menu bar: it takes on the lamp's light, and lets more of the glowing page show through. */
.gnav::before, .lnav::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity 1.2s cubic-bezier(.4, 0, .2, 1); }
.gnav::before, .lnav::before { background: rgba(255, 196, 120, .55); }
html.lamp-lit .gnav::before, html.lamp-lit .lnav::before { opacity: calc(var(--lvl, 1) * var(--glow-fade, 1)); }
html.lamp-rainbow:not(.lamp-lit) :is(.gnav, .lnav)::before { background: rgba(255, 90, 130, .45); opacity: var(--glow-fade, 1); animation: hue-cycle 6s linear infinite; }
html.lamp-rainbow.lamp-solid:not(.lamp-lit) :is(.gnav, .lnav)::before { background: color-mix(in srgb, var(--ring) 45%, transparent); animation: none; }
html:is(.lamp-lit, .lamp-rainbow) :is(.gnav, .lnav) { background-color: rgba(250, 248, 245, .5); -webkit-backdrop-filter: saturate(240%) blur(16px); backdrop-filter: saturate(240%) blur(16px); transition: background-color 1.2s cubic-bezier(.4, 0, .2, 1); }
@media (prefers-reduced-transparency: reduce) { :is(.gnav, .lnav)::before { display: none; } }

/* Page-load entrance, the same on every page: the demo, the form, the surveys, the legal pages and 404 too. */
@media (prefers-reduced-motion: no-preference) {
  .hero__stage > *, .quote-info > *, .gl-survey > h1, .gl-survey > .gl-intro, .gl-survey > .gl-choose, .gl-survey > .gl-switch, .legal > h1, .legal > .legal__date, .legal > .legal__lede, .page-404 main > * { animation: text-in .75s cubic-bezier(.2, .7, .2, 1) both; }
  .hero__stage > :nth-child(1) { animation-delay: .2s; } .hero__stage > :nth-child(2) { animation-delay: .3s; } .hero__stage > :nth-child(3) { animation-delay: .38s; }
  .quote-info > :nth-child(2), .legal > .legal__date, .gl-survey > :nth-child(2) { animation-delay: .07s; }
  .quote-info > :nth-child(3), .legal > .legal__lede, .gl-survey > :nth-child(3) { animation-delay: .14s; }
  .quote-info > :nth-child(n+4) { animation-delay: .21s; }
}

/* ---------- Bedroom, round 5 ---------- */
/* Curtains close at Sleep and stay closed through the night: two straight panels slide in over the window. */

/* When the lamp is on, it's drawn at full strength: never a faded lamp with a glow around it. */
.tonight__frame[data-step="1"] .br-lamp { opacity: 1; }
.tonight__frame[data-step="3"] .br-lamp { opacity: calc(.1 + .9 * var(--rise, 0)); transition: opacity .25s linear; }

/* Turning on, everywhere: a gradual, even climb to full brightness (lamp, glow and room together). */
.hero :is(.gl-lamp.is-on, .is-on > .gl-lamp) :is(.lamp-lit, .lamp-glow, .lamp-bloom),
html.lamp-lit .page-glow--warm, .hero .lamp-panel.is-lit::after, html.lamp-lit :is(.gnav, .lnav)::before { transition: opacity 1.8s cubic-bezier(.45, 0, .4, 1) 0s; }
.hero .lamp-panel.is-lit { transition: box-shadow 1.8s cubic-bezier(.45, 0, .4, 1) 0s !important; }
.tonight__frame:is([data-step="0"], [data-step="4"]) :is(.br-room, .br-glow, .br-dark),
.tonight__frame:is([data-step="0"], [data-step="4"]) .gl-lamp :is(.lamp-lit, .lamp-glow, .lamp-bloom),
.tonight__frame:is([data-step="0"], [data-step="4"]) .br-lamp { transition: opacity 1.8s cubic-bezier(.45, 0, .4, 1) 0s; }

/* ---------- How it works: the heading rises in word by word; each step's words fade up as it changes ---------- */
[data-rise] .rw { display: inline-block; opacity: 0; translate: 0 .35em; filter: blur(4px); transition: opacity .6s cubic-bezier(.2, .7, .2, 1), translate .7s cubic-bezier(.2, .7, .2, 1), filter .6s ease; transition-delay: calc(var(--i) * 70ms); }
[data-rise].is-risen .rw { opacity: 1; translate: 0 0; filter: none; }
.tonight__list li.is-active span { animation: step-in .55s cubic-bezier(.2, .7, .2, 1) both; }
.tonight__list li.is-active :is(time, b) { animation: step-in .45s cubic-bezier(.2, .7, .2, 1) both; }
.tonight__list li :is(time, b) { transition: color .4s ease; }
@keyframes step-in { from { opacity: 0; translate: 0 8px; filter: blur(2px); } }
@media (prefers-reduced-motion: reduce) { [data-rise] .rw { opacity: 1; translate: none; filter: none; transition: none; } .tonight__list li.is-active :is(span, time, b) { animation: none; } }

/* ---------- Language menu in the menu bar ---------- */
.gnav__inner { position: relative; }
.lang { position: relative; margin-left: auto; }
.gnav__menu + .lang { margin-left: 4px; }
.lang__btn { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; padding: 0 8px; border: 0; border-radius: 10px; background: none; color: var(--ink-80); font: 600 var(--fs-caption)/1 var(--font); letter-spacing: .02em; cursor: pointer; transition: color .2s var(--ease-hover), background-color .2s var(--ease-hover); }
.lang__btn svg { width: 18px; height: 18px; }
@media (hover: hover) { .lang__btn:hover { color: var(--ink); background: rgba(0, 0, 0, .04); } }
.lang__btn:focus-visible { outline: 2px solid var(--focus, #0071e3); outline-offset: 2px; }
.lang__menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 300; display: grid; min-width: 168px; padding: 6px; border-radius: 14px;
  background: rgba(255, 255, 255, .96); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 0 0 .5px rgba(0, 0, 0, .08), 0 14px 40px rgba(0, 0, 0, .16); transform-origin: 100% 0; animation: menu-in .18s cubic-bezier(.2, .8, .3, 1); }
.lang__menu[hidden] { display: none; }
.lang__menu a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 9px; color: var(--ink); font-size: var(--fs-small); text-decoration: none; transition: background-color .2s var(--ease-hover); }
@media (hover: hover) { .lang__menu a:hover { background: rgba(0, 0, 0, .05); } }
.lang__menu a[aria-checked="true"] { font-weight: 600; }
.lang__menu a[aria-checked="true"]::after { content: ""; width: 7px; height: 7px; margin-left: auto; border-radius: 50%; background: var(--blue); }
.lang__menu a:focus-visible { outline: 2px solid var(--focus, #0071e3); outline-offset: -2px; }
@media (max-width: 1023px) { .gnav__menu + .lang { margin-left: auto; margin-right: 2px; } }

/* ---------- Round 6: menu bar, page edges, color menu, curtains ---------- */
/* Menu bar: the links sit together on the right, next to the language button, on every page and in every language. */
@media (min-width: 1024px) {
  .gnav__inner { justify-content: flex-start; }
  .gnav__brand { margin-right: auto; }
  .gnav__menu { margin-left: 24px; }
  .gnav__menu + .lang { margin-left: 8px; }
}
/* One frosted material for the menu bar and the topic bar. It takes its color only from what's under it,
   so the lamp's light shows through it exactly as it falls on the page (no separate tint on top). */
.gnav, .lnav { background-color: rgba(250, 250, 252, .66); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); }
html:is(.lamp-lit, .lamp-rainbow) :is(.gnav, .lnav) { background-color: rgba(250, 250, 252, .42); }
.gnav::before, .lnav::before { content: none; }
/* Pulling past the top of the page shows more menu bar, not a white strip; past the bottom, the footer's grey. */
html { background: var(--parchment); }
body { background: var(--canvas); }
.gnav::after { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 100vh; background: #f7f7f9; pointer-events: none; }
.gnav[data-open]::after { background: var(--parchment); }
@media (prefers-reduced-transparency: reduce) { .gnav, .lnav { background-color: var(--canvas); } }

/* Color menu: three columns, and above everything below the demo. */
.hero:has(.color-pick.is-open), .hero .wrap:has(.color-pick.is-open) { position: relative; z-index: 120; }
.color-pick.is-open { z-index: 120; }
.color-menu { grid-template-columns: repeat(3, minmax(0, 1fr)); width: min(456px, calc(100vw - 32px)); max-height: none; overflow: visible; z-index: 120; }
.color-menu button { min-height: 44px; padding: 6px 10px; gap: 8px; line-height: 1.15; }
.color-menu button:last-child { grid-column: auto; color: var(--ink); }
.color-menu .color-menu__off { grid-column: 1 / -1; color: var(--ink-80); }
@media (max-width: 480px) { .color-menu button { padding: 6px 8px; gap: 6px; font-size: var(--fs-caption); } .color-menu i { width: 16px; height: 16px; } }

/* Curtains: they draw closed like real fabric, the folds spreading out from the bunched sides, the
   leading edge easing in and settling with a small sway. Closed, no light gets through anywhere. */
/* The extra menu bar above the page takes the lamp's light too, the same way the bar does. */
html.lamp-lit .gnav::after { background: color-mix(in srgb, #ffcf96 calc(var(--lvl, 1) * var(--glow-fade, 1) * 55%), #f7f7f9); }
html.lamp-rainbow.lamp-solid .gnav::after { background: color-mix(in srgb, var(--ring) calc(var(--glow-fade, 1) * 24%), #f7f7f9); }
html.lamp-rainbow:not(.lamp-solid) .gnav::after { background: color-mix(in srgb, #ff6e8c calc(var(--glow-fade, 1) * 24%), #f7f7f9); animation: hue-cycle 6s linear infinite; }
.color-menu { background: rgba(255, 255, 255, .985); }

/* ---------- Round 7 ---------- */
/* The lamp's light falls on everything on the page, the menu bar, the buttons and the slider included. */
.page-glow { z-index: 250; }
/* The menu bar keeps one look in every state; only the light under and over it changes, and that fades. */
.gnav, .lnav, html:is(.lamp-lit, .lamp-rainbow) :is(.gnav, .lnav) { background-color: rgba(250, 250, 252, .66); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); transition: none; }
.gnav::after { transition: background-color 1.8s cubic-bezier(.4, 0, .2, 1); }
/* Changing pages: the menu bar stays exactly where it is, no fade, slide or color change; the page fades under it. */
::view-transition-group(gnav), ::view-transition-new(gnav) { animation: none; }
::view-transition-old(gnav) { display: none; }
.gnav__bar { view-transition-name: none; }
html { scrollbar-gutter: stable; }

/* The card rows on Home scroll sideways only, so scrolling down the page never gets caught in them. */
.shelf { overflow-y: hidden; overscroll-behavior-y: auto; }

/* More ring styles: palettes that drift through their own colors, and a slow breathing rainbow. */
@keyframes led-ocean { 0%, 100% { fill: #0a84ff; } 25% { fill: #40c8e0; } 50% { fill: #30d1b0; } 75% { fill: #5e5ce6; } }
@keyframes led-sunset { 0%, 100% { fill: #ff453a; } 25% { fill: #ff9f0a; } 50% { fill: #ff6fae; } 75% { fill: #bf5af2; } }
@keyframes led-aurora { 0%, 100% { fill: #30d158; } 25% { fill: #40c8e0; } 50% { fill: #bf5af2; } 75% { fill: #ff6fae; } }
@keyframes led-fire { 0%, 100% { fill: #ff3b1f; } 30% { fill: #ff8a00; } 55% { fill: #ffb340; } 80% { fill: #ff5a1f; } }
@keyframes ring-breathe { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
.ring-ocean .gl-lamp .lamp-rgb circle { animation-name: led-ocean; animation-duration: 7s; }
.ring-sunset .gl-lamp .lamp-rgb circle { animation-name: led-sunset; animation-duration: 7s; }
.ring-aurora .gl-lamp .lamp-rgb circle { animation-name: led-aurora; animation-duration: 8s; }
.ring-fire .gl-lamp .lamp-rgb circle { animation-name: led-fire; animation-duration: 1.8s; }
.ring-breathe .gl-lamp .lamp-rgb circle { animation-duration: 9s; animation-delay: 0s !important; }
.lamp-panel.is-rainbow.ring-breathe:not(.is-solid) .gl-lamp :is(.lamp-rgb, .lamp-rgb--halo) { animation: ring-breathe 4.5s ease-in-out infinite; }
/* The light on the page follows the same palette. */
@keyframes hue-ocean { 0%, 100% { filter: hue-rotate(195deg); } 50% { filter: hue-rotate(250deg); } }
@keyframes hue-sunset { 0%, 100% { filter: hue-rotate(-35deg); } 50% { filter: hue-rotate(30deg); } }
@keyframes hue-aurora { 0%, 100% { filter: hue-rotate(125deg); } 50% { filter: hue-rotate(275deg); } }
@keyframes hue-fire { 0%, 100% { filter: hue-rotate(2deg); } 50% { filter: hue-rotate(28deg); } }
@keyframes glow-breathe { 0%, 100% { opacity: calc(var(--glow-fade, 1) * .4); } 50% { opacity: var(--glow-fade, 1); } }
html.ring-ocean .page-glow--rgb::before, html.ring-ocean.lamp-rainbow:not(.lamp-solid) .gnav::after { animation: hue-ocean 7s ease-in-out infinite; }
html.ring-sunset .page-glow--rgb::before, html.ring-sunset.lamp-rainbow:not(.lamp-solid) .gnav::after { animation: hue-sunset 7s ease-in-out infinite; }
html.ring-aurora .page-glow--rgb::before, html.ring-aurora.lamp-rainbow:not(.lamp-solid) .gnav::after { animation: hue-aurora 8s ease-in-out infinite; }
html.ring-fire .page-glow--rgb::before, html.ring-fire.lamp-rainbow:not(.lamp-solid) .gnav::after { animation: hue-fire 1.8s ease-in-out infinite; }
html.ring-breathe .page-glow--rgb::before { animation: hue-cycle 9s linear infinite, glow-breathe 4.5s ease-in-out infinite; }
html.ring-fast.lamp-rainbow:not(.lamp-solid) .gnav::after { animation-duration: 2.2s; }
html.ring-fade.lamp-rainbow:not(.lamp-solid) .gnav::after { animation-duration: 9s; }
.color-menu i.rb--ocean { background: conic-gradient(#0a84ff, #40c8e0, #30d1b0, #5e5ce6, #0a84ff); }
.color-menu i.rb--sunset { background: conic-gradient(#ff453a, #ff9f0a, #ff6fae, #bf5af2, #ff453a); }
.color-menu i.rb--aurora { background: conic-gradient(#30d158, #40c8e0, #bf5af2, #ff6fae, #30d158); }
.color-menu i.rb--fire { background: conic-gradient(#ff3b1f, #ff8a00, #ffb340, #ff5a1f, #ff3b1f); }
.color-menu i.rb--breathe { background: radial-gradient(circle, #fff 0 22%, transparent 23%), conic-gradient(#ff453a, #ffd60a, #30d158, #40c8e0, #0a84ff, #bf5af2, #ff453a); }

/* ---------- Right to left (Arabic) ---------- */
/* Arabic letters join, so they never get extra or tighter letter spacing. */
[dir="rtl"] body, [dir="rtl"] body * { letter-spacing: 0 !important; }
/* The menu bar: logo on the right, links beside the language button on the left. */
@media (min-width: 1024px) { .gnav__brand { margin-right: 0; margin-inline-end: auto; } .gnav__menu { margin-left: 0; margin-inline-start: 24px; } .gnav__menu + .lang { margin-left: 0; margin-inline-start: 8px; } }
/* Pictures, the lamp demo, sliders and the night story keep their drawn left-to-right layout. */
[dir="rtl"] :is(svg, .lamp-panel, .gs, .tonight__dots, .tonight__frame, .fall__frame, .stops) { direction: ltr; }
/* Arrows that mean "next" point the other way. */
[dir="rtl"] :is(.t__go svg, .more::after, .pager__link svg, .why-card .t__go svg) { transform: scaleX(-1); }
[dir="rtl"] .t__go { right: auto; left: 22px; }
[dir="rtl"] .why-card .t__go { right: auto; left: 20px; }
@media (hover: hover) { [dir="rtl"] .t:hover .t__go { transform: translateX(-2px); } [dir="rtl"] .more:hover::after { translate: -3px 0; } }
/* Sideways rows (card shelves, the prototype timeline) keep their scrolling direction; the words inside read right to left. */
[dir="rtl"] :is(.shelf, .tl) { direction: ltr; }
[dir="rtl"] :is(.shelf, .tl) > * { direction: rtl; }
.color-menu.is-up { top: auto; bottom: calc(100% + 8px); transform-origin: 50% 100%; }

/* ---------- Round 8 ---------- */
/* Home tiles: the How it works lamp sizes to the space above the words, so it never runs into the title. */
.t--warm .t__art { min-height: 0; padding-top: 16px; }
.t--warm .glow { min-height: 0; }
.t--warm .tile-lamp { width: auto; height: calc(100% - 4px); max-height: 230px; aspect-ratio: 240 / 430; margin-top: 4px; }
.t--warm .tile-lamp svg { width: 100%; height: 100%; }
/* A stat that's longer in some languages ("3 h 08 du matin") puts its small words on the next line instead of spilling out. */
.art-stat { flex-wrap: wrap; white-space: normal; row-gap: .1em; }
.art-stat > :not(small) { white-space: nowrap; }
.art-stat small { white-space: nowrap; }
/* Dashes and hyphens between numbers sit at the middle of the digits, not at lowercase height. */
:is(.fact__line strong, .art-stat, .rs-stat b, .feature__n, .stat, .stat b, .t__title) { font-feature-settings: "case" 1; }

/* Brightness sets the ring's light too: dimmer ring, dimmer color on the page. Never fully dark, like the real LEDs. */
.hero .lamp-panel.is-rainbow:not(.is-solid) .gl-lamp .lamp-rgb { opacity: calc(.22 + .78 * var(--lvl, 1)); }
.hero .lamp-panel.is-rainbow:not(.is-solid) .gl-lamp .lamp-rgb--halo { opacity: calc(.9 * (.12 + .88 * var(--lvl, 1))); }
.hero .lamp-panel.is-rainbow:not(.is-solid) .gl-lamp .lamp-rgb--cast { opacity: calc(.35 * (.12 + .88 * var(--lvl, 1))); }
.hero .lamp-panel.is-rainbow.is-solid .gl-lamp .lamp-sol { opacity: calc(.22 + .78 * var(--lvl, 1)); }
.hero .lamp-panel.is-rainbow.is-solid .gl-lamp .lamp-sol--halo { opacity: calc(.9 * (.12 + .88 * var(--lvl, 1))); }
.page-glow--rgb::before, .page-glow--solid::before { opacity: calc(var(--glow-fade, 1) * (.15 + .85 * var(--lvl, 1))); }
#colorLabel { display: inline-block; white-space: nowrap; }
#colorLabel.is-swap { animation: label-in .38s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes label-in { from { opacity: 0; filter: blur(3px); translate: 0 3px; } }
.say--color { overflow: hidden; }
html.lvl-live .hero .gl-lamp :is(.lamp-rgb, .lamp-rgb--halo, .lamp-rgb--cast, .lamp-sol, .lamp-sol--halo) { transition: none !important; }
@media (min-width: 1024px) { .t--warm .tile-lamp { height: 172px; max-height: none; width: auto; } }
/* While the brightness slider moves, the light on the page follows it at once (pseudo-elements cannot go inside :is(), so this needs its own rule). */
html.lvl-live .page-glow::before, html.lvl-live .hero .lamp-panel::after { transition: none !important; }

/* ---------- Bedroom, round 9: a quieter night ---------- */
/* The aurora is one pale green band with a few soft rays. It drifts slowly and never flickers or changes hue. */
:is(.bedroom, #fall) .aur--a { animation: aur-q1 26s ease-in-out infinite alternate; }
:is(.bedroom, #fall) .aur--b { animation: aur-q2 34s ease-in-out infinite alternate; }
:is(.bedroom, #fall) .aur--c { animation: aur-q3 21s ease-in-out infinite alternate; }
:is(.bedroom, #fall) .ray { animation-name: ray-q; }
@keyframes aur-q1 { from { transform: translateX(-5px); } to { transform: translateX(6px); } }
@keyframes aur-q2 { from { transform: translateX(4px) scaleY(.96); opacity: .7; } to { transform: translateX(-5px) scaleY(1.04); opacity: 1; } }
@keyframes aur-q3 { from { transform: translateX(-4px) scaleX(.97); opacity: .7; } to { transform: translateX(5px) scaleX(1.04); opacity: 1; } }
@keyframes ray-q { from { transform: scaleY(.86); opacity: .45; } to { transform: scaleY(1.06); opacity: 1; } }

/* Type, round 10. Small text now carries the tracking its size calls for (15px: -.016em, 13px: -.01em),
   instead of inheriting the body's tighter 17px value. The phone comparison cards read at 16px. */
.fact__src, .feature__n, .compare, .compare thead th, .table-hint, .field__error, .success__copied, .contact span,
.field label, .field__label, .form__hint, .tonight__list time, .hero__by, .say-note, .ask .ask__survey,
.bright__label, .footnotes ol, .tl-step, .small-note, .lang__menu a { letter-spacing: -.016em; }
.bright__val, .scroll-hint { letter-spacing: -.01em; }
@media (max-width: 600px) { .art-chips span { letter-spacing: -.016em; } }
@media (max-width: 480px) { .say { letter-spacing: -.016em; } .color-menu button { letter-spacing: -.01em; } }
.compare-card .cc-head { letter-spacing: -.016em; }
.compare-card dt, .compare-card dd { font-size: 1rem; letter-spacing: -.02em; }

/* The line above the comparison sat flush against the table (0px). Give it the same air as other section intros. */
#compare .prose.section-gap { margin-bottom: 8px; }
@media (max-width: 760px) { #compare .prose.section-gap { margin-bottom: 24px; } }

/* Type and spacing, round 11 */
/* 15px captions read at 1.43, like the footer. Chinese, Japanese, Korean and Arabic keep their taller lines (set at the end). */
:root:not(:lang(ja), :lang(zh), :lang(ko), :lang(ar)) :is(.fact__src, .hero__by, .say-note, .ask .ask__survey, .table-hint, .form__hint, .ph-tag) { line-height: 1.43; }
/* The 17px column head in the 15px comparison table keeps the body tracking. */
.compare thead .is-us { letter-spacing: -.022em; }
/* Ledes on phones: one step smaller, a little more leading and tracking. */
@media (max-width: 734px) {
  .page-hero .lede, .hero__lede, .team .lede, .quote-info > h1 + p, .legal .legal__lede { font-size: var(--fs-callout); line-height: 1.42; letter-spacing: .012em; }
}
/* Two white sections in a row share one gap instead of stacking both paddings. */
.why + .fact, .fact + .stat-hero { padding-top: 0; }

/* How it works: the page itself takes the lamp's light (main.js turns on the page wash), so the section keeps
   the plain page color underneath, and the story sits above the wash so the picture keeps its own colors. */
.tonight, .tonight[data-step] { background: var(--canvas); }
.tonight__sticky { z-index: 75; }

/* Ring colors never go dark in between. Any change of style while the ring stays on (rainbow to rainbow,
   rainbow to a color, a color to a rainbow, color to color) is one dissolve, 1.2s, cubic-bezier(.45, 0, .55, 1):
   main.js lays copies of the old light (the ring, the page's wash, the menu bar's tint) over the new one and
   fades them out, and adds ring-restyle for the moment of the change so the live layers switch at once
   underneath (the new light is fully there from the start; the old one leaves over it).
   With reduced motion there are no copies, and the rules below cross-fade instead: the color comes up over the
   rainbow and the rainbow leaves only once the color is there; a color back to a rainbow has the rainbow lit
   under the color at once (main.js adds ring-from-solid for that moment). */
.hero .lamp-panel.is-solid .gl-lamp :is(.lamp-rgb, .lamp-rgb--halo, .lamp-rgb--cast) { transition: opacity .6s cubic-bezier(.45, 0, .55, 1) .6s; }
html.ring-from-solid .hero .gl-lamp :is(.lamp-rgb, .lamp-rgb--halo, .lamp-rgb--cast) { transition: opacity .15s linear 0s !important; }
html.lamp-rainbow.lamp-solid .page-glow--rgb { transition: opacity .6s cubic-bezier(.45, 0, .55, 1) .6s; }
html.lamp-rainbow:not(.lamp-solid) .page-glow--solid { transition: opacity .6s cubic-bezier(.45, 0, .55, 1) .6s; }
html.ring-from-solid .page-glow--rgb { transition: opacity .3s ease 0s !important; }
html.ring-restyle .hero .gl-lamp :is(.lamp-rgb, .lamp-rgb--halo, .lamp-rgb--cast, .lamp-sol, .lamp-sol--halo, .lamp-sol circle) { transition: none !important; }
html.ring-restyle .page-glow, html.ring-restyle .page-glow::before { transition: none !important; }
html.ring-restyle .gnav::before, html.ring-restyle .gnav::after, html.ring-restyle .lnav::before { transition: none !important; }

/* ---------- Every language set the same way ---------- */
/* Home demo: the demo column has a fixed width that the buttons can never stretch, so the lamp never slides.
   main.js measures the longest words each button can show in this language: if all three fit on one line they
   stay on one line; if not, they always sit on two (Lights and Music, then Color), whatever is showing. */
.hero > *, .hero__stage { min-width: 0; }
.hero__stage { grid-template-columns: minmax(0, 1fr); }
.say-row.is-stacked { flex-wrap: wrap; row-gap: 4px; }
.say-row.is-stacked::after { content: ""; order: 3; flex: 0 0 100%; height: 0; }
.say-row.is-stacked > #sayMusic { order: 2; }
.say-row.is-stacked > .color-pick { order: 4; }
/* Desktop and tablet: the demo column is a little wider than the copy (the lamp panel keeps its 480px cap), and
   the buttons are compact, so all of them, the next-song button included, fit on one line. The hidden next-song
   button pulls back by one row gap, so it adds nothing while the music is off. */
@media (min-width: 901px) {
  .hero { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
  .say-row { gap: 8px; max-width: 580px; }
  .say { padding: 0 13px 0 11px; gap: 7px; font-size: 15px; }
  .say .wave { gap: 2px; }
  .say .wave i { width: 2.5px; }
}
/* A button changing its words: the old words fade out, the button eases to its new width, and the new words fade
   in once there is room for them (main.js times all three). Nothing is clipped: the words never need it, and a
   clip would cut the blur and the small rise. */
.say-label, #colorLabel.say-label { display: inline-grid; min-width: 0; overflow: visible; padding-block: 3px; margin-block: -3px; }
/* Both copies start at the same edge (a button centers its text by default, which would shift the shorter copy
   and make it jump when the longer one is removed). */
.say-label > span { grid-area: 1 / 1; white-space: nowrap; text-align: start; }
@keyframes label-out { to { opacity: 0; filter: blur(3px); translate: 0 -3px; } }
@media (prefers-reduced-motion: reduce) { .say-label .say__old { display: none; } }
/* How it works: the time column fits the longest time in each language ("3:08 w nocy", "3:08 صباحًا")
   and stays one column for every step. */
@supports (grid-template-columns: subgrid) {
  .tonight__list { grid-template-columns: minmax(80px, max-content) 1fr; }
  .tonight__list li { grid-column: 1 / -1; grid-template-columns: subgrid; }
}
.tonight__list time { white-space: nowrap; }
/* Chinese, Japanese and Korean: characters are full height and evenly spaced by design, so no tightened letter
   spacing, a little more line height, and lines break between words or phrases, not inside them. */
:root:lang(ja) { --font: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", Meiryo, "Figtree", sans-serif; }
:root:lang(zh) { --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Figtree", sans-serif; }
:root:lang(ko) { --font: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Figtree", sans-serif; }
:root:is(:lang(ja), :lang(zh), :lang(ko)) body, :root:is(:lang(ja), :lang(zh), :lang(ko)) body * { letter-spacing: 0 !important; }
:root:is(:lang(ja), :lang(zh), :lang(ko)) body { line-height: 1.6; }
:root:is(:lang(ja), :lang(zh), :lang(ko)) :is(h1, h2, h3, .hero h1, .words, .duo, .fact p.fact__line, .reel__caption, .t__title, .feature h2, .feature h3) { line-height: 1.3; }
:root:lang(ko) body { word-break: keep-all; overflow-wrap: anywhere; }
:root:lang(ja) body { line-break: strict; }
:root:lang(ja) :is(h1, h2, h3, .words, .duo, .fact__line, .reel__caption, .t__title) { word-break: auto-phrase; }
/* Arabic: taller letters above and below the line need more room. */
:root:lang(ar) { --font: -apple-system, BlinkMacSystemFont, "SF Arabic", "Geeza Pro", "Segoe UI", Tahoma, "Figtree", sans-serif; }
:root:lang(ar) body { line-height: 1.7; }
:root:lang(ar) :is(h1, h2, h3, .hero h1, .words, .duo, .fact p.fact__line, .reel__caption, .t__title, .feature h2, .feature h3) { line-height: 1.35; }
/* ---------- Home demo: the next-song button and the song's name ---------- */
/* Next song: a round button right after the music button, the same height, color and press as the others.
   While the music is off it has no width and no gap before it, so the row looks exactly as before. When the
   music starts it grows in and then fades in; when it stops it fades out and then closes. The row is centred,
   so its neighbours slide along. */
.say.say--skip { flex: 0 0 auto; justify-content: center; width: 0; min-width: 0; padding: 0; margin-inline-start: -10px; overflow: hidden; opacity: 0; pointer-events: none;
  transition: transform .4s var(--spring), background-color .2s, opacity .2s ease, width .6s cubic-bezier(.32, .72, 0, 1) .2s, margin-inline-start .6s cubic-bezier(.32, .72, 0, 1) .2s; }
.say.say--skip.is-on { width: 48px; margin-inline-start: 0; opacity: 1; pointer-events: auto;
  transition: transform .4s var(--spring), background-color .2s, width .6s cubic-bezier(.32, .72, 0, 1), margin-inline-start .6s cubic-bezier(.32, .72, 0, 1), opacity .3s ease .15s; }
.say--skip .icon { width: 18px; height: 18px; color: inherit; fill: currentColor; }
.say-row.is-stacked > #sayNext { order: 2; }
@media (max-width: 480px) {
  .say.say--skip { margin-inline-start: -6px; }
  .say.say--skip.is-on { width: 44px; margin-inline-start: 0; }
}
@media (min-width: 901px) {
  .say.say--skip { margin-inline-start: -8px; }
  .say.say--skip.is-on { width: 48px; margin-inline-start: 0; } /* round: as wide as the buttons are tall */
}
@media (prefers-reduced-motion: reduce) { .say.say--skip, .say.say--skip.is-on { transition: transform .4s var(--spring), background-color .2s; } }
/* The song's name, at the bottom of the lamp panel while music plays. Above the lamp drawing and its light,
   below the color menu (which sits above the whole panel). Recordings add a smaller credit line. */
.track-pill { position: absolute; z-index: 3; left: 0; right: 0; bottom: 14px; display: grid; grid-template-columns: minmax(0, 1fr); width: fit-content; max-width: calc(100% - 32px); margin: 0 auto; padding: 6px 12px;
  border-radius: 980px; background: rgba(255, 255, 255, .08); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: rgba(255, 255, 255, .88);
  font-size: var(--fs-caption); font-weight: 600; line-height: 1.3; text-align: center; white-space: nowrap; overflow: hidden; pointer-events: none;
  opacity: 0; transition: opacity .4s ease, width .6s cubic-bezier(.32, .72, 0, 1); }
.lamp-panel.is-playing .track-pill:not(:empty) { opacity: 1; }
.track-pill__item { grid-area: 1 / 1; min-width: 0; }
.track-pill__name, .track-pill__credit { display: block; overflow: hidden; text-overflow: ellipsis; }
.track-pill__credit { font-size: .6875rem; opacity: .7; }
.track-pill__item.is-old { animation: label-out .26s cubic-bezier(.4, 0, 1, 1) both; }
.track-pill__item.is-new { animation: label-in .5s cubic-bezier(.2, .7, .2, 1) .1s both; }
@media (prefers-reduced-motion: reduce) { .track-pill__item { animation: none !important; } .track-pill__item.is-old { display: none; } }

/* Demo buttons on two or three lines (main.js picks the first layout whose worst case fits):
   b: Lights + Color on top, Music and its next-song button below. c: Lights, then Color, then Music + next song. */
.say-row.is-stacked-b > .color-pick { order: 1; }
.say-row.is-stacked-b > #sayMusic { order: 4; }
.say-row.is-stacked-b > #sayNext { order: 5; }
.say-row.is-stacked-c::before { content: ""; order: 2; flex: 0 0 100%; height: 0; }
.say-row.is-stacked-c > .color-pick { order: 3; }
.say-row.is-stacked-c::after { order: 4; }
.say-row.is-stacked-c > #sayMusic { order: 5; }
.say-row.is-stacked-c > #sayNext { order: 6; }

/* ---------- Cookie notice and preferences ---------- */
/* A small card at the bottom of the screen: one sentence, "Preferences" and "Allow". Above the page's light
   (the colored wash sits at z-index 250) and below the menu when it is open. */
.cookie-note { position: fixed; z-index: 270; left: 50%; bottom: 16px; width: min(560px, calc(100% - 32px)); display: grid; gap: 12px; padding: 16px 18px 14px;
  border-radius: 18px; background: rgba(255, 255, 255, .96); box-shadow: 0 0 0 1px rgba(0, 0, 0, .06), 0 12px 40px rgba(0, 0, 0, .16);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  translate: -50% 16px; opacity: 0; transition: translate .5s cubic-bezier(.32, .72, 0, 1), opacity .3s ease; }
.cookie-note.is-in { translate: -50% 0; opacity: 1; }
.cookie-note__text { margin: 0; font-size: 14px; line-height: 1.43; letter-spacing: -.016em; color: var(--ink-80); }
.cookie-note__text a { color: var(--link); white-space: nowrap; }
.cookie-note__actions { display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.cookie-note__prefs { min-height: 44px; padding: 0 14px; border: 0; border-radius: 980px; background: none; color: var(--link); font: 400 15px/1 var(--font); letter-spacing: -.016em; cursor: pointer; transition: background-color .2s var(--ease-hover); }
@media (hover: hover) { .cookie-note__prefs:hover { background: rgba(0, 0, 0, .05); } }
.cookie-note__allow { min-height: 44px; padding: 0 22px; font-size: 15px; }
@media (prefers-reduced-motion: reduce) { .cookie-note { transition: opacity .2s ease; translate: -50% 0; } }

.cookie-prefs { width: min(520px, calc(100% - 32px)); max-height: calc(100dvh - 48px); padding: 0; border: 0; border-radius: 22px; background: var(--canvas); color: var(--ink);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .28); overflow: auto; }
.cookie-prefs::backdrop { background: rgba(0, 0, 0, .36); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.cookie-prefs[open] { animation: prefs-in .36s cubic-bezier(.32, .72, 0, 1) both; }
@keyframes prefs-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@media (prefers-reduced-motion: reduce) { .cookie-prefs[open] { animation: none; } }
.cookie-prefs__inner { position: relative; margin: 0; padding: 28px 24px 20px; }
.cookie-prefs h2 { margin: 0 40px 8px 0; font-size: 24px; line-height: 1.17; letter-spacing: .009em; }
.cookie-prefs__lede { margin: 0 0 16px; font-size: 15px; line-height: 1.43; letter-spacing: -.016em; color: var(--muted); }
.cookie-prefs__close { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--parchment); color: var(--ink); cursor: pointer; }
.cookie-prefs__close svg { width: 16px; height: 16px; }
.cookie-prefs__row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 16px 0; border-top: 1px solid var(--hairline); }
.cookie-prefs__row h3 { margin: 0 0 4px; font-size: 17px; line-height: 1.24; letter-spacing: -.022em; }
.cookie-prefs__row p { margin: 0; font-size: 15px; line-height: 1.43; letter-spacing: -.016em; color: var(--muted); }
.cookie-prefs__always { flex: none; padding-top: 2px; font-size: 14px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.cookie-prefs__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; padding-top: 16px; border-top: 1px solid var(--hairline); }
.cookie-prefs__btn { min-height: 44px; padding: 0 18px; border: 0; border-radius: 980px; background: var(--parchment); color: var(--ink); font: 400 15px/1 var(--font); letter-spacing: -.016em; cursor: pointer; transition: background-color .2s var(--ease-hover); }
.cookie-prefs__btn.btn { background: var(--blue); color: #fff; }
@media (hover: hover) { .cookie-prefs__btn:not(.btn):hover { background: #e8e8ed; } }
.cookie-prefs__more { margin: 12px 0 0; font-size: 14px; }
.cookie-prefs__more a { color: var(--link); }
/* The on/off switch, Apple style: 51 x 31, green when on */
.cookie-switch { position: relative; flex: none; width: 51px; height: 31px; cursor: pointer; }
.cookie-switch input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.cookie-switch span { position: absolute; inset: 0; border-radius: 31px; background: #e9e9eb; transition: background-color .25s ease; }
.cookie-switch span::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, .15), 0 1px 1px rgba(0, 0, 0, .16); transition: translate .3s cubic-bezier(.32, .72, 0, 1); }
.cookie-switch input:checked + span { background: #34c759; }
.cookie-switch input:checked + span::after { translate: 20px 0; }
.cookie-switch input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
@media (max-width: 480px) { .cookie-prefs__actions .cookie-prefs__btn { flex: 1 1 auto; } }
/* "Cookie settings" in the footer looks like the other legal links */
.footer__cookies { padding: 0; border: 0; background: none; color: inherit; font: inherit; letter-spacing: inherit; cursor: pointer; }
.footer__cookies:hover { text-decoration: underline; }

/* ---------- Menu on phones and tablets: a full screen sheet ---------- */
/* While open, the menu bar itself becomes a sheet over the whole screen (footer included), wherever you have
   scrolled to. (Before, the list was "fixed" inside the frosted bar, and a blur filter makes fixed children follow
   the bar instead of the screen, so after scrolling the list could open out of view.) The page under it keeps
   its place and is restored exactly when the menu closes. */
@media (max-width: 1023px) {
  .gnav[data-open] { position: fixed; inset: 0; z-index: 400; height: 100dvh; background: var(--parchment); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .gnav[data-open] .gnav__inner { position: static; } /* so the list measures against the whole sheet, not the 52px bar row */
  .gnav[data-open] .gnav__menu { position: absolute; top: 52px !important; left: 0; right: 0; bottom: 0; height: auto !important; }
  body.menu-open .lnav { visibility: hidden; }
  /* Three lines, 2px thick, that turn into a cross */
  .gnav__toggle { gap: 5px; }
  .gnav__toggle span { width: 20px; height: 2px; border-radius: 2px; transition: transform .35s cubic-bezier(.32, .72, 0, 1), opacity .2s ease; }
  .gnav[data-open] .gnav__toggle span:first-child { transform: translateY(7px) rotate(45deg); }
  .gnav[data-open] .gnav__toggle span:nth-child(2) { opacity: 0; transform: scaleX(.4); }
  .gnav[data-open] .gnav__toggle span:last-child { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Ring colors from the color engine (main.js ringEngine) ---------- */
/* The engine sets every LED's color each frame, so the old keyframe styles are switched off where it runs, and the
   single-color layer is not needed: the same LEDs draw a color too. Fading the ring on and off stays here. */
.gl-lamp.ring-js .lamp-rgb circle { animation: none !important; }
.gl-lamp.ring-js .lamp-rgb { animation: none !important; } /* "Breathing rainbow" breathes in the colors now */
.gl-lamp.ring-js :is(.lamp-sol, .lamp-sol--halo, .lamp-sol--core) { display: none !important; }
.hero .lamp-panel.is-rainbow.is-solid .gl-lamp.ring-js .lamp-rgb { opacity: calc(.22 + .78 * var(--lvl, 1)) !important; }
.hero .lamp-panel.is-rainbow.is-solid .gl-lamp.ring-js .lamp-rgb--halo { opacity: calc(.9 * (.12 + .88 * var(--lvl, 1))) !important; }
.hero .lamp-panel.is-rainbow.is-solid .gl-lamp.ring-js .lamp-rgb--cast { opacity: calc(.35 * (.12 + .88 * var(--lvl, 1))) !important; }
/* The page's colored wash and the menu bar tint follow the ring's top LED (--ring-now), not a hue animation */
html.ring-js .page-glow--rgb::before { animation: none !important; filter: none !important;
  background: radial-gradient(circle at var(--gx, 72%) var(--gy, 32%), rgb(var(--ring-now, 255 70 90) / .62) 0vmax, rgb(var(--ring-now, 255 70 90) / .46) 14vmax, rgb(var(--ring-now, 255 70 90) / .32) 36vmax, rgb(var(--ring-now, 255 70 90) / .24) 62vmax, rgb(var(--ring-now, 255 70 90) / .2) 90vmax) !important; }
html.ring-js.lamp-rainbow.lamp-solid .page-glow--rgb { opacity: 1 !important; }
html.ring-js .page-glow--solid { opacity: 0 !important; }
html.ring-js.lamp-rainbow:not(.lamp-lit) :is(.gnav, .lnav)::before { background: rgb(var(--ring-now, 255 90 130) / .45) !important; animation: none !important; filter: none !important; }
html.ring-js.lamp-rainbow .gnav::after { background: color-mix(in srgb, rgb(var(--ring-now, 255 110 140)) calc(var(--glow-fade, 1) * 24%), #f7f7f9) !important; animation: none !important; filter: none !important; }
/* How it works: the rainbow wash and the warm light change together over the same 1.2 s, so "Rainbow." moving on
   to "Dim the lights." is one smooth change. */
html.tonight-page .page-glow, html.tonight-page .page-glow::before { transition: opacity 1.2s cubic-bezier(.45, 0, .55, 1) !important; }
html.tonight-page .tonight__frame .gl-lamp :is(.lamp-rgb, .lamp-rgb--halo, .lamp-rgb--cast) { transition: opacity 1.2s cubic-bezier(.45, 0, .55, 1); }

/* ---------- Cookie notice: bottom left, and the switch ---------- */
.cookie-note { left: 16px; width: min(380px, calc(100% - 32px)); translate: 0 16px; }
.cookie-note.is-in { translate: 0 0; }
@media (prefers-reduced-motion: reduce) { .cookie-note { translate: 0 0; } }
/* While the notice shows, the footer gets that much extra room below it, so its last lines can scroll clear */
.footer { padding-bottom: calc(28px + var(--cookie-h, 0px)); }
/* The switch is blue when on. Its knob position and color follow --k (0 off, 1 on), so it can be dragged. */
.cookie-switch { --k: 0; touch-action: none; }
.cookie-switch span { background: color-mix(in srgb, var(--blue) calc(var(--k) * 100%), #e9e9eb); transition: background-color .25s ease; }
.cookie-switch input:checked + span { background: color-mix(in srgb, var(--blue) calc(var(--k) * 100%), #e9e9eb); }
.cookie-switch span::after { translate: calc(var(--k) * 20px) 0; transition: translate .35s cubic-bezier(.32, .72, 0, 1), scale .25s cubic-bezier(.32, .72, 0, 1), background-color .2s ease, box-shadow .2s ease; }
.cookie-switch input:checked + span::after { translate: calc(var(--k) * 20px) 0; }
/* Held: the knob swells into clear glass and follows the finger, like the brightness slider's knob */
.cookie-switch.is-dragging span { transition: none; }
.cookie-switch.is-dragging span::after { scale: 1.45 1.5; background: rgba(255, 255, 255, .25); -webkit-backdrop-filter: blur(3px) saturate(180%); backdrop-filter: blur(3px) saturate(180%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7), 0 4px 14px rgba(0, 0, 0, .2); transition: scale .25s cubic-bezier(.32, .72, 0, 1), background-color .2s ease, box-shadow .2s ease; }
@media (prefers-reduced-motion: reduce) { .cookie-switch span::after { transition-duration: .01s; } }

/* ---------- Site map page ---------- */
.sitemap { padding-block: 40px var(--section); }
.sitemap h1 { margin: 0 0 40px; padding-bottom: 16px; border-bottom: 1px solid var(--hairline); font-size: 28px; line-height: 1.14; letter-spacing: .007em; }
.sitemap__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; }
.sitemap section { margin-bottom: 36px; }
.sitemap h2 { margin: 0 0 8px; font-size: 17px; font-weight: 600; line-height: 1.24; letter-spacing: -.022em; color: var(--ink); }
.sitemap ul { list-style: none; margin: 0; padding: 0; }
.sitemap li a { display: inline-block; padding: 6px 0; color: var(--link); font-size: 17px; line-height: 1.24; letter-spacing: -.022em; }
.sitemap li a:hover { text-decoration: underline; }
@media (max-width: 734px) { .sitemap__cols { grid-template-columns: 1fr; } .sitemap li a { padding: 10px 0; } .sitemap h1 { margin-bottom: 28px; } }
/* A side note marked with an asterisk, listed above the numbered sources */
.footnotes__star { margin: 0 0 12px; max-width: 72ch; font-size: var(--fs-small); line-height: 1.43; letter-spacing: -.016em; color: var(--muted); }
sup.fn--star { margin-right: 1px; }
sup.fn--star a { text-decoration: none; }

/* Sources run the full width of the page, the same as the note under them. */
.footnotes ol, .footnotes__star { max-width: none; }
/* The night story: a pressed time shows blue at once, before the page starts moving. */
.js .tonight__list li:not(.is-active):active :is(time, b) { color: var(--blue); }

/* Donate bar: a thin dark strip above the menu on every main page. It scrolls away with the page,
   and the close button folds it shut (main.js). Dark so it reads as a notice, not part of the menu. */
.dbar { display: grid; grid-template-rows: 1fr; background: var(--ink); color: rgba(255, 255, 255, .8);
  transition: grid-template-rows .32s var(--ease), opacity .2s ease; }
.dbar[hidden] { display: none; }
.dbar.is-closing { grid-template-rows: 0fr; opacity: 0; }
.dbar__inner { position: relative; min-height: 0; overflow: hidden; }
.dbar__text { margin: 0; padding: 10px 52px; font-size: 14px; line-height: 1.43; letter-spacing: -.016em; text-align: center; text-wrap: balance; }
.dbar__text a { display: inline-flex; align-items: center; gap: 5px; margin-inline-start: 4px; color: #2997ff; font-weight: 500; white-space: nowrap; text-decoration: none; }
.dbar__text a svg { width: 10px; height: 10px; flex: none; transition: translate .2s var(--ease-hover); }
@media (hover: hover) { .dbar__text a:hover { text-decoration: underline; text-underline-offset: 3px; } .dbar__text a:hover svg { translate: 1px -1px; } }
.dbar__text a:focus-visible, .dbar__close:focus-visible { outline: 2px solid #2997ff; outline-offset: 2px; border-radius: 4px; }
.dbar__close { position: absolute; top: 50%; inset-inline-end: max(6px, env(safe-area-inset-right)); translate: 0 -50%; display: none; place-items: center; width: 40px; height: 40px; padding: 0;
  border: 0; border-radius: 50%; background: transparent; color: rgba(255, 255, 255, .7); cursor: pointer; transition: background-color .15s ease, color .15s ease; }
.js .dbar__close { display: grid; }
.dbar__close svg { width: 12px; height: 12px; }
@media (hover: hover) { .dbar__close:hover { background: rgba(255, 255, 255, .12); color: #fff; } }
.dbar__close:active { background: rgba(255, 255, 255, .18); }
@media (max-width: 734px) {
  .dbar__lead { display: none; }
  .dbar__text { padding-block: 9px; padding-inline: 16px 46px; font-size: 13px; text-align: start; }
}
@media (prefers-reduced-motion: reduce) { .dbar { transition: opacity .2s ease; } }
@media print { .dbar { display: none; } }
/* The menu's ::after reaches 100vh upward to fill over-scroll at the top; with the bar showing it would cover it. */
.dbar:not([hidden]) ~ .gnav::after { content: none; }

/* Menu and footer links behave like the language button: a soft gray box on hover (and while a finger
   holds them), the press squeeze, and the pop with a blue ring after a long hold (main.js, PRESSABLE).
   The 8px padding is taken back with a -8px margin, so no text moves. */
.gnav__menu a:not(.gnav__cta), .gnav__brand, .footer li a, .footer__legal a, .footer__cookies, .footer__logo {
  padding-inline: 8px; margin-inline: -8px; border-radius: 10px; }
/* The logo keeps its auto margin on the far side (it pushes the menu across), so only its near side moves. */
.gnav__brand { margin-inline: -8px auto; }
.gnav__menu a:not(.gnav__cta) { transition: color .2s var(--ease-hover), background-color .2s var(--ease-hover); }
@media (max-width: 1023px) { .gnav__menu a:not(.gnav__cta) { transition: transform .4s var(--ease), opacity .2s, color .2s var(--ease-hover), background-color .2s var(--ease-hover); } }
.gnav__brand, .footer li a, .footer__legal a, .footer__cookies, .footer__logo { transition: color .2s var(--ease-hover), background-color .2s var(--ease-hover); }
.footer__cookies { display: inline-flex; align-items: center; min-height: 44px; }
.gnav__bar { left: 8px; right: 8px; }
@media (hover: hover) {
  .gnav__menu a:not(.gnav__cta):hover, .gnav__brand:hover, .footer li a:hover, .footer__legal a:hover, .footer__cookies:hover, .footer__logo:hover {
    background: rgba(0, 0, 0, .04); text-decoration: none; }
}
:is(.gnav__menu a:not(.gnav__cta), .gnav__brand, .footer li a, .footer__legal a, .footer__cookies, .footer__logo, .lang__btn).is-held { background: rgba(0, 0, 0, .06); }
.gnav__menu a:not(.gnav__cta):focus-visible, .gnav__brand:focus-visible, .footer a:focus-visible, .footer__cookies:focus-visible { outline: 2px solid var(--focus, #0071e3); outline-offset: 2px; }

/* Support the research: the GoFundMe ask, on Home and Our story (the thin banner at the top asks too). */
.donate__inner { text-align: center; }
.donate__icon { display: inline-grid; place-items: center; width: 56px; height: 56px; margin-bottom: 18px; border-radius: 50%; background: var(--canvas); color: var(--blue); box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
.band--white .donate__icon { background: var(--parchment); }
.donate__icon svg { width: 28px; height: 28px; }
.donate h2 { margin: 0 0 12px; }
.donate p { max-width: 34em; margin: 0 auto 26px; font-size: var(--fs-callout); line-height: 1.5; color: var(--ink-80); text-wrap: pretty; }
.donate__btn { display: inline-flex; align-items: center; gap: 8px; }
.donate__btn svg { width: 12px; height: 12px; flex: none; }

/* ---------- Grandma's interview: one row per question, the 9:16 video beside its question and transcript ---------- */
.iv-list { list-style: none; margin: 0 auto; max-width: 1000px; display: grid; gap: 96px; }
.iv { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 56px; align-items: center; }
.iv__video { position: relative; border-radius: var(--radius); overflow: hidden; background: #000; aspect-ratio: 9 / 16; box-shadow: var(--shadow-card); }
.iv__video video { display: block; width: 100%; height: 100%; object-fit: cover; background: #000; }
.iv__text h2 { margin: 0 0 12px; font-size: var(--fs-title); letter-spacing: -.01em; line-height: 1.2; }
.iv__meta { margin: 0 0 24px; font-size: var(--fs-small); color: var(--muted); letter-spacing: -.016em; }
.iv__time { font-variant-numeric: tabular-nums; }
.iv__tr { border-top: 1px solid var(--hairline); }
.iv__tr summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; padding: 12px 2px; font-size: var(--fs-body); font-weight: 600; cursor: pointer; list-style: none; transition: color .2s var(--ease-hover); }
.iv__tr summary::-webkit-details-marker { display: none; }
.iv__tr summary::after { content: ""; flex: 0 0 auto; width: 9px; height: 9px; margin-right: 6px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); rotate: 45deg; translate: 0 -3px; transition: rotate .3s var(--ease), translate .3s var(--ease); }
.iv__tr[open] summary::after { rotate: -135deg; translate: 0 3px; }
@media (hover: hover) { .iv__tr summary:hover { color: var(--link); } }
.iv__tr p { margin: 0 0 14px; max-width: 60ch; font-size: var(--fs-body); line-height: 1.5; color: var(--ink-80); }
.iv__tr p:last-child { margin-bottom: 8px; }
.iv__tr p b { color: var(--ink); font-weight: 600; }
.iv__tr .iv__note { font-style: italic; color: var(--muted); }
@media (max-width: 760px) {
  .iv-list { gap: 72px; }
  .iv { grid-template-columns: 1fr; gap: 24px; }
  .iv__video { width: min(100%, 360px); margin: 0 auto; }
}

/* Our story: Grandma's first answer beside her story, and a link to the whole interview */
.story-video { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 56px; align-items: center; max-width: 900px; margin: 0 auto; }
.story-video h2 { font-size: var(--fs-h2); }
.story-video p { margin: 0 0 20px; font-size: var(--fs-lead); line-height: 1.38; color: var(--ink-80); }
@media (max-width: 760px) { .story-video { grid-template-columns: 1fr; gap: 28px; } .story-video .iv__video { width: min(100%, 340px); margin: 0 auto; } }

/* Prototype photos in the timeline: 4:3 like the placeholders they replace */
.tl-card .media { aspect-ratio: 4 / 3; margin-bottom: 0; }
