/* bootzero.one landing page. Direction: colour chapters (tasteskill v2, seed 660234940). Brand palette and type kept. */

/* ---------- tokens ---------- */
:root {
  --navy: #2B374C; --orange: #F79436; --ember: #ED7032; --slate: #6A7585; --frost: #EEF1F5; --paper: #FDFDFD;
  --orange-text: #B35A0D;

  --bg: var(--navy);
  --ink: var(--paper);
  --accent: var(--orange);
  --accent-ink: var(--navy);

  --font-text: "Outfit", "Helvetica Neue", Arial, sans-serif;
  --font-display: var(--font-text);
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace; /* taste-skill-ignore: only the real boot log in <pre> uses it */

  --step-small: 0.875rem;                                   /* 14 */
  --step-body: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);  /* 17–19 */
  --step-lead: clamp(1.75rem, 1.2rem + 1.4vw, 2.25rem);    /* 28–36 */
  --step-head: clamp(2.25rem, 1.4rem + 3vw, 3.75rem);      /* 36–60 */
  --step-display: clamp(4rem, 8.5vw, 8.25rem);             /* 64–132 */

  --margin: clamp(1rem, 2.2vw, 2rem);
  --gutter: clamp(1rem, 2vw, 2rem);
  --radius: 8px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms; --t-hover: 180ms; --t-ui: 240ms; --t-reveal: 800ms; --t-open: 1200ms;
  --stagger-line: 90ms; --stagger-item: 70ms;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-text); font-size: var(--step-body); line-height: 1.5; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, h4, p, figure, blockquote, ul, ol { margin: 0; }
