/* History page: one band per year. The first frame fills the band under a gradient, the year and
   the line sit on it bottom-left; up to four more frames in a strip below. */

.hy-years { background: #fff; }

.hy-year__band { position: relative; height: 72vh; min-height: 420px; max-height: 680px; overflow: hidden; color: var(--hy-milk); }
.hy-year__band picture, .hy-year__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hy-year__shade {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(17, 18, 20, .90) 0%, rgba(17, 18, 20, .45) 45%, rgba(17, 18, 20, .05) 100%);
}
.hy-year__text {
    position: absolute; left: 0; right: 0; bottom: 0;
    max-width: 1140px; margin: 0 auto; padding: 0 20px 32px;
}
.hy-year__num {
    margin: 0; font: 800 clamp(72px, 14vw, 160px)/.85 Roboto, sans-serif; letter-spacing: -.04em;
}
.hy-year__line { margin: 14px 0 0; max-width: 46ch; font: 400 clamp(17px, 2vw, 21px)/1.5 Roboto, sans-serif; }

/* The strip: 2 across on a phone, as many as there are from 900. A 2 px ink seam, no gaps of ground. */
.hy-year__strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; margin: 0; padding: 0; list-style: none; background: var(--hy-ink); }
.hy-year__strip li { aspect-ratio: 4 / 3; overflow: hidden; }
.hy-year__strip img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.hy-year__strip li:hover img { transform: scale(1.05); }
.hy-year__strip--1 { grid-template-columns: 1fr; }
.hy-year__strip--3 li:first-child { grid-column: span 2; }

/* A year without frames: a text band on white, the run of years stays whole. */
.hy-year--text { border-top: 1px solid var(--hy-line); border-bottom: 1px solid var(--hy-line); }
.hy-year--text + .hy-year--text { border-top: 0; }
.hy-year__plain { max-width: 1140px; margin: 0 auto; padding: 44px 20px; }
.hy-year--text .hy-year__num { font-size: clamp(64px, 10vw, 112px); color: var(--hy-ink); }
.hy-year--text .hy-year__line { color: var(--hy-text); }

@media (min-width: 900px) {
    .hy-year__text { display: flex; gap: 40px; align-items: flex-end; padding: 0 24px 48px; }
    .hy-year__line { margin: 0; }
    .hy-year__words { padding-bottom: 12px; }
    .hy-year__strip, .hy-year__strip--3 { grid-template-columns: repeat(var(--n, 4), 1fr); }
    .hy-year__strip--1 { --n: 1; }
    .hy-year__strip--2 { --n: 2; }
    .hy-year__strip--3 { --n: 3; }
    .hy-year__strip--3 li:first-child { grid-column: auto; }
    .hy-year__strip li { aspect-ratio: auto; height: 200px; }
    .hy-year__plain { display: flex; gap: 48px; align-items: baseline; padding: 56px 24px; }
}

@media (prefers-reduced-motion: reduce) {
    .hy-year__strip img { transition: none; }
    .hy-year__strip li:hover img { transform: none; }
}
