/* CROSSFADE: the "work of art" pass (2026-11-18). Loaded after chapters.css.
   One idea runs through it: CROSSFADE's own waveform as the artwork. The hero is a dark stage; across it runs
   the app's drawing of its demo track at the drop (img/art-wave.svg: bass blue into cyan, mids amber into gold,
   a white core of highs, the played half dimmed, the playhead lit), and the app rises out of it.
   Everything is still: no scroll effects, no looping motion. */

/* ── The hero: a dark stage ─────────────────────────────────────────────── */
html body .cx-hero--art {
  --ch-bg: #000;
  background:
    radial-gradient(1100px 520px at 50% -8%, rgba(41, 151, 255, .16), transparent 62%),
    radial-gradient(900px 420px at 50% 56%, rgba(41, 151, 255, .10), transparent 70%),
    #000;
  padding-bottom: clamp(64px, 7vw, 104px);
  /* (up under the sticky bar, which is 60px - or twice that with a site notice showing: the stage reaches up past the
     top of the page by more than the bar can be, and the words stay where they were. Nothing scrolls above the top.) */
  margin-top: -260px;
  padding-top: calc(clamp(72px, 9vw, 120px) + 260px);
}
/* While the dark stage is under the floating bar (html.bar-on-dark, set by the page's small script), the bar's
   scroll-edge fade is the dark one, as in the dark scheme: the light scheme's pale fade hazed the stage. */
@media (min-width: 921px) {
  html.bar-on-dark .topbar::before { background: linear-gradient(180deg, rgba(0, 0, 0, .7), rgba(0, 0, 0, 0)) !important; }
}
/* Over the dark stage the bar is clear liquid glass, frosted, with white words, in either colour scheme: the stage
   shows through it, blurred, with a lit rim and edge (the white glass went grey over black, and an almost solid white
   capsule looked like a slab rather than glass). Off the stage it goes back to the scheme's own glass. */
