/* VOICE   occasion, calm and grounded: a "now building" page for an on-screen AI companion
   IDEA    the page behaves like Alongmate: it points at something on a screen and answers plainly
   PICTURE a fictional project page where a pointer selects an item, asks, and gets one next step
   COLOUR  Ultrablue #101CFF fields, white, Ink #181A18; red and green appear only inside the fictional app
   TYPE    Instrument Sans for Alongmate; the system font for the fictional app so it reads as other software
   LAYOUT  laptop: a pinned Ultrablue stage, headline left and dots right; scrolling turns the
           dots into a pointer, a question and an arrow beside three captions. Then the
           illustration on Ink, and sections that slide over one another.
           phone: the same stage with the dots below the words, then everything stacked
   MOTION  only with html.motion (set by motion.js when the visitor allows motion);
           without it every caption and section is plain, still content

   Brand rules: Alongmate visual identity guidelines v1.2 (brand/Guidelines).
   Logos are the unedited master files in site/brand. White artwork sits on Ultrablue,
   never Ultrablue on Ink (2.19:1). */

@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --blue: #101CFF;
  --ink: #181A18;
  --bg: #FFFFFF;
  --text: #181A18;
  --muted: #4A4F55;
  --line: #DADDE3;
  --accent: #101CFF;
  --tint: #EEF0FF;
  --on-blue: #FFFFFF;
  --on-blue-muted: #D4D6FF;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --flow: cubic-bezier(.65, 0, .35, 1);
  --font: "Instrument Sans", Arial, system-ui, sans-serif;
  --app-font: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #181A18;
    --text: #FFFFFF;
    --muted: #B6BAC1;
    --line: #3A3D41;
    --accent: #FFFFFF;
    --tint: #24262B;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #181A18;
  --text: #FFFFFF;
  --muted: #B6BAC1;
  --line: #3A3D41;
  --accent: #FFFFFF;
  --tint: #24262B;
}

:root[data-theme="light"] { color-scheme: light; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.55 var(--font); -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--focus, var(--accent)); outline-offset: 3px; border-radius: 6px; }

.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -80px; z-index: 20; padding: 10px 14px; border-radius: 10px; background: #FFFFFF; color: var(--blue); font-weight: 600; text-decoration: none; }
.skip:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }

.band { padding-left: max(5vw, 16px, env(safe-area-inset-left, 0px)); padding-right: max(5vw, 16px, env(safe-area-inset-right, 0px)); }
.wrap { max-width: 1240px; margin: 0 auto; }

