/* ═══ Pitch themes ═══════════════════════════════════════════════════════
   One build, three looks. html[data-theme] is set before first paint by the
   inline script in base.njk (from ?theme=, else localStorage). Theme A is the
   default Folio in site.css and needs nothing here.

   B · MARQUEE  — the stage in blue light: near-black navy, cream type, one
                  electric blue; centered hero, the portrait as a wide band.
   The site is B. site.css is the base it paints over; C is gone.            */

/* ─── B · Marquee — the stage in blue light ─── */
html[data-theme="b"] {
  --c-bg: #0f1633;
  --c-surface: #172046;
  --c-ink: #f4f6ff;
  --c-muted: #9aa8d2;
  --c-line: #2a3666;
  --c-accent: #ff8a5b;
  --c-accent-ink: #1c0b04;
  --c-accent-hover: #ffa483;
  --c-blue: #6fb3ff;
  --c-btn: #223060;
  --c-hero-top: #182358;
  --c-glow: rgba(255,138,91,.10);
}
html[data-theme="b"] body::after { mix-blend-mode: screen; opacity: .05; }
html[data-theme="b"] ::selection { background: var(--c-accent); color: var(--c-accent-ink); }
html[data-theme="b"] a:hover { color: var(--c-accent); }
html[data-theme="b"] .site-header { border-bottom-color: var(--c-line); }
html[data-theme="b"] .site-nav a:hover, html[data-theme="b"] .site-nav a[aria-current="page"], html[data-theme="b"] .foot-nav a[aria-current="page"] { color: var(--c-ink); }
/* Hero: the stage is the same navy; type is cream; the grid and the glow burn blue. */
html[data-theme="b"] .hero { color: var(--c-ink); border-bottom-color: var(--c-line); }
html[data-theme="b"] .hero h1 { color: var(--c-ink); }
html[data-theme="b"] .hero .lede { color: var(--c-muted); }
html[data-theme="b"] .btn, html[data-theme="b"] .hero .btn { background: var(--c-btn); border-color: var(--c-btn); color: var(--c-ink); }
html[data-theme="b"] .btn:hover, html[data-theme="b"] .hero .btn:hover { background: var(--c-ink); border-color: var(--c-ink); color: var(--c-bg); }
html[data-theme="b"] .btn-primary, html[data-theme="b"] .hero .btn-primary { background: var(--c-accent); border-color: var(--c-accent); color: var(--c-accent-ink); }
html[data-theme="b"] .btn-primary:hover, html[data-theme="b"] .hero .btn-primary:hover { background: var(--c-accent-hover); border-color: var(--c-accent-hover); color: var(--c-accent-ink); }
html[data-theme="b"] .press-kit .btn { background: var(--c-surface); border-color: var(--c-surface); color: var(--c-muted); }
html[data-theme="b"] .press-kit .btn:hover { background: var(--c-btn); border-color: var(--c-btn); color: var(--c-ink); }
html[data-theme="b"] .hero .socials.compact a { color: var(--c-muted); }
html[data-theme="b"] .hero .socials.compact a:hover { color: var(--c-accent); }
/* Stage light instead of a grid. The grid layers are gone; the plane carries
   three soft beams from the flies that sway on a slow cycle (::before), the
   wandering haze stays blue (.grid-glow), and the cursor becomes a follow-spot:
   a blurred pool of light at the pointer (::after, fed by the same custom
   properties site.js already sets). Static under reduced motion. */
