/* HomePanel website (DRAFT preview).
   Layout concept: an Apple-style product page. A sticky glass product bar, big centred type,
   full-width bands that alternate white and soft grey, and "stage" cards: soft gradients
   (lamp amber at dusk, oak, sky) that hold the device frames with real screenshots. */
:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --card: #ffffff;
  --fg: #1d1d1f;
  --fg-2: #6e6e73;
  --fg-3: #86868b;
  --hair: #d2d2d7;
  --link: #0066cc;
  --accent: #b64400;          /* eyebrow text: lamp amber, darkened for contrast */
  --amber: #ffb900;           /* occupancy / lit-room amber from the icon set */
  --blue: #0071e3;
  --chip: #e8e8ed;
  --bar: rgba(251, 251, 253, 0.8);
  --bezel: #1d1d1f;
  --bezel-edge: #3a3a3c;
  --shadow: 0 30px 60px -20px rgba(29, 29, 31, 0.35), 0 12px 24px -12px rgba(29, 29, 31, 0.25);
  --stage: #f5f5f7;           /* neutral card behind screenshots (no colour) */
  --stage-alt: #ffffff;
  --sketch: #ffffff;
  --sketch-fg: #1d1d1f;
  --sketch-line: rgba(29, 29, 31, 0.1);
  --draft-bg: #fff4e0;
  --draft-fg: #7a4100;
  /* stage gradients (light) */
  /* physical hardware, the app's HW.Palette: soft white by day */
  --hw-a: #ffffff; --hw-b: #ececf0; --hw-c: #d2d2d7; --hw-k: #1c1c1e; --hw-e: rgba(0, 0, 0, 0.07); --hw-h: rgba(255, 255, 255, 0.9); --hw-s: rgba(0, 0, 0, 0.22);
  --hw-light: #ffb340;
  --glow: rgba(255, 179, 64, 0.16);
  /* motion (homepanel-motion tokens): curve-out for arrivals, spring-click for parts that click */
  --curve-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-click: cubic-bezier(0.34, 1.4, 0.64, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --wrap: 1080px;
  --wrap-wide: 1240px;
  --gutter-l: max(22px, env(safe-area-inset-left, 0px));
  --gutter-r: max(22px, env(safe-area-inset-right, 0px));
}
@supports (transition-timing-function: linear(0, 1)) {
  :root { --ease-click: linear(0, 0.0239, 0.0836, 0.1648, 0.2567, 0.3519, 0.4448, 0.5322, 0.6119, 0.6829, 0.7448, 0.7979, 0.8426, 0.8797, 0.9101, 0.9345, 0.9539, 0.969, 0.9805, 0.9891, 0.9954, 0.9999, 1.0028, 1.0047, 1.0058, 1.0062, 1.0063, 1.006, 1.0055, 1.005, 1.0044, 1.0038, 1.0032, 1.0027, 1.0022, 1.0018, 1.0014, 1.0011, 1.0009, 1.0007, 1.0005); }
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000; --bg-alt: #161617; --card: #1c1c1e; --fg: #f5f5f7; --fg-2: #a1a1a6; --fg-3: #86868b;
    --hair: #38383a; --link: #2997ff; --accent: #ff9f0a; --chip: #2c2c2e; --bar: rgba(22, 22, 23, 0.8);
    --bezel: #0b0b0c; --bezel-edge: #48484a; --shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8), 0 12px 24px -12px rgba(0, 0, 0, 0.6);
    --stage: #1c1c1e; --stage-alt: #1c1c1e; --sketch: #2c2c2e; --hw-a: #4b4b50; --hw-b: #2e2e32; --hw-c: #1c1c1f; --hw-k: #f2f2f7; --hw-e: rgba(255, 255, 255, 0.06); --hw-h: rgba(255, 255, 255, 0.16); --hw-s: rgba(0, 0, 0, 0.6); --glow: rgba(255, 179, 64, 0.2); --sketch-fg: #f5f5f7; --sketch-line: rgba(255, 255, 255, 0.12);
    --draft-bg: #2a1d0a; --draft-fg: #ffc46b;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #000000; --bg-alt: #161617; --card: #1c1c1e; --fg: #f5f5f7; --fg-2: #a1a1a6; --fg-3: #86868b;
  --hair: #38383a; --link: #2997ff; --accent: #ff9f0a; --chip: #2c2c2e; --bar: rgba(22, 22, 23, 0.8);
  --bezel: #0b0b0c; --bezel-edge: #48484a; --shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8), 0 12px 24px -12px rgba(0, 0, 0, 0.6);
  --stage: #1c1c1e; --stage-alt: #1c1c1e; --sketch: #2c2c2e; --hw-a: #4b4b50; --hw-b: #2e2e32; --hw-c: #1c1c1f; --hw-k: #f2f2f7; --hw-e: rgba(255, 255, 255, 0.06); --hw-h: rgba(255, 255, 255, 0.16); --hw-s: rgba(0, 0, 0, 0.6); --glow: rgba(255, 179, 64, 0.2); --sketch-fg: #f5f5f7; --sketch-line: rgba(255, 255, 255, 0.12);
  --draft-bg: #2a1d0a; --draft-fg: #ffc46b;
  color-scheme: dark;
}

/* ---------- base ---------- */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--font); font-size: 17px; line-height: 1.47; letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--bar); }
img { max-width: 100%; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--font-display); text-wrap: balance; margin: 0; color: var(--fg); }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.wrap-wide { max-width: var(--wrap-wide); margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tnum { font-variant-numeric: tabular-nums; }

/* ---------- draft ribbon + product bar ---------- */
.draft-ribbon {
  background: var(--draft-bg); color: var(--draft-fg); font-size: 13px; line-height: 1.4; text-align: center;
  padding-block: 9px; padding-left: var(--gutter-l); padding-right: var(--gutter-r);
}
.draft-ribbon strong { font-weight: 600; }
.pbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--bar); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--hair);
}
.pbar-in { height: 52px; display: flex; align-items: center; gap: 16px; }
.pbar-name { display: flex; align-items: center; gap: 9px; color: var(--fg); font-size: 21px; font-weight: 600; letter-spacing: -0.01em; }
.pbar-name:hover { text-decoration: none; }
.pbar-name img { width: 28px; height: 28px; }
.pbar-links { margin-left: auto; display: flex; align-items: center; gap: 22px; font-size: 12px; }
.pbar-links a { color: var(--fg-2); font-size: 13px; }
.pbar-links a:hover { color: var(--fg); text-decoration: none; }
.pbar-links a[aria-current="page"] { color: var(--fg); }
.pbar-links a.pill, .pbar-links a.pill:hover { color: #fff; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; border: 0; cursor: pointer; font: inherit;
  background: var(--blue); color: #fff; border-radius: 980px; padding: 5px 13px; font-size: 13px; line-height: 1.3; white-space: nowrap;
}
.pill:hover { text-decoration: none; filter: brightness(1.08); }
.pill.lg { font-size: 17px; padding: 11px 22px; }
.pill.ghost { background: transparent; color: var(--link); box-shadow: inset 0 0 0 1px var(--link); }
.pbar-menu { display: none; margin-left: auto; background: none; border: 0; color: var(--fg); padding: 8px; cursor: pointer; }
.pbar-menu svg { width: 18px; height: 18px; display: block; transition: transform .25s; }
.pbar[data-open] .pbar-menu svg { transform: rotate(180deg); }
@media (max-width: 734px) {
  .pbar-menu { display: block; }
  .pbar-links { display: none; position: absolute; left: 0; right: 0; top: 52px; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); box-shadow: 0 18px 30px -18px rgba(0, 0, 0, 0.35);
    border-bottom: 1px solid var(--hair); padding-block: 8px 22px; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
  .pbar[data-open] .pbar-links { display: flex; }
  .pbar-links a { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; color: var(--fg); padding: 12px 0; border-bottom: 1px solid var(--hair); }
  .pbar-links a.pill { align-self: flex-start; margin-top: 20px; border: 0; padding: 10px 20px; font-size: 15px; font-weight: 500; }
}

