/*
 * aycode.ai. The brand board in assets/brand, carried to the web: graphite
 * and paper surfaces, one violet accent, SF type with a mono label voice, and
 * the cursor bar from the logo as the page's one recurring flourish.
 * Layout: a centered 1120 px column; the hero ends in a live app window,
 * then agents, features as a bento grid, downloads by platform.
 * Dark is the default look (the app's own); light follows the paper theme.
 */
:root {
  color-scheme: dark;
  --bg: #141416;
  --bg-2: #1b1b1e;
  --panel: #1f1f22;
  --panel-2: #26262a;
  --line: rgb(255 255 255 / 0.08);
  --line-2: rgb(255 255 255 / 0.14);
  --ink: #f4f1fb;
  --ink-2: #c9c6d3;
  --muted: #9e9ba9;
  --faint: #75737f;
  --accent: #8b5cf6;
  --accent-ink: #b9a3fc;
  --accent-bar: #a78bfa;
  --accent-soft: rgb(139 92 246 / 0.14);
  --accent-glow: rgb(139 92 246 / 0.38);
  --on-accent: #ffffff;
  --plus: #4ade80;
  --minus: #f87171;
  --done: #34d399;
  --claude: #d97757;
  --shadow: 0 30px 80px -20px rgb(0 0 0 / 0.65), 0 0 0 1px rgb(255 255 255 / 0.06);

  /* the app window inside the hero follows the app's own dark theme */
  --app-bg: #1e1e1e;
  --app-side: #232325;
  --app-raised: #2a2a2e;
  --app-line: #333336;

  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", "Helvetica Neue", Roboto, Arial, sans-serif;
  --font-ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", "Helvetica Neue", Roboto, Arial, sans-serif;
  --font-mono: "SF Mono", ui-monospace, Menlo, "Cascadia Mono", Consolas, monospace;

  --step--1: 0.8125rem;
  --step-0: 1rem;
  --step-1: 1.1875rem;
  --step-2: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem);
  --step-hero: clamp(2.75rem, 1.4rem + 5.6vw, 5.5rem);

  --radius: 14px;
  --radius-lg: 22px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  /* Shared header controls: a 44px hit target and a compact account picture. */
  --control-size: 2.75rem;
  --avatar-size: 2rem;
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 0.75rem;
  --menu-width: 12rem;
  --label-width: 9rem;
  --focus-width: 2px;
  --radius-round: 50%;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #fbfaf7;
    --bg-2: #f4f2ed;
    --panel: #ffffff;
    --panel-2: #f3f1ec;
    --line: rgb(27 26 32 / 0.08);
    --line-2: rgb(27 26 32 / 0.14);
    --ink: #1b1a20;
    --ink-2: #3a3843;
    --muted: #5f5c68;
    --faint: #8a8794;
    --accent: #7c3aed;
    --accent-ink: #6b2fd6;
    --accent-bar: #8b5cf6;
    --accent-soft: rgb(124 58 237 / 0.09);
    --accent-glow: rgb(139 92 246 / 0.22);
    --plus: #15803d;
    --minus: #dc2626;
    --done: #059669;
    --shadow: 0 30px 70px -24px rgb(40 30 70 / 0.28), 0 0 0 1px rgb(27 26 32 / 0.08);
    --app-bg: #fbfaf7;
    --app-side: #f3f1ec;
    --app-raised: #ffffff;
    --app-line: #e4e0d8;
  }
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #fbfaf7;
  --bg-2: #f4f2ed;
  --panel: #ffffff;
  --panel-2: #f3f1ec;
  --line: rgb(27 26 32 / 0.08);
  --line-2: rgb(27 26 32 / 0.14);
  --ink: #1b1a20;
  --ink-2: #3a3843;
  --muted: #5f5c68;
  --faint: #8a8794;
  --accent: #7c3aed;
  --accent-ink: #6b2fd6;
  --accent-bar: #8b5cf6;
  --accent-soft: rgb(124 58 237 / 0.09);
  --accent-glow: rgb(139 92 246 / 0.22);
  --plus: #15803d;
  --minus: #dc2626;
  --done: #059669;
  --shadow: 0 30px 70px -24px rgb(40 30 70 / 0.28), 0 0 0 1px rgb(27 26 32 / 0.08);
  --app-bg: #fbfaf7;
  --app-side: #f3f1ec;
  --app-raised: #ffffff;
  --app-line: #e4e0d8;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--step-0)/1.6 var(--font-ui);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent-bar); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 1168px; margin-inline: auto; padding-inline: var(--gutter); }

.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: 10px; background: var(--accent); color: var(--on-accent); text-decoration: none; }
.skip:focus { top: 12px; }

/* the logo ships as two images; the theme decides which one shows, never JavaScript */
.mark__light { display: none; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .mark__dark { display: none; }
  :root:not([data-theme="dark"]) .mark__light { display: block; }
}
:root[data-theme="light"] .mark__dark { display: none; }
:root[data-theme="light"] .mark__light { display: block; }

.eyebrow {
  font: 600 0.72rem/1 var(--font-mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 14px;
}
.h2 { font-size: var(--step-2); line-height: 1.08; letter-spacing: -0.035em; font-weight: 700; max-width: 20ch; }
.lead { color: var(--muted); font-size: var(--step-1); line-height: 1.55; max-width: 60ch; margin-top: 16px; }

/* the cursor bar from the logo: a violet pill that blinks after the hero line */
.cursor {
  display: inline-block;
  width: 0.56em;
  height: 0.17em;
  margin-left: 0.1em;
  border-radius: 99px;
  background: var(--accent-bar);
  vertical-align: 0.02em;
  animation: blink 1.15s steps(1, end) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  font: 600 0.95rem/1.2 var(--font-ui);
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms var(--ease), background-color 160ms var(--ease), border-color 160ms var(--ease), box-shadow 200ms var(--ease);
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn--primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.22) inset, 0 10px 30px -12px var(--accent-glow);
}
.btn--primary:hover { box-shadow: 0 1px 0 rgb(255 255 255 / 0.22) inset, 0 14px 38px -10px var(--accent-glow); transform: translateY(-1px); }
.btn--ghost { background: var(--panel); color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--faint); }
.btn--small { min-height: 36px; padding: 7px 14px; font-size: 0.875rem; border-radius: 10px; background: var(--ink); color: var(--bg); }
.btn--small:hover { opacity: 0.88; }
.btn__size { font-weight: 500; opacity: 0.72; font-variant-numeric: tabular-nums; }
.btn__size:empty { display: none; }

/* ---------- header ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 1px solid var(--line);
  /* the glass waits slightly enlarged before it settles; at the screen's edge that made phones pan sideways */
  overflow-x: clip;
}
.top__inner { display: flex; align-items: center; gap: 16px; height: 64px; max-width: 1168px; margin-inline: auto; padding-inline: var(--gutter); }
.brand { display: flex; flex: none; align-items: center; gap: 10px; text-decoration: none; font: 700 1.125rem/1 var(--font-display); letter-spacing: -0.02em; }
.mark { display: inline-flex; }
.mark img { width: 28px; height: 28px; }
/* neither the mark nor the links shrink under each other; the docs search gives way instead (below) */
.nav { display: flex; flex: none; gap: 2px; margin-left: 8px; }
/* The links grow with the window instead of stepping (from 961px to 1280px), so the bar keeps room even for a
   system font about a tenth wider than Inter; header.browser.mjs measures it with that reserve. */
.nav a { color: var(--muted); text-decoration: none; font-size: clamp(0.84rem, 0.6rem + 0.4vw, 0.9rem); padding: 8px clamp(5px, 1.25vw - 7px, 9px); border-radius: 9px; white-space: nowrap; transition: color 140ms, background-color 140ms; }
.nav a:hover { color: var(--ink); background: var(--panel); }
.top__tools { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-shrink: 0; }
.chip-link { font: 600 0.75rem/1 var(--font-mono); letter-spacing: 0.08em; color: var(--muted); text-decoration: none; padding: 9px 10px; border-radius: 9px; border: 1px solid var(--line); }
.chip-link:hover { color: var(--ink); border-color: var(--line-2); }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; }
.icon-btn:hover { color: var(--ink); border-color: var(--line-2); }
#theme-toggle { position: relative; overflow: hidden; transition: transform 160ms var(--ease), color 160ms var(--ease), border-color 160ms var(--ease); }
#theme-toggle:active { transform: scale(0.92); }

/* The footer switch pours the next theme out of the button. One shot, both ways.
   700ms is the whole viewport, not a control: it has to read as liquid, not a blink. */
@property --pour {
  syntax: "<length>";
  inherits: false;
  initial-value: 0px;
}
::view-transition-old(root) { animation: none; z-index: 1; }
::view-transition-new(root) {
  z-index: 2;
  animation: liquid-pour 700ms var(--ease) both;
  -webkit-mask-image: radial-gradient(circle at var(--liquid-x, 50%) var(--liquid-y, 100%), #000 max(0px, calc(var(--pour) - 72px)), rgb(0 0 0 / 0.4) max(0px, calc(var(--pour) - 28px)), transparent var(--pour));
  mask-image: radial-gradient(circle at var(--liquid-x, 50%) var(--liquid-y, 100%), #000 max(0px, calc(var(--pour) - 72px)), rgb(0 0 0 / 0.4) max(0px, calc(var(--pour) - 28px)), transparent var(--pour));
}
@keyframes liquid-pour { to { --pour: 160vmax; } }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) { animation: none; -webkit-mask-image: none; mask-image: none; }
}
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.icon-btn .i-moon { fill: currentColor; stroke: none; }
.i-sun { display: none; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .i-sun { display: block; }
  :root:not([data-theme="dark"]) .i-moon { display: none; }
}
:root[data-theme="light"] .i-sun { display: block; }
:root[data-theme="light"] .i-moon { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; padding-block: 88px 40px; overflow: hidden; isolation: isolate; }
.hero__glow {
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 280px;
  width: min(1400px, 160vw);
  height: 900px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, var(--accent-glow), transparent 72%);
  opacity: 0.85;
  pointer-events: none;
}
.hero__inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 12px 7px 12px;
  border-radius: 99px;
  border: 1px solid var(--line-2);
  background: var(--panel);
  color: var(--ink-2);
  text-decoration: none;
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}
.pill:hover { border-color: var(--faint); }
.pill__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--done); box-shadow: 0 0 0 3px color-mix(in srgb, var(--done) 22%, transparent); }
.pill svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; opacity: 0.6; }

.hero__title {
  margin-top: 26px;
  font-size: var(--step-hero);
  line-height: 0.98;
  letter-spacing: -0.052em;
  font-weight: 800;
  max-width: 14ch;
}
.hero__lead { margin-top: 24px; color: var(--muted); font-size: clamp(1.06rem, 0.98rem + 0.4vw, 1.25rem); line-height: 1.55; max-width: 58ch; }

.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }
.btn--hero { min-height: 60px; padding: 10px 24px 10px 18px; border-radius: 16px; gap: 14px; text-align: left; }
.btn__icon { display: inline-grid; place-items: center; width: 22px; height: 22px; }
.btn__icon svg { width: 22px; height: 22px; fill: currentColor; }
.btn__text { display: flex; flex-direction: column; gap: 3px; }
.btn__label { font-size: 1.02rem; }
.btn__meta { font: 500 0.75rem/1.2 var(--font-mono); opacity: 0.78; font-variant-numeric: tabular-nums; }
.btn__meta:empty { display: none; }
.btn--hero-alt { min-height: 60px; padding-inline: 22px; border-radius: 16px; }
.hero__note { margin-top: 18px; color: var(--faint); font-size: 0.875rem; max-width: 52ch; }