html[data-theme="b"] .grid-layer { display: none; }
html[data-theme="b"] .grid-plane { overflow: hidden; }
html[data-theme="b"] .grid-plane::before {
  content: ""; position: absolute; inset: -30% -10%; pointer-events: none;
  background:
    linear-gradient(104deg, transparent 30%, rgba(77,143,220,.09) 38%, rgba(77,143,220,.02) 41%, transparent 46%),
    linear-gradient(84deg,  transparent 52%, rgba(120,170,230,.07) 58%, rgba(120,170,230,.02) 60%, transparent 66%),
    linear-gradient(96deg,  transparent 70%, rgba(77,143,220,.06) 76%, rgba(77,143,220,.015) 78%, transparent 84%);
  filter: blur(44px);
  transform-origin: 50% 0;
  animation: b-beams 34s ease-in-out infinite alternate;
}
html[data-theme="b"] .grid-glow { background: radial-gradient(40% 48% at 70% 20%, var(--c-glow), transparent 70%); }
html[data-theme="b"] .hero { background: radial-gradient(120% 60% at 50% 0%, var(--c-hero-top) 0%, var(--c-bg) 60%); }
@keyframes b-beams {
  from { transform: rotate(-2.5deg) translateX(-1.5%); }
  to   { transform: rotate(2.5deg) translateX(2%); }
}
@media (prefers-reduced-motion: reduce) { html[data-theme="b"] .grid-plane::before { animation: none; }}
html[data-theme="b"] .jump .label { color: var(--c-muted); }
html[data-theme="b"] .jump a { color: var(--c-ink); border-color: var(--c-line); }
html[data-theme="b"] .jump a span { color: var(--c-muted); }
html[data-theme="b"] .jump a:hover { color: var(--c-accent); border-color: var(--c-accent); }
html[data-theme="b"] .band-credit { color: var(--c-muted); }
/* Hero layout: centered stack, the portrait as a wide band under the name. */
html[data-theme="b"] .hero-grid { grid-template-columns: 1fr; text-align: center; gap: calc(var(--space) * 1.2); }
html[data-theme="b"] .hero-grid h1 { font-size: clamp(3.4rem, 13vw, 13rem); }
html[data-theme="b"] .hero .hero-meta { justify-content: center; flex-direction: column; align-items: center; gap: calc(var(--space) * .8); }
html[data-theme="b"] .hero .lede { max-width: 60ch; }
html[data-theme="b"] .hero .cta-row, html[data-theme="b"] .press-kit { justify-content: center; }
html[data-theme="b"] .role-rotator { aspect-ratio: 21 / 9; width: 100%; box-shadow: 0 0 0 1px var(--c-line), 0 40px 80px -40px rgba(0,0,0,.8); border-color: var(--c-line); background: var(--c-surface); }
html[data-theme="b"] .role-frame { align-items: center; text-align: center; }
html[data-theme="b"] .rf-name { font-size: clamp(2rem, 4.5vw, 4.2rem); }
html[data-theme="b"] .role-frame .rf-name { color: var(--c-ink); }
html[data-theme="b"] .rf-year, html[data-theme="b"] .role-frame figcaption { color: var(--c-blue); }
html[data-theme="b"] .role-frame::before { background: linear-gradient(to top, var(--c-bg) 0%, color-mix(in srgb, var(--c-bg) 55%, transparent) 34%, transparent 62%); }
/* Photographs take the light: cooled, then a blue wash over the shadows. */
html[data-theme="b"] .role-rotator img.portrait, html[data-theme="b"] .role-frame img, html[data-theme="b"] .band-photo, html[data-theme="b"] .band-strip img, html[data-theme="b"] .photo img, html[data-theme="b"] .plate img {
  filter: grayscale(.4) contrast(1.05) brightness(.95);
}
html[data-theme="b"] .role-rotator::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(160deg, var(--c-glow), transparent 60%); mix-blend-mode: screen; }
html[data-theme="b"] .band-photo { opacity: .55; }
html[data-theme="b"] .photo img, html[data-theme="b"] .plate img { border-color: var(--c-line); }
html[data-theme="b"] .plate::after { border-color: var(--c-accent); }
html[data-theme="b"] .index-list { border-top-color: var(--c-ink); }
html[data-theme="b"] .index-row { border-bottom-color: var(--c-line); }
html[data-theme="b"] .index-row:hover { color: var(--c-accent); }
html[data-theme="b"] .index-row .year { color: var(--c-blue); }
html[data-theme="b"] .section.alt { background: var(--c-surface); border-color: var(--c-line); }
html[data-theme="b"] .section.alt.screen { background-image: radial-gradient(circle, rgba(233,237,246,.05) .9px, transparent 1.3px); }
html[data-theme="b"] .stats dd, html[data-theme="b"] .d-count { color: var(--c-ink); }
html[data-theme="b"] .timeline::after { background: var(--c-blue); }
html[data-theme="b"] .timeline li.is-in::before { background: var(--c-blue); border-color: var(--c-blue); }
html[data-theme="b"] .facts dt, html[data-theme="b"] .quiet-h2 .num, html[data-theme="b"] .policy li::before, html[data-theme="b"] .ledger-list li span { color: var(--c-blue); }
html[data-theme="b"] .contact-note, html[data-theme="b"] .notice { border-color: var(--c-accent); background: var(--c-surface); }
html[data-theme="b"] .outline-frame img { filter: invert(1) sepia(1) hue-rotate(180deg) saturate(1.4) brightness(1); opacity: .55; }
html[data-theme="b"] .outline-frame figcaption { background: var(--c-surface); border-color: var(--c-accent); color: var(--c-ink); }
html[data-theme="b"] .chip input:checked + span { background: var(--c-accent); color: var(--c-accent-ink); border-color: var(--c-accent); }
html[data-theme="b"] .chip span { border-color: var(--c-line); }
html[data-theme="b"] .request-form input:not([type="checkbox"]):not([type="radio"]), html[data-theme="b"] .request-form textarea { border-color: var(--c-line); }
html[data-theme="b"] .request-form input:focus, html[data-theme="b"] .request-form textarea:focus { border-color: var(--c-accent); box-shadow: 0 1px 0 var(--c-accent); }
html[data-theme="b"] .site-footer { border-top-color: var(--c-line); }
html[data-theme="b"] .foot-mark { border-bottom-color: var(--c-line); color: var(--c-ink); }
html[data-theme="b"] .theme-switch { border-color: var(--c-line); }
html[data-theme="b"] .lang-switch a { border-color: var(--c-line); }
html[data-theme="b"] .menu-toggle summary { border-color: var(--c-line); }
html[data-theme="b"] .email-stamp a { border-color: var(--c-accent); }
@media (max-width: 899px) {
  /* A 21:9 band on a phone shows a forehead. Back to a portrait frame. */
  html[data-theme="b"] .role-rotator { aspect-ratio: 4 / 5; }
  html[data-theme="b"] .hero-grid h1 { font-size: clamp(3rem, 15vw, 6rem); }}