/* ---------- type helpers ---------- */
.eyebrow { color: var(--accent); font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.headline { font-size: clamp(32px, 5.2vw, 56px); line-height: 1.07; font-weight: 700; letter-spacing: -0.012em; }
.headline-sm { font-size: clamp(28px, 4vw, 40px); line-height: 1.1; font-weight: 700; letter-spacing: -0.01em; }
.lede { font-size: clamp(19px, 2.1vw, 24px); line-height: 1.38; color: var(--fg-2); font-weight: 500; letter-spacing: -0.01em; }
.lede strong, .body strong { color: var(--fg); font-weight: 600; }
.body { font-size: 19px; line-height: 1.42; color: var(--fg-2); letter-spacing: -0.016em; }
.more { font-size: 17px; display: inline-flex; gap: 4px; align-items: baseline; }
.more::after { content: "›"; font-size: 1.15em; line-height: 1; }

/* ---------- hero ---------- */
.hero { position: relative; padding-block: 64px 0; text-align: center; overflow: hidden; }
.hero > .wrap, .hero-stage { position: relative; z-index: 1; }
.hero-glow { position: absolute; z-index: 0; left: 50%; top: -60px; width: min(620px, 150vw); aspect-ratio: 1; transform: translateX(-50%);
  border-radius: 50%; background: radial-gradient(closest-side, var(--glow), rgba(255, 179, 64, 0) 100%); pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  html:not(.reduce) .hero-icon { animation: hp-icon .9s var(--ease-click) both; }
  html:not(.reduce) .hero h1 { animation: hp-rise 1s var(--curve-out) .08s both; }
  html:not(.reduce) .hero .promise { animation: hp-rise 1s var(--curve-out) .16s both; }
  html:not(.reduce) .hero .lede { animation: hp-rise 1s var(--curve-out) .24s both; }
  html:not(.reduce) :is(.hero-cta, .hero-meta) { animation: hp-rise 1s var(--curve-out) .32s both; }
  html:not(.reduce) .hero-stage { animation: hp-stage 1.4s var(--curve-out) .3s both; }
  html:not(.reduce) .hero-glow { animation: hp-fade 2.4s var(--curve-out) .1s both, hp-breathe 9s ease-in-out 2.5s infinite alternate; }
}
@keyframes hp-icon { from { opacity: 0.5; transform: translateY(-14px) scale(0.86); } }
@keyframes hp-rise { from { opacity: 0.45; transform: translateY(20px); } }
@keyframes hp-stage { from { opacity: 0.6; transform: translateY(80px) scale(0.94); } }
@keyframes hp-fade { from { opacity: 0.3; } }
@keyframes hp-breathe { from { transform: translateX(-50%) scale(1); } to { transform: translateX(-50%) scale(1.08); } }
.hero-icon { width: 128px; height: 128px; margin: 0 auto 22px; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.22)); }
.hero h1 { font-size: clamp(48px, 9vw, 96px); line-height: 1.02; font-weight: 700; letter-spacing: -0.02em; }
.hero .promise { margin-top: 10px; font-size: clamp(26px, 4.2vw, 44px); line-height: 1.12; font-weight: 600; letter-spacing: -0.012em; color: var(--fg); }
.hero .promise span { background: linear-gradient(100deg, #e8801c 0%, #c8569a 45%, #4f6fe8 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lede { max-width: 640px; margin: 18px auto 0; }
.hero-cta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 14px 26px; justify-content: center; align-items: center; }
.soon-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 18px 9px 10px; border-radius: 14px;
  background: var(--fg); color: var(--bg); text-align: left; line-height: 1.15;
}
.soon-badge img { width: 34px; height: 34px; }
.soon-badge small { display: block; font-size: 11px; opacity: 0.75; letter-spacing: 0.01em; }
.soon-badge b { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.hero-meta { margin-top: 14px; font-size: 13px; color: var(--fg-3); }
.hero-stage { margin-top: 56px; position: relative; }

/* ---------- stages + device frames ---------- */
.stage {
  position: relative; border-radius: 28px; background: var(--stage); overflow: hidden; container-type: inline-size;
  isolation: isolate;
}
.band.alt .stage { background: var(--stage-alt); }
.tile .stage { background: transparent; }
.stage-in { display: flex; align-items: center; justify-content: center; gap: 4cqw; padding: 7cqw 5cqw 5cqw; box-sizing: border-box; }
.caption { position: relative; z-index: 2; text-align: center; color: var(--fg-2); font-size: 15px; line-height: 1.4; padding: 0 6cqw 2.2cqw; font-weight: 500; }

.ipad {
  --w: 78cqw; width: var(--w); max-width: 100%; flex: 0 0 auto; box-sizing: border-box; padding: calc(var(--w) * 0.022);
  background: var(--bezel); border-radius: calc(var(--w) * 0.045); box-shadow: var(--shadow), inset 0 0 0 1.5px var(--bezel-edge);
}
.ipad .scr, .iphone .scr { position: relative; overflow: hidden; background: #f2f2f7; }
.ipad .scr { aspect-ratio: 2360 / 1640; border-radius: calc(var(--w) * 0.024); }
.ipad.portrait .scr { aspect-ratio: 1640 / 2360; }
.ipad.portrait { --w: 34cqw; }
.ipad img, .iphone img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.iphone {
  --w: 24cqw; width: var(--w); flex: 0 0 auto; box-sizing: border-box; padding: calc(var(--w) * 0.038); position: relative;
  background: var(--bezel); border-radius: calc(var(--w) * 0.17); box-shadow: var(--shadow), inset 0 0 0 1.5px var(--bezel-edge);
}
.iphone .scr { aspect-ratio: 1206 / 2622; border-radius: calc(var(--w) * 0.135); }
.iphone::after { /* Dynamic Island */
  content: ""; position: absolute; z-index: 2; top: calc(var(--w) * 0.075); left: 50%; transform: translateX(-50%);
  width: calc(var(--w) * 0.29); height: calc(var(--w) * 0.085); border-radius: 99px; background: #000;
}
.iphone.land { --w: 60cqw; padding: calc(var(--w) * 0.017); border-radius: calc(var(--w) * 0.08); }
.iphone.land .scr { aspect-ratio: 2622 / 1206; border-radius: calc(var(--w) * 0.062); }
.iphone.land::after { top: 50%; left: calc(var(--w) * 0.035); transform: translateY(-50%); width: calc(var(--w) * 0.039); height: calc(var(--w) * 0.13); }
.iphone.solo { --w: 34cqw; }
.duo { position: relative; width: 100%; display: flex; justify-content: center; }
/* Apple Watch: a rounded case with the Digital Crown and side button */
.watch { --w: 13cqw; position: relative; width: var(--w); flex: 0 0 auto; box-sizing: border-box; padding: calc(var(--w) * 0.085);
  background: var(--bezel); border-radius: calc(var(--w) * 0.3); box-shadow: var(--shadow), inset 0 0 0 1.5px var(--bezel-edge); }
.watch .scr { position: relative; overflow: hidden; background: #000; aspect-ratio: var(--watch-ar, 416 / 496); border-radius: calc(var(--w) * 0.22); }
.watch img { width: 100%; height: 100%; object-fit: cover; }
.watch::before { content: ""; position: absolute; right: calc(var(--w) * -0.055); top: 24%; width: calc(var(--w) * 0.07); height: 17%; border-radius: 3px; background: var(--bezel); box-shadow: inset 0 0 0 1px var(--bezel-edge); }
.watch::after { content: ""; position: absolute; right: calc(var(--w) * -0.03); top: 52%; width: calc(var(--w) * 0.04); height: 20%; border-radius: 2px; background: var(--bezel); }
.watch.solo { --w: 28cqw; }
.family { position: relative; width: 100%; display: flex; justify-content: center; }
.family .ipad { --w: 70cqw; margin-right: 14cqw; }
.family .iphone { --w: 19cqw; position: absolute; right: 9cqw; bottom: -2cqw; }
.family .watch { --w: 11cqw; position: absolute; right: 0.5cqw; bottom: 0; }
.pair { display: flex; gap: 6cqw; align-items: center; justify-content: center; }
.pair .iphone { --w: 27cqw; } .pair .watch { --w: 20cqw; }
.step .watch.mini { --w: 92px; margin: 0 auto 10px; }
.duo .ipad { --w: 74cqw; margin-right: 10cqw; }
.duo .iphone { --w: 20cqw; position: absolute; right: 6cqw; bottom: -2cqw; }
.trio { display: flex; gap: 3cqw; justify-content: center; align-items: flex-end; }
.trio .iphone { --w: 25cqw; }
.trio .iphone:nth-child(2) { --w: 28cqw; }
.art-card { background: var(--sketch); border-radius: 22px; padding: 3cqw; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 12px 30px -14px rgba(0, 0, 0, 0.22), inset 0 0 0 1px var(--sketch-line); }
.art-card img { width: 100%; height: auto; }

/* ---------- carousels ---------- */
.carousel { position: relative; }
.track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; border-radius: 28px; }
.track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: center; display: flex; flex-direction: column; }
.slide .stage-in { flex: 1 1 auto; min-height: 0; }
.slide .caption { flex: none; }
.dots { position: absolute; z-index: 3; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 4px; pointer-events: none; }
.dots button { pointer-events: auto; width: 24px; height: 18px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.dots button::before { content: ""; width: 18px; height: 3px; border-radius: 3px; background: var(--hair); transition: background .2s, width .2s; }
.dots button[aria-current="true"]::before { background: var(--fg-2); width: 22px; }
.arrow { position: absolute; z-index: 3; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--chip); color: var(--fg); display: grid; place-items: center; opacity: 0; transition: opacity .2s; }
.arrow svg { width: 16px; height: 16px; }
.arrow.prev { left: 14px; } .arrow.next { right: 14px; }
.carousel:hover .arrow, .arrow:focus-visible { opacity: 1; }
.arrow[disabled] { opacity: 0 !important; pointer-events: none; }
@media (hover: none) { .arrow { display: none; } }
.slide .stage { border-radius: 0; flex: 1; display: flex; flex-direction: column; }
.slide .caption { padding-bottom: 46px; }

/* ---------- home sections ---------- */
.band { padding-block: 110px; }
.band.alt { background: var(--bg-alt); }
.band.tight { padding-block: 72px; }
.section-head { text-align: center; max-width: 820px; margin: 0 auto 56px; display: grid; gap: 14px; }
.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.feature + .feature { margin-top: 120px; }
.feature.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.feature.flip .feature-text { order: 2; }
.feature-text { display: grid; gap: 14px; align-content: center; min-width: 0; }
.feature-text .headline-sm { margin-top: 2px; }
.feature-text .body { margin-top: 4px; }
.feature-text .more { margin-top: 8px; }
.feature-media { min-width: 0; }
@media (min-width: 901px) {
  .feature-media .stage, .feature-media .track { aspect-ratio: 7 / 5.6; } .feature-media .slide .stage { aspect-ratio: auto; }
  .feature-media .iphone.solo { --w: 25cqw; }   /* a lone iPhone fits the 7:5.6 track above its caption */
}
.icon-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.icon-row img { width: 34px; height: 34px; padding: 7px; border-radius: 11px; background: var(--card); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), inset 0 0 0 1px var(--hair); }
@media (max-width: 900px) {
  .feature, .feature.flip { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .feature.flip .feature-text { order: 0; }
  .feature + .feature { margin-top: 84px; }
  .band { padding-block: 76px; }
}

/* highlights strip */
.highlights { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.hl { display: grid; gap: 8px; align-content: start; }
.hl .glyph { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; color: #fff; }
.hl-icon { width: 48px; height: 48px; margin-bottom: 4px; }
.hl .glyph svg { width: 22px; height: 22px; }
.hl h3 { font-size: 19px; line-height: 1.25; font-weight: 600; }
.hl p { color: var(--fg-2); font-size: 15px; line-height: 1.45; }
@media (max-width: 900px) { .highlights { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .highlights { grid-template-columns: minmax(0, 1fr); gap: 26px; } }

/* bento */
.bento { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.tile { background: var(--card); border-radius: 28px; overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.band.alt .tile { background: var(--card); }
.band:not(.alt) .tile { background: var(--bg-alt); }
.tile-text { padding: 36px 36px 22px; display: grid; gap: 10px; }
.tile-text h3 { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.12; font-weight: 700; letter-spacing: -0.01em; }
.tile-text p { color: var(--fg-2); font-size: 17px; line-height: 1.45; }
.tile .stage { margin: auto 16px 16px; border-radius: 20px; }
.tile .stage-in { padding: 6cqw 5cqw; }
@media (max-width: 820px) { .bento { grid-template-columns: minmax(0, 1fr); } .tile-text { padding: 28px 24px 18px; } }

/* design sketches (features not built yet) */
.sketch { width: 100%; max-width: 440px; background: var(--sketch); color: var(--sketch-fg); border-radius: 18px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 12px 30px -14px rgba(0, 0, 0, 0.22), inset 0 0 0 1px var(--sketch-line); font-size: 14px; line-height: 1.35; overflow: hidden; letter-spacing: -0.01em; }
.sk-h { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.55; padding: 14px 16px 6px; }
.sk-row { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-top: 1px solid var(--sketch-line); }
.sk-row:first-of-type { border-top: 0; }
.sk-row img { width: 26px; height: 26px; flex: 0 0 auto; }
.sk-row .grow { flex: 1; min-width: 0; }
.sk-row small { display: block; opacity: 0.6; font-size: 12px; }
.sk-row .v { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.tok { display: inline; padding: 1px 5px; border-radius: 6px; background: rgba(0, 113, 227, 0.14); color: var(--link); font-weight: 600; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.sk-sentence { padding: 4px 16px 14px; line-height: 1.75; }
.sk-tiles { display: flex; gap: 10px; padding: 4px 16px 16px; flex-wrap: wrap; }
.sk-tile { flex: 1 1 0; min-width: 0; background: var(--card); border-radius: 14px; padding: 10px 12px; display: grid; gap: 4px; box-shadow: inset 0 0 0 1px var(--sketch-line); }
.sk-tile img { width: 24px; height: 24px; }
.sk-tile b { font-size: 13px; } .sk-tile small { font-size: 12px; opacity: 0.6; }
.sk-code { font-family: var(--font-mono); font-size: 30px; font-weight: 600; letter-spacing: 0.04em; text-align: center; padding: 8px 16px 4px; }
.sk-dots { display: flex; justify-content: center; gap: 9px; padding: 14px 16px 6px; }
.sk-dots i { width: 13px; height: 13px; border-radius: 50%; background: var(--sketch-fg); opacity: 0.8; }
.sk-btn { display: block; margin: 8px 16px 16px; text-align: center; background: var(--blue); color: #fff; border-radius: 12px; padding: 9px; font-weight: 600; }
.sk-bar { height: 6px; border-radius: 6px; background: var(--sketch-line); overflow: hidden; width: 90px; }
.sk-bar i { display: block; height: 100%; background: var(--blue); border-radius: 6px; }
.sk-big { font-size: 40px; font-weight: 700; letter-spacing: -0.02em; padding: 2px 16px 0; font-variant-numeric: tabular-nums; }
.sk-big small { font-size: 18px; opacity: 0.6; font-weight: 600; }
.sk-spark { display: block; width: calc(100% - 32px); height: 56px; margin: 6px 16px 10px; }
.sk-legend { display: flex; gap: 14px; padding: 0 16px 14px; font-size: 12px; opacity: 0.75; flex-wrap: wrap; }
.sk-legend span::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; background: currentColor; vertical-align: 1px; }
.sk-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4cqw; width: 100%; align-items: center; }
@media (max-width: 560px) { .sk-pair { grid-template-columns: minmax(0, 1fr); } }

/* get started */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.step { background: var(--card); border-radius: 24px; padding: 30px 28px; display: grid; gap: 10px; align-content: start; }
.band:not(.alt) .step { background: var(--bg-alt); }
.step img.art { width: 100%; max-width: 240px; height: auto; margin: 0 auto 8px; }
.step h3 { font-size: 21px; font-weight: 600; line-height: 1.2; }
.step p { color: var(--fg-2); font-size: 16px; line-height: 1.45; }
@media (max-width: 820px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* closing cta */
.closing { text-align: center; display: grid; gap: 18px; justify-items: center; }
.closing > img { width: 96px; height: 96px; filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.2)); }

/* ---------- footer ---------- */
.foot { background: var(--bg-alt); color: var(--fg-2); font-size: 12px; line-height: 1.5; padding-block: 28px 40px; border-top: 1px solid var(--hair); }
.foot p + p { margin-top: 10px; }
.foot-top { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--hair); }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot-top .rk { margin-left: auto; }

/* light/dark rocker: the app's simplified hardware (soft white by day, graphite at night),
   no screen and no words. The pressed half sinks; the raised half throws a small shadow. */
.rk { -webkit-appearance: none; appearance: none; border: 0; background: none; padding: 4px; margin: -4px; cursor: pointer; color: inherit; border-radius: 18px; -webkit-tap-highlight-color: transparent; }
.rk-plate { position: relative; display: block; width: 86px; height: 46px; border-radius: 15px;
  background: linear-gradient(180deg, var(--hw-a), var(--hw-b));
  box-shadow: inset 0 0 0 1px var(--hw-e), inset 0 1.5px 0 var(--hw-h), 0 2px 0 var(--hw-c), 0 12px 20px -10px var(--hw-s);
  transition: transform .2s var(--curve-out); }
.rk:active .rk-plate { transform: scale(0.97); }
.rk-paddle { position: absolute; inset: 6px; border-radius: 10px; overflow: hidden; display: flex; align-items: center; justify-content: space-around;
  background: linear-gradient(180deg, var(--hw-a), var(--hw-b));
  box-shadow: inset 0 0 0 1px var(--hw-e), inset 0 1px 0 var(--hw-h), 0 1.5px 0 var(--hw-c), 4px 3px 6px -3px var(--hw-s);
  transform: perspective(120px) rotateY(-11deg);
  transition: transform .42s var(--ease-click), box-shadow .42s var(--curve-out); }
.rk-paddle::before, .rk-paddle::after { content: ""; position: absolute; inset: 0; pointer-events: none; transition: opacity .42s var(--curve-out); }
.rk-paddle::before { background: linear-gradient(90deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0) 55%); }
.rk-paddle::after { background: linear-gradient(270deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0) 55%); opacity: 0; }
.rk-seam { position: absolute; left: 50%; top: 5px; bottom: 5px; width: 1px; background: var(--hw-e); }
.rk svg { position: relative; z-index: 1; width: 15px; height: 15px; color: var(--hw-k); opacity: 0.28; transition: opacity .42s var(--curve-out), color .42s var(--curve-out); }
.rk-sun { color: var(--hw-light) !important; opacity: 1 !important; }
.rk[aria-pressed="true"] .rk-paddle { transform: perspective(120px) rotateY(11deg); box-shadow: inset 0 0 0 1px var(--hw-e), inset 0 1px 0 var(--hw-h), 0 1.5px 0 var(--hw-c), -4px 3px 6px -3px var(--hw-s); }
.rk[aria-pressed="true"] .rk-paddle::before { opacity: 0; }
.rk[aria-pressed="true"] .rk-paddle::after { opacity: 1; }
.rk[aria-pressed="true"] .rk-sun { color: var(--hw-k) !important; opacity: 0.28 !important; }
.rk[aria-pressed="true"] .rk-moon { opacity: 0.9; }
.rk:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .rk-plate, .rk-paddle, .rk-paddle::before, .rk-paddle::after, .rk svg { transition: none; } }

/* day <-> night: colours ease for a moment after the rocker flips */
.theming :is(body, .band, .stage, .tile, .step, .fcard, .foot, .pbar, .ptabs, .sketch, .note, .draft-ribbon, .day-sticky, .hero, .eyebrow, h1, h2, h3, p, li, a) {
  transition: background-color .7s var(--curve-out), color .7s var(--curve-out), border-color .7s var(--curve-out) !important; }
@media (prefers-reduced-motion: reduce) { .theming * { transition: none !important; } }
.foot nav a { color: var(--fg); font-size: 13px; }

/* ---------- docs layout (features, support, what's new, privacy) ---------- */
.ptabs { border-bottom: 1px solid var(--hair); background: var(--bg-alt); }
.ptabs-in { display: flex; justify-content: center; gap: clamp(18px, 6vw, 56px); padding-block: 18px 0; }
.ptabs a { display: grid; justify-items: center; gap: 6px; color: var(--fg-2); font-size: 14px; padding-bottom: 14px; border-bottom: 2px solid transparent; }
.ptabs a:hover { text-decoration: none; color: var(--fg); }
.ptabs a[aria-current="page"] { color: var(--fg); border-bottom-color: var(--fg); font-weight: 500; }
.ptabs svg { width: 30px; height: 30px; }
.docs { display: grid; grid-template-columns: 200px minmax(0, 1fr) 180px; gap: 48px; padding-block: 48px 96px; align-items: start; }
.docs.no-toc { grid-template-columns: 200px minmax(0, 1fr); }
.side { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 76px); font-size: 14px; display: grid; gap: 4px; }
.side h4, .toc h4 { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-3); margin: 0 0 6px; }
.side a { color: var(--fg-2); padding: 3px 0; display: block; }
.side a:hover { color: var(--fg); text-decoration: none; }
.side a[aria-current="page"] { color: var(--fg); font-weight: 600; }
.side .sub { padding-left: 12px; border-left: 1px solid var(--hair); margin: 2px 0 8px; display: grid; }
.side .sub a { font-size: 13px; }
.toc { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 76px); font-size: 13px; display: grid; gap: 2px; }
.toc a { color: var(--fg-2); padding: 3px 0; display: block; }
.toc a:hover { color: var(--fg); text-decoration: none; }
.toc a.on { color: var(--fg); font-weight: 600; }
@media (max-width: 1060px) { .docs { grid-template-columns: 190px minmax(0, 1fr); } .toc { display: none; } }
@media (max-width: 760px) {
  .docs, .docs.no-toc { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-block: 28px 72px; }
  .side { position: static; order: 2; border-top: 1px solid var(--hair); padding-top: 24px; }
}
.article { min-width: 0; }
.article > * + * { margin-top: 18px; }
.article h1 { font-size: clamp(34px, 5vw, 48px); line-height: 1.08; font-weight: 700; letter-spacing: -0.015em; }
.article h2 { font-size: clamp(24px, 3vw, 30px); line-height: 1.15; font-weight: 700; margin-top: 48px; letter-spacing: -0.01em; scroll-margin-top: 90px; }
.article h3 { font-size: 20px; font-weight: 600; margin-top: 30px; scroll-margin-top: 90px; }
.article p, .article li { font-size: 17px; line-height: 1.55; color: var(--fg); max-width: 68ch; }
.article p.lede { font-size: clamp(19px, 2.2vw, 22px); line-height: 1.4; color: var(--fg-2); }
.article ul, .article ol { padding-left: 1.2em; margin-bottom: 0; }
.article li + li { margin-top: 7px; }
.article li::marker { color: var(--fg-3); }
.article hr { border: 0; border-top: 1px solid var(--hair); margin-block: 40px; }
.article .stage, .article .carousel { margin-top: 30px; }
.note { background: var(--bg-alt); border-radius: 16px; padding: 16px 18px; font-size: 15px; line-height: 1.5; color: var(--fg-2); max-width: 68ch; }
.note strong { color: var(--fg); }
.related { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-top: 18px; }

