/* The home page. One hero per screen: the capsule, the report, the moment, the fix. The rest is quiet reading. */

/* ---------- Say it ---------- */
/* The first screen holds the whole loop: the words, the keys, and the game that gets fixed. The window is sized
   from the height of the screen, so the astronaut and the walker are in view without a scroll. */
.hero { position: relative; padding-top: calc(var(--bar-h) + var(--sale-offset) + clamp(58px, 6.4vh, 96px)); overflow-x: clip; } /* the headline sits about 12px under the open capsule */
.hero-copy { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
/* The opening, in the first 3 seconds (times from the first paint):
     0.12 s  "Say the bug." arrives word by word, in the blue of a voice (520 ms a word, ease-out)
     0.45 s  the notch drops and hears the sentence (home.js)
     1.25 s  "It's fixed." lands in the green of a fix (820 ms a word, expo-out), and its light blooms (1700 ms)
     1.40 s  the game's window rises (1350 ms, ease-out)
     1.55 s  the sentence under the headline, then the buttons (1.75 s) and the line under the window (2.5 s) */
.hero .promise { max-width: none; font-size: clamp(2.6rem, 0.4rem + 7vw, 7.6rem); line-height: 0.98; white-space: nowrap; } /* one line */
.hero .p-say { --said-delay: 120ms; }
.hero .p-done { --said-delay: 1250ms; }
.hero .lede { margin-top: clamp(14px, 2vh, 26px); max-width: 52em; --reveal-delay: 1550ms; }
.hero .hero-actions { margin-top: clamp(18px, 2.6vh, 34px); --reveal-delay: 1750ms; }
.hero-fine { margin-top: 10px; font-size: 13px; font-weight: 500; color: var(--text-3); --reveal-delay: 1900ms; }
.js .hero .btn.primary::after { animation: sheen 950ms var(--ease-out) 2700ms backwards; }

/* The light from the notch: a cone that falls from the capsule to the game. It is as bright as the voice is loud,
   and it turns green once when the fix is in (2600 ms, ease-out). */
.beam {
  position: absolute; left: 50%; top: 0; width: min(1500px, 150vw); height: min(96svh, 880px); transform: translateX(-50%); z-index: -1; pointer-events: none;
  background: conic-gradient(from 156deg at 50% 0%, transparent 0deg, rgba(var(--beam, 96, 178, 255), 0.72) 24deg, transparent 48deg, transparent 360deg);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.55) 52%, transparent 100%); mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.55) 52%, transparent 100%);
  filter: blur(30px); opacity: calc(0.08 + var(--voice, 0) * 0.56); transition: opacity 260ms linear;
}
.hero[data-light="fixed"] .beam { --beam: 72, 222, 112; animation: beamfix 2600ms var(--ease-out) both; }
@keyframes beamfix { 0% { opacity: 0.07; } 16% { opacity: 0.78; } 100% { opacity: 0.07; } }

/* The hotkey: the three keys of the app's first run. Press them here and the capsule opens. */
.hotkey { display: inline-flex; align-items: center; gap: 14px; padding: 6px 16px 6px 6px; border-radius: 17px; text-align: left; transition: background var(--d-3) var(--ease-standard); }
.hotkey:hover { background: rgba(255, 255, 255, 0.045); }
.hotkey .kbds { position: relative; gap: 6px; }
.hotkey .kbds::after { content: ""; position: absolute; inset: 38% 4% -34%; z-index: -1; border-radius: 50%; pointer-events: none; background: radial-gradient(50% 50% at 50% 50%, rgba(74, 168, 255, 0.7), transparent 72%); filter: blur(14px); opacity: 0; transition: opacity var(--d-4) var(--ease-standard); }
.hotkey[data-state="idle"] .kbds::after, .hotkey[data-state="again"] .kbds::after { animation: invite 2600ms var(--ease-inout) 3200ms infinite backwards; }
.hotkey[data-state="fixed"] .kbds::after { background: radial-gradient(50% 50% at 50% 50%, rgba(48, 209, 88, 0.6), transparent 72%); opacity: 0.5; }
@keyframes invite { 0%, 100% { opacity: 0.12; } 50% { opacity: 0.8; } }
.hotkey .kbd {
  min-width: 46px; height: 46px; padding: 0 12px; border-radius: 12px; font-size: 19px; color: var(--text-1);
  box-shadow: inset 0 0 0 1px var(--line-3), inset 0 -2px 0 rgba(0, 0, 0, 0.4), 0 18px 40px -18px rgba(74, 168, 255, 0.45);
  transition: transform 90ms var(--ease-out), box-shadow var(--d-3) var(--ease-standard), background var(--d-3) var(--ease-standard);
}
.hotkey:hover .kbd { box-shadow: inset 0 0 0 1px var(--line-4), inset 0 -2px 0 rgba(0, 0, 0, 0.4), 0 18px 44px -14px rgba(74, 168, 255, 0.62); }
.hotkey.down .kbd, .hotkey:active .kbd { transform: translateY(2px); box-shadow: inset 0 0 0 1px rgba(142, 201, 255, 0.55), inset 0 -1px 0 rgba(0, 0, 0, 0.4), 0 8px 30px -8px rgba(74, 168, 255, 0.85); }
.hotkey.down .kbd:nth-child(2), .hotkey:active .kbd:nth-child(2) { transition-delay: 28ms; }
.hotkey.down .kbd:nth-child(3), .hotkey:active .kbd:nth-child(3) { transition-delay: 56ms; }
.hotkey[data-state="recording"] .kbd { box-shadow: inset 0 0 0 1px rgba(142, 201, 255, 0.4), inset 0 -2px 0 rgba(0, 0, 0, 0.4), 0 14px 44px -12px rgba(74, 168, 255, calc(0.5 + var(--voice, 0) * 0.5)); }
.hotkey[data-state="fixed"] .kbd { box-shadow: inset 0 0 0 1px rgba(48, 209, 88, 0.42), inset 0 -2px 0 rgba(0, 0, 0, 0.4), 0 16px 44px -14px rgba(48, 209, 88, 0.5); }
.hotkey-label { display: grid; min-width: 236px; }
.hotkey-label > span { grid-area: 1 / 1; display: grid; gap: 1px; opacity: 0; transform: translateY(5px); transition: opacity var(--d-3) var(--ease-in), transform var(--d-3) var(--ease-in); }
.hotkey[data-state="idle"] [data-for="idle"], .hotkey[data-state="recording"] [data-for="recording"], .hotkey[data-state="processing"] [data-for="processing"],
.hotkey[data-state="result"] [data-for="result"], .hotkey[data-state="fixing"] [data-for="fixing"], .hotkey[data-state="fixed"] [data-for="fixed"],
.hotkey[data-state="again"] [data-for="again"] { opacity: 1; transform: none; transition: opacity var(--d-4) var(--ease-out) 140ms, transform var(--d-5) var(--ease-out) 140ms; }
.hotkey-label b { font-size: 14.5px; font-weight: 580; letter-spacing: -0.008em; color: var(--text-1); line-height: 1.3; }
.hotkey-label i { font-style: normal; font-size: 12.5px; font-weight: 480; color: var(--text-3); line-height: 1.35; }
.hotkey[data-state="fixed"] .hotkey-label b { color: #a8f0bb; }

/* The stage: the game you are testing, in its browser window, over the planet's edge. While Callout listens,
   blue light rises behind it. When the fix is in, the light turns green once and settles. */
.stage {
  --stage-w: clamp(min(620px, 100% - 2 * var(--gut)), (100svh - 484px) * 1.7778, min(1180px, 100% - 2 * var(--gut)));
  position: relative; width: var(--stage-w); margin: clamp(22px, 3vh, 52px) auto 0;
}
.stage-foot { --reveal-delay: 2500ms; }
.stage-note { --reveal-delay: 2700ms; }
/* The planet: the app's first-run horizon. The window stands on its edge. */
.horizon { position: absolute; left: 50%; top: 0; width: 100vw; height: calc(100% + 240px); transform: translateX(-50%); z-index: -2; pointer-events: none; overflow: hidden;
  -webkit-mask: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent) 50% 0 / 100% 100% no-repeat; mask: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent) 50% 0 / 100% 100% no-repeat; }
