/* Sarah Byrne Acting Academy: page styles.
   Every section is one full-screen frame, like a film frame. Frames are sticky,
   so the next one slides over the last. Type sits bottom-left, where a caption
   sits on a television picture. */

@font-face {
  font-family: "Albert Sans";
  src: url("../assets/fonts/albert-sans-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Albert Sans";
  src: url("../assets/fonts/albert-sans-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--stock);
  color: var(--light);
  font-family: var(--font);
  font-weight: var(--w-book);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Without the script, the browser snaps each scroll to a whole frame. */
  scroll-snap-type: y mandatory;
  overscroll-behavior-y: none;
}
html.no-snap { scroll-snap-type: none; }

/* With the script running, it turns the pages itself: one swipe, wheel or key
   press moves exactly one frame at a set pace, so a hard flick can't run on. */
html.is-paged { scroll-snap-type: none; scroll-behavior: auto; }
html.is-paged,
html.is-paged body,
html.is-paged main,
html.is-paged .top { touch-action: pan-x pinch-zoom; }
/* Zoomed in with two fingers: hand scrolling back so the reader can move around. */
html.is-paged.is-zoomed,
html.is-paged.is-zoomed body,
html.is-paged.is-zoomed main,
html.is-paged.is-zoomed .top { touch-action: auto; }

body {
  margin: 0;
  font-size: var(--t-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video { display: block; max-width: 100%; }
h1, h2, h3, p, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  border-radius: 4px;
}

.skip {
  position: fixed;
  left: var(--pad);
  top: 12px;
  z-index: 2000;
  padding: 0.7em 1.1em;
  border-radius: var(--r-pill);
  background: var(--light);
  color: var(--stock);
  text-decoration: none;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

/* ---------- Type ---------- */

.display {
  font-size: var(--t-display);
  font-weight: var(--w-light);
  line-height: 1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.title {
  font-size: var(--t-title);
  font-weight: var(--w-light);
  line-height: 1.04;
  letter-spacing: -0.025em;
}
.lead {
  margin-top: clamp(12px, 1.8vh, 20px);
  max-width: 32em;
  font-size: var(--t-lead);
  line-height: 1.38;
  text-wrap: pretty;
}
.body {
  margin-top: clamp(10px, 1.6vh, 18px);
  max-width: 34em;
  font-size: clamp(1rem, 1.18vw, 1.125rem);
  color: var(--dim);
  text-wrap: pretty;
}

/* ---------- Buttons and links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0.8em 1.6em;
  border: 0;
  border-radius: var(--r-pill);
  font-weight: var(--w-medium);
  font-size: 1rem;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn--solid { background: var(--light); color: var(--stock); }
.btn--solid:hover { background: #fff; }
.btn--quiet {
  background: var(--hair);
  color: var(--light);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.btn--quiet:hover { background: rgba(245, 237, 226, 0.26); }
.btn--small { min-height: 44px; padding: 0.6em 1.25em; font-size: 0.9375rem; }
/* A play mark before the words: this button starts a film. */
.btn--play::before {
  content: "";
  margin-right: 0.65em;
  border-left: 0.62em solid currentColor;
  border-top: 0.4em solid transparent;
  border-bottom: 0.4em solid transparent;
}

.link {
  padding: 0.35em 0;
  border: 0;
  background: none;
  color: var(--light);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
  cursor: pointer;
}
.link:hover { text-decoration-thickness: 2px; }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: clamp(18px, 3vh, 30px);
}

/* ---------- Top bar ---------- */

.top {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 70;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: calc(var(--pad-y) * 0.75 + env(safe-area-inset-top)) var(--pad) 0;
  pointer-events: none;
}
.top > * { pointer-events: auto; }
.top__logo { display: block; }
.top__logo img { width: clamp(124px, 11.6vw, 178px); height: auto; }
.top__nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.6vw, 42px);
  margin-left: auto;
  padding-top: 4px;
}
.top__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: clamp(18px, 2.6vw, 42px);
  padding-top: 4px;
}
.top__nav a {
  padding: 0.6em 0;
  color: var(--light);
  text-decoration: none;
  text-underline-offset: 0.45em;
  text-decoration-thickness: 1px;
}
.top__nav a:hover,
.top__nav a[aria-current="true"] {
  text-decoration: underline;
  text-decoration-color: var(--gold);
}
.top__menu {
  display: none;
  min-height: 44px;
  padding: 0.5em 1.1em;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--hair);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  cursor: pointer;
}