/* Type: no poster faces. Headings are quiet sans, section heads are spaced small caps. */

/* Buttons: pills. */

/* Header: glass over the picture. */

/* Pages without a full-bleed band start below the fixed header. */

/* Home hero: the photograph is the page. Name sits as a title card, bottom-left. */

/* Page bands: full-bleed picture, small title card. */

/* Credits: a card grid, not a poster index. */

/* Sections and surfaces. */

/* Forms: soft fields. */

/* Footer per theme: B keeps the poster mark in tan; C sets it quiet. */
html[data-theme="b"] .foot-mark { border-bottom-color: var(--c-line); color: var(--c-accent); }

/* ─── C: card art — his own photograph where one exists, a poster monogram otherwise ─── */

/* ─── C: low-res rotator frames sit as a centred plate over their own blurred copy ─── */

/* ─── C: the blurb is an opaque panel that takes the whole card on hover;
   the card's own text fades so nothing bleeds through. ─── */

@media (max-width: 640px) {
  html[data-theme="b"] .socials.compact { justify-content: center; }

}

html[data-theme="b"] .band-strip { opacity: .4; }

/* ─── B: low-res frames get C's treatment — a centred plate over their own
   blurred copy instead of a stretch across the wide band. ─── */
html[data-theme="b"] .role-frame.lowres img.bg { display: block; position: absolute; inset: -6%; width: 112%; height: 112%; object-fit: cover; filter: blur(30px) brightness(.4) saturate(.5); z-index: 0; }
html[data-theme="b"] .role-frame.lowres img.main { position: absolute; inset: 6% auto 6% 50%; width: auto; height: 88%; max-width: 92%; transform: translateX(-50%); object-fit: contain; z-index: 1; box-shadow: 0 30px 60px -30px rgba(0,0,0,.9); }
html[data-theme="b"] .role-frame.lowres::before { z-index: 1; }
html[data-theme="b"] .role-frame .rf-year, html[data-theme="b"] .role-frame .rf-name, html[data-theme="b"] .role-frame figcaption { position: relative; z-index: 2; }
@media (max-width: 899px) { html[data-theme="b"] .role-frame.lowres img.main { height: auto; width: 90%; max-height: 88%; top: 50%; bottom: auto; transform: translate(-50%, -50%); }}

/* ═══ B backdrop candidates — html[data-bg] picks one; beams is the default ═══
   All compositor-only (transform or background-position on a pseudo-element),
   all static under reduced motion. Remove the losers after the decision. */

