/* The site's own type, the same on every device (the owner, 2026-11-09: iPhone and HarmonyOS drew
   their own system fonts). Inter for text and JetBrains Mono for terminals, self-hosted under the
   SIL Open Font License (assets/fonts/*-OFL.txt). Chinese, Japanese and Korean come from
   assets/fonts/cjk.css, Noto Sans cut to each page's characters by tools/build-fonts.py. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("assets/fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 100 800; font-display: swap;
  src: url("assets/fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 100 800; font-display: swap;
  src: url("assets/fonts/jetbrains-mono-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* The nav's font (the owner, 2026-11-09: rounder, with shorter letters than the system font).
   Nunito, self-hosted under the SIL Open Font License (assets/fonts/Nunito-OFL.txt), latin only;
   other scripts fall back to the system font. Only the nav uses it. */
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 200 1000; font-display: swap;
  src: url("assets/fonts/nunito-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 200 1000; font-display: swap;
  src: url("assets/fonts/nunito-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* Nodtop. Colour is used only the way the app uses it: to show status.
   Identity: a night-blue page, cool mist for light bands, the Island's black capsule as the
   recurring shape, session dots as the visual language, and the system font. */

:root {
  --black: #000;          /* the Island itself, and nothing else */
  --night: #10151f;       /* dark bands */
  --night-2: #192030;     /* raised surfaces on night */
  --night-3: #232c40;     /* controls on night */
  --paper: #eef1f6;       /* light bands */
  --white: #fff;
  --ink: #121826;
  --steel: #556075;       /* secondary text on paper */
  --mist: #9ba5b8;        /* secondary text on night */
  --surface: var(--night-2);
  --hair: rgba(170, 190, 230, 0.14);
  --hair-light: #d6dce7;

  /* Status, from AgentIslandView.swift */
  --run: #5cbdff;
  --wait: #ffbd3d;
  --done: #52d685;
  --deny: #ff7361;
  --allow: #338ff5;
  --listen: #73b8ff;

  /* Apple devices keep their own fonts, as before (the owner, 2026-11-09): SF, and PingFang, Hiragino
     and Apple SD Gothic Neo for the language menu. Only they have these, so every other device skips
     to the embedded Inter and Noto Sans, and the embedded files are never downloaded on Apple. */
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "PingFang TC", "Hiragino Sans", "Apple SD Gothic Neo", "Inter", "Nodtop Names", "Segoe UI", Roboto, Arial, sans-serif;
  --display: var(--font);
  --nav-font: "Nunito", var(--font);
  --rounded: ui-rounded, "SF Pro Rounded", "Nunito", var(--font);
  --mono: ui-monospace, "SF Mono", Menlo, "JetBrains Mono", monospace;

  --ease: cubic-bezier(0.28, 0.11, 0.32, 1);
  --spring: cubic-bezier(0.34, 1.32, 0.64, 1);
  --nav-h: 70px;
  --gutter: max(22px, env(safe-area-inset-left));
}

*, *::before, *::after { box-sizing: border-box; }
/* No tap highlight: HarmonyOS's browser flashed a cyan square over every button tapped. Buttons show
   their own pressed and focus states. */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: var(--nav-h); -webkit-tap-highlight-color: transparent; }
body {
  margin: 0;
  background: var(--night);
  color: var(--white);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.012em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
sup { font-size: 0.55em; line-height: 0; vertical-align: 0.9em; margin-left: 0.1em; }
sup a { text-decoration: none; color: var(--mist); }
/* Neutral, since blue means working on this page. */
:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.8); outline-offset: 3px; border-radius: 6px; }
.band.light :focus-visible { outline-color: var(--ink); }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--white); color: var(--ink); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.wrap { width: min(1080px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.wrap.narrow { width: min(820px, 100% - 2 * var(--gutter)); }
.center { text-align: center; }

/* Type */
.display, .headline, .title, .cap h2, .step h3 { margin: 0; font-family: var(--display); font-weight: 700; letter-spacing: -0.028em; }
/* A size smaller since 2026-11-12 (the owner), so the closed Mac sits higher and its shadow floats clear of the display switch. */
/* The hero title: a size up and heavier than the other headings (the user, 2026-11-16; was 86 px, 700). */
.display { font-size: clamp(40px, 6.9vw, 96px); line-height: 0.98; font-weight: 800; }
/* On a phone the heavier letters broke the title into three lines; it keeps two there. */
@media (max-width: 759px) { .display { font-weight: 700; } }
/* Headlines break into even lines, so a single word never sits alone; body text avoids orphans. */
.display .line, .headline, .title, .cap h2, .step h3, .g h3 { text-wrap: balance; }
.lede, .aside, .cap p, .step p, .hl-card > p { text-wrap: pretty; }
.headline { font-size: clamp(38px, 5.4vw, 72px); line-height: 1.02; }
.title { font-size: clamp(32px, 4vw, 52px); line-height: 1.05; }
.line { display: block; }
.lede {
  margin: 20px auto 0;
  max-width: 34em;
  font-size: clamp(19px, 1.6vw, 22px);
  line-height: 1.45;
  font-weight: 450;
  letter-spacing: -0.01em;
  color: var(--mist);
}
.aside { max-width: 40em; margin: 40px 0 0; color: var(--mist); font-size: 17px; }
.aside.center { margin-inline: auto; }

/* Buttons */
.pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 22px;
  border: 0; border-radius: 980px;
  background: #f2f5fa; color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6), 0 1px 0 rgba(255, 255, 255, 0.08);
  font-size: 17px; font-weight: 600; letter-spacing: -0.01em; text-decoration: none; cursor: pointer;
  transition: background 0.2s, transform 0.2s var(--ease);
}
.pill:hover { background: #fff; }
.pill:active { transform: scale(0.97); }
.band.light .pill { background: var(--ink); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.pill-small { min-height: 34px; padding: 0 15px; font-size: 14px; }
.link-play {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 0 6px; border: 0; background: none; cursor: pointer;
  font-size: 17px; font-weight: 500; color: #dfe5f0;
}
.link-play:hover { text-decoration: underline; text-underline-offset: 4px; }
.play-ring { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid currentColor; position: relative; }
.play-ring::after {
  content: ""; position: absolute; left: 9.5px; top: 6.5px;
  border-left: 8px solid currentColor; border-top: 5.5px solid transparent; border-bottom: 5.5px solid transparent;
}

/* Sound: off until clicked. The speaker shows waves while on and a slash while off. */
.snd-icon { width: 20px; height: 20px; display: block; }
/* The speaker is drawn through <use>, whose copy only page variables can reach, so the state is
   passed down as --wave and --slash. */
.spk-wave { opacity: var(--wave, 0); transform: scale(calc(0.6 + 0.4 * var(--wave, 0))); transform-origin: 11px 12px; transition: opacity 0.25s, transform 0.4s var(--spring); }
.spk-slash { opacity: var(--slash, 1); transition: opacity 0.2s; }
.snd-icon { --wave: 0; --slash: 1; }
.sound-on .snd-icon { --wave: 1; --slash: 0; }
.snd-btn { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: none; color: #c3cad8; cursor: pointer; transition: color 0.2s, background 0.2s; }
.snd-btn:hover { color: #fff; background: rgba(255, 255, 255, 0.07); }
.sound-on .snd-btn { color: #fff; }
/* The hero's sound switch (2026-11-12, the owner's choice): a quiet round button as tall as Download
   free beta, with the nav's speaker, so the two always look alike and sit on one row on a phone.
   Its name is the tooltip and the aria-label, which sound.js flips with the state. */
.snd-hero {
  display: grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 50%; background: rgba(255, 255, 255, 0.05);
  color: #dfe5f0; cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s var(--ease);
}
.snd-hero:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.26); }
.snd-hero:active { transform: scale(0.94); }
.sound-on .snd-hero { color: #fff; border-color: rgba(255, 255, 255, 0.3); }
/* The hero's two buttons a size smaller (the owner, 2026-11-12: the button and its text read too big,
   most in Chinese and Japanese), still a pair of equal height. */
.ctas .pill { min-height: 38px; padding: 0 18px; font-size: 15px; }
.ctas .snd-hero { width: 38px; height: 38px; }
.ctas .snd-hero .snd-icon { width: 17px; height: 17px; }
html:lang(ja) .ctas .pill, html:lang(zh-Hans) .ctas .pill, html:lang(zh-Hant) .ctas .pill, html:lang(ko) .ctas .pill { font-size: 14px; font-weight: 500; }
html:lang(ja) .pill-small, html:lang(zh-Hans) .pill-small, html:lang(zh-Hant) .pill-small, html:lang(ko) .pill-small { font-size: 13px; }
html:not(.js) [data-sound] { display: none; }

/* Nav */
/* The menu is a floating black capsule, the Island itself. It stays black over light bands too. */
.nav {
  position: fixed; z-index: 50; top: 10px; left: 50%; translate: -50% 0;
  width: max-content; max-width: calc(100% - 20px); height: 50px;
  display: flex; align-items: center; gap: 6px; padding: 0 7px 0 16px;
  border-radius: 25px; background: rgba(0, 0, 0, 0.9); color: #fff;
  -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09), 0 12px 32px rgba(4, 8, 16, 0.35);
}
.nav-name { display: flex; align-items: center; gap: 9px; margin-right: 14px; min-height: 44px; font: 800 18.5px/1 var(--nav-font); letter-spacing: -0.01em; text-decoration: none; white-space: nowrap; }
.logo { width: 36px; height: 16px; overflow: visible; }
/* The Island with a session either side of the camera, as the favicon and avatar draw it:
   a dark grey capsule, since the nav itself is black. */
.logo .l-pill { fill: #24262d; }
.logo circle { stroke-width: 1.7; }
.l-run { fill: none; stroke: var(--run); }
.l-wait { fill: var(--wait); animation: pulse 0.9s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
.nav-links { display: flex; gap: 2px; margin-right: 8px; }
.nav-links a { position: relative; display: grid; place-items: center; min-height: 44px; padding: 0 10px; font: 600 13.5px/1 var(--nav-font); color: #c3cad8; text-decoration: none; border-radius: 99px; white-space: nowrap; transition: color 0.2s, background 0.2s; }
.nav-links a:hover { color: #fff; background: rgba(255, 255, 255, 0.07); }
.nav-links a[aria-current] { color: #fff; }
/* The section you're in gets a small blue "working" dot, the way the Island marks a session. */
.nav-links a::after { content: ""; position: absolute; left: 50%; bottom: 6px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--run); transform: scale(0); transition: transform 0.4s var(--spring); }
.nav-links a[aria-current]::after { transform: scale(1); }
.nav-cta { margin-left: 4px; }

/* Session dots used as icons: a ring with a code inside, coloured only by status. */
.ldot { --c: #6f7a90; flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 1.8px var(--c); font: 700 10px/1 var(--rounded); letter-spacing: 0; color: #fff; transition: box-shadow 0.3s, background 0.3s, color 0.3s; }
.ldot[data-s="done"] { --c: var(--done); }
.ldot[data-s="waiting"] { --c: var(--wait); background: var(--wait); color: #000; animation: pulse 0.8s ease-in-out infinite alternate; }

/* Language capsule, and the card that opens out of it. */
.lang-menu, .nav-menu { position: static; }
.lang-cap, .nav-menu summary { list-style: none; display: flex; align-items: center; gap: 6px; min-height: 44px; min-width: 44px; padding: 0 9px 0 9px; border-radius: 99px; cursor: pointer; }
.lang-cap::-webkit-details-marker, .nav-menu summary::-webkit-details-marker { display: none; }
.lang-cap:hover, .nav-menu summary:hover, .lang-menu[open] .lang-cap, .nav-menu[open] summary { background: rgba(255, 255, 255, 0.08); }
.lang-chev { width: 7px; height: 7px; margin: -3px 2px 0; border-right: 1.6px solid #9ba5b8; border-bottom: 1.6px solid #9ba5b8; transform: rotate(45deg); transition: transform 0.4s var(--spring); }
.lang-menu[open] .lang-chev { transform: translateY(3px) rotate(-135deg); }
.lang-card, .nav-card {
  position: absolute; top: calc(100% + 8px); right: 0; width: 264px; padding: 6px;
  border-radius: 24px; background: #000; color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09), 0 24px 60px rgba(4, 8, 16, 0.5);
  transform-origin: 78% 0; animation: cardgrow 0.6s var(--spring) both;
}
.lang-menu.closing .lang-card, .nav-menu.closing .nav-card { animation: cardshrink 0.22s var(--ease) both; }
/* The card grows out of the capsule: it starts as a capsule-sized pill at its top right corner,
   then opens down and to the left, like the Island opening into a card. */
@keyframes cardgrow {
  from { opacity: 0.4; transform: translateY(-8px); clip-path: inset(0 0 calc(100% - 44px) calc(100% - 96px) round 22px); }
  40% { opacity: 1; }
  to { clip-path: inset(0 round 24px); }
}
@keyframes cardshrink { to { opacity: 0; transform: translateY(-8px); clip-path: inset(0 0 calc(100% - 44px) calc(100% - 96px) round 22px); } }
@keyframes cardin { from { opacity: 0; transform: translateY(-10px) scale(0.86, 0.6); } }
@keyframes cardout { to { opacity: 0; transform: translateY(-6px) scale(0.94, 0.8); } }
/* Rows arrive one after another as the card opens, and leave together. */
.lang-card > a, .nav-card > a { position: relative; z-index: 1; animation: rowin 0.5s var(--spring) both; animation-delay: calc(80ms + var(--i, 0) * 26ms); }
.closing .lang-card > a, .closing .nav-card > a { animation: rowout 0.12s var(--ease) both; }
@keyframes rowin { from { opacity: 0; transform: translateY(-6px); } }
@keyframes rowout { to { opacity: 0; } }
.lang-card > a:nth-of-type(2), .nav-card > a:nth-of-type(2) { --i: 1; } .lang-card > a:nth-of-type(3), .nav-card > a:nth-of-type(3) { --i: 2; }
.lang-card > a:nth-of-type(4), .nav-card > a:nth-of-type(4) { --i: 3; } .lang-card > a:nth-of-type(5), .nav-card > a:nth-of-type(5) { --i: 4; }
.lang-card > a:nth-of-type(6), .nav-card > a:nth-of-type(6) { --i: 5; } .lang-card > a:nth-of-type(7), .nav-card > a:nth-of-type(7) { --i: 6; }
.lang-card > a:nth-of-type(8), .nav-card > a:nth-of-type(8) { --i: 7; }
.lang-row { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 4px 12px 4px 9px; border-radius: 18px; text-decoration: none; font-size: 15px; color: #dfe5f0; transition: color 0.2s; }
.lang-row:hover, .lang-row:focus-visible { background: rgba(255, 255, 255, 0.08); color: #fff; }
.lang-row:hover .ldot:not([data-s]), .lang-row.lit .ldot:not([data-s]) { --c: var(--run); background: rgba(80, 160, 255, 0.16); }
/* With script, one highlight slides between rows instead of each row lighting up on its own. */
.lang-glow { position: absolute; z-index: 0; left: 6px; right: 6px; top: 0; height: 44px; border-radius: 18px; background: rgba(255, 255, 255, 0.09); opacity: 0; pointer-events: none; transition: transform 0.38s var(--spring), height 0.38s var(--spring), width 0.38s var(--spring), opacity 0.2s; }
.has-glow > a:hover, .has-glow > a:focus-visible { background: none; }
.has-glow > a:focus-visible { outline-offset: -2px; }
/* The current language's green dot breathes once as the card opens. */
.lang-menu[open]:not(.closing) .lang-row[aria-current] .ldot { animation: langBreathe 1.3s ease-out 0.3s both; }
@keyframes langBreathe { from { box-shadow: inset 0 0 0 1.8px var(--c), 0 0 0 0 rgba(82, 214, 133, 0.55); } to { box-shadow: inset 0 0 0 1.8px var(--c), 0 0 0 11px rgba(82, 214, 133, 0); } }
.lang-row[aria-current] { color: #fff; font-weight: 600; }
.lname { flex: 1; }
.lcheck { width: 12px; height: 7px; margin: -3px 2px 0 0; border-left: 2px solid var(--done); border-bottom: 2px solid var(--done); transform: rotate(-45deg); }

/* Small screens: the section links fold into a card under the capsule. */
.nav-menu { display: none; }
.nav-menu summary { justify-content: center; flex-direction: column; gap: 5px; padding: 0; width: 44px; }
.nav-menu summary i { display: block; width: 16px; height: 1.8px; border-radius: 1px; background: #000; filter: invert(1); transition: transform 0.4s var(--spring); }
.nav-menu[open] summary i:first-child { transform: translateY(3.4px) rotate(45deg); }
.nav-menu[open] summary i:last-child { transform: translateY(-3.4px) rotate(-45deg); }
.nav-card { left: 0; width: auto; display: grid; padding: 10px; }
.nav-card a:not(.pill) { display: flex; align-items: center; min-height: 48px; padding: 0 14px; border-radius: 16px; font: 700 18px/1 var(--nav-font); letter-spacing: -0.005em; text-decoration: none; }
.nav-card a:not(.pill):hover { background: rgba(255, 255, 255, 0.08); }
.nav-card .pill { margin: 8px 4px 4px; }
@media (max-width: 900px) {
  .nav { width: calc(100% - 20px); padding-left: 14px; }
  .nav-name { margin-right: auto; }
  .nav-links { display: none; }
  .nav-menu { display: block; }
  .lang-card { left: 0; width: auto; display: grid; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) { .nav-cta { display: none; } }

/* A first-visit offer to switch language, as a small Island notification under the menu. */
.lang-hint {
  position: fixed; z-index: 49; top: 68px; left: 50%; translate: -50% 0; max-width: calc(100% - 20px);
  display: flex; align-items: center; gap: 4px; padding: 4px 4px 4px 6px; border-radius: 99px; background: #000; color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09), 0 16px 40px rgba(4, 8, 16, 0.45);
  transform-origin: 50% 0; animation: cardin 0.6s var(--spring) both;
}
.lang-hint.closing { animation: cardout 0.2s var(--ease) both; }
.lang-hint a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px 0 4px; font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.lang-hint button { width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; color: #9ba5b8; font-size: 22px; line-height: 1; cursor: pointer; }
.lang-hint button:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }

/* Pinned scenes */
.scene { position: relative; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.hero { height: 600vh; }
.airnod { height: 460vh; }

/* Hero */
/* Night, with a faint grid of dots that fades out toward the edges. */
/* Safari on iPhone and iPad (iOS 26 and later) fills the area under its floating toolbar with one
   solid colour while a sticky or fixed layer the size of the screen reaches the bottom (WebKit's
   LocalFrameView::fixedContainerEdges): the first solid background-color found walking up from
   the element at the bottom edge's middle, else the pixels of a 2 px strip 4 px above the edge,
   and for a screen-sized layer it keeps the first colour it found. The hero's glow sampled as a
   flat band darker than the glow, and as grey once the MacBook had zoomed past the edge (the
   owner, 2026-11-12 and -13). So the stage carries a solid night under its gradients, which hide
   it (the colour Safari takes), and on touch Safari whatever reaches the stage's bottom (the glow,
   the zoomed MacBook) fades into that night above the toolbar, under the copy and the switch, so
   the fill and the stage meet without a line. */
.hero .stage { background: radial-gradient(110% 62% at 50% 100%, #1b2335 0%, var(--night) 62%) var(--night); }
@supports (-webkit-touch-callout: none) {
  .hero .stage::after { content: ""; position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; height: clamp(64px, 14svh, 120px); background: linear-gradient(rgba(16, 21, 31, 0), var(--night)); pointer-events: none; }
}
.hero .stage::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(170, 190, 230, 0.16) 1px, transparent 1.4px); background-size: 26px 26px; background-position: center top;
  -webkit-mask-image: radial-gradient(75% 60% at 50% 30%, #000 10%, transparent 75%); mask-image: radial-gradient(75% 60% at 50% 30%, #000 10%, transparent 75%);
}
.hero-copy { position: absolute; z-index: 3; left: 0; right: 0; top: calc(var(--nav-h) + 6.5vh); padding: 0 var(--gutter); text-align: center; will-change: transform, opacity; }
.hero-copy .lede { max-width: 46em; margin-inline: auto; text-wrap: balance; }
/* Wide screens keep each of the lede's two lines whole in every language (two since round 18). */
@media (min-width: 1200px) { .hero-copy .lede { max-width: 54em; } }
/* The lede breaks between its phrases on wide screens (the owner, 2026-11-09); phones wrap freely. */
@media (max-width: 759px) { .hero-copy .lede .lb { display: none; } }
/* The new MacBook Pro's display name in a gradient like Apple's own (the owner, 2026-11-09).
   Light coming off a bright display: near white into azure, periwinkle and lavender, at about the
   lede's brightness, in the lede's own weight (the owner, 2026-11-10; semibold stood out). (The rainbow read as out of place;
   the pale silver-to-cyan sheen after it read as washed out, the owner, 2026-11-09.) One line, so
   the gradient never splits. */
/* Drawn as its own inverse and flipped (#88c8ff, #7cc2ff, #8b9dff, #d1a3ff), so a forced dark mode,
   which darkens light gradients, leaves it as it is: see .ds-thumb. */
.xdr { background: linear-gradient(90deg, #773700 0%, #833d00 18%, #746200 58%, #2e5c00 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; filter: invert(1);
  font-weight: inherit; white-space: nowrap; }
/* Japanese breaks between phrases, not inside a word like デスク. */
:lang(ja) .hero-copy .lede { word-break: auto-phrase; }
.ctas { margin-top: 28px; display: flex; gap: 14px; justify-content: center; align-items: center; flex-wrap: wrap; }
.hero-note { margin: 14px 0 0; color: var(--mist); font-size: 15px; letter-spacing: 0.01em; }
/* A phone keeps the hero's sound switch, as a computer shows it (the owner, 2026-11-09), closer to
   the lede, so the closed Mac still fits above the display switch. */
@media (max-width: 759px) {
  .ctas { margin-top: 18px; }
}
@media (max-width: 759px) and (max-height: 700px) {
  /* A short phone (an iPhone SE, or Safari's bars showing): smaller hero type, so the closed Mac
     fits between the lede and the switch. */
  .hero .display { font-size: min(10vw, 40px); }
  .hero-copy .lede { font-size: 16px; }
}
@media (max-width: 759px) and (max-height: 600px) {
  /* The shortest (an SE with Safari's bars): tighter still, for the sound switch's row. */
  .hero .display { font-size: min(9vw, 36px); }
  .hero-copy .lede { font-size: 15px; margin-top: 12px; }
  .ctas { margin-top: 12px; }
}

/* --lid-r is the corner radius of the lid and of the deck's front, so closed they make one outline. */
.mac { position: absolute; left: 50%; top: 0; width: var(--mac-w, 900px); margin-left: calc(var(--mac-w, 900px) / -2); z-index: 1; --lid-r: calc(var(--mac-w, 900px) * 0.026); }
/* will-change keeps the laptop's painted layers while the camera zooms, rather than repainting them at
   every new scale: in Chrome that took raster from about 550 ms to 50 ms over the zoom, and the drawing
   is repainted sharp once it stops. */
.mac-move { position: relative; perspective: 4600px; perspective-origin: 50% 30%; transform-origin: 50% 0; transform-style: preserve-3d; will-change: transform; }
/* The lid is as deep as the deck (0.69 of the width), so closed it covers the deck to its front edge. */
.lid { position: relative; height: calc(var(--mac-w, 900px) * 0.69); transform-origin: 50% 100%; transform-style: preserve-3d; }
.lid-front, .lid-back { position: absolute; inset: 0; -webkit-backface-visibility: hidden; backface-visibility: hidden; border-radius: var(--lid-r) var(--lid-r) 4px 4px; }
/* The back is turned over, so its top is the hinge. Rounded all round, it has the lid's rounded front
   corners when closed, the same as the layers under it and the deck's front. */
.lid-back { border-radius: var(--lid-r); }
.lid-front { background: #050506; padding: var(--mac-bezel, calc(var(--mac-w, 900px) * 0.008)); box-shadow: 0 0 0 1px #303136; opacity: clamp(0, calc((var(--lid-open, 0) - .08) * 6), 1); }
/* Space black aluminium, lit from the upper left like the screen's glass. Seen closed, the lid-back's
   top is the hinge and its left is the left. The anodised top is a touch brighter toward the light,
   with one soft sheen raking across it, and only the edges facing the light catch it (::before). */
.lid-back {
  transform: rotateX(180deg) translateZ(var(--lid-t));
  background:
    linear-gradient(180deg, transparent 94%, rgba(0, 0, 0, 0.28)),
    radial-gradient(70% 130% at 88% 0%, rgba(255, 255, 255, 0.025), transparent 70%),
    radial-gradient(120% 160% at 12% -10%, #3c3d42 0%, #2e2f33 42%, #242529 72%, #1d1e21 100%);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.55);
}
.lid-back::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), inset 1px 0 0 rgba(255, 255, 255, 0.13), inset -1px 0 0 rgba(255, 255, 255, 0.035);
  -webkit-mask-image: radial-gradient(95% 140% at 0% 0%, #000 0%, rgba(0, 0, 0, 0.55) 38%, rgba(0, 0, 0, 0.12) 72%, rgba(0, 0, 0, 0.06) 100%);
  mask-image: radial-gradient(95% 140% at 0% 0%, #000 0%, rgba(0, 0, 0, 0.55) 38%, rgba(0, 0, 0, 0.12) 72%, rgba(0, 0, 0, 0.06) 100%);
}
.lid-back::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(106deg, transparent 6%, rgba(255, 255, 255, 0.07) 22%, rgba(255, 255, 255, 0.025) 36%, transparent 50%); }
/* The lid's thickness: the back sits --lid-t behind the screen, and thin layers in the lid's own
   rounded shape fill the gap, so its edge follows the corners as the lid turns. Only their rims
   show: lit along the lid's front edge (the layers' top), dark down the sides. */
.lid { --lid-t: calc(var(--mac-w, 900px) * 0.0038); }
.lid-layer { position: absolute; inset: 0; border-radius: var(--lid-r); background: linear-gradient(90deg, rgba(255, 255, 255, 0.05), transparent 45%), linear-gradient(180deg, #45464c, #2a2b2f 2.5%, #1f2023 30%); transform: translateZ(calc(var(--lid-t) * var(--k) / -4)); pointer-events: none; }
[data-display="display"] .lid-layer { display: none; }
/* main.js: "turned" once the back and layers can't be seen, "flat" once the lid is upright. Out of the
   3D scene they're no longer sorted and re-rastered against the screen every frame. */
.lid[data-lid="turned"] > .lid-back, .lid[data-lid="turned"] > .lid-layer,
.lid[data-lid="flat"] > .lid-back, .lid[data-lid="flat"] > .lid-layer { display: none; }
.lid[data-lid="flat"] { transform-style: flat; }
.screen { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: calc(var(--mac-w, 900px) * 0.018) calc(var(--mac-w, 900px) * 0.018) 2px 2px; background: linear-gradient(125deg, #202125, #08090b 45%, #121316 90%); container-type: inline-size; }
/* main.js fades the wallpaper, menu bar and windows in as the screen wakes, and dims and softens them
   during the zoom, writing each one's opacity and filter directly so nothing else on the screen restyles. */
.wall {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.15), transparent 42%, rgba(0,0,0,.1)), url("assets/hero-wallpaper.jpg") center / cover, #27272a;
}
.menubar { position: absolute; inset: 0 0 auto; height: 2.15cqw; background: rgba(20, 20, 26, 0.55); display: flex; gap: 1.4cqw; padding-left: 1.6cqw; align-items: center; }
.menubar span { width: 2.6cqw; height: 0.5cqw; border-radius: 1cqw; background: rgba(0, 0, 0, 0.45); filter: invert(1); } /* white at 45%, kept by forced dark */
.menubar span:first-child { width: 1cqw; height: 1cqw; border-radius: 50%; }
.term {
  position: absolute; border-radius: 1cqw; background: rgba(14, 14, 18, 0.86);
  box-shadow: 0 1.5cqw 4cqw rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  font-family: var(--mono); font-size: 1.45cqw; line-height: 1.75; color: #d6d6dc; padding: 0 1.8cqw 1.4cqw;
}
.term-bar { display: flex; align-items: center; gap: 0.6cqw; height: 3cqw; margin: 0 -1.8cqw 0.8cqw; padding: 0 1.2cqw; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.term-bar i { width: 0.9cqw; height: 0.9cqw; border-radius: 50%; background: #45464c; }
.term-bar b { margin: 0 auto; font-family: var(--font); font-weight: 500; font-size: 1.2cqw; color: #8d8d95; transform: translateX(-1.5cqw); }
.term p { margin: 0; white-space: nowrap; }
.term em { font-style: normal; color: var(--run); margin-right: 0.6cqw; }
.term .dim { color: #7c7c85; }
.term em { color: #e9e9ee; }
.term .think em { color: var(--run); animation: twinkle 1.6s ease-in-out infinite; }
.term .think { color: var(--run); }
@keyframes twinkle { 50% { opacity: 0.35; } }
.prompt { margin-top: 0.9cqw; padding: 0.5cqw 1cqw; border: 1px solid #4a4a52; border-radius: 0.7cqw; color: #9a9aa3; }
.caret { display: inline-block; width: 0.75cqw; height: 1.5cqw; vertical-align: -0.25cqw; background: #c9c9d1; animation: caret 1.1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.ask { margin-top: 0.6cqw; padding: 0.6cqw 1cqw; border: 1px solid rgba(255, 189, 61, 0.55); border-radius: 0.7cqw; }
.ask b { color: #fff; font-weight: 500; }
.ask .sel { color: var(--wait); }
.term-a { left: 4%; top: 13%; width: 46%; height: 50%; }
.term-b { left: 52%; top: 21%; width: 44%; height: 42%; }
.term-c { left: 26%; top: 60%; width: 46%; height: 34%; }

/* The deck lies flat, reaching toward you from the hinge, with its front edge facing you. */
.deck {
  position: absolute; left: 0; right: 0; top: calc(100% + 1px); height: calc(var(--mac-w, 900px) * 0.69);
  transform-origin: 50% 0; transform: rotateX(90deg); transform-style: preserve-3d;
  border-radius: 0 0 var(--lid-r) var(--lid-r);
  background: linear-gradient(180deg, #202125 0%, #303136 18%, #393a3f 73%, #2b2c31 100%);
  box-shadow: inset 0 1px 0 #63646b, inset 0 0 0 1px #48494f, inset 0 -3px 6px rgba(255, 255, 255, 0.06);
}
.hinge { position: absolute; left: 13%; right: 13%; top: calc(100% - var(--mac-w, 900px) * 0.004); height: calc(var(--mac-w, 900px) * 0.012); transform: translateZ(-2px); background: linear-gradient(180deg, #0a0b0c, #303136 45%, #101113 100%); border-radius: 1px; box-shadow: inset 0 1px rgba(255,255,255,.12); opacity: clamp(0, calc(var(--lid-open, 0) * 4), 1); }
.hinge i { display: none; }
/* Closed, a faint light runs along the hinge, so the lid reads as something about to open. */
.hinge-light { position: absolute; left: 16%; right: 16%; top: calc(var(--lid-h, 0px) - 2px); height: 4px; border-radius: 50%; background: radial-gradient(closest-side, rgba(200, 216, 255, 0.55), transparent); filter: blur(2px); opacity: calc(1 - var(--lid-open, 0) * 3); pointer-events: none; }
[data-display="display"] .hinge-light { display: none; }
.deck-reflection { position: absolute; inset: 0; pointer-events: none; overflow: hidden; border-radius: inherit; }
/* Its own layer, so moving it as the lid opens doesn't repaint the deck under its blur. */
.deck-reflection::after { content: ""; position: absolute; width: 62%; height: 86%; left: 18%; top: -55%; opacity: calc(var(--lid-open, 0) * .2); transform: translateY(calc(var(--lid-open, 0) * 78%)) skewX(-18deg); background: linear-gradient(180deg, rgba(255,255,255,.38), rgba(255,255,255,0) 70%); filter: blur(12px); will-change: transform, opacity; }
/* A real MacBook Pro layout, built by main.js: a short function row, then five rows of keys. */
.kbd { position: absolute; left: 12.5%; right: 12.5%; top: 4%; height: 45%; padding: calc(var(--mac-w, 900px) * 0.006); border-radius: 6px; background: #151517; box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.8); display: flex; flex-direction: column; gap: 1.6%; }
.kbd-row { flex: 1 1 0; display: flex; gap: 0.55%; }
.kbd-row.fn { flex-grow: 0.62; }
.kbd-row span { flex: var(--w, 1) 1 0; min-width: 0; border-radius: 3px; background: linear-gradient(180deg, #252529, #0b0b0c); box-shadow: inset 0 0.5px 0 rgba(255, 255, 255, 0.17); position: relative; }
.kbd-row span.tid { background: radial-gradient(circle at 50% 50%, #1a1a1c 55%, #2a2b2f 58%, #0c0c0d 62%); }
/* The backlight: the same keys again on top, with only their glow and legends, painted once. As the
   screen wakes main.js fades this one layer in, rather than repainting every key on every frame. */
.kbd-lit { position: absolute; inset: 0; padding: inherit; display: flex; flex-direction: column; gap: 1.6%; opacity: 0; will-change: opacity; pointer-events: none; transition: opacity 0.5s ease; }
/* main.js turns it on as the lid comes up: a slow, soft fade, as a real backlight comes on. */
.kbd-lit.on { opacity: 1; transition: opacity 1.6s cubic-bezier(0.25, 0.1, 0.25, 1) 0.1s; }
/* A faint light spilling round the keys, part of the same layer so it fades with them. */
.kbd-lit::before { content: ""; position: absolute; inset: -14% -3%; background: radial-gradient(58% 60% at 50% 50%, rgba(205, 216, 255, 0.11), transparent 72%); pointer-events: none; }
.kbd-lit .kbd-row span { background: none; box-shadow: 0 0 7px rgba(235, 239, 255, 0.4); }
.kbd-lit .kbd-row span.gap { visibility: hidden; }
.kbd-lit .kbd-row span::after { content: attr(data-key); position: absolute; top: 13%; left: 15%; color: rgba(237, 240, 246, 0.78); font: 500 clamp(3px, .62cqw, 7px)/1 var(--font); text-shadow: 0 0 4px rgba(255, 255, 255, 0.48); white-space: nowrap; }
.grille { position: absolute; top: 4%; width: 8.5%; height: 45%; background-image: radial-gradient(circle, #121214 0.9px, transparent 1.1px); background-size: 6px 6px; opacity: 0.9; }
.grille-l { left: 2.8%; } .grille-r { right: 2.8%; }
.pad { position: absolute; left: 30%; right: 30%; top: 52%; height: 41%; border-radius: 10px; background: linear-gradient(150deg, #36373c, #2a2b2f 70%); box-shadow: inset 0 0 0 1px #505158, inset 0 2px 5px rgba(0,0,0,.13); }
/* The one front face of the closed laptop: the lid has no front edge of its own, so no second shape
   with different corners peeks out below this one. The deck's front corners curve back toward the
   hinge, and a corner that turns away from you looks a little narrower and a little higher. So this
   flat face stops where the curved corner's outer edge appears (--corner-in), and a shoulder at each
   end carries its top edge up to meet the lid's rounded corner (--shoulder): a quarter ellipse as
   wide as the corner and as tall as it looks closed. main.js works both out from the perspective. */
.lip {
  position: absolute; left: var(--corner-in, 0px); right: var(--corner-in, 0px); top: 100%; height: calc(var(--mac-w, 900px) * 0.026);
  transform-origin: 50% 0; transform: rotateX(-90deg);
  border-radius: 0 0 calc(var(--mac-w, 900px) * 0.022) calc(var(--mac-w, 900px) * 0.022);
  background: linear-gradient(180deg, #a4a5ab 0%, #77787e 10%, #38393e 32%, #1c1d20 70%, #090a0b 100%);
}
/* The outline comes from main.js (--shoulder-path). The camera rises as the lid opens, and from higher
   up the corner rises 0.45 less. The edge's highlight fades as it turns away toward the side, which
   carries only a faint line, so the end reads as round rather than as a hook. The right one is the
   left one mirrored, a touch dimmer, away from the light. Each stands 0.8 px taller at its tip than
   the corner, tapering to nothing at the front, so it covers the deck's own outline there: two
   edges on one curve would show as a double line with a seam between. */
.lip::before, .lip::after {
  content: ""; position: absolute; bottom: 100%; left: 0; width: calc(var(--lid-r) - var(--corner-in, 0px)); height: calc(var(--shoulder, 0px) + 0.8px);
  transform-origin: 50% 100%; transform: scaleY(calc(1 - var(--lid-open, 0) * 0.45));
  clip-path: var(--shoulder-path, none);
  background: linear-gradient(90deg, #5d5e64, #8e8f95 45%, #a4a5ab 85%);
}
.lip::after { left: auto; right: 0; transform: scale(-1, calc(1 - var(--lid-open, 0) * 0.45)); background: linear-gradient(90deg, #55565c, #86878d 45%, #9d9ea4 85%); }
/* The shadow on the desk below the front edge (the owner, 2026-11-10): hung from the lip and drawn
   behind it, so it follows the lid and the camera. Light and set a little in front of the edge,
   densest in the middle like light from above. */
.lip-shadow { position: absolute; z-index: -1; left: 2%; right: 2%; top: calc(100% + var(--mac-w, 900px) * 0.012); height: calc(var(--mac-w, 900px) * 0.08); pointer-events: none;
  background: radial-gradient(50% 50% at 50% 30%, rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.22) 55%, transparent);
  filter: blur(calc(var(--mac-w, 900px) * 0.011)); }
.scoop { position: absolute; left: 50%; top: 0; width: 14%; height: 48%; transform: translateX(-50%); border-radius: 0 0 16px 16px / 0 0 100% 100%; background: linear-gradient(180deg, #141518, #3d3e43); box-shadow: inset 0 1px 2px rgba(0,0,0,.7), 0 1px 0 rgba(255,255,255,.12); }

/* The Island: one shape that grows, sized in points through --u (pixels per point).
   Values come from IslandLayout.swift and IslandMotion.swift in the app:
   Dynamic Island: a 58.5 x 32 pt pill floating 8 pt below the top, capsule radius 16, card radius 24.
   Notch: a 135 x 32 pt cutout on the top edge, bottom radius 14, card bottom radius 24. (macOS reports
   185 pt between the menu bar's two sides, which is wider than the notch looks; the owner, 2026-11-09.)
   External display: no cutout, so a pill with a 12 pt gap floats 4 pt under a 24 pt menu bar.
   Either way, each side holds 76 pt of dots, and the card is a 420 pt panel. */
:root, [data-display="island"] { --cut-w: 58.5; --cut-top: 8; --cap-r: 16; --card-top-r: 24; --notch-r: 16; }
[data-display="notch"] { --cut-w: 135; --cut-top: 0; --cap-r: 14; --card-top-r: 0; --notch-r: 14; }
[data-display="display"] { --cut-w: 12; --cut-top: 8; --cap-r: 16; --card-top-r: 24; --notch-r: 16; }
/* Only the hero draws a menu bar above the pill. */
[data-display="display"] .hero { --cut-top: 28; }
html[data-display="island"] [data-only]:not([data-only="island"]),
html[data-display="notch"] [data-only]:not([data-only="notch"]),
html[data-display="display"] [data-only]:not([data-only="display"]) { display: none; }

.island { --u: 1px; --side: 76; position: relative; width: calc(var(--u) * 420); height: calc(var(--u) * 260); pointer-events: none; }
.isl-shape {
  position: absolute; left: 50%; top: calc(var(--u) * var(--cut-top)); transform: translateX(-50%);
  width: calc(var(--u) * var(--cut-w)); height: calc(var(--u) * 32);
  background: #000;
  border-radius: calc(var(--u) * var(--card-top-r) * 0.667) calc(var(--u) * var(--card-top-r) * 0.667) calc(var(--u) * var(--notch-r)) calc(var(--u) * var(--notch-r));
  transition: width 0.55s var(--spring), height 0.6s var(--spring), border-radius 0.5s var(--ease), box-shadow 0.5s;
}
/* The camera behind the glass, at the cutout's centre. */
.isl-shape::after {
  content: ""; position: absolute; left: 50%; top: calc(var(--u) * 16); width: calc(var(--u) * 7); height: calc(var(--u) * 7); margin: calc(var(--u) * -3.5);
  border-radius: 50%; background: radial-gradient(circle at 35% 35%, #2a3a5a 0 18%, #0b0f18 45%, #050608 70%);
  box-shadow: 0 0 0 calc(var(--u) * 1) #0d0d10; opacity: 0.9; transition: opacity 0.3s;
}
[data-display="island"] .isl-shape, [data-display="display"] .isl-shape { border-radius: calc(var(--u) * 16); }
/* A display without a cutout has no camera behind the glass. */
[data-display="display"] .isl-shape::after { display: none; }
.island:not([data-state="notch"]) .isl-shape { width: calc(var(--u) * (var(--cut-w) + 2 * var(--side))); }
.island[data-state="card"] .isl-shape, .island[data-state="approving"] .isl-shape, .island[data-state="allowed"] .isl-shape {
  width: calc(var(--u) * 420); height: calc(var(--u) * (var(--cut-top) + var(--card-h, 192)));
  border-radius: calc(var(--u) * var(--card-top-r)) calc(var(--u) * var(--card-top-r)) calc(var(--u) * 24) calc(var(--u) * 24);
  box-shadow: 0 calc(var(--u) * 18) calc(var(--u) * 60) rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.07);
}
.island[data-state="card"] .isl-shape::after, .island[data-state="approving"] .isl-shape::after, .island[data-state="allowed"] .isl-shape::after { opacity: 0.35; }

/* Each side is 76 pt. The app lifts content on a notch because its black runs on into the bezel
   above; the page draws no bezel there, so both shapes centre their content (6 pt above and below). */
.isl-side { position: absolute; top: calc(var(--u) * (var(--cut-top) + 6)); width: calc(var(--u) * var(--side)); display: flex; justify-content: center; gap: calc(var(--u) * 4); transition: opacity 0.3s; }
.isl-side.left { right: calc(50% + var(--u) * var(--cut-w) / 2); justify-content: flex-end; padding-right: calc(var(--u) * 4); }
.isl-side.right { left: calc(50% + var(--u) * var(--cut-w) / 2); justify-content: flex-start; padding-left: calc(var(--u) * 4); }
.island[data-state="card"] .isl-side, .island[data-state="approving"] .isl-side, .island[data-state="allowed"] .isl-side { opacity: 0; transition-duration: 0.15s; }

.dot { --c: var(--mist); position: relative; width: calc(var(--u) * 20); height: calc(var(--u) * 20); display: block; transform: scale(0); opacity: 0; transition: transform 0.6s var(--spring), opacity 0.3s; transition-delay: calc(0.18s + var(--i, 0) * 80ms); }
.island:not([data-state="notch"]) .dot { transform: scale(1); opacity: 1; }
.island[data-state="notch"] .dot { transition-delay: 0s; transition-duration: 0.2s; }
.dot svg { width: 100%; height: 100%; overflow: visible; display: block; }
.dot .d-fill { fill: var(--c); opacity: 0; transition: opacity 0.35s, fill 0.35s; }
.dot .d-track { fill: none; stroke: var(--c); stroke-width: 1.9; opacity: 0.28; transition: stroke 0.35s, opacity 0.35s; }
.dot .d-arc { fill: none; stroke: var(--run); stroke-width: 1.9; stroke-linecap: round; stroke-dasharray: 28 100; transform-origin: 10px 10px; animation: spin 1.2s linear infinite; transition: opacity 0.3s; }
.dot text { font-family: var(--rounded); font-weight: 700; font-size: 8.4px; fill: #fff; text-anchor: middle; transition: fill 0.35s, opacity 0.3s; }
.dot .d-check { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; transition: stroke-dashoffset 0.45s var(--ease) 0.15s, opacity 0.2s; }
.dot[data-s="running"] { --c: var(--run); }
.dot[data-s="waiting"] { --c: var(--wait); animation: pulse 0.8s ease-in-out infinite alternate; }
.dot[data-s="waiting"] .d-fill { opacity: 1; }
.dot[data-s="waiting"] .d-track { opacity: 0; }
.dot[data-s="waiting"] text { fill: #000; }
.dot[data-s="done"] { --c: var(--done); }
.dot[data-s="done"] .d-track { opacity: 1; }
.dot[data-s="idle"] .d-track { opacity: 0.55; }
.dot[data-s="idle"] text { fill: var(--mist); }
/* Only a running session's arc turns; the others pause where they are as they fade (round 18). */
.dot:not([data-s="running"]) .d-arc { opacity: 0; animation-play-state: paused; }
/* A Codex square doesn't spin: its arc runs along the square's edge. */
/* Dash and gap add up to the outline's length (100), so the arc laps without pausing at the start. */
.dot.sq .d-arc { stroke-dasharray: 28 72; animation: arcrun 1.6s linear infinite; }
@keyframes arcrun { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -100; } }
/* A session that was just answered shows a check for a moment, then its letter again. */
.dot.checked text { opacity: 0; }
/* Context water: coloured by level, with the letter in black where the water covers it. */
.dot .d-water { transition: opacity 0.3s; }
.dot .d-under { fill: #000; }
.dot[data-s="waiting"] .d-water, .dot[data-s="waiting"] .d-under, .dot[data-s="failed"] .d-water, .dot[data-s="failed"] .d-under, .dot.checked .d-under { opacity: 0; }
/* A usage gauge in the agent's shape, with its number. */
.gauge { display: flex; align-items: center; gap: calc(var(--u) * 3); height: calc(var(--u) * 20); transform: scale(0); opacity: 0; transition: transform 0.6s var(--spring), opacity 0.3s; transition-delay: calc(0.18s + var(--i, 0) * 80ms); }
/* A fixed width, as main.js counts it (32), so the next gauge never moves with its digits' rendered
   width: text at the small Island's size measures a little differently, and the gauges jumped 2 px
   when the small Island handed over to the big one. */
.isl-side .gauge { width: calc(var(--u) * 32); flex: none; }
.island:not([data-state="notch"]) .gauge { transform: scale(1); opacity: 1; }
.island[data-state="notch"] .gauge { transition-delay: 0s; transition-duration: 0.2s; }
.gauge svg { width: calc(var(--u) * 15); height: calc(var(--u) * 15); overflow: visible; }
.gauge path { fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.gauge .g-track { stroke: rgba(255, 255, 255, 0.14); }
.gauge b { font: 600 calc(var(--u) * 11.5) / 1 var(--rounded); color: #fff; font-variant-numeric: tabular-nums; letter-spacing: 0; }
.dot.checked .d-check { opacity: 1; stroke-dashoffset: 0; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { from { scale: 1; } to { scale: 1.12; } }

/* The approval card inside the Island, laid out like AgentIslandView's card. */
.isl-card {
  position: absolute; left: 50%; top: calc(var(--u) * (var(--cut-top) + 18)); width: calc(var(--u) * 420); padding: 0 calc(var(--u) * 18);
  transform: translateX(-50%) translateY(calc(var(--u) * -10)) scale(0.96); opacity: 0;
  font-size: calc(var(--u) * 12); letter-spacing: 0; line-height: 1.3; color: #fff;
  transition: opacity 0.18s, transform 0.4s var(--ease);
}
.island[data-state="card"] .isl-card, .island[data-state="approving"] .isl-card, .island[data-state="allowed"] .isl-card { opacity: 1; transform: translateX(-50%); transition: opacity 0.35s 0.2s, transform 0.55s var(--spring) 0.12s; }
.ic-head { display: flex; align-items: center; gap: calc(var(--u) * 8); font-size: calc(var(--u) * 15); }
.ic-head b { font-weight: 600; }
.ic-alert { position: relative; isolation: isolate; width: calc(var(--u) * 17); height: calc(var(--u) * 17); flex: none; border-radius: 50%; font: 800 calc(var(--u) * 11.5) / 1 var(--rounded); font-style: normal; display: grid; place-items: center;
  /* The black "!" is a background clipped to the text, over an amber disc: a forced dark mode turns black text white, but leaves black backgrounds. */
  background: linear-gradient(#000, #000); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.ic-alert::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 50%; background: var(--wait); }
.ic-status { margin-left: auto; color: var(--wait); font-weight: 600; font-size: calc(var(--u) * 13); white-space: nowrap; }
.ic-where { display: flex; align-items: center; gap: calc(var(--u) * 5); margin-top: calc(var(--u) * 7); color: #9a9a9a; font-size: calc(var(--u) * 12.5); white-space: nowrap; }
.ic-where svg { width: calc(var(--u) * 13); height: calc(var(--u) * 13); flex: none; }
.ic-where svg + span + svg { margin-left: calc(var(--u) * 4); }
.tag { padding: calc(var(--u) * 2) calc(var(--u) * 8); border-radius: 99px; background: #333; color: #fff; font-weight: 600; font-size: calc(var(--u) * 11.5); }
/* The command box, as the app's card lays out a shell command since 2026-11-06: a row per step with
   the program as a pill in its family's colour and icon, and between steps what the shell does next.
   Pill colours are the app's CommandFamily tints, allowed only here (AGENTS.md, design rule 1). */
.ic-cmd { margin-top: calc(var(--u) * 10); padding: calc(var(--u) * 10); border-radius: calc(var(--u) * 10); background: #1f1f1f; box-shadow: inset 0 0 0 1px #333; display: flex; align-items: center; gap: calc(var(--u) * 5); }
.cpill { --pc: 179, 179, 179; display: inline-flex; align-items: center; gap: calc(var(--u) * 4); flex: none; padding: calc(var(--u) * 3) calc(var(--u) * 7); border-radius: 99px; background: rgba(var(--pc), 0.16); box-shadow: inset 0 0 0 1px rgba(var(--pc), 0.22); font: 500 calc(var(--u) * 12) / 1.2 var(--mono); color: #fff; white-space: nowrap; } /* medium, the flip board's weight (the owner, 2026-11-12) */
.cpill svg { width: calc(var(--u) * 9.5); height: calc(var(--u) * 9.5); color: rgb(var(--pc)); flex: none; }
.cpill[data-family="move"] { --pc: 115, 209, 242; }
.cpill[data-family="vcs"] { --pc: 189, 158, 255; }
.cpill[data-family="build"] { --pc: 107, 214, 173; }
/* A version-control step that changes the repository, as the app tints it (CardInk.writes). */
.cpill[data-family="writes"] { --pc: 255, 173, 92; }
.cpill[data-family="risky"] { --pc: 255, 107, 97; color: rgb(255, 107, 97); background: rgba(var(--pc), 0.24); box-shadow: inset 0 0 0 1px rgba(var(--pc), 0.6); }
.ic-next { width: calc(var(--u) * 8); height: calc(var(--u) * 8); flex: none; color: #6b6b6b; }
/* The listening strip, as the app's ListenerRow: a tinted strip with each gesture that counts as its own
   animated icon (the robot nodding twice, an AirPod pressed twice) and dots that count each one,
   what to do in large type and how to decline under it, over a line that shimmers while listening
   and drains through the undo window after two nods. */
.ic-listen { position: relative; margin-top: calc(var(--u) * 10); height: calc(var(--u) * 50); padding: 0 calc(var(--u) * 10); border-radius: calc(var(--u) * 12); background: rgba(115, 184, 255, 0.1); box-shadow: inset 0 0 0 1px rgba(115, 184, 255, 0.22); display: flex; align-items: center; gap: calc(var(--u) * 10); }
.il-icon { display: grid; justify-items: center; gap: calc(var(--u) * 3); flex: none; }
.il-icon + .il-icon { margin-left: calc(var(--u) * -4); }
.il-disc { position: relative; width: calc(var(--u) * 30); height: calc(var(--u) * 30); border-radius: 50%; background: rgba(115, 184, 255, 0.18); box-shadow: inset 0 0 0 1px rgba(115, 184, 255, 0.35); display: grid; place-items: center; }
.il-disc .buddy { width: calc(var(--u) * 20); }
/* The app's strip robot smiles with happy eyes (EarFeedback.swift, NodHead). */
.il-bot .buddy .b-eyes { opacity: 0; animation: none; }
.il-bot .buddy .b-joy { opacity: 1; transform: none; }
.il-pod { width: calc(var(--u) * 13); height: calc(var(--u) * 19.5); }
.il-glow { position: absolute; left: 52%; top: 66%; width: calc(var(--u) * 13); height: calc(var(--u) * 13); margin: calc(var(--u) * -6.5); border-radius: 50%; background: radial-gradient(circle, var(--listen), rgba(115, 184, 255, 0) 70%); opacity: 0; animation: podpress 2.8s ease-in-out infinite 0.8s; }
.il-count { display: flex; gap: calc(var(--u) * 3); height: calc(var(--u) * 4); }
.il-count b { width: calc(var(--u) * 4); height: calc(var(--u) * 4); border-radius: 50%; background: rgba(115, 184, 255, 0.25); }
/* The dots light as each nod or press lands, on the robot's nod-loop beat (2.8 s, nods at 12% and 40%). */
.il-bot .il-count b:first-child { animation: count1 2.8s linear infinite; }
.il-bot .il-count b:last-child { animation: count2 2.8s linear infinite; }
.il-press .il-count b:first-child { animation: count1 2.8s linear infinite 0.8s; }
.il-press .il-count b:last-child { animation: count2 2.8s linear infinite 0.8s; }
@keyframes count1 { 0%, 11% { background: rgba(115, 184, 255, 0.25); } 12%, 80% { background: var(--listen); } 86%, 100% { background: rgba(115, 184, 255, 0.25); } }
@keyframes count2 { 0%, 39% { background: rgba(115, 184, 255, 0.25); } 40%, 80% { background: var(--listen); } 86%, 100% { background: rgba(115, 184, 255, 0.25); } }
@keyframes podpress { 0%, 6%, 20%, 34%, 100% { opacity: 0; } 12%, 40% { opacity: 1; } 26% { opacity: 0.15; } 46% { opacity: 0; } }
.il-text { position: relative; display: grid; min-width: 0; flex: 1; color: var(--listen); }
.il-text b { grid-area: 1 / 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; font-size: calc(var(--u) * 13); transition: opacity 0.25s; }
.il-text small { grid-area: 2 / 1; margin-top: calc(var(--u) * 1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #9e9e9e; font-size: calc(var(--u) * 11); transition: opacity 0.25s; }
.il-ok { opacity: 0; }
.il-line { position: absolute; left: calc(var(--u) * 12); right: calc(var(--u) * 12); bottom: calc(var(--u) * 1); height: calc(var(--u) * 2); border-radius: 2px; background: linear-gradient(90deg, rgba(115, 184, 255, 0.15) 30%, var(--listen) 50%, rgba(115, 184, 255, 0.15) 70%) 0 0 / 300% 100%; animation: shimmer 1.8s linear infinite; transform-origin: left; }
.island[data-state="approving"] .il-ask, .island[data-state="allowed"] .il-ask, .island[data-state="approving"] .il-text small, .island[data-state="allowed"] .il-text small { opacity: 0; }
.island[data-state="approving"] .il-ok, .island[data-state="allowed"] .il-ok { opacity: 1; }
.island[data-state="approving"] .il-text b { grid-row: 1 / 3; align-self: center; }
.island[data-state="approving"] .il-line { background: var(--listen); animation: shrink 1.5s linear both; }
.island[data-state="allowed"] .il-line { background: var(--listen); transform: scaleX(0); animation: none; }
.island[data-state="allowed"] .ic-listen { opacity: 0; transition: opacity 0.3s 0.3s; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
/* The blue halo around a session whose request is listened for. */
.dot.listening::before, .dot.listening::after { content: ""; position: absolute; inset: calc(var(--u) * -2); border-radius: 50%; border: calc(var(--u) * 1.5) solid var(--listen); opacity: 0; animation: halo 2s var(--ease) infinite; pointer-events: none; }
.dot.listening::after { animation-delay: 1s; }
@keyframes halo { 0% { transform: scale(0.95); opacity: 0.9; } 100% { transform: scale(1.7); opacity: 0; } }
/* What was said in the AirPods, for a moment under the Island. */
.isl-said { position: absolute; left: 50%; top: calc(var(--u) * (var(--cut-top) + 44)); display: flex; align-items: center; gap: calc(var(--u) * 7); padding: calc(var(--u) * 6) calc(var(--u) * 12); border-radius: 99px; background: #000; box-shadow: 0 0 0 1px rgba(115, 184, 255, 0.25); color: #fff; font-size: calc(var(--u) * 12); font-weight: 600; white-space: nowrap; opacity: 0; transform: translate(-50%, calc(var(--u) * -8)) scale(0.9); transition: opacity 0.25s, transform 0.45s var(--spring); }
.island[data-said] .isl-said { opacity: 1; transform: translate(-50%, 0); transition-delay: 0.35s; }
.said-text { display: grid; }
.said-text > span { grid-area: 1 / 1; }
.island:not([data-said="done"]) .said-done, .island[data-said="done"] .said-ask { visibility: hidden; }
/* Two nods on the card: the listener's head nods twice, quickly, before the card gets out of the way. */
.island[data-nods] .il-bot .buddy .b-body { animation: nodbody 0.9s var(--ease) both; }
.island[data-nods] .il-bot .buddy .b-face { animation: nodface2 0.9s var(--ease) both; }
@keyframes nodtwice { 0%, 100% { transform: none; } 15%, 55% { transform: translateY(calc(var(--u) * 3)); } 35%, 75% { transform: none; } }

/* The undo ring, the app's ConfirmMark: on the right of the closed Island, in place of the gauges.
   It fills through the 1.5 s undo window, then the check draws, the mark pops with a soft bloom,
   and the Island's outline glows once. */
.isl-confirm {
  --tint: rgb(77, 217, 122);
  position: absolute; z-index: 1; top: calc(var(--u) * (var(--cut-top) + 5)); left: calc(50% + var(--u) * (var(--cut-w) / 2 + var(--side) / 2 - 11));
  width: calc(var(--u) * 22); height: calc(var(--u) * 22);
  opacity: 0; transform: scale(0.5); transition: opacity 0.2s, transform 0.3s var(--ease);
}
.isl-confirm svg { width: 100%; height: 100%; overflow: visible; display: block; }
.isl-confirm::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--tint); filter: blur(calc(var(--u) * 3)); opacity: 0; }
.cm-disc { fill: var(--tint); opacity: 0.16; }
.cm-track { fill: none; stroke: rgba(255, 255, 255, 0.12); stroke-width: 2.2; }
.cm-ring { fill: none; stroke: var(--tint); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 0 100; transform: rotate(-90deg); transform-origin: 11px 11px; filter: drop-shadow(0 0 2px var(--tint)); }
.cm-check { fill: none; stroke: var(--tint); stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.island[data-state="confirming"] .isl-confirm, .island[data-state="answered"] .isl-confirm { opacity: 1; transform: none; transition: opacity 0.2s, transform 0.45s var(--spring); }
.island[data-state="confirming"] .cm-ring { animation: cmfill 1.5s linear both; }
.island[data-state="confirming"] .cm-disc { animation: cmbreathe 0.52s ease-in-out infinite alternate; }
.island[data-state="answered"] .cm-ring { stroke-dasharray: 100 100; }
.island[data-state="answered"] .cm-check { stroke-dashoffset: 0; transition: stroke-dashoffset 0.2s var(--ease) 0.12s; }
.island[data-state="answered"] .isl-confirm { animation: cmpop 0.22s var(--ease) 0.28s both; }
.island[data-state="answered"] .isl-confirm::before { animation: cmbloom 0.47s var(--ease) 0.28s both; }
.island[data-state="confirming"] .isl-side.right > *, .island[data-state="answered"] .isl-side.right > * { opacity: 0; transform: scale(0.5); transition: opacity 0.15s, transform 0.2s; transition-delay: 0s; }
@keyframes cmfill { from { stroke-dasharray: 0 100; } to { stroke-dasharray: 100 100; } }
@keyframes cmbreathe { from { opacity: 0.16; } to { opacity: 0.26; } }
@keyframes cmpop { 0%, 100% { transform: none; } 50% { transform: scale(1.2); } }
@keyframes cmbloom { 0% { opacity: 0.4; transform: none; } 100% { opacity: 0; transform: scale(2.3); } }
/* The outline's one glow, drawn as a ring around the shape so only its opacity moves. */
.isl-shape::before { content: ""; position: absolute; inset: calc(var(--u) * -1.5); border-radius: inherit; box-shadow: 0 0 0 calc(var(--u) * 1.5) rgb(77, 217, 122), 0 0 calc(var(--u) * 9) rgba(77, 217, 122, 0.8); opacity: 0; pointer-events: none; }
.island[data-state="answered"] .isl-shape::before { animation: outlineglow 0.48s ease-in-out 0.26s both; }
@keyframes outlineglow { 0%, 100% { opacity: 0; } 45% { opacity: 0.85; } }
.said-wave { display: flex; align-items: center; gap: calc(var(--u) * 2); height: calc(var(--u) * 12); }
.said-wave i { width: calc(var(--u) * 2.2); height: 100%; border-radius: 2px; background: var(--listen); animation: talk 0.9s ease-in-out infinite; }
.said-wave i:nth-child(2) { animation-delay: -0.3s; } .said-wave i:nth-child(3) { animation-delay: -0.6s; } .said-wave i:nth-child(4) { animation-delay: -0.15s; }
/* The app's button row since 2026-11-10 (CardButtons.swift): Allow once split with its ▾, the
   terminal's second choice (Always allow), Deny, and the terminal as an icon, in the app's system
   tints. 26 pt tall, radius 7, 11.5 pt semibold since round 18 (the app's are 30, 8 and 12; the owner
   found them heavy on the page). Solid fills: a forced dark mode repaints gradients. */
.ic-act { position: relative; margin-top: calc(var(--u) * 14); height: calc(var(--u) * 26); }
/* Three equal columns and the terminal icon (the owner, 2026-11-12: in a flex row the split Allow once came
   out narrower, as the other two carry side padding). */
.ic-btns { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: calc(var(--u) * 8); transition: opacity 0.25s, transform 0.35s var(--ease); }
.ic-btns span { display: grid; place-items: center; white-space: nowrap; overflow: hidden; border-radius: calc(var(--u) * 7); background: #3a3a3c; color: #fff; font-weight: 600; font-size: calc(var(--u) * 11.5); letter-spacing: -0.01em; transition: opacity 0.3s, transform 0.2s var(--ease), background 0.3s; position: relative; }
.ic-btns > .always, .ic-btns > .deny { flex: 1 1 0; min-width: 0; padding: 0 calc(var(--u) * 4); }
.ic-btns .allow { background: #0a84ff; }
.ic-btns > .always { background: #5e5ce6; }
.ic-btns > .ic-term { flex: none; width: calc(var(--u) * 34); }
.ic-btns > .ic-term svg { width: calc(var(--u) * 15); height: calc(var(--u) * 12); }
/* Allow once and its ▾ are one button cut in two, with a hairline of the card between. */
.ic-btns > .ic-split { flex: 1 1 0; min-width: 0; display: flex; align-items: stretch; gap: calc(var(--u) * 1); overflow: visible; background: none; border-radius: 0; }
.ic-split .ic-lbl { flex: 1; min-width: 0; padding: 0 calc(var(--u) * 4) 0 calc(var(--u) * 6); border-radius: calc(var(--u) * 7) 0 0 calc(var(--u) * 7); }
.ic-split .ic-chev { flex: none; width: calc(var(--u) * 22); border-radius: 0 calc(var(--u) * 7) calc(var(--u) * 7) 0; }
.ic-chev svg { width: calc(var(--u) * 10); height: calc(var(--u) * 10); transition: transform 0.3s var(--ease); }
.island[data-menu="open"] .ic-chev svg { transform: rotate(180deg); }
/* The ▾ list rises from Allow once over the request, at its width: Auto mode, then AutoNod. */
.ic-btns .ic-menu { position: absolute; left: 0; right: 0; bottom: calc(100% + var(--u) * 3); display: grid; place-items: stretch; gap: calc(var(--u) * 3); background: none; border-radius: 0; overflow: visible; opacity: 0; transform: translateY(calc(var(--u) * 8)) scale(0.97); transform-origin: bottom center; pointer-events: none; transition: opacity 0.22s, transform 0.4s var(--spring); }
.ic-split .ic-menu > span { height: calc(var(--u) * 26); display: flex; align-items: center; justify-content: flex-start; gap: calc(var(--u) * 5); padding: 0 0 0 var(--menu-x, 12%); border-radius: calc(var(--u) * 7); box-shadow: 0 calc(var(--u) * 6) calc(var(--u) * 18) rgba(0, 0, 0, 0.5); }
.ic-menu .m-auto { background: rgb(196, 110, 12); }
.ic-menu .m-nod { background: rgb(204, 52, 44); }
.ic-menu svg { width: calc(var(--u) * 10); height: calc(var(--u) * 10); flex: none; }
.island[data-menu="open"] .ic-menu { opacity: 1; transform: none; }
/* For 0.6 s after a card opens its answers are dimmed and can't be pressed (ApprovalArming). */
.island.arming .ic-btns .allow, .island.arming .ic-btns > .always, .island.arming .ic-btns > .deny { opacity: 0.45; }
/* A tap: the button dips, a ripple spreads, then the row becomes "Allowed" as in the app. */
.ic-btns .allow::after { content: ""; position: absolute; left: 50%; top: 50%; width: calc(var(--u) * 20); height: calc(var(--u) * 20); margin: calc(var(--u) * -10); border-radius: 50%; background: rgba(0, 0, 0, 0.5); filter: invert(1); transform: scale(0); opacity: 0; }
.island[data-state="allowed"] .ic-btns .allow { transform: scale(0.95); }
.island[data-state="allowed"] .ic-btns .allow::after { animation: ripple 0.6s var(--ease) both; }
@keyframes ripple { 0% { transform: scale(0); opacity: 0.8; } 100% { transform: scale(9); opacity: 0; } }
.island[data-state="allowed"] .ic-btns { opacity: 0; transform: scale(0.97); transition-delay: 0.45s; }
.ic-allowed { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: calc(var(--u) * 8); color: var(--done); font-weight: 700; font-size: calc(var(--u) * 16); opacity: 0; transform: scale(0.9); transition: opacity 0.3s, transform 0.5s var(--spring); }
.ic-allowed i { width: calc(var(--u) * 22); height: calc(var(--u) * 22); border-radius: 50%; background: var(--done); display: grid; place-items: center; }
.ic-allowed svg { width: 62%; height: 62%; fill: none; stroke: #000; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.island[data-state="allowed"] .ic-allowed { opacity: 1; transform: none; transition-delay: 0.6s; }

/* Story under the zoomed Island */
.story { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.island-big { position: absolute; left: 50%; top: var(--big-top, 120px); transform: translateX(-50%); opacity: 0; }
/* Laid out at the big Island's size and scaled down (--k), so text and dots round the same way as
   the big one's: laid out at a third of a pixel per point, the digits and letters sat about a point
   low and showed twice at the handoff in External display (the owner, 2026-11-09). */
.island-small { position: absolute; left: 50%; top: 0; transform: translateX(-50%) scale(var(--k, 1)); transform-origin: 50% 0; }
.captions { position: absolute; left: 0; right: 0; top: var(--cap-top, 60vh); padding: 0 var(--gutter); text-align: center; }
.cap { position: absolute; left: 0; right: 0; padding: 0 var(--gutter); opacity: 0; transform: translateY(-8px); transition: opacity 0.18s, transform 0.3s var(--ease); }
.cap.on { opacity: 1; transform: none; transition: opacity 0.5s 0.2s, transform 0.7s var(--ease) 0.2s; }
.cap:not(.on) { transform: translateY(-8px); }
.cap h2 { font-size: clamp(32px, 4.2vw, 54px); line-height: 1.04; }
.cap p { margin: 12px auto 0; max-width: 30em; color: var(--mist); font-size: clamp(17px, 1.5vw, 21px); line-height: 1.4; }

/* Bands */
.band { position: relative; padding: clamp(96px, 14vw, 170px) 0; }
.band.light { background: var(--paper); color: var(--ink); }
.band.light .lede, .band.light .aside { color: var(--steel); }
.band.light sup a { color: var(--steel); }
.band.light + .band.light { padding-top: 0; }

/* Highlights */
.highlights { padding-bottom: 92px; }
.highlights .title { margin-bottom: 52px; }
.hl-track {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 0 max(var(--gutter), (100% - 1080px) / 2); scroll-padding-inline: max(var(--gutter), (100% - 1080px) / 2);
}
.hl-track::-webkit-scrollbar { display: none; }
.hl-card { flex: 0 0 min(80vw, 372px); scroll-snap-align: start; border-radius: 28px; background: var(--surface); overflow: hidden; display: flex; flex-direction: column; }
.hl-card > p { margin: 0; min-height: 118px; padding: 10px 30px 32px; color: var(--mist); font-size: 17px; line-height: 1.42; }
.hl-card strong { color: var(--white); font-weight: 600; }
.hl-art { position: relative; height: 292px; flex: none; display: grid; place-items: center; overflow: hidden; background: radial-gradient(80% 70% at 50% 0%, rgba(92, 120, 180, 0.16), transparent 72%); }
/* The dots stay centred on the page; the play button hangs off their right, as on apple.com. */
.hl-controls { position: relative; width: max-content; margin: 30px auto 0; }
.hl-dots { display: flex; gap: 8px; padding: 0 18px; height: 44px; align-items: center; border-radius: 99px; background: var(--surface); }
.hl-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; background: #4a556c; cursor: pointer; transition: width 0.5s var(--ease), background 0.3s; position: relative; overflow: hidden; }
.hl-dots button::after { content: ""; position: absolute; inset: -18px -4px; }
.hl-dots button[aria-selected="true"] { width: 44px; background: #4a556c; }
.hl-dots button i { position: absolute; inset: 0; border-radius: inherit; background: #19140b; filter: invert(1); /* #e6ebf4 */ transform-origin: left; transform: scaleX(0); }
.hl-dots button[aria-selected="true"] i { transform: scaleX(1); }
.hl-dots.playing button[aria-selected="true"] i { animation: hlfill var(--hl-time, 2.8s) linear both; }
@keyframes hlfill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hl-play { position: absolute; left: calc(100% + 14px); top: 0; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--surface); cursor: pointer; display: grid; place-items: center; }
.i-pause { width: 10px; height: 12px; border-left: 3px solid #272115; border-right: 3px solid #272115; filter: invert(1); } /* #d8deea, flipped: see .ds-thumb */
.hl-play.paused .i-pause { width: 0; height: 0; border-right: 0; border-left: 10px solid #272115; border-top: 6px solid transparent; border-bottom: 6px solid transparent; margin-left: 3px; }

.island-mini { --u: 0.86px; height: 40px; }

/* The animation rule (round 18): a card plays only while it's selected, once, and holds its last
   frame. The others are still: no spinning dots, no breathing robot, no wave. */
.hl-card:not(.on) :is(*, ::before, ::after) { animation: none !important; }
/* A digit still rolling out when the card was left would otherwise sit over the new one. */
.hl-card:not(.on) .auto-count .roll i.out { display: none; }
/* Nod to approve: the closed Island at the top of the card, the robot nodding under it. */
.art-nod .island-mini { --u: min(1.25px, calc((80vw - 28px) / 300)); position: absolute; top: 26px; left: 50%; transform: translateX(-50%); }
/* This card always shows the Dynamic Island (the owner, 2026-11-12), whatever the display switch
   says: its data-display="island" sets the shape's values nearer than <html>'s. The camera rule
   below beats the html-level one that hides it on an external display. */
.art-nod .isl-shape::after { display: block; }
/* .buddy sets position: relative, so this needs the card's class to win. */
.art-nod .nod-buddy { position: absolute; left: 50%; bottom: 18px; width: 120px; transform: translateX(-50%); }

/* Risky needs your eyes: a card with a flagged command, as the app shows it. */
.art-risk { padding: 0 26px; }
.risk-card { width: 100%; max-width: 300px; padding: 16px; border-radius: 20px; background: #000; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 18px 40px rgba(0, 0, 0, 0.45); font-size: 13px; }
.rc-head { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.rc-head b { font-weight: 600; }
/* The app's card at 1 px per point: the flagged step is a red pill with a warning, as in ApprovalBody. */
.risk-card { --u: 1px; }
.rc-cmd { display: flex; align-items: center; gap: 7px; margin-top: 12px; padding: 10px; border-radius: 10px; background: #1f1f1f; box-shadow: inset 0 0 0 1px #333; font: 12px/1.3 var(--mono); color: #ebebeb; }
.rc-args { white-space: nowrap; }
.rc-note { display: flex; align-items: center; gap: 7px; margin-top: 10px; color: var(--deny); font-weight: 600; font-size: 12.5px; }
.rc-warn { width: 15px; height: 15px; flex: none; color: var(--deny); }
.hl-card.on .rc-note { animation: flagin 0.6s var(--spring) 0.3s both; }
@keyframes flagin { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.rc-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.rc-btns span { display: grid; place-items: center; height: 32px; border-radius: 10px; background: #424242; font-weight: 600; }
.rc-btns .allow { background: var(--allow); }

/* AutoNod: the session's dot with the soft red ring and the pill, as the app's row shows it.
   Routine requests pass with a check; the flagged one stops and waits, as it does in the app. */
.art-auto, .art-ask { padding: 0 26px; }
.auto-dot .dot, .flip-dot .dot { --u: 1.2px; transform: none; opacity: 1; }
.auto-dot .dot .d-track { stroke: var(--deny); opacity: 0.65; }
/* AutoNod's ring: one still red ring, as the app draws it (no spinning arc). */
.auto-dot .dot .d-arc { display: none; }
.auto-pill { margin-left: auto; padding: 3px 8px; border-radius: 99px; background: rgba(255, 115, 97, 0.16); color: var(--deny); font: 700 12px/1.2 var(--rounded); white-space: nowrap; }
/* The count of routine requests it let through, green and big, on one baseline with its label,
   and the one flagged request that waits. */
.auto-count { display: flex; align-items: baseline; gap: 10px; margin: 18px 2px 16px; }
.auto-count b { font: 700 44px/1 var(--font); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--done); }
.auto-count > span:last-child { color: #c3c8d3; font-size: 15px; line-height: 1.2; }
/* Odometer digits: each sits in a slot clipped to its own line box, the new digit rolling down from
   above. The line box, not the figures' measured height: where a font sits within it differs (SF on
   a Mac sits lower than Inter), and a tighter clip cut the digits' bottoms (the owner, 2026-11-12).
   Both digits fade as they move, so neither shows in the room above or below the figures.
   clip-path rather than overflow keeps the slot on the label's baseline. */
.auto-count .roll { position: relative; display: inline-block; line-height: 1.25; clip-path: inset(0 -0.1em); }
.auto-count .roll i { display: block; font-style: normal; }
.auto-count .roll i.in { animation: roll-in 0.5s var(--spring) both; }
.auto-count .roll i.out { position: absolute; inset: 0 0 auto; animation: roll-out 0.4s var(--ease) both; }
@keyframes roll-in { from { transform: translateY(-100%); opacity: 0; } 45% { opacity: 1; } to { transform: none; opacity: 1; } }
@keyframes roll-out { from { transform: none; opacity: 1; } 55% { opacity: 0; } to { transform: translateY(100%); opacity: 0; } }
.auto-stop { display: flex; align-items: center; gap: 7px; padding: 9px 10px; border-radius: 10px; background: #1f1f1f; box-shadow: inset 0 0 0 1px rgba(255, 179, 64, 0.55); font: 12px/1.3 var(--mono); color: #ebebeb; }
.auto-wait { margin-left: auto; color: var(--wait); font: 600 12px/1 var(--font); white-space: nowrap; }

/* Answer from the card: a question with options and Submit, as the app's QuestionForm. */
.ic-ask { width: 17px; height: 17px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--wait); color: #000; font: 800 11.5px/1 var(--rounded); font-style: normal; }
.ask-q { margin: 12px 0 0; color: #ebebeb; font-size: 14px; line-height: 1.35; }
.ask-opts { display: grid; gap: 6px; margin-top: 10px; }
.ask-opt { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: #1f1f1f; box-shadow: inset 0 0 0 1px #333; font-size: 13px; transition: box-shadow 0.3s, background 0.3s; }
.ask-opt::before { content: ""; width: 12px; height: 12px; flex: none; border-radius: 50%; box-shadow: inset 0 0 0 1.5px #6b6b6b; transition: box-shadow 0.3s; }
.art-ask.picked .ask-opt[data-pick] { background: rgba(51, 143, 245, 0.16); box-shadow: inset 0 0 0 1px var(--allow); }
.art-ask.picked .ask-opt[data-pick]::before { box-shadow: inset 0 0 0 4px var(--allow); }
.ask-send { display: grid; margin-top: 12px; }
.ask-send span { display: grid; place-items: center; height: 32px; border-radius: 10px; background: #424242; font-weight: 600; transition: background 0.3s; }
.art-ask.picked .ask-send span { background: var(--allow); }
.art-ask.sent .ask-send span { background: var(--done); color: #000; }

/* What's running: the closed Island with the flip board beside the dot, in plain words. */
.flip-isl { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 16px 0 10px; border-radius: 20px; background: #000; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 18px 40px rgba(0, 0, 0, 0.45); }
.flip-dot .dot { --u: 1.3px; }
.flip-board { display: grid; perspective: 300px; min-width: 190px; font: 500 14px/1 var(--mono); color: #ebebeb; white-space: nowrap; }
.flip-line { grid-area: 1 / 1; opacity: 0; transform: rotateX(-80deg); transform-origin: 50% 50% -6px; transition: opacity 0.25s, transform 0.45s var(--spring); }
.flip-line.on { opacity: 1; transform: none; }
.flip-mode { font-style: normal; color: #48b3a6; }
/* Claude Code's plan sign, drawn as two bars (the app's pause sign, 5 × 6 pt): typed as ⏸, iPhone
   shows it as a blue emoji tile, whatever variation selector follows it. */
.flip-mode svg { display: inline-block; width: 0.43em; height: 0.5em; vertical-align: 0.06em; fill: currentColor; }

/* Both agents' limits, then a reset: the gauge drains, a toast drops in, and confetti bursts. */
/* Two groups on one line, sized as one (the owner, 2026-11-12): the sessions' context water on the
   left, a hairline, then each agent's limit gauge with its number. Every shape is 40 pt at full
   size (--k scales the row to fit a phone), and nothing spins: running sessions show a still ring. */
.lim-row { --k: min(1px, calc((80vw - 36px) / 316)); display: flex; gap: calc(var(--k) * 20); align-items: center; }
.lim-row .gauge { transform: none; opacity: 1; height: auto; gap: calc(var(--k) * 7); }
.lim-row .gauge svg { width: calc(var(--k) * 42); height: calc(var(--k) * 42); }
.lim-row .gauge b { font-size: calc(var(--k) * 25); font-weight: 600; min-width: 1.2em; }
.lim-dots { --u: calc(var(--k) * 2); display: flex; gap: calc(var(--k) * 10); padding-right: calc(var(--k) * 20); border-right: 1px solid rgba(255, 255, 255, 0.12); }
.lim-row .dot { transform: none; opacity: 1; }
.lim-row .d-arc { display: none; }
.lim-row .dot .d-track { opacity: 0.55; }
/* A rounded square looks bigger than a circle of the same width. */
.lim-row .dot.sq svg, .lim-row .gauge[data-kind="codex"] svg { transform: scale(0.92); }
.lim-row .g-fill { transition: stroke-dasharray 0.8s var(--ease), stroke 0.8s; }
.lim-toast { position: absolute; top: 34px; left: 50%; padding: 7px 14px; border-radius: 99px; background: #000; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1); font-weight: 600; font-size: 14px; opacity: 0; transform: translate(-50%, -10px) scale(0.9); transition: opacity 0.25s, transform 0.5s var(--spring); }
.art-limits.burst .lim-toast { opacity: 1; transform: translate(-50%, 0); }
.confetti { position: absolute; left: 50%; top: 50%; }
.confetti i { position: absolute; width: 7px; height: 11px; margin: -5px -3px; border-radius: 2px; background: var(--c); opacity: 0; }
.art-limits.burst .confetti i { animation: confetti 1.5s var(--ease) both; }
@keyframes confetti { 0% { opacity: 1; transform: translate(0, 0) rotate(0) scale(0.4); } 70% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--x), calc(var(--y) + 40px)) rotate(var(--r)) scale(1); } }

.art-speak { grid-template-columns: auto auto; grid-template-rows: 112px auto; justify-content: center; column-gap: 34px; row-gap: 18px; align-content: center; padding: 24px 30px; }
.speak-src { position: relative; grid-column: 1; grid-row: 1; justify-self: center; align-self: center; width: 112px; height: 93px; color: #f5f6f8; }
.speak-bud { position: relative; width: 100%; height: 100%; }
.wave { grid-column: 2; grid-row: 1; display: flex; gap: 5px; height: 46px; align-self: center; align-items: center; justify-content: center; }
/* A voice mid-sentence: bars of different heights, each bobbing around its own height at its own
   pace, three beats when the card is selected, then holding at those heights (round 18: only the
   two scroll stories loop). */
.wave i { width: 5px; height: 100%; border-radius: 3px; background: var(--listen); transform-origin: center; transform: scaleY(var(--h, 0.5)); }
.wave i:nth-child(1) { --h: 0.3; } .wave i:nth-child(2) { --h: 0.55; } .wave i:nth-child(3) { --h: 0.85; }
.wave i:nth-child(4) { --h: 0.6; } .wave i:nth-child(5) { --h: 1; } .wave i:nth-child(6) { --h: 0.7; }
.wave i:nth-child(7) { --h: 0.42; } .wave i:nth-child(8) { --h: 0.75; } .wave i:nth-child(9) { --h: 0.32; }
.hl-card.on .wave i { animation: speak-bar var(--d, 0.9s) ease-in-out var(--dl, 0s) 3 alternate both; }
.wave i:nth-child(3n+1) { --d: 0.78s; } .wave i:nth-child(3n+2) { --d: 1.02s; } .wave i:nth-child(3n) { --d: 0.66s; }
.wave i:nth-child(2) { --dl: -0.3s; } .wave i:nth-child(4) { --dl: -0.55s; } .wave i:nth-child(5) { --dl: -0.2s; }
.wave i:nth-child(6) { --dl: -0.7s; } .wave i:nth-child(8) { --dl: -0.4s; } .wave i:nth-child(9) { --dl: -0.15s; }
@keyframes talk { 0%, 100% { transform: scaleY(0.18); } 50% { transform: scaleY(1); } }
@keyframes speak-bar { from { transform: scaleY(calc(var(--h, 0.5) * 0.3)); } to { transform: scaleY(var(--h, 0.5)); } }
@media (prefers-reduced-motion: reduce) { .wave i { animation: none; } }
.said { grid-column: 1 / -1; grid-row: 2; margin: 0; font-size: 17px; line-height: 1.35; font-weight: 500; text-align: center; color: #e6ebf4; }

.art-stem .press { --k: 1.05px; }
@keyframes press2 { 0%, 8% { opacity: 0; } 14% { opacity: 1; } 22% { opacity: 0.1; } 28% { opacity: 1; } 38%, 100% { opacity: 0; } }

/* Eyes-free */
/* One section since round 18: the intro, the scroll story, the four ways and the music line. The intro
   follows At a glance on the same night, so the two bands' padding would stack into one big gap. */
.airnod-intro { padding-top: clamp(40px, 5vw, 72px); padding-bottom: 40px; background: var(--night); }
.product-word { margin: 0; font-family: var(--display); font-size: clamp(64px, 9vw, 120px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; color: #f2f5fa; }
/* The robot looks up from behind the wordmark, earbuds listening. */
.an-hello { width: clamp(120px, 13vw, 168px); margin: 0 auto -6px; }
.js .an-hello.reveal { transform: translateY(40px) scale(0.92); transition-duration: 1.1s, 1.2s; }
.js .an-hello.reveal.in { transform: none; }
/* After it rises it holds still: only the scroll story below moves (round 18). */
.an-hello :is(.b-body, .b-eyes, .b-glow) { animation: none !important; }
.airnod-intro .headline { margin-top: 8px; font-size: clamp(30px, 3.8vw, 48px); color: #c9d1df; }

.airnod .stage { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 4vw; width: min(1080px, 100% - 2 * var(--gutter)); margin: auto; }
.an-visual { position: relative; width: min(460px, 40vw, 62vh); aspect-ratio: 1; justify-self: end; }
.ticks { position: absolute; inset: 0; width: 100%; height: 100%; }
.ticks line { stroke: #273047; stroke-width: 3.2; stroke-linecap: round; transition: stroke 0.25s; transition-delay: calc(var(--i) * 9ms); }
.an-buddy { position: absolute; left: 50%; top: 50%; width: 66%; transform: translate(-50%, -52%); }
/* Done: a green badge pops in at the buddy's side, like a Face ID success. */
.flash { position: absolute; left: 66%; top: 62%; width: 17%; opacity: 0; transform: scale(0.3); overflow: visible; }
.flash circle { fill: var(--done); }
.flash path { fill: none; stroke: #04210f; stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.airnod .stage[data-step="4"] .flash { opacity: 1; transform: none; transition: opacity 0.2s 0.35s, transform 0.7s var(--spring) 0.35s; filter: drop-shadow(0 0 18px rgba(82, 214, 133, 0.55)); }
.airnod .stage[data-step="4"] .flash path { animation: draw 0.4s var(--ease) 0.75s both; }
/* The capsule under the robot: black like the Island, saying what happens at each step. */
.an-card { position: absolute; left: 50%; top: 100%; transform: translateX(-50%); margin-top: 18px; height: 52px; width: max-content; min-width: 260px; }
.an-card > * { position: absolute; left: 50%; top: 0; height: 52px; display: flex; align-items: center; gap: 10px; padding: 0 22px 0 18px; border-radius: 26px; background: #000; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 14px 36px rgba(0, 0, 0, 0.45); white-space: nowrap; font-size: 16px; font-weight: 600; opacity: 0; transform: translate(-50%, 8px) scale(0.96); transition: opacity 0.3s, transform 0.5s var(--spring); }
.an-line { color: #eef2f8; }
.an-wave { display: flex; gap: 3px; height: 18px; align-items: center; }
.an-wave i { width: 3px; height: 100%; border-radius: 2px; background: var(--listen); animation: talk 0.9s ease-in-out infinite; }
.an-wave i:nth-child(2) { animation-delay: -0.3s; } .an-wave i:nth-child(3) { animation-delay: -0.55s; } .an-wave i:nth-child(4) { animation-delay: -0.15s; }
.listener { color: var(--listen); }
.lis-pods { width: 24px; height: 20px; color: var(--listen); }
.lis-nod { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--listen); background: rgba(115, 184, 255, 0.16); animation: bob 1.6s ease-in-out infinite; }
.airnod .stage[data-step="2"] .lis-nod { animation: nodtwice2 0.9s var(--ease) 0.2s both; }
@keyframes bob { 0%, 60%, 100% { transform: none; } 70% { transform: translateY(3px); } 80% { transform: none; } 90% { transform: translateY(3px); } }
@keyframes nodtwice2 { 0%, 100% { transform: none; } 15%, 55% { transform: translateY(4px); } 35%, 75% { transform: none; } }
.approving { --tint: rgb(77, 217, 122); color: #eef2f8; }
.an-ring { width: 22px; height: 22px; overflow: visible; }
.airnod .stage[data-step="3"] .an-ring .cm-ring { animation: cmfill 1.5s linear 0.2s both; }
.an-done { color: var(--done); }
.an-done i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--done); }
.an-done svg { width: 62%; height: 62%; fill: none; stroke: #000; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

/* All five steps, with a rail that fills as you go. The current step is bright, the rest wait. */
.an-steps { position: relative; margin: 0; padding: 0 0 0 30px; list-style: none; display: grid; gap: 26px; }
.step { position: relative; opacity: 0.4; transition: opacity 0.45s var(--ease); }
.step h3 { font-size: clamp(24px, 2.3vw, 32px); line-height: 1.1; }
.step p { margin: 8px 0 0; max-width: 24em; color: var(--mist); font-size: 17px; line-height: 1.45; }
.step::before { content: ""; position: absolute; left: -30px; top: 0.42em; width: 11px; height: 11px; margin-left: -5px; border-radius: 50%; background: var(--night); box-shadow: inset 0 0 0 2px #3a4560; transition: box-shadow 0.4s, background 0.4s; z-index: 1; }
.an-rail { position: absolute; left: 0; top: 12px; bottom: 12px; width: 2px; margin-left: -1px; border-radius: 1px; background: #232c40; }
.an-rail i { position: absolute; inset: 0; border-radius: inherit; background: #362e20; filter: invert(1); /* #c9d1df */ transform-origin: top; transform: scaleY(var(--rail, 0)); transition: transform 0.6s var(--ease); }
.airnod .stage[data-step="0"] .step[data-step="0"], .airnod .stage[data-step="1"] .step[data-step="1"],
.airnod .stage[data-step="2"] .step[data-step="2"], .airnod .stage[data-step="3"] .step[data-step="3"],
.airnod .stage[data-step="4"] .step[data-step="4"] { opacity: 1; }
.airnod .step.past::before, .airnod .step.now::before { background: #c9d1df; box-shadow: inset 0 0 0 2px #c9d1df; }
.airnod .step.now::before { box-shadow: inset 0 0 0 2px #fff, 0 0 0 5px rgba(255, 255, 255, 0.1); background: #fff; }

.airnod .stage[data-step="0"] .an-line,
.airnod .stage[data-step="1"] .listener, .airnod .stage[data-step="2"] .listener,
.airnod .stage[data-step="3"] .approving, .airnod .stage[data-step="4"] .an-done { opacity: 1; transform: translate(-50%, 0); }
.airnod .stage[data-step="2"] .ticks line { stroke: var(--listen); transition-delay: calc(0.15s + var(--i) * 12ms); }
/* The undo window: the ring fills green, tick by tick, over 1.5 s, as the app's ring does. */
.airnod .stage[data-step="3"] .ticks line { stroke: var(--listen); animation: tickfill 0.01s linear both; animation-delay: calc(0.2s + var(--i) * 1.5s / 64); }
@keyframes tickfill { to { stroke: rgb(77, 217, 122); } }
.airnod .stage[data-step="4"] .ticks line { stroke: var(--done); transition-delay: 0s; }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes shrink { from { transform: scaleX(1); } to { transform: scaleX(0); } }

@media (max-width: 760px) {
  .airnod .stage { grid-template-columns: 1fr; grid-template-rows: auto auto; align-content: center; gap: 110px; }
  .an-visual { justify-self: center; width: min(300px, 74vw, 40vh); }
  /* One step at a time on a phone, the rest out of the way. */
  .an-steps { display: block; height: 150px; padding: 0; text-align: center; }
  .an-rail, .step::before { display: none; }
  .step { position: absolute; inset: 0 0 auto; opacity: 0; transform: translateY(-8px); transition: opacity 0.18s, transform 0.3s var(--ease); }
  .airnod .stage[data-step="0"] .step[data-step="0"], .airnod .stage[data-step="1"] .step[data-step="1"],
  .airnod .stage[data-step="2"] .step[data-step="2"], .airnod .stage[data-step="3"] .step[data-step="3"],
  .airnod .stage[data-step="4"] .step[data-step="4"] { transform: none; transition: opacity 0.5s 0.2s, transform 0.7s var(--ease) 0.2s; }
  .step h3 { font-size: 30px; }
  .step p { margin-inline: auto; }
  /* Long languages wrap inside the screen instead of running off it. */
  .an-card > * { font-size: 15px; height: auto; min-height: 52px; width: max-content; max-width: calc(100vw - 2 * var(--gutter)); padding-block: 10px; white-space: normal; line-height: 1.3; }
  .an-card > * > svg, .an-card > * > i, .an-card > * > .an-wave, .an-card > * > .lis-nod { flex: none; }
}

/* Gestures: four compact cards in a row, still until pointed at or tapped (round 18). Then a card plays
   its gesture once (main.js, .play) with its chime. */
.gestures { padding-top: clamp(40px, 5vw, 64px); padding-bottom: clamp(72px, 9vw, 120px); background: var(--night); }
.g-title { margin: 0; text-align: center; font-size: clamp(22px, 2vw, 26px); font-weight: 700; letter-spacing: -0.02em; color: #c9d1df; }
.g-grid { margin: 28px auto 0; max-width: 960px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.g { padding: 22px 16px 20px; border-radius: 22px; background: var(--surface); text-align: center; cursor: pointer; transition: transform 0.4s var(--spring), background 0.3s; }
/* Pointing at a card lifts it a little and plays it; with sound on, its chime plays too. */
@media (hover: hover) { .g:hover { transform: translateY(-3px); background: #172033; } }
.g.rang { animation: rang 0.5s var(--spring); }
@keyframes rang { 40% { transform: translateY(-3px) scale(1.015); } }
.g h3 { margin: 16px 0 0; font-size: 19px; letter-spacing: -0.02em; }
.g p { margin: 2px 0 0; color: var(--mist); font-size: 16px; }
/* Every card's art sits in the same 64 px slot, aligned to its bottom, so all four headings line up. */
.g-art { position: relative; display: flex; align-items: flex-end; justify-content: center; width: auto; height: 64px; }
/* The robots hold still between plays: no breathing, no blinking. */
.g .g-buddy[data-mood="still"] .b-body, .g .g-buddy .b-eyes { animation: none; }
@media (max-width: 900px) { .g-grid { grid-template-columns: 1fr 1fr; } }
/* Two tiles side by side on a phone leave little room: "2回うなずく" needs about 115 px at 19 px. */
@media (max-width: 480px) { .g { padding: 18px 16px 16px; } .g h3 { font-size: 18px; } }
/* Learned nods: one still line under the cards, the claim in bold as in At a glance. */
.g-learn { max-width: 34em; margin: 28px auto 0; text-align: center; color: var(--mist); font-size: 17px; text-wrap: balance; }
.g-learn strong { color: #e6ebf4; font-weight: 600; }
:lang(ja) .g-learn { word-break: auto-phrase; }
/* The music line: the voice in one ear, the music dipping, and the two apps it works with. */
.music-line { margin: 40px auto 0; text-align: center; }
.music-line > p:first-child { margin: 0; font-size: 19px; font-weight: 500; color: #e6ebf4; text-wrap: balance; }
:lang(ja) .music-line > p:first-child { word-break: auto-phrase; }

/* Trust (redesigned 2026-11-12): a white panel, a night stage holding one real flagged card with
   numbered marks, and six short principles beside it. The card reuses the hero card's classes at
   its own unit (--u), so it's the app's card, not a drawing of one. */
.trust .lede { margin-left: 0; }
.tr-panel { margin-top: 56px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; align-items: center; padding: 28px 56px 28px 28px; border-radius: 32px; background: var(--white); }
.tr-stage { display: grid; place-items: center; padding: 56px 24px; border-radius: 24px; background: radial-gradient(90% 80% at 50% 0%, #253150, #10151f 75%); }
.tr-card { --u: min(1.1px, calc((100vw - 64px) / 420)); position: relative; width: calc(var(--u) * 420); padding: calc(var(--u) * 18); border-radius: calc(var(--u) * 24); background: #000; color: #fff; font-size: calc(var(--u) * 12); line-height: 1.3; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6); }
.tr-cmd { position: relative; margin-top: calc(var(--u) * 10); padding: calc(var(--u) * 10) calc(var(--u) * 12); border-radius: calc(var(--u) * 10); background: #1f1f1f; box-shadow: inset 0 0 0 1px #333; font: calc(var(--u) * 12) / 1.3 var(--mono); }
.tr-cmd p { position: relative; margin: 0; display: flex; align-items: center; gap: calc(var(--u) * 6); white-space: nowrap; }
.tr-cmd .code { color: var(--wait); background: rgba(255, 189, 61, 0.16); border-radius: calc(var(--u) * 4); padding: 0 calc(var(--u) * 3); }
.tr-join { padding: calc(var(--u) * 3) 0 calc(var(--u) * 3) calc(var(--u) * 8); color: #8e8e8e; font-size: calc(var(--u) * 10.5); }
.tr-join svg { width: calc(var(--u) * 9); height: calc(var(--u) * 9); transform: rotate(90deg); }
.tr-note { display: flex; align-items: center; gap: calc(var(--u) * 8); margin-top: calc(var(--u) * 10); padding: calc(var(--u) * 10) calc(var(--u) * 12); border-radius: calc(var(--u) * 12); background: rgba(255, 69, 58, 0.12); box-shadow: inset 0 0 0 1px rgba(255, 69, 58, 0.32); color: #ff8a80; font-weight: 600; font-size: calc(var(--u) * 12.5); }
.tr-note svg { width: calc(var(--u) * 14); height: calc(var(--u) * 14); flex: none; color: #ff453a; }
.tr-act { margin-top: calc(var(--u) * 14); }
.ic-btns > .allow, .ic-btns > .auto { flex: 1 1 0; min-width: 0; padding: 0 calc(var(--u) * 4); }
.ic-btns > .auto { background: rgb(196, 110, 12); }
/* The answers come up dimmed and arm after a beat, once, as the card comes into view (round 18). */
.tr-act .ic-btns > :not(.ic-term) { opacity: 0.45; }
.tr-panel.in .tr-act .ic-btns > :not(.ic-term) { animation: arming 0.5s var(--ease) 1.4s both; }
@keyframes arming { from { opacity: 0.45; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .tr-act .ic-btns > :not(.ic-term) { opacity: 1; animation: none; } }
/* Numbered marks: on the card, they sit on the corner of what they point at. */
.tr-badge { display: inline-grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--allow); color: #fff; font: 700 13px/1 var(--rounded); font-style: normal; }
.tr-card .tr-badge { position: absolute; width: calc(var(--u) * 22); height: calc(var(--u) * 22); font-size: calc(var(--u) * 12); box-shadow: 0 0 0 calc(var(--u) * 3) #000; }
.tr-b1 { right: calc(var(--u) * -9); top: calc(var(--u) * -9); }
.tr-cmd p .tr-badge { position: absolute; right: calc(var(--u) * -2); top: 50%; margin-top: calc(var(--u) * -11); box-shadow: 0 0 0 calc(var(--u) * 3) #1f1f1f; }
.tr-b3 { right: calc(var(--u) * -12); top: calc(var(--u) * -16); }
.tr-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 22px; }
.tr-list li { display: grid; grid-template-columns: 24px 1fr; gap: 16px; align-items: start; }
.tr-list p { margin: 0; color: var(--steel); font-size: 17px; line-height: 1.45; text-wrap: pretty; }
.tr-list b { color: var(--ink); font-weight: 600; }
.tr-list .tr-badge { margin-top: 1px; }
.tr-list .tr-plain { background: #e8e8ed; color: #6e6e73; }
@media (max-width: 960px) {
  .tr-panel { grid-template-columns: 1fr; gap: 32px; padding: 16px 16px 32px; }
  .tr-list { padding: 0 12px; }
  .tr-stage { padding: 36px 0; }
}

/* Works with (round 18): the jump as the app makes it. A drawn menu bar with the real Island
   (buildIsland), and a Terminal window with Claude Code's own screens, then the strip of terminals
   and agents. --wu is the Island's points: the panel's 420 pt always fits the card. --mb is the
   menu bar, as tall as the cutout reaches (40 pt), or 24 pt on a display without one. */
.works { padding-bottom: clamp(96px, 12vw, 150px); }
.works .lede { margin-left: 0; }

.work-demo {
  --wu: min(1.3px, (100vw - 2 * var(--gutter) - 20px) / 420); --mb: calc(var(--wu) * 40);
  position: relative; margin: 56px 0 0; padding: calc(var(--mb) + 12px) clamp(16px, 6vw, 88px) clamp(36px, 6vw, 72px);
  border-radius: 28px; overflow: hidden; display: grid; justify-items: center;
  background: linear-gradient(180deg, rgba(16, 21, 31, 0.2), rgba(16, 21, 31, 0.62)), url("assets/hero-wallpaper.jpg") center 30% / cover, var(--night);
  box-shadow: 0 18px 40px rgba(18, 24, 38, 0.12);
}
[data-display="display"] .work-demo { --mb: calc(var(--wu) * 24); padding-top: calc(var(--wu) * 60 + 12px); }
/* The menu bar: the app's name in bold, its menus, and a clock. No Apple logo. Menus stay clear of
   the Island; narrower cards drop the last ones. */
.work-menubar { position: absolute; left: 0; right: 0; top: 0; height: var(--mb); display: flex; align-items: center; gap: 18px; padding: 0 20px; background: rgba(8, 11, 18, 0.5); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); font: 500 13px/1 var(--font); letter-spacing: -0.005em; color: rgba(225, 232, 245, 0.62); }
.work-menubar b { font-weight: 700; color: #f2f5fa; }
.work-clock { margin-left: auto; color: #e3e8f2; font-variant-numeric: tabular-nums; }
@media (max-width: 1000px) { .work-menubar span:nth-of-type(n+3):not(.work-clock) { display: none; } }
@media (max-width: 760px) { .work-menubar span:not(.work-clock) { display: none; } }
@media (max-width: 620px) { .work-menubar { display: none; } }
/* The app's Island, at the top of the card, over the menu bar. */
.island-work { --u: var(--wu); position: absolute; z-index: 3; left: 50%; top: 0; transform: translateX(-50%); }
/* The button over the closed capsule (at least 44 px tall to touch), and the panel it opens: the shape
   grows to 420 pt and the panel's height (main.js sets --card-h), as the hero's card does. */
[data-display="display"] .work-demo { --cut-top: 28; }
.work-island-btn { position: absolute; left: 50%; top: calc(var(--u) * var(--cut-top) + var(--u) * 16 - max(22px, var(--u) * 16)); width: calc(var(--u) * (var(--cut-w) + 2 * var(--side))); height: max(44px, var(--u) * 32); transform: translateX(-50%); padding: 0; border: 0; border-radius: 99px; background: none; cursor: pointer; pointer-events: auto; }
.island-work[data-state="panel"] .isl-shape {
  width: calc(var(--u) * 420); height: calc(var(--u) * var(--card-h, 220));
  border-radius: calc(var(--u) * var(--card-top-r)) calc(var(--u) * var(--card-top-r)) calc(var(--u) * 24) calc(var(--u) * 24);
  box-shadow: 0 calc(var(--u) * 18) calc(var(--u) * 60) rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.07);
}
.island-work[data-state="panel"] .isl-shape::after { opacity: 0.35; }
.island-work[data-state="panel"] .isl-side { opacity: 0; transition-duration: 0.15s; }
.island-work[data-state="panel"] .work-island-btn { width: calc(var(--u) * 420); }
/* The panel's content, in the app's sizes: 14 pt in from the sides, a 20 pt header, rows 6 pt apart. */
.work-panel { position: absolute; left: 50%; top: calc(var(--u) * (var(--cut-top) + 16)); width: calc(var(--u) * 420); padding: 0 calc(var(--u) * 14); transform: translateX(-50%) translateY(calc(var(--u) * -8)) scale(0.97); opacity: 0; visibility: hidden; pointer-events: auto; color: #fff; text-align: left; font-family: var(--font); letter-spacing: 0; transition: opacity 0.18s, transform 0.3s var(--ease), visibility 0s 0.3s; }
.island-work[data-state="panel"] .work-panel { opacity: 1; visibility: visible; transform: translateX(-50%); transition: opacity 0.3s 0.15s, transform 0.5s var(--spring) 0.1s, visibility 0s; }
.wp-head { display: flex; align-items: center; gap: calc(var(--u) * 8); height: calc(var(--u) * 20); font-size: calc(var(--u) * 13); }
.wp-head b { font-weight: 600; }
.wp-alert { display: grid; place-items: center; width: calc(var(--u) * 15); height: calc(var(--u) * 15); flex: none; border-radius: 50%; background: var(--wait); color: #000; font: 800 calc(var(--u) * 10) / 1 var(--rounded); font-style: normal; }
.wp-tally { margin-left: auto; font-size: calc(var(--u) * 12); font-weight: 500; white-space: nowrap; }
.wp-tally .wait { color: var(--wait); } .wp-tally .run { color: var(--run); } .wp-tally .sep { color: rgba(255, 255, 255, 0.35); }
.wp-rows { display: grid; gap: calc(var(--u) * 6); margin-top: calc(var(--u) * 12); }
/* A row: white at 12% on black, the waiting one lighter with an amber edge, 10 pt corners. */
.wp-row { display: flex; align-items: center; gap: calc(var(--u) * 10); min-height: calc(var(--u) * 44); padding: calc(var(--u) * 7) calc(var(--u) * 10); border: 0; border-radius: calc(var(--u) * 10); background: #1f1f1f; color: #fff; font: inherit; text-align: left; cursor: pointer; transition: background 0.2s; }
.wp-row[data-s="waiting"] { background: #292929; box-shadow: inset 0 0 0 1px rgba(255, 189, 61, 0.55); }
.wp-row:hover { background: #2c2c2c; }
.wp-row:focus-visible { outline: none; box-shadow: inset 0 0 0 calc(var(--u) * 1.5) rgba(255, 255, 255, 0.6); }
.wp-dot { flex: none; width: calc(var(--u) * 20); height: calc(var(--u) * 20); }
.wp-dot .dot { transform: none; opacity: 1; transition: none; }
.wp-main { display: grid; gap: calc(var(--u) * 2); min-width: 0; flex: 1; }
.wp-name { display: flex; align-items: baseline; gap: calc(var(--u) * 6); min-width: 0; white-space: nowrap; }
.wp-name b { font-size: calc(var(--u) * 13); font-weight: 600; }
/* The branch in the app's soft violet (NodtopView.branchTint), so it stands apart from the grey. */
.wp-branch { display: inline-flex; align-items: center; gap: calc(var(--u) * 3); min-width: 0; overflow: hidden; text-overflow: ellipsis; color: #b8a8fa; font-size: calc(var(--u) * 12); font-weight: 500; }
.wp-branch svg { width: calc(var(--u) * 11); height: calc(var(--u) * 11); flex: none; }
/* Your last prompt behind >_, the app's PromptChip: a chevron and a bar in a small rounded box. */
.wp-prompt { display: flex; align-items: center; gap: calc(var(--u) * 5); min-width: 0; color: #9e9e9e; font-size: calc(var(--u) * 11); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wp-prompt > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.wp-chip { flex: none; width: calc(var(--u) * 16); height: calc(var(--u) * 12); border-radius: calc(var(--u) * 3.5); background: rgba(255, 255, 255, 0.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 12'%3E%3Cpath d='M4.5 3.5 7.5 6l-3 2.5M9 8.5h2.5' fill='none' stroke='%23ededed' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat; box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.1); }
.wp-tag { flex: none; color: #8e8e93; font: calc(var(--u) * 10.5) / 1 var(--mono); }
.wp-tag.wp-wait { color: var(--wait); font: 600 calc(var(--u) * 11.5) / 1 var(--font); }
html:not(.js) .work-panel, html:not(.js) .work-island-btn { display: none; }
/* A quiet invitation under the Island, pointing up at it. It fades once the Island has been clicked. */
.work-hint { position: relative; margin: 6px 0 0; padding-top: 10px; font: 500 13px/1 var(--font); letter-spacing: 0; color: rgba(225, 232, 245, 0.62); transition: opacity 0.5s var(--ease); }
.work-hint::before { content: ""; position: absolute; left: 50%; top: 0; width: 6px; height: 6px; margin-left: -3px; border-left: 1.5px solid currentColor; border-top: 1.5px solid currentColor; transform: rotate(45deg); }
.work-demo.used .work-hint { opacity: 0; }

/* The guided demo's pointer: its tip sits on the point main.js aims at; a click dips it. */
.work-pointer { position: absolute; left: 0; top: 0; z-index: 6; width: 20px; height: 24px; margin: -2px 0 0 -2.5px; opacity: 0; pointer-events: none; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.45)); transition: transform 0.85s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s; }
.work-pointer.on { opacity: 1; }
.work-pointer svg { display: block; width: 100%; height: 100%; transform-origin: 2.5px 2px; transition: transform 0.15s var(--ease); }
.work-pointer.press svg { transform: scale(0.84); }
html:not(.js) .work-pointer { display: none; }

/* Terminal in its dark profile: neutral grey lights (colour only means status), equal tabs with a
   highlight that glides to the chosen one, and Claude Code's screen as text. */
.work-terminal { width: 100%; max-width: 780px; min-width: 0; margin-top: clamp(16px, 2.4vw, 26px); border-radius: 12px; overflow: hidden; background: rgba(28, 28, 30, 0.94); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5), 0 0 0 0.5px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.09); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.work-bar { position: relative; display: flex; align-items: center; height: 30px; padding: 0 12px; }
.work-title { position: absolute; left: 76px; right: 76px; text-align: center; font: 600 12.5px/1 var(--font); color: #a0a6b3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.work-lights { display: flex; gap: 8px; }
.work-lights i { width: 12px; height: 12px; border-radius: 50%; background: #45474e; box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.08); }
.work-tabs { position: relative; display: flex; background: rgba(0, 0, 0, 0.28); border-top: 1px solid rgba(0, 0, 0, 0.5); border-bottom: 1px solid rgba(0, 0, 0, 0.5); }
.work-glide { position: absolute; left: 0; top: 0; bottom: 0; width: var(--gw, 33%); transform: translateX(var(--gx, 0)); background: rgba(58, 58, 62, 0.95); box-shadow: inset 0 0.5px 0 rgba(255, 255, 255, 0.08); transition: transform 0.45s var(--spring), width 0.45s var(--spring); }
.work-tabs span { position: relative; min-width: 0; flex: 1 1 0; padding: 7px 9px; color: #8b909b; font: 500 12px/1 var(--font); text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: default; transition: color 0.3s; }
.work-tabs span + span { box-shadow: -1px 0 0 rgba(0, 0, 0, 0.45); }
.work-tabs span.on { color: #f2f3f5; }
.work-body { display: grid; height: 236px; }
.work-pane { grid-area: 1 / 1; min-width: 0; display: flex; flex-direction: column; padding: 12px 16px 12px; color: #d8dce4; font: 12.5px/1.55 var(--mono); text-align: left; opacity: 0; visibility: hidden; transition: opacity 0.3s var(--ease), visibility 0s 0.3s; }
.work-pane.on { opacity: 1; visibility: visible; transition: opacity 0.3s var(--ease) 0.05s, visibility 0s; }
/* Claude Code's screen: your prompt, its tools (green when done), its words, the spinner (working, so
   blue), the input box and the mode line. Lines keep their spaces and clip at the window's edge. */
.wt-lines { flex: 1; min-height: 0; overflow: hidden; }
.work-pane p { margin: 0; white-space: pre; overflow: hidden; text-overflow: ellipsis; }
.wt-you { color: #a9afbb; }
.work-pane i { font-style: normal; }
.wt-tool { color: var(--done); }
.wt-say { color: #f2f3f5; }
.wt-dim { color: #7d828d; }
.wt-busy, .wt-busy i { color: var(--run); }
.wt-input { margin-top: 8px; padding: 3px 9px; border: 1px solid #4b4e57; border-radius: 6px; color: #a9afbb; white-space: pre; }
.wt-caret { display: inline-block; width: 0.6em; height: 1.15em; vertical-align: -0.22em; background: #c9cbd1; }
.wt-mode { margin-top: 4px; padding-left: 2px; font-size: 11.5px; color: #b8a8fa; }
.wt-ask { margin-top: 6px; padding: 5px 10px; border: 1px solid rgba(255, 189, 61, 0.55); border-radius: 6px; }
.wt-ask b { font-weight: 600; color: #f2f3f5; }
.wt-sel { color: var(--wait); }
.wt-path { color: var(--run); }
/* tmux: the session's pane and a shell beside it, and tmux's own green status line along the bottom. */
.work-pane.work-tmux { padding: 0; }
.tmux-panes { flex: 1; display: grid; grid-template-columns: 1.7fr 1fr; min-height: 0; }
.tmux-pane { display: flex; flex-direction: column; min-width: 0; padding: 12px 14px; }
.tmux-pane + .tmux-pane { border-left: 1px solid rgba(255, 255, 255, 0.14); color: #a9afbb; }
.tmux-status { display: flex; justify-content: space-between; align-items: center; height: 20px; padding: 0 8px; background: #3fae62; color: #06210f; font-size: 11.5px; }
/* A phone shows each screen's last three lines, under a menu bar-less Island. */
@media (max-width: 620px) {
  .work-demo { padding-inline: 10px; padding-bottom: 16px; }
  .work-body { height: auto; }
  .work-pane { padding: 10px 12px; font-size: 11px; }
  .wt-lines > :nth-last-child(n+4), .wt-mode { display: none; }
  .tmux-panes { grid-template-columns: 1fr; }
  .tmux-pane + .tmux-pane { display: none; }
  .work-title { left: 84px; right: 12px; text-align: left; }
}
html:not(.js) .island-work, html:not(.js) .work-hint, html:not(.js) .work-glide { display: none; }
html:not(.js) .work-demo { padding-top: 64px; }
html:not(.js) .work-pane[data-work-pane="web"] { opacity: 1; visibility: visible; }
@media (prefers-reduced-motion: reduce) { .work-glide, .work-pane { transition-duration: 0s; } }

/* The lists: two white cards, a small heading over a row of items, split by hairlines. */
/* Terminals and agents in one slim white strip (2026-11-12): a glyph, the name, and a word or two. */
.wk-strip { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 3fr); margin-top: 20px; padding: 28px 32px 30px; border-radius: 28px; background: var(--white); }
.wk-group + .wk-group { padding-left: 32px; margin-left: 32px; border-left: 1px solid var(--hair-light); }
.wk-eyebrow { margin: 0 0 20px; font: 600 13px/1.2 var(--font); letter-spacing: 0.02em; text-transform: uppercase; color: var(--steel); }
:lang(ja) .wk-eyebrow, :lang(ko) .wk-eyebrow, :lang(zh-Hans) .wk-eyebrow, :lang(zh-Hant) .wk-eyebrow { text-transform: none; letter-spacing: 0; }
.wk-list { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 16px; }
.wk-list li { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.wk-list b { display: block; font: 600 17px/1.2 var(--display); letter-spacing: -0.015em; color: var(--ink); }
.wk-list small { display: block; margin-top: 3px; font-size: 14px; line-height: 1.35; color: var(--steel); }
.wk-glyph { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 14px; border-radius: 11px; background: linear-gradient(180deg, #2a2f3b, #141821); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 4px 10px rgba(18, 24, 38, 0.18); }
.wk-glyph i { font: 600 14px/1 var(--mono); font-style: normal; color: #e6ebf4; letter-spacing: -0.04em; }
.wk-split { grid-template-columns: 1.4fr 1fr; gap: 3px; padding: 9px; place-items: stretch; }
.wk-split i { border-radius: 3px; box-shadow: inset 0 0 0 1.5px rgba(230, 235, 244, 0.32); }
.wk-split i:first-child { box-shadow: inset 0 0 0 1.5px #e6ebf4; }
:lang(ja) .wk-list small, :lang(ja) .work-hint { word-break: auto-phrase; }
/* Each agent's shape in a little piece of the Island, as the app draws it. */
.wk-mark { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--black); box-shadow: 0 4px 10px rgba(18, 24, 38, 0.18); }
.shape { width: 18px; height: 18px; border: 2.5px solid #e6ebf4; }
.s-circle { border-radius: 50%; }
.s-square { border-radius: 5px; }
.s-diamond { width: 15px; height: 15px; border-radius: 3px; transform: rotate(45deg); }
.wk-list .wk-glyph, .wk-list .wk-mark { width: 38px; height: 38px; margin: 0; }
.wk-list .wk-glyph { border-radius: 10px; }
.wk-list .wk-split { padding: 8px; }
@media (max-width: 960px) {
  .wk-strip { grid-template-columns: 1fr; padding: 26px 22px 28px; }
  .wk-group + .wk-group { padding: 26px 0 0; margin: 26px 0 0; border-left: 0; border-top: 1px solid var(--hair-light); }
}
@media (max-width: 620px) {
  .wk-list { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 22px; }
  .wk-list li { flex-direction: row; align-items: center; }
}

/* Tech specs (round 18): folded under the prices, a row like a FAQ question that opens the list. */
.specs-more { margin-top: 48px; border-top: 1px solid var(--hair-light); border-bottom: 1px solid var(--hair-light); interpolate-size: allow-keywords; }
.specs-more summary { list-style: none; cursor: pointer; position: relative; padding: 20px 44px 20px 0; font-size: 19px; font-weight: 600; letter-spacing: -0.015em; }
.specs-more summary::-webkit-details-marker { display: none; }
.specs-more summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 11px; height: 11px; margin-top: -8px; border-right: 2px solid var(--steel); border-bottom: 2px solid var(--steel); transform: rotate(45deg); transition: transform 0.4s var(--ease); }
.specs-more[open] summary::after { transform: translateY(5px) rotate(-135deg); }
.specs-more::details-content { height: 0; overflow: clip; transition: height 0.45s var(--ease), content-visibility 0.45s allow-discrete; }
.specs-more[open]::details-content { height: auto; }
.spec-list { margin: 0 0 6px; }
.spec-list > div { display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding: 18px 0; border-top: 1px solid var(--hair-light); }
.spec-list dt { font-weight: 600; }
.spec-list dd { margin: 0; color: #3b4559; }
@media (max-width: 640px) { .spec-list > div { grid-template-columns: 1fr; gap: 4px; } }

/* FAQ */
/* Pricing: three cards on the paper band, the beta first and raised in ink, since it's what you can get today. */
.price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 44px; }
.price-card { display: flex; flex-direction: column; gap: 10px; padding: 28px 26px; border-radius: 24px; background: #fff; box-shadow: 0 0 0 1px var(--hair-light); }
.price-card h3 { margin: 0; font-size: 19px; font-weight: 600; }
.pc-price { margin: 0; font: 700 44px/1.05 var(--font); letter-spacing: -0.028em; font-variant-numeric: tabular-nums; }
.pc-note { margin: 0; color: var(--steel); font-size: 17px; line-height: 1.4; }
.price-card.is-now { background: var(--ink); color: #fff; box-shadow: none; }
.price-card.is-now .pc-note { color: #b9c2d3; }
.band.light .price-card.is-now .pill { align-self: flex-start; margin-top: auto; background: #fff; color: var(--ink); }
/* One fact under each card, its dot on the card text's left edge (the owner's choice, 2026-11-12):
   the same columns and gap as .price-grid, inset by the cards' 26 px padding. */
.price-facts { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 16px; margin-top: 22px; padding: 0; color: var(--steel); font-size: 17px; }
.price-facts li { display: flex; align-items: baseline; gap: 9px; padding: 0 26px; text-wrap: balance; }
.price-facts li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--done); flex: none; transform: translateY(-1px); }
.pricing .lede { margin-left: 0; max-width: 36em; }
@media (max-width: 760px) { .price-grid, .price-facts { grid-template-columns: 1fr; } }

.faq { padding-bottom: clamp(96px, 12vw, 150px); }
.faq-list { margin-top: 40px; }
.faq details { border-top: 1px solid var(--hair-light); interpolate-size: allow-keywords; }
.faq details:last-child { border-bottom: 1px solid var(--hair-light); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative; font-size: 21px; font-weight: 600; letter-spacing: -0.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -9px; border-right: 2px solid var(--steel); border-bottom: 2px solid var(--steel); transform: rotate(45deg); transition: transform 0.4s var(--ease); }
.faq details[open] summary::after { transform: translateY(5px) rotate(-135deg); }
.faq details::details-content { height: 0; overflow: clip; transition: height 0.45s var(--ease), content-visibility 0.45s allow-discrete; }
.faq details[open]::details-content { height: auto; }
/* The space under an answer is padding, not the paragraph's margin: a margin stays inside the
   box while its height animates, then collapses out of it once the height is auto, so the line
   below overshot and came back at the end (the owner, 2026-11-11). */
.faq .ans { padding-bottom: 24px; }
.faq .ans p { margin: 0; max-width: 40em; color: #3b4559; }

/* Pills set their own display, so hidden needs saying twice. */
[data-download][hidden], [data-film][hidden] { display: none !important; }

/* Footer */
.foot { background: var(--paper); color: var(--steel); padding: 40px 0 56px; font-size: 12px; line-height: 1.5; letter-spacing: -0.01em; }
.notes { margin: 0 0 18px; padding-left: 1.4em; border-bottom: 1px solid var(--hair-light); padding-bottom: 18px; }
.notes li { margin-bottom: 8px; }
.notes li:target { color: var(--ink); }
.legal { margin: 0 0 8px; }

/* Film */
.film { width: min(1100px, 92vw); padding: 0; border: 0; border-radius: 18px; background: var(--black); overflow: visible; }
.film::backdrop { background: rgba(6, 9, 15, 0.88); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.film video { display: block; width: 100%; border-radius: 18px; }
.film-close { position: absolute; right: -6px; top: -54px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--night-3); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; }
.film[open] { animation: filmin 0.5s var(--ease); }
@keyframes filmin { from { opacity: 0; transform: scale(0.96); } }

/* Reveal: headlines and grids rise into place once. */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.9s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--k, 0) * 80ms); }
.js .reveal.in { opacity: 1; transform: none; }
/* Loops stop off screen: main.js marks each section, card and tile that has left it. */
.offscreen, .offscreen::before, .offscreen::after, .offscreen *, .offscreen ::before, .offscreen ::after { animation-play-state: paused !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
  .lang-card > a, .nav-card > a { animation-delay: 0s !important; }
  .press-count i { background: var(--listen); }
  .press .spot { opacity: 0.8; }
  .press .pinch::before, .press .pinch::after { opacity: 1; }
  .lang-card, .nav-card { clip-path: none !important; }
}

/* Without JavaScript the pinned scenes would be empty scroll, so they collapse. */
html:not(.js) .scene { height: auto; }
html:not(.js) .stage { position: relative; height: auto; min-height: 100vh; }

.a-done { font-style: normal; }
html:not(.js) .mac, html:not(.js) .story, html:not(.js) .an-visual, html:not(.js) .hl-controls { display: none; }
html:not(.js) [data-only="notch"], html:not(.js) [data-only="display"], html:not(.js) .display-switch { display: none; }
html:not(.js) .hero-copy { position: relative; top: auto; padding-top: calc(var(--nav-h) + 12vh); }
html:not(.js) .an-steps { height: auto; }
html:not(.js) .step { position: static; opacity: 1; transform: none; margin-bottom: 32px; }
html:not(.js) .airnod .stage { display: block; }

/* Dynamic Island or notch, a segmented control like Apple's model pickers. */
.display-switch { position: relative; display: inline-grid; grid-auto-flow: column; grid-auto-columns: auto; padding: 3px; border-radius: 99px; background: rgba(29, 38, 56, 0.78); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.13), 0 6px 24px rgba(0, 0, 0, 0.35); }
.display-switch button { position: relative; z-index: 1; min-height: 38px; padding: 0 18px; border: 0; background: none; border-radius: 99px; cursor: pointer; font-size: 14px; font-weight: 500; color: var(--mist); white-space: nowrap; transition: color 0.3s; }
/* Unchosen modes brighten under the pointer, so the row reads as a switch to press. */
.display-switch button[aria-checked="false"]:hover { color: #fff; }
/* The thumb is sized to the chosen label by main.js, so long translations fit. */
.display-switch .ds-thumb { position: absolute; top: 3px; bottom: 3px; left: 0; width: var(--tw, 50%); transform: translateX(var(--tx, 3px)); border-radius: 99px;
  /* Only a slight lift; no halo (the owner, 2026-11-10: the cyan glow and dark ring were removed). */
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  transition: transform 0.5s var(--spring), width 0.5s var(--spring); }
/* Forced dark mode (HarmonyOS's browser, Android Chrome) inverts light backgrounds and darkens nothing
   that's already dark, and has no opt-out it always honours. So white parts are painted black and
   flipped with a filter: white everywhere. The chosen label is light text flipped the same way. */
.display-switch .ds-thumb::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: #000; filter: invert(1); }
.display-switch button[aria-checked="true"] { color: #ede7d9; filter: invert(1); } /* --ink, inverted */
/* Switching display dissolves the page (main.js setDisplay). Each switch is its own layer with no
   fade, so its thumb keeps sliding while the rest cross-fades. */
/* The display switch's new device skips the capture and fades in live (see setDisplay). */
.mac.vt-hold { opacity: 0 !important; } /* over drawHero's inline opacity */
.mac.vt-arrive { transition: opacity 0.42s cubic-bezier(0.28, 0.11, 0.32, 1); }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.55s; animation-timing-function: cubic-bezier(0.28, 0.11, 0.32, 1); }
.hero-switch { view-transition-name: display-switch-hero; }
/* A menu link's hop to a far section: the page dims under the menu (z-index 50) while it moves. */
.nav-veil { position: fixed; inset: 0; z-index: 49; background: var(--night); opacity: 0; pointer-events: none; }
.notify .display-switch { view-transition-name: display-switch-end; }
::view-transition-group(display-switch-hero), ::view-transition-group(display-switch-end) { animation: none; }
::view-transition-old(display-switch-hero), ::view-transition-old(display-switch-end) { display: none; }
::view-transition-new(display-switch-hero), ::view-transition-new(display-switch-end) { animation: none; }
.hero-switch { position: absolute; left: 50%; bottom: calc(max(14px, env(safe-area-inset-bottom)) + 40px); transform: translateX(-50%); z-index: 4; }
.scroll-cue { position: absolute; left: 50%; bottom: max(12px, env(safe-area-inset-bottom)); width: 28px; height: 28px; margin-left: -14px; color: rgba(220, 228, 245, 0.55); z-index: 4; pointer-events: none; animation: cue 2.4s var(--ease) infinite; }
/* The cue's own opacity is left to main.js, which fades it on the first scroll, so the bob animates
   only the arrow inside it. */
.scroll-cue svg { width: 100%; height: 100%; display: block; animation: cueGlow 2.4s var(--ease) infinite; }
@keyframes cue { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
@keyframes cueGlow { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .scroll-cue { display: none; } }
html:not(.js) .scroll-cue { display: none; }
.notify .display-switch { margin-top: 28px; }
@media (max-width: 520px) { .display-switch button { padding: 0 11px; font-size: 13px; } }
[data-display="island"] .menubar { height: 2.6cqw; }
/* A 24 pt menu bar on a 2560 pt wide screen. */
[data-display="display"] .menubar { height: 0.94cqw; gap: 0.7cqw; padding-left: 0.8cqw; }
[data-display="display"] .menubar span { width: 1.3cqw; height: 0.26cqw; }
[data-display="display"] .menubar span:first-child { width: 0.5cqw; height: 0.5cqw; }

/* External display: a studio display, drawn rather than photographed, with no logo. The lid
   becomes its panel, at 16:9 with an even black border and a thin dark edge, and the laptop's deck
   and hinge give way to a stand made like one bent sheet of aluminium: a straight upright slab about
   a quarter of the display's width, with a round cable opening at its top, standing on a thin foot
   of the same width. The stand is the MacBook's space black aluminium, lit from the upper left like
   its lid: the same greys, brighter on the left, with the light catching only the edges that face it.
   The screen inside is the same as the MacBook's. */
.stand { display: none; }
[data-display="display"] .lid { height: var(--lid-h, calc(var(--mac-w, 900px) * 0.5625)); }
[data-display="display"] .lid-front {
  opacity: 1; border-radius: calc(var(--mac-w, 900px) * 0.012);
  background: #040405;
  box-shadow: 0 0 0 calc(var(--mac-w, 900px) * 0.0025) #1c1c1f, 0 0 0 calc(var(--mac-w, 900px) * 0.004) #3a3b40, 0 calc(var(--mac-w, 900px) * 0.02) calc(var(--mac-w, 900px) * 0.05) rgba(0, 0, 0, 0.45);
}
[data-display="display"] .lid-front::before {
  content: ""; position: absolute; z-index: 2; left: 50%; top: calc(var(--mac-bezel) * 0.5); width: calc(var(--mac-w, 900px) * 0.005); height: calc(var(--mac-w, 900px) * 0.005);
  transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle at 35% 35%, #2a3a5a 0 18%, #0b0f18 50%, #050608 75%);
}
[data-display="display"] .screen { border-radius: calc(var(--mac-w, 900px) * 0.004); }
[data-display="display"] .lid-back, [data-display="display"] .hinge, [data-display="display"] .deck { display: none; }
[data-display="display"] .stand { display: block; position: absolute; left: 0; right: 0; top: 100%; height: calc(var(--mac-w, 900px) * 0.185); pointer-events: none; }
.stand-neck {
  position: absolute; left: 38%; right: 38%; top: 0; bottom: 6%;
  background:
    linear-gradient(106deg, transparent 10%, rgba(255, 255, 255, 0.06) 30%, rgba(255, 255, 255, 0.02) 46%, transparent 62%),
    linear-gradient(90deg, #55565c, #4b4c51 12%, #424348 50%, #3a3b40 88%, #323337);
  /* Darker where it meets the display, which shades it from above, and a lit left edge facing the light. */
  box-shadow:
    inset 0 calc(var(--mac-w, 900px) * 0.016) calc(var(--mac-w, 900px) * 0.014) rgba(0, 0, 0, 0.45),
    inset 1px 0 0 rgba(255, 255, 255, 0.13), inset -1px 0 0 rgba(255, 255, 255, 0.035);
}
/* The cable opening: a half circle cut from the top of the slab, showing the night behind it. */
.stand-neck::before {
  content: ""; position: absolute; left: 50%; top: 0; width: 22%; aspect-ratio: 2 / 1; transform: translateX(-50%); box-sizing: border-box;
  border-radius: 0 0 999px 999px; background: var(--night, #10151f);
  /* A lit rim, the cut edge of the aluminium, so it reads as a hole rather than a shadow. */
  border: calc(var(--mac-w, 900px) * 0.0022) solid #7a7b81; border-top: 0;
  box-shadow: 0 calc(var(--mac-w, 900px) * 0.002) calc(var(--mac-w, 900px) * 0.003) rgba(0, 0, 0, 0.25);
}
.stand-foot {
  position: absolute; left: 37.6%; right: 37.6%; bottom: 0; height: 6%;
  border-radius: calc(var(--mac-w, 900px) * 0.002) calc(var(--mac-w, 900px) * 0.002) calc(var(--mac-w, 900px) * 0.003) calc(var(--mac-w, 900px) * 0.003);
  /* Its front face, shaded like the MacBook's front edge: lit along the top, falling to near black. */
  background: linear-gradient(180deg, #a4a5ab 0%, #77787e 14%, #4a4b50 40%, #313236 75%, #1e1f22 100%);
  /* Only a tight contact shadow where it meets the desk; the soft one is the floor's. */
  box-shadow: 0 1px 1.5px rgba(0, 0, 0, 0.7);
}
/* Two small rubber feet at the front corners. */
.stand-foot::before, .stand-foot::after { content: ""; position: absolute; bottom: calc(var(--mac-w, 900px) * -0.0025); width: 9%; height: calc(var(--mac-w, 900px) * 0.0028); border-radius: 0 0 2px 2px; background: #08090a; }
.stand-foot::before { left: 7%; }
.stand-foot::after { right: 7%; }
/* The display's shadow on the desk (the owner, 2026-11-10: the blob under the foot looked heavy):
   a light, wide ellipse a little in front of the foot, fading out to about twice its width. */
[data-display="display"] .floor {
  top: calc(100% + var(--mac-w, 900px) * (0.185 + 0.004)); left: 20%; right: 20%; height: calc(var(--mac-w, 900px) * 0.05);
  background: radial-gradient(50% 50% at 50% 35%, rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.22) 55%, transparent);
  filter: blur(calc(var(--mac-w, 900px) * 0.01)); z-index: -1;
}

/* ------------------------------------------------------------------ The geometric companion (buddy.js) */
.buddy { position: relative; display: block; }
/* Drawn in inverse colours and flipped, so forced dark modes leave it white: see buddy.js. */
.buddy-svg { display: block; width: 100%; height: auto; overflow: visible; filter: invert(1); }
.buddy g, .buddy path, .buddy ellipse, .buddy circle { transform-box: fill-box; transform-origin: 50% 50%; }
.b-shadow { fill: #fff; opacity: 0.45; filter: blur(4px); transition: transform 0.4s var(--ease), opacity 0.4s; }
.b-body { transform-origin: 50% 100% !important; }
.b-shine { fill: #000; opacity: 0.42; transform: rotate(-26deg); filter: blur(4px); }
.b-eye ellipse { fill: #0a0a08; } /* #f5f5f7, inverted */
.b-glint { fill: #000; }
.b-joy path, .b-mouth { fill: none; stroke: #0a0a08; stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; }
.b-joy { opacity: 0; transform: scale(0.6); transition: opacity 0.2s, transform 0.35s var(--spring); }
.b-eyes { transition: opacity 0.15s, transform 0.4s var(--ease); }
.b-grin { fill: none; stroke-width: 5; opacity: 0; transform: scale(0.4); transition: opacity 0.2s, transform 0.4s var(--spring); }
.b-wobble { opacity: 0; stroke-width: 4; transition: opacity 0.2s; }
.b-smile { transition: opacity 0.2s, transform 0.3s var(--ease); }
.b-glow { fill: #8c4700; /* --listen, inverted */ opacity: 0; filter: blur(6px); transition: opacity 0.4s; }
.b-spark { fill: #0a0a08; opacity: 0; transform: scale(0); }

/* Idle: breathe and blink. */
.buddy .b-body { animation: breathe 3.6s ease-in-out infinite; }
.buddy .b-eyes { animation: blink 4.4s infinite; }
@keyframes breathe { 0%, 100% { transform: translateY(0) scale(1, 1); } 50% { transform: translateY(-2px) scale(1.008, 0.992); } }
@keyframes blink { 0%, 91%, 97%, 100% { transform: scaleY(1); } 94% { transform: scaleY(0.08); } }

/* Listen: eyes up, earbuds glowing. */
.buddy[data-mood="listen"] .b-face { transform: translateY(-5px); transition: transform 0.5s var(--ease); }
.buddy[data-mood="listen"] .b-glow, .buddy[data-mood="speak"] .b-bud-l .b-glow { animation: budglow 1.4s ease-in-out infinite; }
@keyframes budglow { 0%, 100% { opacity: 0.2; } 50% { opacity: 0.95; } }
.b-face { transition: transform 0.5s var(--ease); }

/* Nod: twice, like "yes, yes". */
.buddy[data-mood="nod"] .b-body { animation: nodbody 1.5s var(--ease) 0.1s both; }
.buddy[data-mood="nod"] .b-face { animation: nodface2 1.5s var(--ease) 0.1s both; }
.buddy[data-mood="nod"] .b-shadow { animation: nodshadow 1.5s var(--ease) 0.1s both; }
@keyframes nodbody { 0%, 54%, 100% { transform: none; } 12%, 40% { transform: translateY(7px) scale(1.03, 0.95); } 26% { transform: translateY(-2px) scale(0.99, 1.02); } }
@keyframes nodface2 { 0%, 54%, 100% { transform: none; } 12%, 40% { transform: translateY(13px); } 26% { transform: translateY(-3px); } }
@keyframes nodshadow { 0%, 54%, 100% { transform: none; } 12%, 40% { transform: scale(1.1, 1); } }

/* Shake: no, no. */
.buddy[data-mood="shake"] .b-face { animation: shakeface 1.3s var(--ease) 0.1s both; }
.buddy[data-mood="shake"] .b-body { animation: shakebody 1.3s var(--ease) 0.1s both; }
.buddy[data-mood="shake"] .b-smile { opacity: 0; }
.buddy[data-mood="shake"] .b-wobble { opacity: 1; }
@keyframes shakeface { 0%, 80%, 100% { transform: none; } 14% { transform: translateX(-15px); } 32% { transform: translateX(15px); } 50% { transform: translateX(-11px); } 66% { transform: translateX(6px); } }
@keyframes shakebody { 0%, 80%, 100% { transform: none; } 14% { transform: rotate(-4deg); } 32% { transform: rotate(4deg); } 50% { transform: rotate(-3deg); } 66% { transform: rotate(1deg); } }

/* Happy: ^ ^, a grin, a hop and two sparkles. */
.buddy[data-mood="happy"] .b-eyes { opacity: 0; animation: none; }
.buddy[data-mood="happy"] .b-joy { opacity: 1; transform: none; }
.buddy[data-mood="happy"] .b-smile { opacity: 0; }
.buddy[data-mood="happy"] .b-grin { opacity: 1; transform: none; }
.buddy[data-mood="happy"] .b-cheek { transform: scale(1.18); }
.buddy[data-mood="happy"] .b-body { animation: hop 0.9s var(--ease) 0.05s both; }
.buddy[data-mood="happy"] .b-shadow { animation: hopshadow 0.9s var(--ease) 0.05s both; }
.buddy[data-mood="happy"] .b-spark-a { animation: spark 1.1s var(--ease) 0.35s both; }
.buddy[data-mood="happy"] .b-spark-b { animation: spark 1.1s var(--ease) 0.5s both; }
@keyframes hop { 0% { transform: none; } 18% { transform: translateY(4px) scale(1.06, 0.93); } 45% { transform: translateY(-16px) scale(0.97, 1.04); } 70% { transform: translateY(2px) scale(1.03, 0.97); } 100% { transform: none; } }
@keyframes hopshadow { 0%, 100% { transform: none; opacity: 0.45; } 45% { transform: scale(0.8); opacity: 0.25; } }
@keyframes spark { 0% { opacity: 0; transform: scale(0) rotate(0); } 40% { opacity: 1; transform: scale(1.2) rotate(30deg); } 100% { opacity: 0.9; transform: scale(1) rotate(45deg); } }

@media (prefers-reduced-motion: reduce) {
  .buddy .b-body, .buddy .b-eyes { animation: none !important; }
}

/* Looping moods, for the card's listening strip in the hero. */
.buddy[data-mood="nod-loop"] .b-body { animation: nodbody 2.8s var(--ease) infinite; }
.buddy[data-mood="nod-loop"] .b-face { animation: nodface2 2.8s var(--ease) infinite; }
.g-art.g-buddy { width: 62px; height: 64px; margin: 0 auto; }

/* Glass: a faint diagonal reflection over the screen, like light from a window. */
.glass { position: absolute; inset: 0; z-index: 5; pointer-events: none; background: linear-gradient(118deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.025) 28%, transparent 42%), linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 30%); }
/* The floor shadow, which tightens as the lid opens. */
.floor { position: absolute; left: 4%; right: 4%; top: calc(100% + var(--mac-w, 900px) * 0.02); height: calc(var(--mac-w, 900px) * 0.05); border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, 0.85), transparent); filter: blur(6px); transform: translateZ(0); }

/* A press, shown as it happens: a soft blue spot on the stem, marks pinching it, and a counter
   that fills one ring per press. Sized by --k, pixels per unit of the earbud's 80 x 120 drawing. */
.press { --k: 0.62px; display: inline-flex; align-items: center; gap: 16px; }
.press-col { flex-direction: column; gap: 18px; }
.press-bud { position: relative; flex: none; width: calc(80 * var(--k)); height: calc(120 * var(--k)); }
.press-bud svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.press .spot, .press .pinch { position: absolute; left: calc(43.4 * var(--k)); top: calc(80 * var(--k)); translate: -50% -50%; }
/* The pair, as in the highlights: the right pod's stem is pressed. */
.press-pair .press-bud { width: calc(120 * var(--k)); height: calc(100 * var(--k)); color: #f5f6f8; }
.press-pair .spot, .press-pair .pinch { left: calc(94.5 * var(--k)); top: calc(64 * var(--k)); }
.press-pair .pinch { width: calc(46 * var(--k)); }
.press .spot { width: calc(36 * var(--k)); height: calc(36 * var(--k)); border-radius: 50%; background: radial-gradient(circle, rgba(115, 184, 255, 0.95), rgba(115, 184, 255, 0) 70%); opacity: 0; }
.press .pinch { width: max(calc(74 * var(--k)), 58px); height: 12px; }
.press .pinch::before, .press .pinch::after { content: ""; position: absolute; top: 50%; width: 10px; height: 10px; margin-top: -5px; border: solid var(--listen); border-width: 2.5px 2.5px 0 0; border-radius: 1px; opacity: 0.35; transform: translateX(0) rotate(var(--rot)); }
.press .pinch::before { left: 0; --rot: 45deg; --dir: 1; }
.press .pinch::after { right: 0; --rot: -135deg; --dir: -1; }
.press-count { display: flex; gap: 7px; }
.press-count i { width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--listen); opacity: 0.9; }
.play .press[data-n="2"] .spot { animation: press2 2.4s ease-in-out; }
.play .press[data-n="3"] .spot { animation: press3 2.6s ease-in-out; }
.play .press[data-n="2"] .pinch::before, .play .press[data-n="2"] .pinch::after { animation: pinch2 2.4s ease-in-out; }
.play .press[data-n="3"] .pinch::before, .play .press[data-n="3"] .pinch::after { animation: pinch3 2.6s ease-in-out; }
.play .press[data-n="2"] .press-count i:nth-child(1) { animation: fill14 2.4s linear; }
.play .press[data-n="2"] .press-count i:nth-child(2) { animation: fill28 2.4s linear; }
.play .press[data-n="3"] .press-count i:nth-child(1) { animation: fill13 2.6s linear; }
.play .press[data-n="3"] .press-count i:nth-child(2) { animation: fill25 2.6s linear; }
.play .press[data-n="3"] .press-count i:nth-child(3) { animation: fill37 2.6s linear; }
@keyframes press3 { 0%, 8% { opacity: 0; } 13% { opacity: 1; } 19% { opacity: 0.1; } 25% { opacity: 1; } 31% { opacity: 0.1; } 37% { opacity: 1; } 47%, 100% { opacity: 0; } }
@keyframes pinch2 { 0%, 8%, 21%, 36%, 100% { transform: translateX(0) rotate(var(--rot)); opacity: 0.45; } 14%, 28% { transform: translateX(calc(var(--dir) * 4px)) rotate(var(--rot)); opacity: 1; } }
@keyframes pinch3 { 0%, 8%, 19%, 31%, 45%, 100% { transform: translateX(0) rotate(var(--rot)); opacity: 0.45; } 13%, 25%, 37% { transform: translateX(calc(var(--dir) * 4px)) rotate(var(--rot)); opacity: 1; } }
@keyframes fill14 { 0%, 12% { background: transparent; } 14%, 80% { background: var(--listen); } 90%, 100% { background: transparent; } }
@keyframes fill28 { 0%, 26% { background: transparent; } 28%, 80% { background: var(--listen); } 90%, 100% { background: transparent; } }
@keyframes fill13 { 0%, 11% { background: transparent; } 13%, 80% { background: var(--listen); } 90%, 100% { background: transparent; } }
@keyframes fill25 { 0%, 23% { background: transparent; } 25%, 80% { background: var(--listen); } 90%, 100% { background: transparent; } }
@keyframes fill37 { 0%, 35% { background: transparent; } 37%, 80% { background: var(--listen); } 90%, 100% { background: transparent; } }
.g-art.press { --k: 0.5px; width: auto; height: 64px; display: flex; align-items: center; justify-content: center; gap: 18px; margin: 0; }
/* At this size the pinch marks keep close to the bud (their 58 px minimum reached 11 px past it,
   onto the count; the owner, 2026-11-12). */
.g-art.press .pinch { width: calc(92 * var(--k)); }

/* Works with: the two apps' one-colour marks beside their names, quiet, under the music line. */
.v-works { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 22px; margin: 14px 0 0; color: var(--mist); font-size: 15px; }
.v-app { display: inline-flex; align-items: center; gap: 8px; color: #e6ebf4; font-weight: 500; }
.v-app svg { width: 20px; height: 20px; }

[tabindex="-1"]:focus { outline: none; }

/* Language picker, Apple-style, at the foot of the page. */
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; }
.foot-row .legal { margin: 0; }
.foot-row .legal a { color: var(--steel); text-decoration: none; }
.foot-row .legal a:hover { color: var(--ink); text-decoration: underline; }
.langs { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.langs a { color: var(--steel); text-decoration: none; padding: 6px 0; }
.langs a:hover { color: var(--ink); text-decoration: underline; }
.langs a[aria-current] { color: var(--ink); font-weight: 600; }

/* Type for each script. CJK reads better with no negative tracking and a little more leading. */
/* Apple's own fonts first, as before; elsewhere each language's own Noto Sans, so its characters take
   its forms, then the menu's names, then the device's font for a character added since
   tools/build-fonts.py last ran. */
html:lang(zh-Hans) { --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "PingFang SC", "PingFang TC", "Hiragino Sans", "Apple SD Gothic Neo", "Inter", "Nodtop SC", "Nodtop Names", sans-serif; }
html:lang(zh-Hant) { --font: -apple-system, BlinkMacSystemFont, "PingFang TC", "Hiragino Sans CNS", "PingFang SC", "PingFang TC", "Hiragino Sans", "Apple SD Gothic Neo", "Inter", "Nodtop TC", "Nodtop Names", sans-serif; }
html:lang(ja) { --font: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "PingFang SC", "PingFang TC", "Hiragino Sans", "Apple SD Gothic Neo", "Inter", "Nodtop JP", "Nodtop Names", sans-serif; }
html:lang(ko) { --font: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "PingFang SC", "PingFang TC", "Hiragino Sans", "Apple SD Gothic Neo", "Inter", "Nodtop KR", "Nodtop Names", sans-serif; }
html:lang(zh-Hans) body, html:lang(zh-Hant) body, html:lang(ja) body, html:lang(ko) body { letter-spacing: 0; }
html:lang(zh-Hans) :is(.display, .headline, .title, .cap h2, .step h3), html:lang(zh-Hant) :is(.display, .headline, .title, .cap h2, .step h3),
html:lang(ja) :is(.display, .headline, .title, .cap h2, .step h3), html:lang(ko) :is(.display, .headline, .title, .cap h2, .step h3) { letter-spacing: -0.005em; line-height: 1.18; }
html:lang(zh-Hans) .lede, html:lang(zh-Hant) .lede, html:lang(ja) .lede, html:lang(ko) .lede { line-height: 1.6; letter-spacing: 0; }
/* Korean wraps at spaces; Japanese and Chinese wrap anywhere, but strictly, so no line starts with punctuation. */
html:lang(ko) :is(.display, .headline, .title, .cap h2, .step h3) { word-break: keep-all; }
/* Chinese and Japanese headlines break only at punctuation and spaces, so a phrase is never split
   ("完整命令，/绝不只是摘要"); a run too long for the line still breaks, rather than overflow. */
html:lang(ja) :is(.display, .headline, .title, .cap h2, .step h3, .g h3), html:lang(zh-Hans) :is(.display, .headline, .title, .cap h2, .step h3, .g h3), html:lang(zh-Hant) :is(.display, .headline, .title, .cap h2, .step h3, .g h3) { word-break: keep-all; overflow-wrap: anywhere; }
/* The story's one-line captions (round 18) wrap the same way on a phone: Chinese at its commas, Japanese between phrases. */
html:lang(zh-Hans) .cap p, html:lang(zh-Hant) .cap p { word-break: keep-all; overflow-wrap: anywhere; }
html:lang(ja) .cap p { word-break: auto-phrase; }
/* A full-width mark that ends a centred line is tucked in (main.js, hangPunctuation), so the line
   centres on its ink. Amounts measured from captures of the hero headline
   (2026-11-06): Simplified Chinese sets the mark at the far left, Traditional Chinese centres it. */
.pz.hang { margin-inline-end: -0.68em; }
html:lang(ja) .pz.hang { margin-inline-end: -0.58em; }
html:lang(zh-Hant) .pz.hang { margin-inline-end: -0.38em; }
html:lang(ja) body, html:lang(zh-Hans) body, html:lang(zh-Hant) body { line-break: strict; }
html:lang(ja) .display, html:lang(zh-Hans) .display, html:lang(zh-Hant) .display, html:lang(ko) .display { font-size: clamp(30px, 6.3vw, 80px); }
html:lang(de) :is(h1, h2, h3, p, dd, summary), html:lang(fr) :is(h1, h2, h3, p, dd, summary) { hyphens: auto; -webkit-hyphens: auto; }
/* Short tile labels break at their spaces ("Zweimal / nicken"), never by a hyphen. */
html:lang(de) .g h3, html:lang(fr) .g h3 { hyphens: manual; -webkit-hyphens: manual; }

/* ---------------------------------------------------------------- Glider (glider.js)
   The app's game, inside a drawn open Island. The scene keeps the app's sketch palette, only inside
   its frame, because it is a picture of the app. The light readouts and cards are painted in their
   inverse colours and flipped with invert(1), so a browser's forced dark mode leaves them as they
   are (design rule 8). Sizes inside the scene follow --gs, CSS pixels per scene point (960 wide). */
/* The dialog (round 18, 2026-11-12): the game out of the page's flow, over the dimmed page, opened
   from At a glance or a #glider link. It scrolls on its own, so the board and the share row can sit
   under the game on a smaller screen; the page behind stays put. A phone gets the whole screen. */
.gl-dialog {
  --gutter: clamp(16px, 2.4vw, 28px);
  width: min(1360px, 100vw - 32px); max-width: none; max-height: calc(100dvh - 32px);
  margin: auto; padding: clamp(20px, 2.6vw, 34px) 0 clamp(22px, 2.6vw, 36px);
  border: 0; border-radius: 30px; background: var(--night); color: var(--white);
  overflow: auto; overscroll-behavior: contain;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 40px 120px rgba(0, 0, 0, 0.6);
}
.gl-dialog::backdrop { background: rgba(6, 9, 15, 0.84); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.gl-dialog[open] { animation: filmin 0.45s var(--ease); }
html:has(.gl-dialog[open]) { overflow: hidden; }
.gl-top { position: relative; padding: 0 76px; text-align: center; }
.gl-h { margin: 0; font-family: var(--display); font-size: clamp(28px, 3vw, 42px); font-weight: 700; line-height: 1.08; letter-spacing: -0.028em; text-wrap: balance; }
.gl-lede { max-width: 36em; margin: 10px auto 0; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.45; color: var(--mist); text-wrap: balance; }
:lang(ja) .gl-lede { word-break: auto-phrase; }
.gl-close { position: absolute; top: -6px; right: clamp(14px, 2vw, 24px); display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--night-3); color: #fff; cursor: pointer; transition: background 0.2s; }
@media (hover: hover) { .gl-close:hover { background: #2e3953; } }
.gl-close svg { width: 16px; height: 16px; }
@media (max-width: 700px) {
  .gl-dialog { width: 100vw; height: 100dvh; max-height: none; border-radius: 0; padding-top: max(16px, env(safe-area-inset-top)); }
  .gl-top { padding: 0 56px; }
  .gl-close { top: -8px; right: 8px; }
  /* Safari on iPhone covers the area under its toolbar with the dialog's own night (see .hero .stage),
     so the leaderboard ended in a hard line there (the owner, 2026-11-12). It fades out instead. */
  .gl-dialog::after { content: ""; position: fixed; z-index: 5; left: 0; right: 0; bottom: 0; height: 40px; background: linear-gradient(rgba(16, 21, 31, 0), var(--night)); pointer-events: none; }
}
/* The app's blue AirPods beside their name, swinging ±9° as on the game's AirPods choice
   (GliderView.airPods: 9 × sin(2.2 t), a 2.9 s cycle). Kept on one line with the word. */
.gl-pw { white-space: nowrap; }
/* One sentence a line where there's room; a phone wraps the text as it comes. */
@media (max-width: 700px) { .gl-br { display: none; } }
.gl-pods { width: 1.45em; height: 1.2em; margin: 0 0.18em 0 0.05em; vertical-align: -0.22em; color: #4a8fd6; transform-origin: 50% 70%; animation: pods-swing 1.43s ease-in-out infinite alternate; }
@keyframes pods-swing { from { transform: rotate(-9deg); } to { transform: rotate(9deg); } }
@media (prefers-reduced-motion: reduce) { .gl-pods { animation: none; } }
.gl-island {
  --pi-ink: #e0d5c8; --pi-muted: #948575; --pi-blue: #d59559; --pi-earth: #b5c2d0;
  --pi-gold: #0b3abd; --pi-track: #271d13; --pi-knob: #c47d3b; --pi-line: #604f3d;
  /* Wide, but never taller than the dialog under its heading, so the whole sky is in view while flying. */
  position: relative;
  width: min(100%, (100dvh - 290px) * 16 / 9 + 24px); margin: 0 auto;
  padding: 0 clamp(6px, 1vw, 12px) clamp(6px, 1vw, 12px);
  border-radius: clamp(22px, 3vw, 34px); background: var(--black);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07), 0 40px 90px rgba(0, 0, 0, 0.55);
}
/* The game and its leaderboard: side by side on a wide screen, the board under the game otherwise. */
.gl-layout { width: min(940px, 100% - 2 * var(--gutter)); margin: clamp(18px, 2.4vw, 28px) auto 0; display: grid; gap: 20px; align-items: start; }
/* Wide: the board beside the game, exactly as tall as it (contain: size lets the game set the row),
   its list scrolling inside. */
@media (min-width: 1180px) {
  .gl-layout:has(.gl-board:not([hidden])) { width: min(1300px, 100% - 2 * var(--gutter)); grid-template-columns: minmax(0, 1fr) 340px; align-items: stretch; }
  .gl-layout .gl-board { contain: size; }
}
.gl-board { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 18px 16px 14px; border-radius: 26px; background: var(--night-2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); font-family: var(--rounded); }
.gl-board[hidden] { display: none; }
.glb-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-left: 4px; }
.glb-title { margin: 0; font: 700 19px/1.2 var(--nav-font); letter-spacing: -0.005em; }
.glb-seg { display: flex; padding: 3px; border-radius: 99px; background: rgba(0, 0, 0, 0.32); }
.glb-seg button { min-height: 30px; padding: 0 11px; border: 0; border-radius: 99px; background: transparent; color: var(--mist); font: 700 12.5px/1 var(--rounded); cursor: pointer; white-space: nowrap; transition: background 0.2s, color 0.2s; }
.glb-seg button[aria-pressed="true"] { background: var(--night-3); color: #fff; }
.glb-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 16px; background: rgba(0, 0, 0, 0.32); }
.glb-tabs button { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 0 8px; border: 0; border-radius: 12px; background: transparent; color: var(--mist); font: 700 14.5px/1 var(--rounded); cursor: pointer; transition: background 0.2s, color 0.2s; }
.glb-tabs button[aria-pressed="true"] { background: var(--night-3); color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset; }
.glb-ic { width: 15px; height: 15px; }
.glb-pod { width: 10px; height: 15px; }
.glb-badge { padding: 3px 6px; border-radius: 6px; background: rgba(255, 213, 61, 0.16); color: #ffd53d; font: 800 10px/1 var(--rounded); letter-spacing: 0.04em; text-transform: uppercase; }
.glb-levels { display: flex; gap: 6px; }
.glb-levels button { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 34px; padding: 0 6px; border: 0; border-radius: 99px; background: transparent; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); color: var(--mist); font: 700 13px/1 var(--rounded); cursor: pointer; white-space: nowrap; transition: background 0.2s, color 0.2s, box-shadow 0.2s; }
.glb-levels svg { width: 14px; height: 14px; flex: none; }
.glb-levels button[aria-pressed="true"] { background: rgba(244, 197, 66, 0.16); box-shadow: inset 0 0 0 1.5px rgba(244, 197, 66, 0.7); color: #fff; }
/* The AirPods board: flown by head tilt, only in the app, with a way to get it. */
.glb-promo { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 10px 10px 10px 14px; border-radius: 16px; background: linear-gradient(120deg, rgba(92, 189, 255, 0.16), rgba(92, 189, 255, 0.05)); box-shadow: inset 0 0 0 1px rgba(92, 189, 255, 0.25); }
.glb-promo[hidden] { display: none; }
.glb-promo-pod { width: 14px; height: 21px; color: #fff; }
.glb-promo p { margin: 0; font-size: 13.5px; font-weight: 700; line-height: 1.3; color: #e4ecf7; }
.glb-get { display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px; border-radius: 99px; background: #000; color: #f5f1e8; filter: invert(1); font: 800 13px/1 var(--rounded); text-decoration: none; white-space: nowrap; transition: transform 0.2s var(--ease); }
.glb-get:active { transform: scale(0.97); }
.glb-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; list-style: none; margin: 0; padding: 0; display: grid; align-content: start; gap: 4px; scrollbar-width: thin; transition: opacity 0.2s; }
.gl-board.loading .glb-list { opacity: 0.5; }
/* More rows below: the list fades out at its edge rather than cutting a row in half. */
.glb-list.more { padding-bottom: 24px; -webkit-mask-image: linear-gradient(#000 calc(100% - 28px), transparent); mask-image: linear-gradient(#000 calc(100% - 28px), transparent); }
@media (min-width: 640px) and (max-width: 1179px) { .glb-list { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(5, auto); grid-auto-flow: column; column-gap: 14px; } }
.glb-row { display: grid; grid-template-columns: 26px 16px minmax(0, 1fr) auto auto; align-items: center; gap: 9px; min-height: 42px; padding: 0 10px 0 8px; border-radius: 12px; background: rgba(255, 255, 255, 0.025); font-size: 15px; animation: rowin 0.4s var(--spring) both; animation-delay: calc(var(--i, 0) * 30ms); }
.glb-row.mine { background: rgba(244, 197, 66, 0.13); box-shadow: inset 0 0 0 1.5px rgba(244, 197, 66, 0.55); }
/* Your earlier runs: a small gold dot after the name, so only the run just posted is lit. */
.glb-row.own .glb-name::after { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 0 2px 7px; border-radius: 50%; background: #f4c542; vertical-align: middle; }
/* A run just posted pulses once, on its own layer so the row's entrance isn't disturbed. */
.glb-row.mine { position: relative; }
.glb-row.mine.glb-new::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; animation: minefl 1.4s ease-out 0.45s both; }
@keyframes minefl { from { box-shadow: 0 0 0 0 rgba(244, 197, 66, 0.6); } 35% { box-shadow: 0 0 0 5px rgba(244, 197, 66, 0.35); } to { box-shadow: 0 0 0 9px rgba(244, 197, 66, 0); } }
.glb-rank { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; color: var(--mist); font: 800 13px/1 var(--rounded); font-variant-numeric: tabular-nums; }
.glb-row[data-rank="1"] .glb-rank { background: #f4c542; color: #1f2a37; }
/* Light fills are painted dark and inverted, so a browser's forced dark mode can't grey them (as .gl-paper). */
.glb-row[data-rank="2"] .glb-rank { background: #362c21; color: #e0d5c8; filter: invert(1); }
.glb-row[data-rank="3"] .glb-rank { background: #e2a770; color: #1f2a37; }
.glb-how { display: grid; place-items: center; color: var(--mist); }
.glb-how svg { width: 15px; height: 15px; }
.glb-how svg.glb-pod { width: 10px; height: 15px; }
.glb-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.glb-rings { color: var(--mist); font-size: 12px; font-weight: 600; white-space: nowrap; }
.glb-score { min-width: 2ch; text-align: right; font-weight: 800; font-size: 16px; font-variant-numeric: tabular-nums; }
.glb-list:empty { display: none; }
.glb-empty { flex: 1 1 auto; display: grid; place-items: center; margin: 0; padding: 26px 10px; text-align: center; color: var(--mist); font-size: 15px; line-height: 1.4; }
.glb-empty[hidden], .glb-you[hidden] { display: none; }
.glb-you { padding-top: 6px; border-top: 1px dashed rgba(255, 255, 255, 0.12); }
.glb-you .glb-row { animation: none; }
/* Posting, inside the finished card. Colours here are written inverted, like the rest of the card (.gl-paper). */
.gl-post { margin: 14px 0 0; }
.gl-post[hidden] { display: none; }
.gl-post-row { display: flex; justify-content: center; gap: 8px; }
.gl-post input { flex: 1; min-width: 0; max-width: 210px; min-height: 44px; padding: 0 14px; border: 0; border-radius: 12px; background: var(--pi-track); color: var(--pi-ink); caret-color: var(--pi-ink); font: 600 16px/1 var(--rounded); }
.gl-post input[hidden] { display: none; }
.gl-post input::placeholder { color: var(--pi-muted); }
.gl-post input:focus { outline: 2px solid var(--pi-knob); outline-offset: 1px; }
.gl-card .gl-post-go { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 0 20px; max-width: 100%; background: var(--pi-knob); color: #000; }
.gl-card .gl-post-go span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gl-card .gl-post-go:disabled { opacity: 0.6; cursor: default; }
.gl-post-go svg { width: 16px; height: 16px; flex: none; }
.gl-card .gl-post-note { margin: 8px 0 0; font-size: 13px; line-height: 1.35; }
.gl-card .gl-post-note:empty { display: none; }
.gl-card .gl-post-note.error { color: #3dbef3; }
.gl-card .gl-rename { min-height: 30px; margin: 4px 0 0; padding: 0 10px; background: transparent; color: var(--pi-muted); font: 700 13px/1 var(--rounded); text-decoration: underline; text-underline-offset: 3px; }
.gl-rename[hidden], .gl-post.done .gl-post-row, .gl-post.done .gl-rename { display: none; }
.gl-card small.placed { margin-top: 8px; font-size: 16px; }
/* Even padding, so the middle column (the plane and the name) sits on the frame's centre; the pause
   button keeps its place nearer the edge with a margin of its own. */
.gl-head { --gl-pad: clamp(8px, 1.4vw, 16px); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 52px; padding: 0 var(--gl-pad); }
/* The game header's pill (round 18): one still dot in the colour of whatever needs you first, blue
   while every session runs and amber while one waits, and the tally in each status's colour. */
.gl-chip { justify-self: start; display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 12px 0 9px; border-radius: 13px; background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--chip-tint, var(--run)) 26%, transparent); font: 600 13px/1 var(--nav-font); white-space: nowrap; transition: box-shadow 0.3s; }
.gl-chip.waits { --chip-tint: var(--wait); }
.gl-pips { display: flex; gap: 7px; padding: 0 2px; }
.gl-pip { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--run); }

.gl-pip[data-s="waiting"] { background: var(--wait); }


.gl-tally .run { color: var(--run); }
.gl-tally .wait { color: var(--wait); }
.gl-tally .sep { color: rgba(255, 255, 255, 0.35); }
.gl-plane { width: 17px; height: 17px; margin-right: 8px; vertical-align: -3px; }
.gl-plane path { fill: #f2c34a; }
.gl-plane .fold { fill: none; stroke: #000; stroke-opacity: 0.35; stroke-width: 1; stroke-linecap: round; }
.gl-name { display: inline-flex; align-items: center; font: 700 15px/1 var(--nav-font); color: #fff; letter-spacing: -0.005em; }
.gl-pause { justify-self: end; margin-right: calc(6px - var(--gl-pad)); display: flex; gap: 4px; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; transition: opacity 0.2s, background 0.2s; }
@media (hover: hover) { .gl-pause:hover:not(:disabled) { background: rgba(255, 255, 255, 0.1); } }
.gl-pause:disabled { opacity: 0.3; cursor: default; }
.gl-pause i { width: 4px; height: 14px; border-radius: 2px; background: #fff; }
.gl-pause[data-paused="true"] i:first-child { width: 0; height: 0; border-radius: 0; background: none; border-left: 12px solid #fff; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.gl-pause[data-paused="true"] i:last-child { display: none; }

.gl-stage { --gs: 1; position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: clamp(14px, 2.2vw, 24px); background: linear-gradient(#7fb8ea, #cfe6f7 70%, #f4ead3); outline-offset: 3px; touch-action: pan-y; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
[data-glider][data-state="flying"] .gl-stage { touch-action: none; cursor: crosshair; }
.gl-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
html:not(.js) .gl-hud, html:not(.js) .gl-pause { display: none; }

/* The readouts: the app's white rounded cards, at the scene's scale, never under 11 px. */
.gl-paper { background: rgba(0, 0, 0, 0.94); color: var(--pi-ink); filter: invert(1); }
.gl-hud { position: absolute; inset: 0; pointer-events: none; font-family: var(--rounded); transition: opacity 0.3s; }
[data-glider]:is([data-state="agent"], [data-state="back"]) .gl-hud { opacity: 0.35; }
.gl-tilt, .gl-scores { position: absolute; top: calc(var(--gs) * 20px); border-radius: calc(var(--gs) * 14px); }
/* Steering sits bottom left, on the hills: the glider flies at x = 200 from the ceiling down, and the
   ground always keeps it above this corner, so the readout never covers it (as in the app). */
.gl-tilt { top: auto; bottom: calc(var(--gs) * 16px); left: calc(var(--gs) * 18px); display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; align-content: center; column-gap: calc(var(--gs) * 10px); width: calc(var(--gs) * 176px); height: calc(var(--gs) * 46px); box-sizing: border-box; padding: 0 calc(var(--gs) * 12px); border-radius: calc(var(--gs) * 12px); }
.gl-tilt small { grid-column: 2; grid-row: 1; font-size: max(9px, calc(var(--gs) * 10px)); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--pi-muted); }
.gl-gauge { grid-column: 1; grid-row: 1 / 3; position: relative; width: calc(var(--gs) * 12px); height: calc(var(--gs) * 34px); }
.gl-gauge::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: calc(var(--gs) * 7px); margin-left: calc(var(--gs) * -3.5px); border-radius: 99px; background: var(--pi-track); }
.gl-gauge::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: calc(var(--gs) * 3px); margin-top: calc(var(--gs) * -1.5px); border-radius: 2px; background: var(--pi-line); }
.gl-knob { --steer: 0; position: absolute; z-index: 1; left: 0; top: 50%; width: calc(var(--gs) * 12px); height: calc(var(--gs) * 12px); margin-top: calc(var(--gs) * -6px); border-radius: 50%; background: var(--pi-knob); transform: translateY(calc(var(--steer) * var(--gs) * -11px)); }
.gl-tilt b { grid-column: 2; grid-row: 2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: max(12px, calc(var(--gs) * 16px)); font-weight: 700; color: var(--pi-blue); }
.gl-scores { right: calc(var(--gs) * 20px); min-width: calc(var(--gs) * 236px); padding: calc(var(--gs) * 10px) calc(var(--gs) * 18px); text-align: left; }
.gl-scores small { display: block; font-size: max(11px, calc(var(--gs) * 14px)); font-weight: 600; color: var(--pi-muted); }
.gl-scores b { display: block; font-size: max(13px, calc(var(--gs) * 18px)); font-weight: 700; white-space: nowrap; }
.gl-boost { position: absolute; left: calc(50% + var(--gs) * 36px); bottom: calc(var(--gs) * 30px); display: flex; align-items: center; gap: calc(var(--gs) * 14px); transform: translateX(-50%); font-size: max(11px, calc(var(--gs) * 15px)); font-weight: 600; color: var(--pi-earth); white-space: nowrap; filter: invert(1); }
.gl-bar { position: relative; width: calc(var(--gs) * 320px); height: calc(var(--gs) * 22px); border-radius: 99px; background: rgba(0, 0, 0, 0.75); }
.gl-fill { --fill: 1; position: absolute; left: calc(var(--gs) * 3px); top: calc(var(--gs) * 3px); bottom: calc(var(--gs) * 3px); width: calc(var(--fill) * (100% - var(--gs) * 6px)); min-width: calc(var(--gs) * 16px); border-radius: 99px; background: var(--pi-gold); opacity: 0.55; }
.gl-fill.ready { opacity: 1; }
/* Night: light words, written in inverse because the bar is flipped. */
.gl-island.night .gl-boost { color: #17130a; }
.gl-boost small:last-child { min-width: calc(var(--gs) * 150px); }

/* The app's GliderCard: a title, a line and a gold button, centred over the scene. */
.gl-card { position: absolute; left: 50%; top: 50%; width: min(400px, 100% - 32px); padding: 22px 28px; border-radius: 18px; transform: translate(-50%, -50%); text-align: center; font-family: var(--rounded); box-shadow: 0 8px 18px rgba(255, 255, 255, 0.12); animation: glcard 0.45s var(--spring) both; }
.gl-card[hidden] { display: none; }
.gl-card h3 { margin: 0; font-size: 26px; font-weight: 700; letter-spacing: -0.01em; }
.gl-card p { margin: 8px 0 0; font-size: 15px; font-weight: 600; color: var(--pi-muted); text-wrap: pretty; }
/* Key names stay whole ("Leertaste"), never hyphenated. */
html .gl-card p { hyphens: manual; -webkit-hyphens: manual; }
.gl-card small { display: block; margin-top: 6px; font-weight: 700; color: #7595ef; }
.gl-card small:empty { display: none; }
.gl-card button { min-height: 44px; margin-top: 14px; padding: 0 28px; border: 0; border-radius: 99px; background: var(--pi-gold); color: var(--pi-ink); font: 700 16px/1 var(--rounded); cursor: pointer; transition: transform 0.2s var(--ease); }
.gl-card button:active { transform: scale(0.97); }
/* The level picker on the start card: three tiles, the chosen one in gold, locked ones faint. */
.gl-levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 14px 0 0; }
.gl-levels[hidden] { display: none; }
.gl-card .gl-levels button { display: grid; justify-items: center; align-content: center; gap: 3px; min-height: 66px; margin: 0; padding: 7px 4px; border-radius: 14px; background: var(--pi-track); box-shadow: inset 0 0 0 1.2px var(--pi-track); color: var(--pi-ink); font: 700 14px/1.15 var(--rounded); }
.gl-card .gl-levels svg { width: 18px; height: 18px; }
.gl-card .gl-levels button small { margin: 0; color: var(--pi-muted); font-weight: 600; font-size: 11.5px; line-height: 1.2; }
.gl-card .gl-levels button[aria-checked="true"] { background: #04123a; box-shadow: inset 0 0 0 2.5px var(--pi-gold); }
.gl-card .gl-levels button[aria-checked="true"] small { color: #7595ef; }
.gl-card .gl-levels button:disabled { opacity: 0.5; cursor: default; }
.gl-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.gl-card .gl-alt { background: var(--pi-track); }
.gl-alt[hidden] { display: none; }
/* Sound off: the start and pause cards offer to turn it on, for the ring, boost and miss chimes. */
.gl-card .gl-snd { display: none; align-items: center; gap: 6px; margin: 14px auto 0; padding: 7px 14px 7px 11px; min-height: 36px; border-radius: 99px; background: transparent; color: var(--pi-muted); box-shadow: inset 0 0 0 1.5px var(--pi-track); font: 700 14px/1 var(--rounded); }
.gl-card .gl-snd .snd-icon { width: 18px; height: 18px; }
.gl-card .gl-snd:hover { color: var(--pi-ink); }
[data-state="ready"] .gl-card .gl-snd, [data-state="paused"] .gl-card .gl-snd { display: inline-flex; }
.sound-on [data-state] .gl-card .gl-snd { display: none; }
/* A short note over the sky, such as tilt not being available. */
.gl-note { position: absolute; left: 50%; top: calc(var(--gs) * 150px); max-width: calc(100% - 32px); margin: 0; padding: 8px 14px; border-radius: 99px; transform: translateX(-50%); font: 700 14px/1.3 var(--rounded); text-align: center; animation: fadein 0.3s both; }
.gl-note[hidden] { display: none; }
/* After a run worth sharing, a gold pill where the boost bar was points down to the share row.
   Colours inverted, like the cards (.gl-paper). */
.gl-sharehint { position: absolute; left: 50%; bottom: calc(clamp(6px, 1vw, 12px) + var(--gs) * 22px); display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 18px 0 20px; border: 0; border-radius: 99px; background: var(--pi-gold); color: var(--pi-ink); font: 800 15px/1 var(--rounded); white-space: nowrap; cursor: pointer; transform: translateX(-50%); box-shadow: 0 6px 16px rgba(255, 255, 255, 0.25); animation: glhint 0.5s var(--spring) both; }
.gl-sharehint[hidden] { display: none; }
.gl-sharehint svg { width: 17px; height: 17px; animation: glbob 1.1s ease-in-out infinite; }
.gl-sharehint:hover { transform: translateX(-50%) scale(1.04); }
.gl-island:has(.gl-sharehint:not([hidden])) .gl-boost { visibility: hidden; }
@keyframes glhint { from { opacity: 0; transform: translate(-50%, 10px); } }
@keyframes glbob { 50% { transform: translateY(3px); } }
/* The share row answers the pill with one pulse. */
.gls-pulse .gls-pill { animation: glspulse 0.9s ease-out; }
@keyframes glspulse { 30% { transform: translateY(-3px); box-shadow: inset 0 0 0 1px rgba(255, 213, 61, 0.7), 0 0 0 4px rgba(255, 213, 61, 0.25); } }
@media (prefers-reduced-motion: reduce) { .gl-sharehint, .gl-sharehint svg, .gls-pulse .gls-pill { animation: none; } }
.gl-card button:focus-visible { outline: 3px solid var(--pi-ink); outline-offset: 3px; }
@keyframes glcard { from { opacity: 0; transform: translate(-50%, -46%) scale(0.96); } }

/* The request, over the paused game. */
.gl-agent { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; padding: 16px 16px calc(16px + var(--gs, 1) * 120px); background: rgba(4, 8, 16, 0.5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fadein 0.3s both; }
.gl-agent[hidden] { display: none; }
.gl-needs { margin: 0; padding: 7px 14px; border-radius: 99px; background: #000; color: var(--wait); font: 700 14px/1.2 var(--rounded); }
.gl-agent .risk-card { position: relative; width: min(300px, calc(100vw - 80px)); text-align: left; animation: glcard2 0.5s var(--spring) both; }
.gl-agent .rc-cmd { gap: 5px; }
.gl-agent .rc-btns button { height: 36px; border: 0; border-radius: 10px; background: #424242; color: #fff; font: 600 13px/1 var(--font); cursor: pointer; transition: transform 0.2s var(--ease), opacity 0.25s; }
.gl-agent .rc-btns .allow { background: var(--allow); }
.gl-agent .rc-btns button:active { transform: scale(0.96); }
.gl-answered { position: absolute; left: 16px; right: 16px; bottom: 16px; height: 36px; display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--done); font-weight: 700; font-size: 15px; opacity: 0; pointer-events: none; transform: scale(0.9); transition: opacity 0.3s, transform 0.5s var(--spring); }
.gl-answered i { width: 22px; height: 22px; border-radius: 50%; background: var(--done); display: grid; place-items: center; }
.gl-answered svg { width: 62%; height: 62%; fill: none; stroke: #000; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.gl-agent[data-answer="deny"] .gl-answered { color: var(--deny); }
.gl-agent[data-answer="deny"] .gl-answered i { background: var(--deny); }
.gl-agent.answered .rc-btns button { opacity: 0; }
.gl-agent.answered .gl-answered { opacity: 1; transform: none; }
@keyframes glcard2 { from { opacity: 0; transform: translateY(10px) scale(0.96); } }
@keyframes fadein { from { opacity: 0; } }
/* Share your flight: text pills with a dot holding the network's first letter, never a logo. */
.gl-share { width: min(940px, 100% - 2 * var(--gutter)); margin: 22px auto 0; text-align: center; animation: fadein 0.4s both; }
.gl-share[hidden], .gls-pill[hidden] { display: none; }
.gls-h { margin: 0 0 12px; font: 700 15px/1.2 var(--rounded); color: var(--mist); }
.gls-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.gls-pill { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 8px; border: 0; border-radius: 99px; background: var(--night-2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); color: #fff; font: 700 15px/1 var(--rounded); text-decoration: none; cursor: pointer; transition: background 0.2s, transform 0.2s var(--ease); }
.gls-note { margin: 12px auto 0; max-width: 34em; color: #ffd53d; font: 700 14px/1.4 var(--rounded); animation: fadein 0.3s both; }
.gls-note[hidden] { display: none; }
.gls-pill:hover { background: var(--night-3); }
.gls-pill:active { transform: scale(0.97); }
.gls-pill i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; box-shadow: inset 0 0 0 1.6px rgba(255, 255, 255, 0.35); font: 800 12px/1 var(--rounded); font-style: normal; }
.gls-tool i { box-shadow: none; background: rgba(255, 255, 255, 0.08); }
/* The networks' own marks: X white on black, Reddit's orange disc with its white face, LinkedIn's blue square with a white "in". */
.gls-brand i { box-shadow: none; }
.gls-brand i svg { width: 100%; height: 100%; }
.gls-pill[data-net="x"] i { background: #000; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22); }
.gls-pill[data-net="x"] i svg { width: 13px; height: 13px; fill: #fff; }
/* Reddit and LinkedIn are painted as their inverse and flipped, so forced dark mode keeps their whites (as .gl-paper). */
.gls-pill[data-net="reddit"] i { background: radial-gradient(circle, #000 58%, transparent 60%); filter: invert(1); }
.gls-pill[data-net="reddit"] i svg { fill: #00baff; }
.gls-pill[data-net="linkedin"] i { width: 24px; height: 24px; margin: 2px; border-radius: 4px; background: #000; filter: invert(1); }
.gls-pill[data-net="linkedin"] i svg { fill: #f5993d; }
.gls-pill i svg { width: 15px; height: 15px; }
.gls-pill[data-net="share"] { background: #000; color: #f5f1e8; box-shadow: none; filter: invert(1); }
.gls-pill[data-net="share"] i { background: rgba(255, 255, 255, 0.12); }
/* Under the lede: AirPods steering is the app's, and how to fly here (the owner, 2026-11-12, so the
   page isn't read as offering AirPods in the browser). It was a paragraph at the dialog's foot. */
.gl-appnote { max-width: 40em; margin: 10px auto 0; font-size: 14px; line-height: 1.5; color: var(--mist); opacity: 0.85; text-wrap: balance; }
.gl-appnote .glb-badge { display: inline-block; margin-right: 7px; vertical-align: 1px; }
:lang(ja) .gl-appnote { word-break: auto-phrase; }

@media (max-width: 700px) {
  .gl-tilt { display: none; }
  /* Steering by tilt, the readout comes back as a small chip with the angle. */
  .gl-island.tilting .gl-tilt { display: flex; top: auto; bottom: 8px; left: 8px; width: auto; height: auto; padding: 4px 9px; border-radius: 9px; }
  .gl-island.tilting .gl-tilt :is(small, .gl-gauge) { display: none; }
  .gl-island.tilting .gl-boost { left: auto; right: 8px; transform: none; }
  .gl-scores { top: 8px; right: 8px; min-width: 0; padding: 6px 10px; border-radius: 10px; }
  .gl-scores small { display: none; }
  .gl-boost { bottom: 8px; gap: 8px; }
  /* The game is short here: the pill hangs from the frame's bottom edge, like a tab, clear of the card. */
  .gl-sharehint { bottom: -16px; min-height: 30px; gap: 5px; padding: 0 11px 0 12px; font-size: 12px; }
  .gl-sharehint svg { width: 13px; height: 13px; }
  .gl-boost > small:first-child { display: none; }
  .gl-bar { width: 110px; height: 12px; }
  .gl-fill { left: 2px; top: 2px; bottom: 2px; width: calc(var(--fill) * (100% - 4px)); min-width: 8px; }
  .gl-boost small:last-child { min-width: 0; }
  .gl-card { padding: 14px 16px; border-radius: 14px; }
  .gl-card h3 { font-size: 19px; }
  .gl-card p { margin-top: 4px; font-size: 13px; }
  .gl-card button { margin-top: 10px; }
  /* The ways to steer are written under the game, so the small start card keeps only its button. */
  [data-glider][data-state="ready"] .gl-card p { display: none; }
  /* Finished: the rings are in the readout above, so the card keeps the result, Post and Fly again. */
  [data-glider][data-state="finished"] .gl-card > p { display: none; }
  /* Level tiles on one line each: the mark and the name (a closed level keeps its lock). */
  .gl-levels { margin-top: 8px; gap: 5px; }
  .gl-card .gl-levels button { grid-auto-flow: column; gap: 5px; min-height: 36px; padding: 0 6px; font-size: 13px; }
  .gl-card .gl-levels svg { width: 14px; height: 14px; }
  .gl-card .gl-levels button small { display: none; }
  .gl-card .gl-snd { margin-top: 8px; min-height: 30px; padding: 5px 12px 5px 9px; font-size: 13px; }
  /* The card's buttons stay on one row, however long their words. */
  .gl-btns { flex-wrap: nowrap; gap: 8px; }
  .gl-card .gl-btns button { min-height: 38px; margin-top: 10px; padding: 0 16px; white-space: nowrap; }
  .gl-post { margin-top: 8px; }
  .gl-post input, .gl-card .gl-post-go { min-height: 36px; }
  .gl-card .gl-post-go { padding: 0 14px; }
  .gl-card .gl-post-note { margin-top: 4px; font-size: 12px; }
  /* The game is short here: while the card asks for a name, only an error takes a line under it. */
  .gl-post-note:not(.error), .gl-card:has(.gl-post.asking:not([hidden])) > small:not(.placed) { display: none; }
  .gl-card .gl-rename { min-height: 24px; margin-top: 2px; }
  [data-glider][data-state="finished"] .gl-card button.gl-go { min-height: 36px; margin-top: 8px; }
  .gls-pill { min-height: 40px; gap: 6px; padding: 0 12px 0 6px; font-size: 14px; }
  .gls-pill i { width: 26px; height: 26px; }
  .glb-promo { grid-template-columns: auto 1fr; }
  .glb-get { grid-column: 1 / -1; justify-content: center; }
  .gl-agent { gap: 8px; padding: 8px; }
  .gl-needs { display: none; }
  .gl-agent .risk-card { padding: 12px; }
  .gl-agent .rc-cmd { margin-top: 8px; padding: 8px; }
  .gl-agent .rc-btns { margin-top: 8px; }
  .gl-answered { left: 12px; right: 12px; bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .gl-card, .gl-agent, .gl-agent .risk-card { animation: none; }
}

/* The Glider highlight: a small sky in the app's sketch palette, the plane flying through a ring. */
.art-glider { text-decoration: none; color: inherit; }
.ag-sky { position: absolute; inset: 22px 22px 70px; overflow: hidden; border-radius: 20px; background: linear-gradient(#7fb8ea, #cfe6f7 70%, #f4ead3); }
.ag-sun { position: absolute; right: 14%; top: 14%; width: 44px; height: 44px; border-radius: 50%; background: #fff4c2; }
.ag-cloud { position: absolute; left: 12%; top: 18%; width: 90px; height: 24px; border-radius: 99px; background: rgba(255, 255, 255, 0.9); box-shadow: 30px -10px 0 -2px rgba(255, 255, 255, 0.9); }
.ag-hill { position: absolute; left: -10%; right: -10%; bottom: -60px; height: 120px; border-radius: 50%; background: #79b97d; }
.ag-ring, .ag-ring-front { position: absolute; left: 58%; top: 34%; width: 30px; height: 80px; border-radius: 50%; border: 6px solid #f4c542; box-sizing: border-box; }
.ag-ring-front { clip-path: inset(0 0 0 50%); }
.ag-plane { position: absolute; left: 22%; top: 46%; width: 110px; }
/* The plane rests just through the ring. Selected, the card flies it in once from the left with a
   gentle bob, through the ring, to that rest (round 18: only the two scroll stories loop). */
.ag-plane { transform: translate(85px, -6px) rotate(-3deg); }
.hl-card.on .ag-plane { animation: agpass 2.6s ease-in-out both; }
@keyframes agpass {
  0% { transform: translate(-210px, 34px) rotate(8deg); opacity: 0; }
  12% { opacity: 1; }
  50% { transform: translate(-70px, 4px) rotate(-5deg); }
  75% { transform: translate(10px, 10px) rotate(2deg); }
  100% { transform: translate(85px, -6px) rotate(-3deg); }
}
.ag-play { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border-radius: 99px; background: #0d0a05; color: #edf0f6; filter: invert(1); font: 700 15px/1 var(--rounded); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .hl-card.on .ag-plane { animation: none; } }
