/* ==========================================================================
   Bytewaves site: global stylesheet (ported verbatim from prototype/styles.css,
   approved r1 2026-11-18). Imported once in src/layouts/Base.astro.
   Build-only changes are marked [build].
   Order: tokens (from brief.md, verbatim) > font > reset > base > layout
          primitives > components > sections > motion
   ========================================================================== */

/* ---------- 1. Tokens: copied verbatim from clients/bytewaves/brief.md ---------- */
:root {
  color-scheme: dark;

  /* color: role → hex (every text pair is contrast-checked in the brief) */
  --color-bg: #060D1A;            /* ink: page background, header, hero, footer */
  --color-surface: #0B1729;       /* ink-2: alternate section bands */
  --color-surface-2: #122239;     /* ink-3: cards, panels, floating CTA bar */
  --color-surface-3: #1A2D4A;     /* ink-4: chips, hover fills, raised card on ink-3 */
  --color-heading: #FFFFFF;       /* h1–h3, stat numerals */
  --color-text: #E6EDF7;          /* body text */
  --color-text-muted: #9AABC4;    /* secondary text, eyebrows, labels, placeholder text; control borders */
  --color-primary: #4AB0FF;       /* primary button fill, links, focus ring, eyebrow accent */
  --color-primary-hover: #8FCFFF; /* hover/active for primary buttons + links */
  --color-on-primary: #060D1A;    /* label on primary buttons */
  --color-accent: #1F5BD6;        /* DECORATIVE ONLY */
  --color-border: #1C2E4A;        /* decorative hairlines and dividers only */
  --color-border-strong: #9AABC4; /* any border that identifies a control (3:1+) */
  --color-focus: #4AB0FF;

  --particle-1: #4AB0FF; --particle-2: #8FCFFF; --particle-3: #FFFFFF; --particle-4: #1F5BD6;

  --font-display: "Inter Variable", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter Variable", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Menlo, Consolas, monospace;

  --step--1: clamp(0.8333rem, 0.8275rem + 0.0250vw, 0.8500rem);
  --step-0:  clamp(1.0000rem, 0.9792rem + 0.0926vw, 1.0625rem);
  --step-1:  clamp(1.2000rem, 1.1573rem + 0.1898vw, 1.3281rem);
  --step-2:  clamp(1.4400rem, 1.3667rem + 0.3259vw, 1.6600rem);
  --step-3:  clamp(1.7280rem, 1.6125rem + 0.5139vw, 2.0750rem);
  --step-4:  clamp(2.0736rem, 1.9004rem + 0.7704vw, 2.5938rem);
  --step-5:  clamp(2.4883rem, 2.2367rem + 1.1176vw, 3.2422rem);
  --step-chapter: clamp(4.5rem, 2.5rem + 9vw, 11rem);
  --eyebrow-size: 0.75rem;

  --weight-body: 400; --weight-display: 500; --weight-button: 500;
  --leading-display: 1.04; --leading-heading: 1.2; --leading-body: 1.6;
  --tracking-display: -0.035em; --tracking-heading: -0.015em; --tracking-eyebrow: 0.16em;
  --measure: 62ch;

  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 1rem; --space-4: 1.5rem;
  --space-5: 2rem;    --space-6: 3rem;   --space-7: 4.5rem; --space-8: 6rem;
  --section-y: clamp(4rem, 3rem + 4.44vw, 7rem);
  --gutter: clamp(1.5rem, 1.333rem + 0.74vw, 2rem);
  --grid-gap: clamp(0.75rem, 0.5rem + 1.11vw, 1.5rem);

  --radius: 0.5rem;
  --radius-sm: 0.375rem;
  --radius-lg: 0.75rem;
  --radius-pill: 999px;

  --shadow: inset 0 0 0 1px #1C2E4A, 0 24px 48px -24px rgba(0, 0, 0, 0.6);
  --shadow-hover: inset 0 0 0 1px #2A3F5F, 0 32px 64px -28px rgba(0, 0, 0, 0.7);
  --glow-accent: 0 0 80px 10px rgba(74, 176, 255, 0.25);
  --gradient-band: radial-gradient(60% 50% at 50% 0%, rgba(31, 91, 214, 0.18), transparent 70%);

  --ease: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --duration: 200ms;
  --duration-fast: 150ms;
  --duration-slow: 350ms;
  --duration-reveal: 600ms;
  --marquee-duration: 52s;

  --container: 87.5rem;
  --container-narrow: 48rem;
  --header-h: 4rem;
  --cta-bar-h: 3.5rem;

  --focus-ring: 2px solid var(--color-focus);
  --placeholder-outline: 1px dashed var(--color-text-muted);
}

