/* Home: seven posters. Builds on site.css; only what this page adds. */

/* Type on this page measures the page column, so it holds when the cookie panel takes its side */
.home main { container-type: inline-size; }

/* Shared helpers for the posters */
.stack {
  display: grid;
  gap: clamp(1rem, 2.6vh, 1.75rem);
  align-content: center;
}
.stack > .pill, .stack > .cap { justify-self: start; }

/* 1. The opening: h1, contact sheet with slogan, tuition panel */
.first__name {
  display: block;
  max-width: 40em;
  margin-top: 0.5rem;
  font-family: var(--text);
  font-style: normal;
  font-size: 1.25rem;
  line-height: 1.4;
}
.first__study {
  display: grid;
  gap: clamp(1rem, 2.4vh, 1.5rem);
  align-content: start;
}
.offer {
  display: flex;
  flex-direction: column;
}
.offer__top { display: flow-root; }
.offer__top > * + * { margin-top: 0.5rem; }
.offer .stamp {
  width: 7rem;
  height: 7rem;
  padding: 0.5rem;
  margin: 0.5rem 0 0.5rem 1rem;
}
.offer .name-title a { text-decoration-thickness: 0.05em; }
.offer .pill-row {
  margin-top: auto;
  padding-top: 1.25rem;
}

/* 2. Choose: the passes once, then three pale bands */
.choose__bands {
  display: grid;
  gap: 0.75rem;
  align-content: center;
}
.choose__passes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
  justify-content: space-between;
  padding-inline: clamp(1.25rem, 2.4vw, 2.25rem);
  padding-bottom: 0.25rem;
}
.option { padding: clamp(1.1rem, 2vw, 1.75rem) clamp(1.25rem, 2.4vw, 2.25rem); }
.option > * + * { margin-top: 0.6rem; }
.option__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
  justify-content: space-between;
}

/* 3. Train: three short lines above the room */
.passlines li {
  display: grid;
  gap: 0.5rem;
  justify-items: start;
  align-content: start;
  font-size: var(--t-lead);
  line-height: 1.35;
}
.shot--strip { --frame: 3 / 2; }
.shot figcaption a { margin-left: 0.4em; }

/* 4. Plan: the tall fee panel */
.fee {
  display: flex;
  flex-direction: column;
}
.fee .price { font-size: clamp(1.75rem, 3.4vw, 3rem); }
.fee .price + .note { margin-top: 0.35rem; }
.fee .pill {
  align-self: flex-start;
  margin-top: auto;
}
.fee .facts + p { padding-bottom: 1rem; }

/* 6. Audition: the caption sits under the photograph */
.audition__shot { align-content: start; }

/* 5. The side route: a dotted room inside step 03 */
.side {
  margin-inline: var(--gutter);
  border: var(--line) dotted var(--ink);
  border-radius: var(--r);
}
.rates {
  display: grid;
  gap: 0 var(--gap);
}
.rates li {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  min-height: 2.75rem;
  padding-block: 0.5rem;
}
.rates a {
  display: flex;
  flex: 1 1 auto;
  align-items: baseline;
}
.rates a::after {
  content: "";
  flex: 1 1 1rem;
  min-width: 1rem;
  margin-left: 0.6rem;
  border-bottom: var(--line) dotted var(--ink);
}
.rates span { white-space: nowrap; }
.side__ask { display: grid; }

@media (min-width: 48rem) {
  .home .poster-title { font-size: 7.8cqw; }
  .first__name { font-size: 1.375rem; }

  /* The contact sheet takes the tuition panel's height; the slogan sits right under the captions */
  .first__study {
    grid-template-rows: minmax(0, 1fr) auto;
    align-content: stretch;
  }
  .first__study .triptych { grid-template-rows: minmax(0, 1fr); }
  .first__study .triptych figure {
    grid-template-rows: minmax(0, 1fr) auto;
    align-content: stretch;
  }
  .first__study .triptych img, .first__study .triptych video {
    height: 100%;
    min-height: 14rem;
    aspect-ratio: auto;
  }
  .offer { padding: clamp(1.25rem, 2.4vw, 2.25rem) clamp(1.25rem, 2vw, 2rem); }
  .offer .pill-row { flex-wrap: nowrap; }
  .offer .pill-row > * {
    flex: 1 1 0;
    min-width: 0;
    padding-inline: 0.5rem;
    font-size: 1rem;
  }

  .row1 { grid-row: 1; }
  .row2 { grid-row: 2; align-self: end; }
  .rows12 { grid-row: 1 / span 2; }
  .shot--strip { --frame: 7 / 2; }
  .train__say, .side__say { align-self: end; }
  .rates { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .side__ask { align-content: center; }
  .side {
    min-height: calc(100vh - 2rem);
    min-height: calc(100svh - 2rem);
  }

  /* The waiting-room picture runs the height of its row, caption seated under its corner */
  .audition__shot {
    grid-template-rows: minmax(0, 1fr) auto;
    align-content: stretch;
  }
  .audition__shot img {
    height: 100%;
    min-height: 20rem;
    aspect-ratio: auto;
  }

  /* 7. The door board fills the last window; the rest of the board stays empty */
  .home .door {
    display: grid;
    min-height: 100vh;
    min-height: 100svh;
  }
  .home .door__board { align-content: space-between; }
}

@media print {
  .side, .home .door { min-height: 0; }
}