ul[class] { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
:target { scroll-margin-top: 0; }
::selection { background: var(--orange); color: var(--navy); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.025em; line-height: 1.02; text-wrap: balance; }
p { text-wrap: pretty; }
.head { font-size: var(--step-head); }
.small { font-size: var(--step-small); line-height: 1.45; }
.nums { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: 0 1.25rem; border-radius: var(--radius); font-weight: 600; text-decoration: none; white-space: nowrap; transition: transform var(--t-press) var(--ease-out), background-color 300ms ease, color 300ms ease; }
.button:active { transform: scale(0.97); }
.button--orange { background: var(--orange); color: var(--navy); }
@media (hover: hover) and (pointer: fine) { .button--orange:hover { background: var(--paper); } }
.link { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.2em; text-decoration-thickness: 0.07em; transition: text-decoration-color var(--t-hover) ease; }
.link-plain { text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 0.07em; }
@media (hover: hover) and (pointer: fine) {
  .link:hover { text-decoration-color: currentColor; }
  .tile summary:hover::after, .tile summary:hover::before { transform: translate(0, -50%) scale(1.15); }
  .tile[open] summary:hover::before { transform: translate(0, -50%) rotate(90deg) scale(1.15); }
  .power:hover .power__track { background: var(--frost); }
  .power[aria-checked="true"]:hover .power__track { background: var(--ember); }
}

/* ---------- chapters: every section paints its own ground ---------- */
.chapter { position: relative; }
.hero, .field--navy, .contact, .foot { background: var(--navy); color: var(--paper); }
.field--frost, .faq { background: var(--frost); color: var(--navy); }
/* work chapters paint their ground on a layer that can arrive (grow from an inset) over the hero's navy */
.work { background: var(--navy); }
.ch__ground { position: absolute; inset: 0; z-index: 0; border: 20px solid var(--navy); opacity: 0; pointer-events: none; }
.ch > :not(.ch__ground) { position: relative; z-index: 1; }
.ch--frost { background: var(--frost); color: var(--navy); }
.ch--navy { background: var(--navy); color: var(--paper); }
.ch--slate { background: var(--slate); color: var(--paper); }
.field--orange { background: var(--orange); color: var(--navy); }
.field--paper { background: var(--paper); color: var(--navy); }

/* ---------- fixed header: takes the ink of the chapter beneath ---------- */
.top { position: fixed; inset: 0 0 auto 0; z-index: 10; display: flex; justify-content: space-between; align-items: center; padding: 1.25rem var(--margin); color: var(--header-ink, var(--paper)); transition: color 300ms ease; pointer-events: none; }
.top > * { pointer-events: auto; }
.top__mark { display: flex; align-items: center; gap: 0.6rem; color: inherit; }
.wordmark { width: clamp(8.5rem, 12vw, 10.5rem); }
.top__penguin { position: relative; display: block; width: 0; height: 2.4rem; aspect-ratio: 362 / 520; opacity: 0; margin-right: -0.6rem; transition: opacity 200ms ease, width 450ms var(--ease-out), margin-right 450ms var(--ease-out); }
.top__penguin img { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity 300ms ease; }
.top__penguin-col { opacity: 0; }
.is-docked .top__penguin { opacity: 1; width: auto; margin-right: 0; }
.is-light .top__penguin-col { opacity: 1; }
.is-light .top__penguin-rev { opacity: 0; }
.mark.is-flying { animation: none; transition: transform 650ms var(--ease-in-out); }
.wordmark { height: auto; }
.top__cta { background: var(--header-ink, var(--paper)); color: var(--header-ground, var(--navy)); }
@media (hover: hover) and (pointer: fine) { .top__cta:hover { background: var(--orange); color: var(--navy); } }

/* ---------- hero: the statement left, the penguin right ---------- */
.hero { position: relative; overflow: hidden; min-height: 100svh; padding: 5.5rem var(--margin) var(--margin); display: grid; grid-template-columns: 7fr 5fr; grid-template-rows: 1fr; column-gap: var(--gutter); align-items: center; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, var(--navy) 30%, rgba(43, 55, 76, 0) 62%); } /* taste-skill-ignore: the brand's own navy fade over the pattern where text sits */
.hero__text, .hero__stage { position: relative; z-index: 2; }
.hero__text { display: flex; flex-direction: column; align-items: flex-start; gap: 2rem; }
.hero__title { font-size: var(--step-display); line-height: 0.88; letter-spacing: -0.035em; font-weight: 600; max-width: 100%; }
.hero__one { color: var(--orange); }
.hero__lead { width: min(100%, 30rem); font-size: var(--step-body); line-height: 1.45; }
.hero__cta { min-height: 3.25rem; padding: 0 1.75rem; font-size: var(--step-body); }
.hero__stage { align-self: stretch; justify-self: stretch; min-height: 60svh; display: grid; place-items: center; }
.bits { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; }
.bit { fill: none; stroke: var(--orange); stroke-width: 2.6; opacity: 0.18; }
.bit--one { fill: var(--orange); stroke: none; }
.mark { position: relative; width: min(64%, 62svh * 0.7); height: auto; display: block; }
.lines .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.lines [data-line] { display: block; }
@media (max-width: 56em) {
  .hero { padding-top: 6rem; min-height: 100svh; grid-template-columns: 1fr; grid-template-rows: auto 1fr; row-gap: 1.5rem; align-content: start; }
  .hero__title { font-size: 14vw; }
  .hero__text { gap: 1.25rem; order: 2; }
  .hero__lead { width: 100%; max-width: 44ch; }
  .hero__stage { order: 1; width: 100%; min-height: 46svh; }
  .hero::before { background: linear-gradient(0deg, var(--navy) 42%, rgba(43, 55, 76, 0) 72%); } /* taste-skill-ignore: same fade, from the bottom where the text sits on phones */
  .bits { height: 52svh; } /* the 576×336 field keeps its own scale instead of being blown up to the phone's height */
  .mark { width: min(48%, 40svh * 0.7); }
}

/* ---------- work: portrait on its own ground ---------- */
.ch { min-height: 100svh; padding: 5.5rem 2rem 2rem; display: grid; grid-template-rows: auto 1fr auto; grid-template-columns: 1fr auto 1fr; grid-template-areas: "title title title" "fig fig fig" "note . link"; align-items: start; }
.ch__title { grid-area: title; font-size: var(--step-lead); max-width: 14ch; }
.ch__portrait { grid-area: fig; justify-self: center; align-self: center; width: min(506px, 75svh * 0.75, calc(100vw - 4rem)); aspect-ratio: 3 / 4; margin: 0; overflow: clip; }
.ch__portrait img { width: 100%; height: 100%; object-fit: cover; }
.ch__portrait.device { width: min(900px, calc(100vw - 4rem), 125svh); aspect-ratio: 16 / 10; }
.ch__note { grid-area: note; align-self: end; max-width: 32ch; line-height: 1.45; }
.ch__link { grid-area: link; align-self: end; justify-self: end; font-weight: 600; }
@media (max-width: 56em) {
  .ch { padding: 6.5rem 1.25rem 1.5rem; grid-template-columns: 1fr; grid-template-rows: auto 1fr auto auto; grid-template-areas: "title" "fig" "note" "link"; row-gap: 1rem; }
  .ch__title { font-size: var(--step-lead); }
  .ch__portrait { width: 80%; }
  .ch__portrait.device { width: 100%; aspect-ratio: 4 / 5; }
  .device__log { font-size: 11px; padding: 12px; }
  .ch__link { justify-self: start; }
}