/* ---------- the app window ---------- */
.stage { width: 100%; margin-top: 64px; perspective: 2000px; }
.app {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  width: 100%;
  max-width: 1080px;
  margin-inline: auto;
  height: 600px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--app-bg);
  box-shadow: var(--shadow);
  text-align: left;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-2);
}
.app__side { background: var(--app-side); border-right: 1px solid var(--app-line); padding: 14px 10px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.app__lights { display: flex; gap: 8px; padding: 2px 6px 14px; }
.app__lights i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.app__lights i:nth-child(2) { background: #febc2e; }
.app__lights i:nth-child(3) { background: #28c840; }
.app__brand { display: flex; align-items: center; gap: 8px; padding: 2px 8px 12px; font: 600 13px/1 var(--font-display); color: var(--ink); }
.app__brand img { width: 16px; height: 16px; }
.app__new { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 8px; color: var(--ink); }
.app__new svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.app__new kbd { margin-left: auto; font: 11px var(--font-mono); color: var(--faint); }
.app__group { margin: 14px 8px 4px; font: 600 10.5px/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.row { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 7px; min-width: 0; }
.row__title { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.row--active { background: var(--accent-soft); color: var(--ink); }
.row__live { display: inline-flex; gap: 5px; font: 11px var(--font-mono); font-variant-numeric: tabular-nums; }
.row__done { width: 7px; height: 7px; border-radius: 50%; background: var(--done); box-shadow: 0 0 0 3px color-mix(in srgb, var(--done) 25%, transparent); }
.row__time { font: 11px var(--font-mono); color: var(--faint); }
.plus { color: var(--plus); }
.minus { color: var(--minus); }
.app__aylinge { margin-top: auto; display: flex; gap: 6px; padding: 8px; }

/* Aylinge: little agents in the app's agent colours */
.ay { position: relative; display: inline-block; width: 22px; height: 22px; border-radius: 8px; background: var(--ay, var(--accent)); flex: none; }
.ay::before, .ay::after { content: ""; position: absolute; top: 8px; width: 3px; height: 5px; border-radius: 2px; background: #1c1420; }
.ay::before { left: 6px; }
.ay::after { right: 6px; }
.ay--1 { --ay: #a78bfa; }
.ay--2 { --ay: #f2b25c; border-radius: 50%; }
.ay--3 { --ay: #5ec4a8; border-radius: 6px 6px 11px 11px; }

.app__main { display: flex; flex-direction: column; min-width: 0; }
.app__bar { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 18px; border-bottom: 1px solid var(--app-line); }
.app__bar-title { font-weight: 600; color: var(--ink); }
.prov { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; padding: 4px 9px; border-radius: 99px; background: var(--app-raised); border: 1px solid var(--app-line); font-size: 11.5px; color: var(--muted); }
.prov img { width: 14px; height: 14px; border-radius: 3px; }
.chat { flex: 1; display: flex; flex-direction: column; gap: 16px; padding: 22px max(22px, 6%) 12px; overflow: hidden; min-height: 0; }
.bubble { align-self: flex-end; max-width: 78%; padding: 10px 14px; border-radius: 16px 16px 6px 16px; background: var(--app-raised); border: 1px solid var(--app-line); color: var(--ink); }
.work { border: 1px solid var(--app-line); border-radius: 12px; padding: 12px 14px; background: color-mix(in srgb, var(--app-raised) 55%, transparent); }
.work__head { display: flex; align-items: center; gap: 5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.work__label { color: var(--ink); font-weight: 600; }
.work__time { margin-left: auto; font: 11px var(--font-mono); color: var(--faint); }
.work__steps { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 7px; }
.work__steps li { display: flex; align-items: center; gap: 8px; min-width: 0; }
.work__steps code { font: 12px var(--font-mono); color: var(--ink); background: var(--app-raised); padding: 1px 6px; border-radius: 5px; border: 1px solid var(--app-line); }
.work__steps .d { margin-left: auto; display: inline-flex; gap: 6px; font: 11.5px var(--font-mono); }
.work__steps .ok { margin-left: auto; font: 11.5px var(--font-mono); color: var(--done); }
.tick { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--done); position: relative; flex: none; }
.tick::after { content: ""; position: absolute; left: 3.5px; top: 1.5px; width: 3px; height: 6px; border: solid var(--done); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.answer { color: var(--ink); font-size: 14px; line-height: 1.6; max-width: 62ch; }
.changes { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 6px 11px; border-radius: 99px; border: 1px solid var(--app-line); background: var(--app-raised); font-size: 12px; font-variant-numeric: tabular-nums; }
.changes svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.changes .plus, .changes .minus { font-family: var(--font-mono); }
.composer {
  position: relative;
  margin: 6px max(18px, 5%) 18px;
  padding: 14px 14px 12px;
  border-radius: 18px;
  background: var(--app-raised);
  border: 1px solid color-mix(in srgb, var(--claude) 45%, var(--app-line));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--claude) 10%, transparent), 0 10px 30px -18px rgb(0 0 0 / 0.5);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}
.composer__text { grid-column: 1 / -1; color: var(--faint); }
.composer__chips { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.composer__chips .c { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 99px; border: 1px solid var(--app-line); font-size: 11.5px; color: var(--muted); }
.composer__chips svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.c--prov i { width: 7px; height: 7px; border-radius: 50%; background: var(--claude); }
.composer__send { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--accent); color: #fff; align-self: end; }
.composer__send svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* rolling numbers: each digit is a column of 0–9 that slides into place */
.roll { display: inline-flex; align-items: flex-start; overflow: hidden; height: 1.2em; line-height: 1.2em; }
.roll__col { display: flex; flex: none; flex-direction: column; transition: transform 900ms var(--ease); }
.roll__col span { flex: none; height: 1.2em; }

/* the intro sequence (main.js adds .is-playing); without it everything rests visible */
.is-playing [data-step] { opacity: 0; transform: translateY(8px); }
.is-playing [data-step].is-in { opacity: 1; transform: none; transition: opacity 420ms var(--ease), transform 520ms var(--ease); }
.stream-word { opacity: 0; transition: opacity 260ms ease-out; }
.stream-word.is-in { opacity: 1; }

/* ---------- agents ---------- */
.agents { padding-block: 130px 44px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.agents .h2, .agents .lead { margin-inline: auto; }
.logos { list-style: none; margin: 0; padding: 0 5px; display: flex; flex: none; gap: 10px; }
.logos li { flex: none; white-space: nowrap; display: inline-flex; align-items: center; gap: 9px; padding: 9px 15px 9px 10px; border-radius: 99px; background: var(--panel); border: 1px solid var(--line); font-weight: 500; font-size: 0.95rem; }
.logos img { width: 22px; height: 22px; border-radius: 6px; }

/* ---------- tour (film) ---------- */
.tour { padding-block: 80px 20px; }
.film { position: relative; margin-top: 36px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow), 0 0 90px -30px var(--accent-glow); background: #000; aspect-ratio: 16 / 9; max-width: 100%; isolation: isolate; }
.film video { display: block; width: 100%; height: 100%; object-fit: cover; }
.film--portrait { aspect-ratio: 9 / 16; width: min(100%, calc(78svh * 9 / 16)); margin-inline: auto; }

/* The film's own player (main.js adds .film--custom): a start card, then a glass bar with the violet line. */
.film--custom video { cursor: pointer; }
.film--custom::after { content: ""; position: absolute; inset: auto 0 0; height: 38%; background: linear-gradient(to top, rgb(8 6 14 / 0.78), transparent); pointer-events: none; opacity: 0; transition: opacity 320ms var(--ease); z-index: 1; }
.film--custom.is-started::after { opacity: 1; }
.film--custom.is-started.is-idle::after { opacity: 0; }
.film--custom.is-idle { cursor: none; }

.film__start { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; align-content: center; gap: 14px; width: 100%; border: 0; background: radial-gradient(60% 60% at 50% 50%, rgb(10 8 18 / 0.15), rgb(10 8 18 / 0.45)); color: #fff; font: inherit; cursor: pointer; transition: opacity 360ms var(--ease); }
.film__start-ring { position: relative; display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: rgb(139 92 246 / 0.9); box-shadow: 0 0 0 8px rgb(139 92 246 / 0.22), 0 18px 50px -10px var(--accent-glow); transition: transform 260ms var(--ease); }
.film__start-ring::before { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 1px solid rgb(185 163 252 / 0.6); animation: film-pulse 2.4s var(--ease) infinite; }
.film__start-ring svg { width: 30px; height: 30px; margin-left: 4px; fill: #fff; }
.film__start:hover .film__start-ring, .film__start:focus-visible .film__start-ring { transform: scale(1.07); }
.film__start-text { display: grid; gap: 2px; justify-items: center; text-shadow: 0 2px 18px rgb(0 0 0 / 0.6); }
.film__start-text b { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.film__start-text small { font-family: var(--font-mono, ui-monospace, monospace); font-size: 12px; color: rgb(255 255 255 / 0.72); letter-spacing: 0.06em; }
.film.is-started .film__start { opacity: 0; pointer-events: none; }
/* The 16:9 poster puts its headline on the left and the agent ring in the middle; a centred
   start card covered a provider label there, so it sits under the headline instead. */
.film:not(.film--portrait) .film__start { grid-auto-flow: column; place-items: center start; align-content: end; justify-content: start; gap: 16px; padding: 0 0 8% 6.8%; background: linear-gradient(to top right, rgb(10 8 18 / 0.6), transparent 55%); }
.film:not(.film--portrait) .film__start-ring { width: 68px; height: 68px; }
.film:not(.film--portrait) .film__start-ring svg { width: 26px; height: 26px; }
.film:not(.film--portrait) .film__start-text { justify-items: start; }
@keyframes film-pulse { from { transform: scale(0.92); opacity: 0.9; } to { transform: scale(1.35); opacity: 0; } }

.film__cue { position: absolute; left: 50%; bottom: 74px; z-index: 2; max-width: min(80%, 760px); margin: 0; padding: 6px 14px; border-radius: 10px; background: rgb(12 10 20 / 0.72); color: #fff; font-size: clamp(14px, 1.7vw, 20px); font-weight: 500; line-height: 1.35; text-align: center; transform: translateX(-50%); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: transform 320ms var(--ease); }
.film__cue:empty { display: none; }
.film.is-idle .film__cue { transform: translate(-50%, 46px); }
.film.is-full .film__cue { bottom: 96px; font-size: clamp(18px, 2.2vw, 30px); }

.film__bar { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 4; display: flex; align-items: center; gap: 4px; padding: 6px 10px 6px 6px; border-radius: 16px; background: rgb(18 16 26 / 0.62); border: 1px solid rgb(255 255 255 / 0.1); color: #fff; -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); box-shadow: 0 12px 40px -12px rgb(0 0 0 / 0.6); opacity: 0; transform: translateY(10px); transition: opacity 280ms var(--ease), transform 320ms var(--ease); }
.film.is-started .film__bar, .film:focus-within .film__bar { opacity: 1; transform: none; }
.film.is-started.is-idle .film__bar { opacity: 0; transform: translateY(10px); }
.film--custom:not(.is-started):not(:focus-within) .film__bar { pointer-events: none; }
.film__btn { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border: 0; border-radius: 11px; background: transparent; color: inherit; cursor: pointer; transition: background-color 160ms var(--ease), transform 160ms var(--ease); }
.film__btn:hover { background: rgb(255 255 255 / 0.1); }
.film__btn:active { transform: scale(0.92); }
.film__btn:focus-visible, .film__track:focus-visible, .film__start:focus-visible { outline: 2px solid var(--accent-bar); outline-offset: 2px; }
.film__btn svg { width: 20px; height: 20px; fill: currentColor; }
.film__ico-pause, .film.is-playing .film__ico-play { display: none; }
.film.is-playing .film__ico-pause { display: block; }
.film__muted, .film.is-muted .film__wave { display: none; }
.film.is-muted .film__muted { display: inline; }
.film__btn--cc[aria-pressed="false"] { color: rgb(255 255 255 / 0.45); }
.film__btn--cc[aria-pressed="true"] { color: var(--accent-ink); }
.film__time { flex: none; min-width: 40px; padding-inline: 4px; font-family: var(--font-mono, ui-monospace, monospace); font-size: 12px; font-variant-numeric: tabular-nums; color: rgb(255 255 255 / 0.86); text-align: center; }
.film__time--total { color: rgb(255 255 255 / 0.55); }

.film__track { position: relative; flex: 1; height: 30px; display: flex; align-items: center; cursor: pointer; touch-action: none; }
.film__rail { position: relative; width: 100%; height: 4px; border-radius: 4px; background: rgb(255 255 255 / 0.16); overflow: hidden; transition: transform 200ms var(--ease); }
.film__track:hover .film__rail, .film.is-scrubbing .film__rail { transform: scaleY(1.6); }
.film__buffer, .film__fill { position: absolute; inset: 0; transform-origin: left; }
.film__buffer { background: rgb(255 255 255 / 0.22); transform: scaleX(var(--b, 0)); transition: transform 400ms linear; }
.film__fill { background: linear-gradient(90deg, var(--accent), var(--accent-bar)); box-shadow: 0 0 14px var(--accent-glow); transform: scaleX(var(--p, 0)); }
/* The knob rides on a full-width layer so it moves with transform only. */
.film__knob { position: absolute; inset: 0; pointer-events: none; transform: translateX(calc(var(--p, 0) * 100%)); }
.film__knob::after { content: ""; position: absolute; top: 50%; left: -7px; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgb(139 92 246 / 0.35), 0 2px 8px rgb(0 0 0 / 0.4); transform: scale(0.7); transition: transform 200ms var(--ease); }
.film__track:hover .film__knob::after, .film.is-scrubbing .film__knob::after, .film__track:focus-visible .film__knob::after { transform: scale(1); }
.film__tip { position: absolute; bottom: 30px; left: 0; padding: 3px 7px; border-radius: 7px; background: rgb(12 10 20 / 0.88); font-family: var(--font-mono, ui-monospace, monospace); font-size: 11px; font-variant-numeric: tabular-nums; white-space: nowrap; opacity: 0; pointer-events: none; transform: translateX(-50%); transition: opacity 160ms var(--ease); }
.film__track:hover .film__tip, .film.is-scrubbing .film__tip { opacity: 1; }

.film.is-full { border-radius: 0; aspect-ratio: auto; width: 100%; height: 100%; }
.film.is-full video { object-fit: contain; }

@media (max-width: 640px) {
  .film__bar { left: 8px; right: 8px; bottom: 8px; gap: 0; padding: 4px 6px 4px 4px; border-radius: 13px; }
  .film__btn { width: 34px; height: 34px; }
  .film__time--total { display: none; }
  .film__cue { bottom: 58px; }
  .film__start-ring { width: 72px; height: 72px; }
  /* The 9:16 poster fills its middle with logo and headline; the start becomes a pill at the bottom. */
  .film--portrait .film__start { grid-auto-flow: column; align-content: end; justify-content: center; gap: 12px; padding-bottom: 6%; background: linear-gradient(to top, rgb(10 8 18 / 0.7), transparent 30%); }
  .film--portrait .film__start-ring { width: 54px; height: 54px; box-shadow: 0 0 0 6px rgb(139 92 246 / 0.22), 0 12px 34px -8px var(--accent-glow); }
  .film--portrait .film__start-ring svg { width: 22px; height: 22px; }
  .film--portrait .film__start-text { justify-items: start; }
}
@media (prefers-reduced-motion: reduce) {
  .film__start-ring::before { animation: none; }
  .film__bar, .film__cue, .film__start, .film--custom::after { transition: none; }
}

/* ---------- features ---------- */
.features { padding-block: 100px 40px; }
.bento {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-areas:
    "agents agents brain"
    "notes aylinge aylinge"
    "parallel phone team"
    "move move move";
  gap: 14px;
}
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 22px 24px 24px;
  border-radius: var(--radius-lg);
  background: var(--panel);
  border: 1px solid var(--line);
  overflow: hidden;
}
.tile h3 { font-size: 1.15rem; letter-spacing: -0.02em; font-weight: 650; }
.tile p { color: var(--muted); font-size: 0.95rem; line-height: 1.55; }
.tile__art { height: 170px; margin: -2px -4px 14px; display: flex; align-items: center; justify-content: center; }
.tile--agents { grid-area: agents; }
.tile--brain { grid-area: brain; }
.tile--notes { grid-area: notes; }
.tile--aylinge { grid-area: aylinge; }
.tile--parallel { grid-area: parallel; }
.tile--phone { grid-area: phone; }
.tile--team { grid-area: team; }
.tile--move { grid-area: move; }

.ln { display: block; height: 7px; border-radius: 99px; background: var(--line-2); }
.w40 { width: 40%; } .w50 { width: 50%; } .w60 { width: 60%; } .w70 { width: 70%; } .w75 { width: 75%; } .w80 { width: 80%; } .w85 { width: 85%; } .w90 { width: 90%; }

.art-compare { gap: 12px; align-items: stretch; justify-content: stretch; }
.cmp { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 9px; padding: 14px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); }
.cmp__head { display: flex; align-items: center; gap: 7px; font-size: 0.8rem; font-weight: 600; margin-bottom: 4px; white-space: nowrap; }
.cmp__head img { width: 16px; height: 16px; border-radius: 4px; }
.cmp:nth-child(2) { transform: translateY(10px); }
.cmp:nth-child(3) { transform: translateY(20px); }

.graph { width: 100%; max-width: 260px; height: auto; overflow: visible; }
.graph__edges path { stroke: var(--line-2); stroke-width: 1.2; fill: none; }
.graph__nodes circle { fill: var(--faint); }
.graph__hub { fill: var(--accent); filter: drop-shadow(0 0 10px var(--accent-glow)); }

.art-notes { flex-direction: column; align-items: stretch; gap: 14px; }
.wave { display: flex; align-items: center; justify-content: center; gap: 4px; height: 44px; }
.wave i { width: 4px; border-radius: 4px; background: var(--accent-bar); height: calc(var(--h, 30) * 1%); opacity: 0.85; }
.wave i:nth-child(3n) { --h: 70; } .wave i:nth-child(4n) { --h: 95; } .wave i:nth-child(5n) { --h: 50; } .wave i:nth-child(7n) { --h: 82; } .wave i:nth-child(2) { --h: 45; }
.todo { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: 0.85rem; }
.todo li { display: flex; align-items: center; gap: 9px; color: var(--ink-2); min-width: 0; }
.todo li::before { content: ""; width: 14px; height: 14px; flex: none; border-radius: 4px; border: 1.5px solid var(--faint); }
.todo li.done { color: var(--faint); text-decoration: line-through; }
.todo li.done::before { background: var(--accent); border-color: var(--accent); }

.art-group { flex-direction: column; align-items: stretch; justify-content: center; gap: 10px; padding-inline: 8%; }
.msg { max-width: 80%; font-size: 0.9rem; }
.msg--me { align-self: flex-end; padding: 9px 13px; border-radius: 16px 16px 6px 16px; background: var(--accent); color: var(--on-accent); }
.msg--ay { display: flex; gap: 10px; align-items: flex-end; }
.msg__body { padding: 8px 13px; border-radius: 16px 16px 16px 6px; background: var(--bg-2); border: 1px solid var(--line); }
.msg__body b { display: block; font-size: 0.75rem; color: var(--accent-ink); }
.typing { display: flex; align-items: center; gap: 6px; }
.typing .ay { width: 18px; height: 18px; }
.typing .ay::before, .typing .ay::after { top: 6px; height: 4px; }
.dots { display: inline-flex; gap: 3px; padding: 8px 10px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); }
.dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--faint); animation: dot 1.2s infinite ease-in-out; }
.dots i:nth-child(2) { animation-delay: 0.15s; } .dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot { 0%, 60%, 100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-3px); opacity: 1; } }

.branches { width: 100%; max-width: 280px; height: auto; overflow: visible; }
.branches .b { fill: none; stroke-width: 2.2; stroke-linecap: round; }
.b--main { stroke: var(--faint); }
.b--1 { stroke: var(--accent-bar); }
.b--2 { stroke: #5ec4a8; }
.branches .n { fill: var(--accent-bar); }
.branches .n--2 { fill: #5ec4a8; }
.branches .n--main { fill: var(--ink); }

.phone { position: relative; width: 150px; height: 186px; border-radius: 30px 30px 0 0; border: 5px solid var(--line-2); border-bottom: none; background: var(--bg-2); padding: 34px 10px 0; align-self: flex-end; margin-bottom: -24px; }
.phone__island { position: absolute; left: 50%; top: 9px; width: 46px; height: 13px; border-radius: 99px; background: var(--ink); opacity: 0.85; transform: translateX(-50%); }
.note { display: flex; gap: 8px; padding: 9px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); box-shadow: 0 8px 20px -12px rgb(0 0 0 / 0.5); font-size: 0.7rem; line-height: 1.3; }
.note img { width: 18px; height: 18px; border-radius: 5px; }
.note b { display: block; color: var(--ink); }
.note span span { font-family: var(--font-mono); color: var(--muted); }
.phone__btns { display: flex; gap: 6px; margin-top: 8px; }
.phone__btns span { flex: 1; text-align: center; padding: 5px; border-radius: 9px; background: var(--panel-2); font-size: 0.75rem; color: var(--muted); }
.phone__btns .yes { background: var(--accent); color: var(--on-accent); }

.art-team .code { position: relative; width: 100%; max-width: 250px; display: grid; gap: 11px; padding: 18px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); }
.art-team .hl { background: color-mix(in srgb, #5ec4a8 45%, transparent); }
.cur { position: absolute; font: 600 0.68rem/1 var(--font-mono); padding: 4px 6px; border-radius: 6px 6px 6px 0; color: #111; }
.cur--a { background: #5ec4a8; left: 52%; top: 26px; }
.cur--b { background: var(--accent-bar); left: 30%; bottom: 14px; }

.tile--move { padding: 26px 28px; }
.move { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.move > div { display: grid; gap: 8px; max-width: 46ch; min-width: 0; }
.sources { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; max-width: 520px; }
.sources li { padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line-2); font: 500 0.82rem/1.2 var(--font-mono); color: var(--ink-2); }

/* ---------- download ---------- */
.download { padding-block: 110px 40px; }
.platforms { margin-top: 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.plat { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 26px; border-radius: var(--radius-lg); background: var(--panel); border: 1px solid var(--line); min-width: 0; }
.plat__head { display: flex; align-items: center; gap: 12px; }
.plat__head h3 { font-size: 1.4rem; letter-spacing: -0.025em; }
.plat__icon { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: var(--panel-2); border: 1px solid var(--line); flex: none; }
.plat__icon svg { width: 20px; height: 20px; fill: var(--ink); }
.plat__req { color: var(--muted); font-size: 0.92rem; }
.plat__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.plat__note { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); color: var(--faint); font-size: 0.82rem; line-height: 1.5; }
.plat__yours { position: absolute; top: 18px; right: 18px; display: none; padding: 4px 9px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-ink); font: 600 0.68rem/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; }
.plat.is-yours { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); box-shadow: 0 0 0 4px var(--accent-soft); }
.plat.is-yours .plat__yours { display: inline-block; }
[data-asset-available][hidden], [data-asset-missing][hidden], [data-cta-icon][hidden] { display: none; }
.soon { margin-top: 14px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.plat--soon { flex-direction: row; align-items: center; gap: 14px; padding: 18px 20px; }
.plat--soon h3 { font-size: 1rem; letter-spacing: -0.01em; }
.plat--soon .plat__req { font-size: 0.82rem; }
.plat--soon > div { min-width: 0; }
.plat--soon .plat__yours { top: -10px; right: 14px; }
.tag { margin-left: auto; flex: none; padding: 5px 9px; border-radius: 99px; border: 1px dashed var(--line-2); color: var(--muted); font: 500 0.7rem/1 var(--font-mono); white-space: nowrap; }
.sums { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 22px; color: var(--faint); font-size: 0.875rem; }
.sums svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.sums a { color: var(--ink-2); text-underline-offset: 3px; }

/* ---------- end ---------- */
.end { position: relative; margin-top: 110px; padding-block: 140px 150px; overflow: hidden; isolation: isolate; border-top: 1px solid var(--line); }
.end::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 10%; width: 1000px; height: 700px; transform: translateX(-50%); background: radial-gradient(closest-side, var(--accent-glow), transparent 70%); opacity: 0.7; }
.end__inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.end__icon { position: relative; width: 132px; height: 132px; filter: drop-shadow(0 24px 50px rgb(0 0 0 / 0.4)); }
.end__title { margin-top: 34px; font-size: clamp(2.4rem, 1.2rem + 4.6vw, 4.75rem); letter-spacing: -0.05em; line-height: 0.98; font-weight: 800; max-width: 13ch; }
.end .lead { margin-inline: auto; }
.btn--hero-plain { margin-top: 30px; min-height: 52px; padding-inline: 28px; border-radius: 14px; }

/* ---------- footer ----------
 * Columns on top, then the name across the full width with a light running
 * through its letters (a gradient moved by an SVG transform), then the
 * small print. Shared by the start page and the docs (src/footer.html).
 */
.foot { position: relative; overflow: hidden; isolation: isolate; border-top: 1px solid var(--line); padding-top: 64px; color: var(--muted); font-size: 0.9rem; }
.foot::before { content: ""; position: absolute; z-index: -1; left: 50%; bottom: -220px; width: min(1200px, 120vw); height: 520px; transform: translateX(-50%); background: radial-gradient(closest-side, var(--accent-glow), transparent 72%); opacity: 0.55; animation: foot-breathe 7s ease-in-out infinite alternate; }
.foot__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr)); gap: 40px; }
.foot__logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em; text-decoration: none; }
.foot__tagline { margin-top: 12px; max-width: 34ch; line-height: 1.55; }
/* the maker's mark: Ayont's own logo in a small glass tile, a glint crossing it now and then */
.foot__by { display: inline-flex; align-items: center; gap: 12px; margin-top: 22px; padding: 7px 16px 7px 7px; border-radius: 18px; border: 1px solid var(--line-2); background: linear-gradient(135deg, var(--accent-soft), transparent 70%); color: var(--ink-2); text-decoration: none; transition: border-color 200ms var(--ease), transform 200ms var(--ease), box-shadow 200ms var(--ease); }
.foot__by-text { display: flex; flex-direction: column; line-height: 1.15; font-size: 0.78rem; color: var(--muted); }
.foot__by-text b { color: var(--ink); font-weight: 680; font-size: 1.02rem; letter-spacing: -0.01em; }
.foot__by-arrow { width: 15px; height: 15px; margin-left: 2px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; transition: transform 200ms var(--ease); }
.foot__ayont { position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; overflow: hidden; isolation: isolate; background: radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--accent) 30%, var(--panel-2)), var(--panel) 75%); box-shadow: 0 0 0 1px var(--line-2) inset, 0 10px 26px -14px var(--accent-glow); }
.foot__ayont::before { content: ""; position: absolute; left: 50%; top: 50%; width: 150%; aspect-ratio: 1; z-index: -1; background: conic-gradient(from 0deg, transparent 0 70%, color-mix(in srgb, var(--accent-bar) 70%, transparent) 86%, transparent 94%); transform: translate(-50%, -50%) rotate(0deg); animation: orbit 6s linear infinite; opacity: 0.55; }
.foot__ayont::after { content: ""; position: absolute; inset: 1.5px; z-index: -1; border-radius: 11.5px; background: radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--accent) 22%, var(--panel-2)), var(--panel) 78%); }
.foot__ayont svg { width: 30px; height: 30px; overflow: visible; filter: drop-shadow(0 2px 6px var(--accent-glow)); transition: transform 420ms var(--ease); }
.foot__ayont-top { stop-color: #ffffff; }
.foot__ayont-bottom { stop-color: #b9a3fc; }
.foot__ayont-glint { stop-color: #ffffff; stop-opacity: 0.95; }
.foot__by:hover { border-color: var(--accent-bar); transform: translateY(-1px); box-shadow: 0 14px 36px -14px var(--accent-glow); }
.foot__by:hover .foot__by-arrow { transform: translate(2px, -2px); }
.foot__by:hover .foot__ayont svg { transform: scale(1.1) rotate(-4deg); }
:root[data-theme="light"] .foot__ayont-top { stop-color: #1b1b1e; }
:root[data-theme="light"] .foot__ayont-bottom { stop-color: #6b2fd6; }
:root[data-theme="light"] .foot__ayont-glint { stop-color: #c4b5fd; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .foot__ayont-top { stop-color: #1b1b1e; }
  :root:not([data-theme="dark"]) .foot__ayont-bottom { stop-color: #6b2fd6; }
  :root:not([data-theme="dark"]) .foot__ayont-glint { stop-color: #c4b5fd; }
}
@media (prefers-reduced-motion: reduce) { .foot__ayont-shine { display: none; } }
.foot__col { display: flex; flex-direction: column; gap: 11px; }
.foot__col h2 { margin-bottom: 4px; font: 600 0.72rem/1 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.foot__col a { display: inline-flex; align-items: center; gap: 8px; width: fit-content; color: var(--muted); text-decoration: none; transition: color 160ms var(--ease); }
.foot__col a:hover { color: var(--ink); }
.foot__col svg { width: 15px; height: 15px; fill: currentColor; }
.foot__col small { color: var(--faint); font-size: 0.8em; }

.foot__word { margin-top: 28px; padding-inline: max(12px, 2vw); line-height: 0; pointer-events: none; user-select: none; }
.foot__word > svg { display: block; width: 100%; height: auto; overflow: visible; }
.foot__word text { font-family: var(--font-display); font-size: 300px; font-weight: 800; letter-spacing: -0.04em; }
.foot__stop-top { stop-color: var(--ink); stop-opacity: 0.32; }
.foot__stop-bottom { stop-color: var(--accent); stop-opacity: 0.06; }
/* The light itself is an SVG animateTransform on the gradient (footer.html): a transform, and no script needed. */
.foot__beam { opacity: 0.6; }
.foot__beam-core { stop-color: #ffffff; stop-opacity: 0.9; }
:root[data-theme="light"] .foot__beam-core { stop-color: var(--accent); stop-opacity: 0.7; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .foot__beam-core { stop-color: var(--accent); stop-opacity: 0.7; } }
@keyframes foot-breathe { from { opacity: 0.35; transform: translateX(-50%) scale(0.94); } to { opacity: 0.65; transform: translateX(-50%) scale(1.04); } }
/* The word starts a little large and settles to its size as it enters the screen.
 * aylinge.mjs sets --foot-in on every page that draws the footer. */
.foot__word > svg {
  transform: translateY(calc((1 - var(--foot-in, 1)) * 12%)) scale(calc(1.14 - var(--foot-in, 1) * 0.14));
  transform-origin: 50% 100%;
}

.foot__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-top: 48px; padding-block: 18px; border-top: 1px solid var(--line); color: var(--faint); font-size: 0.82rem; }
.foot__bar p { margin-right: auto; }
.foot__bar a { color: var(--muted); text-decoration: none; }
.foot__bar a:hover { color: var(--ink); }
.foot__legal { display: flex; flex-wrap: wrap; gap: 18px; }
.foot__legal:empty { display: none; }
.foot__tools { display: flex; align-items: center; gap: 8px; }
.foot__tools .icon-btn { width: 32px; height: 32px; }

@media (max-width: 760px) {
  .foot { padding-top: 48px; }
  .foot__grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .foot__brand { grid-column: 1 / -1; }
  .foot__word { margin-top: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .foot::before { animation: none; }
  .foot__beam { display: none; }
  .foot__word > svg { animation: none; }
}

/* ---------- depth and motion ----------
 * One orchestrated arrival (light beam, words, the app window settling flat
 * as you scroll) plus quiet loops in the feature art. Only transform and
 * opacity move; "reduce motion" turns all of it off below.
 */
.hero__grid {
  position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, var(--line-2) 1px, transparent 0);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(70% 55% at 50% 22%, #000 0%, transparent 75%);
  mask-image: radial-gradient(70% 55% at 50% 22%, #000 0%, transparent 75%);
  opacity: 0.55;
}
.hero__beam { position: absolute; z-index: -1; left: 50%; top: -120px; width: 1px; height: 0; pointer-events: none; }
.hero__beam::before {
  content: ""; position: absolute; left: -380px; top: 0; width: 760px; height: 640px;
  background: radial-gradient(50% 60% at 50% 0%, color-mix(in srgb, var(--accent-bar) 55%, transparent) 0%, transparent 70%);
  opacity: 0.55; transform-origin: 50% 0;
  animation: beam-in 1.6s var(--ease) both;
}
.hero__beam i {
  position: absolute; left: -1px; top: 0; width: 2px; height: 230px; border-radius: 2px;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, #fff 80%, var(--accent-bar)) 55%, transparent);
  opacity: 0.5; transform-origin: 50% 0;
  animation: beam-line 1.4s var(--ease) 0.1s both;
}
@keyframes beam-in { from { opacity: 0; transform: scaleY(0.4); } }
@keyframes beam-line { from { opacity: 0; transform: scaleY(0); } }

.hero__words .w {
  display: inline-block;
  background: linear-gradient(180deg, var(--ink) 35%, color-mix(in srgb, var(--ink) 62%, var(--accent-bar)) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: 0.06em;
  animation: word-in 0.9s var(--ease) both;
}
.hero__words .w:nth-child(2) { animation-delay: 0.07s; }
.hero__words .w:nth-child(3) { animation-delay: 0.14s; }
.hero__words .w:nth-child(4) { animation-delay: 0.21s; }
.hero__words .w:nth-child(5) { animation-delay: 0.28s; }
.hero__words .w:nth-child(6) { animation-delay: 0.35s; }
@keyframes word-in { from { opacity: 0; transform: translateY(0.35em) scale(0.96); } }
.hero__title .cursor { animation: blink 1.15s steps(1, end) 0.9s infinite, word-in 0.9s var(--ease) 0.4s both; }
.hero__lead, .hero .cta, .hero__note, .hero .pill { animation: fade-up 0.9s var(--ease) both; }
.hero .pill { animation-delay: 0s; }
.hero__lead { animation-delay: 0.35s; }
.hero .cta { animation-delay: 0.45s; }
.hero__note { animation-delay: 0.55s; }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } }

/* primary buttons catch a slow sheen */
.btn--primary { position: relative; overflow: hidden; isolation: isolate; }
.btn--primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgb(255 255 255 / 0.28) 50%, transparent 65%);
  transform: translateX(-120%);
  animation: sheen 5.5s ease-in-out 1.6s infinite;
}
@keyframes sheen { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }

/* the app window: tilted back on arrival, flat once it is in view (main.js sets --tilt) */
.stage { perspective: 1800px; margin-top: 76px; }
.beam {
  --tilt: 0;
  position: relative; max-width: 1080px; margin-inline: auto; padding: 1px; border-radius: 17px; overflow: hidden;
  transform-origin: 50% 0;
  transform: rotateX(calc(var(--tilt) * 18deg)) scale(calc(1 - var(--tilt) * 0.06));
  animation: window-in 1.2s var(--ease) 0.5s backwards;
  box-shadow: 0 50px 120px -40px var(--accent-glow);
}
.beam::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 160%; aspect-ratio: 1; z-index: 0;
  background: conic-gradient(from 0deg, transparent 0 62%, color-mix(in srgb, var(--accent-bar) 90%, transparent) 78%, #ffffff 82%, transparent 90%);
  transform: translate(-50%, -50%) rotate(0deg);
  animation: orbit 7s linear infinite;
  opacity: 0.9;
}
.beam .app { position: relative; z-index: 1; border-radius: 16px; }
@keyframes orbit { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes window-in { from { opacity: 0; transform: translateY(40px) rotateX(18deg) scale(0.94); } }

/* agents roll past; hovering stops the band */
.marquee {
  overflow: hidden; padding-block: 6px 4px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* three numbers that roll in like the app's counters */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding-block: 72px 0; }
.stat { display: flex; flex-direction: column; gap: 6px; padding: 26px 26px 24px; border-top: 1px solid var(--line-2); }
.stat__num { display: flex; align-items: baseline; font: 800 clamp(3rem, 2rem + 4vw, 5.25rem)/1.1 var(--font-display); letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.stat__num i { font-style: normal; color: var(--accent-bar); margin-left: 0.04em; }
.stat__num .roll { height: 1.1em; line-height: 1.1em; }
.stat__num .roll__col span { height: 1.1em; }
.stat__label { color: var(--muted); font-size: 1rem; }

/* scroll reveal: only hidden once main.js is running and motion is welcome */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .bento .reveal:nth-child(3n + 2), .js .stats .reveal:nth-child(2) { transition-delay: 0.08s; }
.js .bento .reveal:nth-child(3n), .js .stats .reveal:nth-child(3) { transition-delay: 0.16s; }

/* a soft light follows the pointer across a tile */
.tile::before, .plat::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), var(--accent-soft), transparent 60%);
  opacity: 0; transition: opacity 0.35s ease;
}
.tile:hover::before, .plat:hover::before { opacity: 1; }
.tile > *, .plat > * { position: relative; z-index: 1; }
.plat > .plat__yours { position: absolute; z-index: 2; }
.tile { transition: border-color 0.3s ease, transform 0.5s var(--ease); }
.tile:hover { border-color: var(--line-2); transform: translateY(-3px); }

/* feature art in quiet loops */
.wave i { transform-origin: 50% 50%; animation: eq 1.6s ease-in-out infinite; }
.wave i:nth-child(2n) { animation-duration: 1.2s; }
.wave i:nth-child(3n) { animation-duration: 1.9s; animation-delay: -0.4s; }
.wave i:nth-child(5n) { animation-delay: -0.8s; }
@keyframes eq { 50% { transform: scaleY(0.45); } }
.graph__nodes circle { transform-box: fill-box; transform-origin: center; animation: twinkle 3.2s ease-in-out infinite; }
.graph__nodes circle:nth-child(2n) { animation-delay: -1.1s; }
.graph__nodes circle:nth-child(3n) { animation-delay: -2.2s; }
@keyframes twinkle { 50% { opacity: 0.35; transform: scale(0.8); } }
.graph__hub { transform-box: fill-box; transform-origin: center; animation: hub 2.6s ease-in-out infinite; }
@keyframes hub { 50% { transform: scale(1.18); } }
.cmp { transition: transform 0.6s var(--ease); }
.tile--agents:hover .cmp:nth-child(1) { transform: translateY(-6px); }
.tile--agents:hover .cmp:nth-child(2) { transform: translateY(2px); }
.tile--agents:hover .cmp:nth-child(3) { transform: translateY(10px); }
.cur { animation: drift 5s ease-in-out infinite; }
.cur--b { animation-duration: 6.5s; animation-delay: -2s; }
@keyframes drift { 33% { transform: translate(18px, 6px); } 66% { transform: translate(-10px, -4px); } }
.note { animation: notify 5s var(--ease) infinite; }
@keyframes notify { 0% { opacity: 0; transform: translateY(-14px) scale(0.96); } 12%, 82% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-6px); } }
.branches .n { transform-box: fill-box; transform-origin: center; animation: commit 2.8s ease-in-out infinite; }
.branches .n:nth-of-type(2) { animation-delay: 0.3s; } .branches .n:nth-of-type(3) { animation-delay: 0.6s; } .branches .n:nth-of-type(4) { animation-delay: 0.9s; } .branches .n--main { animation-delay: 1.4s; }
@keyframes commit { 0%, 60%, 100% { transform: scale(1); } 30% { transform: scale(1.45); } }

/* the closing mark sits in a slow halo */
.end__mark { position: relative; display: grid; place-items: center; }
.end__halo {
  position: absolute; width: 320px; aspect-ratio: 1; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent, var(--accent-glow), transparent 40%, color-mix(in srgb, var(--accent-bar) 40%, transparent), transparent 75%);
  -webkit-mask-image: radial-gradient(closest-side, transparent 54%, #000 56%, #000 60%, transparent 72%);
  mask-image: radial-gradient(closest-side, transparent 54%, #000 56%, #000 60%, transparent 72%);
  animation: orbit-plain 14s linear infinite;
}
@keyframes orbit-plain { to { transform: rotate(360deg); } }

/* the header becomes a floating bar once you scroll (docs and legal pages) */
.top { transition: background-color 0.3s ease, border-color 0.3s ease; }
.top.is-scrolled { background: color-mix(in srgb, var(--bg) 70%, transparent); }

/* ---------- the start page header ----------
 * At the top it is an open bar over the hero. Once you scroll, a glass capsule
 * fades in behind it and the bar drops a few pixels so it floats. A light glides
 * under the section you are in (or the link you point at), and a thin line along
 * the capsule's floor shows how far down the page you are. main.js drives both.
 */
.top--home, .top--home.is-scrolled { background: transparent; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.top--home .top__inner { position: relative; transition: transform 0.5s var(--ease); }
.top__glass {
  position: absolute; inset: 8px calc(var(--gutter) - 14px); z-index: -1; pointer-events: none; overflow: hidden;
  border-radius: 18px; border: 1px solid var(--line-2);
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  -webkit-backdrop-filter: saturate(1.5) blur(18px); backdrop-filter: saturate(1.5) blur(18px);
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.06) inset, 0 22px 50px -26px rgb(0 0 0 / 0.65), 0 0 0 1px rgb(0 0 0 / 0.08);
  opacity: 0; transform: scale(1.025); transition: opacity 0.35s ease, transform 0.5s var(--ease);
}
.top__glass::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 140% at 50% -40%, var(--accent-soft), transparent 70%);
}
.top--home.is-scrolled .top__inner { transform: translateY(8px); }
.top--home.is-scrolled .top__glass { opacity: 1; transform: none; }
.top__progress {
  position: absolute; left: calc(var(--gutter) + 4px); right: calc(var(--gutter) + 4px); bottom: 8px; height: 1.5px; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--accent) 30%, var(--accent-bar) 85%, #ffffff);
  transform-origin: 0 50%; transform: scaleX(var(--progress, 0)); opacity: 0; transition: opacity 0.35s ease;
}
.top--home.is-scrolled .top__progress { opacity: 0.9; }

/* Docs, radar, account and legal start as the full bar, then settle into the same capsule as the start page. */
.top--bar .top__inner { position: relative; transition: transform 0.5s var(--ease); }
.top--bar.is-scrolled { background: transparent; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.top--bar.is-scrolled .top__inner { transform: translateY(8px); }
.top--bar.is-scrolled .top__glass { opacity: 1; transform: none; }
.top--bar.is-scrolled .top__progress { opacity: 0.9; }
/* The docs search in the bar sits with the buttons and takes the room the links leave. It drops its words
   before they could wrap: first the shortcut, then the label (the shortcut comes back beside the magnifier),
   at last the shortcut again. The thresholds fit the longer German label. */
.top .docs-search-btn { flex: 0 1 260px; min-width: 38px; max-width: 260px; margin: 0 0 0 auto; container-type: inline-size; }
.top .docs-search-btn + .top__tools { margin-left: 0; }
.top .docs-search-btn span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
@container (max-width: 209px) { .top .docs-search-btn kbd { display: none; } }
@container (max-width: 145px) { .top .docs-search-btn span { display: none; } .top .docs-search-btn kbd { display: inline-grid; } }
@container (max-width: 75px) { .top .docs-search-btn kbd { display: none; } .top .docs-search-btn svg { margin-inline: auto; } }
/* the docs run edge to edge, so their bar does as well, with the brand over the chapters */
.top__inner:has(> .docs-search-btn) { max-width: 1440px; }
@media (min-width: 1181px) { .top__inner:has(> .docs-search-btn) { --gutter: 24px; } }
/* Between the phone menu and a wide window the bar runs tight, longest in German: the parts step closer
   and the star waits in the hero and the footer (below), so no link slides under the buttons. */
@media (max-width: 1100px) {
  .top__inner { gap: 12px; }
  .nav { margin-left: 4px; }
}

.nav { position: relative; }
.nav__marker {
  position: absolute; left: 0; bottom: 1px; width: 100px; height: 2px; border-radius: 2px; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--accent-bar) 25%, var(--marker-core, #ffffff) 50%, var(--accent-bar) 75%, transparent);
  box-shadow: 0 0 14px 1px var(--accent-glow);
  transform-origin: 0 50%; transform: translateX(var(--nav-x, 0px)) scaleX(var(--nav-w, 0));
  opacity: 0; transition: transform 0.45s var(--ease), opacity 0.3s ease;
}
.nav.has-marker .nav__marker { opacity: 1; }
:root[data-theme="light"] .nav__marker { --marker-core: var(--accent); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .nav__marker { --marker-core: var(--accent); } }
.nav a[aria-current="location"] { color: var(--ink); }

/* the mark warms up under the pointer, on every page */
.mark { position: relative; }
.mark::after {
  content: ""; position: absolute; inset: -12px; z-index: -1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, var(--accent-glow), transparent);
  opacity: 0; transform: scale(0.5); transition: opacity 0.4s ease, transform 0.6s var(--ease);
}
.mark img { transition: transform 0.6s var(--ease); }
.brand:hover .mark::after { opacity: 1; transform: none; }
.brand:hover .mark img { transform: rotate(-8deg) scale(1.08); }

/* the header's download button catches the same slow light as the big ones */
.top .btn--small { position: relative; overflow: hidden; isolation: isolate; transition: transform 160ms var(--ease), box-shadow 220ms var(--ease); }
.top .btn--small::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 32%, color-mix(in srgb, var(--accent-bar) 60%, transparent) 50%, transparent 68%);
  transform: translateX(-120%); animation: sheen 6.5s ease-in-out 2.4s infinite;
}
.top .btn--small:hover { opacity: 1; transform: translateY(-1px); box-shadow: 0 0 0 4px var(--accent-soft), 0 12px 30px -12px var(--accent-glow); }
.who-menu { position: relative; flex: none; }
.who-menu > .top__signin { display: inline-flex; align-items: center; gap: var(--space-sm); min-height: var(--control-size); }
.who-menu__name { display: block; max-width: var(--label-width); overflow: hidden; text-overflow: ellipsis; }
.who-menu__avatar { position: relative; display: grid; place-items: center; flex: none; width: var(--avatar-size); height: var(--avatar-size); overflow: hidden; border-radius: var(--radius-round); background: var(--accent-soft); color: var(--ink); font-size: var(--step--1); font-weight: 600; }
.who-menu__avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.who-menu__panel {
  position: absolute; right: 0; top: calc(100% + var(--space-sm)); z-index: 40;
  min-width: var(--menu-width); padding: var(--space-sm); display: grid;
  border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line-2); box-shadow: var(--shadow);
}
.who-menu__panel[hidden] { display: none; }
.who-menu__panel a, .who-menu__panel button {
  text-align: left; padding: var(--space-sm) var(--space-md); border: 0; border-radius: var(--radius);
  background: none; color: var(--ink); font: inherit; text-decoration: none; cursor: pointer; min-height: var(--control-size);
}
.who-menu__panel a:hover, .who-menu__panel button:hover { background: var(--bg-2); }
.who-menu__panel a:focus-visible, .who-menu__panel button:focus-visible { background: var(--bg-2); outline: var(--focus-width) solid var(--accent); }
.who-menu__status { margin: var(--space-sm); max-width: var(--menu-width); color: var(--minus); font-size: var(--step--1); }
.who-sheet { display: grid; gap: var(--space-sm); }
/* the account shows its name only where the bar has room for it; elsewhere the picture stands for it, the name stays in its label */
@media (max-width: 1280px) { .who-menu__name { display: none; } }
.top .top__signin.btn--small { background: transparent; color: var(--ink); border: 1px solid var(--line-2); box-shadow: none; white-space: nowrap; flex-shrink: 0; }
.top .top__signin.btn--small::after { display: none; }
.top .top__signin.btn--small:hover { background: var(--panel); box-shadow: none; opacity: 1; }
/* In the bar the account button is as tall as the buttons beside it: the picture sits in it with a thin margin,
   and where the name gives way the button closes round the picture. */
