/* NotchUser landing. The look comes from the film "Beyond the Notch":
   black, the app's four state colors, SF Pro, one notch that changes shape. */

@property --glow { syntax: "<color>"; inherits: true; initial-value: #e2532d; }

:root {
  --s: 1;            /* scale of the notch, set from the viewport width (app.js) */
  --nh: 32;          /* the notch's current height in points, set every frame */
  --running: #61a3ff;
  --waiting: #ff9f0a;
  --done: #30d158;
  --failed: #ff5c5c;
  --accent: #e2532d; /* the album's color */
  --ink: rgba(255, 255, 255, 0.92);
  --ink-2: rgba(255, 255, 255, 0.7);
  --ink-3: rgba(255, 255, 255, 0.52);
  --line: rgba(255, 255, 255, 0.12);
  --font: -apple-system, "SF Pro Display", "SF Pro Text", BlinkMacSystemFont, "Helvetica Neue", Inter, "Segoe UI", sans-serif;
  --mono: "SF Mono", ui-monospace, Menlo, Monaco, Consolas, monospace;
  --out: cubic-bezier(0.16, 1, 0.3, 1);
  --spring: cubic-bezier(0.3, 1.35, 0.5, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; }
body { margin: 0; background: #000; color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.5; overflow-x: hidden; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--running); outline-offset: 3px; border-radius: 6px; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: #fff; color: #000; padding: 8px 14px; border-radius: 10px; }
.skip:focus { top: 48px; }

/* ── Scenery ─────────────────────────────────────────────────────────── */
.wallpaper {
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(90vw 70vh at 18% 62%, rgba(44, 34, 120, 0.34), transparent 70%),
    radial-gradient(80vw 60vh at 86% 46%, rgba(96, 42, 136, 0.26), transparent 70%),
    radial-gradient(110vw 52vh at 50% 112%, rgba(150, 54, 26, 0.3), transparent 70%),
    #000;
}
.wallpaper::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(0, 0, 0, 0.7)); }
.shade {
  position: fixed; left: 0; right: 0; top: 0; z-index: 30; pointer-events: none;
  height: calc(var(--nh) * var(--s) * 1px + 120px);
  background: linear-gradient(#000 0%, rgba(0, 0, 0, 0.94) 52%, rgba(0, 0, 0, 0));
}
.ambient {
  position: fixed; top: 0; left: 50%; z-index: 35; pointer-events: none;
  width: min(1200px, 150vw); height: 70vh; transform: translateX(-50%);
  background: radial-gradient(50% 62% at 50% 0, color-mix(in srgb, var(--glow) 32%, transparent), transparent);
  transition: --glow 0.8s ease;
}

/* ── Menu bar ────────────────────────────────────────────────────────── */
.menubar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  height: calc(32px * var(--s)); min-height: 28px;
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 max(14px, env(safe-area-inset-left)); font-size: 13px; font-weight: 500;
}
.menubar nav, .menu-right { display: flex; align-items: center; gap: 16px; }
.menubar a, .menubar button { color: rgba(255, 255, 255, 0.82); text-decoration: none; position: relative; white-space: nowrap; transition: color 0.15s, opacity 0.2s ease, visibility 0.2s; }
.menubar a::before, .menubar button::before { content: ""; position: absolute; }
.menubar a:hover, .menubar button:hover { color: #fff; }
.menubar .brand { font-weight: 700; color: #fff; }
.menubar .lang { font-weight: 600; font-size: 12px; }
.menubar .tucked { opacity: 0; visibility: hidden; }
.si { flex: none; width: 17px; height: 17px; fill: currentColor; }
.menubar .social { display: inline-flex; align-items: center; gap: 6px; }
.menubar a::before, .menubar button::before { inset: -12px -8px; }
@media (max-width: 1439px) { .menubar .social span { display: none; } }
@media (max-width: 1080px) { .menubar .wide { display: none; } }
@media (max-width: 899px) { .menu-right { display: none !important; } }

/* ── The notch ───────────────────────────────────────────────────────── */
.notch { position: fixed; top: 0; left: 50%; width: 0; height: 0; z-index: 60; transform: scale(var(--s)); transform-origin: 0 0; font-size: 13px; line-height: 1.25; }
.notch svg.notch-bloom, .notch svg.notch-lines { position: absolute; left: -280px; top: 0; width: 560px; height: 300px; overflow: visible; pointer-events: none; }
.notch-bloom { filter: blur(22px); opacity: 0.34; }
.notch-bloom path { fill: var(--glow); }
.notch-shadow { transition: filter 0.4s ease; }
.notch-body { position: absolute; left: -280px; top: 0; width: 560px; height: 300px; background: #000; clip-path: path("M187.5 0 Q193.5 0 193.5 6 L193.5 22 Q193.5 32 203.5 32 L356.5 32 Q366.5 32 366.5 22 L366.5 6 Q366.5 0 372.5 0 Z"); transition: background-color 0.4s ease; }
.bg { position: absolute; inset: 0; opacity: 0; transition: opacity 0.5s ease; pointer-events: none; }
.bg-frost { background: linear-gradient(#000 0, #000 30px, #1d1930 76px, #241e3a); }
.bg-album { background: radial-gradient(70% 90% at 34% 100%, #b03e22, transparent 70%), radial-gradient(60% 80% at 74% 96%, #7b2c44, transparent 70%), linear-gradient(#000 0, #000 26px, #2c100c 84px, #47180f); }
.bg-aurora { -webkit-mask-image: linear-gradient(transparent 22px, #000 80px); mask-image: linear-gradient(transparent 22px, #000 80px); overflow: hidden; }
.bg-aurora i { position: absolute; width: 376px; height: 376px; margin: -188px; border-radius: 50%; }
.bg-aurora i:nth-child(1) { background: radial-gradient(closest-side, hsla(13, 82%, 58%, 0.75), transparent); left: 22%; top: 20%; animation: drift1 6s ease-in-out infinite alternate; }
.bg-aurora i:nth-child(2) { background: radial-gradient(closest-side, hsla(38, 82%, 58%, 0.7), transparent); left: 82%; top: 30%; animation: drift2 8s ease-in-out infinite alternate; }
.bg-aurora i:nth-child(3) { background: radial-gradient(closest-side, hsla(338, 76%, 58%, 0.75), transparent); left: 50%; top: 10%; animation: drift3 10s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(190px, 60px); } }
@keyframes drift2 { to { transform: translate(-210px, -40px); } }
@keyframes drift3 { to { transform: translate(170px, 70px); } }
.bg-glass { background: linear-gradient(#000 0, #000 28px, rgba(255, 255, 255, 0.1) 80px, rgba(255, 255, 255, 0.05)); -webkit-backdrop-filter: blur(22px) saturate(1.7); backdrop-filter: blur(22px) saturate(1.7); }

.notch:not([data-view="player"]):not([data-view="closed"]) .bg-frost { opacity: 1; }
.notch[data-view="player"][data-bg="album"] .bg-album { opacity: 1; }
.notch[data-view="player"][data-bg="aurora"] .bg-aurora { opacity: 0.75; }
.notch[data-view="player"][data-style="glass"] .notch-body { background: rgba(0, 0, 0, 0.42); }
.notch[data-view="player"][data-style="glass"] .bg-glass { opacity: 1; }
.notch[data-view="player"][data-style="glass"][data-bg="album"] .bg-album { opacity: 0.6; }
.notch[data-view="player"][data-style="elevated"] .notch-shadow,
.notch[data-view="player"][data-style="glass"] .notch-shadow { filter: drop-shadow(0 10px 22px rgba(226, 83, 45, 0.34)) drop-shadow(0 3px 8px rgba(0, 0, 0, 0.6)); }

/* lights that follow the outline */
.notch-lines path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.wait { opacity: 0; transition: opacity 0.4s ease; }
.wait path { stroke: var(--waiting); }
#waitBlur { stroke-width: 5; filter: blur(4px); }
#waitLine { stroke-width: 1.5; }
.notch.waiting .wait { opacity: 1; animation: breathe 0.9s ease-in-out infinite alternate; }
@keyframes breathe { from { opacity: 0.45; } to { opacity: 1; } }
.sweep { opacity: 0; }
.sweep path { stroke-dasharray: 0.3 2; stroke-dashoffset: 0.3; stroke: var(--done); }
#sweepBlur { stroke-width: 6; filter: blur(5px); }
#sweepLine { stroke-width: 2; }

/* closed: the cover on one side of the camera, the bars on the other */
.sides { position: absolute; left: 143.5px; top: 0; width: 273px; height: 32px; padding: 0 12px; display: flex; align-items: center; justify-content: space-between; opacity: 0; transition: opacity 0.25s ease; }
.notch[data-view="closed"] .sides { opacity: 1; transition-delay: 0.2s; }
.cover { flex: none; width: 56px; height: 56px; border-radius: 12px; background: linear-gradient(118deg, transparent 50%, #e2532d 55%, #8c2414 62%, transparent 69%), linear-gradient(118deg, transparent 30%, rgba(226, 83, 45, 0.25) 46%, transparent 50%), #070707; box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.14), 0 3px 12px rgba(226, 83, 45, 0.4); }
.cover.mini { width: 20px; height: 20px; border-radius: 5px; box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.14); }
.bars { flex: none; width: 18px; height: 16px; display: flex; align-items: center; justify-content: center; gap: 2px; }
.bars i { width: 2.5px; height: 16px; border-radius: 1.25px; background: var(--accent); animation: bar 0.52s ease-in-out infinite alternate; transform: scaleY(0.4); }
.bars i:nth-child(2) { animation-duration: 0.37s; }
.bars i:nth-child(3) { animation-duration: 0.61s; }
.bars i:nth-child(4) { animation-duration: 0.44s; }
.notch.paused .bars i { animation-play-state: paused; }
@keyframes bar { to { transform: scaleY(1); } }

/* panels: what the open notch is showing */
.panel { position: absolute; left: 69px; top: 39px; width: 422px; margin: 0; opacity: 0; filter: blur(6px); transform: translateY(-4px); pointer-events: none; transition: opacity 0.16s ease, filter 0.16s ease, transform 0.16s ease; }
.notch[data-view="player"] .panel[data-panel="player"],
.notch[data-view="agents"] .panel[data-panel="agents"],
.notch[data-view="plan"] .panel[data-panel="plan"],
.notch[data-view="launcher"] .panel[data-panel="launcher"],
.notch[data-view="question"] .panel[data-panel="question"],
.notch[data-view="approval"] .panel[data-panel="approval"],
.notch[data-view="tasks"] .panel[data-panel="tasks"] { opacity: 1; filter: none; transform: none; pointer-events: auto; transition-duration: 0.32s; transition-delay: 0.1s; transition-timing-function: var(--out); }

/* player */
.pl-top { display: flex; align-items: center; gap: 14px; height: 56px; }
.pl-meta { flex: 1; min-width: 0; }
.pl-meta b { display: block; font-size: 15px; font-weight: 600; line-height: 19px; white-space: nowrap; }
.pl-meta span { display: block; font-size: 13px; font-weight: 500; color: rgba(255, 255, 255, 0.65); line-height: 17px; margin-top: 2px; }
.pl-scrub { height: 14px; margin-top: 6px; display: flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 500; font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, 0.5); }
.pl-scrub span:first-child { width: 34px; }
.pl-scrub span:last-child { width: 38px; text-align: right; }
.track { flex: 1; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.18); overflow: hidden; }
.track div { height: 4px; width: 30%; border-radius: 2px; background: rgba(255, 255, 255, 0.7); transition: width 1s linear; }
.pl-ctl { height: 42px; margin-top: 6px; display: flex; align-items: center; justify-content: space-between; }
.pl-l, .pl-r { width: 118px; display: flex; align-items: center; gap: 22px; padding: 0 12px; }
.pl-r { justify-content: flex-end; padding-right: 6px; }
.pod { display: flex; align-items: center; gap: 4px; padding: 0 6px; border-radius: 21px; transition: background-color 0.4s ease, box-shadow 0.4s ease; }
.notch[data-style="elevated"] .pod, .notch[data-style="glass"] .pod { background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 0.6px rgba(255, 255, 255, 0.12), 0 3px 6px rgba(0, 0, 0, 0.3); }
.pod button { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; transition: transform 0.15s ease-out; }
.pod button:active { transform: scale(0.9); }
.ic { width: 19px; height: 19px; fill: #fff; grid-area: 1 / 1; }
.ic.big { width: 26px; height: 26px; transition: opacity 0.15s, transform 0.15s; }
.ic.line { fill: none; stroke: rgba(255, 255, 255, 0.7); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; width: 17px; height: 17px; }
.ic.small { width: 15px; height: 15px; }
#plToggle .play { opacity: 0; transform: scale(0.6); }
.notch.paused #plToggle .play { opacity: 1; transform: none; }
.notch.paused #plToggle .pause { opacity: 0; transform: scale(0.6); }

/* activity rows */
.row { height: 46px; display: flex; align-items: center; gap: 12px; --c: var(--running); }
.row[data-state="waiting"] { --c: var(--waiting); }
.row[data-state="done"] { --c: var(--done); }
.row[data-state="failed"] { --c: var(--failed); }
.badge { position: relative; flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 16%, transparent); transition: background-color 0.35s ease; }
.badge svg { grid-area: 1 / 1; }
.badge .ring { width: 30px; height: 30px; fill: none; stroke: var(--c); stroke-width: 2.2; stroke-linecap: round; }
.badge .ring.spin { transform-origin: 50% 50%; animation: spin 0.95s linear infinite; }
.badge .ring .bgc { stroke: color-mix(in srgb, var(--c) 25%, transparent); }
.badge .ring .arc { transition: stroke-dasharray 0.6s var(--out); }
.badge .glyph { width: 14px; height: 14px; fill: none; stroke: var(--c); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; animation: pop 0.35s var(--spring); }
.badge .glyph.solid { fill: var(--c); stroke: none; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop { from { transform: scale(0.5); opacity: 0; } }
.row-text { flex: 1; min-width: 0; }
.row-text b { display: block; font-size: 13px; font-weight: 600; line-height: 16px; white-space: nowrap; }
.row-text span { display: block; font-size: 11.5px; line-height: 15px; margin-top: 1px; color: rgba(255, 255, 255, 0.55); white-space: nowrap; font-variant-numeric: tabular-nums; }
.row[data-state="waiting"] .row-text span { font-family: var(--mono); color: rgba(255, 255, 255, 0.8); }
.actions { display: flex; align-items: center; gap: 6px; opacity: 0.45; transition: opacity 0.3s ease; }
.actions.armed { opacity: 1; }
.cap { position: relative; height: 26px; padding: 0 12px; border-radius: 13px; font-size: 12px; font-weight: 600; white-space: nowrap; color: rgba(255, 255, 255, 0.85); background: rgba(255, 255, 255, 0.12); transition: transform 0.15s ease-out, background-color 0.15s; }
.cap::before { content: ""; position: absolute; inset: -9px -2px; }
.cap.primary { color: #000; background: rgba(255, 255, 255, 0.92); }
.cap:hover { background: rgba(255, 255, 255, 0.2); }
.cap.primary:hover { background: #fff; }
.cap:active { transform: scale(0.94); }
.cap:disabled { cursor: default; }
.dismiss { width: 24px; height: 24px; display: grid; place-items: center; color: rgba(255, 255, 255, 0.4); font-size: 11px; }

/* a question */
.q-head { height: 18px; display: flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 600; color: rgba(255, 255, 255, 0.55); }
.q-head svg { width: 11px; height: 11px; fill: var(--waiting); }
.q-head em { font-style: normal; font-size: 10px; color: rgba(255, 255, 255, 0.75); padding: 2px 7px; border-radius: 9px; background: rgba(255, 255, 255, 0.1); }
.q-title { font-size: 15px; font-weight: 600; line-height: 19px; padding: 8px 0 12px; }
.q-opts { display: flex; flex-direction: column; gap: 6px; }
.opt { height: 42px; width: 100%; padding: 0 12px; border-radius: 12px; display: flex; align-items: center; gap: 10px; text-align: left; background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 0.6px rgba(255, 255, 255, 0.08); transition: background-color 0.2s, box-shadow 0.2s, opacity 0.3s, transform 0.15s ease-out; }
.opt:hover { background: rgba(255, 255, 255, 0.11); }
.opt:active { transform: scale(0.985); }
.opt div { flex: 1; }
.opt b { display: block; font-size: 13px; font-weight: 600; line-height: 16px; }
.opt span { display: block; font-size: 10.5px; line-height: 13px; margin-top: 1px; color: rgba(255, 255, 255, 0.5); }
.opt svg { width: 15px; height: 15px; opacity: 0; transform: scale(0.4); transition: opacity 0.2s, transform 0.35s var(--spring); }
.opt[aria-pressed="true"] { background: rgba(255, 255, 255, 0.18); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35); }
.opt[aria-pressed="true"] svg { opacity: 1; transform: none; }
.q-opts.sent .opt[aria-pressed="false"] { opacity: 0.45; }
.q-foot { height: 22px; margin-top: 10px; display: flex; align-items: center; font-size: 11px; color: rgba(255, 255, 255, 0.4); }

/* ── Scenes ──────────────────────────────────────────────────────────── */

.headline { margin: 0; font-size: clamp(1.3rem, 3.3vw, 2.75rem); font-weight: 600; line-height: 1.24; letter-spacing: 0.2em; padding-left: 0.2em; text-transform: uppercase; color: #fff; max-width: 22em; }
.headline .ln { display: block; }
.headline .wd { display: inline-block; white-space: nowrap; }
.headline .ch { display: inline-block; }
@media (max-width: 560px) { .headline { letter-spacing: 0.13em; padding-left: 0.13em; } }

.label { margin: 0; font-size: 13px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); }
.label kbd { font: inherit; color: var(--ink-2); letter-spacing: 0.08em; }
.label .gap { display: inline-block; width: 1.4em; }
.lede { margin: 0; max-width: 34em; font-size: clamp(1rem, 1.25vw, 1.1875rem); color: var(--ink-2); text-wrap: pretty; }
.fine { margin: 0; max-width: 40em; font-size: 14px; color: var(--ink-3); text-wrap: pretty; }
.fine a { color: var(--ink-2); text-underline-offset: 3px; }

.cta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; margin-top: 8px; max-width: 100%; }
.btn { display: inline-flex; align-items: center; height: 46px; padding: 0 24px; border-radius: 23px; font-size: 15px; font-weight: 600; text-decoration: none; transition: transform 0.15s ease-out, background-color 0.15s; }
.btn.primary { color: #000; background: rgba(255, 255, 255, 0.92); }
.btn.primary:hover { background: #fff; }
.btn:active { transform: scale(0.96); }
.cmd { display: flex; align-items: center; gap: 10px; height: 46px; max-width: 100%; padding: 0 6px 0 18px; border-radius: 23px; background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 0 0 1px var(--line); }
.cmd code { font-family: var(--mono); font-size: 13px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.copy { flex: none; height: 34px; min-width: 64px; padding: 0 14px; border-radius: 17px; font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, 0.85); background: rgba(255, 255, 255, 0.12); transition: transform 0.15s ease-out, background-color 0.15s; }
.copy:hover { background: rgba(255, 255, 255, 0.2); }
.copy:active { transform: scale(0.96); }


/* the settings, as the film labels them */
.selector { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 100%; }
.seg { position: relative; display: grid; grid-template-columns: repeat(var(--n), 1fr); width: min(100%, calc(var(--n) * 128px)); height: 46px; }
.seg .thumb { position: absolute; top: 0; height: 100%; left: calc(var(--i, 0) * 100% / var(--n) + 4px); width: calc(100% / var(--n) - 8px); border-radius: 23px; background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); transition: left 0.45s var(--spring); }
.seg button { position: relative; font-size: 15px; font-weight: 600; letter-spacing: 0.01em; color: rgba(255, 255, 255, 0.42); border-radius: 23px; transition: color 0.25s ease; }
.seg button:hover { color: rgba(255, 255, 255, 0.7); }
.seg button[aria-checked="true"] { color: rgba(255, 255, 255, 0.98); }
@media (max-width: 420px) { .seg button { font-size: 13.5px; } }


.film video { width: min(100%, 960px); aspect-ratio: 16 / 9; margin-top: 12px; border-radius: 16px; background: #000; outline: 1px solid rgba(255, 255, 255, 0.1); outline-offset: -1px; }

.tagline { margin: 0 0 12px; font-size: clamp(1.125rem, 2vw, 1.5rem); font-weight: 500; color: rgba(255, 255, 255, 0.86); }

/* ── The film's choreography: each headline arrives letter by letter, out of a blur,
      while its tracking settles; the lines under it follow. Once per scene. ────── */
@media (prefers-reduced-motion: no-preference) {
  .js .headline { transition: letter-spacing 1.5s var(--out); letter-spacing: 0.32em; }
  .js .scene.in .headline { letter-spacing: 0.2em; }
  .js .headline .ch { opacity: 0; }
  .js .scene.in .headline .ch { animation: rise 0.6s var(--out) both; }
  .js .headline .ch { animation-delay: calc(var(--i) * 26ms + var(--lo, 0) * var(--line-gap, 0ms)); }
  .js .scene .rv { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.8s var(--out); }
  .js .scene.in .rv { opacity: 1; transform: none; transition-delay: calc(0.5s + var(--hold, 0s)); }
  .js .scene.in .rv ~ .rv { transition-delay: calc(0.62s + var(--hold, 0s)); }
  .js .scene.in .rv ~ .rv ~ .rv { transition-delay: calc(0.74s + var(--hold, 0s)); }
  .js .scene.in .duo .rv ~ .rv { transition-delay: 0.86s; }
  .js .end .logo { --wipe: linear-gradient(105deg, #000 42%, transparent 58%); -webkit-mask-image: var(--wipe), var(--soft); mask-image: var(--wipe), var(--soft); -webkit-mask-size: 320% 100%, 100% 100%; mask-size: 320% 100%, 100% 100%; -webkit-mask-position: 100% 0, 0 0; mask-position: 100% 0, 0 0; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-composite: source-in; mask-composite: intersect; transition: -webkit-mask-position 1.3s ease-in-out, mask-position 1.3s ease-in-out, opacity 0.3s; transform: none; }
  .js .end.in .logo { -webkit-mask-position: 0 0, 0 0; mask-position: 0 0, 0 0; transition-delay: 0.1s; }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 560px) {
  .js .headline { letter-spacing: 0.2em; }
  .js .scene.in .headline { letter-spacing: 0.13em; }
}
@keyframes rise { from { opacity: 0; transform: translateY(0.38em); filter: blur(10px); } to { opacity: 1; transform: none; filter: blur(0); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bars i, .bg-aurora i, .notch.waiting .wait { animation: none; }
  .badge .ring.spin { animation-duration: 2.4s; }
}

/* ── Layout of a landing page: scenes, pinned while the notch plays ──── */
.scene { min-height: 100vh; min-height: 100svh; padding: calc(var(--open, 170) * var(--s) * 1px + 11vh) 24px 14vh; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; }
.scene.more, .scene.faq, .scene.film, .scene.end { padding-top: max(20vh, 140px); }
.stage, .stage-inner { display: contents; }
.hero { --line-gap: 1250ms; --hold: 2s; }
.hero-in { display: flex; flex-direction: column; align-items: center; gap: 20px; width: 100%; }

.duo { display: grid; gap: 28px; width: 100%; max-width: 560px; margin-top: 8px; }
.pitch .lede { max-width: none; }
.points { list-style: none; margin: 18px auto 0; padding: 0; display: grid; gap: 10px; width: fit-content; text-align: left; font-size: 15.5px; color: var(--ink); }
.points li, .proof li { position: relative; padding-left: 26px; }
.points li::before, .proof li::before { content: ""; position: absolute; left: 0; top: 0.2em; width: 16px; height: 16px; border-radius: 50%; background: color-mix(in srgb, var(--done) 18%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.6 8.4l2.2 2.2 4.6-5.2' fill='none' stroke='%2330d158' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }
.proof { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px; font-size: 14px; color: var(--ink-2); }

.statement { margin: 0; max-width: 17em; font-size: clamp(1.6rem, 3.7vw, 3.2rem); font-weight: 600; line-height: 1.18; letter-spacing: -0.012em; text-wrap: balance; }
.fx .statement .w { opacity: 0.16; }
.why { justify-content: center; padding-top: 14vh; }

/* the terminal: the cause, on the page; the notch above shows the effect */
.termwin { width: 100%; border-radius: 12px; overflow: hidden; text-align: left; background: rgba(17, 16, 23, 0.78); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px var(--line), 0 24px 60px rgba(0, 0, 0, 0.5); }
.tw-bar { position: relative; height: 32px; display: flex; align-items: center; gap: 7px; padding: 0 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.tw-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); }
.tw-bar span { position: absolute; left: 0; right: 0; text-align: center; font-size: 12px; color: var(--ink-3); pointer-events: none; }
.tw-body { height: 196px; padding: 12px 16px; overflow: hidden; font-family: var(--mono); font-size: 12.5px; line-height: 1.75; color: rgba(255, 255, 255, 0.8); white-space: pre-wrap; }
.tw-body div { animation: twin 0.25s var(--out); }
@keyframes twin { from { opacity: 0; transform: translateY(4px); } }
.tw-body .tp { color: var(--ink-3); }
.tw-body .to { color: #f08a5d; }
.tw-body .tg { color: var(--done); }
.tw-body .ta { color: var(--waiting); }
.tw-body .tr { color: var(--failed); }
.tw-body .td { color: rgba(255, 255, 255, 0.45); }
.tw-body .caret { display: inline-block; width: 7px; height: 14px; margin-left: 1px; vertical-align: -2px; background: rgba(255, 255, 255, 0.75); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.selectors { display: flex; flex-direction: column; gap: 20px; width: 100%; align-items: center; }

@media (min-width: 900px) and (min-height: 640px) {
  .scene.pin { display: block; height: 200vh; min-height: 0; padding: 0; }
  .scene.pin .stage { display: flex; position: sticky; top: 0; height: 100vh; padding: calc(var(--open) * var(--s) * 1px + 36px) 40px 36px; align-items: center; justify-content: center; }
  .scene.pin .stage-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; width: 100%; }
  .scene.pin .headline { font-size: clamp(1.4rem, 2.7vw, 2.4rem); }
  .duo { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; max-width: 1040px; align-items: center; text-align: left; margin-top: 14px; }
  .points { margin-left: 0; }
  .why .stage { padding-top: 0; padding-bottom: 0; }
}

@media (min-width: 900px) and (max-height: 760px) { .tw-body { height: 148px; } }

/* more than a notch */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; width: min(100%, 1040px); margin-top: 16px; text-align: left; }
.card { border-radius: 20px; padding: 22px; background: rgba(255, 255, 255, 0.045); box-shadow: inset 0 0 0 1px var(--line); }
.card h3 { margin: 0; font-size: 17px; font-weight: 600; color: #fff; }
.card p { margin: 6px 0 0; font-size: 15px; color: var(--ink-2); text-wrap: pretty; }
.vig { position: relative; height: 150px; margin: -8px -8px 18px; border-radius: 12px; overflow: hidden; background: rgba(0, 0, 0, 0.42); display: grid; place-items: center; }
.lyr { place-items: start; align-content: center; gap: 7px; padding: 0 22px; background: radial-gradient(90% 120% at 20% 110%, rgba(226, 83, 45, 0.42), transparent 70%), rgba(0, 0, 0, 0.42); }
.lyr p { margin: 0; font-size: 15px; font-weight: 600; color: rgba(255, 255, 255, 0.26); transform-origin: 0 50%; transition: color 0.45s ease, transform 0.6s var(--out); }
.lyr p.on { color: #fff; transform: scale(1.06); }
.shelf { display: flex; flex-wrap: wrap; gap: 8px; padding: 18px; justify-content: center; align-content: center; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px 0 8px; border-radius: 10px; font-size: 13px; font-weight: 500; background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); }
.chip i { width: 16px; height: 20px; border-radius: 4px; background: var(--k); }
.meter { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; font-variant-numeric: tabular-nums; }
.meter .big b { font-size: 46px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.meter .big span { margin-left: 6px; font-size: 15px; color: var(--ink-3); }
.gauge { width: 62%; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.gauge i { display: block; width: 4%; height: 100%; border-radius: 3px; background: var(--done); transform-origin: 0 50%; }
.meter .small { font-size: 13px; color: var(--ink-3); }
.meter .small b { color: var(--ink); font-weight: 600; }
@media (max-width: 860px) { .bento { grid-template-columns: 1fr; max-width: 520px; } }

/* fair questions */
.qa { width: min(100%, 720px); margin-top: 12px; text-align: left; border-bottom: 1px solid var(--line); }
.qa details { border-top: 1px solid var(--line); }
.qa summary { position: relative; list-style: none; cursor: pointer; padding: 20px 44px 20px 0; font-size: 18px; font-weight: 600; text-wrap: balance; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; margin-top: -7px; background: linear-gradient(#fff, #fff) center / 14px 1.6px no-repeat, linear-gradient(#fff, #fff) center / 1.6px 14px no-repeat; opacity: 0.6; transition: transform 0.35s var(--spring); }
.qa details[open] summary::after { transform: rotate(45deg); }
.ans { overflow: hidden; }
.ans p { margin: 0; padding-bottom: 20px; font-size: 16px; color: var(--ink-2); max-width: 38em; text-wrap: pretty; }

/* up in a minute */
.end { gap: 16px; }
.steps { list-style: none; counter-reset: step; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 32px; width: min(100%, 960px); text-align: left; }
.steps li { counter-increment: step; border-top: 1px solid var(--line); padding-top: 14px; }
.steps li::before { content: counter(step); display: block; margin-bottom: 8px; font-size: 13px; font-weight: 600; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.steps b { display: block; font-size: 17px; font-weight: 600; }
.steps span { display: block; margin-top: 4px; font-size: 15px; color: var(--ink-2); text-wrap: pretty; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; max-width: 480px; } }
.end .logo { width: min(74vw, 340px); height: auto; margin: 0 0 -60px; mix-blend-mode: lighten; --soft: radial-gradient(closest-side, #000 62%, transparent 97%); -webkit-mask-image: var(--soft); mask-image: var(--soft); }
.end footer { margin-top: auto; padding: 64px 0 72px; display: flex; flex-direction: column; align-items: center; gap: 12px; }

/* the light that leaves along the top of the screen, as far as the page has been read */
.edge { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 55; pointer-events: none; transform: scaleX(0); background: linear-gradient(90deg, transparent, var(--glow) 20%, #fff 50%, var(--glow) 80%, transparent); box-shadow: 0 0 12px var(--glow); opacity: 0.85; }

/* a slow drift in the wallpaper */
.wallpaper::before { content: ""; position: absolute; inset: -20%; background: radial-gradient(34% 30% at 30% 40%, rgba(70, 50, 170, 0.22), transparent 70%), radial-gradient(30% 28% at 72% 62%, rgba(170, 60, 60, 0.16), transparent 70%); animation: wander 26s ease-in-out infinite alternate; }
@keyframes wander { to { transform: translate(6%, -5%) rotate(8deg) scale(1.08); } }

/* phones: the download stays within reach */
.dock { position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 70; display: none; gap: 8px; padding: 8px; border-radius: 31px; background: rgba(22, 21, 28, 0.82); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: inset 0 0 0 1px var(--line), 0 12px 40px rgba(0, 0, 0, 0.5); transform: translateY(160%); transition: transform 0.6s var(--spring); }
.dock .btn { justify-content: center; white-space: nowrap; padding: 0 16px; }
.dock .btn.primary { flex: 1; }
.dock .round { flex: none; width: 46px; padding: 0; font-size: 14px; }
.dock .si { width: 21px; height: 21px; }
html:not(.js) .dock { transform: none; }
.btn.ghost { color: #fff; background: rgba(255, 255, 255, 0.1); }
.dock.on { transform: none; }
@media (max-width: 899px) { .dock { display: flex; } .end footer { padding-bottom: 120px; } }

.follow { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.follow .btn { gap: 9px; }
.btn.ghost:hover { background: rgba(255, 255, 255, 0.18); }
.news { font-size: 15px; font-weight: 600; color: var(--running); text-decoration: none; padding: 10px; }
.news:hover { text-decoration: underline; text-underline-offset: 4px; }

/* the agent's plan */
.open-plan { position: relative; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; }
.open-plan::before { content: ""; position: absolute; inset: -11px 0 -11px -398px; border-radius: 12px; }
.open-plan svg { width: 13px; fill: none; stroke: rgba(255, 255, 255, 0.55); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.2s var(--out); }
.open-plan:hover svg { transform: translateX(3px); stroke: #fff; }
.pn-head { height: 30px; display: flex; align-items: center; justify-content: space-between; }
.pn-head b { font-weight: 600; }
.pn-head em { font-style: normal; font-size: 11.5px; font-weight: 600; color: var(--running); font-variant-numeric: tabular-nums; }
.pn-bar { height: 3px; border-radius: 2px; background: rgba(255, 255, 255, 0.12); overflow: hidden; margin-bottom: 9px; }
.pn-bar i { display: block; height: 100%; border-radius: 2px; background: var(--running); transform-origin: 0 50%; transform: scaleX(0); transition: transform 0.6s var(--out); }
.pn-steps { list-style: none; margin: 0; padding: 0; }
.pn-steps li { height: 22px; display: flex; align-items: center; gap: 8px; font-size: 12px; color: rgba(255, 255, 255, 0.7); }
.pn-steps svg { flex: none; width: 13px; height: 13px; }
.pn-steps .spin { animation: spin 0.95s linear infinite; }
.pn-steps [data-st="done"] { color: rgba(255, 255, 255, 0.5); text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, 0.3); }
.pn-steps [data-st="active"] { color: #fff; font-weight: 600; }
.pn-foot { display: flex; justify-content: flex-end; margin-top: 8px; }

/* favorite sites and apps */
.tiles { height: 60px; display: flex; justify-content: center; align-items: center; gap: 6px; perspective: 500px; }
.tile { position: relative; width: 46px; height: 54px; display: grid; place-items: center; touch-action: none; transition: transform 0.3s var(--spring), opacity 0.2s; animation: tile-in 0.5s var(--spring) both; animation-delay: calc(0.12s + var(--i) * 45ms); }
.tile::before { content: ""; position: absolute; width: 40px; height: 40px; border-radius: 12px; background: var(--k); filter: blur(9px); opacity: 0.35; transform: translateY(4px); transition: opacity 0.2s, transform 0.2s; }
.tile span, .tile-face { position: relative; width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; background: linear-gradient(rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.03) 50%, transparent), var(--k); box-shadow: inset 0 0.8px 0 rgba(255, 255, 255, 0.5), inset 0 0 0 0.6px rgba(255, 255, 255, 0.16), 0 4px 8px rgba(0, 0, 0, 0.5); transition: transform 0.18s ease-out; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.tile svg, .tile-face svg, .qchip svg { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.tile svg { width: 23px; height: 23px; color: #fff; }
.tile:hover span { transform: translateY(-3px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.tile:hover::before { opacity: 0.9; transform: translateY(6px) scale(1.2); }
.tile:focus-visible { outline-offset: -2px; border-radius: 12px; }
.tile.held { z-index: 2; transition: none; transform: scale(1.15); }
.tile.held::after { content: ""; position: absolute; right: -2px; top: 1px; width: 13px; height: 13px; border-radius: 50%; background: linear-gradient(#fff, #fff) center / 7px 1.8px no-repeat, var(--failed); }
.tile.gone { animation: none; opacity: 0; transform: scale(0.2); pointer-events: none; }
@keyframes tile-in { from { opacity: 0; transform: translateY(8px) scale(0.4); } }
.chips { height: 28px; margin-top: 6px; display: flex; justify-content: center; align-items: center; gap: 6px; }
.qchip { position: relative; min-width: 30px; height: 26px; padding: 0 8px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; color: rgba(255, 255, 255, 0.8); background: rgba(255, 255, 255, 0.09); transition: background-color 0.15s, color 0.15s, transform 0.15s ease-out; }
.qchip::before { content: ""; position: absolute; inset: -4px -3px -10px; }
.qchip svg { width: 14px; height: 14px; }
.qchip em { font-style: normal; font-size: 11px; font-weight: 500; }
.qchip:hover { background: rgba(255, 255, 255, 0.16); color: #fff; }
.qchip:active { transform: scale(0.94); }
.qchip[aria-pressed="true"] { background: var(--accent); color: #000; }
.tw-body.note { font-family: var(--font); font-size: 16px; line-height: 1.7; color: #fff; }
.appwin { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-family: var(--font); line-height: 1.3; color: #fff; }
.appwin .tile-face { width: 64px; height: 64px; border-radius: 16px; margin-bottom: 6px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 10px 34px color-mix(in srgb, var(--k) 60%, transparent); }
.appwin svg { width: 32px; height: 32px; }
.appwin b { font-size: 16px; font-weight: 600; }
.appwin small { font-size: 13px; color: var(--ink-3); }
.lockscreen { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: #000; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s; }
.lockscreen.on { opacity: 1; visibility: visible; }
.lockscreen svg { width: 44px; fill: currentColor; color: rgba(255, 255, 255, 0.85); }

/* the music steps back while an agent waits */
.side { display: grid; gap: 12px; min-width: 0; }
.dip { display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 10px; border-radius: 12px; text-align: left; background: rgba(255, 255, 255, 0.045); box-shadow: inset 0 0 0 1px var(--line); }
.dip .cover.mini { width: 34px; height: 34px; border-radius: 8px; }
.dip p { flex: 1; margin: 0; font-size: 14px; line-height: 1.35; color: var(--ink-2); text-wrap: pretty; }
.vol { flex: none; width: 84px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.14); overflow: hidden; }
.vol i { display: block; height: 100%; border-radius: 3px; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0.9); transition: transform 0.9s ease-out; }
.ducked .vol i { transform: scaleX(0.315); transition-duration: 0.3s; }

/* timer, battery, keyboard */
.timer { grid-template: 1fr / 1fr; }
.timer > * { grid-area: 1 / 1; }
.timer svg { width: 84px; height: 84px; transform: rotate(-90deg); margin-bottom: 26px; fill: none; stroke: rgba(255, 255, 255, 0.1); stroke-width: 4; stroke-linecap: round; }
.timer .arc { stroke: var(--accent); stroke-dasharray: 1; transition: stroke-dashoffset 1s linear; }
.timer b { font-size: 19px; font-weight: 600; font-variant-numeric: tabular-nums; margin-bottom: 26px; }
.timer code { align-self: end; margin-bottom: 12px; font-family: var(--mono); font-size: 12px; color: var(--ink-2); }
.batt { grid-auto-flow: column; justify-content: center; gap: 14px; }
.cell { position: relative; width: 96px; height: 44px; padding: 4px; border-radius: 13px; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.4); }
.cell::after { content: ""; position: absolute; right: -6px; top: 15px; width: 4px; height: 14px; border-radius: 0 3px 3px 0; background: rgba(255, 255, 255, 0.4); }
.cell i { display: block; height: 100%; border-radius: 9px; background: var(--done); transform-origin: 0 50%; animation: charge 5s ease-in-out infinite; }
@keyframes charge { 0%, 8% { transform: scaleX(0.2); background: var(--waiting); } 30% { background: var(--done); } 70%, 100% { transform: scaleX(1); background: var(--done); } }
.batt svg { width: 22px; fill: var(--done); }
.keys { align-content: center; gap: 26px; }
.keys .mini { width: 62px; height: 14px; border-radius: 0 0 8px 8px; background: #000; box-shadow: 0 0 22px color-mix(in srgb, var(--running) 45%, transparent), inset 0 0 0 1px rgba(255, 255, 255, 0.12); position: absolute; top: 0; animation: mini 4s var(--spring) infinite; }
@keyframes mini { 0%, 20% { width: 62px; height: 14px; } 30%, 70% { width: 150px; height: 46px; border-radius: 0 0 16px 16px; } 80%, 100% { width: 62px; height: 14px; } }
.keys span { display: flex; gap: 8px; margin-top: 44px; }
.keys kbd { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 9px; font: 600 16px var(--font); background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), 0 3px 0 rgba(255, 255, 255, 0.08); animation: key 4s infinite; }
@keyframes key { 0%, 17%, 25%, 67%, 75%, 100% { transform: none; } 20%, 70% { transform: translateY(3px); } }

/* elements Motion brings in (fx.js adds .fx only when the library loaded) */
.fx [data-fx] { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  .wallpaper::before, .tw-body div, .tw-body .caret, .tile, .cell i, .keys .mini, .keys kbd { animation: none; }
  .dock { transition: none; }
}