/* the device: a real interface fragment (data-ui) */
.device { background: var(--navy); border-radius: 14px; padding: 12px 12px 0; display: flex; flex-direction: column; }
.device__screen { position: relative; flex: 1; background: var(--navy); border-radius: 6px; overflow: hidden; min-height: 0; outline: 2px solid var(--slate); outline-offset: -2px; }
.device__log { margin: 0; padding: 14px 16px; font: 500 13px/1.5 var(--font-mono); /* taste-skill-ignore: literal terminal output */ color: var(--paper); white-space: pre-wrap; word-break: break-word; height: 100%; overflow: hidden; }
.log__inner { display: block; will-change: transform; }
.log__line { display: block; }
.log__cursor { display: inline-block; width: 0.6em; height: 1em; vertical-align: -0.15em; background: var(--paper); animation: blink 1s steps(1) infinite; }
.js .device:not(.is-booting) .log__cursor { display: none; }
.log__line--banner { color: var(--orange); margin-top: 0.4em; margin-bottom: 0.4em; }
@keyframes blink { 50% { opacity: 0; } }
.device__off { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; color: var(--frost); font-weight: 500; opacity: 0; pointer-events: none; transition: opacity 300ms ease; }
.js .device.is-off .device__off { opacity: 1; }
.js .device.is-off .log__line, .js .device.is-booting .log__line { display: none; }
.js .device.is-booting .log__line.is-on { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .js .log__inner { transition: transform 180ms var(--ease-out); }
  .js .device.is-booting .log__line.is-on { animation: line-in 140ms ease-out; }
}
@keyframes line-in { from { opacity: 0; } }
.device__bezel { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 12px 6px 12px; color: var(--paper); }
.power { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 600; font-size: var(--step-body); color: var(--paper); padding: 4px 6px; border-radius: 999px; }
.power__zero, .power__one { width: 1.2em; text-align: center; }
.power__track { position: relative; width: 56px; height: 30px; border-radius: 999px; background: var(--slate); transition: background-color 200ms ease; }
.power__knob { position: absolute; top: 4px; left: 4px; width: 22px; height: 22px; border-radius: 50%; background: var(--paper); transition: transform 220ms var(--ease-out); }
.power[aria-checked="true"] .power__track { background: var(--orange); }
.power[aria-checked="true"] .power__knob { transform: translateX(26px); }
.power:active .power__knob { transform: translateX(26px) scale(0.92); }
.power[aria-checked="false"]:active .power__knob { transform: scale(0.92); }
.device__time { font-weight: 500; font-size: var(--step-body); color: var(--orange); font-variant-numeric: tabular-nums; transition: opacity 300ms ease; }
.js .device.is-off .device__time, .js .device.is-booting .device__time { opacity: 0; }

