@font-face {
  font-family: "DM Sans";
  src: url("../fonts/dm-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 1000;
  font-display: block;
}

:root {
  --black: #000000;
  --ink: #1d1d1f;
  --grey-dark: #333336;
  --grey-mid: #6e6e73;
  --grey-soft: #a1a1a6;
  --grey-line: #d2d2d7;
  --grey-light: #f5f5f7;
  --white: #ffffff;
  --wrap: 120rem;
  --gutter: clamp(1rem, 4vw, 4rem);
  --header: 4rem;
  --radius: .25rem;
  --bg: var(--black);
  --surface: var(--ink);
  --fg: var(--white);
  --muted: var(--grey-soft);
  --rule: var(--grey-dark);
  --btn-bg: var(--white);
  --btn-fg: var(--black);
  color-scheme: dark;
}

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

html { scroll-padding-top: var(--header); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 1.0625rem/1.6 "DM Sans", system-ui, sans-serif;
  font-synthesis: none;
}

h1, h2, h3 { margin: 0; }
h1, h2 { font-weight: 800; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5vw, 5rem); line-height: 1.05; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); line-height: 1.15; }
h3 { font-size: 1.25rem; font-weight: 700; line-height: 1.25; }

/* Rows carry small titles; a headline that stands alone keeps its size. */
.moons h2, .split h2, .teacher h2, .venue h2, .cta h2 { font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.08; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
sup { font-size: .6em; line-height: 0; }
a { color: inherit; }
a, button { transition: color .2s ease, background-color .2s ease, border-color .2s ease; }
img { display: block; width: 100%; height: auto; border-radius: var(--radius); }
figure { margin: 0; }
figcaption { margin-top: .6rem; color: var(--muted); font-size: .875rem; }

a:focus-visible, button:focus-visible, summary:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

/* Their text colour matches the background, so currentColor would vanish. */
.skip:focus-visible, .btn:focus-visible, .nav__cta:focus-visible { outline-color: var(--fg); }

/* main only takes focus from the skip link, so it needs no ring. */
main:focus { outline: none; }

.wrap { width: min(100%, var(--wrap)); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute;
  left: -100vw;
  z-index: 20;
  padding: .5rem 1rem;
  background: var(--fg);
  color: var(--bg);
}
.skip:focus { left: 1rem; top: .5rem; }

/* Every photograph goes through the same black and white treatment. */
.photo { filter: grayscale(1) contrast(1.08); }
/* A pale studio backdrop would outshine the dark photos beside it. */
.photo--dim { filter: grayscale(1) contrast(1.08) brightness(.78); }

.label { margin-bottom: .5rem; color: var(--muted); font-size: .9375rem; font-weight: 600; }

.lead { color: var(--muted); font-size: clamp(1.125rem, 1.8vw, 1.375rem); line-height: 1.4; }

.btn {
  display: inline-block;
  padding: .7rem 1.75rem;
  border: 1px solid var(--btn-bg);
  border-radius: var(--radius);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: inherit;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { border-color: var(--grey-line); background: var(--grey-line); }
.btn--outline { border-color: var(--grey-mid); background: none; color: var(--fg); }
.btn--outline:hover { border-color: var(--fg); background: var(--fg); color: var(--bg); }

.link { font-weight: 600; text-decoration: none; text-underline-offset: .2em; }
.link::after { content: " ›"; }
.link:hover { text-decoration: underline; }

/* Header: overlaps the page, transparent at the top and solid once scrolled. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  margin-bottom: calc(-1 * var(--header));
  background: var(--bg);
}
.site-header.is-top:not(:has(.nav.is-open)) { background: transparent; }
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header);
}

.logo { display: inline-flex; flex: none; align-items: center; gap: .6rem; min-height: 2.75rem; text-decoration: none; }
.logo__mark { width: 1.75rem; height: 1.925rem; flex: none; }
.logo__hex { fill: var(--fg); stroke: var(--fg); stroke-width: 10; stroke-linejoin: round; }
.logo__m { fill: var(--bg); }
/* Fixed width: the logo must not change size while its font loads. */
.logo__text { display: grid; justify-items: start; width: 5rem; overflow: hidden; white-space: nowrap; line-height: 1; }
.logo__name { font-size: 1rem; font-weight: 800; letter-spacing: -.01em; }
.logo__sub { margin-top: .15rem; color: var(--muted); font-size: .75rem; font-weight: 500; }

.nav { display: flex; align-items: center; gap: 1.5rem; font-size: .9375rem; }
.nav a { text-decoration: none; }
.nav a:not(.nav__cta) { color: var(--grey-line); }
.nav a:not(.nav__cta):hover, .nav a[aria-current="page"] { color: var(--fg); }
/* The current page must not be marked by colour alone. */
.nav a[aria-current="page"] { font-weight: 700; text-decoration: underline; text-underline-offset: .3em; }
.nav__cta { padding: .25rem .9rem; border-radius: var(--radius); background: var(--btn-bg); color: var(--btn-fg); font-weight: 700; }
.nav__cta:hover { background: var(--grey-line); }

.nav-toggle {
  display: none;
  padding: .25rem 1rem;
  border: 1px solid var(--muted);
  border-radius: var(--radius);
  background: none;
  color: inherit;
  font: inherit;
  font-size: .875rem;
  cursor: pointer;
}

/* Billboard: the photo fills the screen and the gradient carries the copy. */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(100svh, 60rem);
  isolation: isolate;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgb(0 0 0 / .75), transparent 22%),
    linear-gradient(0deg, var(--bg), transparent 30%),
    linear-gradient(90deg, var(--bg) 35%, rgb(0 0 0 / .7) 46%, transparent 66%);
}
.hero__photo { position: absolute; inset: 0 0 0 35%; z-index: -2; }
.hero__photo img { height: 100%; border-radius: 0; object-fit: cover; object-position: 50% 56%; }
.hero__copy {
  width: min(100%, var(--wrap));
  margin-inline: auto;
  padding: calc(var(--header) + 2rem) var(--gutter) clamp(3rem, 7vw, 6rem);
}
.hero__copy > * { max-width: min(40vw, 44rem); }
.hero .label { color: var(--grey-line); }
.hero__lead { margin-block: 1.25rem 1.75rem; font-size: clamp(1.125rem, 1.8vw, 1.375rem); line-height: 1.4; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.hero .btn::before {
  content: "";
  display: inline-block;
  width: .7em;
  height: .85em;
  margin-right: .6em;
  background: currentColor;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.hero .link { padding: .75rem 1.5rem; border-radius: var(--radius); background: var(--grey-dark); font-size: 1.0625rem; font-weight: 700; line-height: 1.3; }
.hero .link::after { content: none; }
.hero .link:hover { background: var(--grey-mid); text-decoration: none; }

.page-head { padding-block: calc(var(--header) + clamp(3rem, 6vw, 5rem)) clamp(1rem, 3vw, 2rem); }
.page-head .lead { max-width: 38rem; margin-top: 1rem; }

/* Sections */
.section { padding-block: clamp(2rem, 4vw, 3.5rem); }
.section--quote { padding-block: clamp(5rem, 11vw, 9rem); text-align: center; }
.section--quote .moon { width: 2.5rem; margin-bottom: 1.75rem; }
.wrap > .btn { margin-top: 1.5rem; }

.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.split--photo { grid-template-columns: minmax(0, .8fr) repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3.5rem); }
.split .lead, .moons .lead { margin-top: 1.25rem; }

/* Numbered like a Top 10 rail. */
.myths {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: myth;
}
.myths li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 1rem; align-items: center; align-content: center; counter-increment: myth; }
.myths li::before {
  content: counter(myth);
  grid-row: 1 / span 2;
  color: var(--bg);
  font-size: clamp(6rem, 10vw, 9rem);
  font-weight: 800;
  line-height: 1;
  -webkit-text-stroke: 2px var(--grey-mid);
}
.myths__quote {
  align-self: end;
  margin-bottom: .5rem;
  color: var(--muted);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.moon { display: block; width: 3rem; margin-inline: auto; fill: var(--fg); }
.moon__ring { fill: none; stroke: var(--fg); stroke-width: 1; }

.phases, .courses { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.phases li { padding: 1.5rem; border-radius: var(--radius); background: var(--surface); }
.phases .moon { margin: 0 0 1rem; }
.phases h3 { margin-bottom: .4rem; }
.phases p { color: var(--muted); }

.courses { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.courses li { display: flex; flex-direction: column; padding: 1.5rem; border-radius: var(--radius); background: var(--surface); }
.courses h3 { margin-bottom: .5rem; }

.about__title { margin-top: 2.25rem; margin-bottom: .75rem; }

.ticks { margin: 0; padding: 0; list-style: none; }
.ticks li { padding-block: .5rem; border-bottom: 1px solid var(--rule); }

.does { margin: 0; }
.does div { padding-block: .75rem; border-bottom: 1px solid var(--rule); }
.does dt { font-weight: 600; }
.does dd { margin: 0; color: var(--muted); }

.moons { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.moons--flip figure { order: -1; }

blockquote { max-width: 46rem; margin: 0 auto; }
blockquote p { margin-bottom: 1.25rem; font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
blockquote footer { color: var(--muted); font-size: .9375rem; }

.cta { padding-block: clamp(2rem, 6vw, 5rem); text-align: center; }
.cta .lead { margin-block: 1rem 1.75rem; }

/* Every teacher is the same billboard: the copy on black, the photo fading in from the right. */
.section:has(> .teacher) { padding-block: 0; }
.teacher {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: min(100svh, 56rem);
  isolation: isolate;
  view-timeline: --scene;
}
.teacher figure { position: relative; grid-column: 2; grid-row: 1; z-index: -1; overflow: hidden; }
.teacher figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--bg), rgb(0 0 0 / .55) 14%, transparent 34%), linear-gradient(0deg, var(--bg), transparent 22%), linear-gradient(180deg, var(--bg), transparent 14%);
}
.teacher img { position: absolute; inset: 0; height: 100%; border-radius: 0; object-fit: cover; }
.teacher > div {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
  padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))) 0;
}
.teacher > div > * { width: 100%; }
/* The name runs over the edge of the photo, as a billboard title does. */
.teacher h2 { width: max-content; font-size: clamp(2.75rem, 6.5vw, 7rem); letter-spacing: -.03em; line-height: .98; text-shadow: 0 0 2rem var(--bg); }
.teacher .lead { margin-block: .75rem 1.25rem; color: var(--fg); font-size: clamp(1.125rem, 1.8vw, 1.5rem); font-weight: 700; line-height: 1.25; }
.teacher .about__title { margin-top: 0; }
.teacher__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 1.5rem clamp(1.5rem, 3vw, 2.5rem); margin-top: .75rem; }
.teacher__close { margin-top: 1.25rem; }
.teacher .link { width: auto; margin-top: 1.5rem; padding: .75rem 1.5rem; border-radius: var(--radius); background: var(--grey-dark); font-size: 1.0625rem; font-weight: 700; line-height: 1.3; }
.teacher .link::after { content: none; }
.teacher .link:hover { background: var(--grey-mid); text-decoration: none; }