/* floor: a stage floor receding to a horizon, lines sliding toward the viewer. */
html[data-theme="b"][data-bg="floor"] .grid-plane::before {
  inset: 35% -40% -10% -40%; filter: none; background: none;
  transform: perspective(700px) rotateX(62deg); transform-origin: 50% 0;
  background-image:
    linear-gradient(180deg, rgba(111,179,255,.38) 1px, transparent 1px),
    linear-gradient(90deg, rgba(111,179,255,.18) 1px, transparent 1px);
  background-size: 100% 64px, 120px 100%;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 35%, #000 80%, transparent);
          mask-image: linear-gradient(to bottom, transparent, #000 35%, #000 80%, transparent);
  animation: b-floor 6s linear infinite;
}
@keyframes b-floor { from { background-position: 0 0, 0 0; } to { background-position: 0 64px, 0 0; } }

/* dots: a halftone field drifting down-right, the grid's softer cousin. */
html[data-theme="b"][data-bg="dots"] .grid-plane::before {
  inset: -80px; filter: none; transform: none;
  background: radial-gradient(circle, rgba(120,170,230,.5) 1.4px, transparent 2.1px) 0 0 / 30px 30px;
  animation: b-dots 16s linear infinite;
}
@keyframes b-dots { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(34px, 68px, 0); } }

/* rings: slow concentric waves from the upper right — sound, not space. */
html[data-theme="b"][data-bg="rings"] .grid-plane::before {
  inset: -60% -40% -60% -20%; filter: none; transform: none;
  background: repeating-radial-gradient(circle at 78% 30%, rgba(120,170,230,.26) 0 1px, transparent 1px 52px);
  -webkit-mask-image: radial-gradient(circle at 78% 30%, #000 0, rgba(0,0,0,.6) 35%, transparent 75%);
          mask-image: radial-gradient(circle at 78% 30%, #000 0, rgba(0,0,0,.6) 35%, transparent 75%);
  animation: b-rings 9s linear infinite;
}
@keyframes b-rings { from { transform: scale(1); opacity: .9; } to { transform: scale(1.12); opacity: .9; } }
html[data-theme="b"][data-bg="rings"] .grid-glow { background: radial-gradient(40% 48% at 78% 30%, rgba(77,143,220,.14), transparent 70%); }

@media (prefers-reduced-motion: reduce) { html[data-theme="b"] .grid-plane::before { animation: none !important; }}

/* hatch: fine 45-degree lines drifting along their own grain — the grid's
   diagonal cousin, reads as engraving rather than graph paper. */
html[data-theme="b"][data-bg="hatch"] .grid-plane::before {
  inset: -120px; filter: none; transform: none;
  background: repeating-linear-gradient(135deg, rgba(120,170,230,.18) 0 1px, transparent 1px 14px);
  animation: b-hatch 12s linear infinite;
}
@keyframes b-hatch { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-40px, 40px, 0); } }

/* scan: film scanlines with a slow roll and a faint brighter bar passing —
   broadcast, not stage. */
html[data-theme="b"][data-bg="scan"] .grid-plane::before {
  inset: -10% 0; filter: none; transform: none;
  background:
    linear-gradient(to bottom, transparent 0, rgba(120,170,230,.10) 50%, transparent 100%) 0 0 / 100% 22%,
    repeating-linear-gradient(to bottom, rgba(233,237,246,.07) 0 1px, transparent 1px 4px);
  background-repeat: no-repeat, repeat;
  animation: b-scan 7s linear infinite;
}
@keyframes b-scan { from { background-position: 0 -30%, 0 0; } to { background-position: 0 130%, 0 4px; } }

/* ─── B hero as a T-chart: the name is the bar across the top, then two
   columns under it split by a rule — copy left, portrait right. Neither A's
   name-beside-portrait nor C's full-bleed photograph. ─── */
html[data-theme="b"] .hero-grid { display: grid; grid-template-columns: 1fr 1fr; grid-template-areas: "name name" "copy rotator"; gap: 0; text-align: left; align-items: stretch; }
html[data-theme="b"] .hero-copy { display: contents; }
html[data-theme="b"] .hero-grid h1 { grid-area: name; font-size: clamp(3.4rem, 13.5vw, 13.5rem); line-height: .86; padding-bottom: calc(var(--space) * .4); margin-bottom: 0; }
/* Copy column: top edge sits on the image's top edge, bottom row (socials)
   sits on the image's bottom edge, so the two columns frame as one block. */