@media (prefers-reduced-motion: reduce) {
  :root { --duration: 0ms; --duration-fast: 0ms; --duration-slow: 0ms; --duration-reveal: 0ms; }
}

/* ---------- 2. Font: Inter Variable (OFL-1.1), self-hosted ----------
   From @fontsource-variable/inter 5.3.0: latin subset, wght axis, normal
   only (the site uses no italics). Licence: src/assets/fonts/OFL.txt.
   Preloaded in every page head. [build] URL is relative so Vite fingerprints
   the file into /_astro/ (immutable cache). */
@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/_astro/inter-latin-wght-normal.Dx4kXJAl.woff2") format("woff2-variations");
  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;
}

/* ---------- 3. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  background: var(--color-bg);
  color: var(--color-text);
  scroll-padding-top: calc(var(--header-h) + var(--space-3));
  scroll-padding-bottom: calc(var(--cta-bar-h) + var(--space-5)); /* WCAG 2.4.11 */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  min-height: 100svh;
  background: var(--color-bg);
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: var(--weight-body);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; }
a { color: inherit; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
p, h1, h2, h3 { overflow-wrap: break-word; }
[hidden] { display: none !important; }

/* ---------- 4. Base type ---------- */
h1, h2, h3 {
  color: var(--color-heading);
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  line-height: var(--leading-heading);
  letter-spacing: var(--tracking-heading);
  text-wrap: balance;
}
p { max-width: var(--measure); text-wrap: pretty; }

.display-1 {               /* h1, chapter h3, proof h2 */
  font-size: var(--step-5);
  line-height: var(--leading-display);
  letter-spacing: var(--tracking-display);
}
.display-2 {               /* bento, interlude, closing h2 */
  font-size: var(--step-4);
  line-height: var(--leading-display);
  letter-spacing: var(--tracking-display);
}
.title { font-size: var(--step-2); }
.lead { font-size: var(--step-1); color: var(--color-text-muted); line-height: 1.5; }
.muted { color: var(--color-text-muted); }
.small { font-size: var(--step--1); }

.eyebrow {
  font-size: var(--eyebrow-size);
  font-weight: var(--weight-display);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--color-primary);
}
.eyebrow--muted { color: var(--color-text-muted); }

.text-link {
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color var(--duration-fast) var(--ease-standard);
}
.text-link:hover { color: var(--color-primary-hover); }