/* Opening of the events page: a black stage under a moon, with the playbill. */
.curtain {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
}
.curtain::before {
  content: "";
  position: absolute;
  top: calc(var(--header) + 1rem);
  left: 50%;
  z-index: -1;
  width: 54vmin;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 42% 38%, var(--white), var(--grey-line) 45%, var(--grey-mid));
  box-shadow: 0 0 12vmin rgb(255 255 255 / .22), 0 0 40vmin rgb(255 255 255 / .12);
  transform: translateX(-50%);
}
.curtain::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, var(--bg) 38%, rgb(0 0 0 / .7) 55%, rgb(0 0 0 / .25) 70%, transparent 85%);
}
.curtain__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
  padding-block: calc(var(--header) + 2rem) clamp(2rem, 5vw, 4rem);
}
.curtain h1 { font-size: clamp(4rem, 13vw, 13rem); line-height: .95; letter-spacing: -.04em; }
.curtain .label { color: var(--grey-line); }
.curtain .lead { max-width: 30rem; margin-top: 1.25rem; }

.playbill { margin: 0; padding: 0; list-style: none; }
.playbill li + li { border-top: 1px solid var(--rule); }
.playbill a { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 1rem; padding-block: .35rem; text-decoration: none; }
.playbill time { color: var(--muted); font-size: .9375rem; line-height: 1.8; }
.playbill span { font-weight: 700; }
.playbill a:hover span { text-decoration: underline; text-underline-offset: .2em; }