/* the drawn board: frost PCB, navy chips, the orange one in the SoC, rings for holes */
.board { display: block; }
.board__svg { width: 100%; height: 100%; display: block; }
.b-pcb { fill: var(--frost); }
.b-hole { fill: none; stroke: var(--navy); stroke-width: 3; }
.b-chip, .b-soc, .b-pins { fill: var(--navy); }
.b-mem, .b-passive, .b-led { fill: var(--slate); }
.b-fringe { fill: none; stroke: var(--slate); stroke-width: 3; stroke-dasharray: 2 2.6; }
.b-one, .b-led--pwr, .b-led--act { fill: var(--orange); }
.b-led--act { opacity: 0; }
.b-text text { font: 600 8.5px var(--font-text); text-anchor: middle; dominant-baseline: central; fill: var(--frost); }
.b-text .t-xs { font-size: 7px; }
.b-traces path, .b-lit path, .b-spark path { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.b-traces path { stroke: var(--slate); }
.b-lit path { stroke: var(--orange); stroke-dasharray: 1 1; stroke-dashoffset: 0; }
.b-spark path { stroke: var(--paper); stroke-width: 3; stroke-dasharray: 0.12 0.88; stroke-dashoffset: 1; opacity: 0; }

/* the fleet panel: a real interface fragment (data-ui) */
.panel { background: var(--paper); color: var(--navy); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 14px; font-size: var(--step-small); }
.panel__head { display: flex; justify-content: space-between; align-items: baseline; font-size: var(--step-body); }
.panel__head strong { font-weight: 600; }
.panel__clock { font-variant-numeric: tabular-nums; }
.panel__status { display: flex; align-items: center; gap: 0.5rem; background: var(--frost); border-radius: var(--radius); padding: 10px 12px; line-height: 1.35; }
.panel__dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--orange); }
.panel__rooms { display: flex; flex-direction: column; gap: 6px; }
.room { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px; background: var(--frost); border-radius: var(--radius); padding: 10px 12px; }
.room__val { color: var(--navy); }
.room__state { color: var(--navy); display: inline-flex; align-items: center; gap: 6px; }
.room--on .room__state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.panel__row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: auto; }
.panel__tile { background: var(--frost); border-radius: var(--radius); padding: 10px 12px; display: flex; flex-direction: column; line-height: 1.3; }
.panel__tile span { color: var(--navy); }
.panel__tile strong { font-size: var(--step-body); font-weight: 600; }
.panel__tile small { font-size: inherit; color: var(--navy); }
@media (max-width: 56em) { .panel { padding: 12px; gap: 8px; } .room { padding: 8px 10px; } }

/* ---------- services: statements on colour fields ---------- */
.field { min-height: 76svh; padding: 5.5rem 1.75rem 1.75rem; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto 1fr auto; column-gap: var(--gutter); }
.field__text { grid-column: 8 / 13; grid-row: 1; max-width: 32ch; line-height: 1.45; }
.field__phrase { grid-column: 1 / 13; grid-row: 3; align-self: end; font-size: clamp(3.5rem, 9vw, 9.375rem); line-height: 0.9; letter-spacing: -0.035em; max-width: 9ch; }
.field--mirror .field__text { grid-column: 2 / 7; }
.field--mirror .field__phrase { justify-self: end; text-align: right; }
@media (max-width: 56em) {
  .field { min-height: 64svh; padding: 6.5rem 1.25rem 1.25rem; grid-template-columns: 1fr; }
  @media (min-width: 40em) { .field { min-height: 52svh; } }
  .field__text, .field--mirror .field__text { grid-column: 1; width: 100%; max-width: 44ch; }
  .field--mirror .field__text { justify-self: start; text-align: left; }
  .field__phrase, .field--mirror .field__phrase { grid-column: 1; justify-self: start; text-align: left; font-size: 13vw; }
}