.top .who-menu > .top__signin.btn--small { min-height: 36px; padding: 3px 12px 3px 3px; gap: 8px; }
.top .who-menu__avatar { width: 28px; height: 28px; font-size: 0.72rem; }
@media (max-width: 1280px) { .top .who-menu > .top__signin.btn--small { padding: 3px; } }

/* phones: a menu button opens the nav as a full-screen sheet below the header */
.top__menu { display: none; }
.top__menu path { transition: transform 0.35s var(--ease); transform-origin: 12px 12px; }
.top__menu[aria-expanded="true"] .top__menu-a { transform: translateY(4px) rotate(45deg); }
.top__menu[aria-expanded="true"] .top__menu-b { transform: translateY(-4px) rotate(-45deg); }
.sheet {
  position: fixed; inset: 0; z-index: 45; overflow-y: auto; overscroll-behavior: contain;
  padding: calc(88px + env(safe-area-inset-top, 0px)) var(--gutter) calc(32px + env(safe-area-inset-bottom, 0px));
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(24px); backdrop-filter: saturate(1.4) blur(24px);
  opacity: 0; transition: opacity 0.3s ease;
}
.sheet[hidden] { display: none; }
.sheet.is-open { opacity: 1; }
.sheet__inner { max-width: 560px; margin-inline: auto; }
.sheet__nav { display: flex; flex-direction: column; }
.sheet__nav a, .sheet__cta { opacity: 0; transform: translateY(16px); transition: opacity 0.4s ease, transform 0.6s var(--ease); }
.sheet__nav a {
  display: block; padding: 14px 2px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none;
  font: 700 clamp(1.75rem, 1.2rem + 3vw, 2.4rem)/1.1 var(--font-display); letter-spacing: -0.03em;
}
.sheet__nav a:active { color: var(--accent-ink); }
.sheet__cta { width: 100%; justify-content: center; margin-top: 28px; }
.sheet.is-open .sheet__nav a, .sheet.is-open .sheet__cta { opacity: 1; transform: none; }
.sheet.is-open .sheet__nav a:nth-child(2) { transition-delay: 0.04s; }
.sheet.is-open .sheet__nav a:nth-child(3) { transition-delay: 0.08s; }
.sheet.is-open .sheet__nav a:nth-child(4) { transition-delay: 0.12s; }
.sheet.is-open .sheet__nav a:nth-child(5) { transition-delay: 0.16s; }
.sheet.is-open .sheet__nav a:nth-child(6) { transition-delay: 0.2s; }
.sheet.is-open .sheet__cta { transition-delay: 0.26s; }
/* on body, not html: body's overflow then reaches the viewport, so the sticky header stays put */
.menu-open body { overflow: hidden; }
@media (max-width: 960px) {
  .js .top__menu { display: inline-grid; }
}
@media (min-width: 961px) {
  .sheet { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .top--home .top__inner, .top--bar .top__inner, .top__glass, #theme-toggle, .nav__marker, .sheet, .sheet__nav a, .sheet__cta, .mark img, .mark::after { transition: none; }
  .top .btn--small::after { display: none; }
}

/* ---------- the hub: agents wire in, the work wires out ----------
 * Two drawings (wide, tall) from build.mjs; the labels are HTML placed in
 * percent of the drawing so they meet the wire ends at any width. Lights run
 * along the wires with SMIL animateMotion; main.js pauses them off screen.
 */
.hub { padding-block: 120px 10px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hub .h2, .hub .lead { margin-inline: auto; }
.hub__stage { position: relative; width: 100%; max-width: 1080px; margin-top: 40px; isolation: isolate; }
.hub__stage::before {
  content: ""; position: absolute; inset: -40px -16px; z-index: -1; pointer-events: none;
  background-image: radial-gradient(var(--line-2) 1px, transparent 1.4px); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 58% 56% at 50% 50%, #000 15%, transparent 72%);
  mask-image: radial-gradient(ellipse 58% 56% at 50% 50%, #000 15%, transparent 72%);
}
.hub__layer { position: relative; width: 100%; }
.hub__layer--wide { aspect-ratio: 1000 / 460; }
.hub__layer--tall { display: none; aspect-ratio: 360 / 760; max-width: 430px; margin-inline: auto; }
.hub__wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hub__wire { fill: none; stroke: var(--line-2); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.hub__light circle { fill: #ffffff; }
.hub__light .hub__halo { fill: var(--accent-bar); opacity: 0.45; }
.hub__light--out circle { fill: var(--accent-ink); }
.hub__light--out .hub__halo { fill: var(--accent); opacity: 0.3; }
.hub__layer--tall .hub__halo { transform: scale(0.7); }
:root[data-theme="light"] .hub__light circle:not(.hub__halo) { fill: var(--accent); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .hub__light circle:not(.hub__halo) { fill: var(--accent); } }
.hub__nodes { list-style: none; margin: 0; padding: 0; }
.hub__node {
  position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px; border-radius: 12px;
  border: 1px solid var(--line-2); background: color-mix(in srgb, var(--panel) 92%, transparent); color: var(--ink);
  width: max-content; font: 600 0.88rem/1 var(--font-ui); white-space: nowrap; box-shadow: 0 10px 26px -16px rgb(0 0 0 / 0.55);
}
.hub__node img { flex: none; width: 18px; height: 18px; border-radius: 5px; }
.hub__node svg { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--accent-ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hub__node--out { border-color: color-mix(in srgb, var(--accent) 40%, var(--line-2)); }
.hub__layer--wide .hub__node--in { transform: translate(-100%, -50%); }
.hub__layer--wide .hub__node--out { transform: translate(0, -50%); }
.hub__layer--tall .hub__node { transform: translate(-50%, -50%); padding: 7px 10px; gap: 6px; font-size: 0.76rem; }
.hub__layer--tall .hub__node img, .hub__layer--tall .hub__node svg { width: 15px; height: 15px; }
.hub__core { position: absolute; width: 12.8%; aspect-ratio: 1; display: grid; place-items: center; transform: translate(-50%, -50%); }
.hub__layer--tall .hub__core { width: 30%; }
.hub__core::before { content: ""; position: absolute; inset: -70%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, var(--accent-glow), transparent); }
.hub__core img { position: relative; z-index: 1; width: 80%; height: auto; border-radius: 24%; box-shadow: 0 18px 46px -14px var(--accent-glow); }
.hub__core-ring {
  position: absolute; inset: -4%; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 58%, var(--accent-bar) 80%, #ffffff 84%, transparent 92%);
  -webkit-mask-image: radial-gradient(closest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px));
  mask-image: radial-gradient(closest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px));
  animation: orbit-plain 4.5s linear infinite;
}
.hub__core-pulse { position: absolute; inset: 2%; border-radius: 50%; border: 1px solid var(--accent-bar); animation: hub-pulse 2.6s var(--ease) infinite; }
@keyframes hub-pulse { from { transform: scale(0.9); opacity: 0.8; } to { transform: scale(1.7); opacity: 0; } }
@media (max-width: 860px) {
  .hub__layer--wide { display: none; }
  .hub__layer--tall { display: block; }
}

/* ---------- the statement: words light up as it scrolls by (main.js) ---------- */
.say { padding-block: 120px 20px; }
.say__text { max-width: 980px; font: 700 clamp(1.85rem, 1.05rem + 3.2vw, 3.6rem)/1.16 var(--font-display); letter-spacing: -0.035em; text-wrap: balance; }
.say__w--em { background: linear-gradient(100deg, var(--accent-ink), var(--accent) 55%, var(--accent-bar)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- light running around an edge (the download stage) ---------- */
.edge-beam {
  position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; border-radius: inherit; padding: 1.5px;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude;
}
.edge-beam::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 160%; aspect-ratio: 1;
  background: conic-gradient(from 0deg, transparent 0 74%, color-mix(in srgb, var(--accent-bar) 85%, transparent) 88%, #ffffff 91%, transparent 95%);
  transform: translate(-50%, -50%) rotate(0deg); animation: orbit 10s linear infinite;
}

/* the edge of a card lights up where the pointer is (main.js sets --mx/--my) */
.tile::after, .plat::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit; padding: 1px;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), var(--accent-bar), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude;
  opacity: 0; transition: opacity 0.35s ease;
}
.tile:hover::after, .plat:hover::after { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .hub__light, .hub__core-pulse { display: none; }
  .edge-beam { display: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .nav { display: none; }
  .app { grid-template-columns: minmax(0, 1fr); height: 560px; }
  .app__side { display: none; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "agents agents" "brain notes" "aylinge aylinge" "parallel phone" "team team" "move move"; }
  .soon { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .stats { grid-template-columns: minmax(0, 1fr); padding-top: 40px; }
  .stat { padding-inline: 4px; }
  .end__halo { width: 260px; }
  .hero { padding-block: 48px 8px; }
  .top__tools .btn--small:not(.top__signin) { display: none; }
  .platforms { grid-template-columns: minmax(0, 1fr); }
  .bento { grid-template-columns: minmax(0, 1fr); grid-template-areas: "agents" "brain" "notes" "aylinge" "parallel" "phone" "team" "move"; }
  .cmp:nth-child(3) { display: none; }
  .app { height: 520px; font-size: 12px; }
  .chat { padding-inline: 14px; gap: 12px; }
  .work__steps li:nth-child(1) { display: none; }
  .composer { margin-inline: 10px; }
  .composer__chips .c:nth-child(n + 3) { display: none; }
  .cta { flex-direction: column; align-items: stretch; width: 100%; }
  .btn--hero, .btn--hero-alt { width: 100%; justify-content: center; }
  .agents, .features, .download { padding-top: 80px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .beam { transform: none; }
  .marquee__track { flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee__track .logos[aria-hidden] { display: none; }
  .logos { flex-wrap: wrap; justify-content: center; row-gap: 10px; }
  html { scroll-behavior: auto; }
  .cursor, .dots i { animation: none; }
  .btn, .roll__col { transition: none; }
}

/* without an installer for this system the button just leads to the list */
.cta[data-platform="all"] .btn__text { align-items: center; text-align: center; }

/* ---------- generated backdrops ----------
 * Two silent loops (light ribbon behind the hero, knowledge graph behind the
 * closing call). The poster is the loop's first frame, so the page looks the
 * same before, during and without playback (reduce motion, Save-Data). */
.bgloop { position: absolute; z-index: -2; left: 0; right: 0; pointer-events: none; overflow: hidden; }
.bgloop__video { display: block; width: 100%; height: 100%; object-fit: cover; }
.bgloop--hero { top: 0; height: min(980px, 118vh); -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%); mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%); }
.bgloop--hero .bgloop__video { opacity: 0.9; }
.bgloop--end { inset: 0; -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 78%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 78%, transparent 100%); }
.bgloop--end .bgloop__video { opacity: 0.85; }
/* the ribbon carries the light now, so the old beam and glow step back */
.hero__beam { opacity: 0.45; }
.hero__glow { opacity: 0.5; }

/* On paper the dark renders turn into ink on light: inverting flips graphite
 * to white, the half-turn of hue brings the violet back. */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .bgloop__video { filter: invert(1) hue-rotate(180deg) saturate(1.3); }
  :root:not([data-theme="dark"]) .bgloop--hero .bgloop__video { opacity: 0.6; }
  :root:not([data-theme="dark"]) .bgloop--end .bgloop__video { opacity: 0.55; }
}
:root[data-theme="light"] .bgloop__video { filter: invert(1) hue-rotate(180deg) saturate(1.3); }
:root[data-theme="light"] .bgloop--hero .bgloop__video { opacity: 0.6; }
:root[data-theme="light"] .bgloop--end .bgloop__video { opacity: 0.55; }

@media (max-width: 640px) {
  .bgloop--hero { height: 640px; }
  .bgloop--hero .bgloop__video { object-position: 70% 50%; opacity: 0.6; }
}

/* ---------- download stage ----------
 * The download is the page's payoff, so it gets its own lit stage: the hero's
 * light ribbon mirrored behind it, the app icon floating at the right, and a
 * running light around the card for the visitor's own system. */
.dl-stage { position: relative; isolation: isolate; overflow: hidden; margin-top: 8px; padding: clamp(22px, 4.2vw, 56px); border-radius: 32px; border: 1px solid var(--line); background: linear-gradient(180deg, color-mix(in srgb, var(--panel) 92%, transparent), var(--bg)); box-shadow: 0 60px 140px -60px var(--accent-glow); }
.dl-stage__bg { position: absolute; inset: 0; z-index: -1; background: url("/assets/bg/hero.jpg") 70% 30% / cover no-repeat; opacity: 0.75; -webkit-mask-image: linear-gradient(180deg, #000 0%, rgb(0 0 0 / 0.55) 55%, transparent 92%); mask-image: linear-gradient(180deg, #000 0%, rgb(0 0 0 / 0.55) 55%, transparent 92%); }
.dl-stage__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 32px; }
.dl-stage__title { font-size: clamp(2.6rem, 1.4rem + 4.4vw, 4.6rem); font-weight: 800; letter-spacing: -0.052em; line-height: 0.98; background: linear-gradient(180deg, var(--ink) 30%, color-mix(in srgb, var(--accent-bar) 75%, var(--ink))); -webkit-background-clip: text; background-clip: text; color: transparent; }
.version-chip { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; padding: 7px 13px 7px 11px; border-radius: 99px; border: 1px solid var(--line-2); background: color-mix(in srgb, var(--panel) 80%, transparent); color: var(--ink); font: 500 0.85rem/1 var(--font-mono); font-variant-numeric: tabular-nums; }
.version-chip__dot { width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgb(52 211 153 / 0.18); animation: hub 2.4s ease-in-out infinite; }
.dl-stage__icon { position: relative; display: grid; place-items: center; width: 220px; height: 220px; margin-right: clamp(0px, 3vw, 40px); }
.dl-stage__icon img { position: relative; z-index: 1; width: 168px; height: 168px; filter: drop-shadow(0 30px 50px rgb(0 0 0 / 0.45)); animation: float 6s ease-in-out infinite; }
.dl-stage__halo { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, transparent 0 55%, var(--accent-bar) 75%, #fff 80%, transparent 88%); -webkit-mask-image: radial-gradient(closest-side, transparent 78%, #000 80%, #000 82%, transparent 84%); mask-image: radial-gradient(closest-side, transparent 78%, #000 80%, #000 82%, transparent 84%); animation: orbit-plain 9s linear infinite; opacity: 0.85; }
.dl-stage__floor { position: absolute; left: 50%; bottom: 2px; width: 120px; height: 18px; margin-left: -60px; border-radius: 50%; background: radial-gradient(closest-side, rgb(0 0 0 / 0.45), transparent); animation: float-shadow 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-12px) rotate(-1.5deg); } }
@keyframes float-shadow { 50% { transform: scale(0.82); opacity: 0.7; } }

.dl-stage .platforms { margin-top: 44px; }
.plat--main { overflow: hidden; padding: 30px; gap: 12px; background: color-mix(in srgb, var(--panel) 88%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.plat--main .plat__head h3 { font-size: 1.6rem; }
.plat > .plat__glyph { position: absolute; z-index: 0; right: -34px; bottom: -46px; width: 230px; height: 230px; opacity: 0.05; transform: rotate(-12deg); transition: transform 0.8s var(--ease), opacity 0.4s ease; pointer-events: none; }
.plat__glyph svg { width: 100%; height: 100%; fill: var(--ink); }
.plat--main:hover .plat__glyph { transform: rotate(-4deg) scale(1.06); opacity: 0.08; }
.plat__file { display: inline-flex; align-items: center; gap: 7px; align-self: flex-start; max-width: 100%; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 60%, transparent); color: var(--muted); font: 500 0.78rem/1.2 var(--font-mono); }
.plat__file span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plat__file svg { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; }
.btn--dl { min-height: 50px; padding-inline: 20px 22px; border-radius: 14px; gap: 10px; }
.btn__arrow { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn--dl:hover .btn__arrow { animation: drop 0.9s var(--ease) infinite; }
@keyframes drop { 0% { transform: translateY(-3px); opacity: 0.4; } 45% { transform: translateY(2px); opacity: 1; } 100% { transform: translateY(5px); opacity: 0; } }

/* a light runs around the card that matches the visitor's system */
.plat > .plat__ring { position: absolute; inset: 0; z-index: 2; display: none; padding: 1.5px; border-radius: inherit; overflow: hidden; pointer-events: none; -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.plat__ring::before { content: ""; position: absolute; left: 50%; top: 50%; width: 220%; aspect-ratio: 1; background: conic-gradient(from 0deg, transparent 0 60%, var(--accent-bar) 78%, #fff 82%, transparent 90%); transform: translate(-50%, -50%); animation: orbit 6s linear infinite; }
.plat--main.is-yours { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); box-shadow: 0 30px 80px -30px var(--accent-glow); }
.plat--main.is-yours .plat__ring { display: block; }

.steps { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; counter-reset: none; }
.step { position: relative; display: flex; gap: 14px; align-items: flex-start; padding: 20px; border-radius: var(--radius-lg); border: 1px dashed var(--line-2); }
.step h3 { font-size: 1rem; letter-spacing: -0.01em; }
.step p { margin-top: 4px; color: var(--muted); font-size: 0.88rem; line-height: 1.5; }
.step__num { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); font: 700 0.85rem/1 var(--font-mono); }
.js .steps .reveal:nth-child(2) { transition-delay: 0.08s; }
.js .steps .reveal:nth-child(3) { transition-delay: 0.16s; }

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .dl-stage__bg { filter: invert(1) hue-rotate(180deg) saturate(1.3); opacity: 0.55; }
}
:root[data-theme="light"] .dl-stage__bg { filter: invert(1) hue-rotate(180deg) saturate(1.3); opacity: 0.55; }

@media (max-width: 960px) {
  .dl-stage__icon { width: 150px; height: 150px; margin-right: 0; }
  .dl-stage__icon img { width: 112px; height: 112px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .dl-stage { border-radius: 24px; margin-inline: -4px; }
  .dl-stage__head { grid-template-columns: minmax(0, 1fr); }
  .dl-stage__icon { order: -1; justify-self: center; width: 132px; height: 132px; margin-bottom: 4px; }
  .dl-stage__icon img { width: 100px; height: 100px; }
  .dl-stage__icon > .icon3d { left: -60px; top: -60px; width: calc(100% + 120px); height: calc(100% + 120px); }
  .plat--main { padding: 22px; }
}

/* ---------- Aylinge ---------- */
.ayling { overflow: visible; }
.ayling__body { fill: var(--ay, var(--accent)); }
.ayling__body polygon { stroke: var(--ay, var(--accent)); }
.ayling__eyes { fill: #141416; transform-box: fill-box; transform-origin: center; animation: ay-blink 5.2s infinite; }
.ayling--pink { --ay: #ec4f8b; } .ayling--orange { --ay: #f27a3d; } .ayling--amber { --ay: #f2a73b; } .ayling--teal { --ay: #3db3a1; }
.ayling--violet { --ay: #8b5cf6; } .ayling--blue { --ay: #4f8ef5; } .ayling--green { --ay: #45b86f; } .ayling--red { --ay: #e5534b; }
@keyframes ay-blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(0.1); } }

.crew { position: relative; padding-block: 130px 40px; overflow: hidden; }
.crew::before { content: ""; position: absolute; z-index: -1; right: -10%; top: 10%; width: 900px; height: 700px; background: radial-gradient(closest-side, var(--accent-glow), transparent 70%); opacity: 0.55; }
.crew__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 40px; align-items: center; }
.crew__points { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 10px; }
.crew__points li { display: flex; gap: 10px; align-items: baseline; color: var(--ink); }
.crew__points li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-bar); box-shadow: 0 0 12px var(--accent-bar); transform: translateY(-1px); }
.crew__chat { display: grid; gap: 8px; margin-top: 30px; max-width: 420px; }
.bubble { display: flex; align-items: center; gap: 10px; margin: 0; padding: 9px 14px 9px 9px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); font-size: 0.9rem; color: var(--ink); width: fit-content; max-width: 100%; }
.bubble b { display: block; font-size: 0.72rem; color: var(--muted); font-weight: 600; }
.bubble .ayling { flex: none; }
.bubble--me { justify-self: end; padding: 9px 14px; background: var(--accent); border-color: transparent; color: #fff; }

/* the crew stands in a ring you can look into; CSS turns it, GSAP ties it to the scroll */
.ring { --r: 290px; position: relative; height: 520px; perspective: 1400px; perspective-origin: 50% 30%; }
.ring__tilt { position: absolute; inset: 0; display: grid; place-items: center; transform-style: preserve-3d; transform: rotateX(-10deg); }
.ring__spin { position: relative; width: 168px; height: 222px; margin: 0; padding: 0; list-style: none; transform-style: preserve-3d; animation: ring-spin 48s linear infinite; }
.ring__card { position: absolute; inset: 0; transform-style: preserve-3d; }
.ring__card:nth-child(1) { transform: rotateY(0deg) translateZ(var(--r)); }
.ring__card:nth-child(2) { transform: rotateY(45deg) translateZ(var(--r)); }
.ring__card:nth-child(3) { transform: rotateY(90deg) translateZ(var(--r)); }
.ring__card:nth-child(4) { transform: rotateY(135deg) translateZ(var(--r)); }
.ring__card:nth-child(5) { transform: rotateY(180deg) translateZ(var(--r)); }
.ring__card:nth-child(6) { transform: rotateY(225deg) translateZ(var(--r)); }
.ring__card:nth-child(7) { transform: rotateY(270deg) translateZ(var(--r)); }
.ring__card:nth-child(8) { transform: rotateY(315deg) translateZ(var(--r)); }
.ring__face { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border-radius: 22px; border: 1px solid var(--line-2); background: radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, var(--ay-glow, var(--accent)) 22%, transparent), transparent 70%), linear-gradient(180deg, var(--panel-2), var(--panel)); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.06); backface-visibility: hidden; -webkit-backface-visibility: hidden; transition: opacity 0.3s linear; }
.ring__face .ayling { margin-bottom: 6px; filter: drop-shadow(0 10px 18px rgb(0 0 0 / 0.35)); }
.ring__face b { font-size: 1.05rem; letter-spacing: -0.01em; }
.ring__role { color: var(--muted); font-size: 0.8rem; }
.ring__prov { display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; padding: 4px 8px; border-radius: 99px; border: 1px solid var(--line); color: var(--faint); font: 500 0.68rem/1 var(--font-mono); }
.ring__floor { position: absolute; left: 50%; bottom: 40px; width: 560px; height: 120px; margin-left: -280px; border-radius: 50%; background: radial-gradient(closest-side, var(--accent-glow), transparent 75%); opacity: 0.8; }
@keyframes ring-spin { to { transform: rotateY(-360deg); } }
.is-gsap .ring__spin { animation: none; }

/* ---------- the reel: more features, sideways ---------- */
.reel { position: relative; padding-block: 110px 40px; overflow: hidden; }
.reel__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.reel__hint { color: var(--faint); font: 500 0.8rem/1 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.reel__hint span { display: inline-block; animation: nudge 1.6s var(--ease) infinite; }
@keyframes nudge { 50% { transform: translateX(6px); } }
.reel__viewport { margin-top: 40px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.reel__viewport::-webkit-scrollbar { display: none; }
.reel__track { display: flex; gap: 18px; width: max-content; margin: 0; padding: 10px max(16px, calc((100vw - 1136px) / 2)) 30px; list-style: none; }
.reel__card { position: relative; flex: none; width: clamp(280px, 28vw, 370px); display: flex; flex-direction: column; padding: 18px 18px 26px; border-radius: 26px; border: 1px solid var(--line); background: linear-gradient(180deg, var(--panel), color-mix(in srgb, var(--panel) 70%, var(--bg))); scroll-snap-align: center; transform-style: preserve-3d; }
.reel__card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), var(--accent-soft), transparent 60%); opacity: 0; transition: opacity 0.35s ease; }
.reel__card:hover::before { opacity: 1; }
.reel__card > * { position: relative; }
.reel__num { margin-top: 22px; color: var(--accent-ink); font: 700 0.78rem/1 var(--font-mono); letter-spacing: 0.1em; }
.reel__card h3 { margin-top: 10px; font-size: 1.3rem; letter-spacing: -0.025em; line-height: 1.15; }
.reel__card p { margin-top: 8px; color: var(--muted); font-size: 0.92rem; line-height: 1.5; }
.reel__art { position: relative; height: 180px; border-radius: 18px; border: 1px solid var(--line); background: radial-gradient(120% 90% at 50% 0%, var(--accent-soft), transparent 70%), var(--bg); overflow: hidden; display: grid; place-items: center; }