html[data-theme="b"] .hero .hero-meta { grid-area: copy; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: calc(var(--space) * .9); margin: 0; padding: calc(var(--space) * 1.4) calc(var(--space) * 1.6) 0 0; }
html[data-theme="b"] .hero .hero-meta > * { margin: 0; }
html[data-theme="b"] .hero .lede { margin-top: -.35em; }
html[data-theme="b"] .hero .lede { max-width: 40ch; font-size: clamp(1.05rem, 1.4vw, 1.25rem); }
html[data-theme="b"] .hero .cta-row, html[data-theme="b"] .press-kit { justify-content: flex-start; margin-top: 0; }
html[data-theme="b"] .hero .socials.compact { margin-top: 0; }
html[data-theme="b"] .role-rotator { grid-area: rotator; aspect-ratio: 4 / 3; height: auto; min-height: 0; width: auto; margin-left: calc(var(--space) * 1.6); margin-top: calc(var(--space) * 1.4); border: 1px solid var(--c-line); box-shadow: none; align-self: start; }
html[data-theme="b"] .role-frame { align-items: flex-start; text-align: left; }
html[data-theme="b"] .rf-name { font-size: clamp(1.8rem, 3.2vw, 3rem); }
html[data-theme="b"] .role-frame.lowres img.main { inset: 6% auto 6% 50%; height: 88%; width: auto; max-width: 92%; transform: translateX(-50%); }
@media (max-width: 899px) {
  html[data-theme="b"] .hero-grid { grid-template-columns: 1fr; grid-template-areas: "name" "copy" "rotator"; }
  html[data-theme="b"] .hero .hero-meta { padding: var(--space) 0; }
  html[data-theme="b"] .role-rotator { margin: var(--space) 0 0; min-height: 0; aspect-ratio: 4 / 5; height: auto; }
  html[data-theme="b"] .hero-grid h1 { font-size: clamp(3rem, 15vw, 6rem); }}

/* The T carries down the page: two-up sections and the About spread keep the
   centre rule; index rows get a left rule gutter for the year. */
html[data-theme="b"] .columns > * + * { border-left-color: var(--c-line); }
html[data-theme="b"] .spread-3 > * + * { border-left-color: var(--c-line); }

/* ─── B: the masthead becomes a rail on the left — brand at the top, the menu
   sitting mid-height, language at the foot — and the top bar goes away. Pages
   sit to the right of it. Under 1100px the ordinary top bar returns. ─── */
@media (min-width: 1100px) {
  html[data-theme="b"] .site-header { position: fixed; top: 0; left: 0; bottom: 0; width: 236px; border-bottom: 0; border-right: 0; background: transparent; }
  html[data-theme="b"] .site-header .container { width: auto; margin: 0; padding: var(--space) calc(var(--space) * .9); height: 100%; }
  html[data-theme="b"] .brand { white-space: nowrap; font-size: .82rem; letter-spacing: .08em; }
  html[data-theme="b"] .site-header .row { flex-direction: column; align-items: flex-start; justify-content: space-between; height: 100%; min-height: 0; gap: var(--space); }
  html[data-theme="b"] .site-nav { flex: 1; display: flex; align-items: center; width: 100%; }
  html[data-theme="b"] .site-nav ul { flex-direction: column; align-items: stretch; gap: .1rem; width: 100%; border-top: 0; }
  html[data-theme="b"] .site-nav li { border-bottom: 0; }
  html[data-theme="b"] .site-nav a { display: block; padding: .55rem 0; font-size: 1rem; letter-spacing: .1em; color: var(--c-muted); transition: color .2s, padding-left .25s; }
  html[data-theme="b"] .site-nav a:hover, html[data-theme="b"] .site-nav a[aria-current="page"] { padding-left: .5rem; }
  html[data-theme="b"] .site-nav li.lang-switch { border: 0; margin-top: var(--space); }
  html[data-theme="b"] .site-nav li.lang-switch a { display: inline-block; padding: .3rem .55rem; }
  html[data-theme="b"] .site-nav li.lang-switch a:hover { padding-left: .55rem; }
  html[data-theme="b"] main, html[data-theme="b"] .site-footer { margin-left: 236px; }
  html[data-theme="b"] .hero, html[data-theme="b"] .section, html[data-theme="b"] .site-footer { --container: 1180px; }
  html[data-theme="b"] .hero-grid h1 { font-size: clamp(3.4rem, 11.5vw, 11rem); }
  html[data-theme="b"] .theme-switch { left: auto; right: 1rem; }
  html[data-theme="b"] .outline-rotator { right: 2vw; max-width: 30vw; }}