/* ---------- contact: photo strip, three-cell bar ---------- */
.contact { padding: 5.5rem 0 5rem; display: flex; flex-direction: column; }
.strip { overflow: hidden; }
.strip__track { display: flex; gap: 8px; width: max-content; }
.strip__track li { flex: none; height: 150px; }
.strip__track img, .strip__track video { height: 150px; width: auto; display: block; }
.contact__title { margin: 4.5rem var(--margin) 0; }
.bar { margin: 2.5rem var(--margin) 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; height: 96px; }
.cell { display: flex; align-items: center; justify-content: center; background: var(--frost); color: var(--navy); border-radius: var(--radius); transition: background-color var(--t-ui) ease, color var(--t-ui) ease, transform var(--t-press) var(--ease-out); }
.cell__input { width: 100%; height: 100%; background: transparent; border: 0; text-align: center; color: inherit; padding: 0 1rem; }
.cell__input::placeholder { color: var(--navy); opacity: 1; }
.cell:focus-within { background: var(--paper); color: var(--navy); }
.cell__input:focus { outline: none; }
.cell--send { background: var(--orange); color: var(--navy); font-weight: 600; }
.cell--send:active { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) { .cell--send:hover { background: var(--paper); } }
.bar__notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0.75rem var(--margin) 0; }
.bar__notes-right { grid-column: 3; }
@media (max-width: 56em) {
  .contact { padding-top: 6.5rem; }
  .strip { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .strip__track li, .strip__track img, .strip__track video { height: 110px; }
  .contact__title { margin-top: 2.5rem; }
  .bar { grid-template-columns: 1fr; height: auto; }
  .cell { min-height: 60px; }
  .bar__notes { grid-template-columns: 1fr; }
  .bar__notes-right { grid-column: 1; }
}

/* ---------- footer: a footer of tiles ---------- */
.foot { padding: 10px; }
.foot__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: 220px 320px; gap: 8px; }
.ftile { padding: 1.25rem; border-radius: var(--radius); display: flex; flex-direction: column; justify-content: space-between; min-width: 0; }
.ftile--statement { grid-column: 1 / 5; background: var(--slate); color: var(--paper); }
.ftile__statement { font-size: var(--step-lead); line-height: 1.1; max-width: 14ch; font-weight: 500; letter-spacing: -0.02em; }
.ftile--nav { grid-column: 5 / 8; background: var(--frost); color: var(--navy); }
.ftile--nav ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.2rem; }
.ftile--time { grid-column: 8 / 10; background: var(--paper); color: var(--navy); justify-content: flex-start; gap: 0.25rem; }
.ftile--email { grid-column: 10 / 13; background: var(--slate); color: var(--paper); justify-content: flex-end; }
.ftile__mail { font-weight: 500; overflow-wrap: anywhere; }
.ftile__mail, .ftile__social { display: inline-flex; align-items: center; gap: 0.6rem; }
.ftile__social { margin-top: 0.6rem; font-weight: 500; }
.ftile--email { align-items: flex-start; }
.icon { width: 1.25em; height: 1.25em; flex: none; }
.ftile--logo { grid-column: 1 / 9; background: var(--paper); align-items: center; justify-content: center; }
.ftile--logo img { width: min(60%, 520px); }
.ftile--go { grid-column: 9 / 13; background: var(--orange); color: var(--navy); text-decoration: none; transition: background-color var(--t-hover) ease; }
.ftile__go { font-size: var(--step-lead); font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; }
.ftile__arrow { align-self: flex-end; transition: transform var(--t-ui) var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .ftile--go:hover { background: var(--paper); }
  .ftile--go:hover .ftile__arrow { transform: translateX(6px); }
}
.vat { font-family: var(--font-mono); font-size: 0.95em; } /* taste-skill-ignore: brand sets numbers people copy in the mono face */
@media (max-width: 56em) {
  .foot { padding: 6px; }
  .foot__grid { grid-template-columns: 1fr 1fr; grid-template-rows: 160px auto auto auto auto; gap: 6px; }
  .ftile--logo { grid-column: 1 / 3; grid-row: 1; }
  .ftile--logo img { width: 70%; }
  .ftile--go { grid-column: 1 / 3; grid-row: 2; min-height: 140px; }
  .ftile--email { grid-column: 1 / 3; grid-row: 3; min-height: 0; justify-content: flex-start; }
  .ftile--nav { grid-column: 1; grid-row: 4; }
  .ftile--time { grid-column: 2; grid-row: 4; }
  .ftile--statement { grid-column: 1 / 3; grid-row: 5; }
  .ftile { padding: 1.25rem; min-height: 120px; }
  .ftile__statement { font-size: var(--step-lead); max-width: 16ch; margin-bottom: 1rem; }
  .ftile__social { margin-top: 0.75rem; }
}