/* First light: the edge of the planet lights from the middle outwards (1900 ms, ease-out). */
.js .horizon { animation: firstlight 1900ms var(--ease-out) 60ms both; }
@keyframes firstlight { from { -webkit-mask-size: 4% 100%; mask-size: 4% 100%; opacity: 0; } 30% { opacity: 1; } to { -webkit-mask-size: 100% 100%; mask-size: 100% 100%; opacity: 1; } }
.horizon i { position: absolute; left: 50%; top: 46%; width: 3400px; height: 3400px; margin-left: -1700px; border-radius: 50%; translate: calc(var(--px, 0) * -18px) calc(var(--py, 0) * -8px);
  background: radial-gradient(closest-side, #000 99.4%, transparent 99.8%);
}
/* The light over the edge. The middle of its four layers is a ring of gradient, not a box-shadow: Chrome draws a 120px
   blur on a circle this big with a hard line across the glow 65px over the edge. Same light from the same falloff: a
   shadow 40px up with a 120px blur gives, d px over the edge, 0.34 × Φ((40 − d) / 60). The other three layers stay
   shadows, on a copy of the circle laid over the ring, so the rim stays on top as before. */
.horizon i::before, .horizon i::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.horizon i::before { inset: -260px; background: radial-gradient(closest-side, transparent 1697px, rgba(23, 71, 255, 0.254) 1700px, rgba(23, 71, 255, 0.214) 1720px, rgba(23, 71, 255, 0.17) 1740px, rgba(23, 71, 255, 0.125) 1760px, rgba(23, 71, 255, 0.086) 1780px, rgba(23, 71, 255, 0.054) 1800px, rgba(23, 71, 255, 0.023) 1830px, rgba(23, 71, 255, 0.008) 1860px, rgba(23, 71, 255, 0.0013) 1900px, rgba(23, 71, 255, 0) 1940px); }
.horizon i::after { inset: 0; box-shadow: 0 -1px 0 rgba(207, 238, 255, 0.7), 0 -6px 22px rgba(74, 168, 255, 0.42), 0 -120px 260px rgba(23, 71, 255, 0.16); }
.dawn {
  position: absolute; left: 50%; top: -90px; width: 132%; height: 76%; transform: translateX(-50%); z-index: -1; pointer-events: none;
  background: radial-gradient(50% 58% at 50% 62%, rgba(var(--dawn, 74, 168, 255), 0.5), rgba(var(--dawn-deep, 23, 71, 255), 0.22) 46%, transparent 72%);
  filter: blur(46px); opacity: calc(0.2 + var(--voice, 0) * 0.8); transition: opacity 260ms linear; translate: calc(var(--px, 0) * 12px) 0;
}
.stage[data-light="fixed"] .dawn { --dawn: 48, 209, 88; --dawn-deep: 20, 150, 80; opacity: 0.7; transition: opacity 900ms var(--ease-out); }
.win { position: relative; margin: 0; border-radius: 13px; background: #120f22; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 40px 120px -20px rgba(0, 0, 0, 0.85), 0 6px 22px rgba(0, 0, 0, 0.5), 0 0 90px -30px rgba(74, 168, 255, 0.35); }
/* The window rises out of the planet's edge: 72px up, from a 12° lean and 94% size (1350 ms, ease-out, at 1.4 s). */
.js .hero .win { transform-origin: 50% 0; animation: rise 1350ms var(--ease-out) 1400ms backwards; }
@keyframes rise { from { opacity: 0; transform: perspective(1700px) translateY(72px) rotateX(12deg) scale(0.94); } }
/* It leans a little toward the pointer (at most 1.5°), and stands straight again when the pointer is on the game. */
.hero.leaning .win { transform: perspective(1700px) rotateX(calc(var(--py, 0) * -1.1deg)) rotateY(calc(var(--px, 0) * 1.5deg)); transform-origin: 50% 46%; }
/* When the fix is in, a ring of green light leaves the window (1600 ms, ease-out). */
.win::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 14px; pointer-events: none; opacity: 0; box-shadow: 0 0 0 1px rgba(160, 255, 190, 0.32), 0 0 26px 2px rgba(110, 240, 150, 0.5), 0 0 90px 14px rgba(48, 209, 88, 0.4); }
.stage[data-light="fixed"] .win::after { animation: ring 1600ms var(--ease-out) both; }
@keyframes ring { 0% { opacity: 0; transform: none; } 12% { opacity: 0.95; } 100% { opacity: 0; transform: scale(1.085, 1.15); } }
.win-bar { height: 40px; display: grid; grid-template-columns: 1fr minmax(0, 420px) 1fr; align-items: center; gap: 14px; padding: 0 14px; border-radius: 13px 13px 0 0; background: linear-gradient(180deg, #232329, #1b1b20); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), inset 0 -1px 0 rgba(0, 0, 0, 0.6); color: rgba(235, 235, 245, 0.4); }
.win-bar > :first-child { grid-column: 1; grid-row: 1; }
.lights { display: flex; gap: 8px; }
.lights i { display: block; width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.3); }
.lights i:nth-child(1) { background: #ff5f57; } .lights i:nth-child(2) { background: #febc2e; } .lights i:nth-child(3) { background: #28c840; }
.win-nav { grid-column: 1; grid-row: 1; display: flex; gap: 14px; margin-left: 76px; }
.win-nav svg, .win-plus svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.win-url { grid-column: 2; height: 26px; border-radius: 8px; background: rgba(255, 255, 255, 0.065); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04); display: grid; place-items: center; font-family: -apple-system, "SF Pro Text", system-ui, sans-serif; font-size: 12.5px; letter-spacing: -0.01em; color: rgba(235, 235, 245, 0.7); }
.win-plus { grid-column: 3; justify-self: end; }
.win-view { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 0 0 13px 13px; background: #120f22; }
.win-view iframe { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 700ms var(--ease-out); }
.win-view iframe.ready { opacity: 1; }
.win-view iframe.swap { transition-duration: 420ms; }
/* The rim of the window: a line of light that goes round once when the fix is in (1500 ms, ease-out), then fades. */
@property --rim { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.win-rim { position: absolute; inset: -1px; border-radius: 14px; padding: 1.5px; pointer-events: none; opacity: 0;
  background: conic-gradient(from var(--rim), transparent 0deg, transparent 250deg, rgba(48, 209, 88, 0.2) 290deg, #7dffa2 345deg, #eafff0 358deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.stage[data-light="fixed"] .win-rim { animation: rim 1500ms var(--ease-out) both; }
@keyframes rim { 0% { --rim: -90deg; opacity: 0; } 12% { opacity: 1; } 78% { opacity: 1; } 100% { --rim: 270deg; opacity: 0; } }
.stage[data-light="fixed"] .win { box-shadow: 0 0 0 1px rgba(48, 209, 88, 0.3), 0 40px 120px -20px rgba(0, 0, 0, 0.85), 0 6px 22px rgba(0, 0, 0, 0.5), 0 0 110px -26px rgba(48, 209, 88, 0.5); }
.win { transition: box-shadow 1200ms var(--ease-out); }

/* Under the window: the four steps of the loop, and what happens right now. */
.stage-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px 26px; padding: 14px 2px 0; }
.beats { display: flex; align-items: center; gap: 0; font-size: 13px; font-weight: 540; color: var(--text-4); white-space: nowrap; }
.beats li { position: relative; display: flex; align-items: center; transition: color var(--d-4) var(--ease-standard); }
.beats li + li::before { content: ""; width: 26px; height: 1.5px; margin: 0 10px; border-radius: 2px; background: linear-gradient(90deg, var(--atmo-edge), var(--atmo-edge)) 0 0 / 0% 100% no-repeat, var(--line-2); transition: background-size 520ms var(--ease-out); }
.beats[data-at="0"] li:nth-child(-n+1), .beats[data-at="1"] li:nth-child(-n+2), .beats[data-at="2"] li:nth-child(-n+3), .beats[data-at="3"] li:nth-child(-n+4) { color: var(--text-2); }
.beats[data-at="1"] li:nth-child(-n+2)::before, .beats[data-at="2"] li:nth-child(-n+3)::before, .beats[data-at="3"] li:nth-child(-n+4)::before { background-size: 100% 100%, auto; }
.beats[data-at="0"] li:nth-child(1), .beats[data-at="1"] li:nth-child(2), .beats[data-at="2"] li:nth-child(3) { color: var(--text-1); }
.beats[data-at="3"] li:nth-child(4) { color: #a8f0bb; }
/* What happens right now, as one line over the foot of the game. It comes in and goes out (340 ms / 220 ms). */
.stage-status {
  position: absolute; left: 14px; bottom: 14px; z-index: 3; max-width: calc(100% - 28px); margin: 0; padding: 7px 13px; border-radius: 11px; pointer-events: none;
  font-size: 13px; font-weight: 500; line-height: 1.45; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: rgba(7, 7, 11, 0.74); -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), inset 0 0 0 1px rgba(255, 255, 255, 0.09), 0 14px 34px -12px rgba(0, 0, 0, 0.9);
  transition: opacity var(--d-4) var(--ease-out), transform var(--d-4) var(--ease-out);
}
.stage-status:empty { opacity: 0; transform: translateY(8px); padding: 0; transition: opacity var(--d-3) var(--ease-in), transform var(--d-3) var(--ease-in); }
.stage-status b { font-weight: 600; color: var(--text-1); }
.stage-status .who { color: var(--agent); font-weight: 580; margin-right: 4px; }
.stage-status .el { font-variant-numeric: tabular-nums; color: var(--text-3); margin-left: 8px; }
.stage-status .ok { color: #a8f0bb; font-weight: 600; }
.stage-status > span { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; animation: statusin 340ms var(--ease-out) both; }
@keyframes statusin { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.stage-note { margin-top: 12px; padding: 0 2px; font-size: 13px; line-height: 1.6; color: var(--body); text-align: center; } /* a sentence, so near-white, not gray */
.stage-note .kbd { height: 17px; min-width: 17px; font-size: 10px; vertical-align: 1px; }

/* The sound switch: quiet, at the end of the line under the window. */
.sound { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px 5px 8px; margin-right: -10px; border-radius: 8px; font-size: 13px; font-weight: 520; color: var(--text-3); white-space: nowrap; transition: color var(--d-2) var(--ease-standard), background var(--d-2) var(--ease-standard); }
.sound:hover { color: var(--text-1); background: rgba(255, 255, 255, 0.05); }
.sound svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sound svg path { transition: opacity var(--d-3) var(--ease-standard), stroke-dashoffset var(--d-4) var(--ease-out); }
.sound .w1, .sound .w2 { stroke-dasharray: 12; stroke-dashoffset: 12; opacity: 0; }
.sound[aria-pressed="true"] { color: var(--text-2); }
.sound[aria-pressed="true"] .w1, .sound[aria-pressed="true"] .w2 { stroke-dashoffset: 0; opacity: 1; }
.sound[aria-pressed="true"] .w2 { transition-delay: 70ms; }
.sound[aria-pressed="true"] .x { opacity: 0; }
.sound [data-on], .sound[aria-pressed="true"] [data-off] { display: none; }
.sound[aria-pressed="true"] [data-on] { display: inline; }
.win-sm .win-bar { height: 36px; grid-template-columns: 1fr minmax(0, 300px) 1fr; }
.win-sm .win-url { height: 22px; font-size: 12px; border-radius: 7px; }
.win-sm .lights i { width: 10px; height: 10px; }

/* As the hero leaves the screen, the window sinks back 4.5% and dims, and the words go up ahead of it. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .stage-body { animation: recede linear both; animation-timeline: view(); animation-range: exit 8% exit 100%; transform-origin: 50% 100%; }
    .hero-copy { animation: goup linear both; animation-timeline: view(); animation-range: exit 0% exit 100%; }
  }
}
@keyframes recede { to { transform: translateY(-26px) scale(0.955); opacity: 0.4; } }
@keyframes goup { to { transform: translateY(-34px); opacity: 0; } }
@keyframes drift { from { translate: 0 60px; } to { translate: 0 -60px; } }

/* ---------- Chapters ----------
   After the hero the page tells the rest in four chapters, about a screen each, and each has its own light: amber
   for the report, green for the fix, voice blue for what you decide, violet for what stays on your Mac. A chapter's
   light wakes when most of it is on screen (1.4 s, ease-out) and sleeps again when it leaves (0.9 s, ease-in). */
.chapter { --light: 74, 168, 255; --light-2: 23, 71, 255; --hi: #a9d6ff; position: relative; isolation: isolate; padding: clamp(72px, 10vh, 128px) 0; }
.c-report { --light: 255, 159, 46; --light-2: 255, 110, 20; --hi: #ffc27a; }
.c-fix { --light: 48, 209, 88; --light-2: 16, 140, 76; --hi: #9ff0b6; }
.c-charge { --light: 74, 168, 255; --light-2: 23, 71, 255; --hi: #a9d6ff; }
.c-private { --light: 167, 139, 250; --light-2: 110, 80, 230; --hi: #cbbcff; }
.chapter-light { position: absolute; z-index: -1; inset: 0; pointer-events: none; overflow: hidden; }
.chapter-light::before { content: ""; position: absolute; left: var(--lx, 52%); top: 50%; width: min(1100px, 92vw); height: min(820px, 90%); translate: -30% -50%; border-radius: 50%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(var(--light), 0.27), rgba(var(--light-2), 0.1) 54%, transparent 72%); filter: blur(42px);
  opacity: 0; scale: 0.9; transition: opacity 900ms var(--ease-in), scale 900ms var(--ease-in); }
.chapter.lit .chapter-light::before { opacity: 1; scale: 1; transition: opacity 1400ms var(--ease-out), scale 1800ms var(--ease-out); }
.c-charge .chapter-light::before { --lx: 50%; translate: -50% -42%; width: min(1400px, 110vw); }
.c-private .chapter-light::before { --lx: 58%; }

/* The headings: a white sentence, then one in the chapter's colour, arriving word by word like the hero's. */
.promise .p-plain { background-image: linear-gradient(96deg, #ffffff 0%, #f1f1f5 100%); }
.promise .p-plain::before { display: none; }
.js .promise .p-plain .sw { background-image: linear-gradient(105deg, transparent 41%, rgba(255, 255, 255, 0.96) 50%, transparent 59%), linear-gradient(96deg, #ffffff 0%, #f1f1f5 100%); }
.p-amber { background-image: linear-gradient(96deg, #fff6ea 0%, #ffdcb0 34%, #ffb862 70%, #ff9f2e 100%); }
.js .p-amber .sw { background-image: linear-gradient(105deg, transparent 41%, rgba(255, 255, 255, 0.96) 50%, transparent 59%), linear-gradient(96deg, #fff6ea 0%, #ffdcb0 34%, #ffb862 70%, #ff9f2e 100%); }
.p-amber::before { background: radial-gradient(50% 50% at 50% 50%, rgba(255, 159, 46, 0.5), rgba(200, 90, 20, 0.18) 58%, transparent 76%); opacity: 0.16; }
.p-blue { background-image: linear-gradient(96deg, #ffffff 0%, #e4f4ff 30%, #9fd0ff 66%, #4aa8ff 100%); }
.js .p-blue .sw { background-image: linear-gradient(105deg, transparent 41%, rgba(255, 255, 255, 0.96) 50%, transparent 59%), linear-gradient(96deg, #ffffff 0%, #e4f4ff 30%, #9fd0ff 66%, #4aa8ff 100%); }
.p-blue::before { background: radial-gradient(50% 50% at 50% 50%, rgba(74, 168, 255, 0.55), rgba(23, 71, 255, 0.2) 58%, transparent 76%); opacity: 0.16; }
.p-violet { background-image: linear-gradient(96deg, #ffffff 0%, #ece6ff 30%, #c9b8ff 66%, #a78bfa 100%); }
.js .p-violet .sw { background-image: linear-gradient(105deg, transparent 41%, rgba(255, 255, 255, 0.96) 50%, transparent 59%), linear-gradient(96deg, #ffffff 0%, #ece6ff 30%, #c9b8ff 66%, #a78bfa 100%); }
.p-violet::before { background: radial-gradient(50% 50% at 50% 50%, rgba(167, 139, 250, 0.5), rgba(110, 80, 230, 0.18) 58%, transparent 76%); opacity: 0.16; }
.js .p-amber:not(.in)::before, .js .p-blue:not(.in)::before, .js .p-violet:not(.in)::before { opacity: 0; }
.js .p-amber.in::before, .js .p-blue.in::before, .js .p-violet.in::before { animation: bloom 1700ms var(--ease-out) var(--said-delay, 0ms) backwards; }
.chapter .promise .p-plain + .p-amber, .chapter .promise .p-plain + .p-done, .chapter .promise .p-plain + .p-blue, .chapter .promise .p-plain + .p-violet { --said-delay: 360ms; }

.chapter .h2 { font-size: clamp(2.5rem, 1.1rem + 3.1vw, 3.9rem); }
@media (min-width: 920px) { .chapter .promise > span { display: block; width: fit-content; } }

/* Words on the left, the product on the right. */
.c-report .ch-grid, .c-private .ch-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
/* The report pane changes height (its two views, and the whole report when opened), so the words beside it start at
   the top and stay on screen while the report goes by, instead of moving to its middle. */
.c-report .ch-grid { align-items: start; }
.c-report .ch-copy { position: sticky; top: calc(var(--bar-h) + var(--sale-h) + 56px); padding-top: 36px; }
.ch-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5.5vw, 92px); align-items: center; }
.ch-copy .lede { margin-top: 22px; }
.ch-more { margin-top: 22px; font-size: 15px; line-height: 1.6; color: var(--body); max-width: 30em; text-wrap: pretty; }
.ch-more code, .ch-num code { font-family: var(--font-mono); font-size: 0.9em; color: var(--text-1); }
/* The chapter's number: big, in its own light, coming into focus as it arrives (900 ms, ease-out). */
.ch-num { display: flex; align-items: flex-start; gap: clamp(14px, 1.6vw, 22px); margin-top: clamp(26px, 4vh, 40px); }
.ch-num .big { flex: none; font-size: clamp(3.4rem, 1.8rem + 3.8vw, 6rem); font-weight: 640; font-stretch: 116%; letter-spacing: -0.055em; line-height: 0.84; font-feature-settings: "zero" 0, "tnum" 0; padding: 0.04em 0.02em 0.08em;
  background: linear-gradient(180deg, #ffffff 16%, var(--hi) 122%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
  filter: drop-shadow(0 0 28px rgba(var(--light), 0.28)); }
.js .ch-num[data-reveal] .big { filter: blur(12px) drop-shadow(0 0 28px rgba(var(--light), 0.28)); transition: filter 900ms var(--ease-out) 140ms; }
.js .ch-num[data-reveal].in .big { filter: blur(0) drop-shadow(0 0 28px rgba(var(--light), 0.28)); }
.ch-num p { padding-top: 0.35em; font-size: 15.5px; line-height: 1.5; color: var(--body); max-width: 20em; text-wrap: pretty; }
.ch-num p b { color: #fff; font-weight: 600; }
.ch-stage { position: relative; min-width: 0; }

/* ---------- The report ---------- */
/* The sentence that went in: black, as the capsule is, with the bars of a voice. A point of light runs from it
   down into the report (1500 ms, ease in-out, again and again while it is on screen). */
.said-strip { position: relative; display: flex; align-items: center; gap: 14px; width: fit-content; max-width: 100%; margin: 0 auto 20px; padding: 12px 22px 12px 18px; border-radius: 24px; background: #000; color: #fff; font-size: 15.5px; font-weight: 470; line-height: 1.42; letter-spacing: -0.01em;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07), inset 0 -1px 0 rgba(255, 255, 255, 0.1), 0 22px 60px -12px rgba(0, 0, 0, 0.9), 0 0 70px -16px rgba(74, 168, 255, 0.5); }
.said-strip q { quotes: none; text-wrap: balance; }
.said-strip .bars { flex: none; height: 24px; }
.said-strip .bars i { height: 4px; animation: speak 1.5s var(--ease-inout) infinite; }
.said-strip .bars i:nth-child(2) { animation-delay: -0.3s; } .said-strip .bars i:nth-child(3) { animation-delay: -0.6s; } .said-strip .bars i:nth-child(4) { animation-delay: -0.9s; } .said-strip .bars i:nth-child(5) { animation-delay: -1.2s; }
@keyframes speak { 0%, 100% { transform: scaleY(1); } 45% { transform: scaleY(4.4); } }
.said-strip::after { content: ""; position: absolute; left: 50%; top: 100%; width: 1.5px; height: 34px; margin-left: -0.75px; border-radius: 2px; pointer-events: none;
  background: linear-gradient(180deg, transparent, var(--atmo-edge), transparent) 0 -34px / 100% 34px no-repeat, linear-gradient(180deg, var(--line-4), var(--line-1)); animation: drip 1500ms var(--ease-inout) infinite; }
@keyframes drip { from { background-position: 0 -34px, 0 0; } to { background-position: 0 34px, 0 0; } }
/* The report is written: a line of light goes down its first screen once when it arrives (1900 ms, ease in-out), and
   the report shows only behind it. One value, --reveal, is both where the line is and where the clip ends, so nothing
   ahead of the line shows. At the end the value jumps far past the report, so the clip lets go of all of it (and of
   the pane's shadow). Once it has run, .scanned keeps it run: a tab coming back does not start it again. */
@property --reveal { syntax: "<length>"; inherits: true; initial-value: 0px; }
.scan { position: absolute; left: 0; right: 0; top: 0; z-index: 2; height: 200px; pointer-events: none; opacity: 0; transform: translateY(calc(var(--reveal) - 200px)); background: linear-gradient(180deg, transparent, rgba(74, 168, 255, 0.07) 60%, rgba(142, 201, 255, 0.2) 97%, rgba(207, 238, 255, 0.85) 99.4%, transparent); }
.js .report-pane:not(.scanned) #report-pane { clip-path: inset(-200px -200px calc(100% - var(--reveal) - 3px) -200px); }
.js .report-pane.in:not(.scanned) #report-pane { animation: reveal 1900ms var(--ease-inout) 650ms both; }
.js .report-pane.in:not(.scanned) .scan { animation: scan 1900ms var(--ease-inout) 650ms both; }
@keyframes reveal { 0% { --reveal: 0px; } 99.9% { --reveal: 960px; } 100% { --reveal: 100000px; } }
@keyframes scan { 0% { opacity: 0; } 10% { opacity: 1; } 84% { opacity: 1; } 100% { opacity: 0; } }

.c-report .said-strip { margin-bottom: 16px; }
.c-report .said-strip::after { height: 16px; }
/* Two views of S-1 in one pane: the report, and its files. The mark slides under the tab you pick (spring, 460 ms),
   the old view fades out (200 ms, ease-in) and the new one rises in (340 ms, ease-out). */
.pane-tabs { position: relative; display: flex; width: fit-content; margin: 0 auto 14px; padding: 3px; gap: 2px; border-radius: 11px; background: rgba(255, 255, 255, 0.045); box-shadow: inset 0 0 0 1px var(--line-1); }
.pane-tabs button { position: relative; z-index: 1; height: 32px; padding: 0 15px; border-radius: 8px; font-size: 13.5px; font-weight: 560; color: rgba(235, 235, 245, 0.62); white-space: nowrap; transition: color var(--d-2) var(--ease-standard); }
.pane-tabs button:hover { color: var(--text-1); }
.pane-tabs button[aria-selected="true"] { color: #fff; }
.pane-tabs-mark { position: absolute; z-index: 0; left: 0; top: 3px; bottom: 3px; width: var(--tw, 0px); transform: translateX(var(--tx, 3px)); border-radius: 8px; background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), 0 0 18px -4px rgba(var(--light), 0.45); transition: transform var(--spring-snappy-ms) var(--spring-snappy), width var(--spring-snappy-ms) var(--spring-snappy); }
.pane-views { position: relative; }
.pane-views > [role="tabpanel"].arriving { animation: viewin 340ms var(--ease-out) both; }
.pane-views > [role="tabpanel"].leaving { animation: viewout 200ms var(--ease-in) both; }
@keyframes viewin { from { opacity: 0; transform: translateY(8px); } }
@keyframes viewout { to { opacity: 0; transform: translateY(-4px); } }
/* The report shows its first screen, and opens to its full length when asked (900 ms, ease-out). */
.pane-long { position: relative; max-height: var(--fold, min(600px, 64svh)); padding-bottom: 0; overflow: hidden; transition: max-height 900ms var(--ease-out), padding-bottom 900ms var(--ease-out); }
.pane-long .surface { min-height: 520px; }
.pane-long::after { content: ""; position: absolute; inset: auto 0 0 0; height: 160px; background: linear-gradient(180deg, transparent, #07070a 80%); pointer-events: none; transition: opacity var(--d-4) var(--ease-standard); }
/* Open, the pane grows a strip below the report for the button, so the button never sits on the report's last
   section (the recording's player). The strip opens with the pane (900 ms, ease-out). */
.pane-long.open { max-height: calc(var(--full, 4000px) + 74px); padding-bottom: 74px; }
.pane-long.open::after { opacity: 0; }
.pane-more { display: inline-flex; align-items: center; justify-content: center; position: absolute; left: 50%; bottom: 18px; z-index: 2; transform: translateX(-50%); height: 38px; padding: 0 16px; white-space: nowrap; border-radius: 10px; font-size: 14px; font-weight: 560; color: var(--text-1); background: var(--ink-4); box-shadow: var(--edge), 0 0 0 1px var(--line-3), 0 14px 40px -10px #000; transition: background var(--d-2) var(--ease-standard), transform var(--d-1) var(--ease-standard); }
.pane-more:hover { background: var(--ink-5); }
.pane-more:active { transform: translateX(-50%) scale(0.97); }
.pane-more [data-open], .pane-long.open .pane-more [data-closed] { display: none; }
.pane-long.open .pane-more [data-open] { display: inline; }
/* The folder of the snag: its real files. Pick one to look inside (the view crossfades: 220 ms out, 340 ms in). */
.folder { overflow: hidden; }
.folder-bar { display: flex; align-items: center; gap: 14px; height: 42px; padding: 0 16px; border-bottom: 1px solid var(--line-1); }
.folder-bar .lights i { width: 10px; height: 10px; background: var(--ink-6) !important; box-shadow: none; }
.folder-path { font-size: 12.5px; color: var(--text-2); }
.folder-body { display: grid; }
.folder-view { position: relative; display: grid; align-items: center; aspect-ratio: 2.25 / 1; padding: 14px; background: var(--ink-0); overflow: auto; border-bottom: 1px solid var(--line-1); }
.folder-view > * { grid-area: 1 / 1; margin: 0; min-width: 0; opacity: 0; transition: opacity var(--d-3) var(--ease-in); }
.folder-view > .on { opacity: 1; transition: opacity var(--d-4) var(--ease-out) 60ms; }
.folder-view figure { display: grid; place-items: center; height: 100%; min-height: 0; }
.folder-view figure img, .folder-view figure video { max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: 8px; background: #120f22; }
.folder-view figure.small img { max-height: 78%; }
.folder-list { display: grid; padding: 6px; }
.folder-list button { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr) 76px; align-items: baseline; gap: 14px; padding: 8px 10px; border-radius: 8px; text-align: left; transition: background var(--d-2) var(--ease-standard); }
.folder-list button:hover { background: rgba(255, 255, 255, 0.04); }
.folder-list button[aria-selected="true"] { background: rgba(255, 255, 255, 0.075); box-shadow: inset 0 0 0 1px var(--line-1); }
.fname { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color var(--d-2) var(--ease-standard); }
.folder-list button[aria-selected="true"] .fname, .folder-list button:hover .fname { color: var(--text-1); }
.fwhat { order: 2; font-size: 13px; line-height: 1.4; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fsize { order: 3; font-size: 12px; font-variant-numeric: tabular-nums; color: var(--text-4); white-space: nowrap; text-align: right; }
.folder-view pre { align-self: start; font-family: var(--font-mono); font-size: 12px; line-height: 1.7; color: var(--text-2); white-space: pre-wrap; overflow-wrap: anywhere; font-variant-ligatures: none; }
.folder-view pre .err { color: #ff8a80; } .folder-view pre .dim { color: var(--text-3); } .folder-view pre .key { color: var(--agent); } .folder-view pre .str { color: #a8f0bb; }

/* ---------- The fix ---------- */
.fix-stage .pane { position: relative; }
/* The whole fix, one line of src/gate.js. It waits, dim, until the run is done; then the old line is struck out and
   the new one lights in green (520 ms, ease-out, 180 ms after). */
.fix-change { margin: 14px 0 0; padding: 14px 16px 15px; border-radius: var(--r-lg); background: var(--panel); box-shadow: var(--panel-edge); transition: box-shadow 1200ms var(--ease-out); }
.fix-change figcaption { display: flex; align-items: baseline; gap: 6px 14px; flex-wrap: wrap; font-size: 13.5px; line-height: 1.45; color: var(--body); }
.fix-change figcaption .mono { font-size: 12.5px; color: #fff; }
.fix-change .diff { margin-top: 10px; }
.fix-change .diff .add { opacity: 0.28; }
.fix-stage[data-state="done"] .fix-change .diff .del { color: var(--text-3); background: rgba(255, 90, 79, 0.08); text-decoration: line-through; text-decoration-color: rgba(255, 90, 79, 0.5); }
.fix-stage[data-state="done"] .fix-change .diff .add { opacity: 1; color: #a8f0bb; background: rgba(48, 209, 88, 0.1); transition-delay: 180ms; }
.fix-stage[data-state="done"] .fix-change .diff .add i { color: var(--ok); }
.fix-stage[data-state="done"] .fix-change { box-shadow: var(--panel-edge), 0 0 0 1px rgba(48, 209, 88, 0.18), 0 0 60px -20px rgba(48, 209, 88, 0.35); }
/* The app's menu (web/css/app.css, .menu), for the model and the effort on the fix card: it opens on the page,
   over the card's frame, with the app's glass, edge and shadow (web/css/tokens.css). */
.app-menu { position: absolute; z-index: 60; min-width: 220px; max-width: min(320px, 100vw - 16px); padding: 5px; border-radius: 12px; background: rgba(10, 10, 13, 0.9);
  -webkit-backdrop-filter: blur(28px) saturate(165%); backdrop-filter: blur(28px) saturate(165%); outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 0 0 1px rgba(255, 255, 255, 0.09), 0 24px 64px -16px rgba(0, 0, 0, 0.8), 0 8px 24px -8px rgba(0, 0, 0, 0.6); }
.app-menu-item { display: flex; align-items: center; gap: 10px; width: 100%; height: 30px; padding: 0 10px; border: 0; border-radius: 7px; background: none; font: inherit; font-size: 13px; font-weight: 500; color: #f4f4f6; text-align: left; cursor: default; }
.app-menu-item.active, .app-menu-item:hover { background: rgba(255, 255, 255, 0.09); }
.app-menu-item .note { margin-left: -2px; font-size: 12px; font-weight: 480; color: rgba(235, 235, 245, 0.26); white-space: nowrap; }
.app-menu-item .check { margin-left: auto; display: flex; color: #f4f4f6; }
.app-menu-item .check svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
@media (pointer: coarse) { .app-menu-item { height: 40px; font-size: 15px; } }

/* The run waits for the visitor's Fix, so there is nothing to play again until it has run once. */
.fix-stage:not([data-state]) #fix-replay { display: none; }
.fix-note { display: flex; align-items: baseline; gap: 8px 18px; flex-wrap: wrap; margin-top: 14px; padding: 0 4px; }
.fix-note > span { color: var(--body); }
.replay { display: inline-flex; align-items: center; gap: 7px; padding: 4px 9px 4px 7px; margin: -4px -9px -4px -7px; border-radius: 8px; font-size: 13px; font-weight: 550; color: var(--text-2); white-space: nowrap; transition: color var(--d-2) var(--ease-standard), background var(--d-2) var(--ease-standard); }
.replay svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--spring-snappy-ms) var(--spring-snappy); }
.replay:hover { color: var(--text-1); background: rgba(255, 255, 255, 0.06); }
.replay:hover svg { transform: rotate(-50deg); }
.replay:active svg { transform: rotate(-190deg); transition-duration: 120ms; }

/* ---------- You stay in charge ----------
   Two columns: the words and the lines you can say, and Claude's question. */
.charge-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px clamp(28px, 3.6vw, 60px); align-items: start; }
.charge-copy .lede { margin-top: 20px; }
.charge-part { padding-top: 12px; }
.charge-part .read { margin-top: 8px; font-size: 15px; }
.charge-part .ask-try { margin-top: 12px; }
.charge-part .ask-stage, .charge-part .signoff-stage { margin-top: 18px; position: relative; }
.charge-part .change, .charge-part .pane-flat { margin-top: 14px; }
.charge-part .win-sm { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 30px 80px -24px rgba(0, 0, 0, 0.85), 0 0 80px -30px rgba(74, 168, 255, 0.3); }
.pane-flat { margin-top: 14px; }
.charge-part .win-sm { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 30px 80px -24px rgba(0, 0, 0, 0.85), 0 0 80px -30px rgba(74, 168, 255, 0.3); }
.pane-flat { border-radius: var(--r-lg); box-shadow: inset 0 0 0 1px var(--line-1); background: transparent; }
.sign-note { display: grid; margin-top: 14px; padding: 0 4px; }
.sign-note > span { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity var(--d-3) var(--ease-in), transform var(--d-3) var(--ease-in), visibility 0s linear var(--d-3); }
.sign-note[data-state="fixed"] [data-for="fixed"], .sign-note[data-state="verified"] [data-for="verified"], .sign-note[data-state="broken"] [data-for="broken"] { opacity: 1; visibility: visible; transform: none; transition: opacity var(--d-4) var(--ease-out) 160ms, transform var(--d-5) var(--ease-out) 160ms, visibility 0s; }
.sign-note .replay { margin-left: 6px; }
.ask-try { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 18px; font-size: 14.5px; color: var(--body); }
.ask-try .kbds { margin: 0 2px; }

/* After the answer: the second bug goes away. Two builds of the same corner of the game, one over the other. */
.change { margin-top: 30px; border-radius: var(--r-lg); overflow: hidden; background: var(--panel); box-shadow: var(--panel-edge), 0 30px 80px -40px rgba(0, 0, 0, 0.9); }
/* The band of the game where the laser flies: x 50 to 250 and y 100 to 165 of its 320 x 180 picture. */
.corner { position: relative; aspect-ratio: 200 / 65; overflow: hidden; background: #05060c; cursor: pointer; -webkit-user-select: none; user-select: none; }
.corner iframe { position: absolute; left: -25%; top: 0; width: 160%; max-width: none; height: auto; aspect-ratio: 16 / 9; transform: translateY(-55.6%); pointer-events: none; opacity: 0; transition: opacity var(--d-3) var(--ease-in); }
.corner iframe.ready { opacity: 1; transition: opacity 600ms var(--ease-out); }
.corner #corner-b.ready { opacity: 0; transition: opacity var(--d-3) var(--ease-in); }
.change[data-state="after"] .corner #corner-b.ready { opacity: 1; transition: opacity 420ms var(--ease-out); }
.corner::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 -1px 0 var(--line-2); pointer-events: none; }
.change figcaption { padding: 16px 18px 16px; }
.change-more { margin-top: 10px; font-size: 13px; line-height: 1.45; color: var(--body); }
.change-more .mono { font-size: 12px; color: #fff; }
.change-line { display: grid; font-size: 14.5px; line-height: 1.5; color: var(--text-1); }
.change-line > span { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity var(--d-3) var(--ease-in), transform var(--d-3) var(--ease-in), visibility 0s linear var(--d-3); }
.change[data-state="before"] .change-line [data-for="before"], .change[data-state="after"] .change-line [data-for="after"] { opacity: 1; visibility: visible; transform: none; transition: opacity var(--d-4) var(--ease-out) 160ms, transform var(--d-5) var(--ease-out) 160ms, visibility 0s; }
.diff { margin: 12px 0 0; padding: 10px 12px; border-radius: var(--r-sm); background: var(--ink-0); box-shadow: inset 0 0 0 1px var(--line-1); font-family: var(--font-mono); font-size: 12.5px; line-height: 1.75; color: var(--text-2); overflow-x: auto; font-variant-ligatures: none; white-space: pre; }
.diff span { display: block; padding: 0 6px; border-radius: 4px; transition: background var(--d-5) var(--ease-out), color var(--d-5) var(--ease-out), opacity var(--d-5) var(--ease-out); }
.diff i { display: inline-block; width: 1.6em; font-style: normal; color: var(--text-4); }
.diff .add { opacity: 0.28; }
.change[data-state="after"] .diff .del { color: var(--text-3); background: rgba(255, 90, 79, 0.08); text-decoration: line-through; text-decoration-color: rgba(255, 90, 79, 0.5); }
.change[data-state="after"] .diff .add { opacity: 1; color: #a8f0bb; background: rgba(48, 209, 88, 0.1); transition-delay: 180ms; }
.change[data-state="after"] .diff .add i { color: var(--ok); }
.change .meta { margin-top: 10px; }
#ask-hint { display: inline-grid; }
#ask-hint > span { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity var(--d-3) var(--ease-in), visibility 0s linear var(--d-3); }
#ask-hint[data-state="asked"] [data-for="asked"], #ask-hint[data-state="answered"] [data-for="answered"] { opacity: 1; visibility: visible; transition: opacity var(--d-4) var(--ease-out) 140ms, visibility 0s; }
/* Run the whole list by voice: each line said, and then what it does. */
.charge-voice { margin-top: clamp(30px, 4.6vh, 48px); }
.lines { margin-top: 10px; display: grid; grid-template-columns: minmax(0, 1fr); column-gap: clamp(28px, 4.4vw, 72px); border-top: 1px solid var(--line-1); }
.lines li { display: grid; gap: 3px; align-content: start; padding: 10px 0 11px; border-bottom: 1px solid var(--line-1); }
.lines q { quotes: "“" "”"; font-size: clamp(1rem, 0.78rem + 0.42vw, 1.16rem); font-weight: 540; font-stretch: 106%; letter-spacing: -0.02em; line-height: 1.2; color: var(--text-1); text-wrap: balance; }
.lines q::before, .lines q::after { color: var(--text-1); }
.lines li > span { font-size: 13.5px; line-height: 1.45; color: var(--body); }
.lines li > span b { font-weight: 600; }
.lines li { position: relative; }
.lines li::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; pointer-events: none; background: linear-gradient(90deg, var(--atmo-edge), rgba(74, 168, 255, 0.5) 34%, rgba(74, 168, 255, 0) 72%); transform: scaleX(0); transform-origin: 0 50%; transition: transform var(--d-3) var(--ease-in); }
.lines li:hover::after { transform: scaleX(1); transition: transform var(--d-5) var(--ease-out); }

/* ---------- What leaves your Mac ---------- */
.c-private .ch-grid { align-items: center; }

/* ---------- Also, and what you need ---------- */
.band { position: relative; padding: clamp(40px, 6vh, 80px) 0 clamp(24px, 4vh, 48px); }
.band-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); column-gap: clamp(32px, 5.5vw, 92px); }
.band-h { grid-column: 1; padding-top: 22px; border-top: 1px solid var(--line-1); font-size: 17px; font-weight: 620; letter-spacing: -0.015em; line-height: 1.3; color: #fff; }
.band-row { grid-column: 2; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 44px); padding: 22px 0 30px; border-top: 1px solid var(--line-1); }
.band-row h3 { font-size: 15.5px; font-weight: 600; letter-spacing: -0.01em; color: #fff; }
.band-row p { margin-top: 6px; font-size: 14.5px; line-height: 1.55; color: var(--body); text-wrap: pretty; }
.band-row code { font-family: var(--font-mono); font-size: 0.88em; color: var(--text-1); }
.band + .closer { padding-top: clamp(64px, 9vh, 110px); }

/* ---------- You have the last word ----------
   Its own chapter, in the light of a verified fix: the game the fix went into on the left, and on the right the
   words and the report that asks "Does it work now?". On a phone: the words, the game, then the report. */
.c-last { --light: 48, 209, 88; --light-2: 16, 140, 76; --hi: #9ff0b6; }
.c-last .chapter-light::before { --lx: 36%; }
.last-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-areas: "stage head" "stage rest"; grid-template-rows: auto 1fr; column-gap: clamp(32px, 5.5vw, 92px); align-items: start; }
.last-head { grid-area: head; }
.last-head .lede { margin-top: 22px; }
.last-stage { grid-area: stage; align-self: center; position: relative; min-width: 0; }
.last-rest { grid-area: rest; min-width: 0; }
.last-hint { margin-top: 18px; font-size: 15px; color: var(--body); }
.last-rest .pane-flat { margin-top: 18px; }
.last-stage .win-sm { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 40px 110px -24px rgba(0, 0, 0, 0.85), 0 0 100px -30px rgba(48, 209, 88, 0.3); }

/* The sticker on each game window says what the build in it is: bugged; 1 of 2 fixed (the shots, not yet the jump);
   still bugged after a fix that gave the shots the moon's gravity; fixed once both of Claude's fixes are in. It sits
   on the window's top right corner at 30°, a die-cut label with a white edge. A new one stamps on from 145% size
   (560 ms, a little overshoot, after 160 ms) and the old one lifts off (220 ms, ease-in). The hero's arrives once its
   window has risen (at 2.6 s), the last word's once its window is in. */
.tag { position: absolute; z-index: 4; top: -16px; right: -14px; display: grid; rotate: 30deg; pointer-events: none; font-size: clamp(12px, 0.55rem + 0.55vw, 17px); }
.hero .tag { font-size: clamp(13px, 0.5rem + 0.8vw, 21px); top: -18px; right: -18px; }
.tag > span { grid-area: 1 / 1; justify-self: end; display: flex; flex-direction: column; align-items: center; gap: 0.18em; padding: 0.42em 0.95em 0.46em; border-radius: 0.5em; border: 2px solid rgba(255, 255, 255, 0.94);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 12px 26px -8px rgba(0, 0, 0, 0.7), 0 2px 5px rgba(0, 0, 0, 0.4);
  opacity: 0; visibility: hidden; transform: scale(0.9) translateY(-6px); transition: opacity 220ms var(--ease-in), transform 220ms var(--ease-in), visibility 0s linear 220ms; }
.tag b { font-weight: 800; font-stretch: 112%; letter-spacing: 0.09em; text-transform: uppercase; line-height: 1; white-space: nowrap; }
.tag small { font-size: 0.68em; font-weight: 600; letter-spacing: 0.01em; line-height: 1.1; white-space: nowrap; }
.tag .t-bugs { color: #fff; background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0) 55%), #e5322b; }
.tag .t-moon { color: #fff; background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0) 55%), #e5322b; }
.tag .t-half { color: #2b1700; background: linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0) 55%), #ff9f0a; }
.tag .t-fixed { color: #03230f; background: linear-gradient(180deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0) 55%), #30d158; }
.win[data-build="bugs"] .tag .t-bugs, .win[data-build="shots"] .tag .t-half, .win[data-build="moon"] .tag .t-moon, .win[data-build="both"] .tag .t-fixed, .win[data-build="laser"] .tag .t-fixed { opacity: 1; visibility: visible; transform: none; transition: none; animation: stamp 560ms cubic-bezier(0.34, 1.56, 0.64, 1) 160ms backwards; }
@keyframes stamp { from { opacity: 0; transform: scale(1.45); } 55% { opacity: 1; } to { opacity: 1; transform: none; } }
.js .hero .tag { animation: tag-in 560ms cubic-bezier(0.34, 1.56, 0.64, 1) 2600ms backwards; }
.js .last-stage .tag { opacity: 0; transition: opacity 0s; }
.js .last-stage.in .tag { opacity: 1; animation: tag-in 560ms cubic-bezier(0.34, 1.56, 0.64, 1) 700ms backwards; }
@keyframes tag-in { from { opacity: 0; transform: scale(1.45); } 55% { opacity: 1; } to { opacity: 1; transform: none; } }

/* ---------- Between ---------- */
@media (max-width: 1099px) and (min-width: 920px) {
}

/* ---------- Narrower ---------- */
@media (max-width: 919px) {
  /* One column: the heading, its sentence and its number, then the product, then the small print. */
  .ch-grid, .c-report .ch-grid, .c-private .ch-grid, .charge-grid, .lines, .band-grid, .band-row { grid-template-columns: minmax(0, 1fr); }
  .ch-grid { row-gap: 34px; }
  .charge-grid { row-gap: 56px; }
  .last-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "stage" "rest"; grid-template-rows: none; row-gap: 34px; }
  .last-rest .last-hint { margin-top: 0; }
  .tag, .hero .tag { right: -6px; top: -14px; }
  .band-h, .band-row { grid-column: 1; }
  .band-row { border-top: 0; padding-top: 12px; row-gap: 18px; }
  .chapter { padding: clamp(64px, 10vh, 110px) 0; }
  .c-report .ch-copy { position: static; padding-top: 0; }
  .fix-stage, .ask-stage, .mac { position: static; }
  .stage-foot { flex-wrap: wrap; justify-content: center; }
  .lines li { grid-template-columns: minmax(0, 1fr); }
  .pane-long { --fold: 640px; }
}
@media (max-width: 759px) {
  .hero { padding-top: calc(var(--bar-h) + var(--sale-offset) + 30px); } /* close under the bar: on a phone the loop, and with it the open notch, waits until the game is brought up the screen (home.js) */
  .hero .promise { font-size: clamp(2.6rem, 15.2vw, 4.6rem); line-height: 0.96; white-space: normal; }
  .hero .promise > span { display: block; }
  .beam { height: min(80svh, 640px); }
  .stage { --stage-w: calc(100% - 2 * var(--gut)); }
  .beats { font-size: 11.5px; }
  .stage-status { left: 8px; bottom: 8px; max-width: calc(100% - 16px); padding: 5px 10px; font-size: 11.5px; border-radius: 9px; }
  .beats li + li::before { width: 10px; margin: 0 6px; }
  /* The four steps in two rows that meet at their dashes: "You say it — Callout writes it up" over "Claude Code fixes
     it — It's fixed". One row of four runs past the screen under 412px. */
  .beats { display: grid; grid-template-columns: repeat(2, auto); justify-content: center; row-gap: 6px; }
  .beats li:nth-child(odd) { justify-self: end; }
  .beats li:nth-child(3)::before { display: none; }
  .stage-foot { flex-direction: column; gap: 12px; } /* the steps, then the sound switch, each in the middle */
  .stage-body { animation: none; } /* on a phone the window does not sink and dim as it leaves: the lines under it are still being read */
  .sound { margin-right: 0; }
  .hotkey { flex-direction: column; gap: 12px; padding: 8px 14px 10px; text-align: center; }
  .hotkey-label { min-width: 0; width: min(19em, 84vw); }
  .hotkey-label > span { justify-items: center; }
  .win { border-radius: 10px; }
  .win-bar { height: 32px; padding: 0 11px; border-radius: 10px 10px 0 0; grid-template-columns: auto minmax(0, 1fr) auto; }
  .win-rim { border-radius: 11px; }
  .win-nav, .win-plus { display: none; }
  .win-url { height: 22px; font-size: 11.5px; border-radius: 6px; }
  .lights { gap: 6px; } .lights i { width: 9px; height: 9px; }
  .win-view { border-radius: 0 0 10px 10px; }
  .dawn { top: -60px; filter: blur(30px); }
  /* The planet keeps its look (the arc, its glow, the dark below), lower than on a wide screen: its edge runs
     88px under the note, so the window, the steps, the sound switch and the note sit above it, never on the edge
     or in its bright glow. The stage keeps room under the arc before the next chapter's heading. */
  .horizon i { top: calc(100% - 240px + 88px); }
  .stage { margin-bottom: 104px; }
  .fwhat { display: none; }
  .folder-list button { grid-template-columns: minmax(0, 1fr) auto; }
  .folder-view { padding: 10px; }
  .mac { padding: 20px 18px 18px; }
}

/* On a touch screen the games are to watch, not to play: a finger on one scrolls the page (the game's own canvas
   takes every touch, touch-action: none). A phone is "hover: none" or "pointer: coarse": Samsung Internet on a
   Galaxy reports hover: hover with a finger. */
@media (hover: none), (pointer: coarse) { .win-view iframe { pointer-events: none; } }

/* A very narrow phone (320px): each chapter heading keeps one sentence a line. */
@media (max-width: 359px) { .chapter .h2 { font-size: 2.1rem; } }

/* A short screen: the small print under the buttons gives its room to the game. */
@media (max-height: 800px) and (min-width: 760px) { .hero-fine { display: none; } .stage { --stage-w: clamp(min(620px, 100% - 2 * var(--gut)), (100svh - 452px) * 1.7778, min(1180px, 100% - 2 * var(--gut))); } }

@media (prefers-reduced-motion: reduce) {
  .tag, .tag > span, .js .hero .tag, .js .last-stage.in .tag { animation: none !important; }
  .tag > span { transform: none !important; transition: opacity 160ms linear, visibility 0s linear 160ms; }
  .js .hero .win, .js .horizon, .js .hero .btn.primary::after, .hotkey .kbds::after { animation: none !important; }
  .hero .p-say, .hero .p-done, .hero .lede, .hero .hero-actions, .hero-fine, .stage-foot, .stage-note { --said-delay: 0ms; --reveal-delay: 0ms; }
  .hero.leaning .win { transform: none; }
  .stage[data-light="fixed"] .win::after, .hero[data-light="fixed"] .beam { animation: none; }
  .beam { opacity: 0.07; }
  .hotkey .kbd, .hotkey-label > span { transition-duration: 120ms !important; transition-delay: 0ms !important; transform: none !important; }
  .dawn { opacity: 0.2; }
  .stage[data-light="fixed"] .win-rim { animation: none; }
  .stage-status > span { animation: none; }
  .beats li + li::before, .corner iframe, .diff span { transition-duration: 120ms !important; }
  .pane-long, .surface, .pane-tabs-mark { transition-duration: 120ms !important; }
  .pane-views > [role="tabpanel"].arriving, .pane-views > [role="tabpanel"].leaving { animation-duration: 120ms !important; }
  .chapter-light::before { transition-duration: 300ms !important; scale: 1 !important; }
  .fix-change .diff span { transition-duration: 120ms !important; }
  .mac-wave .bars i { animation: none; height: 10px; }
  .said-strip .bars i, .said-strip::after, .js .report-pane.in .scan { animation: none !important; }
  .js .report-pane #report-pane { animation: none !important; clip-path: none !important; }
  .js .ch-num[data-reveal] .big, .js .ch-num[data-reveal].in .big { filter: drop-shadow(0 0 28px rgba(var(--light), 0.28)); transition: none; }
  .js .p-amber.in::before, .js .p-blue.in::before, .js .p-violet.in::before { animation: none; }
  .replay svg { transition: none; transform: none !important; }
}

/* The chapters in the home page's clothes (design/pages-canvas, full demo A): each one a full screen of room, its
   headline at the home page's size; the page ends on the home page's planet (partials/planet.html). */
.tour .chapter { min-height: 100svh; display: grid; align-content: center; }
.tour .chapter .h2 { font-size: clamp(2.5rem, 0.95rem + 4.4vw, 5.2rem); line-height: 0.98; }