/* Rail blends: the hero and its backdrop run full-bleed under the fixed rail,
   the content offset moves to the container instead of main. */
@media (min-width: 1100px) {
  html[data-theme="b"] main, html[data-theme="b"] .site-footer { margin-left: 0; }
  /* Content starts a beat right of the rail and runs wide, so the page reads
     as rail + one broad column rather than a narrow island off-centre. */
  html[data-theme="b"] .hero > .container, html[data-theme="b"] .section > .container, html[data-theme="b"] .site-footer > .container { margin-left: calc(236px + var(--space) * 1.2); margin-right: calc(var(--space) * 2); width: auto; max-width: 1400px; }
  html[data-theme="b"] .container.narrow { max-width: 760px; }
  html[data-theme="b"] .passions .outline-rotator { right: 2vw; }}

/* B: no backdrop pattern by default — the haze alone. */
html[data-theme="b"][data-bg="none"] .grid-plane::before { display: none; }
/* B: the hero says the name; the rail doesn't repeat it on Home. */
@media (min-width: 1100px) { html[data-theme="b"] body.home .brand { visibility: hidden; }}
html[data-theme="b"] .chip span { background: var(--c-surface); }
html[data-theme="b"] .theme-switch button, html[data-theme="b"] .theme-switch .ts-back { color: var(--c-ink); }

/* ═══ B palette candidates — html[data-pal] picks one. Green, three ways. ═══ */
/* emerald: near-black green, mint neon for actions, pale mint details — the club, not the forest. */
html[data-theme="b"][data-pal="green"] {
  --c-bg: #06150f; --c-surface: #0d2119; --c-ink: #f1fff8; --c-muted: #86a897; --c-line: #1b3529;
  --c-accent: #2ee59d; --c-accent-ink: #03150c; --c-accent-hover: #63f0b7; --c-blue: #a6f3d3;
  --c-btn: #163427; --c-hero-top: #0f2b1e; --c-glow: rgba(46,229,157,.12);
}
/* B Home: the hero as one composed block — name, then copy | portrait, then a
   stats row across the base that closes the shape. */
html[data-theme="b"] .hero-grid { grid-template-columns: 1fr 1.15fr; grid-template-areas: "name name" "copy rotator" "stats stats"; }
html[data-theme="b"] .hero-grid h1 { padding-bottom: calc(var(--space) * .2); }
html[data-theme="b"] .role-rotator { aspect-ratio: 3 / 2; }
html[data-theme="b"] .hero-stats {
  grid-area: stats; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space);
  margin: calc(var(--space) * 1.6) 0 0; padding-top: calc(var(--space) * 1.2); border-top: 1px solid var(--c-line);
}
html[data-theme="b"] .hero-stats div { display: flex; align-items: baseline; gap: .6rem; }
html[data-theme="b"] .hero-stats dd { margin: 0; font-family: var(--font-display); font-variation-settings: "wdth" 125; font-weight: 900; font-size: clamp(1.8rem, 2.6vw, 2.6rem); line-height: 1; color: var(--c-accent); font-variant-numeric: tabular-nums; }
html[data-theme="b"] .hero-stats dt { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--c-muted); }
@media (max-width: 899px) {
  html[data-theme="b"] .hero-grid { grid-template-areas: "name" "copy" "rotator" "stats"; }
  html[data-theme="b"] .hero-stats { grid-template-columns: 1fr 1fr; gap: var(--space) calc(var(--space) * .5); }}

/* ─── B: the name lights up. Every nine seconds a band of light passes
   through the letters left to right, like a tube warming on, with a faint
   glow that swells and settles behind it. Light only — the letters never
   move. Painted as a gradient clipped to the text; off under reduced motion. ─── */
