/* Full-bleed chapter opener.
   Centred-symmetrical rather than the left-aligned asymmetry used
   elsewhere — it reads ceremonial and gives the room a beat of silence
   before content (references §3, Barozzi Veiga). Condensed type is the
   lever that delivers scale without consuming the page (MVRDV). */

.chapter {
  position: relative;
  min-height: clamp(260px, 44vh, 500px);
  display: grid; place-items: center;
  overflow: hidden;
  background: var(--ink);
}

.chapter__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  filter: var(--clamp-light);
}

.chapter__in {
  position: relative; z-index: 2;
  text-align: center; color: var(--on-image);
  padding: clamp(28px, 5vh, 60px) var(--gutter);
  /* NOT ch — this container inherits 15px body type while the heading
     inside renders at up to 84px, so a ch measure here resolves against
     the wrong font and strangles the headline into three lines. */
  max-width: min(92vw, 1180px);
}

.chapter__n {
  font-family: var(--font-display);
  font-size: var(--t-075); font-weight: 800;
  letter-spacing: var(--tr-wide); text-transform: uppercase;
  display: block; margin-bottom: 14px; opacity: .9;
  font-variant-numeric: tabular-nums;
}

/* Type at architectural scale, treated as image rather than heading
   (references §3, Tadao Ando). Restraint holds because only scale is
   doing the work — no ornament, no second colour. */
.chapter__h {
  font-family: var(--font-display);
  font-size: clamp(30px, 5.4vw, 84px);
  font-weight: 700; letter-spacing: -.028em; line-height: .97;
  margin: 0; text-wrap: balance;
}

.chapter__sub {
  margin-top: 16px; font-size: var(--t-300);
  opacity: .86; max-width: 46ch; margin-inline: auto;
}

.chapter__rule {
  width: 40px; height: 2px; background: currentColor;
  margin: 22px auto 0; opacity: .7;
}

@media (prefers-reduced-motion: no-preference) {
  .view.active .chapter__img { animation: chapterSettle 1.4s var(--ease) both; }
  @keyframes chapterSettle {
    from { transform: scale(1.05); }
    to   { transform: scale(1); }
  }
}