/* ---------- The pager: up, down and back to the start, on the right edge ---------- */

.pager {
  position: fixed;
  right: calc(var(--pad) + env(safe-area-inset-right));
  top: 50%;
  z-index: 55;
  display: flex;
  flex-direction: column;
  width: 56px; /* the chat button's width, so the two sit on one centre line */
  padding: 6px;
  border-radius: var(--r-pill);
  background: var(--hair);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transform: translateY(-50%);
}
.pager[hidden] { display: none; }
.pager__btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--light);
  cursor: pointer;
  transition: background-color 0.2s linear, opacity 0.2s linear;
}
.pager__btn:hover { background: rgba(245, 237, 226, 0.2); }
.pager__btn:active { background: rgba(245, 237, 226, 0.32); }
.pager__btn[aria-disabled="true"] { opacity: 0.3; cursor: default; }
.pager__btn[aria-disabled="true"]:hover,
.pager__btn[aria-disabled="true"]:active { background: none; }
/* A short rule sets the way home apart from the two arrows. */
.pager__btn--home { position: relative; margin-top: 9px; }
.pager__btn--home::before {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  top: -5px;
  height: 1px;
  background: var(--faint);
}
html.film-open .pager,
html.sba-chat-modal .pager { display: none; }
/* On a phone the three buttons lie along the bottom-left, level with the chat button on the right. */
@media (max-width: 720px) {
  .pager {
    left: calc(var(--pad) + env(safe-area-inset-left));
    right: auto;
    top: auto;
    bottom: calc(var(--pad-y) + env(safe-area-inset-bottom));
    flex-direction: row;
    width: auto;
    height: 52px; /* the chat button's height on a phone */
    padding: 4px;
    transform: none;
  }
  .pager__btn--home { margin: 0 0 0 9px; }
  .pager__btn--home::before { left: -5px; right: auto; top: 10px; bottom: 10px; width: 1px; height: auto; }
}

.menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: clamp(20px, 4vh, 40px);
  padding: calc(var(--pad-y) + 120px) var(--pad) calc(var(--pad-y) + env(safe-area-inset-bottom));
  background: rgba(20, 16, 12, 0.94);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}
.menu[hidden] { display: none; }
.menu__links { display: flex; flex-direction: column; }
.menu__links a {
  padding: 0.14em 0;
  font-size: clamp(2rem, 9.5vw, 3.25rem);
  font-weight: var(--w-light);
  letter-spacing: -0.025em;
  line-height: 1.15;
  text-decoration: none;
}
.menu__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.menu__foot a { color: var(--dim); text-decoration: none; }

@media (max-width: 860px) {
  .top__nav { display: none; }
  .top__menu { display: block; }
  .top__actions { margin-left: auto; padding-top: 0; }
  .top__cta { padding: 0.5em 1.05em; }
}
@media (max-width: 380px) {
  .top__logo img { width: 108px; }
  .top__cta, .top__menu { padding-left: 0.85em; padding-right: 0.85em; font-size: 0.875rem; }
}

/* ---------- Frames ---------- */

main { position: relative; }

/* Scroll targets and snap points, one per frame. */
.mark {
  position: absolute;
  left: 0;
  top: calc(var(--i) * 100vh);
  top: calc(var(--i) * 100lvh);
  width: 100%;
  height: 100vh;
  height: 100lvh;
  pointer-events: none;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.frame {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100lvh;
  overflow: hidden;
  isolation: isolate;
  background: var(--stock);
  box-shadow: 0 -40px 110px rgba(0, 0, 0, 0.62);
}
.frame__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  transform: scale(calc(1 + var(--cover, 0) * 0.045));
  transform-origin: 50% 62%;
}
.frame__media > picture img,
.frame__media > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* The grade: darker where the type sits, clear where the picture is. */
.frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(to top, rgba(20, 16, 12, 0.92) 0%, rgba(20, 16, 12, 0.58) 26%, rgba(20, 16, 12, 0) 60%),
    linear-gradient(to bottom, rgba(20, 16, 12, 0.62) 0%, rgba(20, 16, 12, 0) 24%),
    linear-gradient(to right, rgba(20, 16, 12, 0.46) 0%, rgba(20, 16, 12, 0) 58%);
}
/* A frame dims as the next one slides over it. */
.frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background: #000;
  opacity: calc(var(--cover, 0) * 0.6);
}