.art-quick { grid-auto-flow: column; gap: 8px; place-content: center; }
.kbd { display: grid; place-items: center; min-width: 54px; height: 54px; padding: 0 12px; border-radius: 14px; border: 1px solid var(--line-2); border-bottom-width: 4px; background: var(--panel-2); color: var(--ink); font: 600 1.25rem/1 var(--font-display); animation: key 2.4s var(--ease) infinite; }
.kbd--wide { min-width: 120px; font-size: 0.95rem; animation-delay: 0.12s; }
@keyframes key { 0%, 60%, 100% { transform: translateY(0); } 70% { transform: translateY(3px); } }
.quick__bar { position: absolute; left: 50%; bottom: 18px; width: 70%; height: 30px; margin-left: -35%; border-radius: 10px; border: 1px solid var(--line-2); background: var(--panel); overflow: hidden; }
.quick__bar i { position: absolute; left: 12px; top: 9px; width: 2px; height: 12px; background: var(--accent-bar); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

.art-touch { align-content: center; gap: 8px; padding: 0 18px; }
.touch__row { display: flex; align-items: center; gap: 8px; width: 100%; min-width: 230px; padding: 8px 12px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); font-size: 0.8rem; }
.touch__row code { flex: 1; font-family: var(--font-mono); color: var(--ink); }
.touch__row .plus { color: #34d399; font: 600 0.78rem/1 var(--font-mono); }
.touch__row .minus { color: #f87171; font: 600 0.78rem/1 var(--font-mono); }
.touch__row.is-live { border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); box-shadow: 0 0 0 3px var(--accent-soft); animation: live 2.2s ease-in-out infinite; }
@keyframes live { 50% { transform: translateX(4px); } }

.art-btw { align-content: center; gap: 14px; padding: 0 18px; }
.btw__main { display: flex; gap: 6px; }
.btw__main i { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); animation: dots 1.2s ease-in-out infinite; }
.btw__main i:nth-child(2) { animation-delay: 0.15s; } .btw__main i:nth-child(3) { animation-delay: 0.3s; }
@keyframes dots { 50% { transform: translateY(-4px); opacity: 0.4; } }
.btw__q { padding: 9px 13px; border-radius: 14px 14px 4px 14px; background: var(--accent); color: #fff; font: 500 0.78rem/1.35 var(--font-mono); max-width: 260px; animation: pop 3.2s var(--ease) infinite; }
@keyframes pop { 0% { transform: translateY(10px) scale(0.96); opacity: 0; } 15%, 85% { transform: none; opacity: 1; } 100% { transform: translateY(-6px); opacity: 0; } }

.art-models { align-content: center; justify-items: start; gap: 6px; padding: 0 30px; }
.model { display: inline-flex; align-items: center; gap: 8px; padding: 5px 11px 5px 8px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--panel); font-size: 0.82rem; animation: pick 4s var(--ease) infinite; }
.model:nth-child(2) { animation-delay: 0.3s; } .model:nth-child(3) { animation-delay: 0.6s; } .model:nth-child(4) { animation-delay: 0.9s; }
@keyframes pick { 0%, 10% { transform: translateX(0); border-color: var(--line-2); } 25%, 80% { transform: translateX(14px); border-color: var(--accent); } 100% { transform: translateX(0); } }

.art-remember { align-content: center; justify-items: stretch; gap: 4px; padding: 0 18px; font: 500 0.78rem/1.4 var(--font-mono); }
.diff { padding: 5px 10px; border-radius: 6px; }
.diff--minus { background: rgb(248 113 113 / 0.12); color: #fca5a5; }
.diff--plus { background: rgb(52 211 153 / 0.12); color: #6ee7b7; }
.remember { justify-self: end; display: inline-flex; align-items: center; gap: 7px; margin-top: 8px; padding: 7px 11px; border-radius: 10px; background: var(--accent); color: #fff; font-family: var(--font-display); font-weight: 600; animation: pop 3.6s var(--ease) infinite; }
.remember i { width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px #fff; }

.art-cost { grid-auto-flow: column; align-items: end; gap: 10px; padding: 30px 30px 26px; place-content: end center; }
.art-cost i { width: 22px; height: 110px; border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, var(--accent-bar), var(--accent)); transform-origin: bottom; animation: bar 3.4s var(--ease) infinite; }
.art-cost i:nth-child(1) { transform: scaleY(0.4); animation-delay: 0s; } .art-cost i:nth-child(2) { animation-delay: 0.1s; } .art-cost i:nth-child(3) { animation-delay: 0.2s; }
.art-cost i:nth-child(4) { animation-delay: 0.3s; } .art-cost i:nth-child(5) { animation-delay: 0.4s; } .art-cost i:nth-child(6) { animation-delay: 0.5s; } .art-cost i:nth-child(7) { animation-delay: 0.6s; }
@keyframes bar { 0%, 100% { transform: scaleY(0.25); } 50% { transform: scaleY(0.9); } }
.art-cost i:nth-child(2n) { animation-duration: 4.1s; } .art-cost i:nth-child(3n) { animation-duration: 2.9s; }

.art-pet .ayling { animation: hop 2.4s var(--ease) infinite; filter: drop-shadow(0 14px 18px rgb(0 0 0 / 0.35)); }
.pet__shadow { position: absolute; left: 50%; bottom: 34px; width: 60px; height: 10px; margin-left: -30px; border-radius: 50%; background: rgb(0 0 0 / 0.35); animation: hop-shadow 2.4s var(--ease) infinite; }
@keyframes hop { 0%, 40%, 100% { transform: translateY(0); } 20% { transform: translateY(-26px) rotate(-6deg); } }
@keyframes hop-shadow { 0%, 40%, 100% { transform: scale(1); } 20% { transform: scale(0.6); opacity: 0.5; } }

.art-wake { grid-auto-flow: column; gap: 14px; place-content: center; }
.wake__phone, .wake__mac { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 16px; border: 1px solid var(--line-2); background: var(--panel); }
.wake__phone svg, .wake__mac svg { width: 26px; height: 26px; fill: var(--ink); }
.wake__mac { animation: wake 3s ease-in-out infinite; }
.wake__waves { display: flex; gap: 5px; }
.wake__waves i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-bar); animation: wave-dot 1.5s ease-in-out infinite; }
.wake__waves i:nth-child(2) { animation-delay: 0.2s; } .wake__waves i:nth-child(3) { animation-delay: 0.4s; }
@keyframes wave-dot { 0%, 100% { opacity: 0.2; transform: scale(0.7); } 50% { opacity: 1; transform: scale(1.1); } }
@keyframes wake { 0%, 50% { box-shadow: none; } 70%, 90% { box-shadow: 0 0 0 4px var(--accent-soft), 0 0 30px var(--accent-glow); } }

/* GSAP pins the reel and slides it sideways on wide screens */
.is-gsap .reel--pinned .reel__viewport { overflow: visible; scroll-snap-type: none; }

/* ---------- download glow ---------- */
.dl-stage::after { content: ""; position: absolute; z-index: -1; right: -120px; top: -160px; width: 620px; height: 620px; border-radius: 50%; background: radial-gradient(closest-side, var(--accent-glow), transparent 70%); animation: glow-breathe 5s ease-in-out infinite; }
@keyframes glow-breathe { 50% { transform: scale(1.12); opacity: 0.7; } }
.dl-glow { position: relative; display: inline-flex; isolation: isolate; border-radius: 14px; }
.dl-glow::before { content: ""; position: absolute; z-index: -1; inset: 4px; border-radius: inherit; background: linear-gradient(90deg, #8b5cf6, #c084fc, #60a5fa, #8b5cf6); filter: blur(16px); opacity: 0.55; animation: glow-pulse 2.8s ease-in-out infinite; }
@keyframes glow-pulse { 50% { opacity: 0.95; transform: scale(1.06); } }
.dl-stage__icon > .icon3d { position: absolute; left: -80px; top: -80px; width: calc(100% + 160px); height: calc(100% + 160px); opacity: 0; transition: opacity 0.8s ease; }
.dl-stage__icon.is-3d > .icon3d { opacity: 1; }
.dl-stage__icon.is-3d > img, .dl-stage__icon.is-3d > .dl-stage__floor, .dl-stage__icon.is-3d > .dl-stage__halo { opacity: 0; transition: opacity 0.6s ease; }

/* GSAP owns hover motion of tiles and cards when it runs */
.is-gsap .tile:hover { transform: none; }

@media (max-width: 960px) {
  .crew__inner { grid-template-columns: minmax(0, 1fr); }
  .ring { --r: 210px; height: 400px; }
}
@media (max-width: 640px) {
  .crew { padding-top: 90px; }
  .ring { --r: 150px; height: 330px; margin-inline: -16px; }
  .ring__spin { width: 112px; height: 156px; }
  .ring__face .ayling { width: 52px; height: 52px; }
  .ring__face b { font-size: 0.92rem; }
  .ring__prov { display: none; }
  .ring__floor { width: 340px; margin-left: -170px; bottom: 20px; }
  .reel { padding-top: 80px; }
  .reel__card { width: 82vw; }
  .reel__hint { display: none; }
}

.reel__foot { display: none; margin-top: 8px; }
.reel--pinned .reel__foot { display: block; }
.reel__progress { display: block; height: 3px; border-radius: 99px; background: var(--line); overflow: hidden; }
.reel__progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-bar)); transform-origin: 0 50%; transform: scaleX(0); }
.ring__card:nth-child(1) { --ay-glow: #8b5cf6; } .ring__card:nth-child(2) { --ay-glow: #f2a73b; } .ring__card:nth-child(3) { --ay-glow: #ec4f8b; } .ring__card:nth-child(4) { --ay-glow: #3db3a1; }
.ring__card:nth-child(5) { --ay-glow: #4f8ef5; } .ring__card:nth-child(6) { --ay-glow: #45b86f; } .ring__card:nth-child(7) { --ay-glow: #f27a3d; } .ring__card:nth-child(8) { --ay-glow: #e5534b; }

/* a download button answers the click: light fills it from the left, then the arrow turns into a check */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.btn--primary::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: rgb(255 255 255 / 0.2); transform: scaleX(0); transform-origin: 0 50%; opacity: 0; }
.btn--primary.is-started::before { animation: dl-fill 1.1s var(--ease) forwards; }
@keyframes dl-fill { 0% { transform: scaleX(0); opacity: 1; } 70% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
.btn__check { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; animation: dl-check 0.45s var(--ease) 0.35s forwards; }
@keyframes dl-check { to { stroke-dashoffset: 0; } }
.btn--primary.is-started .btn__arrow, .btn--primary.is-started .btn__icon { display: none; }
.btn--primary.is-started:hover .btn__arrow { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .btn--primary.is-started::before { animation: none; }
  .btn__check { animation: none; stroke-dashoffset: 0; }
}

/* ---------- GitHub star: a link to the public repo, the count arrives from star.mjs ---------- */
.star { position: relative; display: inline-flex; align-items: center; gap: 9px; min-height: 40px; padding: 0 6px 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: color-mix(in srgb, var(--panel) 72%, transparent); color: var(--ink); font: 600 0.875rem/1 var(--font-ui); text-decoration: none; white-space: nowrap; overflow: hidden; isolation: isolate; transition: border-color 200ms var(--ease), transform 200ms var(--ease), box-shadow 200ms var(--ease); }
.star::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(105deg, transparent 35%, var(--accent-soft) 50%, transparent 65%); transform: translateX(-110%); transition: transform 700ms var(--ease); }
.star:hover { border-color: var(--accent-bar); transform: translateY(-1px); box-shadow: 0 12px 30px -14px var(--accent-glow); }
.star:hover::before { transform: translateX(110%); }
.star:focus-visible { outline: 2px solid var(--accent-bar); outline-offset: 3px; }
.star__gh { width: 17px; height: 17px; flex: none; fill: currentColor; }
.star__end { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px 0 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); }
.star__icon { position: relative; display: inline-grid; place-items: center; width: 16px; height: 16px; flex: none; }
.star__icon svg { width: 16px; height: 16px; overflow: visible; animation: star-twinkle 7s var(--ease) 2.5s infinite; transition: transform 500ms cubic-bezier(0.34, 1.56, 0.64, 1); }
.star__shape { fill: currentColor; fill-opacity: 0; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; transition: fill-opacity 250ms var(--ease); }
.star:hover .star__icon svg { animation: none; transform: rotate(72deg) scale(1.2); }
.star:hover .star__shape { fill-opacity: 1; }
.star__spark { position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; margin: -2px; border-radius: 50%; background: var(--accent-bar); opacity: 0; pointer-events: none; }
.star__spark:nth-of-type(1) { --spark: translate(-13px, -11px); }
.star__spark:nth-of-type(2) { --spark: translate(13px, -12px); }
.star__spark:nth-of-type(3) { --spark: translate(14px, 10px); }
.star__spark:nth-of-type(4) { --spark: translate(-12px, 12px); }
.star:hover .star__spark { animation: star-spark 650ms var(--ease) both; }
.star:hover .star__spark:nth-of-type(even) { animation-delay: 60ms; }
@keyframes star-spark { 0% { opacity: 1; transform: translate(0, 0) scale(1); } 100% { opacity: 0; transform: var(--spark) scale(0.3); } }
@keyframes star-twinkle { 0%, 86%, 100% { transform: none; } 90% { transform: rotate(-14deg) scale(1.22); } 94% { transform: rotate(10deg) scale(0.94); } }
.star__count { font: 600 0.8rem/1 var(--font-mono); font-variant-numeric: tabular-nums; opacity: 0; transform: translateY(6px); transition: opacity 400ms var(--ease), transform 500ms var(--ease); }
.star__count.is-in { opacity: 1; transform: none; }

