/* A collection is one work in the archive, with one player and a growing index. */
.collection-sidebar {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 32px 26px 22px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow-y: auto;
  scrollbar-width: thin;
}
.collection-heading { margin-bottom: 32px; }
.collection-heading h1 { margin: 19px 0 20px; font-size: clamp(32px, 3.15vw, 56px); font-weight: 600; line-height: .98; letter-spacing: -.055em; }
.collection-heading h1 span { display: block; }
.collection-list { margin: auto 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.collection-list li { border-bottom: 1px solid var(--line); }
.collection-choice { position: relative; display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 13px; align-items: center; width: 100%; padding: 14px 0; border: 0; background: transparent; text-align: left; cursor: pointer; }
.collection-choice::before { content: ""; position: absolute; inset: 14px auto 14px -13px; width: 2px; background: transparent; }
.collection-choice[aria-pressed="true"]::before { background: var(--accent); }
.collection-thumb { display: block; aspect-ratio: 16/10; overflow: hidden; background: #171717; }
.collection-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; filter: saturate(.65) brightness(.8); transition: filter 220ms ease; }
.collection-choice:hover img, .collection-choice:focus-visible img, .collection-choice[aria-pressed="true"] img { filter: none; }
.collection-track { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.collection-track strong { font-size: 18px; font-weight: 500; line-height: 1.12; letter-spacing: -.025em; overflow-wrap: anywhere; }
.collection-track small, .collection-index { color: var(--muted); font: 400 12px/1.2 var(--font-mono), monospace; }
.collection-choice[aria-pressed="true"] .collection-index { color: var(--accent); }
.collection-stage { grid-column: 2; grid-row: 1; display: grid; grid-template-rows: minmax(0, 1fr) auto; min-width: 0; min-height: 0; border-bottom: 1px solid var(--line); }
.collection-stage .video-frame { grid-column: 1; grid-row: 1; }
.collection-caption { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 28px; border-top: 1px solid var(--line); }
.collection-caption > div { display: flex; align-items: baseline; gap: 22px; min-width: 0; }
.collection-caption > div > span { flex-shrink: 0; color: var(--accent); font: 400 12px/1.2 var(--font-mono), monospace; }
.collection-caption h2 { margin: 0; font-size: 25px; font-weight: 500; letter-spacing: -.04em; }
@media(max-width:800px){
  .collection-page { height: 100svh; overflow-y: auto; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto auto; align-content: start; }
  .collection-sidebar { display: contents; }
  .collection-heading { grid-column: 1; grid-row: 1; margin: 0; padding: 24px 18px; border-bottom: 1px solid var(--line); }
  .collection-heading h1 { margin: 12px 0 10px; font-size: clamp(30px, 7.4vw, 48px); }
  .collection-heading h1 span { display: inline; }
  .collection-heading h1 span::before { content: " "; }
  .collection-stage { grid-column: 1; grid-row: 2; }
  .collection-stage .video-frame { aspect-ratio: 16/9; }
  .collection-caption { padding: 14px 18px; gap: 12px; }
  .collection-caption > div { gap: 12px; }
  .collection-caption h2 { font-size: 20px; }
  .collection-caption > div > span { font-size: 11px; }
  .collection-list { grid-column: 1; grid-row: 3; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 18px; gap: 18px 12px; border-top: 0; }
  .collection-list li { min-width: 0; border: 0; }
  .collection-choice { display: flex; flex-direction: column; align-items: stretch; gap: 10px; padding: 0 0 10px; height: 100%; }
  .collection-thumb { width: 100%; }
  .collection-track { gap: 5px; }
  .collection-track strong { font-size: 15px; }
  .collection-track small { font-size: 11px; }
  .collection-index { display: none; }
  .collection-choice::before { inset: auto 0 0; width: auto; height: 2px; }
  .collection-page .project-nav { grid-row: 4; border-top: 1px solid var(--line); }
}
/* Equal-sized archive tiles; only the number of rows grows. */
.home-page { height: 100vh; overflow-y: auto; scrollbar-width: none; }
.home-page::-webkit-scrollbar { display: none; }
.works-grid { height: auto; grid-template-rows: none; grid-auto-rows: auto; }
.work-card { aspect-ratio: 1; }
.work-card-collection .work-details { grid-template-columns: 1fr; }
.work-card-collection .work-details h2 { max-width: 14ch; }
.work-card-collection .work-details > span { margin-top: 5px; }
.symbol-title { font-family: var(--font-mono), monospace; letter-spacing: -.06em; }
.project-title h1.symbol-title { font-size: clamp(23px,2.5vw,46px); overflow-wrap: normal; }
.works-grid--reveal-first .work-card:nth-child(9) { animation-delay: .85s; }
.works-grid--reveal-first .work-card:nth-child(10) { animation-delay: 1.4s; }
.works-grid--reveal-first .work-card:nth-child(11) { animation-delay: .45s; }
html.preview-home-return .works-grid--reveal-first .work-card:nth-child(9) { animation-delay: .4s; }
html.preview-home-return .works-grid--reveal-first .work-card:nth-child(10) { animation-delay: .7s; }
html.preview-home-return .works-grid--reveal-first .work-card:nth-child(11) { animation-delay: .2s; }

/* A tangible archive button, without the previous vertical dividers. */
.project-nav { align-items: center; }
.project-nav-side { height: 100%; }
.project-nav-side:first-child, .project-nav-next { border: 0; }
.all-works { display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 12px; align-self: center; height: 48px; padding: 0 22px; color: var(--ink); background: var(--paper); font-size: 12px; transition: background 180ms ease; }
.all-works > span { padding: 0; background: none; }
.all-works svg { flex: 0 0 14px; width: 14px; height: 14px; }
.all-works:hover, .all-works:focus-visible { color: var(--ink); background: var(--accent); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.collection-page { grid-template-columns: minmax(290px,29vw) minmax(0,1fr); }
.collection-heading h1 { margin-bottom: 0; }
.collection-caption { min-height: 76px; }
.collection-heading, .collection-list { animation: element-reveal 650ms cubic-bezier(.22,1,.36,1) .15s both; }
.collection-list { animation-delay: .5s; }
.collection-stage .video-frame { border-bottom: 0; }

/* Quotes appear only after approved text and attribution are supplied. */
.about-page--quotes .about-copy h1 { margin-top: 30px; margin-bottom: 30px; }
.about-page--quotes .about-copy { overflow-y: auto; }
.quotes { margin-top: auto; padding-top: 32px; }
.quote-slide { margin: 0; }
.quote-slide:not([hidden]) { animation: element-reveal 500ms ease both; }
.quote-slide blockquote { margin: 0 0 20px; font-size: clamp(22px,2vw,34px); font-weight: 500; line-height: 1.18; letter-spacing: -.035em; }
.quote-slide figcaption { display: flex; flex-direction: column; gap: 7px; font: 400 12px/1.4 var(--font-mono),monospace; }
.quote-slide figcaption strong { font-weight: 500; }
.quote-slide figcaption span { color: var(--muted); }
.quote-controls { display: flex; align-items: center; gap: 12px; margin-top: 20px; font: 400 12px/1 var(--font-mono),monospace; }
.quote-controls button { border: 0; background: transparent; cursor: pointer; padding: 12px; }
.quote-controls button:hover { color: var(--accent); }
.quote-controls [data-quote-pause] { margin-left: auto; color: var(--muted); }
@media(max-width:800px) {
 .works-grid { grid-template-rows: none; }
 .all-works { height: 40px; padding: 0 12px; gap: 8px; font-size: 10px; }
 .all-works svg { width: 12px; height: 12px; flex-basis: 12px; }
 .project-nav { grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); }
 .project-nav-side span { max-width: 100%; font-size: 11px; }
 .collection-page { grid-template-columns: minmax(0,1fr); }
 .collection-caption { min-height: 57px; }
 .collection-page .project-nav { height: 76px; }
 .collection-heading h1 { margin-bottom: 0; }
 .about-page--quotes { overflow-y: auto; }
 .about-page--quotes .about-copy { height: auto; overflow: visible; }
 .about-page--quotes .about-copy h1 { margin-block: 24px; }
 .about-page--quotes .recognition { height: auto; min-height: 460px; }
 .quotes { padding-block: 28px 12px; }
}
@media(prefers-reduced-motion:reduce) {
 .collection-heading, .collection-list, .quote-slide:not([hidden]) { animation: none; }
}

/* Stack all quotes in one grid cell so the tallest sets the shared height.
   Invisible slides remain in layout, but cannot be focused or read. */
.quotes { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; align-content: start; }
.quote-slide { grid-column: 1; grid-row: 1; min-width: 0; align-self: start; }
.quote-slide[hidden] { display: block; visibility: hidden; pointer-events: none; }
.quote-controls { grid-column: 1; grid-row: 2; }
.quote-controls [data-quote-count] { min-width: 7ch; text-align: center; font-variant-numeric: tabular-nums; }
.quote-controls [data-quote-pause] { min-width: 7ch; }
.quote-slide figcaption a { text-decoration: none; }
.quote-slide figcaption a:hover { color: var(--accent); }
.quotes { min-height: 235px; }

/* A quiet scroll affordance, independent of where a row meets the viewport. */
.more-works {
 position: fixed; z-index: 15; bottom: max(18px, env(safe-area-inset-bottom));
 left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 16px;
 border: 1px solid rgba(255,255,255,.24); border-radius: 2px;
 padding: 12px 17px; background: rgba(9,9,9,.9); color: var(--paper);
 font: 400 12px/1.2 var(--font-mono), monospace; letter-spacing: .035em;
 cursor: pointer; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.more-works[hidden] { display: none; }
.more-works:hover { border-color: var(--paper); }
.more-works span { font-size: 17px; line-height: 1; }
.home-page { height: 100svh; }

/* Readable type, with content-led page height instead of compressed panels. */
.readable-page { height: 100svh; overflow-y: auto; overflow-x: hidden; }
.readable-page .page-canvas { height: auto; min-height: calc(100svh - var(--header-h)); }
.readable-page .page-label { font-size: 1rem; line-height: 1.4; }
.about-body { font-size: 1rem; line-height: 1.55; }
.recognition { grid-template-rows: auto auto; align-content: start; }
.recognition ul { grid-template-rows: repeat(7, auto); column-gap: 24px; }
.recognition li { padding: 12px 0; gap: 6px; }
.recognition li span { white-space: normal; overflow: visible; text-overflow: clip; font-size: 1rem; line-height: 1.3; overflow-wrap: anywhere; }
.recognition li small { font-size: .8125rem; line-height: 1.45; color: #b9b7b0; }
.recognition h2 { font-size: clamp(1.5rem, 2.4vw, 2.75rem); line-height: 1.1; }
.quote-slide figcaption, .quote-controls { font-size: .875rem; }
.quote-slide figcaption { line-height: 1.5; overflow-wrap: anywhere; }
.quote-controls button { min-width: 44px; min-height: 44px; }
.audio-intro > p:not(.page-label):not(.audio-labels) { font-size: 1rem; line-height: 1.5; }
.audio-labels > span, .stream-panel > span, .bandcamp-panel span { font-size: .875rem; line-height: 1.4; }
.audio-labels ul { font-size: 1rem; line-height: 1.5; gap: 10px 20px; color: #c8c5be; }
.audio-labels small { font-size: .8125rem; }
.audio-labels li { min-width: 0; }
.audio-intro h1 { margin-top: 28px; }
.external-panels { grid-template-rows: minmax(180px, 1.2fr) minmax(170px, 1fr); }
.stream-links { height: auto; min-height: 100px; flex: 1; }
.stream-panel { display: flex; flex-direction: column; }
@media (max-width: 1100px) {
 .about-page { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
 .recognition ul { grid-template-columns: minmax(0,1fr); grid-auto-flow: row; grid-template-rows: none; }
 .about-body { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 800px) {
 .readable-page .page-canvas { height: auto; overflow: visible; }
 .about-page--quotes .about-copy { height: auto; padding-bottom: 24px; overflow: visible; }
 .about-page--quotes .about-copy h1 { font-size: clamp(1.75rem, 7vw, 2.125rem); margin-block: 24px; }
 .about-page--quotes .recognition { height: auto; min-height: 0; padding-top: 24px; }
 .recognition ul { grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-rows: repeat(7,auto); grid-auto-flow: column; }
 .recognition h2 { margin-bottom: 20px; }
 .audio-page { grid-template-rows: auto auto; }
 .audio-intro { padding: 24px var(--page-gutter) 28px; }
 .audio-intro h1 { font-size: clamp(2.25rem, 10vw, 3rem); margin: 28px 0 20px; line-height: .98; }
 .audio-intro > p:not(.page-label):not(.audio-labels) { margin-bottom: 24px; }
 .audio-labels > span, .stream-panel > span { margin-bottom: 12px; }
 .audio-labels ul { display: grid; grid-template-columns: 1fr; gap: 9px; }
 .audio-labels li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
 .external-panels { grid-template-rows: auto auto; }
 .bandcamp-panel { min-height: 170px; padding: 22px var(--page-gutter); gap: 30px; }
 .bandcamp-panel strong { font-size: clamp(2.5rem, 10vw, 3.25rem); line-height: .95; }
 .stream-panel { min-height: 180px; padding: 22px var(--page-gutter); }
 .stream-links { min-height: 84px; }
 .stream-links svg { width: 34px; height: 34px; }
}
@media (max-width: 480px) {
 .recognition ul { grid-template-columns: minmax(0,1fr); grid-template-rows: none; grid-auto-flow: row; }
}
/* Keep enlarged text inside narrow viewports; let words and rows grow. */
.audio-page, .external-panels, .bandcamp-panel, .stream-panel { min-width: 0; }
.audio-intro h1, .bandcamp-panel strong { overflow-wrap: anywhere; }
@media (max-width: 800px) {
 .audio-page { grid-template-columns: minmax(0, 1fr); }
 .audio-labels li { flex-wrap: wrap; column-gap: 12px; row-gap: 2px; }
 .audio-labels small { margin-left: auto; }
}
@media (max-width: 360px) {
 .quote-controls { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 8px; }
 .quote-controls [data-quote-count] { min-width: 0; }
 .quote-controls [data-quote-pause] { grid-column: 1 / -1; justify-self: end; }
}
/* A quieter label list: the body typeface, with compact mono metadata. */
.audio-labels { margin-top: 6px; }
.audio-labels > span { font-size: .8125rem; margin-bottom: 14px; }
.audio-labels ul { font-family: var(--font-display), Arial, sans-serif; font-size: .9375rem; line-height: 1.5; letter-spacing: 0; color: #c8c5be; }
.audio-labels small { font: 400 .8125rem/1.5 var(--font-mono), monospace; color: #96958f; }
@media (max-width:800px) { .audio-labels ul { gap: 7px; } }
/* Reveal the quote, attribution and controls in the page's existing rhythm. */
.quotes-ready:not(.quotes-revealed) { visibility: hidden; }
.quotes .quote-slide:not([hidden]) { animation: none; }
.quotes-revealed .quote-slide:not([hidden]) blockquote { animation: element-reveal 650ms cubic-bezier(.22,1,.36,1) both; }
.quotes-revealed .quote-slide:not([hidden]) figcaption { animation: element-reveal 600ms cubic-bezier(.22,1,.36,1) .15s both; }
.quotes-revealed:not(.quotes-cycled) .quote-slide:not([hidden]) blockquote { animation-delay: 1.05s; }
.quotes-revealed:not(.quotes-cycled) .quote-slide:not([hidden]) figcaption { animation-delay: 1.25s; }
.quotes-revealed .quote-controls { animation: element-reveal 600ms cubic-bezier(.22,1,.36,1) 1.45s both; }
@media(prefers-reduced-motion:reduce) {
 .quotes-revealed .quote-slide:not([hidden]) blockquote,
 .quotes-revealed .quote-slide:not([hidden]) figcaption,
 .quotes-revealed .quote-controls { animation: none; }
}