/* The title-safe box: always inside the visible screen, even with a phone's toolbar showing. */
.frame__safe {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  height: 100vh;
  height: 100svh;
  padding: 128px var(--pad) calc(var(--pad-y) + env(safe-area-inset-bottom));
}

/* ---------- 1. The reel ---------- */

.hero__video {
  opacity: 0;
  transition: opacity 0.7s linear;
}
.hero.is-rolling .hero__video { opacity: 1; }

.hero__stack { display: grid; }
.hero__stack > * { grid-area: 1 / 1; align-self: end; }
.hero__word { opacity: 0; }
/* Words change on the cut, so there is no fade. */
.hero.is-word .hero__word { opacity: 1; }
.hero.is-word h1 { opacity: 0; }

.reel {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  min-height: 56px;
  margin-top: clamp(18px, 3.2vh, 36px);
  padding-right: 216px; /* the line stops short of the chat button in the corner */
}
.reel[hidden] { display: none; }
.reel__bar { display: flex; flex: 1; gap: 5px; }
.reel__bar i {
  position: relative;
  flex: var(--d, 1);
  height: 2px;
  overflow: hidden;
  background: var(--hair);
}
.reel__bar i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--light);
  transform: scaleX(var(--p, 0));
  transform-origin: left;
}
.reel__toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: none;
  color: var(--dim);
  font-size: var(--t-small);
  cursor: pointer;
}
.reel__toggle:hover { color: var(--light); }
.reel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tally);
  box-shadow: 0 0 10px rgba(229, 55, 43, 0.8);
}
.reel__toggle[aria-pressed="true"] .reel__dot { background: var(--faint); box-shadow: none; }

/* ---------- 2. The credits roll ---------- */