/* One full screen per event, newest first. The title is as large as the event. */
.scenes { margin: 0; padding: 0; list-style: none; }
.scene {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  view-timeline: --scene;
}
.scene::before {
  content: attr(data-year);
  position: absolute;
  top: calc(var(--header) + 1rem);
  left: var(--gutter);
  z-index: -1;
  color: transparent;
  font-size: clamp(6rem, 21vw, 22rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: .9;
  -webkit-text-stroke: 2px var(--grey-dark);
}
.scene figure { position: absolute; inset: 0 0 0 auto; z-index: -2; width: 64%; overflow: hidden; }
.scene figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--bg), transparent 45%), linear-gradient(0deg, var(--bg), transparent 30%);
}
.scene img { height: 100%; border-radius: 0; object-fit: cover; }
.scene__copy {
  width: min(100%, var(--wrap));
  margin-inline: auto;
  padding: calc(var(--header) + 2rem) var(--gutter) clamp(3rem, 6vw, 5rem);
}
.scene__copy > * { max-width: min(52vw, 46rem); }
/* Titles may run over the photo, so that one long word never breaks. */
.scene__copy > h2 { max-width: 74vw; }
.scene__meta { margin-bottom: .75rem; color: var(--grey-line); font-size: 1.125rem; font-weight: 600; }
.scene h2 {
  margin-bottom: 1.25rem;
  font-size: clamp(2.75rem, 7vw, 7.5rem);
  letter-spacing: -.03em;
  line-height: .98;
  text-shadow: 0 0 2rem var(--bg);
}
.scene__copy > p:not(.scene__meta) { font-size: clamp(1.125rem, 1.6vw, 1.375rem); line-height: 1.4; }
.scene__quote { margin: 1.5rem 0 0; }
.scene__quote p { margin-bottom: .35rem; font-size: clamp(1.5rem, 2.6vw, 2.25rem); }