/* Focus: one visible ring on every interactive element, every surface */
:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 3px;
}
:focus:not(:focus-visible) { outline: none; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

/* ---------- 5. Layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: calc(var(--container-narrow) + 2 * var(--gutter)); }
.stack--tight { --stack-space: var(--space-3); }
.stack > * + * { margin-top: var(--stack-space, var(--space-4)); }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--cluster-space, var(--space-3)); }
.grid {
  display: grid;
  gap: var(--grid-gap);
  grid-template-columns: repeat(auto-fit, minmax(min(var(--grid-min, 16rem), 100%), 1fr));
}
.band { padding-block: var(--section-y); }
.band--bg { background: var(--color-bg); }
.band--surface { background: var(--color-surface); }
.centre { text-align: center; }
.centre p { margin-inline: auto; }

/* ---------- 6. Components ---------- */

/* Skip link */
.skip-link {
  position: absolute;
  left: var(--space-3);
  top: var(--space-3);
  z-index: 100;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-pill);
  background: var(--color-primary);
  color: var(--color-on-primary);
  font-weight: var(--weight-button);
  text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

/* Buttons */
.btn {
  --btn-h: 2.75rem;                       /* 44px default */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: var(--btn-h);
  padding-inline: var(--space-4);         /* 24px */
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: var(--weight-button);
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform var(--duration) var(--ease),
    background-color var(--duration-fast) var(--ease-standard),
    color var(--duration-fast) var(--ease-standard),
    box-shadow var(--duration-slow) var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn--sm { --btn-h: 2.5rem; font-size: var(--step--1); padding-inline: var(--space-4); }  /* 40px header */
.btn--lg { --btn-h: 3.25rem; }                                                           /* 52px hero/closing */
.btn--primary { background: var(--color-primary); color: var(--color-on-primary); }
.btn--primary:hover { background: var(--color-primary-hover); box-shadow: var(--glow-accent); }
.btn--secondary { background: transparent; color: var(--color-heading); border-color: var(--color-border-strong); }
.btn--secondary:hover { background: var(--color-surface-3); }
.btn .icon { width: 1.25rem; height: 1.25rem; flex: none; }

.icon {
  width: 1.5rem; height: 1.5rem;
  fill: none; stroke: currentColor;
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}

/* [build] astro-icon inlines Lucide's own stroke-width="2" on each shape; this makes
   the shapes take the 1.5 stroke from .icon, as the prototype's hand-inlined SVGs did. */
.icon * { stroke-width: inherit; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 2.75rem; height: 2.75rem;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--color-heading);
  cursor: pointer;
  transition: background-color var(--duration-fast) var(--ease-standard);
}
.icon-btn:hover { background: var(--color-surface-3); }
.icon-btn .icon { width: 1.25rem; height: 1.25rem; }

/* Placeholders: dashed outline, muted bracket text, never animated */
[data-placeholder="true"].ph,
.ph {
  border: var(--placeholder-outline);
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
}
.ph-box {
  display: grid;
  place-items: center;
  min-height: 3.5rem;
  padding: var(--space-3);
  text-align: center;
  font-size: var(--step--1);
}
.ph-inline {
  display: inline-flex;
  align-items: center;
  min-height: 1.5rem; /* 24px target (WCAG 2.5.8) */
  padding: 0 var(--space-2);
  border: var(--placeholder-outline);
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
}
a.ph-inline { text-decoration: underline; text-underline-offset: 0.2em; }
a.ph-inline:hover { color: var(--color-primary-hover); }

/* Wordmark (placeholder: Pre-launch blocker 2) */
.wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--color-heading);
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 600;
  letter-spacing: var(--tracking-heading);
  text-decoration: none;
}
.wordmark__bracket { color: var(--color-text-muted); font-weight: var(--weight-body); }

/* Card */
.card {
  container-type: inline-size;
  background: var(--color-surface-2);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: var(--space-4);
}

/* Art pause control (WCAG 2.2.2) */
.art-pause {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 2.5rem;
  padding-inline: var(--space-3);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-pill);
  background: var(--color-bg);
  color: var(--color-heading);
  font-size: var(--step--1);
  font-weight: var(--weight-button);
  cursor: pointer;
  transition: background-color var(--duration-fast) var(--ease-standard);
}
.art-pause:hover { background: var(--color-surface-3); }
.art-pause .icon { width: 1rem; height: 1rem; }
/* [build] both glyphs are rendered at build time; the pressed state picks one
   (the prototype swapped the SVG markup in JS). */
.art-pause .icon-play,
.art-pause[aria-pressed="true"] .icon-pause { display: none; }
.art-pause[aria-pressed="true"] .icon-play { display: block; }

/* Particle art: poster underneath, canvas fades in over it once started */
.art { position: relative; overflow: hidden; }
.art__poster, .art__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.art__poster { object-fit: cover; }
.art__canvas { opacity: 0; transition: opacity var(--duration-reveal) var(--ease); }
.art.is-live .art__canvas { opacity: 1; }
.art.is-live .art__poster { opacity: 0; transition: opacity var(--duration-reveal) var(--ease); }

/* ---------- 7. Sections ---------- */

