/* Home-only sections: the hero, the facts strip, the story band and the one
   dark contact band. Everything else the page uses comes from site.css. */

/* The hero is a wall of paintings opening like a concertina: small and flat
   where the words are, growing and turning toward the viewer as it reaches
   each edge, and running off both sides of the screen. The middle stays
   narrow so the headline and the lead have the centre of the page to
   themselves. */
.hero { display: flex; flex-direction: column; align-items: center; gap: 26px;
  padding-block: 56px 64px; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-words { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.hero-words .lead { max-width: 54ch; }
.hero-below { gap: 26px; }
.hero .button-row { justify-content: center; }

.fan { width: 100%; display: flex; align-items: center; justify-content: center;
  perspective: 1500px; perspective-origin: center; }
.fan-card { flex: 0 0 auto; display: block; height: calc(var(--k) * 1vw); max-height: calc(var(--k) * 15px);
  margin-inline: calc(var(--pull) * -1vw); border-radius: 6px; overflow: hidden; background: var(--mat);
  transform: rotateY(calc(var(--turn) * 1deg)) translateZ(calc(var(--near) * 1px));
  box-shadow: 0 18px 36px -24px rgba(23, 21, 27, .55);
  transition: transform 420ms ease, height 420ms ease; }
.fan-card img { width: 100%; height: 100%; object-fit: cover; }
.fan-card:hover { transform: rotateY(calc(var(--turn) * 0.55deg)) translateZ(calc(var(--near) * 1px + 30px)); }

@media (max-width: 1100px) {
  .fan-card { height: calc(var(--k) * 1.5vw); margin-inline: calc(var(--pull) * -1.5vw); }
  .fan-card[data-ring="4"] { display: none; }
}
@media (max-width: 760px) {
  .hero { padding-block: 36px 44px; gap: 20px; }
  .fan-card { height: calc(var(--k) * 3.1vw); margin-inline: calc(var(--pull) * -3.1vw); max-height: none; }
  /* Three wide canvases do not fit across a phone, and a headline that says
     make room for colour should not sit over a band with none in it. The
     middle painting stays; its two siblings give way to the ones either side
     of them, which are in colour. */
  .fan-card[data-ring="1"], .fan-card[data-ring="3"] { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .fan-card, .fan-card:hover { transition: none; }
}

/* Three plain facts, one hairline rule above and below. */
.facts { border-block: 1px solid var(--line); }
.facts ul { list-style: none; margin: 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 40px; padding: 20px var(--gutter); width: min(100%, var(--container)); margin-inline: auto; font-size: var(--text-ui); font-weight: 500; }
.facts li { display: flex; align-items: center; gap: 10px; }
.facts li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

.home-selection { display: flex; flex-direction: column; gap: 48px; padding-block: var(--section-y); }

/* Story band: the page's only tinted section. */
.home-story { background: var(--bone-deep); }
.home-story .inner { display: flex; flex-wrap: wrap; align-items: center; gap: 48px 80px; padding-block: var(--section-y); }
.home-story .media { flex: 1 1 440px; min-width: 0; }
.home-story .media img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius-media); }
.home-story .text { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.home-story h2 { font-size: var(--text-display-l); line-height: 1; }
.home-story .text > p { font-size: 18px; line-height: 1.6; color: var(--muted-strong); }
.generations { list-style: none; margin-top: 8px; padding: 0; width: 100%; border-top: 1px solid var(--line-strong); }
.generations li { display: flex; flex-wrap: wrap; gap: 4px 20px; padding-block: 20px; border-bottom: 1px solid var(--line-strong); }
.generations .role { flex: 0 0 96px; padding-top: 6px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-strong); }
.generations .who { flex: 1 1 260px; display: flex; flex-direction: column; gap: 4px; }
.generations strong { font-family: var(--display); font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.generations .who span { font-size: var(--text-ui); line-height: 1.5; color: var(--muted-strong); }

/* The one dark band on the page. */
.contact-band { background: var(--ink); color: var(--bone); }
.contact-band .inner { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px 64px; padding-block: 88px; }
.contact-band .text { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.contact-band h2 { font-size: var(--text-display-m); line-height: 1.02; }
.contact-band p { font-size: 18px; line-height: 1.55; color: var(--on-dark-muted); max-width: 48ch; }
.contact-band a:hover { color: inherit; }

@media (max-width: 760px) {
  /* On a phone the hero is read, not surveyed: let it be as tall as its
     content and give the painting a shape that fits on the screen under it,
     rather than a column's worth of scrolling before the art appears. */
  .hero { min-height: 0; }
  .hero-panel { gap: 28px; padding-block: 28px 32px; }
  .hero-words { gap: 20px; }
  .hero-art { flex-basis: 100%; aspect-ratio: 5 / 4; }
  .hero-art img { object-position: center 35%; }
}
@media (max-width: 600px) {
  .home-story .inner, .contact-band .inner { padding-block: 56px; }
  .generations .role { flex-basis: 100%; padding-top: 0; }
}