.scene--flip::before { right: var(--gutter); left: auto; }
.scene--flip figure { inset: 0 auto 0 0; }
.scene--flip figure::after { background: linear-gradient(270deg, var(--bg), transparent 45%), linear-gradient(0deg, var(--bg), transparent 30%); }
.scene--flip .scene__copy { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }

/* Portrait or small photos stay narrow enough to stay sharp. */
.scene--tall figure { width: 46%; }
.scene--wide figure { width: 100%; }
.scene--wide figure::after { background: linear-gradient(0deg, var(--bg) 8%, rgb(0 0 0 / .6) 32%, transparent 55%); }

/* A very small frame floats whole on black rather than being stretched to fill. */
.scene--small figure { display: flex; align-items: center; width: 42%; padding-right: var(--gutter); }
.scene--small figure::after { content: none; }
.scene--small img { height: auto; mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent), linear-gradient(0deg, transparent, #000 5%, #000 95%, transparent); mask-composite: intersect; }

/* Events with no photo stand alone in a spotlight. */
.scene--text { align-items: center; text-align: center; }
.scene--text::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: radial-gradient(ellipse 45% 90% at 50% 0, rgb(255 255 255 / .2), transparent);
}
.scene--text::before { right: 0; left: 0; }
.scene--text .scene__copy { padding-top: calc(var(--header) + clamp(6rem, 21vw, 22rem)); }
.scene--text .scene__copy > * { max-width: 62rem; margin-inline: auto; }

.encore { display: grid; justify-items: center; gap: 1.75rem; padding: clamp(5rem, 11vw, 9rem) var(--gutter); text-align: center; }
.encore .moon { width: 4rem; margin: 0; }
.encore h2 { max-width: 40rem; font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.08; }