@media (prefers-reduced-motion: no-preference) {
  html[data-theme="b"] .hero-grid h1 {
    background-image: linear-gradient(100deg,
      var(--c-ink) 0%, var(--c-ink) 38%,
      #ffffff 46%, var(--c-blue) 50%, #ffffff 54%,
      var(--c-ink) 62%, var(--c-ink) 100%);
    background-size: 320% 100%; background-position: 100% 0;
    -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: b-ignite 9s ease-in-out infinite;
  }
  @keyframes b-ignite {
    0%   { background-position: 100% 0; filter: drop-shadow(0 0 0 transparent); }
    12%  { background-position: 0% 0;   filter: drop-shadow(0 0 22px var(--c-ignite, rgba(46,229,157,.28))); }
    22%  { filter: drop-shadow(0 0 0 transparent); }
    100% { background-position: 0% 0;   filter: drop-shadow(0 0 0 transparent); }
  }}

/* Shop banner + product art per theme. */

html[data-theme="b"] .p-art { background: var(--c-surface); }

html[data-theme="b"][data-pal="blue"] {
  --c-bg: #071228; --c-surface: #0e1c3a; --c-ink: #eaf2ff; --c-muted: #8aa0c8; --c-line: #1d3059;
  --c-accent: #3aa0ff; --c-accent-ink: #04101f; --c-accent-hover: #6fc0ff; --c-blue: #9fd8ff;
  --c-btn: #15294d; --c-hero-top: #0d2148; --c-glow: rgba(58,160,255,.14);
}
html[data-theme="b"] { --c-ignite: rgba(46,229,157,.28); }
html[data-theme="b"][data-pal="blue"] { --c-ignite: rgba(58,160,255,.30); }
/* Every surface crossfades, so the flip reads as one light changing colour. */
html[data-theme="b"] body, html[data-theme="b"] .hero, html[data-theme="b"] .section.alt,
html[data-theme="b"] .btn, html[data-theme="b"] .index-row, html[data-theme="b"] .p-art,
html[data-theme="b"] .notice, html[data-theme="b"] .contact-note, html[data-theme="b"] .chip span {
  transition: background-color .45s ease, border-color .45s ease, color .45s ease;
}

/* Desktop: the blade sits at the foot of the rail, under the menu. Phones: a
   pill at the bottom edge, thumb height, clear of the corner switch. */

@media (max-width: 1099px) {

  html[data-theme="b"] .theme-switch { bottom: 3.6rem; }}