/* feature index cards */
.fgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin-top: 30px; }
.fcard { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 14px; align-items: start; padding: 18px; border-radius: 18px; background: var(--bg-alt); color: var(--fg); }
.fcard:hover { text-decoration: none; background: var(--chip); }
.fcard .glyph, .fcard .ficon { grid-row: span 2; }
.ficon { width: 44px; height: 44px; }
.fcard b { font-size: 17px; font-weight: 600; line-height: 1.25; }
.fcard span { font-size: 14px; color: var(--fg-2); line-height: 1.4; }
.fcard span.glyph { color: #fff; }
.glyph { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: #fff; }
.glyph svg { width: 24px; height: 24px; }
.g-orange { background: linear-gradient(160deg, #ffb340, #ff8a00); } .g-blue { background: linear-gradient(160deg, #5ac8fa, #0a84ff); }
.g-indigo { background: linear-gradient(160deg, #8e8cf7, #5856d6); } .g-green { background: linear-gradient(160deg, #5fe08a, #28b85a); }
.g-teal { background: linear-gradient(160deg, #6ee0d8, #10a4a0); } .g-pink { background: linear-gradient(160deg, #ff8fb1, #ff375f); }
.g-gray { background: linear-gradient(160deg, #a7adba, #6e7686); } .g-yellow { background: linear-gradient(160deg, #ffd84d, #f5a300); }
.g-purple { background: linear-gradient(160deg, #d58cff, #a64bf0); } .g-red { background: linear-gradient(160deg, #ff8a7a, #ff3b30); }
.g-mint { background: linear-gradient(160deg, #7fe7c4, #00b38a); } .g-brown { background: linear-gradient(160deg, #d6a87c, #a2764d); }

/* faq */
.faq { margin-top: 8px; border-top: 1px solid var(--hair); }
.faq details { border-bottom: 1px solid var(--hair); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 36px 18px 0; position: relative; font-size: 19px; font-weight: 600; line-height: 1.3; letter-spacing: -0.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--fg-2); border-bottom: 2px solid var(--fg-2); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq .ans { padding: 0 0 20px; display: grid; gap: 12px; }
.faq .ans p, .faq .ans li { font-size: 17px; color: var(--fg-2); }

/* versions */
.version { padding-block: 8px 32px; border-bottom: 1px solid var(--hair); scroll-margin-top: 90px; }
.version h2 { margin-top: 28px; }
.version .date { color: var(--fg-2); font-size: 17px; margin-top: 6px; }

/* ---------- reveal on scroll (starts visible; only below-the-fold blocks get the pre state) ----------
   A short rise of content that is already in place: 30 px over 0.7 s, opacity over 0.9 s. Never below 0.3
   opacity, so a stalled script never leaves the page blank. Blocks that enter together are staggered
   0.15 s apart by site.js (text first, then its device shot). */
.rv { transition: opacity .9s var(--curve-out), transform .7s var(--curve-out); }
.rv.pre { opacity: 0.4; transform: translateY(30px); }

/* ---------- a day on the wall: pinned; scrolling steps through the day, and the band goes dark at night ---------- */
.day { position: relative; height: calc(100svh + 5 * 58svh); transition: background-color 1s var(--curve-out); }
.day.night { background: #000; }
.day-sticky { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 52px); height: calc(100svh - 52px); display: flex; align-items: center;
  background: var(--bg); color: var(--fg); overflow: hidden; transition: background-color 1s var(--curve-out); }
.day.night .day-sticky { background: #000; }
.day.night { --fg: #f5f5f7; --fg-2: #a1a1a6; --fg-3: #6e6e73; --accent: #ff9f0a; }
.day-in { width: 100%; box-sizing: border-box; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); grid-template-areas: "head device" "steps device"; gap: 22px 56px; align-items: center; }
.day-head { grid-area: head; align-self: end; display: grid; gap: 10px; }
.day-head .headline-sm, .day-head .eyebrow { transition: color 1s var(--curve-out); }
.day-steps { grid-area: steps; align-self: start; list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.day-step { font-size: 19px; line-height: 1.35; font-weight: 600; letter-spacing: -0.016em; color: var(--fg-3); transition: color .6s var(--curve-out); cursor: pointer; }
.day-step span { display: block; font-size: 13px; font-weight: 600; letter-spacing: 0.02em; color: var(--accent); opacity: 0; transition: opacity .6s var(--curve-out); }
.day-step.on { color: var(--fg); }
.day-step.on span { opacity: 1; }
.day-device { grid-area: device; container-type: inline-size; }
.day-device .ipad { --w: 100cqw; }
.day-device .scr img { position: absolute; inset: 0; opacity: 0; transform: scale(1.035); transition: opacity .7s var(--curve-out), transform 1.1s var(--curve-out); }
.day-device .scr img.on { opacity: 1; transform: none; }
.day-dots { display: none; justify-content: center; gap: 6px; margin-top: 16px; }
.day-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--fg-3); opacity: 0.4; transition: opacity .4s, transform .4s var(--curve-out); }
.day-dots i.on { opacity: 1; transform: scale(1.3); }
@media (max-width: 820px) {
  .day-in { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "device" "steps"; gap: 22px; text-align: center; }
  .day-head { align-self: auto; }
  .day-steps { display: grid; }
  .day-step { grid-area: 1 / 1; opacity: 0; transition: opacity .5s var(--curve-out), color .6s; font-size: 18px; }
  .day-step.on { opacity: 1; }
  .day-dots { display: flex; }
}
@media (prefers-reduced-motion: reduce) { .day-sticky, .day-step, .day-step span, .day-device .scr img, .day-dots i { transition: none; } }

/* ---------- room pictures: night turns to day (or day to night, in dark mode) as each card scrolls up ---------- */
.room-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.room-card { margin: 0; display: grid; gap: 12px; }
.room-pic { position: relative; aspect-ratio: 390 / 260; border-radius: 22px; overflow: hidden; background: var(--bg-alt); }
.room-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.room-card figcaption { text-align: center; color: var(--fg-2); font-size: 15px; font-weight: 500; }
@media (max-width: 820px) { .room-row { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .rv, .rv.pre { transition: none; opacity: 1; transform: none; } .dots button::before { transition: none; } }

/* ---------- video: muted loops that play while mostly in view, with a round pause/play button ----------
   site.js plays a clip once about half of it is on screen and pauses it when it leaves; a clip someone
   paused stays paused until they tap play. With reduced motion nothing plays by itself: the poster
   shows with a play button. */
video.vid-v { display: block; width: 100%; height: 100%; object-fit: cover; background: transparent; }
.ipad .scr video, .iphone .scr video { object-position: top center; }
.vid-btn {
  position: absolute; z-index: 4; top: 14px; right: 14px; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; color: var(--fg); background: var(--chip);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12); -webkit-tap-highlight-color: transparent; transition: transform .2s var(--curve-out);
}
.vid-btn::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; }   /* a 46 px touch target */
.stage[data-vid] .stage-in { padding-top: max(7cqw, 58px); }   /* the device starts below the button */
.vid-btn svg { grid-area: 1 / 1; width: 16px; height: 16px; transition: opacity .2s var(--curve-out); }
.vid-btn .i-play, .vid-btn.paused .i-pause { opacity: 0; }
.vid-btn.paused .i-play { opacity: 1; }
.vid-btn:active { transform: scale(0.92); }
.vid-btn:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; border-radius: 50%; }
.art-vid { position: relative; overflow: hidden; border-radius: 22px; background: var(--sketch);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 12px 30px -14px rgba(0, 0, 0, 0.22), inset 0 0 0 1px var(--sketch-line); }
.art-vid.sq { width: 46cqw; aspect-ratio: 1; }
.art-vid.wide { width: 64cqw; aspect-ratio: 4 / 3; }
@media (max-width: 734px) { .art-vid.sq { width: 64cqw; } .art-vid.wide { width: 80cqw; } }

/* ---------- Scenes: a dark film band with the room films in rounded cards ---------- */
.film {
  background: #000; color: var(--fg);
  --bg: #000; --bg-alt: #161617; --card: #1c1c1e; --fg: #f5f5f7; --fg-2: #a1a1a6; --fg-3: #86868b; --hair: #38383a;
  --link: #2997ff; --accent: #ff9f0a; --chip: #2c2c2e; --sketch: #2c2c2e; --sketch-line: rgba(255, 255, 255, 0.12);
}
.film-card { margin: 0; }
.film-media { position: relative; overflow: hidden; aspect-ratio: 3 / 2; border-radius: 28px; background: #1c1c1e; isolation: isolate; }
.film-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 22px; }
.film-sm .film-media { border-radius: 22px; }
.film-card figcaption { margin-top: 12px; text-align: center; color: var(--fg-2); font-size: 15px; line-height: 1.4; font-weight: 500; }
@media (max-width: 734px) { .film-pair { grid-template-columns: minmax(0, 1fr); } .film-media, .film-sm .film-media { border-radius: 20px; } }

/* ---------- Made for the wall: a pinned stage; the iPad starts close on one tile and pulls back ----------
   site.js adds .live (not with reduced motion) and scrubs transform/opacity with the scroll. Without it,
   the section is a plain block with the whole iPad. */
.pull { position: relative; }
.pull-sticky { padding-block: 80px; }
.pull-in { display: flex; flex-direction: column; align-items: center; gap: 38px; }
.pull-copy { text-align: center; display: grid; gap: 12px; max-width: 760px; }
.pull-stage { position: relative; width: 100%; max-width: 980px; aspect-ratio: 16 / 10; border-radius: 28px; overflow: hidden;
  background: var(--bg-alt); container-type: size; display: grid; place-items: center; isolation: isolate; }
.pull-dev { width: min(84cqw, 120cqh); container-type: inline-size; }
.pull-dev .scr img { transform-origin: 50% 50%; }   /* only the screen picture zooms; the frame never leaves the stage */
.pull-dev .ipad { --w: 100cqw; }
.pull.live { height: calc(100svh + 115svh); }
.pull.live .pull-sticky { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 52px); height: calc(100svh - 52px);
  box-sizing: border-box; padding-block: 40px 28px; display: flex; overflow: hidden; }
.pull.live .pull-in { flex: 1 1 auto; min-height: 0; justify-content: center; }
.pull.live .pull-stage { aspect-ratio: auto; flex: 1 1 auto; min-height: 0; max-height: min(600px, calc((100vw - 44px) * 0.9)); }
@media (max-height: 560px) { .pull.live .pull-copy .lede { display: none; } }
@media (max-width: 734px) { .pull-stage { border-radius: 22px; } .pull-in { gap: 32px; } }

/* ---------- iPad · iPhone · Apple Watch: a segmented control; the pictures cross-fade ---------- */
.dtabs { display: grid; gap: 26px; justify-items: center; }
.dtabs-list { position: relative; display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 4px; border-radius: 980px; background: var(--chip); }
.dtabs-ind { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 3); border-radius: 980px;
  background: var(--card); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 3px 8px -3px rgba(0, 0, 0, 0.14);
  transform: translateX(calc(var(--i, 0) * 100%)); transition: transform .32s var(--curve-out); }
.dtabs-list [role="tab"] { position: relative; z-index: 1; border: 0; background: none; font: inherit; font-size: 15px; font-weight: 600; letter-spacing: -0.01em;
  color: var(--fg-2); padding: 9px 20px; border-radius: 980px; cursor: pointer; white-space: nowrap; transition: color .16s .16s; -webkit-tap-highlight-color: transparent; }
.dtabs-list [role="tab"]:hover { color: var(--fg); }
.dtabs-list [aria-selected="true"] { color: var(--fg); }
.dtabs-stage { width: 100%; max-width: 920px; display: grid; }
.dtabs .stage-in { padding: 6cqw 5cqw 3cqw; }
.dtabs-panel { grid-area: 1 / 1; display: flex; flex-direction: column; opacity: 0; transition: opacity .35s var(--curve-out); pointer-events: none; }
.dtabs-panel .stage-in { flex: 1 1 auto; }   /* the device centres in the space; the caption keeps one place */
.dtabs-panel.on { opacity: 1; pointer-events: auto; }
.dtabs-panel .caption { padding-bottom: 4cqw; }
.dtabs .ipad { --w: 62cqw; }
.dtabs .iphone { --w: 20cqw; }
.dtabs .watch { --w: 22cqw; }
@media (max-width: 734px) {
  .dtabs .ipad { --w: 88cqw; } .dtabs .iphone { --w: 40cqw; } .dtabs .watch { --w: 36cqw; }
  .dtabs-list [role="tab"] { padding: 8px 14px; font-size: 14px; }
}

/* ---------- the top bar follows the section under it: dark over the night step and the film band ---------- */
.pbar { transition: background-color .4s var(--curve-out), border-color .4s var(--curve-out); }
.pbar-name, .pbar-links a, .pbar-menu { transition: color .4s var(--curve-out), background-color .4s var(--curve-out); }
html.bar-dark .pbar {
  --bar: rgba(22, 22, 23, 0.8); --bg: #000; --fg: #f5f5f7; --fg-2: #a1a1a6; --hair: #38383a; --link: #2997ff;
  --draft-bg: #2a1d0a; --draft-fg: #ffc46b; color-scheme: dark;
}
html.bar-dark body::before { background: rgba(22, 22, 23, 0.8); }

/* ---------- reduced motion, and the ?reduce=1 switch (site.js sets html.reduce for either) ---------- */
@media (prefers-reduced-motion: reduce) {
  .pbar, .pbar-name, .pbar-links a, .pbar-menu, .day, .dtabs-ind, .dtabs-panel, .dtabs-list [role="tab"], .vid-btn, .vid-btn svg { transition: none; }
}
html.reduce { scroll-behavior: auto; }
.reduce :is(.rv, .rv.pre) { transition: none; opacity: 1; transform: none; }
.reduce :is(.rk-plate, .rk-paddle, .rk svg) { transition: none; }
.reduce .dots button::before, .reduce .rk-paddle::before, .reduce .rk-paddle::after { transition: none; }
.reduce :is(.day-sticky, .day-step, .day-step span, .day-device .scr img, .day-dots i, .day) { transition: none; }
.reduce :is(.pbar, .pbar-name, .pbar-links a, .pbar-menu, .dtabs-ind, .dtabs-panel, .dtabs-list [role="tab"], .vid-btn, .vid-btn svg) { transition: none; }
.reduce.theming * { transition: none !important; }

/* HomePanel website · the home page: one day at Maple House (DRAFT). Everything is scoped under .dp.
   Stages: built from website/proposal (round 3). The page's light follows the clock in the top bar. */
.dp { --hh: 52px; --font-d: var(--font-display); }
.dp [hidden], [hidden] { display: none !important; }
.dp .copy h2 { color: inherit; }
.dp .copy .eyebrow { font: 600 13px/1.2 var(--font); letter-spacing: 0.06em; text-transform: uppercase; }
/* ---------- live stages ---------- */
.dp .proto { position: relative; }
.dp .proto-stage { position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--hh)); height: calc(100vh - var(--hh)); height: calc(100svh - var(--hh) - env(safe-area-inset-top, 0px));
  overflow: hidden; isolation: isolate; contain: layout paint; }
.dp .p0 { height: 260vh; } .dp .p1 { height: 220vh; } .dp .p2 { height: 720vh; } .dp .p3 { height: 430vh; } .dp .p6 { height: 300vh; }
/* each stage's section has the stage's own colour, so when Safari's bars slide away no band of the page shows under it */
.dp .p1 { background: #0b0d14; } .dp .p2 { background: #e9e9ee; } .dp .p3 { background: #08090c; } .dp .p4 { background: #f5f5f7; } .dp .p5 { background: #08090c; } .dp .p6 { background: #1d1d1d; }
.dp .copy { position: absolute; z-index: 20; left: 0; right: 0; text-align: center; padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px));
  display: grid; gap: 8px; justify-items: center; pointer-events: none; }
.dp .copy h2 { font-size: clamp(32px, 5.6vw, 64px); line-height: 1.04; }
.dp .copy p { font-size: clamp(16px, 1.9vw, 20px); max-width: 560px; line-height: 1.4; }
.dp .reduce-note { display: none; }

/* Live 1 · first light: one camera over one iPad picture */
.dp .p1 .proto-stage { background: #000; color: #f5f5f7; }
.dp .p1 .copy p { color: #a1a1a6; }
.dp .p1 .copy .eyebrow { color: #ffb340; }
.dp .p1 .copy h2 em { font-style: normal; background: linear-gradient(90deg, #ffc46b, #ff7a59 55%, #c77dff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dp .l1-cam { position: absolute; left: 0; top: 0; width: 0; height: 0; transform-origin: 0 0; }
.dp .l1-ipad { position: absolute; border-radius: 0; }
.dp .l1-ipad .bez { position: absolute; inset: 0; background: #0b0b0c; box-shadow: inset 0 0 0 1.2px #3a3a3e, 0 40px 90px -30px rgba(0, 0, 0, 0.9); }
.dp .l1-ipad .bez::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14); pointer-events: none; }
.dp .l1-scr { position: absolute; overflow: hidden; background: #000; }
.dp .l1-scr img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; }
.dp .l1-card { position: absolute; overflow: hidden; }
.dp .l1-room { position: absolute; inset: 0; }
.dp .l1-bulb { position: absolute; z-index: 10; left: 0; top: 0; transform-origin: 0 0; pointer-events: none; }
.dp .l1-icon { position: absolute; inset: 0; }
.dp .l1-halo { position: absolute; z-index: 9; left: 0; top: 0; width: 10px; height: 10px; border-radius: 50%; pointer-events: none; opacity: 0;
  background: radial-gradient(closest-side, rgba(255, 214, 140, 0.95), rgba(255, 179, 64, 0.42) 30%, rgba(255, 159, 10, 0.12) 62%, rgba(255, 159, 10, 0) 100%); mix-blend-mode: screen; }

/* Live 2 · the app's 3D map */
.dp .p2 .proto-stage { background: #e9e9ee; }
.dp .l2-map { position: absolute; inset: 0; pointer-events: none; }
.dp .l2-map .m3d { position: absolute; inset: 0; }
.dp .l2-map .m3d-ui, .dp .l2-map .m3d-labels, .dp .l2-map .m3d-nogl { display: none !important; }
.dp .l2-copy { top: 26px; color: #1d1d1f; }
.dp .l2-copy p { color: #6e6e73; }
.dp .l2-copy.night { color: #f5f5f7; } .dp .l2-copy.night p { color: #a1a1a6; }
.dp .l2-copy h2, .dp .l2-copy p { transition: color 0.6s cubic-bezier(0.45, 0, 0.2, 1); }
.dp .l2-b { opacity: 0; }
.dp .l2-pin { position: absolute; z-index: 15; left: 0; top: 0; width: 0; height: 0; pointer-events: none; opacity: 0; }
.dp .l2-pin .shadow { position: absolute; left: -14px; top: -5px; width: 28px; height: 10px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0)); }
.dp .l2-pin .stem { position: absolute; left: -1px; width: 2px; border-radius: 2px; background: linear-gradient(#ffffff, rgba(255, 255, 255, 0.75)); box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.18); }
.dp .l2-pin .bubble { position: absolute; left: -21px; width: 42px; height: 48px; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.28)); }
.dp .l2-chip { position: absolute; z-index: 20; left: 50%; display: inline-flex; align-items: center; gap: 9px; padding: 6px 14px 6px 6px; border-radius: 99px;
  background: rgba(255, 255, 255, 0.9); color: #1d1d1f; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16); font: 600 15px/1 var(--font); opacity: 0; white-space: nowrap;
  transform: translateX(-50%); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.dp .l2-chip svg { width: 26px; height: 26px; display: block; }
.dp .l2-fallback { display: none; position: absolute; inset: 0; place-items: center; padding: 24px; text-align: center; color: #6e6e73; }

/* Live 3 · scenes: the new state spreads from the chip you tap */
.dp .p3 .proto-stage { background: #f5f5f7; }
.dp .l3-layer { position: absolute; inset: 0; isolation: isolate; }
.dp .l3-A { z-index: 1; } .dp .l3-B { z-index: 2; }
.dp .l3-layer .bg { position: absolute; inset: 0; background: #f5f5f7; }
.dp .l3-layer.dark .bg { background: radial-gradient(120% 90% at 50% 40%, #191b22 0%, #08090c 70%); }
.dp .l3-copy { top: 26px; color: #1d1d1f; }
.dp .l3-copy p { color: #6e6e73; font: 600 16px/1.35 var(--font); }
.dp .l3-layer.dark .l3-copy { color: #f5f5f7; } .dp .l3-layer.dark .l3-copy p { color: #c7c7cc; }
.dp .l3-card { position: absolute; overflow: hidden; box-shadow: 0 30px 70px -28px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(0, 0, 0, 0.04); }
.dp .l3-layer.dark .l3-card { box-shadow: 0 30px 80px -24px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.06); }
.dp .l3-card > div { position: absolute; inset: 0; }
.dp .l3-chips { position: absolute; z-index: 25; left: 0; right: 0; display: flex; justify-content: center; gap: 10px; padding-inline: 16px; }
.dp .l3-chip { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 20px 0 12px; border-radius: 26px; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, 0.94); color: #1d1d1f; font: 600 16px/1 var(--font); white-space: nowrap;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.04); transition: box-shadow 0.45s cubic-bezier(0.45, 0, 0.2, 1), background 0.45s; }
.dp .l3-chip .ic { width: 30px; height: 30px; flex: 0 0 auto; }
.dp .l3-chip.on { box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14), 0 0 0 2.5px #ffb340; }
@media (max-width: 560px) { .dp .l3-chip { height: 40px; padding: 0 11px 0 8px; font-size: 12.5px; gap: 6px; border-radius: 20px; } .dp .l3-chip .ic { width: 20px; height: 20px; } .dp .l3-chips { gap: 5px; padding-inline: 6px; } }

/* Live 4 · 08:10 the last one out: the automation as a sentence; each part changes the room as the line reaches it */
.dp .p4 .proto-stage { background: #f5f5f7; }
.dp .l4-copy { top: 26px; color: #1d1d1f; } .dp .l4-copy p { color: #6e6e73; }
.dp .l4-card { position: absolute; overflow: hidden; box-shadow: 0 30px 70px -28px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(0, 0, 0, 0.04); }
.dp .l4-room { position: absolute; inset: 0; }
.dp .l4-ripple { position: absolute; z-index: 3; left: 0; top: 0; width: 10px; height: 10px; border-radius: 50%; pointer-events: none; opacity: 0;
  box-shadow: 0 0 0 2px rgba(255, 179, 64, 0.95), 0 0 24px 4px rgba(255, 179, 64, 0.35); }
.dp .l4-row { position: absolute; left: 0; right: 0; }
.dp .l4-line { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
.dp .l4-node { position: absolute; top: 0; transform: translateX(-50%); display: grid; justify-items: center; gap: 7px; width: 128px; text-align: center; }
.dp .l4-node .tile { width: 64px; height: 64px; border-radius: 18px; background: #fff; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.05); transition: box-shadow 0.35s cubic-bezier(0.45, 0, 0.2, 1); }
.dp .l4-node .ic { width: 40px; height: 40px; display: block; }
.dp .l4-node.hot .tile { box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12), 0 0 0 2.5px #ffb340; }
.dp .l4-node .w { font: 600 11px/1 var(--font); letter-spacing: 0.07em; text-transform: uppercase; color: #86868b; }
.dp .l4-node b { font: 600 15px/1.2 var(--font); color: #1d1d1f; }
@media (max-width: 560px) { .dp .l4-node { width: 86px; gap: 5px; } .dp .l4-node .tile { width: 50px; height: 50px; border-radius: 14px; } .dp .l4-node .ic { width: 32px; height: 32px; } .dp .l4-node b { font-size: 12.5px; } .dp .l4-node .w { font-size: 9.5px; } }

/* Live 5 · 21:00 in your hand, on your wrist: one chip, from the room to the iPhone to the Watch */
.dp .p5 .proto-stage { background: radial-gradient(120% 90% at 50% 40%, #191b22 0%, #08090c 70%); color: #f5f5f7; }
.dp .l5-copy { top: 26px; } .dp .l5-copy p { color: #a1a1a6; }
.dp .l5-dev { position: absolute; opacity: 0; }
.dp .l5-dev .bez { position: absolute; inset: 0; background: #0b0b0c; box-shadow: inset 0 0 0 1.2px #3a3a3e, 0 40px 90px -30px rgba(0, 0, 0, 0.95); }
.dp .l5-dev .bez::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14); }
.dp .l5-dev .scr { position: absolute; overflow: hidden; background: #000; }
.dp .l5-dev .scr img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.dp .l5-phone .island { position: absolute; background: #000; border-radius: 99px; }
.dp .l5-watch .crown { position: absolute; background: linear-gradient(90deg, #2a2a2e, #4a4a50); border-radius: 3px; }
.dp .l5-chip { position: absolute; z-index: 12; left: 0; top: 0; overflow: hidden; background: #fff; color: #1d1d1f; box-shadow: 0 0 0 2.5px #ffb340, 0 12px 30px rgba(0, 0, 0, 0.35); }
.dp .l5-chip .ic { position: absolute; left: 0; top: 0; }
.dp .l5-chip .lb { position: absolute; left: 0; top: 0; white-space: nowrap; font-family: var(--font); font-weight: 600; line-height: 1.12; transform-origin: 0 0; }
.dp .l5-chip .lb small { display: block; font-weight: 500; opacity: 0.6; }

/* Live 6 · 23:00 good night: Maple House at night, in the covers' night palette */
.dp .p6 .proto-stage { background: #1d1d1d; color: #f5f5f7; }
.dp .l6-gl { position: absolute; inset: 0; }
.dp .l6-gl canvas { display: block; width: 100%; height: 100%; }
.dp .l6-veil { position: absolute; inset: 0; background: #000; opacity: 0; pointer-events: none; }
.dp .l6-a { top: 26px; } .dp .l6-a p { color: #a1a1a6; }
.dp .l6-b { z-index: 22; }
.dp .l6-b p.eyebrow { color: #ffb340; }
.dp .l6-badge { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; padding: 11px 18px; border-radius: 99px; background: #f5f5f7; color: #1d1d1f; font: 600 15px/1 var(--font); pointer-events: auto; }
.dp .l6-halo, .dp .l6-glow { position: absolute; z-index: 9; left: 0; top: 0; width: 10px; height: 10px; border-radius: 50%; pointer-events: none; opacity: 0;
  background: radial-gradient(closest-side, rgba(255, 214, 140, 0.95), rgba(255, 179, 64, 0.42) 30%, rgba(255, 159, 10, 0.12) 62%, rgba(255, 159, 10, 0) 100%); mix-blend-mode: screen; }
.dp .l6-bulb { position: absolute; z-index: 10; left: 0; top: 0; pointer-events: none; opacity: 0; }
.dp .l6-icon { position: absolute; inset: 0; }


/* ---------- the reading parts between the stages ---------- */
.dp-ch { padding-block: clamp(64px, 10vw, 128px); }
.dp-wrap { max-width: 980px; margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); display: grid; gap: clamp(56px, 8vw, 104px); }
.dp-block { display: grid; gap: 12px; max-width: 780px; align-content: start; }
.dp-block .headline { font-size: clamp(32px, 5vw, 52px); }
.dp-time { font: 600 15px/1 var(--font-mono); color: var(--accent); font-variant-numeric: tabular-nums; letter-spacing: 0; margin: 0 0 4px; }
.dp-body { font-size: clamp(19px, 2.1vw, 24px); line-height: 1.42; color: var(--fg-2); font-weight: 500; letter-spacing: -0.01em; margin: 0; }
.dp-body strong { color: var(--fg); font-weight: 600; }
.dp-block .more { margin-top: 6px; }
.dp-intro { justify-items: center; text-align: center; margin-inline: auto; }
.dp-appicon { width: 92px; height: 92px; margin: 6px 0 4px; }
.dp-h1 { font-size: clamp(48px, 8vw, 84px); line-height: 1.02; font-weight: 700; letter-spacing: -0.02em; }
.dp-promise { font: 700 clamp(30px, 5vw, 56px)/1.06 var(--font-display); letter-spacing: -0.02em; color: var(--fg); margin: 0; }
.dp-promise span { background: linear-gradient(90deg, #ff9f0a, #ff375f 55%, #bf5af2); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dp-cta { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: center; margin-top: 10px; }
.dp-meta { color: var(--fg-3); font-size: 14px; margin: 0; }
.dp-end .fgrid { margin-top: 0; }
.dp-still { display: none; margin: 0 auto; padding: 28px var(--gutter-r) 0 var(--gutter-l); max-width: 980px; }
.dp-still img { width: 100%; height: auto; border-radius: 18px; }
.dp-still figcaption { color: var(--fg-2); font-size: 15px; margin-top: 10px; }
html.reduce .dp .proto { height: auto !important; background: transparent; color: var(--fg); }   /* only stills and words here: they sit on the page's own colour, so they read in either theme */
html.reduce .dp .proto-stage { display: none; }
html.reduce .dp .dp-still { display: block; }

/* ---------- the clock in the top bar (home page only) ---------- */
.pbar-clock { display: none; align-items: center; gap: 6px; padding: 5px 11px 5px 9px; border-radius: 99px; background: var(--chip); color: var(--fg);
  font: 600 14px/1 var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: 0; white-space: nowrap; }
.pbar-clock i { width: 12px; height: 12px; border-radius: 50%; background: #ffb340; box-shadow: 0 0 0 3px rgba(255, 179, 64, 0.25); transition: background 0.6s, box-shadow 0.6s; }
.pbar-clock[data-night="1"] i { background: #8e9cff; box-shadow: 0 0 0 3px rgba(142, 156, 255, 0.25); }
html.is-day .pbar-clock { display: inline-flex; margin-left: auto; }
/* (the bar keeps its own layout; the day clock docks in its middle) */

@media (max-width: 400px) { .pbar-clock { font-size: 13px; padding: 4px 9px 4px 7px; } }

/* ---------- the page's light follows the clock: dawn, day, dusk and night behind the reading parts ---------- */
html.is-day body { transition: background-color 1.2s cubic-bezier(0.45, 0, 0.2, 1), color 1.2s cubic-bezier(0.45, 0, 0.2, 1); }
html.is-day .pbar, html.is-day .pbar-clock, html.is-day .foot, html.is-day .dp-ch, html.is-day .dp-ch h1, html.is-day .dp-ch h2, html.is-day .dp-ch p,
html.is-day .dp-ch strong, html.is-day .fcard, html.is-day .fcard span, html.is-day .fcard b {
  transition: background-color 1.2s cubic-bezier(0.45, 0, 0.2, 1), color 1.2s cubic-bezier(0.45, 0, 0.2, 1), border-color 1.2s cubic-bezier(0.45, 0, 0.2, 1); }
html.is-day .dp-ch { background: transparent; }

/* ---------- v9 · the opening: the logo and the headline, "Scroll to see a day", the iPad's dim screen, the wake ---------- */
.dp { --round: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, system-ui, sans-serif; }
.dp .p0 .proto-stage { color: var(--fg); }
.dp .o-hero { position: absolute; z-index: 20; left: 0; right: 0; top: 0; display: grid; justify-items: center; text-align: center; gap: 8px; padding: clamp(18px, 3.5vh, 40px) 24px 0; }
.dp .o-hero .dp-appicon { width: clamp(64px, 9vh, 84px); height: clamp(64px, 9vh, 84px); margin: 0 0 2px; }
.dp .o-hero .dp-h1 { margin: 0; }
.dp .dp-lede { margin: 4px 0 0; max-width: 580px; font-size: clamp(17px, 2vw, 21px); line-height: 1.38; color: var(--fg-2); font-weight: 500; letter-spacing: -0.012em; }
.dp .o-soon { margin: 2px 0 0; font-size: 14px; color: var(--fg-3); font-weight: 500; }
.dp .o-cue { position: absolute; z-index: 25; left: 0; right: 0; bottom: 22px; margin-inline: auto; width: max-content; display: grid; justify-items: center; gap: 4px; border: 0; cursor: pointer;
  background: var(--chip); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-radius: 99px; padding: 10px 20px 8px; font: 600 15px/1.1 var(--font); color: var(--fg); letter-spacing: -0.01em; }
.dp .o-cue svg { width: 14px; height: 8px; animation: dp-nudge 1.8s cubic-bezier(0.45, 0, 0.55, 1) infinite; }
@keyframes dp-nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(3px); } }
html.reduce .dp .o-cue svg { animation: none; }
.dp .o-ipad { position: absolute; z-index: 5; left: 0; top: 0; background: #1b1b1e; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 0 0 1.5px #3a3a3e, 0 30px 60px -20px rgba(0, 0, 0, 0.45); }
.dp .o-scr { position: absolute; z-index: 6; left: 0; top: 0; overflow: hidden; background: #000; }
.dp .o-home { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.dp .o-dim { display: grid; place-content: center; justify-items: center; color: rgba(255, 255, 255, 0.85); }
.dp .o-scr .o-dim { position: absolute; inset: 0; display: block; }
.dp .o-scr .o-dim > * { position: absolute; left: 0; top: 0; white-space: nowrap; }
.dp .o-dim .t { font-family: var(--round); font-weight: 200; font-variant-numeric: tabular-nums; line-height: 1; letter-spacing: -0.01em; }
.dp .o-dim .d { font-weight: 500; color: rgba(255, 255, 255, 0.55); line-height: 1.2; letter-spacing: -0.01em; }
.dp .o-dim .w { display: flex; align-items: center; color: rgba(255, 255, 255, 0.55); line-height: 1; }
.dp .o-dim .w b { font-weight: 500; }
.dp .o-dim .wi { position: relative; display: block; }
.dp .o-dim .wi img { position: absolute; inset: 0; width: 100%; height: 100%; }
.dp .o-dim .wd { opacity: 0; }
.dp .o-a { z-index: 20; bottom: 40px; color: rgba(255, 255, 255, 0.55); }
.dp .o-a p { margin: 0 auto; font-size: clamp(15px, 1.8vw, 19px); font-weight: 500; }
.dp .o-b { z-index: 20; color: #f5f5f7; }
.dp .o-b h2 { font-size: clamp(30px, 4.6vw, 52px); }
.dp .o-b p { margin: 10px auto 0; color: rgba(245, 245, 247, 0.68); font-weight: 500; }
/* reduced motion: the opening as words and the 07:00 picture */
.dp .dp-still-open { display: none; text-align: center; justify-items: center; gap: 10px; padding-top: 40px; }
html.reduce .dp .dp-still-open { display: grid; }
.dp .dp-still-img { width: 100%; max-width: 900px; border-radius: 22px; margin-top: 24px; }
.dp .dp-still-cap { color: var(--fg-2); font-size: 15px; margin: 6px 0 0; }

/* ---------- v9 · between the moments the clock runs on, in the dim screen's own face ---------- */
.dp-tick { height: 78vh; display: grid; place-items: center; }
.dp-tick-short { height: 46vh; }
.dp-tick .tk { font: 200 clamp(84px, 20vw, 210px)/1 var(--round, ui-rounded, system-ui); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; color: var(--fg); }
html.reduce .dp-tick { height: 38vh; }

/* ---------- v9 · 23:00, the panel is a clock again ---------- */
.dp-dim { min-height: 92vh; display: grid; place-content: center; justify-items: center; gap: 28px; background: #000; padding: 80px 16px; }
.dp-dim .o-dim .t { font-size: clamp(96px, 22vw, 220px); }
.dp-dim .o-dim .d { font-size: clamp(20px, 4.4vw, 44px); margin-top: 10px; }
.dp-dim .o-dim .w { font-size: clamp(20px, 4.4vw, 44px); gap: 12px; margin-top: 18px; }
.dp-dim .o-dim .wi { width: 1.3em; height: 1.3em; }
.dp-dim-cap { margin: 0; color: rgba(255, 255, 255, 0.5); font-size: clamp(15px, 1.8vw, 19px); font-weight: 500; text-align: center; }

/* ---------- v9 · 20:30: the evening room and the scene chips, dark ---------- */
.dp .p3 .l3-chip { background: #1c1c1e; color: #f5f5f7; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08); }
.dp .p3 .l3-chip.on { box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4), 0 0 0 2.5px #ffb340; }
.dp .p3 .l3-copy p { font: 500 clamp(16px, 1.9vw, 20px)/1.4 var(--font); color: #a1a1a6; max-width: 560px; margin-inline: auto; }

/* ---------- v9 · the end: the sign-off and everything HomePanel does ---------- */
.dp .dp-end .dp-intro .dp-h1 { font-size: clamp(44px, 7vw, 72px); }
.dp .dp-promise { text-wrap: balance; }
.dp .l6-bulb { display: none; }
.dp .dp-still-open .dp-appicon { width: 92px; height: 92px; border-radius: 0; }
/* copy that comes in later starts hidden, so nothing shows through while the page loads */
.dp .o-a, .dp .o-b, .dp .l2-b { opacity: 0; visibility: hidden; }

/* ==================================================================================================================
   v11 · one clock for the day; the iPad at 07:00; the Watch and the iPhone at 12:30; the guest remote at 20:30
   ================================================================================================================== */
/* the day's clock: one element, big in the opening, docked in the top bar, big again at 23:00 (placed by day.js) */
.dp-clock { position: fixed; z-index: 60; left: 0; top: -100px; margin: 0; white-space: nowrap; pointer-events: none; border-radius: 99px;
  font-family: var(--round, ui-rounded, system-ui); font-variant-numeric: tabular-nums; line-height: 1; letter-spacing: -0.01em; color: var(--fg); }
.dp-clock.docked { background: var(--chip); color: var(--fg); transition: background-color 1.2s cubic-bezier(0.45, 0, 0.2, 1), color 1.2s cubic-bezier(0.45, 0, 0.2, 1); }
html:not(.is-day) .dp-clock { display: none; }
html.is-day .pbar-clock { display: none !important; }
/* each moment says which device it's on */
.dp .copy .dev { font: 600 13px/1.2 var(--font); letter-spacing: 0.06em; text-transform: uppercase; color: #ff9f0a; margin: 0 0 8px; }
/* the opening: the words, then the panel's date and weather under the day's clock */
.dp .o-hero { padding-top: 0; }
.dp .o-under { position: absolute; z-index: 20; left: 0; right: 0; display: grid; justify-items: center; color: rgba(255, 255, 255, 0.55); opacity: 0; visibility: hidden; }
.dp .o-under .d { font-weight: 500; line-height: 1.2; letter-spacing: -0.01em; }
.dp .o-under .w { display: flex; align-items: center; line-height: 1; }
.dp .o-under .w b { font-weight: 500; }
.dp .o-under .wi { position: relative; display: block; }
.dp .o-under .wi img { position: absolute; inset: 0; width: 100%; height: 100%; }
.dp .o-under .wd { opacity: 0; }
.dp .o-a { bottom: 40px; }
/* 07:00 · the iPad on the wall */
.dp .p1 .proto-stage { background: #0b0d14; color: #f5f5f7; }
.dp .w-copy { color: #f5f5f7; }
.dp .w-copy p:not(.dev) { color: #a1a1a6; }
.dp .w-ipad { position: absolute; z-index: 5; background: #1b1b1e; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 0 0 1.5px #3a3a3e, 0 30px 70px -24px rgba(0, 0, 0, 0.9); }
.dp .w-scr { position: absolute; z-index: 6; overflow: hidden; background: #000; }
.dp .w-scr img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.dp .w-dim { position: absolute; inset: 0; background: #000; opacity: 0.88; }
/* 12:30 · the Watch, then the iPhone with the map in its screen */
.dp .l2-dev { position: absolute; z-index: 8; }
.dp .l2-dev .bez { position: absolute; inset: 0; background: #0b0b0c; box-shadow: inset 0 0 0 1.2px #3a3a3e, 0 30px 70px -26px rgba(0, 0, 0, 0.6); }
.dp .l2-watch .scr { position: absolute; background: #000; }
.dp .l2-watch .crown { position: absolute; background: linear-gradient(90deg, #2a2a2e, #4a4a50); border-radius: 3px; }
.dp .l2-phone .island { position: absolute; z-index: 12; background: #000; border-radius: 99px; }
.dp .l2-phone { opacity: 0; }
.dp .l2-scr { position: absolute; z-index: 9; overflow: hidden; background: #e9e9ee; opacity: 0; isolation: isolate; }
.dp .l2-chip { left: 0; transform: none; display: flex; align-items: center; gap: 0.6em; opacity: 1; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18); z-index: 14; -webkit-backdrop-filter: none; backdrop-filter: none; overflow: hidden; }
.dp .l2-chip .app { position: absolute; left: 0.9em; top: 0.75em; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55); white-space: nowrap; }
.dp .l2-chip .av { flex: 0 0 auto; display: block; }
.dp .l2-chip .av svg { width: 100%; height: 100%; }
.dp .l2-chip .tx { line-height: 1.15; }
/* 20:30 · the guest remote */
.dp .l3-remote { position: absolute; z-index: 10; }
.dp .l3-remote .bez { position: absolute; inset: 0; background: #0b0b0c; box-shadow: inset 0 0 0 1.2px #3a3a3e, 0 30px 70px -20px rgba(0, 0, 0, 0.95); }
.dp .l3-remote .scr { position: absolute; overflow: hidden; background: #000; }
.dp .l3-remote .scr img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.dp .l3-remote .island { position: absolute; z-index: 2; background: #000; border-radius: 99px; }
.dp .l3-remote .tap { position: absolute; z-index: 3; opacity: 0; box-shadow: 0 0 0 2.5px #ffb340, 0 0 22px rgba(255, 179, 64, 0.45); }
.dp .p3 .l3-chips { display: none; }
/* 23:00 · the clock comes back down into the panel's dim screen */
.dp-dim .dim-stack { display: grid; justify-items: center; color: rgba(255, 255, 255, 0.55); }
.dp-dim .dim-slot { width: 10px; height: clamp(96px, 22vw, 200px); }
.dp-dim .dim-stack .d { font-size: clamp(20px, 4.4vw, 40px); font-weight: 500; line-height: 1.2; margin-top: 12px; }
.dp-dim .dim-stack .w { display: flex; align-items: center; gap: 12px; margin-top: 18px; font-size: clamp(20px, 4.4vw, 40px); line-height: 1; }
.dp-dim .dim-stack .w b { font-weight: 500; }
.dp-dim .dim-stack .wi { display: block; width: 1.3em; height: 1.3em; }
.dp-dim .dim-stack .wi img { width: 100%; height: 100%; }
html.reduce .dp-dim .dim-slot { width: auto; height: auto; }
html.reduce .dp-dim .dim-slot::before { content: "23:00"; font: 200 clamp(96px, 22vw, 200px)/1 var(--round, ui-rounded, system-ui); color: rgba(255, 255, 255, 0.85); }
/* the device line keeps its look in every moment (the dark 07:00 and 20:30 copy rules are more specific than .dev) */
.dp .proto-stage .copy p.dev { font: 600 13px/1.2 var(--font); letter-spacing: 0.06em; text-transform: uppercase; color: #ff9f0a; margin: 0 0 8px; max-width: none; }

/* the scroll prompt, the way Apple's pages do it: quiet words and a thin chevron that drifts down, no box */
.dp .o-cue { background: none; -webkit-backdrop-filter: none; backdrop-filter: none; border-radius: 12px; padding: 8px 14px; gap: 10px;
  font: 500 15px/1.2 var(--font); letter-spacing: -0.01em; color: var(--fg-2); transition: color 0.2s ease; }
.dp .o-cue:hover { color: var(--fg); }
.dp .o-cue:focus-visible { outline: 2px solid #0071e3; outline-offset: 2px; }
.dp .o-cue svg { width: 20px; height: 11px; animation: dp-drift 2.6s cubic-bezier(0.45, 0, 0.55, 1) infinite; }
@keyframes dp-drift { 0%, 100% { transform: translateY(-2px); opacity: 0.45; } 50% { transform: translateY(4px); opacity: 1; } }

/* ==================================================================================================================
   08:10 + 12:30 · one stage: the house from the front garden, then the map; the Watch beside it at 12:30
   ================================================================================================================== */
.dp .l2-scr { opacity: 1; background: #e9e9ee; border-radius: 0; z-index: 2; }
.dp .l2-a { opacity: 0; visibility: hidden; }
.dp .l2-phone { display: none; }
.dp .l2-pin .lab { position: absolute; left: 25px; padding: 3px 9px; border-radius: 99px; background: rgba(255, 255, 255, 0.94); color: #1d1d1f;
  font: 600 12px/1.2 var(--font); white-space: nowrap; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16); }
.dp .l2-chip { left: 0; transform: none; z-index: 14; padding: 6px 14px 6px 6px; font: 600 14px/1 var(--font); background: rgba(255, 255, 255, 0.94); color: #1d1d1f; overflow: visible; }
.dp .l2-chip .av { width: 24px; height: 24px; }
.dp .l2-watch { z-index: 18; transform: translateY(120vh); visibility: hidden; transform-origin: 50% 60%; will-change: transform; }
.dp .l2-watch .scr { overflow: hidden; color: #fff; isolation: isolate; }
.dp .l2-watch .wt { position: absolute; left: 0; top: 0; z-index: 2; font-family: var(--round, ui-rounded, system-ui); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; line-height: 1; letter-spacing: -0.01em; color: #fff; }
.dp .l2-watch .wn { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; gap: 0.2em; padding: 2.05em 0.8em 0.95em; background: #000; transform: translateY(106%); font-family: var(--font); }
.dp .l2-watch .wn-app { display: flex; align-items: center; gap: 0.45em; margin-bottom: 0.3em; font-size: 0.8em; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; color: rgba(235, 235, 245, 0.6); white-space: nowrap; }
.dp .l2-watch .wn-app img { width: 2em; height: 2em; border-radius: 50%; }
.dp .l2-watch .wn-app span { margin-left: auto; text-transform: none; letter-spacing: 0; }
.dp .l2-watch .wn-t { font-size: 1.08em; font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; }
.dp .l2-watch .wn-b { margin: 0; font-size: 1em; line-height: 1.2; color: rgba(235, 235, 245, 0.6); }
.dp .l2-watch .wn-btn { margin-top: auto; display: grid; place-items: center; height: 2.6em; border-radius: 1.3em; background: rgba(255, 255, 255, 0.16); font-size: 1em; font-weight: 600; }

/* ==================================================================================================================
   20:30 + 21:00 · one room: the guest remote, then your iPhone; a fingertip on the screen; words where things happen
   ================================================================================================================== */
.dp .l3-cb { opacity: 0; visibility: hidden; }
.dp .l3-dev-b { visibility: hidden; }
.dp .l3-remote .scr img.s1 { visibility: hidden; }
.dp .l3-remote .touch { position: absolute; z-index: 4; border-radius: 50%; opacity: 0; pointer-events: none;
  background: rgba(255, 255, 255, 0.38); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.85), 0 2px 10px rgba(0, 0, 0, 0.35); }
.dp .l3-lab { position: absolute; z-index: 12; left: 0; top: 0; opacity: 0; visibility: hidden; padding: 5px 11px; border-radius: 99px; white-space: nowrap;
  background: rgba(255, 255, 255, 0.94); color: #1d1d1f; font: 600 13px/1.2 var(--font); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35); pointer-events: none; }

/* ==================================================================================================================
   06:45 → 07:00 · a real sunrise behind the app's own blind; at 07:00 the blind goes up and the morning comes in
   ================================================================================================================== */
.dp .o-room { position: absolute; inset: 0; z-index: 1; opacity: 0; pointer-events: none; }
.dp .o-light { position: absolute; inset: -10%; opacity: 0; background: radial-gradient(60% 55% at 50% 42%, rgba(255, 236, 205, 0.9), rgba(255, 236, 205, 0) 70%); }
.dp .o-win { position: absolute; overflow: hidden; border-radius: 14px; isolation: isolate; }
.dp .o-sky { position: absolute; inset: 0; }
.dp .o-sky.n { background: linear-gradient(180deg, #060917 0%, #0d1230 55%, #191c3b 100%); }
.dp .o-sky.d { opacity: 0; background: linear-gradient(180deg, #1f2a58 0%, #4b4478 32%, #b86f7e 58%, #f0a07c 78%, #ffd39a 100%); }
.dp .o-sky.m { opacity: 0; background: linear-gradient(180deg, #6f9fd8 0%, #a9c4e8 40%, #f1d2bd 78%, #ffe6c2 100%); }
.dp .o-sun { position: absolute; left: 0; top: 0; width: 0; height: 0; }
.dp .o-sun::before { content: ""; position: absolute; left: -45vmin; top: -45vmin; width: 90vmin; height: 90vmin; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 232, 178, 0.9), rgba(255, 196, 120, 0.45) 35%, rgba(255, 170, 110, 0) 100%); }
.dp .o-sun::after { content: ""; position: absolute; left: -6vmin; top: -6vmin; width: 12vmin; height: 12vmin; border-radius: 50%;
  background: radial-gradient(closest-side, #fffaf0, #ffe3a6 70%, rgba(255, 227, 166, 0)); }
.dp .o-hills { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 16%; }
.dp .o-blind { position: absolute; left: 0; top: 0; overflow: visible; }
.dp .o-frame { position: absolute; inset: 0; border-radius: 14px; border: 6px solid #1e202a; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25); pointer-events: none; }
.dp .o-hero, .dp .o-under, .dp .o-cue, .dp .o-a, .dp .o-c { z-index: 20; }
.dp .o-c { color: #3a3a3c; text-align: center; }
.dp .o-c p { margin: 0 auto; font-size: clamp(15px, 1.8vw, 19px); font-weight: 600; }
.dp .o-c { opacity: 0; visibility: hidden; }
.dp .o-a { text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5); }
/* 07:00 · the iPad on a wall in the morning light */
.dp .p0 { background: #efe7dd; }
.dp .p1, .dp .p1 .proto-stage { background: #efe7dd; color: #1d1d1f; }
.dp .w-copy { color: #1d1d1f; }
.dp .w-copy p:not(.dev) { color: #6e6e73; }
.dp .w-ipad { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 0 0 1.5px #2c2c30, 0 30px 70px -24px rgba(60, 40, 20, 0.45); }

/* 07:00 · the fingertip that wakes the panel (the same touch as on the phones) */
.dp .w-scr .touch { position: absolute; z-index: 4; border-radius: 50%; opacity: 0; pointer-events: none;
  background: rgba(255, 255, 255, 0.38); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.85), 0 2px 10px rgba(0, 0, 0, 0.35); }
/* 23:00 · the chip under the words */
.dp .l6-chip { visibility: hidden; }

/* ==================================================================================================================
   site v12 · 06:45 → Good morning, one camera. The window is the screen; the blind goes up; the camera pulls back and
   it's a window in the wall (the page's own morning colour); along the wall to the iPad; in on it: Good morning.
   Everything is placed in screen pixels each frame (liveOpen: box()), so nothing is scaled with a transform.
   ================================================================================================================== */
.dp .p0 { height: 580vh; }
.dp .o-scene { position: absolute; inset: 0; z-index: 1; opacity: 0; pointer-events: none; }
.dp .o-scene .o-win { position: absolute; left: 0; top: 0; z-index: 1; overflow: hidden; border-radius: 0; isolation: isolate; }
.dp .o-scene .o-sun { left: 58%; top: 100%; width: 0; height: 0; }
.dp .o-scene .o-sun::before { left: 0; top: 0; width: 100%; height: 100%; }
.dp .o-scene .o-sun::after { left: 43.3%; top: 43.3%; width: 13.4%; height: 13.4%; }
.dp .o-scene .o-blind { width: 100%; height: 100%; }
.dp .o-scene .o-frame { inset: auto; left: 0; top: 0; z-index: 2; box-sizing: border-box; border: 0 solid #fbfaf7; border-radius: 3px;
  box-shadow: none; outline: 1px solid rgba(120, 96, 70, 0.10); outline-offset: -1px; }
.dp .o-sill { position: absolute; z-index: 3; left: 0; top: 0; border-radius: 2px; background: linear-gradient(180deg, #ffffff 0%, #f3efe8 55%, #e4ddd2 100%); }
.dp .o-scene .o-ipad { z-index: 4; }
.dp .o-iscr { position: absolute; z-index: 5; left: 0; top: 0; overflow: hidden; background: #000; }
.dp .o-iscr > img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.dp .o-idim { position: absolute; inset: 0; background: #000; opacity: 0.88; }
.dp .o-iscr .touch { position: absolute; z-index: 4; border-radius: 50%; opacity: 0; pointer-events: none;
  background: rgba(255, 255, 255, 0.38); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.85), 0 2px 10px rgba(0, 0, 0, 0.35); }
.dp .o-c { color: #ffffff; text-shadow: 0 1px 14px rgba(40, 30, 40, 0.45); }
.dp .o-w { color: #1d1d1f; opacity: 0; visibility: hidden; }
.dp .o-w p:not(.dev) { color: #6e6e73; }

/* 07:00 · the iPad's dim screen (ScreensaverView in Wall/WallMode.swift): black; the time 140 pt thin rounded at 85 %;
   the long date 28 pt medium and the weather (36 pt icon, 28 pt temperature) at 55 %; sizes on a 1180-point screen (--k).
   It lies over the Home page, as the app's overlay does, and goes on a touch: easeOut 0.3 s (back: easeInOut 0.8 s). */
.dp .o-ss { position: absolute; inset: 0; z-index: 3; --k: 0.3; background: #000; display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: rgba(255, 255, 255, 0.85); transition: opacity 0.8s cubic-bezier(0.42, 0, 0.58, 1); }
.dp .o-iscr.awake .o-ss { opacity: 0; transition: opacity 0.3s cubic-bezier(0, 0, 0.58, 1); }
.dp .o-ss .t { font-family: var(--round); font-weight: 200; font-size: calc(var(--k) * 140px); line-height: 1.19; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.dp .o-ss .d { margin-top: calc(var(--k) * 10px); font-weight: 500; font-size: calc(var(--k) * 28px); line-height: 1.19; color: rgba(255, 255, 255, 0.55); letter-spacing: -0.01em; }
.dp .o-ss .w { margin-top: calc(var(--k) * 18px); display: flex; align-items: center; gap: calc(var(--k) * 10px); font-size: calc(var(--k) * 28px); line-height: 1;
  color: rgba(255, 255, 255, 0.55); }
.dp .o-ss .w img { width: calc(var(--k) * 36px); height: calc(var(--k) * 36px); display: block; }
.dp .o-ss .w b { font-weight: 500; }
/* the fingertip: a soft, slightly oval pad that comes down out of focus, lands, and a ring spreads from it on contact */
.dp .o-tp { position: absolute; z-index: 6; left: 0; top: 0; opacity: 0; pointer-events: none; }
.dp .o-tp .pad { position: absolute; inset: 0; border-radius: 50%; transform: rotate(-14deg) scaleX(0.84);
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.52) 58%, rgba(255, 255, 255, 0.18) 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.62), 0 0 18px 3px rgba(255, 255, 255, 0.26), 0 5px 14px rgba(0, 0, 0, 0.4); }
.dp .o-tp .ring { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, 0.85); opacity: 0; }
.dp .o-tp.hit .ring { animation: dp-ring 0.55s cubic-bezier(0, 0, 0.58, 1) both; }
@keyframes dp-ring { from { opacity: 0.9; transform: scale(0.8); } to { opacity: 0; transform: scale(2.3); } }
html.reduce .dp .o-tp.hit .ring { animation: none; }

/* 23:00 · the panel's dim screen is part of the Good night stage: the clock comes down into it while the house goes
   dark, then the page goes on (the separate 23:00 section is the reduced-motion still only) */
.dp .p6 { height: 300vh; }
html:not(.reduce) .dp-dim { display: none; }
.dp .l6-dim { position: absolute; inset: 0; z-index: 25; display: grid; place-content: center; justify-items: center; gap: 28px; pointer-events: none; padding: 0 16px; }
.dp .l6-dim .dim-stack { display: grid; justify-items: center; color: rgba(255, 255, 255, 0.55); }
.dp .l6-dim .dim-slot { width: 10px; height: clamp(96px, 22vw, 200px); }
.dp .l6-dim .d { font-size: clamp(20px, 4.4vw, 40px); font-weight: 500; line-height: 1.2; margin-top: 12px; opacity: 0; visibility: hidden; }
.dp .l6-dim .w { display: flex; align-items: center; gap: 12px; margin-top: 18px; font-size: clamp(20px, 4.4vw, 40px); line-height: 1; opacity: 0; visibility: hidden; }
.dp .l6-dim .w b { font-weight: 500; }
.dp .l6-dim .wi { display: block; width: 1.3em; height: 1.3em; }
.dp .l6-dim .wi img { width: 100%; height: 100%; display: block; }
.dp .l6-dim .dp-dim-cap { opacity: 0; visibility: hidden; }

/* 20:30 · one moment, one phone: the guest remote stays for the whole stage */
.dp .p3 { height: 280vh; }

/* 12:30 · the 3D view becomes your iPhone's screen (its Map tab): the phone's body closes in around it, then the
   tab's chrome from the app's own capture (status bar at 12:30, controls, the sheet with Map selected) */
.dp .p2 { height: 860vh; }
.dp .l2-ibody { position: absolute; z-index: 1; left: 0; top: 0; visibility: hidden; background: #0b0b0c;
  box-shadow: inset 0 0 0 1.2px #3a3a3e, 0 30px 70px -24px rgba(0, 0, 0, 0.45); }
.dp .l2-pchrome { position: absolute; z-index: 4; overflow: hidden; opacity: 0; visibility: hidden; pointer-events: none; }
.dp .l2-pchrome img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.dp .l2-pchrome .island { position: absolute; background: #000; border-radius: 99px; }
.dp .l2-c { opacity: 0; visibility: hidden; }

/* Safari's toolbar shrinks as you scroll, and the screen gets taller (100lvh instead of 100svh). Every pinned stage is
   the large viewport tall, so its picture reaches the bottom either way (no band of page under it); what's placed at the
   bottom (the captions) sits above the toolbar's full height (--vgap = 100lvh − 100svh; 0 elsewhere). */
.dp { --vgap: 0px; }
@supports (height: 100lvh) {
  .dp { --vgap: calc(100lvh - 100svh); }
  .dp .proto-stage { height: calc(100lvh - var(--hh) - env(safe-area-inset-top, 0px)); }
}
.dp .o-a { bottom: calc(40px + var(--vgap)); }
.dp .l6-dim { padding-bottom: var(--vgap); }

/* ==================================================================================================================
   v15 · after Good night: five feature rows and the card row (Apple's product-page pattern, our own pictures)
   A row: a two-line headline on the left; big rounded media cards (a wide one, then narrower ones; the last peeks off
   the right edge) with a caption under each; ‹ › under the row on the right. It scrolls sideways by touch, trackpad or
   the buttons, snapping to a card; the page itself never scrolls sideways. The rows sit on the page's own light (night
   by now), so they use the theme's tokens.
   ================================================================================================================== */
.fx { --fx-max: 1080px; --fx-pad: max(var(--gutter-l), calc((100% - var(--fx-max)) / 2)); --fxh: clamp(340px, 40vw, 480px);
  --fxm: #000; position: relative; padding-block: clamp(64px, 9vw, 120px) 0; color: var(--fg); }
:root[data-theme="dark"] .fx { --fxm: #161617; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .fx { --fxm: #161617; } }
.fx-head { max-width: var(--fx-max); margin: 0 auto; padding: 0 var(--gutter-r) 0 var(--gutter-l); display: grid; gap: 14px; justify-items: start; }
.fx-head h2 { font: 600 clamp(32px, 4.6vw, 56px)/1.07 var(--font-display); letter-spacing: -0.005em; text-wrap: balance; }
.fx-head h2 span { display: block; }
.fx-sub { margin: 2px 0 0; color: var(--fg-2); font-size: 17px; line-height: 1.47; letter-spacing: -0.022em; max-width: 36em; }
.fx-head .more { margin-top: 2px; }
.fx-row { position: relative; display: flex; gap: 20px; margin: clamp(32px, 4.5vw, 56px) 0 0; padding: 0 0 6px var(--fx-pad); list-style: none;
  overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--fx-pad);
  scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.fx-row::-webkit-scrollbar { display: none; }
.fx-row::after { content: ""; flex: 0 0 max(1px, calc(var(--fx-pad) - 20px)); }   /* the end padding (a flex scroller drops padding-right) */
.fx-row:focus-visible { outline-offset: -3px; }
.fx-row > li { flex: 0 0 auto; scroll-snap-align: start; margin: 0; }
.fx-item { width: calc(var(--fxh) * 0.8); }
.fx-item.wide { width: calc(var(--fxh) * 1.54); }
.fx-m { position: relative; height: var(--fxh); border-radius: 28px; overflow: hidden; background: var(--fxm); container-type: size; isolation: isolate; }
.fx-m .ipad, .fx-m .iphone, .fx-m .watch { position: absolute; max-width: none; }
/* how the devices sit in a card: sized by the card's height, so every row has the same scale; they run off the
   bottom edge like a device set into the card */
.c-phone .iphone { --w: 47cqh; top: 11cqh; left: calc(50cqw - 23.5cqh); }
.c-pad .ipad { --w: 132cqh; top: 12cqh; left: max(7cqw, calc(50cqw - 66cqh)); }
.c-pad.c-right .ipad { left: auto; right: max(7cqw, calc(50cqw - 66cqh)); }   /* a narrow card shows the iPad's right side */
.c-pad.c-mid .ipad { left: calc(50cqw - 66cqh); }   /* … or its middle */
.c-pad.c-today .ipad { --w: 190cqh; top: -30cqh; left: auto; right: 5cqw; }   /* close in on the Today list (the screen's lower right) */
.c-duo .ipad { --w: 62cqh; top: 9cqh; left: calc(50cqw - 52cqh); }
.c-duo .iphone { --w: 37cqh; top: 27cqh; left: calc(50cqw + 13cqh); z-index: 2; }
@container (max-aspect-ratio: 1 / 1) {
  .c-duo .ipad { --w: 58cqh; left: -5cqw; }
  .c-duo .iphone { --w: 34cqh; left: auto; right: 5cqw; top: 30cqh; }
}
/* setup codes: the Setup Codes list (a real screen) and one code behind Face ID (drawn in the app's style), side by side */
.c-codes .iphone { --w: 47cqh; top: 11cqh; left: calc(50cqw - 50cqh); }
.c-codes .iphone + .iphone { left: calc(50cqw + 3cqh); }
@container (max-aspect-ratio: 1 / 1) {   /* a phone: they overlap, the Face ID screen in front and a little lower */
  .c-codes .iphone { --w: 40cqh; top: 9cqh; left: 5%; }
  .c-codes .iphone + .iphone { left: auto; right: 5%; top: 19cqh; z-index: 2; }
}
.c-watch { display: flex; align-items: center; justify-content: center; gap: 7%; }
.c-watch .watch { position: relative; --w: min(33cqw, 30cqh); }
.c-watch .watch:nth-child(2) { margin-top: 16cqh; }
.fx-cap { margin: 0; padding: 22px 16px 0; font-size: 17px; line-height: 1.47; letter-spacing: -0.022em; color: var(--fg-2); max-width: 36em; text-wrap: pretty; }
.fx-cap b { color: var(--fg); font-weight: 600; }
.fx-nav { max-width: var(--fx-max); margin: 24px auto 0; padding: 0 var(--gutter-r) 0 var(--gutter-l); display: flex; justify-content: flex-end; gap: 18px; }
.fx-nav button { width: 36px; height: 36px; border-radius: 50%; border: 0; padding: 0; display: grid; place-items: center; cursor: pointer;
  background: var(--chip); color: var(--fg); transition: opacity 0.3s var(--curve-out), background-color 0.3s; }
.fx-nav button svg { width: 15px; height: 15px; }
.fx-nav button[disabled] { opacity: 0.4; cursor: default; }
@media (hover: hover) { .fx-nav button:not([disabled]):hover { background: var(--hair); } }
/* phones: cards nearly as wide as the screen; captions a little smaller */
@media (max-width: 734px) {
  .fx { --fxh: min(108vw, 470px); }
  .fx-row { gap: 14px; }
  .fx-row::after { flex-basis: max(1px, calc(var(--fx-pad) - 14px)); }
  .fx-item { width: min(78vw, calc(var(--fxh) * 0.8)); }
  .fx-item.wide { width: min(88vw, calc(var(--fxh) * 1.54)); }
  .fx-m { border-radius: 22px; }
  .fx-cap { font-size: 15px; padding: 16px 6px 0; }
  .fx-sub { font-size: 15px; }
}