/* The lights come up as each scene enters. Browsers without scroll timelines show it lit. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .scene img, .teacher img { animation: lights-up linear both; animation-timeline: --scene; animation-range: entry 5% entry 80%; }
    .scene__copy { animation: step-forward linear both; animation-timeline: --scene; animation-range: entry 25% entry 85%; }
  }
}
@keyframes lights-up {
  from { opacity: .08; transform: scale(1.1); }
  to { opacity: 1; transform: none; }
}
@keyframes step-forward {
  from { opacity: 0; transform: translateY(3rem); }
  to { opacity: 1; transform: none; }
}

.venues { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.venue { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(1.5rem, 3vw, 2.5rem); border-radius: var(--radius); background: var(--surface); }
.venue__host { margin-block: .5rem 1rem; color: var(--muted); }
.venue address { margin-bottom: 1rem; font-style: normal; }
.venue .btn { margin-top: auto; }

.contacts { margin: 2rem 0 0; padding: 0; list-style: none; font-size: 1.25rem; font-weight: 600; }
.contacts li { margin-bottom: .35rem; }

.form { display: grid; gap: 1.1rem; }
.form label { display: grid; gap: .35rem; font-weight: 500; }
.form input, .form select, .form textarea {
  width: 100%;
  padding: .75rem .9rem;
  border: 1px solid var(--grey-mid);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--fg);
  font: inherit;
  font-weight: 400;
}
.form textarea { resize: vertical; }
.form .btn { justify-self: start; }
.form__note { color: var(--muted); font-size: .9375rem; }

.site-footer { padding-block: 2rem; color: var(--muted); font-size: .8125rem; }
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 2rem; }
.site-footer p { margin: 0; }

.soon { display: grid; justify-items: center; gap: 1.5rem; min-height: 60svh; align-content: center; padding-top: var(--header); text-align: center; }
.soon .label { margin: 0; }
.soon .lead { max-width: 34rem; margin: 0; }

.notfound { display: grid; place-content: center; justify-items: center; gap: 1.5rem; min-height: 100svh; padding: var(--gutter); text-align: center; }

@media (max-width: 62rem) {
  .nav-toggle { display: block; min-height: 2.75rem; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    max-height: calc(100dvh - var(--header));
    overflow-y: auto;
    padding: .75rem var(--gutter) 1.5rem;
    background: var(--bg);
    border-bottom: 1px solid var(--rule);
  }
  .nav.is-open { display: flex; }

  /* Touch targets: at least 44px tall where a finger is the likely pointer. */
  .nav a { display: inline-flex; align-items: center; min-height: 2.75rem; }
  .nav__cta { margin-top: .5rem; }
  /* A fixed line height keeps 44px at any of these links' font sizes. */
  .link, .site-footer a, .contacts a { display: inline-block; padding-block: .625rem; line-height: 1.5rem; }
  .contacts li { margin-bottom: 0; }
}

@media (max-width: 54rem) {
  .hero { flex-direction: column-reverse; align-items: stretch; min-height: 0; }
  .hero::after { background: linear-gradient(180deg, rgb(0 0 0 / .75), transparent 18%); }
  .hero__photo { position: relative; inset: auto; z-index: -2; height: min(110vw, 62svh); }
  .hero__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--bg), transparent 35%); }
  .hero__copy { padding-block: 0 2rem; }
  .hero__copy > * { max-width: none; }

  .split, .venues, .myths, .moons, .teacher { grid-template-columns: minmax(0, 1fr); }
  .teacher { min-height: 0; }
  .teacher figure, .teacher > div { grid-column: 1; grid-row: auto; }
  .teacher figure { aspect-ratio: 4 / 5; }
  .teacher figure::after { background: linear-gradient(0deg, var(--bg), transparent 30%); }
  .teacher > div { margin-top: -3rem; padding: 0 var(--gutter) 3.5rem; }
  .teacher h2 { width: auto; font-size: clamp(2.25rem, 11vw, 4.5rem); }
  .phases, .courses { grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }

  .curtain__inner { grid-template-columns: minmax(0, 1fr); }
  .curtain::before { width: 50vmin; }
  .curtain::after { background: linear-gradient(0deg, var(--bg) 66%, transparent 92%); }
  .curtain__inner { padding-top: calc(var(--header) + 40vmin); }

  .scene { display: block; min-height: 0; }
  .scene::before { top: calc(var(--header) + .5rem); -webkit-text-stroke-color: rgb(255 255 255 / .3); -webkit-text-stroke-width: 1px; }
  .scene figure, .scene--flip figure { position: relative; inset: auto; width: 100%; height: min(125vw, 72svh); }
  .scene figure::after, .scene--flip figure::after, .scene--wide figure::after { background: linear-gradient(0deg, var(--bg), transparent 35%); }
  .scene--wide figure { height: auto; aspect-ratio: 3 / 2; }
  .scene--small figure { height: auto; padding-right: 0; }
  .scene.scene--small figure + .scene__copy { margin-top: 1.25rem; }
  .scene__copy { padding-top: 0; padding-bottom: 3.5rem; }
  .scene figure + .scene__copy { margin-top: -3rem; position: relative; }
  .scene__copy > *, .scene__copy > h2 { max-width: none; }
  .scene h2 { font-size: clamp(1.9rem, 9.6vw, 4.5rem); overflow-wrap: anywhere; }
  .scene--flip .scene__copy { display: block; text-align: left; }
  .scene--text { display: flex; min-height: 80svh; }
  .scene--text::before { -webkit-text-stroke-color: var(--grey-dark); }

  .split--photo figure { position: static; max-width: 24rem; }
  .moons--flip figure { order: 0; }
}

@media (prefers-reduced-motion: reduce) {
  a, button { transition: none; }
}