html[data-theme="b"] .hero h1 { --ignite: var(--c-ignite); }
/* ═══ Colour modes — html[data-pal] = green (default) | blue | light ═══════ */
/* light: paper-white ground, deep green ink, the emerald as accent. */
html[data-theme="b"][data-pal="light"] {
  --c-bg: #f5f8f6; --c-surface: #e8f0eb; --c-ink: #0c1f17; --c-muted: #4d665b; --c-line: #cfddd5;
  --c-accent: #0e9a67; --c-accent-ink: #ffffff; --c-accent-hover: #0b8358; --c-blue: #0e7d55;
  --c-btn: #d9e7df; --c-hero-top: #e4efe8; --c-glow: rgba(14,154,103,.08); --c-ignite: rgba(14,154,103,.20);
}
html[data-theme="b"][data-pal="light"] body::after { mix-blend-mode: multiply; opacity: .06; }
/* The light sweep on the name: a green band through dark letters, not white. */
@media (prefers-reduced-motion: no-preference) {
  html[data-theme="b"][data-pal="light"] .hero-grid h1 {
    background-image: linear-gradient(100deg, var(--c-ink) 0%, var(--c-ink) 38%, var(--c-accent) 46%, #3fd69c 50%, var(--c-accent) 54%, var(--c-ink) 62%, var(--c-ink) 100%);
  }
}
/* Captions over photographs stay light on a dark scrim, whatever the page. */
html[data-theme="b"][data-pal="light"] .role-frame::before { background: linear-gradient(to top, rgba(8,20,14,.92) 0%, rgba(8,20,14,.5) 34%, transparent 62%); }
html[data-theme="b"][data-pal="light"] .role-frame .rf-name { color: #f4fff9; }
html[data-theme="b"][data-pal="light"] .rf-year, html[data-theme="b"][data-pal="light"] .role-frame figcaption { color: #9ef0cb; }
html[data-theme="b"][data-pal="light"] .band-photo, html[data-theme="b"][data-pal="light"] .band-strip { opacity: .28; }
/* Passions plates: dark ink on light paper, as drawn. */
html[data-theme="b"][data-pal="light"] .outline-frame img { filter: none; opacity: .75; }
html[data-theme="b"][data-pal="light"] .section.alt.screen { background-image: radial-gradient(circle, rgba(12,31,23,.06) .9px, transparent 1.3px); }

/* The squares. Desktop: fixed top right (the masthead is the left rail).
   Phones: in the header row, before Menu. */
html[data-theme="b"] .modes { display: flex; gap: .4rem; align-items: center; }
html[data-theme="b"] .modes button {
  width: 18px; height: 18px; padding: 0; cursor: pointer; border-radius: 3px;
  border: 1px solid var(--c-line); outline: 2px solid transparent; outline-offset: 2px;
  transition: outline-color .2s, transform .2s;
}
html[data-theme="b"] .modes button[data-mode="green"] { background: #2ee59d; }
html[data-theme="b"] .modes button[data-mode="blue"] { background: #3aa0ff; }
html[data-theme="b"] .modes button[data-mode="light"] { background: #f5f8f6; }
html[data-theme="b"] .modes button:hover { transform: translateY(-1px); }
html[data-theme="b"] .modes button[aria-pressed="true"] { outline-color: var(--c-ink); }
html[data-theme="b"] .modes button:focus-visible { outline-color: var(--c-accent); }
@media (min-width: 1100px) {
  html[data-theme="b"] .modes { position: fixed; top: calc(var(--space) * .9); right: calc(var(--space) * 1.2); z-index: 60; }
}
@media (max-width: 1099px) {
  html[data-theme="b"] .modes { margin-left: auto; margin-right: .8rem; order: 1; }
}

/* My story: the in-page jump, 02–05. */
html[data-theme="b"] .about-jump { display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; margin-top: calc(var(--space) * 1.2); padding-top: var(--space); border-top: 1px solid var(--c-line); }
html[data-theme="b"] .about-jump a { text-decoration: none; color: var(--c-ink); font-weight: 700; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; display: inline-flex; gap: .5rem; align-items: baseline; transition: color .2s; }
html[data-theme="b"] .about-jump a span { color: var(--c-blue); font-size: .72rem; letter-spacing: .14em; }
html[data-theme="b"] .about-jump a:hover { color: var(--c-accent); }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (max-width: 1099px) {
  html[data-theme="b"] .brand { white-space: nowrap; }
  html[data-theme="b"] .modes { gap: .3rem; margin-right: .6rem; }
  html[data-theme="b"] .modes button { width: 16px; height: 16px; }
}
@media (max-width: 400px) { html[data-theme="b"] .brand { font-size: .8rem; letter-spacing: .04em; } }
/* With the rail taking the left 236px, the long page titles (Appearances,
   Apariciones) size to the column that's left, not the viewport. */
@media (min-width: 1100px) {
  html[data-theme="b"] .hero-long h1 { font-size: clamp(2.6rem, 6.2vw, 6.4rem); }
}

/* ─── B desktop: a hairline matte. Three fixed rules frame the screen — the
   rail's edge, a top rule stopping short of the colour squares, and the
   right margin — each fading at its ends so it reads drawn, not boxed.
   Painted as three gradients on one fixed layer; no pointer events. ─── */
@media (min-width: 1100px) {
  html[data-theme="b"] body::before {
    content: ""; position: fixed; inset: 0; z-index: 1; pointer-events: none;
    --rail: 236px; --r: 48px; --top: 45px; --rule: color-mix(in srgb, var(--c-ink) 24%, transparent);
    background:
      linear-gradient(to right, transparent, var(--rule) 10%, var(--rule) 92%, transparent)
        calc(var(--rail) + 48px) var(--top) / calc(100% - var(--rail) - 48px - 150px) 1px no-repeat,
      linear-gradient(to bottom, transparent, var(--rule) 14%, var(--rule) 86%, transparent)
        var(--rail) 90px / 1px calc(100% - 180px) no-repeat,
      linear-gradient(to bottom, transparent, var(--rule) 14%, var(--rule) 86%, transparent)
        calc(100% - var(--r)) 90px / 1px calc(100% - 180px) no-repeat;
  }
}