.credits .frame__safe { justify-content: flex-end; }
.roll {
  width: min(100%, 40rem);
  height: min(44svh, 26rem);
  margin-bottom: clamp(14px, 3vh, 34px);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 74%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 74%, transparent 100%);
}
.roll__track { animation: roll 44s linear infinite; animation-play-state: paused; }
.credits.is-current .roll__track { animation-play-state: running; }
.roll:hover .roll__track,
.roll:focus-visible .roll__track { animation-play-state: paused; }
@keyframes roll { to { transform: translateY(-50%); } }
.roll__list li { padding-bottom: clamp(18px, 3.4vh, 34px); }
.roll__show {
  display: block;
  font-size: clamp(1.5rem, 2.7vw, 2.5rem);
  font-weight: var(--w-light);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.roll__who { display: block; margin-top: 4px; color: var(--dim); font-size: 0.9375rem; }

/* ---------- 3 to 5. People ---------- */

.person .frame__safe > * { max-width: min(35rem, 100%); }
.person__photo {
  position: absolute;
  top: 0;
  right: 0;
  width: min(56vw, 100vh);
  height: 100%;
  object-fit: cover;
  object-position: 44% 30%;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 44%);
  mask-image: linear-gradient(to right, transparent 0%, #000 44%);
}
.person__photo--sue { object-position: 62% 28%; }

.swap { max-width: min(35rem, 100%); }
.swap [hidden] { display: none; }
.swap .link { margin-top: 10px; }

.cv { margin-top: clamp(10px, 1.6vh, 18px); }
.cv div {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.9em;
  padding: 0.24em 0;
}
.cv dt { min-width: 9.5em; }
.cv dd { color: var(--dim); }

/* ---------- 6. Watch ---------- */

/* Four pictures share the screen; the button that was pressed decides which one shows. */
.watch__still {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s linear;
}
.watch__still.is-on { opacity: 1; }
/* All four drift together, slowly in and back out, so the picture is alive, never jumps at a
   loop, and a change of picture is a clean dissolve at the same framing. Paused off screen. */
.watch__still img {
  animation: watch-drift 18s ease-in-out infinite alternate;
  animation-play-state: paused;
}
.watch.is-current .watch__still img { animation-play-state: running; }
@keyframes watch-drift {
  from { transform: scale(1); }
  to { transform: scale(1.07) translate3d(-0.8%, -0.6%, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .watch__still { transition: none; }
  .watch__still img { animation: none; }
}
.clips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px clamp(18px, 2.6vw, 40px);
  margin-top: clamp(16px, 3vh, 30px);
}
.clip {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--dim);
  font-size: var(--t-lead);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.4em;
  cursor: pointer;
  transition: color 0.25s var(--ease);
}
.clip:hover { color: var(--light); }
.clip[aria-pressed="true"] { color: var(--light); text-decoration-color: var(--gold); }

/* ---------- 7. Classes by age ---------- */

.ages__h {
  position: absolute;
  z-index: 3;
  left: var(--pad);
  top: clamp(138px, 20vh, 190px);
  max-width: 12em;
  pointer-events: none;
}
.ages::before {
  z-index: 2;
  background: linear-gradient(to bottom, rgba(20, 16, 12, 0.86) 0%, rgba(20, 16, 12, 0.5) 22%, rgba(20, 16, 12, 0) 46%);
}
.ages__cols {
  position: absolute;
  inset: 0;
  display: flex;
}
.age {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  transition: flex-grow 0.6s var(--ease);
}
/* Faces sit a little lower so the heading has dark air above them. */
.age > img {
  position: absolute;
  left: 0;
  top: 13%;
  width: 100%;
  height: 87%;
  object-fit: cover;
  object-position: 50% 34%;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 20%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 20%);
}
.age::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(20, 16, 12, 0.94) 0%, rgba(20, 16, 12, 0.5) 30%, rgba(20, 16, 12, 0) 58%);
  transition: opacity 0.6s var(--ease);
}
.age__body {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0 clamp(16px, 2vw, 30px) calc(var(--pad-y) + 100vh - 100svh + env(safe-area-inset-bottom));
}
.age:first-child .age__body { padding-left: var(--pad); }
.age__head {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
}
.age__range {
  display: block;
  font-size: clamp(2.5rem, 5.2vw, 5.25rem);
  font-weight: var(--w-light);
  letter-spacing: -0.035em;
  line-height: 1;
  white-space: nowrap;
}
.age__school { display: block; margin-top: 6px; color: var(--dim); }
.age__more {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.55s var(--ease);
}
.age__more > div { min-height: 0; overflow: hidden; visibility: hidden; transition: visibility 0s 0.55s; }
.age__more p { padding-top: 10px; white-space: nowrap; }
.age__more p span { display: block; color: var(--dim); font-size: var(--t-small); }
.age__more .btn { margin: 16px 0 2px; }

.age.is-open { flex-grow: 1.9; }
.age.is-open .age__more { grid-template-rows: 1fr; }
.age.is-open .age__more > div { visibility: visible; transition-delay: 0s; }
@media (hover: hover) and (pointer: fine) {
  .ages__cols:hover .age:not(:hover)::after { opacity: 1; }
  .age:hover, .age:focus-within { flex-grow: 1.9; }
  .age:hover .age__more, .age:focus-within .age__more { grid-template-rows: 1fr; }
  .age:hover .age__more > div, .age:focus-within .age__more > div { visibility: visible; transition-delay: 0s; }
}

/* ---------- 7. Where ---------- */

.venues {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 56px);
  width: min(100%, 46rem);
  margin-top: clamp(20px, 4vh, 44px);
}
.venues__name {
  font-size: clamp(1.5rem, 2.4vw, 2.25rem);
  font-weight: var(--w-light);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.venues p { margin-top: 6px; color: var(--dim); max-width: 22em; }
.venues .link { justify-self: start; margin-top: 4px; font-size: var(--t-small); text-align: left; }

/* ---------- 8. Ask ---------- */

#assistant-inline { width: min(100%, 35rem); margin-top: clamp(16px, 3vh, 30px); }
.enquire__or { margin-top: 12px; color: var(--dim); }
.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 26px;
  width: 100%;
  margin-top: clamp(22px, 5vh, 56px);
  color: var(--dim);
  font-size: var(--t-small);
}
.foot a { padding: 0.45em 0; text-decoration: none; }
.foot a:hover { color: var(--light); }
.foot__small { flex-basis: 100%; padding-top: 4px; color: var(--faint); }

/* ---------- The film player ---------- */