/* ---------- buttons ---------- */

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border: 1.5px solid transparent; border-radius: 12px; font-size: 16px; font-weight: 600; line-height: 1; text-decoration: none; white-space: nowrap; cursor: pointer; transition: transform .3s var(--ease), background-color .2s, border-color .2s; }
.btn:active { transform: scale(.97); }
.btn--light { background: #FFFFFF; color: var(--blue); }
.btn--light:hover { background: #E4E6FF; }
.btn--line { background: transparent; color: var(--on-blue); border-color: rgba(255, 255, 255, .62); }
.btn--line:hover { border-color: #FFFFFF; background: rgba(255, 255, 255, .08); }
.btn--small { min-height: 40px; padding: 0 16px; font-size: 15px; border-radius: 10px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- hero ---------- */

.hero { --focus: #FFFFFF; background: var(--blue); color: var(--on-blue); margin-top: calc(-1 * env(safe-area-inset-top, 0px)); padding-top: calc(env(safe-area-inset-top, 0px) + 14px); padding-bottom: clamp(40px, 6vw, 72px); }

.nav { display: flex; align-items: center; gap: 16px 32px; min-height: 56px; }
.nav__home { flex: none; border-radius: 4px; }
.nav__home img { width: 183px; }
.nav__links { display: flex; gap: 28px; margin-left: auto; font-size: 15px; font-weight: 500; }
.nav__links a { text-decoration: none; padding-block: 4px; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size .5s var(--ease); }
.nav__links a:hover { background-size: 100% 1.5px; }

.intro { display: flex; flex-direction: column; align-items: flex-start; padding-top: clamp(32px, 4.5vw, 60px); }
.status { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .14); font-size: 15px; font-weight: 500; line-height: 20px; }
.status__dot { width: 8px; height: 8px; border-radius: 50%; background: #FFFFFF; animation: ping 2.4s ease-out infinite; }
.intro h1 { margin-top: 24px; max-width: 17em; font-size: clamp(2rem, 1.1rem + 3.6vw, 4rem); font-weight: 600; line-height: 1.04; letter-spacing: -.032em; text-wrap: balance; }
.lede { margin-top: 24px; max-width: 34em; font-size: clamp(17px, 12px + 1.1vw, 20px); line-height: 1.5; color: var(--on-blue-muted); }
.intro > .actions { margin-top: 28px; }
.demo { margin-top: clamp(32px, 4vw, 48px); }

@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .7); } 70%, 100% { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

@media (prefers-reduced-motion: no-preference) {
  .status, .lede, .intro > .actions, :root:not(.motion) .intro h1 { animation: rise 1s var(--ease) both; }
  .lede { animation-delay: .08s; }
  .intro > .actions { animation-delay: .14s; }
}

/* ---------- illustration: the fictional screen ---------- */

.screen { --focus: #101CFF; position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 360px); overflow: hidden; border-radius: 18px; background: #FFFFFF; color: #1F2328; color-scheme: light; }

.app { min-width: 0; font: 400 14px/20px var(--app-font); border-right: 1px solid #E3E6EA; }
.app__bar { display: flex; align-items: center; gap: 14px; height: 44px; padding: 0 16px; background: #2E3440; color: #E6E9EE; font-size: 13px; }
.app__dots { display: flex; gap: 6px; }
.app__dots i { width: 10px; height: 10px; border-radius: 50%; background: #4C566A; }
.app__crumbs { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app__avatar { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #3B5A82; color: #FFFFFF; font-size: 11px; font-weight: 600; }
.app__body { padding: 20px 20px 24px; }
.app__title { font-size: 18px; font-weight: 650; line-height: 24px; }
.app__group { display: flex; justify-content: space-between; gap: 12px; margin: 18px 0 8px; color: #59616B; font-size: 12px; font-weight: 600; }
.app__group span { font-weight: 400; }
.rows { display: grid; gap: 8px; }

.row { position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; width: 100%; padding: 10px 12px; border: 1.5px solid #E3E6EA; border-radius: 10px; background: #FFFFFF; color: inherit; font: inherit; text-align: left; }
.row--pick { cursor: pointer; border-style: dashed; border-color: #6F77FF; transition: border-color .2s, box-shadow .35s var(--ease); }
.row--pick:hover { border-color: #101CFF; }
.row--pick.is-selected { border-style: solid; border-color: #101CFF; box-shadow: 0 0 0 1.5px #101CFF; }
.row__main { display: grid; gap: 2px; min-width: 0; }
.row__title { font-weight: 600; }
.row__meta { display: flex; flex-wrap: wrap; gap: 2px 14px; color: #59616B; font-size: 13px; }
.row__msg { color: #A0231A; font-size: 13px; line-height: 18px; }
.pill { flex: none; align-self: center; display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 18px; }
.pill--done { background: #E3F2E8; color: #1B5E36; }
.pill--todo { background: #ECEEF1; color: #3A414A; }
.pill--fail { background: #FCE6E3; color: #A0231A; }

.tag { position: absolute; top: -11px; right: 12px; padding: 1px 8px; border-radius: 6px; background: #101CFF; color: #FFFFFF; font: 600 11px/18px var(--font); opacity: 0; transform: translateY(4px) scale(.9); transition: opacity .25s, transform .45s var(--ease); }
.is-selected .tag { opacity: 1; transform: none; }

/* Evidence: the quoted words get a soft highlight and a number that makes room for itself. */
.ev, .row__msg span { border-radius: 4px; transition: background-color .3s, box-shadow .3s; }
.ev:has(.mark.is-on), .row__msg span:has(.mark.is-on) { background: #EEF0FF; box-shadow: 0 0 0 3px #EEF0FF; }
.mark { display: inline-grid; place-items: center; width: 0; height: 18px; margin-left: 0; overflow: hidden; border-radius: 50%; background: #101CFF; color: #FFFFFF; font: 600 11px/1 var(--font); vertical-align: -3px; opacity: 0; transform: scale(.4); transition: width .45s var(--ease), margin .45s var(--ease), opacity .25s, transform .45s var(--ease); }
.mark.is-on { width: 18px; margin-left: 6px; opacity: 1; transform: none; transition-delay: calc(var(--n, 0) * 120ms); }

/* ---------- illustration: Alongmate's answer ---------- */

.card { display: flex; flex-direction: column; min-width: 0; padding: 20px; background: #FFFFFF; color: #181A18; font-family: var(--font); }
.card__head { display: flex; align-items: center; gap: 8px; padding-bottom: 14px; border-bottom: 1px solid #E3E6EA; font-size: 15px; font-weight: 600; }
.card__head img { width: 24px; }
.card__asked { margin-top: 16px; color: #4A4F55; font-size: 13px; }
.card__q { align-self: flex-start; min-width: 48px; min-height: 36px; margin-top: 4px; padding: 7px 12px; border-radius: 12px 12px 12px 4px; background: #EEF0FF; font-size: 15px; font-weight: 500; line-height: 22px; }
.card__asked, .card__q { transition: opacity .25s; }
.card.is-blank .card__asked, .card.is-blank .card__q { opacity: 0; }
.card__q.is-typing [data-question]::after { content: ""; display: inline-block; width: 1.5px; height: 1em; margin-left: 2px; vertical-align: -2px; background: #101CFF; }

.answers { display: grid; margin-top: 16px; }
.answers > * { grid-area: 1 / 1; }
.card__wait { display: flex; gap: 5px; align-items: center; height: 26px; opacity: 0; transition: opacity .2s; }
.card__wait.is-shown { opacity: 1; }
.card__wait i { width: 7px; height: 7px; border-radius: 50%; background: #101CFF; animation: bob 1s ease-in-out infinite; }
.card__wait i:nth-child(2) { animation-delay: .15s; }
.card__wait i:nth-child(3) { animation-delay: .3s; }
@keyframes bob { 0%, 100% { opacity: .3; transform: none; } 50% { opacity: 1; transform: translateY(-3px); } }

.answer { opacity: 0; transform: translateY(8px); visibility: hidden; transition: opacity .3s ease, transform .55s var(--ease), visibility 0s linear .3s; }
.answer.is-shown { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
.answer__verdict { font-size: 20px; font-weight: 600; line-height: 26px; letter-spacing: -.01em; }
.answer__why { margin-top: 6px; color: #4A4F55; font-size: 15px; line-height: 22px; }
.answer__ev { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.answer__ev li { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 4px; border-radius: 999px; background: #EEF0FF; font-size: 13px; line-height: 18px; }
.answer__ev b { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #101CFF; color: #FFFFFF; font-size: 11px; }
.answer__next { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: #101CFF; color: #FFFFFF; font-size: 15px; line-height: 22px; }
.answer__next span { display: block; margin-bottom: 2px; color: #D4D6FF; font-size: 13px; font-weight: 600; }

/* The pointer moves on two axes with different easing, so it travels on a curve. */
.pointer { position: absolute; left: 0; top: 0; z-index: 3; pointer-events: none; transition: transform .95s var(--flow); }
.pointer__y { position: relative; transition: transform .95s cubic-bezier(.33, 1, .68, 1); }
.pointer svg { display: block; fill: #181A18; stroke: #FFFFFF; stroke-width: 1.4; stroke-linejoin: round; transform-origin: 2px 2px; transition: transform .15s ease; }
.pointer.is-press svg { transform: scale(.85); }
.pointer__ring { position: absolute; left: -13px; top: -13px; width: 30px; height: 30px; border: 2px solid #101CFF; border-radius: 50%; opacity: 0; }
.pointer.is-press .pointer__ring { animation: ring .7s var(--ease); }
@keyframes ring { from { opacity: .9; transform: scale(.3); } to { opacity: 0; transform: scale(1.5); } }
.pointer.is-still, .pointer.is-still .pointer__y { transition: none; }
.pointer { visibility: hidden; }
.is-live .pointer { visibility: visible; }

.demo__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 16px; color: var(--on-blue-muted); font-size: 15px; line-height: 22px; }
.demo__foot span { max-width: 60em; }

/* ---------- how it helps ---------- */

.how { padding-block: clamp(64px, 9vw, 120px) clamp(40px, 6vw, 72px); }
.how h2, .progress h2, .contact h2 { max-width: 20em; font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.25rem); font-weight: 600; line-height: 1.06; letter-spacing: -.03em; text-wrap: balance; }
.how__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px clamp(24px, 3vw, 48px); margin-top: clamp(32px, 5vw, 56px); }
.how__item h3 { margin-top: 22px; font-size: 20px; font-weight: 600; line-height: 26px; letter-spacing: -.01em; }
.how__item p { margin-top: 8px; max-width: 30em; color: var(--muted); }

.snip { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 8px; min-height: 112px; padding: 18px 20px; border-radius: 14px; background: var(--tint); }
.snip__asked { color: var(--muted); font-size: 14px; }
.snip__verdict { font-size: 22px; font-weight: 600; line-height: 28px; letter-spacing: -.01em; }
.snip__line { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; }
.snip b { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--blue); color: #FFFFFF; font-size: 12px; }
.snip__fail { padding: 2px 10px; border-radius: 999px; background: #FCE6E3; color: #A0231A; font-size: 13px; font-weight: 600; }
.snip__badge { padding: 2px 10px; border: 1.5px solid var(--accent); border-radius: 999px; color: var(--accent); font-size: 13px; font-weight: 600; }

/* ---------- progress ---------- */

.progress { padding-block: clamp(40px, 6vw, 72px) clamp(72px, 10vw, 128px); }
.progress__top { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px 64px; align-items: end; }
.progress__top p { max-width: 30em; color: var(--muted); font-size: 18px; }

.route { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px clamp(20px, 3vw, 44px); margin-top: clamp(40px, 6vw, 72px); padding-top: 84px; }
.route::before { content: ""; position: absolute; left: 0; right: 0; top: 63px; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px); }
.route::after { content: ""; position: absolute; left: 0; top: 63px; width: 14%; height: 2px; background: var(--blue); }
.stop { position: relative; }
.stop::before { content: ""; position: absolute; left: 13px; top: -27px; z-index: 1; width: 14px; height: 14px; border: 2px solid var(--line); border-radius: 50%; background: var(--bg); }
.stop--done::before { border-color: var(--blue); background: var(--blue); }
.stop__here { position: absolute; left: 0; top: -88px; display: flex; align-items: center; gap: 10px; color: var(--accent); font-size: 15px; font-weight: 600; white-space: nowrap; }
.stop__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--blue); }
.stop__icon img { width: 28px; }
.stop__state { display: block; color: var(--muted); font-size: 14px; font-weight: 600; }
.stop--done .stop__state { color: var(--accent); }
.stop h3 { margin-top: 6px; font-size: 20px; font-weight: 600; line-height: 26px; letter-spacing: -.01em; }
.stop p { margin-top: 8px; color: var(--muted); font-size: 16px; line-height: 1.5; }

/* ---------- contact and footer ---------- */

.contact { --focus: #FFFFFF; background: var(--blue); color: var(--on-blue); padding-block: clamp(64px, 9vw, 120px) clamp(48px, 7vw, 88px); }
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px 64px; align-items: center; }
.contact__text > p { margin-top: 16px; max-width: 30em; color: var(--on-blue-muted); font-size: clamp(17px, 12px + 1vw, 20px); }
.contact .actions { margin-top: 32px; }
.contact .contact__addr { margin-top: 18px; font-size: 16px; }
.contact__addr a { color: #FFFFFF; font-weight: 600; text-underline-offset: 3px; }
.contact__mark { width: clamp(160px, 22vw, 300px); height: auto; }

/* The symbol signs itself like an autograph when the section comes into view:
   the round stroke of the "a" is written first, which reveals the bird in its
   counter, then the stem and its flick, then the eye opens. Afterwards the bird
   blinks now and then, and when someone reaches for the early-access email.
   The script adds the mask only when motion is allowed, so without it the
   symbol simply shows at rest. */
.sign { overflow: visible; }
.sign__letter, .sign__eye { fill: #FFFFFF; }
.sign__eye { transform-box: fill-box; transform-origin: center; }
.sign__ink { fill: none; stroke: #FFFFFF; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 2; stroke-dashoffset: 1; opacity: 0; }
.sign__ink--bowl { stroke-width: 30; }
.sign__ink--stem { stroke-width: 26; }
.sign.is-waiting .sign__eye { transform: scale(0); }
.sign.is-writing .sign__ink--bowl { animation: sign-ink 1.05s cubic-bezier(.55, .08, .25, 1) forwards; }
.sign.is-writing .sign__ink--stem { animation: sign-ink .85s cubic-bezier(.5, 0, .2, 1) 1.1s forwards; }
.sign.is-writing .sign__eye { animation: sign-eye .5s cubic-bezier(.34, 1.56, .64, 1) 2.05s forwards; }
.sign__eye.is-blinking { animation: sign-blink .19s ease-in-out; }
@keyframes sign-ink { 0% { stroke-dashoffset: 1; opacity: 0; } 8% { opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 1; } }
@keyframes sign-eye { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes sign-blink { 0%, 100% { transform: scaleY(1); } 45% { transform: scaleY(.1); } }

.foot { --focus: #FFFFFF; background: var(--blue); color: var(--on-blue-muted); padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px)); }
.foot__row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .28); font-size: 14px; }
.foot__row img { width: 144px; margin-right: auto; }

/* ---------- stage: the scroll story ---------- */

/* Without motion the stage is an ordinary header: the intro, then the three
   captions as a row of columns. motion.js adds html.motion to pin it. */
.stage { padding: 0; }
.stage__pin { position: relative; }
.stage__dots { display: none; }
.stage__inner { position: relative; z-index: 1; padding-top: calc(env(safe-area-inset-top, 0px) + 14px); padding-bottom: clamp(56px, 8vw, 104px); }
.caps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px clamp(24px, 3vw, 48px); margin-top: clamp(48px, 7vw, 88px); }
.cap { padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .3); }
.cap__title { font-size: clamp(1.4rem, 1rem + 1.2vw, 1.9rem); font-weight: 600; line-height: 1.1; letter-spacing: -.02em; }
.cap p { margin-top: 10px; max-width: 26em; color: var(--on-blue-muted); }

.motion .stage { height: 420vh; height: 420svh; }
.motion .stage__pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.motion .stage__dots { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }
.motion .stage__inner { height: 100%; display: flex; flex-direction: column; padding-bottom: 0; pointer-events: none; }
.motion .stage__wrap { position: relative; flex: 1; width: 100%; display: flex; flex-direction: column; }
.motion .stage__wrap .nav, .motion .intro { pointer-events: auto; }
.motion .intro { flex: 1; justify-content: center; max-width: min(620px, 50%); padding-block: 16px 72px; }
.motion .intro h1 { max-width: 12em; font-size: clamp(2rem, 1rem + 3vw, 3.6rem); }
.motion .intro h1 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.motion .intro h1 .wi { display: inline-block; animation: word 1.15s var(--ease) both; animation-delay: calc(.12s + var(--i) * 42ms); }
@keyframes word { from { transform: translateY(108%) rotate(5deg); } }
.motion .caps { position: absolute; inset: 0; width: min(580px, 46%); margin: 0; pointer-events: none; }
.motion .cap { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 0 0 40px; border-top: 0; opacity: 0; visibility: hidden; }
.motion .cap__title { font-size: clamp(2.2rem, 1.2rem + 3vw, 4rem); line-height: 1.02; letter-spacing: -.035em; text-wrap: balance; }
.motion .cap p { margin-top: 18px; font-size: clamp(17px, 12px + 1vw, 20px); line-height: 1.5; }

/* ---------- the illustration, on Ink ---------- */

.see { --focus: #FFFFFF; background: var(--ink); color: #FFFFFF; padding-block: clamp(72px, 9vw, 128px) clamp(56px, 7vw, 96px); }
.see h2 { max-width: 18em; font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.25rem); font-weight: 600; line-height: 1.06; letter-spacing: -.03em; text-wrap: balance; }
.see .demo__foot { color: #C9CCD2; }

/* ---------- sections that slide over one another ---------- */

:root { --lap: 28px; }
.sheet { position: relative; z-index: 1; margin-top: calc(var(--lap) * -1); border-radius: var(--lap) var(--lap) 0 0; box-shadow: 0 -30px 60px -24px rgba(0, 0, 0, .35); }
.how, .progress { background: var(--bg); }
.sheet > .wrap { transform-origin: 50% 0; }

/* ---------- marquee ---------- */

.marq { overflow: hidden; background: var(--blue); color: #FFFFFF; padding-block: clamp(40px, 5vw, 72px) clamp(64px, 7vw, 104px); }
.marq__track { display: flex; align-items: center; width: max-content; }
.marq__track span { padding: 0 .3em; font-size: clamp(3rem, 1.5rem + 7vw, 8.5rem); font-weight: 600; line-height: 1.1; letter-spacing: -.045em; white-space: nowrap; }
.marq__track i { flex: none; width: .16em; height: .16em; border-radius: 50%; background: #FFFFFF; font-size: clamp(3rem, 1.5rem + 7vw, 8.5rem); }

/* ---------- reveals, drawn lines, the progress route ---------- */

.ruled { position: relative; }
.ruled::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line); transform-origin: left center; }
.how__item.ruled { padding-top: 28px; }
.motion .rv { opacity: 0; transform: translateY(34px); transition: opacity .9s ease, transform 1.2s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.motion .rv.in { opacity: 1; transform: none; }
.motion .ruled::before { transform: scaleX(0); transition: transform 1.3s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.motion .ruled.in::before { transform: none; }
.motion .split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.motion .split .wi { display: inline-block; transform: translateY(110%) rotate(4deg); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * 45ms); }
.motion .split.in .wi { transform: none; }
.motion .route::after { transform-origin: left center; transform: scaleX(var(--p, 0)); }
.motion .stop__here { opacity: var(--p, 0); transform: translateX(calc((1 - var(--p, 0)) * -48px)); }

/* ---------- reading progress ---------- */

.meter { position: fixed; left: 0; right: 0; top: env(safe-area-inset-top, 0px); z-index: 70; height: 2px; background: #FFFFFF; transform: scaleX(0); transform-origin: left center; pointer-events: none; }
.meter.on-paper { background: var(--accent); }

/* ---------- pointer details (mouse only) ---------- */

.ring { position: fixed; left: 0; top: 0; z-index: 60; width: 34px; height: 34px; margin: -17px 0 0 -17px; border: 1.5px solid #FFFFFF; border-radius: 50%; box-shadow: 0 0 0 1px rgba(16, 28, 255, .55), inset 0 0 0 1px rgba(16, 28, 255, .55); pointer-events: none; opacity: 0; transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), opacity .3s, background-color .3s; }
.ring.on { opacity: 1; }
.ring.big { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(255, 255, 255, .16); }
.mag { transition: translate .4s var(--ease), transform .3s var(--ease), background-color .2s, border-color .2s; }

/* ---------- phones: floating bar and full-screen menu ---------- */

.dock, .menu { display: none; }
:root { --dock-h: 56px; --dock-gap: calc(12px + env(safe-area-inset-bottom, 0px)); }

/* ---------- page not found (404.html) ---------- */

.lost { min-height: 100svh; }
.lost__body { padding-block: clamp(64px, 12vw, 160px); }
.lost__body h1 { max-width: 14em; font-size: clamp(2.2rem, 1.2rem + 4vw, 4.5rem); font-weight: 600; line-height: 1.04; letter-spacing: -.032em; }
.lost__body .lede { margin-top: 20px; }
.lost__body .actions { margin-top: 32px; }

/* ---------- narrower screens ---------- */

@media (max-width: 900px) {
  .screen { grid-template-columns: minmax(0, 1fr); }
  .app { border-right: 0; border-bottom: 1px solid #E3E6EA; }
  .how__grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .how__item { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 0 28px; align-items: center; }
  .how__item .snip { grid-row: span 2; }
  .how__item h3 { margin-top: 0; }
  .progress__top { grid-template-columns: minmax(0, 1fr); }
  .route { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 0; padding-left: 44px; }
  .route::before { left: 6px; right: auto; top: 10px; bottom: 10px; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--line) 0 8px, transparent 8px 14px); }
  .route::after { left: 6px; top: 10px; width: 2px; height: 72px; }
  .stop::before { left: -44px; top: 4px; }
  .stop__here { position: static; margin-bottom: 14px; }
}

@media (max-width: 760px) {
  .caps { grid-template-columns: minmax(0, 1fr); }
  .motion .intro { max-width: none; justify-content: flex-start; padding-top: 24px; }
  /* The stage is exactly one screen; the dotted story right below tells what
     the intro paragraph says, so on phones it steps aside to leave room for
     the bird. It stays in the still version. */
  .motion .stage__wrap { min-height: 0; }
  .motion .lede { display: none; }
  .motion .intro h1 { font-size: clamp(1.75rem, .9rem + 4.4vw, 2.3rem); }
  .motion .caps { width: 100%; }
  /* Story for one hand: the shape sits high, its caption sits low near the thumb. */
  .motion .cap { justify-content: flex-end; padding: 0 0 calc(var(--dock-h) + var(--dock-gap) + 28px); }
  .motion .cap__title { font-size: clamp(2rem, 1.2rem + 4vw, 2.6rem); }
  .motion .cap p { margin-top: 12px; font-size: 17px; }

  /* Floating bar: Menu and Early access, clear of the home indicator. */
  .js .nav .btn { display: none; }
  .js .dock { position: fixed; left: 12px; right: 12px; bottom: var(--dock-gap); z-index: 80; display: flex; align-items: center; justify-content: space-between; gap: 8px; height: var(--dock-h); padding: 0 6px 0 4px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 18px; background: rgba(24, 26, 24, .9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 12px 32px rgba(0, 0, 0, .3); color: #FFFFFF; }
  .dock__menu { display: flex; align-items: center; gap: 10px; min-width: 96px; height: 48px; padding: 0 14px; border: 0; border-radius: 12px; background: transparent; color: #FFFFFF; font-size: 16px; font-weight: 600; cursor: pointer; }
  .dock__menu:focus-visible { outline: 3px solid #FFFFFF; outline-offset: 0; }
  .dock__bars { position: relative; flex: none; width: 18px; height: 12px; }
  .dock__bars::before, .dock__bars::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: currentColor; transition: transform .45s var(--ease), top .45s var(--ease); }
  .dock__bars::before { top: 1px; }
  .dock__bars::after { top: 9px; }
  .dock__menu[aria-expanded="true"] .dock__bars::before { top: 5px; transform: rotate(45deg); }
  .dock__menu[aria-expanded="true"] .dock__bars::after { top: 5px; transform: rotate(-45deg); }
  .dock__cta { --focus: #FFFFFF; min-height: 44px; padding: 0 18px; border-radius: 12px; font-size: 15px; }
  .motion .dock { transform: translateY(160%); animation: dock-in .9s 1.1s var(--ease) forwards; }
  @keyframes dock-in { to { transform: none; } }

  /* Full-screen menu, opened from the bar. */
  .js .menu { position: fixed; inset: 0; z-index: 75; display: flex; flex-direction: column; justify-content: flex-end; padding: calc(24px + env(safe-area-inset-top, 0px)) max(5vw, 16px) calc(var(--dock-h) + var(--dock-gap) + 28px); background: var(--blue); color: #FFFFFF; --focus: #FFFFFF; }
  .js .menu[hidden] { display: none; }
  .menu__logo { position: absolute; top: calc(22px + env(safe-area-inset-top, 0px)); left: max(5vw, 16px); width: 150px; }
  .menu__links li { border-bottom: 1px solid rgba(255, 255, 255, .22); }
  .menu__links a { display: block; padding: 14px 0; font-size: clamp(2rem, 1.3rem + 4vw, 2.6rem); font-weight: 600; line-height: 1.1; letter-spacing: -.035em; text-decoration: none; }
  .menu__mail { margin-top: 24px; color: var(--on-blue-muted); font-size: 16px; }
  .menu__mail a { color: #FFFFFF; font-weight: 600; text-underline-offset: 3px; }
  .motion .menu.is-opening { animation: menu-in .7s var(--ease) both; }
  .motion .menu.is-opening .menu__links li { animation: rise .7s var(--ease) both; animation-delay: calc(.08s + var(--i, 0) * 60ms); }
  @keyframes menu-in { from { clip-path: circle(0% at 44px calc(100% - var(--dock-gap) - 28px)); } to { clip-path: circle(150% at 44px calc(100% - var(--dock-gap) - 28px)); } }
  .menu-open { overflow: hidden; }

  /* Room at the end of the page so the bar never covers the footer. */
  .js .foot { padding-bottom: calc(var(--dock-h) + var(--dock-gap) + 28px); }
  .motion .route::after { transform-origin: center top; transform: scaleY(var(--p, 0)); }
  .motion .stop__here { transform: none; }
  .nav__links { display: none; }
  .nav .btn { margin-left: auto; }
  .nav__home img { width: 150px; }
  .contact__grid { grid-template-columns: minmax(0, 1fr); }
  .contact__mark { order: -1; width: 96px; }
}

@media (max-width: 600px) {
  .row--extra, .app__group span { display: none; }
  .app__body { padding: 16px 14px 18px; }
  .card { padding: 18px 16px; }
  .how__item { grid-template-columns: minmax(0, 1fr); }
  .how__item .snip { grid-row: auto; }
  .how__item h3 { margin-top: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