/* header: just the star (and the count), next to the language chip */
.star--compact { min-height: 36px; padding: 0 3px; border-radius: 10px; border-color: var(--line); background: transparent; }
.star--compact .star__end { height: 28px; padding: 0 7px; background: transparent; color: var(--ink-2); }
.star--compact:hover .star__end { color: var(--accent-ink); }
@media (max-width: 1100px) { .star--compact { display: none; } }

.hero__star { display: flex; justify-content: center; margin-top: 16px; animation: fade-up 0.9s var(--ease) 0.5s both; }
.dl-stage__star { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 14px; color: var(--muted); font-size: 0.875rem; }
.sheet .star--sheet { display: flex; justify-content: center; width: 100%; margin-top: 12px; min-height: 48px; opacity: 0; transform: translateY(16px); transition: opacity 0.4s ease, transform 0.6s var(--ease); }
.sheet.is-open .star--sheet { opacity: 1; transform: none; transition-delay: 0.32s; }
.foot__col .star { gap: 9px; margin-top: 6px; color: var(--ink); }
.foot__col .star:hover { color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  .star, .star::before, .star__icon svg, .star__count, .sheet .star--sheet { transition: none; }
  .star::before, .star__spark { display: none; }
  .star__icon svg, .star:hover .star__icon svg { animation: none; transform: none; }
  .hero__star { animation: none; }
}

/* ---------- 404: one bilingual page (src/404.html) ---------- */
.lost__main { display: grid; justify-items: center; gap: 12px; min-height: 72vh; padding: 72px 20px 96px; text-align: center; }
.lost__code { display: flex; align-items: center; justify-content: center; gap: 0.06em; margin: 0; font: 800 clamp(96px, 22vw, 200px)/1 var(--font-display); letter-spacing: -0.06em; color: var(--ink); }
.lost__zero { display: inline-grid; place-items: center; width: 0.8em; height: 0.8em; animation: lost-float 6s ease-in-out infinite; }
.lost__zero img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 18px 36px var(--accent-glow)); }
@keyframes lost-float { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-10px) rotate(4deg); } }
.lost__copy { display: grid; gap: 34px; max-width: 620px; }
.lost__title { margin: 10px 0 10px; font: 700 clamp(26px, 4vw, 38px)/1.15 var(--font-display); letter-spacing: -0.025em; }
.lost__copy section[lang="de"] { padding-top: 28px; border-top: 1px solid var(--line); color: var(--muted); }
.lost__title--de { font-size: 1.15rem; color: var(--ink); }
.lost__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }
@media (prefers-reduced-motion: reduce) { .lost__zero { animation: none; } }

/* the brand line in the h1: search engines and assistants read "AyCode" first, people see a quiet label */
.hero__kicker { display: block; margin: 0 auto 18px; color: var(--muted); font: 600 0.82rem/1.4 var(--font-mono); letter-spacing: 0.04em; text-transform: none; }
@media (max-width: 560px) { .hero__kicker { font-size: 0.74rem; } }

/* every feature tile leads to its own page; the whole tile is the link */
.tile__more { margin-top: auto; padding-top: 6px; color: var(--accent-ink); font-size: 0.88rem; font-weight: 600; text-decoration: none; }
.tile__more::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.tile__more span[aria-hidden] { display: inline-block; transition: transform 0.3s var(--ease); }
.tile:hover .tile__more span[aria-hidden] { transform: translateX(3px); }
.tile__more:focus-visible { outline: none; }
.tile:has(.tile__more:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.move .tile__more { margin-top: 4px; }
.features__all { margin-top: 26px; display: flex; justify-content: center; }

/* questions: one column of hairlines next to the heading */
.faq { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); padding-block: clamp(72px, 10vw, 128px); }
.faq__head { align-self: start; position: sticky; top: 110px; }
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; padding: 20px 40px 20px 0; color: var(--ink); font-weight: 600; font-size: 1.06rem; line-height: 1.4; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 9px; height: 9px; border-right: 1.6px solid var(--muted); border-bottom: 1.6px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq summary:hover { color: var(--accent-ink); }
.faq summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; }
.faq details p { margin: 0 0 22px; color: var(--muted); line-height: 1.65; max-width: 62ch; }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; } .faq__head { position: static; } }
@media (prefers-reduced-motion: reduce) { .faq summary::after, .tile__more span[aria-hidden] { transition: none; } }

/* ---------- moments: one Mac desktop that changes scene while the steps scroll past ---------- */
.scenes { padding-block: clamp(80px, 10vw, 128px) 40px; }
.scenes__body { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(28px, 5vw, 72px); margin-top: 48px; }
.scenes__sticky { position: sticky; top: 104px; align-self: start; }
.scenes__steps { list-style: none; margin: 0; padding: 0; }
.scene-step { display: grid; align-content: center; gap: 10px; min-height: 64vh; padding-block: 24px; transition: opacity 0.45s var(--ease); }
.scene-step:first-child { min-height: 46vh; align-content: start; padding-top: 12vh; }
.scene-step:last-child { min-height: 58vh; }
.scene-step__num { font: 600 0.75rem/1 var(--font-mono); letter-spacing: 0.14em; color: var(--faint); }
.scene-step h3 { font-size: 1.55rem; line-height: 1.15; letter-spacing: -0.025em; }
.scene-step p { color: var(--muted); line-height: 1.6; max-width: 40ch; }
.scene-step a { justify-self: start; color: var(--accent-ink); font-size: 0.9rem; font-weight: 600; text-decoration: none; }
.scene-step a:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 861px) { .js .scene-step:not(.is-active) { opacity: 0.32; } }
.scene-step.is-active .scene-step__num { color: var(--accent-ink); }