.film {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}
.film[hidden] { display: none; }
.film__video {
  width: 100%;
  height: 100%;
  max-height: 100dvh;
  object-fit: contain;
  background: #000;
}
.film__close {
  position: absolute;
  z-index: 1;
  top: calc(var(--pad-y) * 0.75 + env(safe-area-inset-top));
  left: var(--pad); /* top left: the film carries the academy logo top right */
  min-height: 44px;
  padding: 0.5em 1.2em;
  border: 0;
  border-radius: var(--r-pill);
  background: rgba(245, 237, 226, 0.18);
  color: var(--light);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  cursor: pointer;
}
.film__close:hover { background: rgba(245, 237, 226, 0.3); }

/* ---------- Film grain over everything ---------- */

.grain {
  position: fixed;
  inset: 0;
  z-index: 45;
  pointer-events: none;
  opacity: 0.075;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='260' height='260'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .95 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- Phones and upright screens ---------- */

@media (max-width: 720px) {
  /* On a phone the foot of every screen is a row of buttons (up, down, home on the left; chat on
     the right), so everything else ends above it. */
  .reel { min-height: 44px; padding-right: 0; }
  .frame__safe { padding-bottom: calc(var(--pad-y) + 62px + env(safe-area-inset-bottom)); }
}

@media (orientation: portrait), (max-width: 860px) {
  /* On an upright screen the last frame is text from top to bottom, and it sits right over the
     lit chair. The picture steps back behind it so every line reads. */
  .enquire::before {
    background: linear-gradient(to top,
      rgba(20, 16, 12, 0.95) 0%,
      rgba(20, 16, 12, 0.84) 38%,
      rgba(20, 16, 12, 0.74) 72%,
      rgba(20, 16, 12, 0.46) 100%);
  }
  .frame__safe { padding-top: 112px; }
  .actions { width: 100%; }
  .actions .btn { flex: 1 1 auto; }

  .person__photo {
    left: 0;
    right: 0;
    width: 100%;
    height: 68svh;
    object-position: 44% 22%;
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 50%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 50%, transparent 100%);
  }
  .person__photo--sue { object-position: 60% 16%; }

  /* Ages stack as four bands that fill the screen; tap one to open it. */
  .ages__h { top: clamp(108px, 15svh, 150px); }
  .ages__cols {
    top: clamp(196px, 29svh, 270px);
    bottom: auto;
    height: calc(100svh - clamp(196px, 29svh, 270px));
    flex-direction: column;
  }
  .ages::before { z-index: 0; background: none; }
  .age > img { top: 0; height: 100%; object-position: 50% 30%; -webkit-mask-image: none; mask-image: none; }
  .age::after {
    background:
      linear-gradient(to right, rgba(20, 16, 12, 0.9) 0%, rgba(20, 16, 12, 0.45) 46%, rgba(20, 16, 12, 0) 78%),
      linear-gradient(to bottom, rgba(20, 16, 12, 0.55) 0%, rgba(20, 16, 12, 0) 30%);
  }
  .age__body {
    top: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 var(--pad);
  }
  .age__range { font-size: clamp(2rem, 9.5vw, 3.25rem); }
  .age__school { margin-top: 2px; font-size: var(--t-small); }
  .age.is-open { flex-grow: 3.1; }
  .age__more p { padding-top: 6px; }
  .age__more .btn { margin-top: 12px; }

  .venues { grid-template-columns: 1fr; gap: 12px; }
  .venues li { display: grid; grid-template-columns: 1fr; }
  .venues .link { margin-top: 0; }

  .roll { height: min(30svh, 17rem); margin-bottom: 10px; }
  .foot { gap: 0 20px; }
}

@media (max-width: 720px) {
  /* The four age bands stop above the row of buttons at the foot of the screen. */
  .ages__cols { height: calc(100svh - clamp(196px, 29svh, 270px) - var(--pad-y) - 62px - env(safe-area-inset-bottom)); }
}

/* Short screens: phones on their side, small laptops. */
@media (max-height: 560px) {
  .frame__safe { padding-top: 84px; }
  .body { display: none; }
  .swap .link { display: none; }
  .roll { height: 34svh; }
  .foot__small { display: none; }
  .ages__h { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .roll { overflow-y: auto; -webkit-mask-image: none; mask-image: none; }
  .roll__track { animation: none; }
  .roll__list[aria-hidden="true"] { display: none; }
  .age, .age__more, .age::after, .btn { transition: none; }
  .frame__media { transform: none; }
}