/* 7.1 Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  height: 100%;
}
.site-nav { display: none; }
.site-nav__list { display: flex; gap: var(--space-2); }
.site-nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding-inline: var(--space-3);
  border-radius: var(--radius-pill);
  color: var(--color-text);
  font-size: var(--step--1);
  font-weight: var(--weight-button);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-standard), background-color var(--duration-fast) var(--ease-standard);
}
.site-nav__link:hover { color: var(--color-heading); background: var(--color-surface-3); }
.site-header__actions { display: flex; align-items: center; gap: var(--space-2); }
.site-header__cta { display: none; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (min-width: 48rem) {
  .site-nav { display: block; }
  .site-header__cta { display: inline-flex; }
  .menu-toggle { display: none; }
}

/* Mobile sheet */
.menu-sheet {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 60;
  overflow-y: auto;
  background: var(--color-bg);
  padding-block: var(--space-6);
}
.menu-sheet__list { display: grid; gap: var(--space-2); }
.menu-sheet__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3.5rem;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-heading);
  font-family: var(--font-display);
  font-size: var(--step-4);
  font-weight: var(--weight-display);
  letter-spacing: var(--tracking-display);
  text-decoration: none;
}
.menu-sheet__link .icon { color: var(--color-primary); }
.menu-sheet__foot { margin-top: var(--space-6); }
html.menu-open { overflow: hidden; }
@media (min-width: 48rem) { .menu-sheet { display: none !important; } }

/* 7.2 Hero */
.hero {
  position: relative;
  isolation: isolate;
  background: var(--color-bg);
}
.hero__inner {
  position: relative;
  display: grid;
  align-content: start;
  min-height: calc(100svh - var(--header-h));
  padding-block: var(--space-7) 44svh; /* leave the lower band for the art on mobile */
}
.hero__copy { position: relative; z-index: 2; }
.hero__copy > * + * { margin-top: var(--space-4); }
.hero__title-muted { display: block; color: var(--color-text-muted); }
.hero__lead { max-width: 46ch; }
.hero__actions { --cluster-space: var(--space-3); margin-top: var(--space-5) !important; }
.hero__address { color: var(--color-text-muted); font-size: var(--step--1); }

.hero__art {
  position: absolute;
  inset: auto 0 0 0;
  height: 40svh; /* 40% of the hero's viewport height; fixed so long copy can't run into it */
  z-index: 1;
  /* soft edges so the art melts into the navy instead of ending on a hard line */
  -webkit-mask-image: linear-gradient(to top, transparent, black 18%);
  mask-image: linear-gradient(to top, transparent, black 18%);
}
.hero__art::before {  /* scrim keeps copy readable where the art meets it */
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 35%;
  z-index: 2;
  background: linear-gradient(to bottom, var(--color-bg), transparent);
  pointer-events: none;
}
.hero__pause { left: var(--gutter); bottom: var(--space-4); }

@media (min-width: 64rem) {
  .hero__inner {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    align-content: center;
    gap: var(--space-6);
    padding-block: var(--space-8);
  }
  .hero__copy { grid-column: 2; }
  .hero__art {
    inset: 0 46% 0 0;
    height: auto;
    -webkit-mask-image: linear-gradient(to right, black 76%, transparent), linear-gradient(to top, transparent, black 14%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to right, black 76%, transparent), linear-gradient(to top, transparent, black 14%);
    mask-composite: intersect;
  }
  .hero__art::before { display: none; }
  .hero__pause { left: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))); bottom: var(--space-5); }
}

/* 7.3 Stats (placeholder: blocker 3) */
.stats { background: var(--color-bg); padding-bottom: var(--section-y); }
.stats__list { display: grid; border-top: 1px solid var(--color-border); }
.stats__item {
  display: grid;
  gap: var(--space-3);
  justify-items: start;
  padding-block: var(--space-5);
  border-bottom: 1px solid var(--color-border);
}
.stats__num {
  font-family: var(--font-display);
  font-size: var(--step-5);
  font-weight: var(--weight-display);
  line-height: var(--leading-display);
  letter-spacing: var(--tracking-display);
  padding: var(--space-1) var(--space-3);
}
.stats__label { font-size: var(--step--1); padding: var(--space-1) var(--space-2); }
@media (min-width: 48rem) {
  .stats__list { grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--color-border); }
  .stats__item { border-bottom: 0; padding-inline: var(--space-5); }
  .stats__item + .stats__item { border-left: 1px solid var(--color-border); }
  .stats__item:first-child { padding-left: 0; }
}