@media (min-width: 921px) {
  html.bar-on-dark .topbar .wrap:not(#_g1) {
    background: var(--cf-light), linear-gradient(180deg, rgba(255, 255, 255, .22) 0%, rgba(255, 255, 255, .07) 45%, rgba(255, 255, 255, .04) 100%), rgba(255, 255, 255, .09) !important;
    border: 1px solid rgba(255, 255, 255, .2) !important;
    -webkit-backdrop-filter: saturate(210%) blur(22px) brightness(1.15) !important; backdrop-filter: saturate(210%) blur(22px) brightness(1.15) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .38), inset 0 -1px 0 rgba(255, 255, 255, .08), inset 0 0 0 1px rgba(255, 255, 255, .05),
      inset 0 14px 22px -16px rgba(255, 255, 255, .3), inset 0 -12px 20px -16px rgba(255, 255, 255, .14), 0 14px 40px rgba(0, 0, 0, .45) !important;
  }
  html.bar-on-dark .topbar .wrap::after {
    background: radial-gradient(circle 160px at var(--jx) var(--jy), rgba(255, 255, 255, calc(.6 * var(--jl))), rgba(255, 255, 255, 0) 70%),
      linear-gradient(135deg, rgba(255, 255, 255, .7) 0%, rgba(255, 255, 255, .12) 30%, rgba(255, 255, 255, .03) 55%, rgba(255, 255, 255, .14) 78%, rgba(255, 255, 255, .55) 100%) !important;
  }
  html.bar-on-dark .topbar :is(.brand, .brand:hover) { color: #f5f5f7 !important; }
  html.bar-on-dark .topbar .crumb { color: rgba(255, 255, 255, .55) !important; border-left-color: rgba(255, 255, 255, .18) !important; }
  html.bar-on-dark .topbar .crumb a { color: rgba(255, 255, 255, .78) !important; }
  html.bar-on-dark .topbar .crumb a:hover { color: #fff !important; }
  html.bar-on-dark .topbar .menu a:not(.btn) { color: rgba(255, 255, 255, .82) !important; }
  html.bar-on-dark .topbar .menu a:not(.btn):hover { color: #fff !important; background: rgba(255, 255, 255, .1) !important; box-shadow: none !important; }
  html.bar-on-dark .topbar .menu a[aria-current="page"]:not(.btn) {
    color: #fff !important; background: linear-gradient(180deg, rgba(255, 255, 255, .26), rgba(255, 255, 255, .1)) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), inset 0 0 0 1px rgba(255, 255, 255, .12) !important;
  }
}
/* Phones and tablets: the bar along the top is the same clear glass over the stage (the open menu keeps its sheet). */
@media (max-width: 920px) {
  html.bar-on-dark .topbar:not(:has(.menu.open)):not(#_g1) {
    background: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .03)), rgba(20, 20, 24, .35) !important;
    border-bottom-color: rgba(255, 255, 255, .12) !important;
    -webkit-backdrop-filter: saturate(200%) blur(22px) brightness(1.1) !important; backdrop-filter: saturate(200%) blur(22px) brightness(1.1) !important;
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .08) !important;
  }
  html.bar-on-dark .topbar:not(:has(.menu.open)) .brand { color: #f5f5f7 !important; }
  html.bar-on-dark .topbar:not(:has(.menu.open)) .menu-toggle {
    color: #f5f5f7 !important; border-color: rgba(255, 255, 255, .22) !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .04)) !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3) !important;
  }
}
/* The second button, as it's drawn on a dark band: clear, white words (the light theme's is white glass). */
/* (:not(#_g1): as light.css's button rule does, to outrank it - here, on the dark stage only) */
html body .cx-hero--art .actions .btn:not(.btn--primary):not(#_g1) {
  background: rgba(255, 255, 255, .14) !important; background-image: none !important; color: #f5f5f7 !important;
  border-color: transparent !important; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18) !important;
}
html body .cx-hero--art .actions .btn:not(.btn--primary):not(#_g1):hover { background: rgba(255, 255, 255, .22) !important; color: #fff !important; }
html body .cx-hero--art .cx-product {
  color: #86868b; letter-spacing: .32em; font-size: clamp(13px, 1.3vw, 15px); font-weight: 600; margin-bottom: 22px;
}
html body .cx-hero--art h1 {
  color: #f5f5f7; font-size: clamp(54px, 9.2vw, 132px); line-height: .98; letter-spacing: -.052em; max-width: 1100px;
}
html body .cx-hero--art .lede { color: #a1a1a6; max-width: 760px; margin-top: 28px; }
html body .cx-hero--art .hero-meta { color: #86868b; }
html body .cx-hero--art .hero-meta a { color: #2997ff; }
html body .cx-hero--art .counts, html body .cx-hero--art .counts a { color: #a1a1a6; }
html body .cx-hero--art .counts b { color: #f5f5f7; }

/* The waveform band: the whole width of the window, behind the screenshot's top. */
.cx-hero--art .cx-art {
  position: relative; z-index: 0; width: 100%; height: clamp(150px, 24vw, 360px); margin: clamp(48px, 6vw, 84px) 0 0;
  pointer-events: none; user-select: none;
}
.cx-hero--art .cx-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* The app rises out of the music: the screenshot over the band's lower half. */
.cx-hero--art .cx-rise { position: relative; z-index: 1; margin-top: calc(-1 * clamp(64px, 11vw, 180px)); }
html body .cx-hero--art .ch-shot { margin-top: 0; }
html body .cx-hero--art .ch-shot img {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .10), 0 -20px 80px -40px rgba(41, 151, 255, .45), 0 60px 160px -40px rgba(0, 0, 0, .9) !important;
}
html body .cx-hero--art .facts { background: #111113 !important; }
html body .cx-hero--art .facts b { color: #f5f5f7; }
html body .cx-hero--art .facts span { color: #86868b; }

/* Bold words on a dark band stay light (light.css makes every <strong> #1d1d1f for the light scheme). */
html body .ch--dark strong { color: #f5f5f7; }

/* What's new: the same stage, the waveform band at its foot (no screenshot over it). */
html body .cx-hero--plain { padding-bottom: 0; }
.cx-hero--plain .cx-art { margin-top: clamp(40px, 5vw, 72px); }

/* ── Ready for the gig ──────────────────────────────────────────────────── */
.gg-grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; margin-top: clamp(48px, 6vw, 72px);
  grid-template-areas:
    "check check check check check check check safe safe safe safe safe"
    "fix fix fix fix fix fix fix fix fix fix fix fix";
}
html body .ch .gg {
  position: relative; overflow: hidden; border-radius: 28px; background: #1c1c1e; color: #f5f5f7;
  display: flex; flex-direction: column;
}
.gg .tile-text { padding: clamp(28px, 3.2vw, 44px) clamp(28px, 3.2vw, 44px) 0; }
html body .ch .gg h3 { color: #f5f5f7; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.1; letter-spacing: -.028em; margin: 0 0 10px; font-weight: 700; }
html body .ch .gg p { margin: 0; color: #a1a1a6; font-size: 17px; line-height: 1.5; }
.gg--check { grid-area: check; }
.gg--safe { grid-area: safe; }
.gg--fix { grid-area: fix; }
/* Pictures sit low in their tile, inset at the sides, running off the bottom edge. */
.gg-pic { margin: clamp(28px, 3vw, 40px) clamp(28px, 3.2vw, 44px) 0; margin-top: auto; padding-top: clamp(28px, 3vw, 40px); }
.gg-pic img {
  display: block; width: 100%; height: auto; border-radius: 14px 14px 0 0;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 -18px 60px -30px rgba(41, 151, 255, .35);
}
/* Never silent: one figure, big. */
.gg--safe { justify-content: space-between; }
.gg-zero { margin: 0; padding: clamp(28px, 3vw, 40px) clamp(28px, 3.2vw, 44px) clamp(32px, 3.4vw, 48px); }
html body .ch .gg-zero b {
  display: block; font-size: clamp(150px, 19vw, 260px); line-height: .82; font-weight: 700; letter-spacing: -.06em;
  padding-right: .1em;                          /* (the tight spacing makes its box narrower than the glyph: the fill was cut) */
  background: linear-gradient(150deg, #30d158, #2997ff 72%); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
html body .ch .gg-zero span { display: block; margin-top: 14px; font-size: 21px; font-weight: 600; letter-spacing: -.015em; color: #f5f5f7; }
/* Fix the set: words on the left, the editor on the right, off the tile's right and bottom edges. */
html body .ch .gg--fix { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: end; }
.gg--fix .tile-text { align-self: center; padding-bottom: clamp(28px, 3.2vw, 44px); }
.gg--fix .gg-pic { margin: 0; padding: clamp(32px, 3.4vw, 48px) 0 0; }
.gg--fix .gg-pic img { border-radius: 14px 0 0 0; }
html body .ch .gg-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 960px) {
  .gg-grid { grid-template-areas: "check check check check check check check check check check check check" "safe safe safe safe safe safe safe safe safe safe safe safe" "fix fix fix fix fix fix fix fix fix fix fix fix"; }
  .gg--safe { flex-direction: row; align-items: flex-end; }
  .gg--safe .tile-text { padding-bottom: clamp(28px, 3vw, 40px); flex: 1 1 0; }
  .gg-zero { flex: 0 0 auto; text-align: right; }
  html body .ch .gg-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .gg--safe { flex-direction: column; align-items: stretch; }
  .gg-zero { text-align: left; }
  html body .ch .gg--fix { grid-template-columns: minmax(0, 1fr); }
  .gg--fix .gg-pic { padding-left: clamp(28px, 3.2vw, 44px); }
  html body .ch .gg-facts { grid-template-columns: minmax(0, 1fr); }
}

/* ── Every picture whole (2026-11-18) ──────────────────────────────────────
   No screenshot is cut to fit a box any more: each one is shown at its own shape, inset like a screen in its tile
   (the tile grows to fit it). Retaken from 1.0.61 as the windows open on the PC. */

/* Highlights: the picture whole at the foot of the tile, a lit hairline round it. */
html body .ch .hl .tile-text { padding-bottom: clamp(24px, 2.6vw, 32px); }
html body .ch .hl img, html body .ch .hl--wide img, html body .ch .hl--half img {
  height: auto !important; object-fit: contain; object-position: center;
  width: calc(100% - 2 * clamp(22px, 2.6vw, 32px)); margin: auto clamp(22px, 2.6vw, 32px) 0;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .09), 0 -18px 60px -28px rgba(41, 151, 255, .38);
}
@media (max-width: 640px) { html body .ch .hl img { height: auto !important; } }

/* The party: the message wall and the vote screen whole (they were cut to fill the tile), the phones whole. */
html body .ch :is(.pt--msg, .pt--vote) .pt-pic { flex: none; min-height: 0; position: static; margin-top: auto; }
html body .ch :is(.pt--msg, .pt--vote) .pt-pic img {
  position: static; width: 100%; height: auto; object-fit: contain; border-radius: 14px 14px 0 0;
}
html body .ch :is(.pt--req, .pt--mic) .pt-pic { max-height: none; overflow: visible; padding-bottom: clamp(26px, 3vw, 36px); }
html body .ch :is(.pt--req, .pt--mic) .pt-pic img { width: min(150px, 56%); height: auto; border-radius: 22px; box-shadow: 0 18px 50px -20px rgba(0, 0, 0, .6); }

/* The gallery: each picture whole on black (letterboxed, never cropped), enlarging to the whole thing too. */
html body .ch .gallery img { aspect-ratio: 16 / 10; height: auto; object-fit: contain; object-position: center; background: #000; }

/* The visualisers: the stage and its thumbnails at the pictures' own 16:10. */
html body .ch .vis-picker button img { aspect-ratio: 16 / 10; object-fit: contain; background: #000; }
html body .ch .vis-stage img { object-fit: contain; }
/* Donate: the app whole inside the black tile (it ran off the tile's edge, cut). */
html body .ch .sp-card--donate { padding-right: clamp(36px, 4vw, 56px); }
html body .ch .sp-donate-pic { min-height: 0; align-self: center; position: static; margin: 0; }
html body .ch .sp-donate-pic img {
  position: static; transform: none; width: 100%; max-width: 100%; height: auto; border-radius: 12px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .09), 0 40px 100px -30px rgba(41, 151, 255, .45);
}
@media (max-width: 760px) {
  html body .ch .sp-donate-pic { margin: 0; padding-bottom: clamp(28px, 4vw, 40px); }
}
/* (the picture centred in the room under the words, framed all round: a tile beside a taller one has even space
   above and below its picture, not a gap over it) */
html body .ch .hl img, html body .ch .hl--wide img, html body .ch .hl--half img {
  margin: auto clamp(22px, 2.6vw, 32px) !important; border-radius: 12px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .10), 0 24px 60px -24px rgba(41, 151, 255, .40);
}
html body .ch .hl::after { content: ''; display: block; height: clamp(22px, 2.6vw, 32px); flex: none; }
/* The party's tiles too: each picture centred in the room under its words, framed all round, clear of the edges. */
html body .ch .pt .pt-pic { margin-top: auto; margin-bottom: auto; padding: 24px clamp(26px, 3vw, 40px) clamp(26px, 3vw, 40px); }
html body .ch .pt .pt-pic img { border-radius: 12px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .06), 0 24px 60px -26px rgba(0, 0, 0, .45); }
html body .ch :is(.pt--req, .pt--mic) .pt-pic img { border-radius: 22px; }
/* ── The hero's live deck (hero-deck.js) ────────────────────────────────────
   The waveform band is a deck now: the demo track drawn as a lane, still until PLAY, then the music and the waveform
   running under the playhead together. The still picture stays as the fallback without scripts. */
html body .cx-hero--art .cx-deck { height: auto; margin-top: clamp(44px, 5.5vw, 76px); display: flex; flex-direction: column; align-items: center; pointer-events: auto; }
.cx-deck-strip {
  position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 14px; padding: 7px 20px 7px 7px; margin-bottom: 18px;
  border-radius: 999px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .10), 0 18px 50px -24px rgba(41, 151, 255, .45);
  backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%); text-align: left; max-width: calc(100% - 32px);
}
.cx-play {
  flex: none; width: 46px; height: 46px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; color: #fff;
  display: grid; place-items: center; background: linear-gradient(180deg, #2997ff, #0a6ee0);
  box-shadow: 0 6px 22px -6px rgba(41, 151, 255, .8), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.cx-play:focus-visible { outline: 3px solid rgba(41, 151, 255, .6); outline-offset: 3px; }
.cx-play svg { width: 20px; height: 20px; grid-area: 1 / 1; }
.cx-play .i-pause, .cx-deck.is-playing .cx-play .i-play { display: none; }
.cx-deck.is-playing .cx-play .i-pause { display: block; }
.cx-deck.is-loading .cx-play { opacity: .7; cursor: progress; }
.cx-deck.no-audio .cx-play { display: none; }
.cx-deck-track { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
html body .cx-deck-track b { color: #f5f5f7; font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
html body .cx-deck-track span { color: #86868b; font-size: 12.5px; }
.cx-deck-meta { display: flex; gap: 0; align-items: center; margin-left: 8px; font-variant-numeric: tabular-nums; }
html body .cx-deck-meta span { color: #d2d2d7; font-size: 13px; font-weight: 600; padding: 0 12px; border-left: 1px solid rgba(255, 255, 255, .14); white-space: nowrap; }
html body .cx-deck-meta span:first-child { border-left: 0; color: #2997ff; }
html body .cx-deck-meta .k { color: #bf5af2; }
.cx-deck-stage { position: relative; width: 100%; height: clamp(170px, 22vw, 330px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); }
.cx-deck-stage > * { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.cx-deck-still { object-fit: cover; }
.cx-deck-wave { opacity: 0; }
.cx-deck.is-live .cx-deck-wave { opacity: 1; }
.cx-deck.is-live .cx-deck-still { visibility: hidden; }
/* The app under the deck, clear of it: the whole waveform shows. */
html body .cx-hero--art .cx-rise { margin-top: clamp(20px, 2.6vw, 40px); }
@media (max-width: 640px) {
  .cx-deck-strip { flex-wrap: wrap; border-radius: 26px; padding: 8px 16px 10px 8px; gap: 10px 12px; }
  .cx-deck-meta { margin-left: 58px; width: 100%; }
  html body .cx-deck-meta span { padding: 0 10px; font-size: 12px; }
  html body .cx-deck-meta span:first-child { padding-left: 0; }
}
/* ── Design pass (2026-11-19) ──────────────────────────────────────────────
   The highlights are paired so each row's pictures are the same height (no black gaps over a small picture), the
   split chapters give their picture the wider column whichever side it's on, and the library's "0.3 s" has its
   gradient back (a light-scheme rule had painted it grey). */
.ch-split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.ch-split--flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
@media (max-width: 860px) { .ch-split, .ch-split--flip { grid-template-columns: minmax(0, 1fr); } }
html body .cf-bento .cf-tile--hero .cf-stat:not(#_g1) {
  background: linear-gradient(90deg, #5fe1ff, #2e7bff 45%, #a879ff); -webkit-background-clip: text; background-clip: text;
  color: transparent !important; -webkit-text-fill-color: transparent !important;
}
html body .cf-bento .cf-tile--hero .cf-stat:not(#_g1) small { -webkit-text-fill-color: currentColor !important; color: var(--dim, #86868b) !important; }
/* The new-in tiles: each picture as large as its tile allows, on the tile's own dark screen. */
html body .ch .nw .nw-pic { aspect-ratio: 16 / 9; padding: clamp(14px, 1.6vw, 20px); }
html body .ch .nw .nw-pic img { width: 100%; max-height: 100%; object-fit: contain; border-radius: 10px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08); }
/* (their headings at tile size: page-headline size wrapped them onto three lines in a third of the width) */
html body .ch .nw h3 { font-size: clamp(22px, 1.9vw, 26px); line-height: 1.15; }
