/* The sections of playstereo.app under the hero (Oliver's outline in the Figma file "Stereo website wireframe",
   17 November 2026). The hero and the Buy button have their styles in index.html; the scripts are in home.js.

   Each section has the same head: the title 80 px bold (line 1.05, letter spacing −3 %), and 20 px under it the lead,
   20 px medium, at most 1000 px wide, in the middle. The section colors: white, black (Put on a record), the night of
   the album wall, the shelf, the launcher, and from Get in the mood to the end of the page (#010014).

   The spacing of the sections (Oliver's adjustments in Figma, 17 November 2026, made consistent: "these are eyeballed
   so make them consistent"): 80 px above the head, 96 px from the head to the content, and 128 px under the content.
   The exceptions: the wall runs to the bottom edge; the shelf and the bubbles of Just ask sit 48 px under the head; the
   MacBook 9 px into the head (its picture has room at its top); two sections of one color in a row have only the space
   under the first. On a narrow screen the three get smaller together. */

.feature {
  --side: clamp(16px, 4vw, 56px);
  --pad-top: clamp(48px, 5.6vw, 80px);
  --head-gap: clamp(48px, 6.6vw, 96px);
  --pad-bottom: clamp(80px, 8.9vw, 128px);
  position: relative;
  padding: var(--pad-top) 0 var(--pad-bottom);
  overflow: hidden;
}
.feature-head { position: relative; z-index: 1; max-width: 1000px; margin: 0 auto; padding: 0 var(--side); text-align: center; }
.feature h2 {
  margin: 0;
  font-size: clamp(42px, 6.6vw, 80px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 700;
  text-wrap: balance;
}
.feature-head p {
  max-width: 820px;
  margin: 20px auto 0;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.5;
  font-weight: 500;
  color: var(--lead);
  text-wrap: pretty;
}
.on-white { background: #fff; color: #000; --lead: #666; }
.on-black { background: #000; color: #f2f2f2; --lead: #9a9a9a; }
.on-night { background: #010014; color: #fff; --lead: rgb(255 255 255 / 0.5); }
/* Two white sections in a row have only the space under the first: with the space above the second too, the gap was
   208 px (Oliver, 17 November 2026: "reduce the space above every album has a story", when that section was white). */
.on-white + .on-white { --pad-top: 0px; }

/* A head comes up a little as it comes on screen (only with the script, and not with Reduce Motion). */
.js .reveal { opacity: 0; translate: 0 28px; transition: opacity 0.9s ease, translate 0.9s cubic-bezier(0.2, 0.8, 0.2, 1); }
.js .reveal.in { opacity: 1; translate: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; translate: none; transition: none; } }

/* The frames of the prototypes: the full width (the wall), or a column (the shelf, the launcher). */
.embed { display: block; width: 100%; border: 0; background: transparent; }

/* ---------- Put on a record ----------
   The outline: three covers of 446 px, about 34 px apart, the middle one in the middle; the outer ones go to black at
   the edges of the page. Under the cover in the middle, at its width, the songs of that record (Oliver, 17 November
   2026: "bar only", from the sketch docs/mockups/record-playthrough.html; before, a row of dots over the full width,
   which did not read as the songs of that record): one segment for each song, as long as the song, and one fill
   through them from the first song to the last. When the record has played through, the next one comes. */
.record em { font-style: normal; color: #fff; }
/* `--pitch`: from the middle of one record to the next; with the smaller records at the sides (82 %), the room next to
   the record in the middle stays about 37 px at 446 px, as in the outline. */
.record { --cover: clamp(220px, 31vw, 446px); --pitch: calc(var(--cover) * 0.993); --accent: #f20442; }
.record-stage {
  position: relative;
  height: var(--cover);
  margin-top: var(--head-gap);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.record-cover {
  position: absolute;
  left: 50%;
  top: 0;
  width: var(--cover);
  height: var(--cover);
  margin-left: calc(var(--cover) / -2);
  padding: 0;
  border: 0;
  border-radius: calc(var(--cover) * 0.0333);
  overflow: hidden;
  background: #111;
  cursor: pointer;
  will-change: transform;
}
/* The records at the sides: smaller (home.js) and darker, for depth (Oliver, 17 November 2026: "give the albums a bit
   more dimensionality, the side albums smaller maybe?"). They change with the slide. */
.record-cover.side { filter: brightness(0.45); }
/* The drift: while a record plays, the row and its bar move slowly to the left, toward the next record, so that the
   section never stands still (Oliver, 18 November 2026: "lets have it move subtle so it's not standing still").
   `--drift` (home.js) is a part of the pitch; the slide to the next record takes it back to 0. On `translate`, so that
   it adds to the slide and the size of each record (`transform`). */
.record-cover, .record-bar { translate: calc(var(--drift, 0) * var(--pitch) * -1) 0; }
.record-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.record-cover:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
/* The bars: each record has its own, 28 px under it, and the bars lie on each other while the records change
   (home.js). A bar gets the same transform as its record, around the middle of that record, so that it moves and
   shrinks as a part of it. */
.record { --songs-gap: 28px; }
.record-songs { position: relative; width: var(--cover); height: 8px; margin: var(--songs-gap) auto 0; }
.record-bar { position: absolute; inset: 0; display: flex; gap: 4px; transform-origin: 50% calc(-1 * var(--songs-gap) - var(--cover) / 2); will-change: transform, opacity; }
.song { position: relative; height: 100%; border-radius: 4px; background: rgb(255 255 255 / 0.16); }
/* The fill is a pill too, also its front edge (Oliver, 17 November 2026: "give the playing active bar also pills
   shape"): the whole song in the color of the album, clipped to the part that has played by a clip with round corners
   (home.js), so that its round front grows in from nothing. A song that has not played is gray, not the color of the
   album. Before (Oliver: "the active color is bleeding through inactive bars"): the songs that had not played were the
   album color at 28 %, and a fill moved out of sight inside each song showed at its round edges. */
.song i { position: absolute; inset: 0; border-radius: inherit; background: var(--accent); clip-path: inset(0 100% 0 0 round 4px); }

/* ---------- Remember this one? ----------
   The cards of Home, as in the outline (1339 × 627 px): two small cards above each other, the large card, two small
   cards, and three wide cards. All sizes are in `--u`, a pixel of the outline at the width of the cards. On a narrow
   screen the cards go into two columns. */
.bento {
  position: relative;
  width: min(1339px, 100% - 2 * var(--side));
  aspect-ratio: 1339 / 627;
  margin: var(--head-gap) auto 0;
  container-type: inline-size;
}
.home-card {
  --u: calc(100cqw / 1339);
  position: absolute;
  overflow: hidden;
  border-radius: calc(17.7 * var(--u));
  background: var(--card);
  color: var(--line);
  box-shadow: 0 calc(4.74 * var(--u)) calc(9.48 * var(--u)) rgb(0 0 0 / 0.13), 0 calc(1.19 * var(--u)) calc(1.19 * var(--u)) rgb(0 0 0 / 0.14);
  /* The way in (opacity, place) waits for the turn of the card (`--delay`); the growth under the pointer does not. */
  transition: opacity 0.6s ease, translate 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), scale 0.3s cubic-bezier(0.25, 0.8, 0.3, 1);
  transition-delay: var(--delay, 0s), var(--delay, 0s), 0s;
}
/* The cards come on screen one after the other, from left to right (Oliver, 17 November 2026: "have the card stagger
   on screen"), when the bento comes on screen (`.in`, from the revealer). */
.js .home-card { opacity: 0; translate: 0 32px; }
.js .bento.in .home-card { opacity: 1; translate: none; }
/* Under the pointer, the card grows 3 % from its middle, as a card of Home in the app (`HomeCardStyle.hoverGrowth`,
   `.smooth(duration: 0.3)`), over its neighbours (Oliver: "Then let it grow on mouseiover"). Only with a mouse: on a
   phone, the hover stayed after a tap. */
@media (hover: hover) {
  .home-card:hover { scale: 1.03; z-index: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .js .home-card { opacity: 1; translate: none; transition: none; }
}
.home-card .cover, .home-card .cast { position: absolute; left: 0; top: 0; display: block; object-fit: cover; }
/* The cast: the cover, mirrored and blurred, under the cover (beside it on a wide card), under a fade of the card color. */
.home-card .cast { filter: blur(calc(14.2 * var(--u))); scale: 1 -1; }
.home-card .tint { position: absolute; background: linear-gradient(color-mix(in srgb, var(--card) 50%, transparent), var(--card)); }
.home-card .words { position: absolute; display: flex; flex-direction: column; }
.home-card b, .home-card span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.home-card b { font-weight: 600; color: var(--title); }
.home-card p { margin: 0; font-weight: 500; }
.home-card .about { color: color-mix(in srgb, var(--title) 85%, transparent); }

/* The small card: 189.6 × 302.2. */
.home-card.small { width: calc(189.64 * var(--u)); height: calc(302.24 * var(--u)); }
.home-card.small .cover, .home-card.small .cast { width: calc(189.64 * var(--u)); height: calc(189.64 * var(--u)); }
.home-card.small .cast, .home-card.small .tint { top: calc(189.64 * var(--u)); }
.home-card.small .tint { left: 0; right: 0; bottom: 0; }
.home-card.small .words { left: calc(14.22 * var(--u)); right: calc(14.22 * var(--u)); top: calc(201.5 * var(--u)); }
.home-card.small b { font-size: calc(16.59 * var(--u)); line-height: calc(20.86 * var(--u)); }
.home-card.small span { margin-top: calc(2.85 * var(--u)); font-size: calc(14.22 * var(--u)); line-height: calc(17.9 * var(--u)); }
.home-card.small p { margin-top: calc(5.8 * var(--u)); font-size: calc(14.22 * var(--u)); line-height: calc(17.9 * var(--u)); }
/* The large card: 448 × 627. */
.home-card.large { width: calc(448.03 * var(--u)); height: calc(627 * var(--u)); }
.home-card.large .cover, .home-card.large .cast { width: calc(448.03 * var(--u)); height: calc(448.03 * var(--u)); }
.home-card.large .cast, .home-card.large .tint { top: calc(448.03 * var(--u)); }
.home-card.large .tint { left: 0; right: 0; bottom: 0; }
.home-card.large .words { left: calc(21.33 * var(--u)); right: calc(21.33 * var(--u)); top: calc(464.6 * var(--u)); }
.home-card.large b { font-size: calc(26.08 * var(--u)); line-height: calc(32.83 * var(--u)); }
.home-card.large span { margin-top: calc(2.8 * var(--u)); font-size: calc(18.96 * var(--u)); line-height: calc(23.94 * var(--u)); }
.home-card.large p { margin-top: calc(10.4 * var(--u)); font-size: calc(16.59 * var(--u)); line-height: calc(20.86 * var(--u)); }
/* The wide card: 444.5 × 193.2, the cover at the left and its cast at the right. */
.home-card.wide { width: calc(444.47 * var(--u)); height: calc(193.2 * var(--u)); }
.home-card.wide .cover { width: calc(193.2 * var(--u)); height: calc(193.2 * var(--u)); }
.home-card.wide .cast { left: calc(193.2 * var(--u)); width: calc(251.27 * var(--u)); height: calc(193.2 * var(--u)); scale: -1 1; }
.home-card.wide .tint { left: calc(193.2 * var(--u)); top: 0; right: 0; bottom: 0; background: linear-gradient(90deg, color-mix(in srgb, var(--card) 50%, transparent), var(--card)); }
.home-card.wide .words { left: calc(212.16 * var(--u)); right: calc(16 * var(--u)); top: calc(18.96 * var(--u)); }
.home-card.wide b { font-size: calc(20.15 * var(--u)); line-height: calc(25.36 * var(--u)); }
.home-card.wide span { margin-top: calc(2.85 * var(--u)); font-size: calc(16.59 * var(--u)); line-height: calc(20.86 * var(--u)); }
.home-card.wide p { margin-top: calc(9.9 * var(--u)); font-size: calc(15.41 * var(--u)); line-height: calc(19.44 * var(--u)); }

/* Two columns on a narrow screen: the large card and the wide cards over the full width. The sizes keep the scale of a
   small card in a column. */
@media (max-width: 760px) {
  .bento { aspect-ratio: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .home-card { --u: calc((100cqw - 14px) / 2 / 189.64); position: relative; left: auto !important; top: auto !important; }
  .home-card.large { grid-column: 1 / -1; width: 100%; height: auto; aspect-ratio: 448 / 627; --u: calc(100cqw / 448.03); }
  .home-card.wide { grid-column: 1 / -1; width: 100%; --u: calc(100cqw / 444.47); }
  .home-card.small { width: 100%; }
}

/* ---------- Every album has a story ----------
   One album at a time, on the color of the album (docs/mockups/story-sentence.html, layout Split, 18 November 2026): the
   cover at the left (0.8 of 1.2 of a column of 1180 px, 72 px apart), the small covers under it, and at the right, in the
   middle of the cover, the album, the sentence (60 px bold, its facts at full color, the rest at 52 %), and a square for
   each year. The squares (Oliver's sizes in Figma, made even): 27 of 18 px, 6 px apart, corners 5 px, a row of 642 px;
   the years under them in SF Mono Bold, 13 px. The years of the sentence are bright, the others at 30 %; a year without
   plays inside the years of the sentence is an outline. The cover turns over to the next album. */
.story {
  --bg: #1d9ad6; --tx: #fff;
  --lead: color-mix(in srgb, var(--tx) 68%, transparent);
  --pad-bottom: clamp(64px, 7vw, 104px);
  background: var(--bg); color: var(--tx);
  transition: background-color 0.9s ease, color 0.9s ease;
}
.story-body {
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  column-gap: clamp(32px, 5vw, 72px); row-gap: clamp(20px, 2.2vw, 30px);
  width: min(1180px, 100% - 2 * var(--side)); margin: var(--head-gap) auto 0;
}
.story-art { grid-column: 1; grid-row: 1; position: relative; aspect-ratio: 1; perspective: 1600px; cursor: pointer; }
/* The cover reacts to the pointer (Oliver, 18 November 2026: "have the album react to cursor, with a sheen", then "the
   sheen should react to the tilt"): the part under the pointer presses in, at most 5° each way, and the cover comes up
   2 %. The sheen comes from the tilt, as on a glossy sleeve (Oliver: "is the glow an orb? it doesnt look natural"; it
   was a round light): a broad, soft streak of light across the cover, at a fixed slant, that slides over the surface as
   the angle changes, toward the edge that comes up; and the edge that goes away a little darker. Both are stronger the
   more the cover tilts, and gone when it is flat. home.js eases the tilt and sets the tilt and the sheen from the same
   values in each frame, so the light moves with the cover. Only with a mouse, and not with Reduce Motion.
   The sheen lies on each cover (.story-cover), not on the frame of the covers: on the frame it stayed flat while the
   cover turned over, and showed as a slot behind it (Oliver, 18 November 2026: "when the cover turns, it looks like
   thre's a slot behind it"). The values of the tilt come from the frame (custom properties pass down). */
.story-art { transform: perspective(1400px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) scale(var(--lift, 1)); }
.story-cover::after {
  content: ""; position: absolute; inset: 0; z-index: 1; border-radius: 10px; pointer-events: none;
  background:
    linear-gradient(115deg, transparent 32%, rgb(255 255 255 / 0.1) 40%, rgb(255 255 255 / 0.32) 47%, rgb(255 255 255 / 0.1) 55%, transparent 64%)
      var(--glare-x, 50%) var(--glare-y, 50%) / 250% 250% no-repeat,
    linear-gradient(var(--shade-angle, 0deg), rgb(0 0 0 / 0.22), transparent 55%);
  mix-blend-mode: overlay; opacity: var(--sheen, 0);
}
/* A subtle stroke inside the edge of each cover, in the text color, so that a cover on its own color keeps its edge
   (Oliver, 18 November 2026: "add a subtle stroke to the covers"). */
.story-cover img, .story-nav img { outline: 1px solid color-mix(in srgb, var(--tx) 18%, transparent); outline-offset: -1px; }
.story-cover { position: absolute; inset: 0; border-radius: 10px; box-shadow: 0 30px 70px -28px rgb(0 0 0 / 0.55); }
.story-cover img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.story-cover.gone { opacity: 0; }
.story-cover.leave { z-index: 1; animation: story-flip-out 0.32s cubic-bezier(0.5, 0, 0.9, 0.5) both; }
.story-cover.enter { z-index: 2; animation: story-flip-in 0.5s cubic-bezier(0.1, 0.6, 0.3, 1) 0.32s both; }
@keyframes story-flip-out { to { transform: rotateY(-90deg); filter: brightness(0.7); } }
@keyframes story-flip-in { from { transform: rotateY(90deg); filter: brightness(0.7); } }
.story-nav { grid-column: 1; grid-row: 2; display: flex; gap: clamp(10px, 1.4vw, 18px); }
.story-nav button { all: unset; cursor: pointer; width: clamp(44px, 4.4vw, 60px); border-radius: 6px; }
.story-nav button:focus-visible { outline: 2px solid var(--tx); outline-offset: 3px; }
.story-nav img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; opacity: 0.5; transition: opacity 0.3s, translate 0.3s; }
.story-nav button:hover img { opacity: 0.9; }
.story-nav button.on img { opacity: 1; translate: 0 -3px; }
/* Only the album that shows has its bar (Oliver: "for the thumbnails remove the bars, for the inactive albums"). */
.story-nav .bar { display: block; height: 3px; margin-top: 8px; border-radius: 2px; overflow: hidden; background: color-mix(in srgb, var(--tx) 25%, transparent); opacity: 0; transition: opacity 0.3s ease; }
.story-nav button.on .bar { opacity: 1; }
.story-nav .bar i { display: block; height: 100%; width: 0; background: var(--tx); }
.story-text { grid-column: 2; grid-row: 1; align-self: center; }
.story-who { display: flex; flex-direction: column; gap: 1px; font-size: clamp(15px, 1.4vw, 18px); line-height: 1.3; }
.story-who b { font-weight: 700; }
.story-who .artist { font-weight: 500; color: color-mix(in srgb, var(--tx) 65%, transparent); }
.story-sentence { margin-top: clamp(14px, 1.6vw, 22px); min-height: 3.2em; font-size: clamp(30px, 4.6vw, 60px); line-height: 1.07; letter-spacing: -0.035em; font-weight: 700; }
.story-sentence p { margin: 0; text-wrap: balance; }
.story-sentence .w { color: color-mix(in srgb, var(--tx) 52%, transparent); }
.story-sentence .w.b { color: inherit; }
/* The words change line by line, with a little stagger (Oliver, 18 November 2026: "the transition of the text, can we
   make it more intentional, maybe per line?", then "i mean a little stagger"): the lines of the old sentence fade and go
   up (below), 50 ms apart; the lines of the new one fade in and come up 12 px, 70 ms apart. The album and the artist do
   the same when the album changes. home.js wraps each line in a .ln while it moves, and takes the wraps off after. */
.story .ln { display: block; }
.story .ln-in { display: block; transition: opacity 0.45s ease calc(var(--i, 0) * 70ms), translate 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) calc(var(--i, 0) * 70ms); }
.story .before .ln-in { opacity: 0; translate: 0 12px; transition: none; }
/* On the way out, each line goes on up and fades (Oliver, 18 November 2026: "a ssentcne should move up and fade when
   leaving"; before, 8 px in 0.28 s): 0.4 em in 0.45 s, faster at the end, 50 ms after the line above it. */
.story .leaving .ln-in { opacity: 0; translate: 0 -0.4em; transition: opacity 0.45s ease-in calc(var(--i, 0) * 50ms), translate 0.45s cubic-bezier(0.5, 0, 0.75, 0.4) calc(var(--i, 0) * 50ms); }
/* While a sentence shows, it drifts up slowly, at an even speed, 0.35 em over its time (--dur, from home.js): 21 px on
   a computer, 11 px on a phone. It starts that much lower and ends in its own place, so that it moves into place, not
   away from it; the way out goes on up from there (Oliver, 18 November 2026: "have the sentence continously move up
   slowly", "drift needs to be more notcieable": before, 12 px; "it should start lower and then move to its original
   location"; then "it starts a bit too low": before, 0.6 em). The drift stops with the clock, off screen (.still). */
.story-sentence p.drift { animation: story-drift var(--dur, 5.2s) linear both; }
.story.still .story-sentence p.drift { animation-play-state: paused; }
@keyframes story-drift { from { translate: 0 0.35em; } to { translate: 0 0; } }
.story-years { margin-top: clamp(24px, 3vw, 40px); max-width: 642px; }
.story-row, .story-labels { display: grid; grid-template-columns: repeat(27, minmax(0, 1fr)); gap: clamp(2px, 0.42vw, 6px); }
.story-row i { aspect-ratio: 1; border-radius: 28%; background: var(--tx); opacity: 0.1; transition: opacity 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.9s ease; }
/* The squares of the years of the sentence grow, with a bounce (Oliver, 18 November 2026: "hav ethe selected rect get a
   sutble boundy grow when selected", "it's not very nitcable can it get a grow bounce", then "grow is good keep the
   settle at 100"): home.js runs one wave over the row, and each square changes its brightness and, when it is a year of
   the sentence, pops as a spring at its moment in the wave. */
.story-row i.hole { background: transparent; opacity: 1; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--tx) 45%, transparent); }
.story-labels { margin-top: 10px; height: 18px; align-items: baseline; font: 700 13px/1 ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace; }
.story-labels span { grid-row: 1; white-space: nowrap; justify-self: center; }
.story-labels .end { color: color-mix(in srgb, var(--tx) 45%, transparent); }
/* One column: the cover (at most 240 px), the small covers, then the words. */
@media (max-width: 760px) {
  .story-body { grid-template-columns: minmax(0, 1fr); }
  .story-art, .story-nav, .story-text { grid-column: 1; grid-row: auto; }
  .story-art { width: min(240px, 70%); }
  .story-sentence { font-size: 32px; min-height: 3.3em; }
}
@media (prefers-reduced-motion: reduce) {
  .story-cover.enter, .story-cover.leave { animation: none; }
  .story-art { transform: none; }
  .story-cover::after { display: none; }
  .story .ln-in, .story-row i { transition: none; }
  .story-sentence p.drift { animation: none; }
}

/* ---------- Your years in music ----------
   The strip of History, as an illustration (Oliver, 18 November 2026: "i'm not happy about the years in music section";
   mockup A in docs/mockups/years-in-music.html, tuned by Oliver in its panel and in Figma): a bar for each month over
   the full width of the page, moving slowly to the left, with no end; a yellow selection in the column of the head that
   moves with its bars and glides to another part every 4 s; under it, the covers of the selection, each time others.
   The bars of the selection are yellow and 8 % taller. The selection ends in the middle of a gap, so it never touches a
   bar outside, and has at least 5 bars. A computer: bars of 4 px every 10 px, 96 px high; the selection 20 px above
   them and 16 px below, radius 8; 4 covers in the column of 1000 px, 40 px under it. A phone: bars of 3 px every 7 px,
   64 px high; 14 px above, 11 px below, radius 6; 3 covers, 28 px under it. The script places the bars and the
   selection; the sizes are here. */
.years-strip {
  --bars: 96px; --bar: 4px; --above: 20px; --below: 16px;
  position: relative;
  /* A click selects the part under the pointer (home.js). */
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  height: calc(var(--bars) + var(--above) + var(--below));
  margin-top: var(--head-gap);
  overflow: hidden;
}
.years-bars { position: absolute; left: 0; right: 0; top: var(--above); height: var(--bars); }
.years-track { position: absolute; left: 0; top: 0; height: 100%; will-change: transform; }
/* The selection is in the track, behind the bars, so that it moves in their layer, with them exactly (it jerked when it
   moved by its own left edge). */
.years-field {
  position: absolute; left: 0; top: calc(-1 * var(--above));
  height: calc(var(--bars) + var(--above) + var(--below));
  border-radius: 8px;
  background: rgb(255 197 21 / 0.25);
  will-change: transform;
}
/* The gray is a solid color (black at 15 % on white): from black at 15 %, the fade to yellow went through black. */
/* Under the pointer a bar gets darker, taller, and a little wider, and the bars next to it less and less, so that a wave
   follows the pointer (Oliver, 18 November 2026: "can the bars also get a mouseover where the become slightly darger and
   larger, and tht it cascades to the bars next to it"): `--h` is 1 under the pointer, about 0.47 one bar away, 0.14 two
   bars away (home.js). At most 12 % taller, so that the highest bar of the selection stays inside the yellow. */
.years-track i {
  --h: 0;
  position: absolute; bottom: 0;
  width: var(--bar); margin-left: calc(var(--bar) / -2);
  border-radius: 99px;
  background: color-mix(in srgb, #d9d9d9, #000 calc(var(--h) * 18%));
  transform-origin: 50% 100%;
  scale: calc(1 + var(--h) * 0.35) calc(1 + var(--h) * 0.12);
  transition: background-color 0.15s ease, scale 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
/* The bars of the selection grow with the wave too, but keep their yellow (Oliver, 18 November 2026: "hmm not in the
   yellow area", then "actually bring back, just dont change the vcolor in yellow"). */
.years-track i.in { background: #ffc515; scale: calc(1 + var(--h) * 0.35) calc(1.08 + var(--h) * 0.12); }
.years-column { max-width: calc(1000px + 2 * var(--side)); margin: 40px auto 0; padding: 0 var(--side); }
.years-covers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
/* A cover changes with a rise (Oliver: "maybe a scale and vertical moe transition?"; a crossfade in the place looked
   muddy): the old cover lifts 10 px, gets 6 % smaller, and fades in 260 ms with an ease in; a quarter of the way in, the
   new one comes up from 20 px below and 94 %, and settles in 650 ms with a soft ease out. Each cover has its own shadow
   and its own color while it loads; the place has none, so two covers never mix half transparent. */
.years-place { position: relative; aspect-ratio: 1; }
.years-place img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border-radius: 8px; object-fit: cover;
  box-shadow: 0 6px 16px rgb(0 0 0 / 0.16);
  transition: opacity 325ms ease, translate 650ms cubic-bezier(0.16, 1, 0.3, 1), scale 650ms cubic-bezier(0.16, 1, 0.3, 1);
}
.years-place img.enter { opacity: 0; translate: 0 20px; scale: 0.94; }
.years-place img.leave {
  opacity: 0; translate: 0 -10px; scale: 0.94;
  transition: opacity 260ms ease-in, translate 260ms cubic-bezier(0.5, 0, 0.75, 0), scale 260ms cubic-bezier(0.5, 0, 0.75, 0);
}
@media (prefers-reduced-motion: reduce) {
  .years-track i { transition: background-color 0.15s ease; }
  .years-track i, .years-track i.in { scale: none; }
  .years-place img, .years-place img.leave { transition: opacity 0.4s ease; translate: none; scale: none; }
}

/* ---------- Collections and Take command: the frames ---------- */
/* The shelf with no title row (shelf/?nohead; Oliver, 18 November 2026: "remove best of all time title"): 350 px and
   12 px for the shadow, 49 px less than with the row. */
.shelf-frame { height: 363px; margin-top: 48px; }
/* The frame has 12 px under the shelf for the shadow of the covers: the section has that much less. */
.collections { padding-bottom: calc(var(--pad-bottom) - 12px); }
/* The title on one line where the window has room (Oliver, 17 November 2026: "can we try and fit that on one line"):
   it needs about 955 px at 80 px, more than the 1000 px of the head less its sides. Narrower, it wraps as before. */
.collections .feature-head { max-width: 1120px; }
.launcher-frame { height: 600px; margin-top: var(--head-gap); }
/* Wall-to-wall coverage: the wall also goes up behind the head, under a veil of the night color that fades out where
   the wall began before, so that the covers shine a little through behind the title (Oliver, 17 November 2026). The
   section keeps its height: its padding has the room of the wall. `--head-height` comes from home.js. */
.wall { --wall-height: clamp(420px, 68vh, 700px); padding-bottom: calc(var(--head-gap) + var(--wall-height)); }
.wall-frame { position: absolute; inset: 0; height: 100%; }
.wall::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0 0 auto;
  height: calc(var(--pad-top) + var(--head-height, 200px) + var(--head-gap));
  /* At full strength to the end of the head, so that the lead stays readable; then it fades out. */
  background: linear-gradient(rgb(1 0 20 / 0.82) calc(100% - var(--head-gap)), rgb(1 0 20 / 0));
  pointer-events: none;
}
@media (max-width: 640px) { .launcher-frame { height: 520px; } }

/* ---------- Just ask (before: Ask your agent) ----------
   The outline: bubbles of #e3e8eb, corners 30, 17 × 24 px of room, 20 px medium text in #202c33, with a tail at the
   bottom right; in rows in the middle, 24 px apart, 32 px between the rows. They come in one after the other. The
   bubbles are #f1f1fa, a white with a little purple, in place of the gray of the outline (Oliver, 17 November 2026). The
   section has no background: Oliver tried ASCII art and shaders behind the bubbles (docs/mockups/agent-ascii.html and
   agent-shaders.html), and then took them away. */
.bubbles {
  --tail: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 42.6128 35.7254'%3E%3Cpath d='M38.062 0.0151437C39.4532 -0.154276 40.5817 1.12497 40.2815 2.49388C37.7878 13.8635 38.3325 21.6325 42.4844 33.0139C43.0728 34.627 41.5375 36.2196 39.9436 35.581C19.5953 27.4287 5.66846 13.3819 0.480808 7.53775C-0.547442 6.37938 0.171566 4.62952 1.70912 4.44227L38.062 0.0151437Z'/%3E%3C/svg%3E");
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 32px;
  /* 48 px under the head, as the shelf: 96 px set the bubbles apart from their head (Oliver, 18 November 2026: "reduce
     the gap here"). */
  margin: 48px auto 0;
  padding: 0 var(--side);
}
/* The rows of the outline (2, 3, 2); a row that does not fit wraps. */
.bubble-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 32px 24px; }
.bubbles p {
  position: relative;
  margin: 0;
  padding: 17px 24px;
  border-radius: 30px;
  background: #f1f1fa;
  color: #202c33;
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.25;
  font-weight: 500;
}
/* The tail, under the bubble (the same color, so only its point shows). */
.bubbles p::after {
  content: "";
  position: absolute;
  right: 6.5px;
  bottom: -11px;
  z-index: -1;
  width: 42.6px;
  height: 35.7px;
  background: #f1f1fa;
  -webkit-mask: var(--tail) no-repeat 0 0 / 100% 100%;
          mask: var(--tail) no-repeat 0 0 / 100% 100%;
}
.js .bubbles p { opacity: 0; translate: 0 14px; scale: 0.94; transform-origin: 90% 100%; transition: opacity 0.45s ease, translate 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.2), scale 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.2); }
.js .bubbles.in p { opacity: 1; translate: none; scale: 1; }
@media (prefers-reduced-motion: reduce) { .js .bubbles p { opacity: 1; translate: none; scale: 1; transition: none; } }
@media (max-width: 640px) { .bubbles, .bubble-row { gap: 20px 14px; } .bubbles p { padding: 13px 18px; } }

/* ---------- Get in the mood ----------
   The outline: the colors of the desktop picture behind the section, very blurred, going to the night of Take command
   at the bottom (Oliver, 18 November 2026: "make the bg match the take command bg"; before, white); the
   title and the lead in white; a MacBook (1134 px of 1448), 9 px into the head, with the desktop picture of Dopamine
   Chamber on its screen and the narrow Stereo window of that album in the middle of it (Oliver, 17 November 2026: "you
   forgot the screen inside the laptop"), then other albums one after the other (Oliver: "can you get a couple more
   albums for the get in the mood section?"). The screen of the picture of the MacBook is transparent: the desktop picture
   and the window are under it. The places are the places of the outline, in % of the MacBook (1134 × 746): the screen
   116, 84, 901 × 578; the window 387, 169, 360 × 423. */
.mood { background: #010014; color: #fff; --lead: rgb(255 255 255 / 0.92); }
/* Take command has the same night: only the space under the MacBook, as between two white sections. */
.mood + .on-night { --pad-top: 0px; }
.mood-glow { position: absolute; inset: -10% -10% 30%; -webkit-mask-image: linear-gradient(#000 40%, transparent); mask-image: linear-gradient(#000 40%, transparent); }
.mood-glow img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(80px) saturate(1.15); scale: 1.15; }
.mood h2 { text-shadow: 0 1px 24px rgb(0 0 0 / 0.12); }
.macbook { position: relative; width: min(1134px, 100% - 2 * var(--side)); margin: -9px auto 0; aspect-ratio: 1800 / 1184; container-type: inline-size; }
.macbook-frame { position: absolute; inset: 0; width: 100%; height: 100%; }
.macbook-screen { position: absolute; left: 10.23%; top: 11.26%; width: 79.45%; height: 77.48%; overflow: hidden; background: #000; border-radius: 1.2% / 1.9%; }
.macbook-screen > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* The window: its corners and its shadow at the scale of the MacBook (10 and 30 px at 1134 px). */
.macbook .window-shot {
  position: absolute;
  left: 34.14%;
  top: 22.61%;
  width: 31.72%;
  aspect-ratio: 720 / 844;
  overflow: hidden;
  border-radius: 0.86cqw;
  box-shadow: 0 0 0 0.05cqw rgb(0 0 0 / 0.5), 0 1.1cqw 2.6cqw rgb(0 0 0 / 0.45);
}
/* The pictures of the window, the screen, and the glow lie on each other while the album changes. */
.window-shot img, .macbook-screen > img, .mood-glow img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Listen in Stereo ---------- */
.listen { background: #010014; color: #f2f2f2; --lead: #9a9a9a; padding-top: clamp(96px, 11vw, 160px); padding-bottom: 72px; text-align: center; }
/* On the night of Take command, as Get in the mood (Oliver, 18 November 2026: "match listen to stereo at the bottom as
   well"; before, #111): only the space under the launcher, as between two white sections. */
.on-night + .listen { padding-top: 0; }
.listen h2 { font-size: clamp(48px, 7.4vw, 88px); }
.listen .feature-head p { max-width: 560px; }
/* The Buy button keeps the side margins of the section: on a phone it touched both screen edges (17 November 2026). */
.listen .buy-block { --field: #9a9a9a; --button: #f2f2f2; --button-text: #111; --outline: #9a9a9a; margin-top: 40px; padding: 0 var(--side); }

/* The footer, on the color of the last section (the night): the copyright, Twitter, Privacy, Terms, and the hobby logo. */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 24px 16px calc(36px + env(safe-area-inset-bottom));
  background: #010014;
  color: #9a9a9a;
  font-size: 12px;
  font-weight: 500;
  line-height: 22px;
  letter-spacing: -0.03em;
}
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: #f2f2f2; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 28px; }
.footer-links > * { white-space: nowrap; }
.footer-logo-link { display: inline-flex; translate: 0 2px; }
/* The stroke of the line goes past the box of the file at the bottom of the y (Oliver's iPhone, 14 November 2026). */
.footer-logo { width: 78px; height: auto; overflow: visible; }

/* ---------- Phones ----------
   Oliver's phone frame in Figma ("Stereo website · Phone (393)", 17 November 2026), made consistent ("These are
   eyeballed so iron out any inconsistency"; his choices: 24 px above each title and 24 px from the head to the content).
   The heads are at the left. The titles are 36 px (Listen in Stereo 40 px) with 16 px to the lead; 80 px under the content (the frames with room
   for a shadow have that much less). Two white sections in a row are 40 px apart. A phone shows less: three cards, four
   questions, and smaller records, bars, and shelf. */
@media (max-width: 640px) {
  .feature { --pad-top: 24px; --head-gap: 24px; }
  /* The heads at the left, also in Listen in Stereo with its buttons. */
  .feature-head, .listen { text-align: left; }
  .listen .buy-block { align-items: flex-start; }
  .listen .buy-buttons { justify-content: flex-start; }
  .feature h2 { font-size: 36px; }
  .feature-head p { margin-top: 16px; }
  .on-white:has(+ .on-white) { --pad-bottom: 40px; }
  /* Put on a record: everything at 170 / 220 of the size before. */
  .record { --cover: 170px; --songs-gap: 22px; }
  .record-songs { height: 6px; }
  .record-bar { gap: 3px; }
  /* Remember this one?: the two small cards (Wildflower, Keep It Like A Secret) and the wide card of private music under
     them (Oliver, 17 November 2026: "replace going blank with private music"). */
  .home-card:not(:nth-child(2), :nth-child(3), :nth-child(7)) { display: none; }
  .story { --pad-bottom: 80px; }
  /* Your years in music: smaller bars and room, a smaller radius, 3 covers closer together. */
  .years-strip { --bars: 64px; --bar: 3px; --above: 14px; --below: 11px; }
  .years-field { border-radius: 6px; }
  .years-column { margin-top: 28px; }
  .years-covers { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  /* The shelf fits its records to the height of the frame (shelf/): 193 px, with no title row. */
  .shelf-frame { height: 205px; margin-top: var(--head-gap); }
  /* Just ask: the first two rows, without the birthday. */
  .bubble-row:nth-child(2) p:nth-child(3), .bubble-row:nth-child(3) { display: none; }
  /* The picture of the MacBook has room at its top, so it comes a little closer. */
  .macbook { margin-top: calc(var(--head-gap) - 6px); }
  .listen h2 { font-size: 40px; }
  /* The footer at the left, as the heads (Oliver, 17 November 2026: "Align footer left on mobile"). */
  .site-footer { justify-content: flex-start; }
  /* With Privacy and Terms (18 November 2026), 28 px gaps wrapped "© 2026 hobby" on a phone of 375 px, and 20 px was
     1 px too wide. */
  .site-footer, .footer-links { column-gap: 16px; }
}