/* ---------- motion (transform and opacity only; content stays visible without script) ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* load sequence */
  .js .hero [data-line] { transform: translateY(105%); animation: load-line 800ms var(--ease-expo) forwards; animation-delay: calc(100ms + var(--i) * var(--stagger-line)); }
  .js .hero [data-load] { opacity: 0; transform: translateY(12px); animation: load-rise 500ms var(--ease-out) forwards; animation-delay: var(--d); }
  /* the mark: body and head arrive, the one rises into the zero, the eyes blink, then it floats */
  .js .hero .mark { animation: float 6s var(--ease-in-out) 2.6s infinite alternate; }
  .js .hero .m-body, .js .hero .m-head, .js .hero .m-beak, .js .hero .m-eye { opacity: 0; transform: translateY(14px) scale(0.98); transform-box: fill-box; transform-origin: 50% 100%; animation: mark-rise 700ms var(--ease-out) 350ms forwards; }
  .js .hero .m-head, .js .hero .m-beak, .js .hero .m-eye { animation-delay: 500ms; }
  .js .hero .m-foot { opacity: 0; transform: translateY(10px); animation: mark-rise 500ms var(--ease-out) 650ms forwards; }
  .js .hero .m-one { clip-path: inset(100% 0 0 0); animation: mark-one 800ms var(--ease-expo) 1100ms forwards; }
  .js .hero .m-eye { animation: mark-rise 700ms var(--ease-out) 500ms forwards, mark-blink 5s steps(1) 2.2s infinite; }
  /* the bits: stream in by reading order, then a brightness wave keeps crossing them */
  .js .hero .bits { opacity: 0; animation: bits-in 1600ms ease 200ms forwards; }
  .js .hero .bit { opacity: 0.16; animation: bit-wave 5200ms var(--ease-in-out) infinite; animation-delay: calc(1200ms + var(--c) * 70ms + var(--r) * 90ms); }
  .js .hero .bit--run { animation: bit-run 6400ms linear infinite; animation-delay: calc(1800ms + var(--c) * 230ms + var(--r) * 55ms); }
  .js .hero .bits__drift { animation: bits-drift 28s linear infinite; }
  /* entrances per section, staggered */
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-expo); transition-delay: calc(var(--i, 0) * var(--stagger-item)); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  /* chapter arrival: the ground grows from a 20px inset to full-bleed, the portrait settles from 0.92 */
  .js .ch[data-chapter] .ch__ground { opacity: 1; transition: opacity 600ms var(--ease-out); }
  .js .ch[data-chapter].is-in .ch__ground { opacity: 0; }
  .js .ch__portrait[data-reveal] { transform: scale(0.92); transition: opacity 600ms var(--ease-out), transform 800ms var(--ease-out); }
  .js .ch__portrait[data-reveal].is-in { transform: none; }
  /* a picture settles from a slight scale as its chapter arrives */
  .js .settle[data-reveal] img { transform: scale(1.1); transition: transform 1500ms var(--ease-soft); }
  .js .settle[data-reveal].is-in img { transform: none; }
  /* the drawn board: traces light up from the SoC when the chapter arrives, then a pulse runs along each */
  .js .board .b-lit path { stroke-dashoffset: 1; transition: stroke-dashoffset 900ms var(--ease-out); transition-delay: calc(400ms + var(--i) * 120ms); }
  .js .board.is-in .b-lit path { stroke-dashoffset: 0; }
  .js .board .b-led--pwr { opacity: 0; transition: opacity 200ms ease 300ms; }
  .js .board.is-in .b-led--pwr { opacity: 1; }
  .board.is-in .b-spark path { opacity: 1; animation: spark 3200ms linear infinite; animation-delay: calc(1800ms + var(--i) * 300ms); }
  .board.is-in .b-led--act { animation: blink 1.3s steps(1) infinite; }
  /* the strip drifts */
  .strip__track { animation: drift 60s linear infinite; }
  .strip:hover .strip__track, .strip:focus-within .strip__track { animation-play-state: paused; }
  @media (max-width: 56em) { .strip__track { animation: none; } }
}
@keyframes load-line { to { transform: none; } }
@keyframes load-rise { to { opacity: 1; transform: none; } }
@keyframes drift { to { transform: translateX(-50%); } }
@keyframes spark { to { stroke-dashoffset: 0; } }
@keyframes mark-rise { to { opacity: 1; transform: none; } }
@keyframes mark-one { to { clip-path: inset(0 0 0 0); } }
@keyframes mark-blink { 0%, 100% { transform: none; } 4% { transform: scaleY(0.1); } 8% { transform: none; } }
@keyframes float { to { transform: translateY(-10px); } }
@keyframes bits-in { to { opacity: 1; } }
@keyframes bit-wave { 0%, 100% { opacity: 0.16; } 35% { opacity: 0.42; } }
@keyframes bit-run { 0%, 100% { opacity: 0.16; } 6% { opacity: 0.95; } 18% { opacity: 0.16; } }
@keyframes bits-drift { to { transform: translateY(-168px); } }
@media (prefers-reduced-motion: reduce) {
    .power__knob { transition: none; }
}
