/* The start page (ADR 0089, 0091), on top of site.css and pages.css. One table in a dark room fills the first
   screen, the headline says what this is, one action. After it the buyer's sections in order (their blocks are
   in venues.css) and the catalogue as a strip of cards. Vermilion only asks for a press. */
.page-home { background: var(--deep); }

/* The table. The poster and the live table share one box and one framing, so the one fades into the other. */
.home-hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; align-items: end; overflow: hidden; isolation: isolate; }
.home-stage { position: absolute; inset: 0; z-index: -1; background: #050505; }
.home-stage picture, .home-poster, .home-gl { position: absolute; inset: 0; width: 100%; height: 100%; }
.home-poster { object-fit: cover; object-position: 75% 70%; transform: scale(1.12); transform-origin: 75% 70%; }
.home-gl { opacity: 0; transition: opacity 1.4s ease-out; }
.home-gl.on { opacity: 1; }
/* the words keep their own dark: from the left on wide screens, from below on tall ones */
.home-stage::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(5,5,5,.72) 0%, rgba(5,5,5,.38) 30%, rgba(5,5,5,0) 52%), linear-gradient(0deg, rgba(11,11,10,1) 0%, rgba(11,11,10,0) 18%); }

.home-copy { position: relative; padding: 0 var(--gut) clamp(96px, 17vh, 170px); max-width: calc(min(46vw, 760px) + var(--gut)); }
.home-copy h1 { font-size: clamp(34px, 3.5vw, 60px); line-height: 1.02; letter-spacing: -.035em; font-weight: 500; text-wrap: balance; }
.home-lead { margin-top: clamp(16px, 2.4vh, 24px); font-size: clamp(17px, 1.25vw, 20px); line-height: 1.38; letter-spacing: -.005em; color: rgba(244,242,238,.88); max-width: 31em; text-wrap: pretty; }
.home-note { margin-top: 12px; font-size: 14px; line-height: 1.45; color: rgba(244,242,238,.7); max-width: 38em; }
.home-acts { margin-top: clamp(26px, 4vh, 40px); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 34px; }
.home-acts .quiet { color: rgba(244,242,238,.86); }
.home-acts .quiet:hover { color: var(--on-dark); }

/* the piece on the table, named where it plays */
.home-label { position: absolute; right: var(--gut); bottom: clamp(36px, 6vh, 56px); display: flex; align-items: center; gap: 12px; font-size: 13px; letter-spacing: .02em; color: rgba(244,242,238,.7); }
.home-label a { text-decoration: none; display: inline-flex; gap: 10px; align-items: baseline; }
.home-label a:hover .home-name { border-bottom-color: currentColor; }
.home-name { font-weight: 600; color: var(--on-dark); border-bottom: 1px solid transparent; transition: border-color .25s; }
.home-kind { text-transform: uppercase; letter-spacing: .14em; font-size: 11px; }
.home-label .ai { position: static; }
/* the table runs on its own; one press holds it, the next lets it go on (WCAG 2.2.2) */
.home-hold { width: 36px; height: 36px; padding: 0; border-radius: 50%; border: 1px solid rgba(244,242,238,.34); background: rgba(11,11,10,.5); color: var(--on-dark);
  display: grid; place-items: center; cursor: pointer; transition: background .25s, border-color .25s; }
.home-hold[hidden] { display: none; }
.home-hold:hover, .home-hold:focus-visible { background: rgba(11,11,10,.85); border-color: rgba(244,242,238,.7); }
.home-hold::before { content: ""; width: 8px; height: 10px; border-left: 2px solid currentColor; border-right: 2px solid currentColor; box-sizing: border-box; }
.home-hold[data-state="resting"]::before { width: 0; height: 0; margin-left: 2px; border-style: solid; border-width: 5px 0 5px 8px; border-color: transparent transparent transparent currentColor; }
.home-label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--light-on-dark); box-shadow: 0 0 0 4px rgba(255,107,71,.16); opacity: 0; transition: opacity .6s; }
.home-hero.live .home-label::before { opacity: 1; }
.home-hero.held .home-label::before { opacity: .35; }
.home-label.swap a { animation: home-swap .7s var(--ease); }
@keyframes home-swap { from { opacity: 0; transform: translateY(6px); } }

/* the first words arrive after the room, one beat apart */
.home-copy > * { animation: home-in .9s var(--ease) .15s both; }
.home-copy > :nth-child(2) { animation-delay: .27s; }
.home-copy > :nth-child(3) { animation-delay: .39s; }
.home-copy > :nth-child(4) { animation-delay: .51s; }
@keyframes home-in { from { opacity: 0; transform: translateY(18px); } }

/* The catalogue: a strip of cards, each a still, its name, its kind and artist; it scrolls sideways on a phone. */
.home-see { padding-top: clamp(72px, 12vh, 140px); }
.acards { list-style: none; margin: 22px calc(-1 * var(--gut)) 0; padding: 0 var(--gut) 6px; display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; }
.acards::-webkit-scrollbar { display: none; }
.acards li { flex: none; width: 168px; }
.acards a { display: block; text-decoration: none; }
.acard-pic { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: #161615; }
.acard-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.acards a:hover img { transform: scale(1.04); }
.acards b { display: block; margin-top: 10px; font-size: 16px; font-weight: 600; line-height: 1.2; }
.acards b + span { display: block; margin-top: 2px; font-size: 13px; color: var(--soft); }
.home-made .acts { margin-top: 18px; }
.home-close { padding-bottom: clamp(96px, 14vh, 160px); }

@media (min-width: 761px) {
  .acards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); overflow: visible; margin: 28px 0 0; padding: 0; gap: 28px 20px; }
  .acards li { width: auto; }
}

@media (max-width: 1080px) {
  .home-copy { max-width: calc(min(60vw, 640px) + var(--gut)); }
}

/* Tall screens: the room in its own framing, sphere at the top, and the words under the table, not on it. */
@media (max-aspect-ratio: 9/10) {
  .home-hero { display: flex; flex-direction: column; align-items: stretch; min-height: 0; }
  .home-stage { position: relative; inset: auto; height: min(100vh, 150vw); height: min(100svh, 150vw); }
  .home-poster { object-position: 50% 0%; transform: none; }
  .home-stage::after { background: linear-gradient(0deg, rgba(11,11,10,1) 0%, rgba(11,11,10,.7) 12%, rgba(11,11,10,0) 26%); }
  .home-copy { max-width: none; margin-top: -88px; padding-bottom: 30px; }
  .home-label { position: static; padding: 0 var(--gut) 48px; }
}

@media (max-width: 760px) {
  .home-copy h1 { font-size: clamp(30px, 8.4vw, 40px); }
  .home-lead { font-size: 16px; }
  .home-acts { gap: 2px 26px; margin-top: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .home-copy > * { animation: none; }
  .acard-pic img { transition: none; }
  .home-gl { display: none; }
}

/* fifth round (audit 2026-12-03): on a tall screen the piece's name follows the words closely instead of floating
   alone a screen below its picture; its link and the hold are full-size targets */
@media (max-aspect-ratio: 9/10) { .home-label { padding-bottom: 40px; } }
.home-label a { min-height: 44px; align-items: center; }
.home-hold { width: 44px; height: 44px; }