/* the stage: a desktop wallpaper, the menu bar with its notch, an editor, and one layer per scene */
.stage-screen {
  --wall: radial-gradient(70% 90% at 18% 10%, rgb(139 92 246 / 0.55), transparent 60%), radial-gradient(60% 80% at 92% 100%, rgb(236 79 139 / 0.32), transparent 62%), linear-gradient(160deg, #1a1530, #0c0b12);
  --glass: rgb(32 30 40 / 0.72);
  --glass-line: rgb(255 255 255 / 0.12);
  --glass-ink: #f4f1fb;
  --glass-muted: rgb(244 241 251 / 0.62);
  --win: #1e1e21;
  position: relative;
  container-type: inline-size;
  aspect-ratio: 16 / 11;
  border-radius: var(--radius-lg);
  overflow: hidden;
  isolation: isolate;
  box-shadow: var(--shadow), 0 0 90px -40px var(--accent-glow);
  color: var(--glass-ink);
  font-size: clamp(10px, 2.15cqw, 14px);
  line-height: 1.4;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .stage-screen {
    --wall: radial-gradient(70% 90% at 18% 10%, rgb(167 139 250 / 0.55), transparent 60%), radial-gradient(60% 80% at 92% 100%, rgb(244 114 182 / 0.3), transparent 62%), linear-gradient(160deg, #ece7fb, #f8f4ef);
    --glass: rgb(255 255 255 / 0.74);
    --glass-line: rgb(27 26 32 / 0.1);
    --glass-ink: #1b1a20;
    --glass-muted: rgb(27 26 32 / 0.6);
    --win: #ffffff;
  }
}
:root[data-theme="light"] .stage-screen {
  --wall: radial-gradient(70% 90% at 18% 10%, rgb(167 139 250 / 0.55), transparent 60%), radial-gradient(60% 80% at 92% 100%, rgb(244 114 182 / 0.3), transparent 62%), linear-gradient(160deg, #ece7fb, #f8f4ef);
  --glass: rgb(255 255 255 / 0.74);
  --glass-line: rgb(27 26 32 / 0.1);
  --glass-ink: #1b1a20;
  --glass-muted: rgb(27 26 32 / 0.6);
  --win: #ffffff;
}
.ss__wall { position: absolute; inset: 0; z-index: -2; background: var(--wall); }
.ss__menubar { position: absolute; inset: 0 0 auto; z-index: 3; display: flex; align-items: center; gap: 1.2em; height: 2.2em; padding-inline: 1.3em; background: rgb(0 0 0 / 0.22); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: #fff; font-weight: 600; font-size: 0.92em; }
.ss__apple svg { width: 1em; height: 1em; fill: currentColor; }
.ss__notch { position: absolute; left: 50%; top: 0; width: 17%; height: 100%; border-radius: 0 0 0.9em 0.9em; background: #000; transform: translateX(-50%); }
.ss__clock { margin-left: auto; font-variant-numeric: tabular-nums; }
.ss__editor { position: absolute; left: 7%; top: 13%; z-index: -1; display: grid; align-content: start; gap: 0.75em; width: 62%; height: 70%; padding: 2.6em 1.6em 1.4em; border-radius: 0.9em; background: var(--win); box-shadow: 0 1.4em 3em -1em rgb(0 0 0 / 0.45); opacity: 0.9; }
.ss__editor::before { content: ""; position: absolute; left: 1.1em; top: 1em; width: 3.4em; height: 0.7em; background: radial-gradient(circle at 0.35em 50%, #ff5f57 0.32em, transparent 0.34em), radial-gradient(circle at 1.7em 50%, #febc2e 0.32em, transparent 0.34em), radial-gradient(circle at 3.05em 50%, #28c840 0.32em, transparent 0.34em); }
.ss__editor .ln { display: block; height: 0.55em; border-radius: 99px; background: color-mix(in srgb, var(--glass-ink) 13%, transparent); }
.ss__editor .ln:nth-child(3n + 2) { margin-left: 1.6em; background: color-mix(in srgb, var(--accent) 30%, transparent); }
.ss__editor .w40 { width: 40%; } .ss__editor .w50 { width: 50%; } .ss__editor .w60 { width: 60%; } .ss__editor .w70 { width: 70%; }
.ss__editor .w75 { width: 75%; } .ss__editor .w80 { width: 80%; } .ss__editor .w85 { width: 85%; }

.sc { position: absolute; z-index: 2; opacity: 0; transform: translateY(1.4em) scale(0.97); transition: opacity 0.5s var(--ease), transform 0.7s var(--ease); pointer-events: none; }
.stage-screen[data-scene="1"] .sc--quick, .stage-screen[data-scene="2"] .sc--island, .stage-screen[data-scene="3"] .sc--vote,
.stage-screen[data-scene="4"] .sc--dict, .stage-screen[data-scene="5"] .sc--usage { opacity: 1; transform: none; }
.sc img { border-radius: 0.3em; }
.sc .ayling { flex: none; width: 1.8em; height: 1.8em; }

/* 1 · quick chat: a glass box floats in over whatever is open */
.sc--quick { left: 17%; top: 27%; width: 66%; display: grid; gap: 0.9em; padding: 1.1em 1.2em; border-radius: 1.2em; background: var(--glass); border: 1px solid var(--glass-line); -webkit-backdrop-filter: blur(22px) saturate(1.6); backdrop-filter: blur(22px) saturate(1.6); box-shadow: 0 1.6em 3.4em -1.2em rgb(0 0 0 / 0.5); }
.scq__field { display: flex; align-items: center; gap: 0.7em; font-weight: 600; font-size: 1.08em; }
.scq__mark img { width: 1.35em; height: 1.35em; }
.scq__a { color: var(--glass-muted); padding-left: 2.05em; }
.scq__bar { display: flex; align-items: center; justify-content: space-between; gap: 1em; padding-top: 0.8em; border-top: 1px solid var(--glass-line); color: var(--glass-muted); font-size: 0.86em; }
.scq__chip { display: inline-flex; align-items: center; gap: 0.45em; padding: 0.25em 0.65em; border-radius: 99px; border: 1px solid var(--glass-line); }
.scq__chip img { width: 1.05em; height: 1.05em; }
.scq__keys b { margin-left: 1em; font-weight: 600; color: var(--glass-ink); }

/* 2 · the Island grows out of the notch */
.sc--island { left: 22%; top: 0; width: 56%; padding: 2.7em 1.1em 1em; border-radius: 0 0 1.5em 1.5em; background: #000; color: #f4f1fb; transform-origin: 50% 0; transform: scale(0.32, 0.14); box-shadow: 0 1.4em 3em -1em rgb(0 0 0 / 0.6); }
.sci__head { margin-bottom: 0.5em; color: rgb(244 241 251 / 0.55); font: 600 0.8em/1 var(--font-mono); letter-spacing: 0.06em; }
.sci__rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.15em; }
.sci__rows li { display: flex; align-items: center; gap: 0.75em; padding: 0.5em 0.45em; border-radius: 0.7em; }
.sci__rows li > span { display: grid; flex: 1; min-width: 0; }
.sci__rows b { overflow: hidden; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.sci__rows small { color: rgb(244 241 251 / 0.55); font-size: 0.82em; }
.sci__rows img { width: 1.1em; height: 1.1em; }
.sci__rows .is-wait { background: rgb(139 92 246 / 0.22); }
.sci__rows .is-wait small { color: #c4b5fd; }

/* 3 · the council votes */
.sc--vote { left: 12%; top: 14%; width: 76%; display: grid; gap: 0.8em; padding: 1.1em; border-radius: 1.1em; background: var(--win); border: 1px solid var(--glass-line); box-shadow: 0 1.6em 3.4em -1.2em rgb(0 0 0 / 0.5); }
.scv__q { justify-self: end; max-width: 80%; padding: 0.55em 0.9em; border-radius: 1em 1em 0.3em 1em; background: var(--accent); color: #fff; font-weight: 500; }
.scv__msgs { display: grid; gap: 0.55em; }
.scv__msg { display: flex; align-items: flex-start; gap: 0.65em; }
.scv__msg > span { display: grid; gap: 0.1em; color: var(--glass-muted); }
.scv__msg b { color: var(--glass-ink); font-size: 0.86em; font-weight: 600; }
.scv__verdict { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5em 0.9em; padding: 0.7em 0.9em; border-radius: 0.8em; background: color-mix(in srgb, var(--accent) 16%, transparent); }
.scv__verdict small { color: var(--glass-muted); font-variant-numeric: tabular-nums; }
.scv__tally { display: inline-flex; gap: 0.3em; }
.scv__tally i { width: 0.7em; height: 0.7em; border-radius: 50%; border: 1.5px solid var(--glass-muted); }
.scv__tally .is-for { border-color: var(--accent-bar); background: var(--accent-bar); }
.sc--vote .scv__msg, .sc--vote .scv__verdict { opacity: 0; transform: translateY(0.8em); transition: opacity 0.4s var(--ease), transform 0.5s var(--ease); }
.stage-screen[data-scene="3"] .sc--vote .scv__msg, .stage-screen[data-scene="3"] .sc--vote .scv__verdict { opacity: 1; transform: none; }
.stage-screen[data-scene="3"] .scv__msg:nth-child(1) { transition-delay: 0.25s; }
.stage-screen[data-scene="3"] .scv__msg:nth-child(2) { transition-delay: 0.45s; }
.stage-screen[data-scene="3"] .scv__msg:nth-child(3) { transition-delay: 0.65s; }
.stage-screen[data-scene="3"] .scv__verdict { transition-delay: 0.95s; }

/* 4 · dictation: text lands in a mail, the pill listens at the bottom */
.sc--dict { inset: 0; }
.scd__mail { position: absolute; left: 16%; top: 17%; width: 68%; padding: 1.2em 1.4em 1.6em; border-radius: 1em; background: var(--win); border: 1px solid var(--glass-line); box-shadow: 0 1.6em 3.4em -1.2em rgb(0 0 0 / 0.5); }
.scd__to { padding-bottom: 0.7em; margin-bottom: 0.8em; border-bottom: 1px solid var(--glass-line); color: var(--glass-muted); font-size: 0.88em; }
.scd__text { font-size: 1.05em; }
.scd__caret { display: inline-block; width: 2px; height: 1.1em; margin-left: 2px; vertical-align: -0.18em; background: var(--accent-bar); animation: blink 1.1s steps(1, end) infinite; }
.scd__pill { position: absolute; left: 50%; bottom: 8%; display: flex; align-items: center; gap: 0.8em; padding: 0.55em 1em 0.55em 0.55em; border-radius: 99px; background: #000; color: #fff; transform: translateX(-50%); box-shadow: 0 1em 2.4em -0.8em rgb(0 0 0 / 0.6); }
.scd__key { display: grid; place-items: center; width: 1.9em; height: 1.9em; border-radius: 50%; background: var(--accent); font-weight: 700; }
.scd__wave { display: flex; align-items: center; gap: 0.22em; height: 1.6em; }
.scd__wave i { width: 0.22em; height: 100%; border-radius: 99px; background: #c4b5fd; transform: scaleY(0.3); }
.stage-screen[data-scene="4"] .scd__wave i { animation: wave 0.9s ease-in-out infinite alternate; }
.scd__wave i:nth-child(3n) { animation-delay: -0.3s; } .scd__wave i:nth-child(3n + 1) { animation-delay: -0.6s; } .scd__wave i:nth-child(4n) { animation-duration: 0.7s; }
.scd__time { font: 600 0.82em/1 var(--font-mono); color: rgb(255 255 255 / 0.7); font-variant-numeric: tabular-nums; }
@keyframes wave { from { transform: scaleY(0.25); } to { transform: scaleY(1); } }

/* 5 · limits: the bars fill to where each window stands */
.sc--usage { right: 6%; top: 14%; width: 58%; display: grid; gap: 0.7em; padding: 1.2em 1.3em; border-radius: 1.1em; background: var(--glass); border: 1px solid var(--glass-line); -webkit-backdrop-filter: blur(22px) saturate(1.6); backdrop-filter: blur(22px) saturate(1.6); box-shadow: 0 1.6em 3.4em -1.2em rgb(0 0 0 / 0.5); }
.scu__title { font-weight: 700; font-size: 1.05em; }
.scu__row { display: grid; grid-template-columns: 1fr auto; gap: 0.35em 0.8em; align-items: center; }
.scu__name { display: inline-flex; align-items: center; gap: 0.5em; color: var(--glass-muted); font-size: 0.9em; }
.scu__name img { width: 1.05em; height: 1.05em; }
.scu__val { font: 600 0.86em/1 var(--font-mono); font-variant-numeric: tabular-nums; }
.scu__bar { grid-column: 1 / -1; grid-row: 2; height: 0.45em; border-radius: 99px; overflow: hidden; background: color-mix(in srgb, var(--glass-ink) 12%, transparent); }
.scu__fill { display: block; height: 100%; border-radius: inherit; background: var(--accent-bar); transform-origin: 0 50%; transform: scaleX(0); transition: transform 1.1s var(--ease) 0.25s; }
.stage-screen[data-scene="5"] .scu__fill--a { transform: scaleX(0.64); }
.stage-screen[data-scene="5"] .scu__fill--b { transform: scaleX(0.31); transition-delay: 0.4s; }
.stage-screen[data-scene="5"] .scu__fill--c { transform: scaleX(0.48); transition-delay: 0.55s; }
.scu__reset { color: var(--glass-muted); font-size: 0.82em; }
.scu__plans { display: grid; gap: 0.15em; padding-top: 0.7em; border-top: 1px solid var(--glass-line); }
.scu__plans span, .scu__plans small { color: var(--glass-muted); font-size: 0.82em; }

@media (max-width: 860px) {
  .scenes__body { grid-template-columns: 1fr; gap: 0; margin-top: 32px; }
  .scenes__sticky { top: 76px; z-index: 2; padding-bottom: 12px; background: linear-gradient(var(--bg) 88%, transparent); }
  .scene-step, .scene-step:first-child, .scene-step:last-child { min-height: 36svh; align-content: start; padding-top: 20px; }
  .scene-step:last-child { min-height: 60svh; }
}
@media (prefers-reduced-motion: reduce) {
  .sc, .sc--vote .scv__msg, .sc--vote .scv__verdict, .scu__fill, .scene-step { transition: none; }
  .stage-screen .scd__wave i { animation: none; transform: scaleY(0.6); }
  .scd__caret { animation: none; }
}

/* ---------- short films: a coverflow row, the one in the middle faces you ---------- */
.spots { padding-block: clamp(80px, 10vw, 120px) 24px; overflow: hidden; }
.spots__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.spots__nav { display: flex; gap: 8px; flex: none; }
.spots__nav .icon-btn { width: 44px; height: 44px; border-radius: 50%; }
.spots__nav .icon-btn:disabled { opacity: 0.35; cursor: default; }
.spots__track {
  --card: min(720px, 82vw);
  list-style: none;
  margin: 40px 0 0;
  padding: 10px calc((100vw - var(--card)) / 2) 24px;
  display: flex;
  gap: clamp(16px, 3vw, 36px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  perspective: 1600px;
}
.spots__track::-webkit-scrollbar { display: none; }
.spot { flex: 0 0 var(--card); scroll-snap-align: center; display: grid; gap: 16px; }
.spot__frame { position: relative; margin: 0; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; background: #000; box-shadow: var(--shadow); transform-origin: 50% 50%; will-change: transform; }
.spot.is-center .spot__frame { box-shadow: var(--shadow), 0 0 80px -30px var(--accent-glow); }
.spot video { width: 100%; height: 100%; object-fit: cover; }
.spot__play { position: absolute; inset: 0; display: grid; place-items: center; width: 100%; border: 0; background: linear-gradient(to top, rgb(10 8 18 / 0.45), transparent 55%); color: #fff; cursor: pointer; }
.spot__play svg { box-sizing: content-box; width: 26px; height: 26px; padding: 20px 19px 20px 23px; border-radius: 50%; fill: #fff; background: rgb(139 92 246 / 0.9); box-shadow: 0 0 0 8px rgb(139 92 246 / 0.22), 0 18px 50px -10px var(--accent-glow); transition: transform 0.26s var(--ease); }
.spot__play:hover svg, .spot__play:focus-visible svg { transform: scale(1.08); }
.spot__copy { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding-inline: 4px; transition: opacity 0.4s var(--ease); }
.spot__copy h3 { display: flex; align-items: baseline; gap: 10px; font-size: 1.2rem; letter-spacing: -0.02em; }
.spot__num { font: 600 0.75rem/1 var(--font-mono); color: var(--accent-ink); letter-spacing: 0.1em; }
.spot__copy p { grid-column: 1; color: var(--muted); max-width: 56ch; }
.spot__len { grid-column: 2; grid-row: 1; color: var(--faint); font: 500 0.8rem/1.6 var(--font-mono); font-variant-numeric: tabular-nums; }
.js .spot:not(.is-center) .spot__copy { opacity: 0.35; }
@media (max-width: 640px) {
  .spots__head { display: block; }
  .spots__nav { margin-top: 18px; }
  .spot__copy { grid-template-columns: 1fr; }
  .spot__len { grid-column: 1; grid-row: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .spot__copy, .spot__play svg { transition: none; }
}

/* ---------- what the community wants: the top ideas as plain rows, votes first ---------- */
.ideas { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); padding-block: clamp(72px, 10vw, 120px) 0; }
.ideas:not(.has-ideas) { grid-template-columns: minmax(0, 1fr); }
.ideas__actions { margin-top: 26px; }
.ideas__list { list-style: none; margin: 0; padding: 0; align-self: start; border-top: 1px solid var(--line); }
.idea { border-bottom: 1px solid var(--line); }
.idea a { display: grid; grid-template-columns: 3.4rem minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 16px 4px; color: var(--ink); text-decoration: none; }
.idea a:hover .idea__title { color: var(--accent-ink); }
.idea a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.idea__votes { display: grid; justify-items: start; line-height: 1.1; }
.idea__votes b { font: 600 1.25rem/1.1 var(--font-mono); font-variant-numeric: tabular-nums; }
.idea__votes small { color: var(--faint); font-size: 0.72rem; }
.idea__title { font-weight: 600; line-height: 1.4; }
.idea__status { padding: 4px 10px; border-radius: 99px; border: 1px solid var(--line-2); color: var(--muted); font-size: 0.78rem; white-space: nowrap; }
.idea__status--planned, .idea__status--progress { border-color: color-mix(in srgb, var(--accent) 45%, transparent); color: var(--accent-ink); }
.idea__status--done { border-color: color-mix(in srgb, var(--done) 45%, transparent); color: color-mix(in srgb, var(--done) 75%, var(--ink)); }
@media (max-width: 860px) {
  .ideas { grid-template-columns: 1fr; }
  .idea a { grid-template-columns: 2.8rem minmax(0, 1fr); }
  .idea__status { grid-column: 2; justify-self: start; }
}

/* AyCode Radar: the post list (start page and /blog/) and the kind pills. A rumor gets a dashed edge instead
   of a second colour, so the page keeps its one accent. */
.radar-home { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); padding-block: clamp(72px, 10vw, 120px) 0; }
.radar-home__lead { margin-top: 16px; color: var(--muted); line-height: 1.6; }
.radar-home__all { grid-column: 2; margin-top: 4px; }
.radar-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.radar-row { border-bottom: 1px solid var(--line); }
.radar-row a { display: grid; grid-template-columns: 104px 92px max-content minmax(0, 1fr) 20px; align-items: center; gap: 8px 16px; padding: 16px 4px; color: inherit; text-decoration: none; }
.radar-row__shot { width: 104px; height: 55px; object-fit: cover; border-radius: 12px; background: var(--panel); }
.radar-row time { color: var(--muted); font: 500 0.8rem/1.4 var(--font-mono); white-space: nowrap; }
.radar-row__text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.radar-row__text h2, .radar-row__text h3 { margin: 0; color: var(--ink); font: 680 clamp(1.08rem, 0.98rem + 0.5vw, 1.32rem)/1.3 var(--font-display); letter-spacing: -0.015em; text-wrap: balance; }
.radar-row__text span { color: var(--muted); font-size: 0.95rem; line-height: 1.5; }
.radar-row__go { color: var(--faint); transition: transform 0.35s var(--ease); }
.radar-row__text { transition: transform 0.35s var(--ease); }
.radar-row a:hover { background: linear-gradient(90deg, var(--accent-soft), transparent 70%); }
.radar-row a:hover .radar-row__text { transform: translateX(6px); }
.radar-row a:hover h2, .radar-row a:hover h3 { color: var(--accent-ink); }
.radar-row a:hover .radar-row__go { color: var(--accent-ink); transform: translateX(4px); }
.radar-row .radar-kind { justify-self: start; }
.radar-kind { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 99px; border: 1px solid var(--line-2); color: var(--ink-2); font: 600 0.72rem/1 var(--font-mono); letter-spacing: 0.05em; text-transform: uppercase; white-space: nowrap; }
.radar-kind--news { border-color: transparent; background: var(--accent-soft); color: var(--accent-ink); }
.radar-kind--rumor { border-style: dashed; border-color: var(--muted); }
.radar-kind__flag { color: var(--muted); font-weight: 500; letter-spacing: 0.02em; text-transform: none; }
/* the rows share the list's columns, so every title starts where the widest pill ends */
@media (min-width: 861px) {
  .radar-list { display: grid; grid-template-columns: 104px 92px max-content minmax(0, 1fr) 20px; column-gap: 16px; }
  .radar-row, .radar-row a { display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; }
}
@media (max-width: 860px) {
  .radar-home { grid-template-columns: 1fr; }
  .radar-home__all { grid-column: 1; }
  .radar-row a { grid-template-columns: 88px auto minmax(0, 1fr); align-items: start; }
  .radar-row__shot { grid-row: span 2; width: 88px; height: 46px; }
  /* the pill takes the line under the date, so a long German rumor flag stays on screen */
  .radar-row .radar-kind { grid-column: 2 / -1; }
  .radar-row__text { grid-column: 1 / -1; }
  .radar-row__go { display: none; }
}
@media (prefers-reduced-motion: reduce) { .radar-row__text, .radar-row__go { transition: none; } .radar-row a:hover .radar-row__text, .radar-row a:hover .radar-row__go { transform: none; } }

/* hub positions, generated by build.mjs from HUB */
.hub__layer--wide .hub__at-0 { left: 19.60%; top: 10.87%; }
.hub__layer--wide .hub__at-1 { left: 19.60%; top: 26.52%; }
.hub__layer--wide .hub__at-2 { left: 19.60%; top: 42.17%; }
.hub__layer--wide .hub__at-3 { left: 19.60%; top: 57.83%; }
.hub__layer--wide .hub__at-4 { left: 19.60%; top: 73.48%; }
.hub__layer--wide .hub__at-5 { left: 19.60%; top: 89.13%; }
.hub__layer--wide .hub__at-6 { left: 80.40%; top: 20.00%; }
.hub__layer--wide .hub__at-7 { left: 80.40%; top: 40.00%; }
.hub__layer--wide .hub__at-8 { left: 80.40%; top: 60.00%; }
.hub__layer--wide .hub__at-9 { left: 80.40%; top: 80.00%; }
.hub__layer--wide .hub__core { left: 50.00%; top: 50.00%; }
.hub__layer--tall .hub__at-0 { left: 25.56%; top: 4.47%; }
.hub__layer--tall .hub__at-1 { left: 74.44%; top: 4.47%; }
.hub__layer--tall .hub__at-2 { left: 25.56%; top: 12.63%; }
.hub__layer--tall .hub__at-3 { left: 74.44%; top: 12.63%; }
.hub__layer--tall .hub__at-4 { left: 25.56%; top: 20.79%; }
.hub__layer--tall .hub__at-5 { left: 74.44%; top: 20.79%; }
.hub__layer--tall .hub__at-6 { left: 25.56%; top: 87.11%; }
.hub__layer--tall .hub__at-7 { left: 74.44%; top: 87.11%; }
.hub__layer--tall .hub__at-8 { left: 25.56%; top: 95.26%; }
.hub__layer--tall .hub__at-9 { left: 74.44%; top: 95.26%; }
.hub__layer--tall .hub__core { left: 50.00%; top: 52.63%; }
/* ---------- the download area: tickets printed on the look's paper ----------
 * A layer over site.css (build.mjs puts it after the old stylesheet and before look.css, so it
 * wins over the old rules by order and the look keeps the last word).
 * Each desktop download is a paper ticket, perforated into the part you act on (system,
 * button) and the stub you keep (file, version, a note). The visitor's system gets a strip of
 * tape and a violet stamp; phones see their own slips first and can send the link on to their
 * computer. Three steps follow on a pencil line. The tickets and steps arrive with the shared
 * building blocks (data-reveal in index.html; look.css and chrome.mjs drive them); what moves
 * here on its own runs at 10 frames a second like the rest of the look, and "reduce motion"
 * leaves every ticket printed and still.
 */
.download {
  --t-r: 11px;            /* the notch where the ticket tears */
  --t-hole: 1.7px;        /* the perforation's holes */
  --t-pitch: 8px;
  --t-radius: 16px;
  --t-stub: color-mix(in oklab, var(--look-paper) 88%, #b9a3fc);
}

/* paper stays light in both themes, so a ticket carries the light theme's ink with it */
.ticket {
  color-scheme: light;
  --ink: #1c1820;
  --ink-2: #3d3644;
  --muted: #5a5262;
  --faint: #6b6372;
  --line: rgb(40 30 44 / 0.12);
  --line-2: rgb(40 30 44 / 0.22);
  --panel: transparent;
  --panel-2: rgb(40 30 44 / 0.05);
  --accent: #7c3aed;
  --accent-ink: #6b2fd6;
  --accent-soft: rgb(124 58 237 / 0.1);
  --accent-glow: rgb(124 58 237 / 0.32);
  --on-accent: #fff;
  --t-cut: #0000 var(--t-r), #000 calc(var(--t-r) + 0.6px);
  --t-punch: #0000 var(--t-hole), #000 calc(var(--t-hole) + 0.6px);
  /* the top half loses a quarter circle at each lower corner and half of every hole; the stub the rest */
  --t-mask-main: radial-gradient(circle at 0 100%, var(--t-cut)), radial-gradient(circle at 100% 100%, var(--t-cut)), radial-gradient(circle at 50% 100%, var(--t-punch)) 50% 0 / var(--t-pitch) 100% repeat-x;
  --t-mask-stub: radial-gradient(circle at 0 0, var(--t-cut)), radial-gradient(circle at 100% 0, var(--t-cut)), radial-gradient(circle at 50% 0, var(--t-punch)) 50% 0 / var(--t-pitch) 100% repeat-x;
  color: var(--ink);
}

/* ---------- the stage: the order changes for phones, the head stays first ---------- */
.dl-stage { display: flex; flex-direction: column; }
.dl-stage > .platforms { order: 1; margin-top: 46px; }
.dl-stage > .dl-share { order: 2; }
.dl-stage > .soon { order: 3; margin-top: 22px; }
.dl-stage > .steps-wrap { order: 4; }
.download:is([data-yours="ios"], [data-yours="android"]) .dl-stage > .soon { order: 1; margin-top: 34px; }
.download:is([data-yours="ios"], [data-yours="android"]) .dl-stage > .platforms { order: 3; margin-top: 26px; }
.download[data-yours="android"] .soon > [data-plat="android"] { order: -1; }

/* the version chip points at what changed */
.version-chip { flex-wrap: wrap; row-gap: 6px; }
/* the star Ayling stands on the chip (look.css) and reaches about 34px up, so the chip leaves it that air under the lead */
.download .version-chip { margin-top: 42px; }
.version-chip__news {
  margin-left: 4px; padding-left: 11px; border-left: 1px solid var(--line-2);
  color: var(--look-acc-ink); font: italic 420 0.98rem/1 var(--font-serif); letter-spacing: 0;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 24; text-decoration: none; white-space: nowrap;
}
.version-chip__news::after { content: "\2009\2192"; font-style: normal; }
.version-chip__news:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }

/* ---------- three tickets ---------- */
.platforms { grid-template-rows: auto auto; gap: 26px 22px; align-items: stretch; }
.plat--main.ticket {
  display: grid; grid-row: span 2; grid-template-rows: subgrid; row-gap: 0;
  gap: 0; padding: 0; border: 0; border-radius: var(--t-radius); overflow: visible;
  background: none; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none;
  filter: drop-shadow(0 1px 1px rgb(4 2 10 / 0.18)) drop-shadow(var(--look-print));
  transition: translate 0.4s steps(4), filter 0.4s steps(4);
}
.plat.ticket::before, .plat.ticket::after { content: none; }
.plat--main.ticket.is-yours { box-shadow: none; translate: 0 -6px; filter: drop-shadow(0 1px 1px rgb(4 2 10 / 0.18)) drop-shadow(0 30px 46px var(--accent-glow)); }

.ticket__main, .ticket__stub { position: relative; min-width: 0; }
.ticket__main {
  display: flex; flex-direction: column; gap: 12px; padding: 22px 26px 28px; overflow: hidden;
  border-radius: var(--t-radius) var(--t-radius) 0 0;
  background: linear-gradient(172deg, color-mix(in oklab, var(--look-paper) 94%, #fff) 0%, var(--look-paper) 55%, color-mix(in oklab, var(--look-paper) 96%, #4a3a6e) 100%);
  -webkit-mask: var(--t-mask-main); -webkit-mask-composite: source-in;
  mask: var(--t-mask-main); mask-composite: intersect;
}
.ticket__stub {
  display: flex; flex-direction: column; gap: 12px; padding: 20px 26px 22px;
  border-radius: 0 0 var(--t-radius) var(--t-radius);
  background: linear-gradient(180deg, color-mix(in oklab, var(--t-stub) 94%, #4a3a6e), var(--t-stub) 30%);
  -webkit-mask: var(--t-mask-stub); -webkit-mask-composite: source-in;
  mask: var(--t-mask-stub); mask-composite: intersect;
}
.ticket__main > *, .ticket__stub > * { position: relative; z-index: 1; }
/* the pointer's light falls on the paper (main.js sets --mx/--my on the ticket) */
.ticket__main::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%), rgb(124 58 237 / 0.12), transparent 62%);
  opacity: 0; transition: opacity 0.3s steps(3);
}
.ticket:hover .ticket__main::before { opacity: 1; }

.ticket__no { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); color: var(--faint); font: 500 0.68rem/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; }
.ticket__no span:first-child { color: var(--accent-ink); font: italic 420 1.25rem/1 var(--font-serif); letter-spacing: 0; text-transform: none; font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 36; }
.ticket .plat__head { gap: 12px; margin-top: 4px; }
.plat--main.ticket .plat__head h3 { font: 560 1.95rem/1 var(--font-serif); letter-spacing: -0.03em; font-variation-settings: "SOFT" 50, "WONK" 0, "opsz" 144; }
.ticket .plat__icon { width: 38px; height: 38px; border-radius: 10px; }
.ticket .plat__req { color: var(--muted); font-size: 0.9rem; line-height: 1.45; }
.ticket__main > .plat__glyph {
  position: absolute; z-index: 0; right: -30px; bottom: -42px; width: 190px; height: 190px;
  opacity: 0.07; rotate: -12deg; pointer-events: none; transition: rotate 0.6s steps(6), opacity 0.3s steps(3);
}
.ticket .plat__glyph svg { fill: var(--accent-ink); }
.plat--main.ticket:hover .plat__glyph { transform: none; rotate: -5deg; opacity: 0.1; }

.ticket .plat__actions { display: grid; gap: 10px; margin-top: auto; padding-top: 6px; }
.ticket .dl-glow { display: flex; }
.ticket .dl-glow::before { opacity: 0.38; }
.ticket .btn--dl { flex: 1; justify-content: flex-start; min-width: 0; white-space: nowrap; }
.ticket .btn--dl .btn__size { margin-left: auto; padding-left: 8px; font: 500 0.78rem/1 var(--font-mono); }
.ticket .plat__actions .btn--ghost {
  justify-self: start; min-height: 36px; padding: 7px 13px; border-radius: 10px; border-style: dashed;
  background: transparent; font-size: 0.85rem; white-space: nowrap;
}
.ticket .plat__actions .btn--ghost:hover { border-color: var(--accent-ink); color: var(--accent-ink); }

/* the stub: the file you get and its version, in the printer's type */
.ticket__rows { display: grid; gap: 10px; margin: 0; }
.ticket__rows > div { display: grid; gap: 3px; min-width: 0; }
.ticket__rows dt { color: var(--faint); font: 500 0.64rem/1.2 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; }
.ticket__rows dd { margin: 0; min-width: 0; color: var(--ink); font: 500 0.8rem/1.35 var(--font-mono); font-variant-numeric: tabular-nums; }
.ticket .plat__file { display: block; align-self: auto; max-width: none; padding: 0; border: 0; border-radius: 0; background: none; color: var(--ink); font: inherit; }
.ticket .plat__file span { display: block; overflow: visible; white-space: normal; text-overflow: clip; overflow-wrap: anywhere; }
.ticket .plat__note { margin-top: auto; padding-top: 2px; border-top: 0; color: var(--muted); font-size: 0.8rem; line-height: 1.5; }

/* the visitor's system: tape across the top and a violet stamp, both after the print is out */
.plat--main.ticket > .plat__ring {
  inset: -15px auto auto 50%; z-index: 3; display: none; width: 124px; height: 38px; padding: 0; overflow: visible;
  translate: -50% 0; rotate: -3deg; border-radius: 0; pointer-events: none;
  background: url("/assets/look/klebeband-a.webp") center / 100% 100% no-repeat;
  -webkit-mask: none; mask: none; opacity: 0.95;
}
.plat--main.ticket > .plat__ring::before { content: none; }
.plat--main.ticket.is-yours > .plat__ring { display: block; }
.plat.ticket > .plat__yours {
  z-index: 3; padding: 7px 10px 6px;
  border: 2px solid currentColor; border-radius: 7px; background: none; color: #6b2fd6;
  font: 700 0.7rem/1 var(--font-mono); letter-spacing: 0.16em; rotate: -8deg; mix-blend-mode: multiply;
  -webkit-mask: url("/assets/look/druck.png") 0 0 / 150px 150px; mask: url("/assets/look/druck.png") 0 0 / 150px 150px;
}

/* the stamp lands next to the system's name, where it reads first */
.plat.plat--main.ticket > .plat__yours { top: 74px; right: 20px; left: auto; }

/* ---------- motion: the tickets come out of the printer, then the stamp and the tape go on ----------
 * The arrival is the shared one (data-reveal="print" in a data-reveal-group): one ticket after another, ten frames
 * each, hidden while it waits only when motion is welcome. The stamp and the tape are the ticket's own and follow
 * once its print is out, in the same order (--reveal-i). Without the shared blocks everything simply stands. */
@media (prefers-reduced-motion: no-preference) {
  .ticket.is-in > .plat__yours { animation: dl-stamp 0.5s steps(5) calc(var(--reveal-i, 0) * 100ms + 1s) both; }
  .ticket.is-in > .plat__ring { animation: dl-tape 0.4s steps(4) calc(var(--reveal-i, 0) * 100ms + 1.45s) both; }
}
@keyframes dl-print { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes dl-stamp { 0% { opacity: 0; scale: 1.9; } 60% { opacity: 1; scale: 0.93; } 100% { opacity: 1; scale: 1; } }
@keyframes dl-tape { from { opacity: 0; scale: 1.25; } to { opacity: 0.95; scale: 1; } }

/* ---------- the phone slips ---------- */
.soon { gap: 18px; }
.plat--soon.ticket--small { display: block; padding: 0; border: 0; border-radius: 12px; background: none; filter: drop-shadow(0 1px 1px rgb(4 2 10 / 0.16)) drop-shadow(0 16px 24px rgb(4 2 10 / 0.28)); }
.ticket--small .ticket__main {
  flex-direction: row; align-items: center; gap: 14px; padding: 16px 22px; border-radius: 12px;
  --t-mask-main: radial-gradient(circle at 0 50%, #0000 8px, #000 8.6px), radial-gradient(circle at 100% 50%, #0000 8px, #000 8.6px);
}
.ticket--small .ticket__main > div { min-width: 0; }
.ticket--small h3 { font-size: 1rem; letter-spacing: -0.01em; }
.ticket--small .plat__req { font-size: 0.82rem; }
.ticket--small .btn--ghost { margin-top: 8px; min-height: 38px; padding: 8px 14px; font-size: 0.875rem; background: transparent; border-style: dashed; }
.ticket--small .tag { align-self: flex-start; border-color: var(--line-2); color: var(--muted); }
.plat.plat--soon.ticket--small > .plat__yours {
  top: -11px; right: auto; left: 18px; padding: 5px 8px 4px; border: 0; border-radius: 4px;
  background: #6b2fd6; color: #fff; rotate: -2deg; mix-blend-mode: normal; font-size: 0.62rem;
  -webkit-mask: none; mask: none;
}
.plat--soon.ticket--small.is-yours { filter: drop-shadow(0 1px 1px rgb(4 2 10 / 0.16)) drop-shadow(0 18px 30px var(--accent-glow)); }
@media (min-width: 961px) { .soon { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* a phone can't run AyCode: it can hand the link to the computer */
.dl-share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 22px; color: var(--ink-2); font: italic 400 1.05rem/1.35 var(--font-serif); font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 24; }
.dl-share[hidden] { display: none; }
.dl-share .btn { font-style: normal; }

/* ---------- three steps on a pencil line ---------- */
.steps-wrap { --g: 28px; position: relative; margin-top: 54px; }
.steps__line {
  position: absolute; z-index: 0; left: 26px; top: 6px; width: calc((200% + 2 * var(--g)) / 3); height: 40px;
  overflow: visible; fill: none; stroke: var(--look-ember); stroke-width: 1.6; stroke-linecap: round; opacity: 0.75; pointer-events: none;
}
.steps__line path { vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 0; }
/* the line is pencilled in once the first step arrives; it waits only while the shared reveal holds the steps */
@media (prefers-reduced-motion: no-preference) {
  :root.has-reveal .steps-wrap:has(.step.is-waiting):not(:has(.step.is-in)) .steps__line path { stroke-dashoffset: 1; }
  .steps-wrap:has(.step.is-in) .steps__line path { animation: dl-ink 1.2s steps(12) 0.3s both; }
}
@keyframes dl-ink { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.steps-wrap .steps { position: relative; z-index: 1; margin: 0; gap: var(--g); }
.steps-wrap .step { flex-direction: column; gap: 14px; padding: 0; border: 0; border-radius: 0; }
.steps-wrap .step h3 { font: 600 1.02rem/1.25 var(--font-ui); letter-spacing: -0.01em; }
.steps-wrap .step p { max-width: 34ch; }
.steps-wrap .step__num {
  position: relative; width: 52px; height: 52px; background: var(--look-paper); color: #6b2fd6;
  font: italic 440 1.55rem/1 var(--font-serif); font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 72;
  box-shadow: 0 1px 1px rgb(4 2 10 / 0.2), 0 10px 18px -6px rgb(4 2 10 / 0.45);
}
/* after a click: the first step is ticked off in ember, the second is up next */
.step.is-ticked .step__num { color: transparent; }
.step.is-ticked .step__num::after {
  content: ""; position: absolute; left: 50%; top: 46%; width: 18px; height: 9px; translate: -50% -50%; rotate: -45deg;
  border-left: 2.5px solid var(--look-ember); border-bottom: 2.5px solid var(--look-ember);
  animation: dl-tick 0.3s steps(3) both;
}
@keyframes dl-tick { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.step.is-next .step__num { outline: 2px solid var(--accent-bar); outline-offset: 4px; animation: dl-next 1.6s steps(8) infinite alternate; }
@keyframes dl-next { from { outline-offset: 4px; } to { outline-offset: 8px; } }
.step.is-next h3 { color: var(--accent-ink); }

/* ---------- checksums: the line, and how to check one yourself ---------- */
.download .sums { display: block; margin-top: 26px; line-height: 1.6; }
.download .sums svg { display: inline; margin-right: 6px; vertical-align: -2px; }
.verify { margin-top: 8px; color: var(--muted); font-size: 0.875rem; }
.verify > summary {
  display: inline-flex; align-items: center; gap: 9px; padding: 6px 0; list-style: none; cursor: pointer;
  color: var(--ink-2); text-decoration: underline dotted; text-decoration-color: var(--line-2); text-underline-offset: 4px;
}
.verify > summary::-webkit-details-marker { display: none; }
.verify > summary::before { content: ""; width: 6px; height: 6px; margin-left: 4px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; rotate: -45deg; transition: rotate 0.2s steps(2); }
.verify[open] > summary::before { rotate: 45deg; }
.verify > summary:hover { color: var(--ink); }
.verify__body { display: grid; gap: 14px; max-width: 820px; padding: 10px 0 6px; }
.verify[open] .verify__body { animation: dl-print 0.4s steps(4) both; }
.verify__list { display: grid; gap: 10px; margin: 0; }
.verify__list > div { display: grid; grid-template-columns: 11rem minmax(0, 1fr); align-items: center; gap: 6px 14px; }
.verify__list dt { color: var(--faint); font: 500 0.72rem/1.3 var(--font-mono); letter-spacing: 0.04em; }
.verify__list dd { display: flex; align-items: center; gap: 8px; min-width: 0; margin: 0; }
.verify__list code {
  flex: 1; min-width: 0; overflow-x: auto; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel) 70%, transparent); color: var(--ink); white-space: nowrap; scrollbar-width: thin;
  font: 500 0.78rem/1.4 var(--font-mono);
}
.verify__copy {
  flex: none; min-height: 36px; padding: 6px 12px; border-radius: 9px; border: 1px solid var(--line-2); background: transparent;
  color: var(--ink-2); font: 600 0.8rem/1 var(--font-ui); cursor: pointer;
}
.verify__copy:hover { border-color: var(--accent-bar); color: var(--ink); }
.verify__copy.is-copied { border-color: color-mix(in srgb, var(--done) 60%, transparent); color: var(--done); }
.verify__copy[hidden] { display: none; }

/* ---------- smaller screens ---------- */
/* one ticket per row, lying on its side: the stub to the right of the perforation */
@media (min-width: 641px) and (max-width: 1100px) {
  .platforms { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .plat--main.ticket { grid-row: auto; grid-template-rows: none; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); }
  .ticket {
    --t-mask-main: radial-gradient(circle at 100% 0, var(--t-cut)), radial-gradient(circle at 100% 100%, var(--t-cut)), radial-gradient(circle at 100% 50%, var(--t-punch)) 0 50% / 100% var(--t-pitch) repeat-y;
    --t-mask-stub: radial-gradient(circle at 0 0, var(--t-cut)), radial-gradient(circle at 0 100%, var(--t-cut)), radial-gradient(circle at 0 50%, var(--t-punch)) 0 50% / 100% var(--t-pitch) repeat-y;
  }
  .plat--main.ticket .ticket__main { border-radius: var(--t-radius) 0 0 var(--t-radius); }
  .plat--main.ticket .ticket__stub { border-radius: 0 var(--t-radius) var(--t-radius) 0; padding-top: 22px; background: linear-gradient(90deg, color-mix(in oklab, var(--t-stub) 94%, #4a3a6e), var(--t-stub) 30%); }
  .plat--main.ticket > .plat__ring { left: 30%; }
  .plat.plat--main.ticket > .plat__yours { top: 68px; right: calc(100% / 2.65 + 26px); }
  .ticket .plat__actions { display: flex; flex-wrap: wrap; align-items: center; }
  .ticket .dl-glow { flex: 0 1 auto; min-width: 0; }
}
/* on one column the visitor's own ticket comes first */
@media (max-width: 1100px) {
  .download[data-yours="mac"] .platforms > [data-plat="mac"],
  .download[data-yours="windows"] .platforms > [data-plat="windows"],
  .download[data-yours="linux"] .platforms > [data-plat="linux"] { order: -1; }
  .steps-wrap { --g: 22px; }
}
@media (max-width: 960px) {
  .steps-wrap .steps { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .steps__line { display: none; }
  .steps-wrap .step { flex-direction: row; align-items: flex-start; }
  .steps-wrap .step > div { padding-top: 4px; }
  /* the line runs down instead, from the first number to the last */
  .steps-wrap .steps::before { content: ""; position: absolute; z-index: -1; left: 25px; top: 26px; bottom: 40px; border-left: 1.6px dashed color-mix(in srgb, var(--look-ember) 70%, transparent); }
}
@media (max-width: 640px) {
  .platforms { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; gap: 22px; }
  .plat--main.ticket { grid-row: auto; grid-template-rows: auto auto; }
  .ticket__main { padding: 20px 22px 26px; }
  .ticket__stub { padding: 18px 22px 20px; }
  .plat--main.ticket .plat__head h3 { font-size: 1.75rem; }
  .verify__list > div { grid-template-columns: minmax(0, 1fr); }
  .dl-share { font-size: 1rem; }
  /* the chip keeps version and day on one line and puts what's new under them */
  .version-chip { border-radius: 16px; padding: 9px 13px 9px 11px; font-size: 0.76rem; }
  .version-chip [data-date-wrap] { white-space: nowrap; }
  .version-chip__news { flex-basis: 100%; margin: 2px 0 0 15px; padding: 0; border-left: 0; }
}

/* ---------- the new look: "Violette Stunde" ----------
 * A layer over the design above (build.mjs appends this file to site.css, so it wins by order):
 * violet dusk instead of graphite, warm paper instead of white, a photo horizon behind the app
 * window, a hyperreal swallow that frays into pencil, a drawn one in the sky, paper collage, a
 * serif accent in the headings and film grain over everything. The old page keeps all it did:
 * the ribbon video, the tilting window, GSAP's letter flips, the hub, the ring, the reel.
 * New motion runs at 10 frames a second (steps), the old one stays smooth; "reduce motion"
 * stops all of it at the end of this file. Colours stay tokens, so docs, blog and legal pages
 * take the new paper and night as well.
 */
@font-face { font-family: "Fraunces"; src: url("/assets/fonts/fraunces.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("/assets/fonts/fraunces-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }

:root {
  --bg: #121016;
  --bg-2: #18151d;
  --panel: #1c1922;
  --panel-2: #24202b;
  --line: rgb(239 232 220 / 0.09);
  --line-2: rgb(239 232 220 / 0.15);
  --ink: #f3eee6;
  --ink-2: #d2cbc2;
  --muted: #a39cab;
  --faint: #8a8392;
  --shadow: 0 30px 80px -20px rgb(6 3 14 / 0.7), 0 0 0 1px rgb(239 232 220 / 0.06);
  --font-serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;

  --look-ember: #ff8a5c;
  --look-acc: linear-gradient(100deg, #c9b6ff 8%, #f0a6e8 52%, #ff9a6a 100%);
  --look-acc-ink: color-mix(in oklab, var(--ink) 62%, #b9a3fc);
  --look-bird: #e9e0ff;
  --look-bird-night: #e9e0ff;
  --look-ground: #101019;
  --look-glow: radial-gradient(50% 50% at 50% 50%, rgb(255 138 92 / 0.34), rgb(196 92 220 / 0.14) 55%, transparent 75%);
  --look-glow-blend: screen;
  --look-print: 0 26px 40px rgb(4 2 10 / 0.5);
  --look-window-shadow: 0 18px 36px -14px rgb(4 2 10 / 0.75);
  --look-paper: #e6dfd2;
  --look-grain-op: 0.04;
  --look-grain-blend: screen;
  --look-word-top: #3a2d55;
  --look-word-bottom: #0d0a12;
  --look-dark: block;
  --look-light: none;
  --look-sky-paint: url("/assets/look/see-abend-1600.webp");
  --look-glass-fill: 86%;
  --accent-fill: #8752f3;
  --look-app-faint: #97909f;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f6f2ea;
    --bg-2: #efe9df;
    --panel: #fffdf8;
    --panel-2: #f3eee5;
    --line: rgb(40 30 44 / 0.09);
    --line-2: rgb(40 30 44 / 0.15);
    --ink: #1c1820;
    --ink-2: #3d3644;
    --muted: #5f5866;
    --faint: #726a77;
    --shadow: 0 30px 70px -24px rgb(60 40 70 / 0.28), 0 0 0 1px rgb(40 30 44 / 0.08);
    --look-ember: #c2410c;
    --look-acc: linear-gradient(100deg, #6b2fd6 8%, #a3329b 52%, #c2410c 100%);
    --look-acc-ink: color-mix(in oklab, var(--ink) 45%, #6b2fd6);
    --look-bird: #5b2fc2;
    --look-ground: #cbc0ce;
    --look-glow: radial-gradient(50% 50% at 50% 50%, rgb(255 190 150 / 0.4), rgb(167 139 250 / 0.12) 55%, transparent 75%);
    --look-glow-blend: normal;
    --look-print: 0 26px 36px rgb(60 40 70 / 0.22);
    --look-window-shadow: 0 18px 36px -14px rgb(60 40 70 / 0.34);
    --look-paper: #fffcf5;
    --look-grain-op: 0.035;
    --look-grain-blend: multiply;
    --look-word-top: #4a3a6e;
    --look-word-bottom: #1c1820;
    --look-dark: none;
    --look-light: block;
    --look-sky-paint: url("/assets/look/see-morgen-1600.webp");
    --look-glass-fill: 92%;
    --accent-fill: var(--accent);
    --look-app-faint: var(--faint);
    --plus: #157339;
    --minus: #c41f1f;
    --done: #04845e;
  }
}
:root[data-theme="light"] {
  --bg: #f6f2ea;
  --bg-2: #efe9df;
  --panel: #fffdf8;
  --panel-2: #f3eee5;
  --line: rgb(40 30 44 / 0.09);
  --line-2: rgb(40 30 44 / 0.15);
  --ink: #1c1820;
  --ink-2: #3d3644;
  --muted: #5f5866;
  --faint: #726a77;
  --shadow: 0 30px 70px -24px rgb(60 40 70 / 0.28), 0 0 0 1px rgb(40 30 44 / 0.08);
  --look-ember: #c2410c;
  --look-acc: linear-gradient(100deg, #6b2fd6 8%, #a3329b 52%, #c2410c 100%);
  --look-acc-ink: color-mix(in oklab, var(--ink) 45%, #6b2fd6);
  --look-bird: #5b2fc2;
  --look-ground: #cbc0ce;
  --look-glow: radial-gradient(50% 50% at 50% 50%, rgb(255 190 150 / 0.4), rgb(167 139 250 / 0.12) 55%, transparent 75%);
  --look-glow-blend: normal;
  --look-print: 0 26px 36px rgb(60 40 70 / 0.22);
  --look-window-shadow: 0 18px 36px -14px rgb(60 40 70 / 0.34);
  --look-paper: #fffcf5;
  --look-grain-op: 0.035;
  --look-grain-blend: multiply;
  --look-word-top: #4a3a6e;
  --look-word-bottom: #1c1820;
  --look-dark: none;
  --look-light: block;
  --look-sky-paint: url("/assets/look/see-morgen-1600.webp");
  --look-glass-fill: 92%;
  --accent-fill: var(--accent);
  --look-app-faint: var(--faint);
  --plus: #157339;
  --minus: #c41f1f;
  --done: #04845e;
}

/* ---------- film grain at 10 fps over the whole page ---------- */
body::after {
  content: ""; position: fixed; inset: -140px; z-index: 90; pointer-events: none;
  background: url("/assets/look/korn.webp") 0 0 / 210px 210px;
  opacity: var(--look-grain-op); mix-blend-mode: var(--look-grain-blend);
  animation: look-grain 1s steps(1) infinite;
}
@keyframes look-grain {
  0% { transform: translate(0, 0); } 10% { transform: translate(-48px, -96px); } 20% { transform: translate(-104px, 40px); }
  30% { transform: translate(64px, -118px); } 40% { transform: translate(-36px, 112px); } 50% { transform: translate(-112px, 72px); }
  60% { transform: translate(104px, 8px); } 70% { transform: translate(8px, 96px); } 80% { transform: translate(24px, -40px); }
  90% { transform: translate(-80px, 32px); }
}

/* ---------- the serif accent: one phrase per heading in Fraunces italic (build.mjs marks it) ---------- */
.acc, .w--acc, .say__text, .stat__num {
  font-family: var(--font-serif);
  font-optical-sizing: auto;
}
.acc, .w--acc, .say__w--em {
  font-style: italic;
  font-weight: 400;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
}
.h2 .acc, .end__title .acc { font-size: 1.07em; letter-spacing: -0.02em; padding-right: 0.05em; color: var(--look-acc-ink); }
.dl-stage__title .acc { color: inherit; }

/* the hero's last word: serif, lit from violet to ember, a pencil line drawn under it in ten frames */
.hero__words .w--acc {
  position: relative;
  font-size: 1.08em;
  letter-spacing: -0.025em;
  padding: 0 0.1em 0.12em 0.02em;
  background: var(--look-acc);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.w__ink {
  position: absolute; left: 3%; bottom: -0.04em; width: 92%; height: 0.22em; overflow: visible; pointer-events: none;
  fill: none; stroke: var(--look-ember); stroke-width: 0.05em; stroke-linecap: round;
}
.w__ink path { vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; animation: look-ink 1s steps(10) 1.3s forwards; }
@keyframes look-ink { to { stroke-dashoffset: 0; } }

/* the other pages' titles: the last words in the serif, the very last over the pencil line (build.mjs, inkTitle);
   that word stays in one piece, so the line never splits, and it is drawn as soon as the page stands */
h1 .acc { color: var(--look-acc-ink); font-size: 1.05em; letter-spacing: -0.02em; padding-right: 0.04em; }
.ink { position: relative; display: inline-block; }
.ink .w__ink path { animation-delay: 0.45s; }

/* the statement reads like a printed sentence; the emphasis keeps its colour, now in italic */
.say__text { font-weight: 360; font-variation-settings: "SOFT" 100, "WONK" 0, "opsz" 144; font-size: clamp(2rem, 1.05rem + 3.4vw, 3.9rem); line-height: 1.12; letter-spacing: -0.022em; }
.say__w--em { background: var(--look-acc); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: 0.06em; }

/* the three numbers in big serif figures, the plus in ember */
.stat__num { font-weight: 330; font-variation-settings: "SOFT" 100, "WONK" 0, "opsz" 144; letter-spacing: -0.045em; }
.stat__num i { font-style: italic; color: var(--look-ember); }

/* questions are numbered like footnotes */
.faq__list { counter-reset: look-q; }
.faq summary { counter-increment: look-q; }
.faq summary::before { content: "(" counter(look-q) ")"; display: inline-block; min-width: 2.7em; color: var(--faint); font: 500 0.78rem/1 var(--font-mono); letter-spacing: 0.04em; vertical-align: 0.12em; }

/* the header's progress line runs from violet into ember */
.top__progress { background: linear-gradient(90deg, transparent, var(--accent) 30%, var(--accent-bar) 70%, var(--look-ember)); }
/* The docked capsule lets the page through only as a faint blur: a photo or a heading under the bar must not take the
   links' contrast (AA for the grey links even over a white or black picture). Paper shows more through, so it is
   filled a little more than night. */
.top__glass {
  background: color-mix(in srgb, var(--bg) var(--look-glass-fill), transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(24px); backdrop-filter: saturate(1.4) blur(24px);
}
/* the glass catches the last light of the sky along its top edge */
.top__glass::after {
  content: ""; position: absolute; left: 10%; right: 10%; top: 0; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--look-ember) 70%, transparent) 30%, color-mix(in srgb, var(--accent) 70%, transparent) 70%, transparent);
}
/* Nova runs along that line at the point you have read to (main.js sets --progress on the header)
 * and waddles at 10 fps while the page moves; the track is the line's width, measured in cqw. */
.top__track {
  /* behind the logo, the links and the buttons (above the glass, which comes first): it runs past them */
  position: absolute; z-index: -1; left: calc(var(--gutter) + 4px); right: calc(var(--gutter) + 4px); bottom: 9px; height: 0;
  container-type: inline-size; pointer-events: none; opacity: 0; transition: opacity 0.35s ease;
}
.top--home.is-scrolled .top__track { opacity: 1; }
.top__runner { position: absolute; left: 0; bottom: 0; line-height: 0; transform: translateX(calc(var(--progress, 0) * 100cqw - 50%)); filter: drop-shadow(0 2px 3px rgb(4 2 10 / 0.4)); }
.top__runner .ayling { display: block; }
.top__runner .ayl__pose { transform-box: fill-box; transform-origin: 50% 100%; }
.top__runner.is-running .ayl__pose { animation: runner-waddle 0.4s steps(1, end) infinite; }
@keyframes runner-waddle {
  0% { transform: rotate(-10deg); } 25% { transform: translateY(-12%); }
  50% { transform: rotate(10deg); } 75% { transform: translateY(-12%); }
}

/* ---------- the drawn swallow: 8 frames at 10 fps, coloured by its ink token ---------- */
.look-bird { position: absolute; display: block; width: clamp(40px, 4.2vw, 64px); aspect-ratio: 251 / 280; overflow: hidden; color: var(--look-bird); pointer-events: none; }
.look-bird i {
  position: absolute; inset: 0 auto 0 0; width: 800%; background: currentColor;
  -webkit-mask: url("/assets/look/vogel-flug.webp") 0 0 / 100% 100% no-repeat; mask: url("/assets/look/vogel-flug.webp") 0 0 / 100% 100% no-repeat;
  animation: look-flap 0.8s steps(8) infinite;
}
@keyframes look-flap { to { transform: translateX(-100%); } }
/* across the sky in 18 s, then 12 s of empty sky; every leg holds a pose for a tenth of a second */
.look-flight { left: 0; top: 18%; animation: look-fly 30s infinite; }
@keyframes look-fly {
  0% { transform: translate(-14vw, 0); animation-timing-function: steps(60); }
  20% { transform: translate(26vw, -2vh); animation-timing-function: steps(60); }
  40% { transform: translate(66vw, 1vh); animation-timing-function: steps(60); }
  60% { transform: translate(114vw, -3vh); animation-timing-function: steps(1); }
  100% { transform: translate(114vw, -3vh); }
}

/* ---------- the hero sky: a silk ribbon of light at dusk, the same sky at dawn ---------- */
/* One loop per theme at 10 fps; only the shown one is ever on screen, so only it loads (main.js).
 * Its still is a CSS background, so the hidden theme fetches nothing at all, and dawn is painted for
 * the paper theme, so the old trick of turning the night negative is off here. */
:root .bgloop.bgloop--hero .bgloop__video { filter: none; opacity: 1; background: var(--look-sky-still) 50% 50% / cover no-repeat; }
/* the sky starts under the header, so it fades in from the page colour instead of starting on an edge */
.bgloop--hero {
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 110px, #000 55%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 110px, #000 55%, transparent 100%);
}
.bgloop__video--dusk { display: var(--look-dark); --look-sky-still: url("/assets/bg/hero-dusk.webp"); }
.bgloop__video--dawn { display: var(--look-light); --look-sky-still: url("/assets/bg/hero-dawn.webp"); }
@media (max-width: 760px) {
  .bgloop__video--dusk { --look-sky-still: url("/assets/bg/hero-dusk-960.webp"); }
  .bgloop__video--dawn { --look-sky-still: url("/assets/bg/hero-dawn-960.webp"); }
  :root .bgloop.bgloop--hero .bgloop__video { opacity: 0.85; background-position: 70% 50%; }
}
/* In the paper theme the hero is the dawn as painted, with dark type and a light window: a dusk
   veil over the pale sky turned the hero to smog between a paper header and a paper page. */

/* ---------- the hero: the old ribbon and words, a photo horizon behind the window ---------- */
.hero {
  --look-sky-top: 84px;     /* the strip of sky above the app window */
  --look-hero-pad: 40px;    /* the hero's bottom padding (site.css) */
  --look-mock-h: 602px;     /* the app window with its 1px running border (site.css) */
}
@media (max-width: 960px) { .hero { --look-mock-h: 562px; } }
.hero .stage { position: relative; margin-top: 28px; padding-top: var(--look-sky-top); }
/* lying on the print, the window casts a shadow; the old violet glow ran past the hero and was cut off there */
.hero .beam { box-shadow: var(--look-window-shadow); }
/* The print: full width on small screens, a framed sheet with a torn top on wide ones. The photo
 * inside sits so that its ember line glows right behind the window's top edge; below the photo the
 * sheet carries on in the colour of its ground. */
.look-horizon {
  --look-photo-w: max(100cqw, 760px);
  --look-ember-at: calc(var(--look-sky-top) + 14px);
  position: absolute; z-index: 0; top: 0; bottom: calc(-1 * var(--look-hero-pad)); left: 50%;
  width: min(100vw, 1320px); translate: -50% 0;
  container-type: inline-size;
  overflow: hidden; pointer-events: none;
  background: var(--look-ground);
  -webkit-mask: url("/assets/look/riss-oben.png") top / 100% 34px no-repeat, linear-gradient(#000 0 52%, transparent 96%) bottom / 100% calc(100% - 33px) no-repeat;
  mask: url("/assets/look/riss-oben.png") top / 100% 34px no-repeat, linear-gradient(#000 0 52%, transparent 96%) bottom / 100% calc(100% - 33px) no-repeat;
}
.look-horizon img {
  position: absolute; left: 50%; top: calc(var(--look-ember-at) - var(--look-photo-w) * 0.5625 * 0.563);
  width: var(--look-photo-w); max-width: none; height: calc(var(--look-photo-w) * 0.5625); translate: -50% 0;
  object-fit: cover;
}
.look-horizon .look-horizon__dark { display: var(--look-dark); }
.look-horizon .look-horizon__light { display: var(--look-light); }
.look-horizon__glow {
  position: absolute; left: 0; right: 0; top: calc(var(--look-ember-at) - 110px); height: 220px;
  background: var(--look-glow); mix-blend-mode: var(--look-glow-blend);
  animation: look-breathe 6s steps(60) infinite alternate;
}
@keyframes look-breathe { from { opacity: 0.35; } to { opacity: 1; } }
.look-horizon .look-flight { top: calc(var(--look-sky-top) * 0.22); }

/* the window is taped onto the print; the tape follows the window as it settles (main.js sets --tilt) */
.look-tapes {
  position: absolute; z-index: 3; left: 0; right: 0; top: var(--look-sky-top); height: 0; max-width: 1080px; margin-inline: auto;
  transform-origin: 50% 0; transform: scale(calc(1 - var(--tilt, 0) * 0.06)); pointer-events: none;
}
/* Each strip is centred just outside its corner, so it holds the window without covering the
 * traffic lights or the model chip; the offsets follow the strip's width (heights: 0.30 and 0.40). */
.look-tape { --look-tape-w: clamp(84px, 9.5vw, 138px); position: absolute; width: var(--look-tape-w); height: auto; opacity: 0.94; filter: drop-shadow(0 3px 4px rgb(0 0 0 / 0.25)); animation: look-stick 0.4s steps(4) 1.7s backwards; }
.look-tape--l { left: calc(var(--look-tape-w) * -0.5 - 4px); top: calc(var(--look-tape-w) * -0.151 - 6px); rotate: -33deg; }
.look-tape--r { right: calc(var(--look-tape-w) * -0.5 - 4px); top: calc(var(--look-tape-w) * -0.199 - 12px); rotate: 28deg; }
@keyframes look-stick { from { opacity: 0; scale: 1.3; } }

/* the hyperreal swallow glides at 10 fps; GSAP lets it fly off as the page scrolls */
.look-swallow { position: absolute; z-index: -1; left: max(-80px, calc(50% - 760px)); top: 64px; width: clamp(220px, 26vw, 400px); pointer-events: none; }
.look-swallow img { width: 100%; height: auto; filter: drop-shadow(0 30px 34px rgb(4 2 10 / 0.35)); animation: look-glide 4.8s steps(48) infinite alternate; }
@keyframes look-glide { from { translate: 0 0; rotate: -2deg; } to { translate: 2% -8%; rotate: 2.5deg; } }

@media (max-width: 1100px) {
  .look-swallow { left: -4vw; width: 22vw; top: 40px; }
}
@media (max-width: 760px) {
  /* on a phone the bird comes in at the top left, beside the release pill, so the first screen
   * has it too; it stays clear of the pill and the line below it */
  .look-swallow { left: -7vw; top: 0; width: 34vw; }
}
@media (max-width: 640px) {
  .hero { --look-sky-top: 96px; --look-hero-pad: 8px; --look-mock-h: 522px; }
  /* the window nearly fills the screen here, so the strips lean in rather than hang out */
  .look-tape { --look-tape-w: 72px; }
  .look-tape--l { left: -14px; top: -20px; }
  .look-tape--r { right: -14px; top: -24px; }
}

/* ---------- three plates: paper, horizon, crystal ---------- */
.look-plates {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr) minmax(0, 0.9fr); gap: clamp(20px, 3vw, 44px); align-items: start;
  padding-block: clamp(90px, 10vw, 140px) 0;
}
.look-plate { position: relative; margin: 0; display: grid; gap: 16px; filter: drop-shadow(var(--look-print)); }
.look-plate--paper { rotate: -1.2deg; margin-top: 48px; }
.look-plate--sky { rotate: 0.6deg; }
.look-plate--crystal { rotate: -0.5deg; margin-top: 88px; }
/* each photo is a print with a narrow paper margin, so even its darkest edge stands off the night */
.look-plate__img {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 3px;
  padding: clamp(6px, 0.7vw, 10px); background: var(--look-paper);
  -webkit-mask: url("/assets/look/riss-unten.png") bottom / 100% 26px no-repeat, linear-gradient(#000 0 0) top / 100% calc(100% - 25px) no-repeat;
  mask: url("/assets/look/riss-unten.png") bottom / 100% 26px no-repeat, linear-gradient(#000 0 0) top / 100% calc(100% - 25px) no-repeat;
}
.look-plate__img img { width: 100%; height: 100%; object-fit: cover; border-radius: 1px; background: var(--look-ground); }
.look-plate--sky .look-plate__img img { object-position: 50% 58%; }
/* the plate is the night print in both themes, so its swallow keeps the night's pale ink */
.look-plate--sky .look-bird { left: 36%; top: 24%; width: 24%; color: var(--look-bird-night); animation: look-drift 4.8s steps(48) infinite alternate; }
@keyframes look-drift { from { transform: translate(0, 0) rotate(-2deg); } to { transform: translate(16%, -20%) rotate(3deg); } }
.look-plate figcaption { max-width: 36ch; color: var(--muted); font: 500 0.76rem/1.55 var(--font-mono); letter-spacing: 0.02em; }
.look-plate__tape { position: absolute; z-index: 2; top: -18px; left: 50%; width: clamp(88px, 9vw, 128px); height: auto; translate: -50% 0; rotate: -5deg; opacity: 0.94; }
.look-plate--sky .look-plate__tape { rotate: 4deg; left: 58%; }
.look-plate__strip { position: absolute; z-index: 2; right: -22px; top: 62%; width: 74%; height: auto; rotate: -7deg; }
/* where the plates reach the screen's edge (tablets), the strip leans in, or the page pans sideways */
@media (max-width: 1240px) { .look-plate__strip { right: -8px; } }
.look-plates__scrap { position: absolute; z-index: -1; left: -3%; top: 14%; width: 30%; height: auto; rotate: -9deg; opacity: 0.92; }

@media (max-width: 760px) {
  /* a row to swipe through on a phone; it scrolls inside itself, never the page */
  .look-plates {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 74%;
    overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none;
    padding-block: 72px 20px; padding-top: calc(72px + 22px);
  }
  .look-plates::-webkit-scrollbar { display: none; }
  .look-plate { scroll-snap-align: center; margin-top: 0; }
  .look-plates__scrap { display: none; }
}

/* ---------- the rest of the page: the old sections, touched by the new materials ---------- */
/* the hub: an amethyst turns behind the AyCode icon */
.hub__crystal { position: absolute; z-index: 0; inset: -58%; display: grid; place-items: center; pointer-events: none; animation: look-turn 48s steps(480) infinite; }
.hub__core .hub__crystal img { position: static; width: 100%; height: auto; border-radius: 0; box-shadow: none; filter: drop-shadow(0 20px 36px rgb(4 2 10 / 0.4)); }
@keyframes look-turn { to { rotate: 360deg; } }

/* the second-brain tile grows a crystal behind its graph */
.tile--brain .tile__art { position: relative; }
.tile--brain .graph { position: relative; z-index: 1; }
.look-tile-crystal { position: absolute; z-index: 0; right: -14%; top: -30%; width: 66%; height: auto; opacity: 0.55; pointer-events: none; animation: look-turn 80s steps(800) infinite reverse; }

/* the desktop in the moments section wears the horizon as its wallpaper */
.stage-screen { --wall: url("/assets/look/horizont-1200.webp") 50% 60% / cover no-repeat, #101019; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .stage-screen { --wall: url("/assets/look/morgen-1200.webp") 50% 60% / cover no-repeat, #cbc0ce; }
}
:root[data-theme="light"] .stage-screen { --wall: url("/assets/look/morgen-1200.webp") 50% 60% / cover no-repeat, #cbc0ce; }

/* the crew flies in under a flock at dusk (night only: the photo is a night sky) */
.look-flock {
  position: absolute; z-index: -1; left: 0; top: 0; width: 100%; height: clamp(320px, 42vw, 620px); object-fit: cover; object-position: 50% 40%;
  display: var(--look-dark); opacity: 0.5; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 22%, #000 50%, transparent 92%); mask-image: linear-gradient(180deg, transparent, #000 22%, #000 50%, transparent 92%);
}

/* the download icon floats on an amethyst */
.look-dl-crystal { position: absolute; z-index: 0; inset: -36%; display: grid; place-items: center; pointer-events: none; animation: look-turn 64s steps(640) infinite; }
.dl-stage__icon .look-dl-crystal img { position: static; z-index: auto; width: 100%; height: auto; filter: drop-shadow(0 26px 40px rgb(4 2 10 / 0.45)); animation: none; }

/* the closing call ends on a strip of horizon with the drawn swallow crossing it */
.look-horizon--end {
  --look-sky-top: clamp(70px, 9vw, 130px);
  --look-ember-at: calc(var(--look-sky-top) + 40px);
  position: relative; top: auto; bottom: auto; left: auto; translate: none;
  width: min(100vw - 2 * var(--gutter), 1320px); height: clamp(220px, 26vw, 360px); margin: 80px auto 0;
  -webkit-mask: url("/assets/look/riss-oben.png") top / 100% 30px no-repeat, linear-gradient(#000 0 50%, transparent 100%) bottom / 100% calc(100% - 29px) no-repeat;
  mask: url("/assets/look/riss-oben.png") top / 100% 30px no-repeat, linear-gradient(#000 0 50%, transparent 100%) bottom / 100% calc(100% - 29px) no-repeat;
}
.end { padding-bottom: 0; }

/* ---------- the footer: the word stands on a painted lake, the Aylinge on its letters ---------- */
.foot__scene {
  --foot-pad: max(12px, 2vw);
  --lake-k: 1.3;            /* the lake is wider than the screen, so its shores leave the frame */
  --lake-horizon: 0.513;    /* where the water meets the far shore, as a share of the painting's height */
  position: relative; isolation: isolate; container-type: inline-size;
  margin-top: clamp(24px, 4vw, 56px);
}
/* The far shore lies on the word's baseline, 0.31 of the word's width below its top (viewBox
 * 0 -140 1200 500, baseline at 232); the painting is 2688 × 1152. The footer clips what is left over. */
.foot__lake {
  position: absolute; z-index: -1; max-width: none; height: auto; pointer-events: none; user-select: none;
  width: calc(var(--lake-k) * 100cqw); left: calc((1 - var(--lake-k)) * 50cqw);
  top: calc(0.31 * (100cqw - 2 * var(--foot-pad)) - var(--lake-horizon) * 0.428571 * var(--lake-k) * 100cqw);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 26%); mask-image: linear-gradient(180deg, transparent 0%, #000 26%);
}
.foot__lake--dusk { display: var(--look-dark); }
.foot__lake--dawn { display: var(--look-light); --lake-horizon: 0.511; }
.foot__scene .foot__word { position: relative; margin-top: 0; padding-inline: var(--foot-pad); }
/* the letters stand dark against the sky like a sign on the shore, and lie in the water upside down */
.foot__scene .foot__stop-top { stop-color: var(--look-word-top); stop-opacity: 1; }
.foot__scene .foot__stop-bottom { stop-color: var(--look-word-bottom); stop-opacity: 1; }
.foot__mirror { opacity: 0.42; animation: foot-ripple 1.6s steps(16) infinite alternate; }
@keyframes foot-ripple { from { transform: translateX(-1.5px); } to { transform: translateX(1.5px); } }
/* The letters keep a trace of letterpress: the second layer fills the press's holes most of the way,
 * so the sky glints through them faintly instead of speckling the word. The Aylinge keep smooth skin. */
.foot__word .foot__ink {
  -webkit-mask: url("/assets/look/druck.png") 0 0 / 280px 280px, linear-gradient(rgb(0 0 0 / 0.82) 0 0);
  mask: url("/assets/look/druck.png") 0 0 / 280px 280px, linear-gradient(rgb(0 0 0 / 0.82) 0 0);
}
.foot__word .foot__troupe { position: absolute; top: 0; left: var(--foot-pad); width: calc(100% - 2 * var(--foot-pad)); filter: drop-shadow(0 8px 10px rgb(4 2 10 / 0.35)); }
.foot__troupe .ayl { pointer-events: auto; cursor: pointer; }
/* Echo is a ghost, so it hovers above its C; Rio teeters on the tip of the A */
.ayl--echo .ayl__float { animation: ayl-float 2.4s steps(24) infinite alternate; }
@keyframes ayl-float { from { transform: translateY(0); } to { transform: translateY(-5px); } }
.ayl--rio .ayl__float { transform-box: fill-box; transform-origin: 50% 100%; animation: ayl-teeter 3.2s steps(32) infinite alternate; }
@keyframes ayl-teeter { from { transform: rotate(-3deg); } to { transform: rotate(3deg); } }
/* every Ayling that moves blinks for one frame now and then, each on its own beat */
.ayl .ayling__eyes { animation: ayl-blink 4.6s steps(1, end) infinite; }
.ayl--echo .ayling__eyes, .perch--plate .ayling__eyes { animation-delay: -1.3s; }
.ayl--nova .ayling__eyes, .perch--stage .ayling__eyes { animation-delay: -2.9s; }
.ayl--pixel .ayling__eyes, .perch--window .ayling__eyes { animation-delay: -3.7s; }
@keyframes ayl-blink { 0% { transform: none; } 95.65% { transform: scaleY(0.1); } 97.83% { transform: none; } }

/* ---------- Aylinge perched on the window, the crystal plate and the download stage ---------- */
/* each one stands with its feet on the edge (the share is its feet on the 64 grid, build.mjs) */
.perch { position: absolute; z-index: 4; top: 0; line-height: 0; pointer-events: auto; cursor: pointer; filter: drop-shadow(0 6px 6px rgb(4 2 10 / 0.3)); }
.perch .ayling { display: block; }
.perch--window { right: 21%; translate: 0 -75%; }
.perch--plate { right: 14%; translate: 0 -79.7%; }
.version-chip { position: relative; }
.perch--stage { right: 14px; translate: 0 -90.6%; }

/* ---------- from page to page ----------
 * A link to another page of the site (or to the cloud's sign-in and account pages, which wear the same frame) hands
 * over in the browser: the page sinks away and the next one rises in its place, while the header stays where it is.
 * theme.js names the header as its own layer only while a page turns: a named header would be a backdrop root and
 * keep its glass from blurring the page. The theme switch keeps its pour (site.css); it marks the page while it
 * pours, so these rules stand back then. Calm settings get the next page at once. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}
/* The bar's background fades from one page's to the next; the mark, the links and the buttons travel on their own,
   so where the docs bar is wider they slide to their places instead of showing twice. */
:root[data-page-turn] .top { view-transition-name: site-top; }
:root[data-page-turn] .top .brand { view-transition-name: site-brand; }
:root[data-page-turn] .top .nav { view-transition-name: site-nav; }
:root[data-page-turn] .top .top__tools { view-transition-name: site-tools; }
/* the old page is gone before the new one is more than a breath, so the two never read as one */
:root:not([data-pouring])::view-transition-old(root) { animation: page-out 0.12s cubic-bezier(0.2, 0, 0, 1) both; }
:root:not([data-pouring])::view-transition-new(root) { animation: page-in 0.46s var(--ease) 0.1s both; -webkit-mask-image: none; mask-image: none; }
@keyframes page-out { to { opacity: 0; transform: translateY(-10px); } }
@keyframes page-in { from { opacity: 0; transform: translateY(18px); } }

/* ---------- the evening over every other page ----------
 * Docs, Radar, changelog, features, the legal pages, the 404 and the cloud's own pages open under the sky of the
 * footer's lake: the upper part of the same painting (dusk at night, dawn on paper), drawn larger than the screen so
 * the bright horizon stays low, and fading into the page before the text could lose its contrast. It is the footer's
 * own file, so a visitor who reached one end of a page already has the other. The start page has its own sky. */
body:has(.top--bar)::before {
  content: ""; position: absolute; z-index: -1; inset: 0 0 auto; height: clamp(360px, 42vw, 600px); pointer-events: none;
  background: var(--look-sky-paint) 50% 0 / max(170%, 1900px) auto no-repeat;
  opacity: 0.55;
  -webkit-mask-image: linear-gradient(180deg, #000 25%, transparent); mask-image: linear-gradient(180deg, #000 25%, transparent);
}

/* ---------- the header knows the page ----------
 * On every page but the start page, the link into the part of the site you are in stays lit and the light under the
 * links rests below it (chrome.mjs); the start page lights the section in view instead (main.js). */
.nav a[aria-current="page"] { color: var(--ink); }
.sheet__nav a[aria-current="page"] { color: var(--ink); }

/* The account menu (signin.mjs) opens under the account page's sky: a strip of the footer's lake torn off at the
   bottom, dusk at night, dawn on paper. It drops in two frames, like a note pinned to the bar, and sign-out stands
   apart below a pencilled rule. */
.who-menu__panel { overflow: hidden; padding-top: 0; }
.who-menu__panel::before {
  content: ""; height: 54px; margin: 0 calc(-1 * var(--space-sm)) var(--space-sm);
  background: var(--look-sky-paint) 50% 46% / cover no-repeat;
  -webkit-mask: url("/assets/look/riss-unten.png") bottom / 100% 14px no-repeat, linear-gradient(#000 0 0) top / 100% calc(100% - 13px) no-repeat;
  mask: url("/assets/look/riss-unten.png") bottom / 100% 14px no-repeat, linear-gradient(#000 0 0) top / 100% calc(100% - 13px) no-repeat;
}
.who-menu__panel:not([hidden]) { animation: who-in 0.2s steps(2) both; }
@keyframes who-in { from { opacity: 0; transform: translateY(-6px) rotate(-0.6deg); } }
.who-menu__panel > button[role="menuitem"] { margin-top: var(--space-xs); border-top: 1px dashed var(--line-2); border-radius: 0 0 var(--radius) var(--radius); }

/* The drawn swallow of the start page crosses that sky now and then (header.html). The sky holds it, so its way out
   past the right edge never widens the page; it waits out of sight at first, so it flies in rather than being there. */
.page-sky { position: absolute; z-index: -1; inset: 0 0 auto; height: clamp(360px, 42vw, 600px); overflow: hidden; pointer-events: none; }
.top--home ~ .page-sky { display: none; }
.page-sky .look-flight { top: clamp(84px, 11vw, 150px); width: clamp(30px, 3.2vw, 48px); animation-delay: -26s; }
/* While the page scrolls, the sky stays behind at a third of the pace and fades, so the page has depth. */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    body:has(.top--bar)::before, .page-sky { animation: sky-behind linear both; animation-timeline: scroll(root); animation-range: 0 600px; }
  }
}
@keyframes sky-behind { to { transform: translateY(400px); opacity: 0.2; } }

/* ---------- motion for every page: arrive, glow, lean ----------
 * Building blocks for every page of the site; chrome.mjs drives them, website/bausteine.md explains them.
 *   data-reveal            rises into place once it is scrolled to; ="fade" only fades, ="print" is printed from the
 *                          top in ten frames, ="tape" is slapped on like a strip of tape
 *   data-reveal-group      on a parent: its data-reveal children that come into view together arrive one after another
 *   data-glow              follows the pointer in --mx/--my; with the class look-glow a soft light follows it
 *   data-magnetic          leans a few pixels towards the pointer (fine pointers only)
 * What waits is hidden only once theme.js has said motion is welcome (has-reveal), before the first frame; if
 * chrome.mjs never arrives, it shows up on its own after a moment. The arrivals fill backwards only and end with
 * is-done, so once a part has arrived its own hover moves and animations are its own again. Everything sits under
 * the motion query, so a visitor who asks for less motion in the middle of a visit sees every part stand. */
@media (prefers-reduced-motion: no-preference) {
  :root.has-reveal [data-reveal]:not([data-reveal="print"], .is-in) { opacity: 0; }
  :root.has-reveal [data-reveal="print"]:not(.is-in) { clip-path: inset(0 0 100% 0); }
  :root.has-reveal [data-reveal]:not(.is-in, .is-waiting) { animation: reveal-show 0.6s ease 2.4s forwards; }
  [data-reveal].is-in:not(.is-done) { animation: reveal-rise 0.9s var(--ease) calc(var(--reveal-i, 0) * 90ms) backwards; }
  [data-reveal="fade"].is-in:not(.is-done) { animation-name: reveal-fade; }
  [data-reveal="print"].is-in:not(.is-done) { animation: reveal-print 1s steps(10) calc(var(--reveal-i, 0) * 100ms) backwards; }
  [data-reveal="tape"].is-in:not(.is-done) { animation: reveal-tape 0.4s steps(4) calc(var(--reveal-i, 0) * 100ms) backwards; }
  [data-magnetic].is-pulled { translate: var(--pull-x, 0px) var(--pull-y, 0px); }
}
@keyframes reveal-show { to { opacity: 1; clip-path: inset(0 0 0 0); } }
@keyframes reveal-rise { from { opacity: 0; translate: 0 18px; } }
@keyframes reveal-fade { from { opacity: 0; } }
@keyframes reveal-print { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes reveal-tape { from { opacity: 0; scale: 1.3; } }
/* the light sits on the card's own surface, under its text */
:where(.look-glow) { position: relative; isolation: isolate; }
.look-glow::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), var(--accent-soft), transparent 65%);
  opacity: 0; transition: opacity 0.3s ease;
}
.look-glow:hover::after { opacity: 1; }
/* paper gets every part, whatever has arrived on screen */
@media print {
  [data-reveal] { opacity: 1 !important; clip-path: none !important; animation: none !important; }
}

/* ---------- the consent card: a note taped to the page ----------
 * consent.js pins it to every page that counts visits; it lives here, in the stylesheet every page loads, so no page
 * shows it bare (the changelog loads no legal.css). Both answers look exactly alike and nothing is chosen for you:
 * the note asks, it does not nudge. It sticks on in three frames and comes off the same way (consent.js removes it
 * after 300 ms), and the question is set in the serif of the headings. */
.consent {
  position: fixed; z-index: 90; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  width: min(400px, calc(100vw - 32px)); padding: 24px 20px 18px; border-radius: var(--radius);
  border: 1px solid var(--line-2); background: var(--panel); color: var(--ink-2); box-shadow: var(--shadow);
  font-size: 0.9rem; line-height: 1.55;
  opacity: 0; translate: 0 12px; rotate: -1.2deg;
  transition: opacity 0.3s steps(3), translate 0.3s steps(3), rotate 0.3s steps(3);
}
.consent.is-open { opacity: 1; translate: none; rotate: none; }
.consent::before {
  content: ""; position: absolute; left: 50%; top: -15px; width: 104px; aspect-ratio: 560 / 169; translate: -50% 0; rotate: -4deg;
  background: url("/assets/look/klebeband-a.webp") 50% 50% / contain no-repeat; opacity: 0.94; pointer-events: none;
  filter: drop-shadow(0 2px 3px rgb(0 0 0 / 0.25));
}
.consent__title {
  margin: 0; color: var(--ink); font-family: var(--font-serif); font-style: italic; font-weight: 400;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144; font-size: 1.22rem; line-height: 1.25; letter-spacing: -0.01em;
}
.consent__body { margin: 10px 0 0; }
.consent__more { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.consent__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.consent__btn {
  min-height: 42px; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line-2);
  background: var(--panel-2); color: var(--ink); font: 600 0.9rem/1 var(--font-ui); cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.consent__btn:hover { border-color: var(--faint); background: var(--bg-2); }
.consent__btn:active { translate: 0 1px; }
.consent__btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 640px) { .consent { left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); width: auto; } }
/* the footer's way back to the question */
.foot__consent { padding: 0; border: 0; background: none; color: var(--muted); font: inherit; cursor: pointer; }
.foot__consent:hover { color: var(--ink); }
.foot__consent[hidden] { display: none; }

/* ---------- every word readable, at night and on paper (WCAG AA, contrast.browser.mjs) ----------
 * Words keep their colours; where one fell short of 4.5:1 (3:1 for large words) it moves one small step. The
 * tokens above carry the steps: --accent-fill is the violet under white words (at night the accent itself holds
 * them at 4.2:1 only), --look-app-faint the faint words on the app window's panels, which are lighter than the night
 * page; on paper the greens and reds count one shade darker. */
/* a link inside running text is underlined, not told apart by its colour alone */
.foot__bar p a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); }
.foot__bar p a:hover { text-decoration-color: currentColor; }
.msg--me, .bubble--me, .btw__q, .remember, .phone__btns .yes { background: var(--accent-fill); }
.app { --faint: var(--look-app-faint); }
/* the touch rows count in the theme's green and red (at night the very colours they had) */
.touch__row .plus { color: var(--done); }
.touch__row .minus { color: var(--minus); }
/* the cursors' names are black: near-black on the violet label fell just short */
.cur { color: #000; }
/* A card or step you are not on steps back into the faint ink instead of fading to a third, which left its words
 * unreadable: the faint ink is as far back as words may go and still read; violet words keep a trace of violet.
 * The ink changes as gently as the fade did. */
.js .spot:not(.is-center) .spot__copy { opacity: 1; }
.js .spot:not(.is-center) .spot__copy :is(h3, p) { color: var(--faint); }
.js .spot:not(.is-center) .spot__num { color: color-mix(in oklab, var(--accent-ink) 40%, var(--faint)); }
.spot__copy :is(h3, p, .spot__num) { transition: color 0.4s var(--ease); }
@media (min-width: 861px) {
  .js .scene-step:not(.is-active) { opacity: 1; }
  .js .scene-step:not(.is-active) :is(h3, p, .scene-step__num) { color: var(--faint); }
  .js .scene-step:not(.is-active) a { color: color-mix(in oklab, var(--accent-ink) 40%, var(--faint)); }
}
.scene-step :is(h3, p, a, .scene-step__num) { transition: color 0.45s var(--ease); }

/* ---------- small screens and calm settings ---------- */
@media (max-width: 640px) {
  /* a phone keeps one still frame of grain: moving a full-screen layer costs battery */
  body::after { animation: none; }
}
@media (prefers-reduced-motion: reduce) {
  body::after, .look-bird i, .look-flight, .look-horizon__glow, .look-swallow img, .look-plate--sky .look-bird,
  .hub__crystal, .look-tile-crystal, .look-dl-crystal, .look-tape { animation: none; }
  .look-flight { transform: translate(18vw, 0); }
  /* a subpage's head is all words where the swallow would stop, so its sky stays empty and still */
  .page-sky { display: none; }
  .w__ink path { animation: none; stroke-dashoffset: 0; }
  /* the Aylinge stand where the markup put them; the runner glides with the line without waddling */
  .ayl .ayling__eyes, .ayl .ayl__float, .foot__mirror, .top__runner.is-running .ayl__pose { animation: none; }
  .who-menu__panel:not([hidden]) { animation: none; }
  .consent { transition: none; translate: none; rotate: none; }
  .spot__copy :is(h3, p, .spot__num), .scene-step :is(h3, p, a, .scene-step__num) { transition: none; }
}