/* 7.4 Trust strip (placeholder: blocker 4) */
.trust { background: var(--color-surface); padding-block: var(--space-7); }
.trust__caption { display: table; margin-inline: auto; padding: var(--space-1) var(--space-3); }
.trust__logos {
  display: grid;
  gap: var(--grid-gap);
  grid-template-columns: repeat(2, 1fr);
  margin-top: var(--space-5);
}
@media (min-width: 40rem) { .trust__logos { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 64rem) { .trust__logos { grid-template-columns: repeat(6, 1fr); } }

/* 7.5 Bento */
.bento__head { max-width: 40rem; }
.bento__grid {
  display: grid;
  gap: var(--grid-gap);
  margin-top: var(--space-6);
}
@media (min-width: 40rem) { .bento__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .bento__grid { grid-template-columns: repeat(4, 1fr); } }
.bento-card { display: flex; flex-direction: column; gap: var(--space-4); }
.bento-card__art {
  width: 100%;
  aspect-ratio: 3 / 2;
  border-radius: var(--radius-sm);
  background: var(--color-surface-3);
}
.bento-card p { color: var(--color-text-muted); }
@container (min-width: 22rem) {
  .bento-card__art { aspect-ratio: 2 / 1; object-fit: cover; }
}

/* 7.6 Chapters */
.chapter__head {
  background: var(--color-surface);
  background-image: var(--gradient-band);
  padding-block: var(--space-7);
}
.chapter__head-inner { display: grid; gap: var(--space-5); align-items: center; }
.chapter-word {
  position: relative;
  height: calc(var(--step-chapter) * 1.05);
  min-width: 0;
}
.chapter-word__poster {  /* static dot-matrix word: no-JS and reduced-motion poster */
  position: absolute;
  inset: 0;
  font-family: var(--font-display);
  font-size: var(--step-chapter);
  font-weight: var(--weight-display);
  line-height: 1;
  letter-spacing: var(--tracking-display);
  white-space: nowrap;
  color: transparent;
  background-image:
    radial-gradient(circle, var(--particle-2) 0.09rem, transparent 0.11rem),
    radial-gradient(circle, var(--particle-1) 0.1rem, transparent 0.12rem);
  background-size: 0.375rem 0.375rem, 0.375rem 0.375rem;
  background-position: 0 0, 0.1875rem 0.1875rem;
  -webkit-background-clip: text;
  background-clip: text;
  user-select: none;
}
.chapter-word__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.chapter-word.is-live .chapter-word__poster { opacity: 0; }
.chapter__intro { font-size: var(--step-1); color: var(--color-text); line-height: 1.5; max-width: 34ch; }
@media (min-width: 64rem) {
  .chapter__head { min-height: 22.5rem; display: grid; align-items: center; } /* ~360px */
  .chapter__head-inner { grid-template-columns: 1.25fr 1fr; gap: var(--space-6); }
}

.chapter__body { background: var(--color-bg); }
.chapter__body-inner { display: grid; gap: var(--space-6); align-items: center; }
.chapter__copy > * + * { margin-top: var(--space-4); }
.chapter__copy .btn { margin-top: var(--space-5); }
.chapter__copy p:not(.eyebrow) { color: var(--color-text-muted); }
.chapter__art {
  width: 100%;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow);
}
@media (min-width: 48rem) {
  .chapter__body-inner { grid-template-columns: 1fr 1fr; gap: var(--space-7); }
}

/* 7.7 Interlude */
.interlude { background: var(--color-surface); }
.interlude p { margin-top: var(--space-4); color: var(--color-text-muted); font-size: var(--step-1); line-height: 1.5; }

/* 7.8 Proof (placeholder: blocker 5) */
.proof { background: var(--color-bg); }
.proof__title { display: table; margin-inline: auto; padding: var(--space-1) var(--space-4); }
.proof__grid {
  display: grid;
  gap: var(--grid-gap);
  margin-top: var(--space-6);
}
@media (min-width: 48rem) { .proof__grid { grid-template-columns: 1fr 1fr; } }
.proof-card { display: flex; flex-direction: column; gap: var(--space-5); padding: var(--space-5); }
.proof-card__quote {
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: var(--weight-display);
  line-height: var(--leading-heading);
  letter-spacing: var(--tracking-heading);
  padding: var(--space-4);
}
.proof-card__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; }
.proof-card__who { display: grid; gap: var(--space-2); justify-items: start; font-style: normal; }
.proof-card__who span { padding: 0 var(--space-2); font-size: var(--step--1); }
.proof-card__logo { width: 8rem; min-height: 3rem; }

