:root {
  --paper: #f8f7f6;
  --ink: #1c1a20;
  --muted: #605b65;
  --accent: #b9294e;
  --rule: #ded9df;
  --header-height: 68px;
  --page-width: 1120px;
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  scroll-padding-top: var(--header-height);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #b73868; outline-offset: 4px; }
.skip-link {
  position: fixed; z-index: 20; top: 8px; left: 8px;
  transform: translateY(-160%); background: #fff; padding: 12px 16px; border-radius: 8px;
}
.skip-link:focus { transform: none; }
.site-header {
  position: sticky; z-index: 10; top: 0;
  background: var(--header-background, #fbfaf9); border-bottom: 1px solid #e8e3e7;
}
@media (min-width: 761px) and (pointer: fine) {
  .site-header {
    background: var(--header-translucent, #fbfaf9f5);
    backdrop-filter: blur(18px);
  }
}
.header-inner, .chapter-inner, .footer-inner {
  width: min(calc(100% - 64px), var(--page-width)); margin-inline: auto;
}
.header-inner {
  min-height: calc(var(--header-height) - 1px);
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 9px; width: fit-content; font-weight: 670; text-decoration: none; white-space: nowrap; }
.brand img { border-radius: 8px; }
.site-nav { display: flex; align-items: center; gap: clamp(13px, 3vw, 32px); }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--muted); font-size: 13px; text-decoration: none; white-space: nowrap;
}
.site-nav .header-cta {
  padding: 0 14px; border: 1px solid #ded6dd;
  border-radius: 999px; color: var(--ink); font-weight: 650;
}
.header-cta-compact { display: none; }
@media (hover: hover) and (pointer: fine) {
  .site-nav a:hover { color: var(--accent); }
  .header-cta:hover { background: #fff; }
}

.story {
  --chapter-heading: #46364a;
  --chapter-emphasis: #b0274b;
  --focus-backdrop: radial-gradient(ellipse at 58% 82%, #48374f, #251e30 73%);
}
.chapter { position: relative; }
.chapter-inner { padding-block: clamp(52px, 7vw, 100px); }
.chapter-copy { text-align: center; }
.chapter-copy h1, .chapter-copy h2 {
  margin: 0;
  color: var(--chapter-heading);
  font-size: clamp(37px, 5vw, 72px); font-weight: 670; line-height: 1.12; letter-spacing: -.055em;
  text-wrap: balance;
}
.chapter-copy h1 { font-size: clamp(54px, 6.4vw, 88px); }
.chapter-copy :is(h1, h2) > span { color: var(--chapter-emphasis); }
.chapter-copy p {
  margin: 17px auto 0; color: var(--muted); font-size: clamp(14px, 1.4vw, 18px); line-height: 1.7; text-wrap: pretty;
}
.device-label { display: block; margin-bottom: 16px; color: var(--muted); font-size: 13px; font-weight: 650; letter-spacing: .11em; }
.hero {
  background: radial-gradient(ellipse 55% 46% at 50% 84%, #eadfe8, transparent 100%), var(--paper);
}
.hero .chapter-inner { padding-top: clamp(42px, 6vw, 83px); }
.hero-actions {
  display: flex; justify-content: center; align-items: center; gap: 20px;
  flex-wrap: wrap; margin-top: 20px;
}
.primary-link, .secondary-link {
  display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 7px;
  padding: 0 20px; border-radius: 999px;
  font-size: 14px; font-weight: 650; text-decoration: none;
}
.primary-link { background: var(--chapter-heading); color: #fff; }
.secondary-link { border: 1px solid #817583; background: #fff; color: var(--chapter-heading); }
@media (hover: hover) and (pointer: fine) {
  .primary-link:hover { background: #50354c; }
  .secondary-link:hover { border-color: #50354c; background: #f1e9f0; }
}
.workspace {
  --workspace-ratio: 1120 / 800;
  width: 100%; margin: clamp(32px, 4.5vw, 62px) auto 0;
  max-width: max(192px, calc((100vh - var(--header-height) - 64px) * var(--workspace-ratio)));
  max-width: max(192px, calc((100dvh - var(--header-height) - 64px) * var(--workspace-ratio)));
}
.workspace-panel {
  display: block;
  border: 1px solid #e2dce5; border-radius: 16px;
  overflow: hidden; background: #fff; box-shadow: 0 24px 54px #36263e26;
}
.workspace-panel img { width: 100%; height: auto; aspect-ratio: var(--workspace-ratio); object-fit: cover; }

@media (prefers-reduced-motion: no-preference) {
  .story:is(.has-motion, .is-flow) .workspace {
    --hero-card-progress: 0;
    transform-origin: top center;
    transform: translateY(calc(20px * (1 - var(--hero-card-progress))))
      scale(calc(.94 + .06 * var(--hero-card-progress)));
  }
  .workspace-panel {
    animation: workspace-arrival 640ms cubic-bezier(.2, .75, .25, 1) both;
  }
}
@keyframes workspace-arrival {
  from { opacity: .32; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.device {
  position: relative; aspect-ratio: var(--device-ratio);
  background: var(--device-art) center / 100% 100% no-repeat;
  filter: drop-shadow(0 14px 13px #22182322);
}
.screen {
  position: absolute; inset: var(--screen-inset); overflow: hidden;
  border-radius: var(--screen-radius); background: #101014;
}
.screen img { width: 100%; height: 100%; object-fit: cover; }
.iphone {
  --device-ratio: 1/2;
  --case-inset: 4.4cqw;
  --case-radius: 15.5cqw;
  --bezel-width: 2.7cqw;
  --key-inset: calc(var(--case-inset) - .85cqw);
  --screen-inset: calc(var(--case-inset) + var(--bezel-width));
  --screen-radius: calc(var(--case-radius) - var(--bezel-width));
  container-type: inline-size;
  width: clamp(146px, 22vw, 242px);
}
.iphone::before, .iphone-keys, .iphone-keys::before, .iphone-keys::after {
  position: absolute; width: 1.4cqw; border-radius: .6cqw;
  background: linear-gradient(90deg, #696269, #c1b8bd 55%, #8c8289);
  box-shadow: inset 0 0 0 .2cqw #59525b;
  pointer-events: none;
}
.iphone::before {
  content: ""; top: 34%; right: var(--key-inset); height: 21.6cqw;
}
.iphone-keys { top: 31%; left: var(--key-inset); height: 13.2cqw; }
.iphone-keys::before { content: ""; top: -16cqw; left: 0; height: 8.8cqw; }
.iphone-keys::after { content: ""; top: 18cqw; left: 0; height: 100%; }
.iphone::after {
  content: ""; position: absolute; pointer-events: none;
  inset: var(--case-inset);
  border-radius: var(--case-radius);
  border: 1.25cqw solid transparent;
  background:
    linear-gradient(#101014, #101014) padding-box,
    linear-gradient(138deg, #eeece7, #77747a 21%, #c3bebe 44%, #605c62 73%, #e3deda) border-box;
  box-shadow: inset 0 0 0 .42cqw #4d484d;
}
.iphone .screen { z-index: 1; background: #f2f2f7; }
.iphone .screen::before {
  content: "9:41"; position: absolute; top: 1.35%; left: 8%; color: #242126;
  font-size: 3.73cqw; line-height: 1.2; font-weight: 650; font-variant-numeric: tabular-nums;
}
.iphone .screen::after {
  content: ""; position: absolute; top: 1.05%; left: 34%; width: 32%; height: 3.1%;
  border-radius: 30px; background: #101014;
}
.watch {
  --device-ratio: 812/960;
  --device-art: url("./assets/watch-ink.webp");
  --screen-inset: 19.52% 19.15% 22.77% 17.65%;
  --screen-radius: 16.8% / 16%;
  container-type: inline-size;
}
.plan { background: radial-gradient(ellipse at 74% 52%, #e7e3f5, transparent 70%), var(--paper); }
.plan-inner {
  display: grid; grid-template-columns: minmax(240px, 1fr) minmax(0, 1.85fr);
  align-items: center; gap: clamp(16px, 3.2vw, 52px);
}
.plan .chapter-copy { text-align: start; }
.plan .chapter-copy h2 { font-size: clamp(32px, 4.05vw, 58px); }
.plan .chapter-copy p { max-width: 19em; margin-inline: 0; }
.task-devices {
  position: relative; width: min(100%, 730px); aspect-ratio: 1.37; margin-inline: auto;
  pointer-events: none;
  --laptop-arrival: 1;
  --ipad-arrival: 1;
  --iphone-arrival: 1;
  --task-watch-arrival: 1;
}
.laptop {
  --device-ratio: 960/600;
  --device-art: url("./assets/mac-frame.avif");
  --screen-inset: 4.65% 7.95% 12% 7.95%;
  --screen-radius: 1.15% 1.15% .45% .45% / 1.8% 1.8% .7% .7%;
  position: absolute; inset: 0 auto auto 0; width: 83%;
  opacity: calc(.4 + .6 * var(--laptop-arrival));
  transform: translateY(calc((1 - var(--laptop-arrival)) * 12%)) scale(calc(.92 + .08 * var(--laptop-arrival)));
}
.laptop img { object-position: left top; }
.laptop .screen::after {
  content: ""; position: absolute; top: 0; left: 45%; width: 10%; height: 2.65%;
  border-radius: 0 0 4px 4px; background: #0a0a0b; pointer-events: none;
}
.task-ipad {
  --device-ratio: 1.41;
  --bezel-width: 2.2cqw;
  --case-radius: 4.5cqw;
  --screen-inset: var(--bezel-width);
  --screen-radius: calc(var(--case-radius) - var(--bezel-width));
  container-type: inline-size;
  position: absolute; top: 35%; right: .6%; width: 52%;
  opacity: min(1, calc(var(--ipad-arrival) * 3));
  transform: translate(calc((1 - var(--ipad-arrival)) * 12%), calc((1 - var(--ipad-arrival)) * 22%));
}
.task-ipad::before {
  content: ""; position: absolute; inset: 0; border-radius: var(--case-radius);
  background: linear-gradient(145deg, #abb0ba, #292d35 20%, #15181e 65%, #797e88);
  box-shadow: inset 0 0 0 1px #8b919b, inset 0 0 0 3px #15161a;
}
.task-ipad::after {
  content: ""; position: absolute; top: 1.15%; left: 49.55%; width: .9%; aspect-ratio: 1;
  border-radius: 50%; background: #111318;
}
.task-iphone {
  position: absolute; left: 10%; bottom: 1%; width: 22%;
  opacity: min(1, calc(var(--iphone-arrival) * 3));
  transform: translate(calc((1 - var(--iphone-arrival)) * -23%), calc((1 - var(--iphone-arrival)) * 24%));
}
.task-watch {
  position: absolute; right: 5%; bottom: 0; width: 18%;
  opacity: min(1, calc(var(--task-watch-arrival) * 3));
  transform: translate(calc((1 - var(--task-watch-arrival)) * 16%), calc((1 - var(--task-watch-arrival)) * 20%));
}
.task-watch .screen { background: #000; }
.task-watch img { object-fit: contain; }

.focus {
  --chapter-heading: #fcf1f8;
  --chapter-emphasis: #ffc1d4;
  overflow-x: clip;
  background: var(--focus-backdrop);
  color: #fff;
}
.focus .chapter-copy p, .focus .device-label { color: #ded8e8; }
.focus-devices {
  position: relative; isolation: isolate; width: min(100%, 610px); aspect-ratio: 1.37; margin: 22px auto 0;
  perspective: 1000px;
  --phone-arrival: 1;
  --watch-arrival: 1;
  --focus-reveal: 1;
}
.focus-devices::before {
  content: ""; position: absolute; z-index: -1; inset: 6% -10% 3%;
  background: radial-gradient(ellipse at 53% 66%, #77618750, #55456424 38%, transparent 70%);
  opacity: var(--focus-reveal);
  transform: translateX(calc((1 - var(--focus-reveal)) * -9%));
  pointer-events: none;
}
.focus-iphone {
  position: absolute; z-index: 1; bottom: 0; left: 27%; width: 36%;
  --focus-angle: 360deg;
  opacity: calc(.2 + .8 * var(--phone-arrival));
  transform: translate3d(calc((1 - var(--phone-arrival)) * -16%), calc((1 - var(--phone-arrival)) * 9%), 0)
    rotateY(calc((1 - var(--phone-arrival)) * -13deg)) scale(calc(.9 + .1 * var(--phone-arrival)));
}
.focus-watch {
  position: absolute; bottom: 10%; right: 8%; width: 29%; --focus-angle: 360deg;
  opacity: min(1, calc(var(--watch-arrival) * 2.2));
  transform: translate3d(calc((1 - var(--watch-arrival)) * -83%), calc((1 - var(--watch-arrival)) * 5%), 0)
    rotate(calc((1 - var(--watch-arrival)) * -12deg)) scale(calc(.87 + .13 * var(--watch-arrival)));
}
.focus-iphone .screen { background: #f1eff4; color: #1b1a21; }
.focus-app { position: absolute; inset: 5.5% 0 0; }
.focus-app img { object-fit: fill; }
.iphone-timer {
  position: absolute; inset: 22.63% 6.15% auto; height: 40.52%;
  color: #16151b; font-variant-numeric: tabular-nums;
}
.iphone-timer-ring {
  position: absolute; inset: 2%; border-radius: 50%;
  background: conic-gradient(#b82e52 calc(var(--focus-angle) * var(--focus-reveal)), #bdb9c488 0);
  mask-image: radial-gradient(ellipse closest-side, transparent calc(100% - 1.55px), #000 calc(100% - .65px));
}
.iphone-timer strong, .iphone-timer span {
  position: absolute; left: 50%; transform: translate(-50%, -50%); white-space: nowrap;
}
.iphone-timer strong { top: 45%; font-size: 16.7cqw; font-weight: 300; letter-spacing: -.045em; }
.iphone-timer span { top: 66%; font-size: max(6px, 2.95cqw); color: #665f70; }
.focus-dial {
  position: relative; isolation: isolate; display: grid; align-content: center; justify-items: center;
  gap: 2.6cqw; width: 81%; aspect-ratio: 1; border-radius: 50%; font-variant-numeric: tabular-nums;
  background: conic-gradient(#f7a9ca calc(var(--focus-angle) * var(--watch-arrival)), #433146 0);
}
.focus-dial::before {
  content: ""; position: absolute; z-index: -1; inset: max(1px, .9cqw);
  border-radius: 50%; background: #121117;
}
.focus-dial strong { font-size: 16cqw; font-weight: 450; letter-spacing: -.065em; line-height: 1; }
.focus-dial span { font-size: 5.5cqw; }
.focus-watch .screen { display: grid; place-items: center; background: #121117; color: #fff; }
.focus-toggle {
  position: absolute; top: 71.09%; left: 50%; transform: translate(-50%, -50%);
  display: grid; place-items: center; width: max(44px, 16.4%); aspect-ratio: 1;
  border: 0; border-radius: 50%; background: transparent;
}
.focus-toggle::before {
  content: ""; position: absolute; width: min(100%, 14cqw); aspect-ratio: 1;
  border-radius: 50%; background: #b82e52;
}
.focus-toggle::after {
  content: ""; position: absolute; width: 22%; aspect-ratio: 1;
  clip-path: polygon(20% 0, 100% 50%, 20% 100%); background: #fff;
}
.focus-toggle[data-running="true"]::after {
  clip-path: none; background: linear-gradient(90deg, #fff 0 33%, transparent 33% 67%, #fff 67%);
}
@media (hover: hover) and (pointer: fine) {
  .focus-toggle:hover::before { background: #972447; }
}
.focus-toggle:focus-visible { outline-offset: -2px; }
.focus-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

.lightweight { background: radial-gradient(ellipse at 72% 62%, #eee3ec, transparent 72%), var(--paper); }
.lightweight-inner {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .95fr);
  align-items: center; gap: clamp(28px, 7vw, 110px);
}
.lightweight .chapter-copy { text-align: start; }
.lightweight .chapter-copy h2 { font-size: clamp(42px, 6.2vw, 89px); }
.lightweight .chapter-copy p { max-width: 23em; margin-inline: 0; }
.lightweight-card {
  padding: clamp(16px, 2.8vw, 35px);
  border: 1px solid #e9dce4; border-radius: clamp(18px, 2.5vw, 30px);
  background: #fffcfd;
  box-shadow: 0 18px 46px #47254113, 0 3px 10px #47254109;
}
.lightweight-card h3 {
  display: flex; align-items: center; gap: 11px; margin: 0 0 18px;
  font-size: clamp(16px, 1.8vw, 22px); font-weight: 670;
}
.lightweight-card h3 img { flex: none; border-radius: 9px; }
.lightweight-list { list-style: none; margin: 0; padding: 0; }
.lightweight-list li {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 13px;
  padding-block: clamp(10px, 1.4vw, 17px); border-top: 1px solid #eee4eb;
}
.lightweight-list li:last-child { padding-bottom: 0; }
.lightweight-list svg {
  width: 38px; height: 38px; padding: 7px; border-radius: 11px;
  background: #f7eaf1; color: var(--accent);
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.lightweight-list strong, .lightweight-list span { display: block; }
.lightweight-list strong { font-size: 16px; font-weight: 670; }
.lightweight-list span { margin-top: 3px; color: var(--muted); font-size: 13px; line-height: 1.4; }

@media (max-width: 600px) {
  .chapter-inner.lightweight-inner { width: min(calc(100% - 36px), 480px); grid-template-columns: minmax(0, 1fr); gap: clamp(18px, 4svh, 29px); }
  .lightweight .chapter-copy { text-align: center; }
  .lightweight .chapter-copy h2 { font-size: clamp(35px, min(9.2vw, 8.7svh), 60px); }
  .lightweight .chapter-copy p { margin-inline: auto; }
  .lightweight-card h3 { margin-bottom: 11px; }
}

.imac {
  --device-ratio: 1246 / 1045;
  --device-art: url("./assets/imac-frame.webp");
  --screen-inset: 3.16% 2.40% 33.27%;
  --screen-radius: .14% / .25%;
  isolation: isolate; margin: 0 auto; max-width: 570px; touch-action: pan-y;
  filter: drop-shadow(0 10px 13px #38293d19);
}
.imac::before {
  content: ""; position: absolute; z-index: -1; inset: 99% 28% -3%;
  background: radial-gradient(ellipse, #453a5352, transparent 70%);
  pointer-events: none;
}
.imac .screen::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(127deg, #fff2, #fff0 44%);
  box-shadow: inset 0 0 0 .65px #242326;
}
.platforms { background: radial-gradient(ellipse at 50% 58%, #ecdad3, transparent 71%), var(--paper); }
.platforms .chapter-inner {
  display: grid; grid-template-columns: minmax(0, 1fr);
  align-items: center; gap: clamp(18px, 3vw, 42px);
}
.fold-preview { width: min(100%, 650px); margin-inline: auto; container-type: inline-size; }
@media (width > 1000px) {
  .platforms .chapter-inner {
    width: min(calc(100% - 64px), 1440px);
    grid-template-columns: minmax(184px, 1fr) minmax(0, 2.4fr);
  }
  .platforms .chapter-copy { text-align: start; }
  .platforms .chapter-copy h2 { font-size: clamp(32px, 4vw, 68px); }
  .fold-preview { width: min(100%, 920px); }
}
.fold-stage {
  position: relative; aspect-ratio: 4 / 3;
  --fold-offset: 0%; --fold-lift: 0cqw; --fold-foot: 35.7cqw; --fold-span: .94;
  --fold-angle: 0deg; --fold-pitch: 0deg; --fold-yaw: 0deg; --fold-scale: 1;
  --fold-depth: 3.45cqw; --fold-bleed: 0cqw;
  --fold-seam: var(--fold-bleed);
  --fold-screen-rim: 1.4; /* Percentage of the stage width. */
  --fold-metal-rim: calc(.38cqw + var(--fold-bevel, 0cqw));
  --corner-radius: 2.45cqw;
  --edge-overlap: .25px;
  left: var(--fold-offset); top: var(--fold-lift);
  pointer-events: none;
}
.fold-stage::before {
  content: ""; position: absolute; left: calc(50% - var(--fold-offset)); top: calc(50% + var(--fold-foot));
  width: calc(100% * var(--fold-span)); height: 11%;
  transform: translate(-50%, -34%);
  background: radial-gradient(ellipse, #3c272536, transparent 70%);
}
.fold-hardware {
  position: absolute; inset: 0; transform-style: preserve-3d;
}
.fold-hinge {
  position: absolute; inset-block: 2.4%; left: 50%; width: 0;
  opacity: var(--fold-hinge-opacity, 0);
  transform: scale(var(--fold-scale)) perspective(340cqw) rotateX(var(--fold-pitch))
    rotateY(var(--fold-yaw)) translateZ(calc(-.72 * var(--fold-depth)));
}
.fold-hinge::before, .fold-hinge::after {
  content: ""; position: absolute; left: -1.3cqw; width: 2.6cqw; height: 1.1cqw;
  border-radius: 35%;
  background: linear-gradient(calc(90deg + var(--fold-angle) / 2), #59463b, #d7bdab 40%, #ac8e7a 60%, #624d42);
}
.fold-hinge::before { top: -.5cqw; }
.fold-hinge::after { bottom: -.5cqw; }
.fold-panel {
  --fold-camera: scale(var(--fold-scale)) perspective(340cqw) rotateX(var(--fold-pitch))
    rotateY(calc(var(--fold-yaw) + var(--hinge-angle, 0deg)));
  position: absolute; inset-block: 2.4%; width: 46.75%;
  --glass-radius: calc(var(--corner-radius) - var(--fold-metal-rim));
  --corner-half: calc(.5 * var(--corner-radius));
  --corner-step: calc(.133975 * var(--corner-radius));
  transform-style: preserve-3d;
}
.fold-left {
  left: 3.25%; z-index: 2; --fold-origin: 46.75cqw;
  --hinge-angle: var(--fold-angle);
}
.fold-right { left: 50%; --fold-origin: 0cqw; }
.fold-shell, .fold-glass {
  position: absolute; inset: 0;
  transform: var(--fold-camera);
  transform-origin: var(--fold-origin) center;
}
.fold-shell { transform-style: preserve-3d; }
.fold-glass {
  overflow: hidden; backface-visibility: hidden;
}
.fold-left .fold-face {
  right: calc(-.5 * var(--fold-seam));
  border-radius: var(--corner-radius) 0 0 var(--corner-radius);
}
.fold-right .fold-face, .fold-back {
  border-radius: 0 var(--corner-radius) var(--corner-radius) 0;
}
.fold-right .fold-face { left: calc(-1 * var(--fold-seam)); transform-origin: var(--fold-seam) center; }
.fold-face {
  background: linear-gradient(#cab7a9, #8d7a70 18%, #57473e 68%, #aa9384);
}
.fold-glass::before {
  content: ""; position: absolute; inset: var(--fold-metal-rim) 0; background: #1d191b;
}
.fold-left .fold-face::before {
  left: var(--fold-metal-rim); border-radius: var(--glass-radius) 0 0 var(--glass-radius);
}
.fold-right .fold-face::before, .fold-back::before {
  right: var(--fold-metal-rim); border-radius: 0 var(--glass-radius) var(--glass-radius) 0;
}
.fold-back {
  visibility: hidden;
  transform: var(--fold-camera) translate3d(-46.75cqw, 0, calc(-1 * var(--fold-depth))) rotateY(180deg);
}
:where(.story:not(.is-mobile-native)) .fold-stage[data-side="cover"] .fold-left .fold-face { visibility: hidden; }
:where(.story:not(.is-mobile-native)) .fold-stage[data-side="cover"] .fold-back { visibility: visible; }
.fold-back {
  background: linear-gradient(135deg, #9b8170, #4d3e36 30%, #262026 72%, #876d5b);
  box-shadow: inset 0 0 0 1px #ad9078;
}
.fold-cover-screen {
  --cover-rim: 1.05cqw;
  position: absolute; inset: var(--cover-rim); overflow: hidden;
  border-radius: calc(var(--corner-radius) - var(--cover-rim));
  background: #fff;
}
.fold-cover-screen img { width: 100%; height: 100%; object-fit: fill; }
.fold-cover-screen::after {
  content: ""; position: absolute; top: 1.2%; left: 48.7%; width: 2.6%; aspect-ratio: 1;
  border-radius: 50%; background: #17151a;
}
.fold-shell::before, .fold-shell::after, .fold-corner::before, .fold-corner::after, .fold-corner span {
  position: absolute; height: var(--fold-depth);
  background: linear-gradient(#e6d3c3 5%, #ad9281 22%, #846b5c 72%, #4e3c34 95%);
}
.fold-shell::before, .fold-shell::after { content: ""; inset-inline: calc(var(--corner-radius) - var(--edge-overlap)) 0; }
.fold-shell::before { top: 0; transform-origin: top; transform: rotateX(-90deg); }
.fold-shell::after { bottom: 0; transform-origin: bottom; transform: rotateX(90deg); }
.fold-right .fold-shell::before, .fold-right .fold-shell::after { inset-inline: 0 calc(var(--corner-radius) - var(--edge-overlap)); }
/* Three shallow facets follow the rounded corners of the front and back. */
.fold-corner {
  position: absolute; left: 0; width: var(--corner-radius); height: var(--corner-radius);
  transform-style: preserve-3d;
}
.fold-corner-top { top: 0; }
.fold-corner-bottom { bottom: 0; transform: scaleY(-1); }
.fold-right .fold-corner { left: auto; right: 0; }
.fold-right .fold-corner-top { transform: scaleX(-1); }
.fold-right .fold-corner-bottom { transform: scale(-1); }
.fold-corner::before, .fold-corner::after, .fold-corner span {
  content: ""; width: calc(.517638 * var(--corner-radius) + var(--edge-overlap));
  transform-origin: top left;
}
.fold-corner::before { left: 0; top: var(--corner-radius); transform: rotateZ(-75deg) rotateX(-90deg); }
.fold-corner span { left: var(--corner-step); top: var(--corner-half); transform: rotateZ(-45deg) rotateX(-90deg); }
.fold-corner::after { left: var(--corner-half); top: var(--corner-step); transform: rotateZ(-15deg) rotateX(-90deg); }
.fold-edge {
  position: absolute; inset-block: calc(var(--corner-radius) - var(--edge-overlap));
  width: var(--fold-depth);
  --rail-light: 90deg;
  background: linear-gradient(var(--rail-light), #ead5c4, #a98b78 14%, #705a4c 66%, #b99e8b 94%, #57443b);
}
.fold-left .fold-edge { left: 0; transform-origin: left; transform: rotateY(90deg); }
.fold-right .fold-edge {
  right: 0; transform-origin: right; transform: rotateY(-90deg);
  --rail-light: 270deg;
}
.fold-left .fold-edge::before, .fold-left .fold-edge::after {
  content: ""; position: absolute; inset-inline: 31%; height: 10%; top: 24%; border-radius: 1cqw;
  background: linear-gradient(90deg, #574136, #b79883 60%, #58443d);
  box-shadow: 0 0 0 .45px #271c19;
}
.fold-left .fold-edge::after { top: 37%; height: 5%; }
.fold {
  /* The screen is positioned in the full stage, inside the panel silhouette. */
  --screen-inset: calc((1.8 + var(--fold-screen-rim)) * 100% / 75) calc((3.25 + var(--fold-screen-rim)) * 1%);
  --screen-radius: calc(var(--corner-radius) - var(--fold-screen-rim) * 1cqw);
  position: absolute; top: -1.8cqw; left: -3.25cqw;
  width: 100cqw; height: 75cqw; filter: none;
}
.fold-right .fold { left: calc(var(--fold-seam) - 50cqw); }
.fold .screen { background: #fff; }
.fold img { object-fit: fill; }
.fold .screen::after {
  content: ""; position: absolute; top: 1.75%; left: 1.3%; width: 1.6%; aspect-ratio: 1;
  border-radius: 50%; background: #18151b; pointer-events: none;
}
/* Use one continuous screen when both panels lie flat. */
:where(.story:not(.is-mobile-native)) .fold-stage[data-open] .fold-left .fold-face { visibility: hidden; }
:where(.story:not(.is-mobile-native)) .fold-stage[data-open] .fold-right .fold-glass {
  left: -100%; border-radius: var(--corner-radius); transform-origin: center;
}
:where(.story:not(.is-mobile-native)) .fold-stage[data-open] .fold-right .fold-glass::before {
  left: var(--fold-metal-rim); border-radius: var(--glass-radius);
}
:where(.story:not(.is-mobile-native)) .fold-stage[data-open] .fold-right .fold {
  left: -3.25cqw;
}
.calendar-detail { display: block; cursor: zoom-in; }
.chapter.availability, .has-motion .chapter.availability {
  background: radial-gradient(ellipse at 63% 58%, #f2dde5, transparent 72%), var(--paper);
}
.availability-inner { width: min(calc(100% - 64px), 1280px); }
.availability-main {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.08fr);
  align-items: center; gap: clamp(16px, 2.4vw, 36px);
}
.availability .chapter-copy { text-align: start; }
.availability .chapter-copy h2 { font-size: clamp(34px, 5.1vw, 74px); }
.availability .chapter-copy p { margin: 18px 0 24px; }
.availability .hero-actions { justify-content: flex-start; gap: 10px; margin-top: 0; }
.availability .secondary-link { min-height: 50px; }
.availability .primary-link { min-height: 50px; padding-inline: 24px; background: #b9294e; font-size: 15px; }
@media (hover: hover) and (pointer: fine) {
  .availability .primary-link:hover { background: #98213f; }
}
.availability-devices {
  position: relative; isolation: isolate; width: min(100%, 86vh); aspect-ratio: 1.49;
  margin-inline: auto; pointer-events: none;
}
.availability-devices .device { position: absolute; margin: 0; }
.availability-desktop { top: 0; left: 0; width: 68%; }
.availability-desktop .screen img { object-position: top; }
.availability-ipad { top: 26%; right: 0; width: 40%; }
.availability-duo {
  --device-ratio: 164.6 / 117.8;
  --screen-inset: 2.6% 1.9%;
  --screen-radius: 4.9% / 6.9%;
  right: 8%; bottom: 6%; width: 34%; border-radius: 6% / 8.4%;
  background: linear-gradient(145deg, #f2f2f3, #a1a1aa 40%, #e1e1e5 69%, #aaaab2);
  box-shadow: inset 0 0 0 1px #85858c, inset 0 0 0 2px #e2e2e5;
}
.availability-duo .screen { box-shadow: 0 0 0 1.5px #1a191c; }
.availability-iphone { left: 48%; bottom: 0; width: 18%; }
.availability-watch { right: 0; bottom: 0; width: 18%; }
.availability-watch .screen { background: #000; }
.availability-watch img { object-fit: contain; }
.platform-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr) minmax(0, .75fr);
  gap: 14px 24px; margin: clamp(24px, 5vh, 54px) 0 0;
  padding: clamp(16px, 3vh, 30px) 0 0; border-top: 1px solid #d9cfd8;
  color: var(--muted); font-size: clamp(13px, 1.25vw, 17px); line-height: 1.5;
}
.platform-grid div { position: relative; min-width: 0; padding-inline-start: 40px; }
.platform-grid dt { color: var(--ink); font-size: 1.12em; font-weight: 650; }
.platform-grid svg {
  position: absolute; inset: 2px auto auto 0; width: 27px; height: 27px;
  fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round;
}
.platform-grid dd { margin: 3px 0 0; }
.calendar-dialog {
  width: min(calc(100% - 24px), 1150px); max-height: calc(100% - 24px);
  padding: 0; border: 1px solid var(--rule); border-radius: 15px; color: var(--ink); background: #fff;
}
.calendar-dialog::backdrop { background: #211927b3; }
.calendar-dialog form { position: sticky; top: 0; display: flex; justify-content: flex-end; padding: 4px 10px; background: #fff; border-bottom: 1px solid var(--rule); }
.calendar-dialog button { min-height: 44px; padding: 0 13px; border: 0; background: transparent; }
.calendar-dialog img { width: 100%; }

.site-footer { background: #f9f7f8; color: var(--muted); }
.footer-inner { padding-block: 25px 20px; }
.footer-top, .footer-bottom { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 7px 22px; }
.footer-top .brand { color: var(--ink); }
.footer-top nav { display: flex; flex-wrap: wrap; gap: 0 18px; }
.footer-top nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; }
.footer-top a, .footer-bottom a { text-decoration: none; }
.footer-top a:hover, .footer-bottom a:hover { text-decoration: underline; }
.footer-bottom { justify-content: flex-start; margin-top: 12px; border-top: 1px solid var(--rule); padding-top: 14px; font-size: 12px; }
.footer-bottom a { display: inline-flex; align-items: center; min-height: 28px; }

@media (max-width: 760px) {
  .header-inner, .chapter-inner, .footer-inner { width: calc(100% - 36px); }
  .header-inner { gap: 14px; }
  .availability-main { grid-template-columns: 1fr; gap: 22px; }
  .availability .chapter-copy h2 { font-size: clamp(34px, 8.6vw, 55px); }
  .availability .chapter-copy p { margin-block: 10px 15px; }
  .availability-devices { width: min(100%, 46vh); }
  .platform-grid { margin-top: 22px; padding-top: 15px; }
  .platform-grid div { padding-inline-start: 31px; }
  .platform-grid svg { width: 22px; height: 22px; }
  .plan-inner { grid-template-columns: 1fr; gap: 28px; }
  .plan .chapter-copy { text-align: center; }
  .plan .chapter-copy p { margin-inline: auto; }
  .task-devices { width: min(100%, 470px); }
}
@media (max-width: 760px), (pointer: coarse) {
  .workspace { max-width: max(192px, calc((100svh - var(--header-height) - 64px) * var(--workspace-ratio))); }
  .header-inner .brand { min-height: 44px; }
  .site-nav a { justify-content: center; min-width: 44px; }
}
@media (max-width: 600px) {
  :root { --header-height: 56px; }
  .header-inner { width: calc(100% - 28px); gap: 10px; }
  .header-inner .brand { gap: 7px; font-size: 15px; }
  .header-inner .brand img { width: 26px; height: 26px; }
  .site-nav { gap: clamp(3px, 1.4vw, 9px); }
  .site-nav .header-cta { padding-inline: 9px; }
  .site-nav .header-login, .header-cta-full { display: none; }
  .header-cta-compact { display: inline; }
  .chapter-inner { padding-block: 52px; }
  .chapter-copy h1 { font-size: clamp(44px, 10vw, 62px); }
  .chapter-copy h2 { font-size: clamp(31px, 8.8vw, 47px); }
  .hero-actions { column-gap: 15px; row-gap: 3px; }
  .workspace { width: min(calc(100% - 12px), 390px); max-width: none; }
  .workspace-panel { border-radius: 13px; }
  .focus .chapter-copy p { max-width: 19em; }
  .focus-devices { width: min(100%, 405px); aspect-ratio: 1.18; }
  .focus-iphone { left: 16%; width: 44%; }
  .focus-watch { right: 4%; width: 32%; }
  .platform-grid { grid-template-columns: 1fr; gap: 9px; }
  .platform-grid div { display: grid; grid-template-columns: 5.1em minmax(0, 1fr); align-items: baseline; gap: 4px; }
  .platform-grid dt { font-size: 1em; }
  .platform-grid dd { margin: 0; }
  .platform-grid svg { top: 0; width: 19px; height: 19px; }
  .footer-top nav { gap: 0 14px; }
}

.story-backdrop { display: none; }
.story.has-motion {
  --story-height: calc(100vh - var(--header-height));
  --story-height: calc(100dvh - var(--header-height));
  height: calc(var(--story-height) * (1 + var(--story-length))); overflow-anchor: none;
}
.has-motion .story-stage {
  position: sticky; top: var(--header-height); height: var(--story-height);
  display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  isolation: isolate; overflow: clip; background: var(--paper);
}
.has-motion .story-backdrop {
  display: block; position: absolute; z-index: -1; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 58% 52% at 50% 83%, #eadfe8, transparent), var(--paper);
}
.story-backdrop::before, .story-backdrop::after, .story-backdrop span { position: absolute; inset: 0; content: ""; }
.story-backdrop::before { background: radial-gradient(ellipse at 74% 52%, #e7e3f5, transparent 70%), var(--paper); opacity: var(--story-plan, 0); }
.story-backdrop span { background: var(--focus-backdrop); opacity: var(--story-night, 0); }
.story-backdrop::after { background: radial-gradient(ellipse at 50% 58%, #ecdad3, transparent 71%), var(--paper); opacity: var(--story-platforms, 0); }
.has-motion .chapter {
  grid-area: 1 / 1; min-width: 0; min-height: 0;
  display: grid; align-items: center; opacity: var(--scene-opacity, 0); overflow: clip;
}
.has-motion .chapter { background: transparent; }
.has-motion .chapter[data-visible="false"] { visibility: hidden; }
.has-motion .chapter[inert] { pointer-events: none; }
.has-motion .chapter-inner { padding-block: 22px; }
.has-motion .chapter-copy { transform: translateY(var(--scene-shift, 0px)); }
.has-motion :is(.task-devices, .focus-devices, .lightweight-card, .fold-preview, .availability-devices) {
  transform: translateY(var(--subject-shift, 0px)) scale(var(--subject-scale, 1));
}
.has-motion .hero { align-items: start; }
.has-motion .hero .chapter-inner {
  padding-block: clamp(30px, 6vh, 72px) 0;
  transform: translateY(var(--hero-offset, 0px));
}
.has-motion .hero h1 { font-size: clamp(43px, min(6.4vw, 11vh), 84px); }
.has-motion .task-devices { width: min(100%, 730px, 116vh); }
.has-motion .focus-devices { width: min(100%, 580px, 66vh); }
.has-motion .imac { max-width: min(570px, 62vh); }
.has-motion .fold-preview {
  /* Leave room for the device shadow and the scene transition inside the sticky stage. */
  width: min(100%, 920px, calc((var(--story-height) - 96px) * 4 / 3));
}
@media (min-width: 1600px) {
  .home-page { --wide-page-width: clamp(var(--page-width), calc(72vw - 32px), 1920px); }
  .home-page .header-inner, .plan-inner {
    width: min(calc(100% - 64px), var(--wide-page-width));
  }
  .plan-inner { container-type: inline-size; }
  .has-motion .plan-inner {
    /* Keep the full device group inside the sticky stage on short, wide windows. */
    width: min(var(--wide-page-width), max(var(--page-width), calc((var(--story-height) - 88px) * 2.1)));
  }
  .plan .chapter-copy h2 { font-size: clamp(58px, 4.4cqw, 88px); }
  .plan .chapter-copy p { font-size: clamp(18px, 1.25cqw, 24px); }
  .task-devices { width: min(100%, 1280px); }
  .has-motion .task-devices {
    width: min(100%, 1280px, calc((var(--story-height) - 88px) * 1.37));
  }
  .hero .chapter-inner { width: min(calc(100% - 64px), 1440px); }
  .imac, .has-motion .imac { max-width: min(670px, 62vh); }
}
.story:is(.is-flow, .is-mobile-flow) .chapter { overflow-x: clip; }
.story.is-flow .chapter :is(.chapter-copy, .task-devices, .focus-devices, .lightweight-card, .fold-preview, .availability-devices) {
  transform: translateY(var(--flow-shift, 0px));
  opacity: var(--flow-opacity, 1);
}
.story.is-flow :is(.hero, .availability) .chapter-copy { transform: none; opacity: 1; }
@media (max-height: 790px) {
  .has-motion .platforms .chapter-inner { padding-block: 12px; }
  .has-motion .platforms .device-label { margin-bottom: 9px; }
  .has-motion .platforms .chapter-copy p { margin-top: 10px; }
}
@media (max-width: 1000px) {
  .has-motion .platforms .chapter-copy h2 { font-size: clamp(31px, min(7vw, 8vh), 56px); }
  .has-motion .fold-preview {
    width: min(100%, 650px, calc((var(--story-height) - 206px) * 4 / 3));
  }
}
.is-mobile-flow .hero {
  --hero-opening: 0;
  --hero-exit: 0;
}
.is-mobile-flow .hero .chapter-copy > :where(h1, p) {
  --copy-exit: var(--hero-opening);
  opacity: calc(1 - .74 * var(--copy-exit));
  transform: translateY(calc(-28px * var(--copy-exit)));
}
.is-mobile-flow .hero .chapter-copy > p {
  --copy-exit: clamp(0, calc((var(--hero-opening) - .2) / .8), 1);
}
.is-mobile-flow .workspace {
  --workspace-drift: clamp(60px, 12svh, 132px);
  opacity: calc(1 - .9 * var(--hero-exit));
  transform-origin: top center;
  transform: translateY(calc(12px * (1 - var(--hero-opening)) + var(--workspace-drift) * var(--hero-opening) - 26px * var(--hero-exit)))
    perspective(820px) rotateX(calc(-18deg * (1 - var(--hero-opening)))) scale(calc(.9 + .18 * var(--hero-opening)));
}
.is-mobile-flow .workspace-panel { box-shadow: 0 11px 27px #36263e22; }

@supports (animation-timeline: view()) and (animation-range: exit-crossing 0% exit-crossing 100%) {
  .is-mobile-flow .hero {
    view-timeline-name: --mobile-hero;
    view-timeline-inset: var(--header-height) 0;
  }
  .is-mobile-flow .hero .workspace {
    animation: mobile-hero-workspace 1s ease-in-out both;
    animation-timeline: --mobile-hero;
    animation-range: exit-crossing 0% exit-crossing 100%;
  }
  .is-mobile-flow .hero .chapter-copy > :is(h1, p) {
    animation: mobile-hero-copy-out 1s ease-in-out both;
    animation-timeline: --mobile-hero;
    animation-range: exit-crossing 0% exit-crossing 34%;
  }
  .is-mobile-flow .hero .chapter-copy > p { animation-range-start: exit-crossing 6.8%; }
}
@keyframes mobile-hero-workspace {
  0% { opacity: 1; transform: translateY(12px) perspective(820px) rotateX(-18deg) scale(.9); }
  34%, 56% {
    opacity: 1;
    transform: translateY(var(--workspace-drift)) perspective(820px) rotateX(0deg) scale(1.08);
  }
  91%, 100% {
    opacity: .1;
    transform: translateY(calc(var(--workspace-drift) - 26px)) perspective(820px) rotateX(0deg) scale(1.08);
  }
}
@keyframes mobile-hero-copy-out {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: .26; transform: translateY(-28px); }
}

.is-mobile-flow .chapter:where(:not(.hero)) .chapter-copy:where(:not(:focus-within)) > :where(.device-label, h2, p) {
  --arrival: var(--copy-arrival, 1);
  opacity: calc(.2 + .8 * var(--arrival));
  transform: translateY(calc(var(--copy-travel, 30px) * (1 - var(--arrival))));
}
.is-mobile-flow .chapter:where(:not(.hero)) .chapter-copy:where(:not(:focus-within)) > p {
  --arrival: clamp(0, calc((var(--copy-arrival, 1) - .22) / .78), 1);
}
.is-mobile-flow .availability .chapter-copy > p { --copy-travel: 12px; }
.is-mobile-flow :is(.task-devices, .lightweight-card, .focus-devices, .fold-preview, .availability-devices) {
  --arrival: var(--visual-arrival, 1);
  --hold: var(--visual-hold, 0);
  --exit: var(--visual-exit, 0);
  --visual-drift: clamp(42px, 7svh, 78px);
  transform-origin: top center;
  transform: translateY(calc(36px * (1 - var(--arrival)) + var(--visual-drift) * var(--hold) - 22px * var(--exit)))
    scale(calc(.83 + .17 * var(--arrival) + .035 * var(--hold)));
  opacity: calc((.4 + .6 * var(--arrival)) * (1 - .8 * var(--exit)));
}
.is-mobile-flow :is(.focus-devices, .fold-preview):focus-within { opacity: 1; }
.is-mobile-flow .fold-stage {
  --fold-metal-rim: .62cqw;
  --fold-seam: .95cqw;
  left: 0;
  top: 0;
  transform: translate3d(var(--fold-offset), var(--fold-lift), 0);
}
.is-mobile-flow .fold-stage::before {
  left: 50%;
  top: 50%;
  width: 100%;
  transform: translate(calc(-50% - var(--fold-offset)), calc(-34% + var(--fold-foot)))
    scaleX(var(--fold-span));
}
.is-mobile-flow .fold-hinge::before, .is-mobile-flow .fold-hinge::after {
  background: linear-gradient(140deg, #59463b, #d7bdab 40%, #ac8e7a 60%, #624d42);
}
.is-mobile-flow .focus-devices::before {
  transform: translateX(calc((1 - var(--focus-reveal)) * -9%)) scale(calc(.8 + .35 * var(--arrival)));
}
.is-mobile-flow :is(.lightweight-list > li, .availability-devices > .device) {
  --item-arrival: clamp(0, calc((var(--arrival) - var(--item-delay, 0)) / .5), 1);
  translate: 0 calc(24px * (1 - var(--item-arrival)));
  opacity: calc(.18 + .82 * var(--item-arrival));
}
.is-mobile-flow :is(.lightweight-list, .availability-devices) > :nth-child(2) { --item-delay: .13; }
.is-mobile-flow :is(.lightweight-list, .availability-devices) > :nth-child(3) { --item-delay: .25; }
.is-mobile-flow .availability-devices > :nth-child(4) { --item-delay: .37; }
.is-mobile-flow .availability-devices > :nth-child(5) { --item-delay: .47; }
.is-mobile-flow .availability-devices { --visual-drift: 40px; }
.is-mobile-flow .availability .platform-grid {
  margin-top: calc(clamp(12px, 2.5svh, 26px) + 44px);
}

/* Use transforms and opacity directly so the browser can animate them as it scrolls. */
.is-mobile-native .chapter:where(:not(.hero)) .chapter-copy {
  view-timeline-name: --mobile-copy;
  view-timeline-inset: 0;
}
.is-mobile-native .chapter:where(:not(.hero)) .chapter-copy:where(:not(:focus-within)) > :where(.device-label, h2, p) {
  animation: mobile-copy-arrive 1s ease-out both;
  animation-timeline: --mobile-copy;
  animation-range: cover 4svh cover 37svh;
}
.is-mobile-native .chapter:where(:not(.hero)) .chapter-copy:where(:not(:focus-within)) > p {
  animation-range-start: cover 11svh;
}
.is-mobile-native :is(.task-devices, .lightweight-card, .focus-devices, .fold-preview, .availability-devices) {
  view-timeline-name: --mobile-art;
  view-timeline-inset: 0;
  animation: mobile-art-arrive 1s linear both;
  animation-timeline: --mobile-art;
  animation-range: cover 2svh cover 100%;
}
/* Keep keyboard focus visible during the fade. */
.is-mobile-native :is(.focus-devices, .focus-iphone):has(:focus-visible),
.is-mobile-native .fold-preview:focus-visible { opacity: 1 !important; }
@keyframes mobile-copy-arrive {
  from { opacity: .2; transform: translateY(var(--copy-travel, 30px)); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes mobile-art-arrive {
  0% { opacity: .4; transform: translateY(36px) scale(.83); }
  38% { opacity: 1; transform: translateY(0) scale(1); }
  63%, 75% { opacity: 1; transform: translateY(var(--visual-drift)) scale(1.035); }
  100% { opacity: .2; transform: translateY(calc(var(--visual-drift) - 22px)) scale(1.035); }
}

.is-mobile-native :is(.task-devices > .device, .focus-devices > .device, .lightweight-list > li, .availability-devices > .device),
.is-mobile-native .focus-devices::before {
  animation: mobile-detail-arrive 1s ease-out both;
  animation-timeline: --mobile-art;
  animation-range: cover var(--detail-start, 2svh) cover var(--detail-end, 30svh);
}
.is-mobile-native :is(.lightweight-list, .availability-devices) > :nth-child(2) { --detail-start: 9svh; --detail-end: 37svh; }
.is-mobile-native :is(.lightweight-list, .availability-devices) > :nth-child(3) { --detail-start: 16svh; --detail-end: 44svh; }
.is-mobile-native .availability-devices > :nth-child(4) { --detail-start: 22svh; --detail-end: 50svh; }
.is-mobile-native .availability-devices > :nth-child(5) { --detail-start: 28svh; --detail-end: 56svh; }
.is-mobile-native .task-devices .laptop {
  --detail-pose: translateY(12%) scale(.92);
  --detail-opacity: .4;
  --detail-end: 35svh;
}
.is-mobile-native .task-devices .task-ipad { --detail-pose: translate(12%, 22%); --detail-start: 12svh; --detail-end: 43svh; }
.is-mobile-native .task-iphone { --detail-pose: translate(-23%, 24%); --detail-start: 20svh; --detail-end: 50svh; }
.is-mobile-native .task-watch { --detail-pose: translate(16%, 20%); --detail-start: 27svh; --detail-end: 57svh; }
.is-mobile-native .focus-iphone {
  --detail-pose: translate(-16%, 9%) rotateY(-13deg) scale(.9);
  --detail-opacity: .2;
  --detail-end: 34svh;
}
.is-mobile-native .focus-watch {
  --detail-pose: translate(-83%, 5%) rotate(-12deg) scale(.87);
  --detail-start: 27svh;
  --detail-end: 57svh;
}
.is-mobile-native .focus-devices::before {
  --detail-pose: translateX(-9%) scale(.8);
  --detail-end: 48svh;
}
@keyframes mobile-detail-arrive {
  from { opacity: var(--detail-opacity, .12); transform: var(--detail-pose, translateY(24px)); }
  to { opacity: 1; transform: none; }
}

/* The mobile hinge turns two textured faces instead of rebuilding the chassis each frame. */
.is-mobile-native .fold-preview {
  view-timeline-name: --mobile-art, --mobile-unfold;
  view-timeline-inset: 0, 30% 31%;
}
.is-mobile-native .fold-stage { --fold-seam: 0cqw; transform: none; }
.is-mobile-native .fold-stage::before { top: calc(50% + 35.7cqw); width: 94%; }
.is-mobile-native :is(.fold-shell, .fold-hinge) { display: none; }
.is-mobile-native .fold-hardware { perspective: 340cqw; }
.is-mobile-native .fold-left { transform-origin: right center; }
.is-mobile-native .fold-glass {
  transform: none;
  box-shadow: inset 0 0 0 .45cqw #5a4740;
}
.is-mobile-native .fold-back {
  visibility: visible;
  transform-origin: center;
  transform: rotateY(180deg) translateZ(.5px);
}
.is-mobile-native .fold-left { animation-name: mobile-fold-turn; }
.is-mobile-native .fold-hardware { animation-name: mobile-fold-center; }
.is-mobile-native .fold-stage::before { animation-name: mobile-fold-shadow; }
.is-mobile-native .fold-left .fold-face { animation-name: mobile-fold-inner-face; }
.is-mobile-native .fold-back { animation-name: mobile-fold-cover; }
.is-mobile-native :is(.fold-left, .fold-hardware, .fold-left .fold-glass), .is-mobile-native .fold-stage::before {
  animation-duration: 1s;
  animation-timing-function: cubic-bezier(.33, .12, .67, .88);
  animation-fill-mode: both;
  animation-timeline: --mobile-unfold;
  animation-range: entry 0% entry 100%;
}
.is-mobile-native .fold-left .fold-glass { animation-timing-function: step-end; }
@keyframes mobile-fold-turn {
  from { transform: rotateY(180deg); }
  to { transform: rotateY(0deg); }
}
@keyframes mobile-fold-center {
  0%, 42% { transform: translateX(-23.375%); }
  100% { transform: translateX(0); }
}
@keyframes mobile-fold-shadow {
  0%, 42% { transform: translate(-50%, -34%) scaleX(.5); }
  100% { transform: translate(-50%, -34%) scaleX(1); }
}
@keyframes mobile-fold-inner-face {
  0% { opacity: 0; }
  50%, 100% { opacity: 1; }
}
@keyframes mobile-fold-cover {
  0% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@media (max-width: 760px) and (min-height: 560px), (pointer: coarse) and (min-height: 560px) {
  .story { --mobile-content-height: calc(100svh - var(--header-height)); }
  .story .chapter { display: grid; align-items: center; min-height: 100svh; }
  .story .chapter-inner { padding-block: clamp(18px, 3svh, 28px); }
  .story .hero h1 { font-size: clamp(39px, 10.8vw, 76px); }
  .story .workspace {
    margin-top: clamp(22px, 4svh, 46px);
    width: min(100%, 620px, calc((var(--mobile-content-height) - 220px) * 1.4));
  }
  .story .task-devices {
    width: min(100%, 540px, calc((var(--mobile-content-height) - 176px) * 1.37));
  }
  .story .focus-devices {
    width: min(100%, 480px, calc((var(--mobile-content-height) - 172px) * 1.18));
  }
  .story .fold-preview {
    width: min(100%, 650px, calc((var(--mobile-content-height) - 178px) * 4 / 3));
  }
  .story .availability-main { gap: clamp(10px, 2svh, 22px); }
  .story .availability-devices {
    width: min(100%, 520px, calc((var(--mobile-content-height) - 364px) * 1.49));
  }
  .story .platform-grid {
    margin-top: clamp(12px, 2.5svh, 26px);
    padding-top: clamp(10px, 2svh, 18px);
  }
}
@media (max-width: 600px) and (min-height: 560px) {
  .story .chapter-copy p { margin-top: 11px; }
  .story .device-label { margin-bottom: 10px; }
  .story .plan-inner { gap: clamp(14px, 3svh, 25px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