/* 7.9 Closing CTA */
.closing {
  background: var(--color-surface);
  background-image: var(--gradient-band);
}
.closing__actions { margin-top: var(--space-5); display: grid; justify-items: center; gap: var(--space-3); }
.closing__address { font-size: var(--step--1); color: var(--color-text-muted); }

/* 7.10 Footer */
.site-footer {
  position: relative;
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-7);
  overflow: hidden;
}
.site-footer__grid { display: grid; gap: var(--space-4); position: relative; z-index: 2; }
.site-footer__nav ul { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-2); }
.site-footer__nav a, .site-footer__legal a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding-inline: var(--space-2);
  color: var(--color-text);
  font-size: var(--step--1);
  text-decoration: underline;
  text-decoration-color: var(--color-border-strong);
  text-underline-offset: 0.25em;
  transition: color var(--duration-fast) var(--ease-standard);
}
.site-footer__nav a:hover, .site-footer__legal a:hover { color: var(--color-primary-hover); }
.site-footer__nav a { margin-left: calc(-1 * var(--space-2)); }
.site-footer__legal { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); color: var(--color-text-muted); font-size: var(--step--1); }
.site-footer__email { font-size: var(--step--1); }
.site-footer__art {
  height: clamp(9rem, 6rem + 14vw, 18rem);
  margin-top: var(--space-6);
}
.site-footer__art .art__poster { object-fit: cover; object-position: center top; }
.site-footer__pause { right: var(--gutter); bottom: var(--space-4); }
@media (min-width: 48rem) {
  .site-footer__grid { grid-template-columns: 1fr auto; align-items: start; }
  .site-footer__legal { grid-column: 1 / -1; }
}

/* 7.11 Floating CTA bar */
.cta-bar {
  position: fixed;
  left: 50%;
  bottom: var(--space-3);
  z-index: 40;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  height: var(--cta-bar-h);
  padding: var(--space-2) var(--space-2) var(--space-2) var(--space-4);
  border-radius: var(--radius-pill);
  background: var(--color-surface-2);
  box-shadow: var(--shadow);
  transform: translate(-50%, calc(100% + var(--space-4)));
  visibility: hidden;
  transition: transform var(--duration-slow) var(--ease), visibility 0s linear var(--duration-slow);
  max-width: calc(100vw - 2 * var(--space-3));
}
.cta-bar.is-shown {
  transform: translate(-50%, 0);
  visibility: visible;
  transition: transform var(--duration-slow) var(--ease), visibility 0s;
}
.cta-bar__text { font-size: var(--step--1); color: var(--color-text); white-space: nowrap; }
.cta-bar .icon-btn { width: 2.5rem; height: 2.5rem; border-color: transparent; }
.cta-bar .icon-btn:hover { background: var(--color-surface-3); }
.cta-bar .icon-btn:focus-visible { border-color: var(--color-border-strong); }
@media (max-width: 23.99rem) { .cta-bar__text { display: none; } }

/* 7.12 Inner pages: title band, prose, 404 panel */
.page-title { background: var(--color-bg); padding-block: var(--space-7) var(--space-5); border-bottom: 1px solid var(--color-border); }
.page-title > .container > * + * { margin-top: var(--space-3); }
.prose { max-width: calc(var(--measure) + 2 * var(--gutter)); }
.prose > * + * { margin-top: var(--space-4); }
.prose h2 { font-size: var(--step-2); margin-top: var(--space-6); }
.prose__ph { min-height: 18rem; font-size: var(--step-0); }

.not-found {
  display: grid;
  place-items: center;
  min-height: calc(100svh - var(--header-h));
  padding-block: var(--space-7);
  background: var(--color-bg);
  background-image: var(--gradient-band);
  text-align: center;
}
.not-found__inner { display: grid; justify-items: center; gap: var(--space-4); }
.not-found__motif { width: 9rem; height: 9rem; }
.not-found p { color: var(--color-text-muted); margin-inline: auto; }
.not-found .btn { margin-top: var(--space-3); }

/* ---------- 8. Motion (only when the visitor allows it) ---------- */
html { scroll-behavior: auto; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .js .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity var(--duration-reveal) var(--ease), transform var(--duration-reveal) var(--ease);
  }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .art__canvas, .chapter-word__canvas { display: none; }
  .art-pause { display: none !important; }
}
