/* The 1280px artboard has a 223px masthead and a 538px photographic strip. */
.classroom {
  --masthead-height: clamp(170px, 17.422vw, 350px);
  position: relative;
  z-index: 1;
  background: #fdfdfd;
  color: #191919;
  font-family: var(--sans);
}
.classroom-masthead {
  --inset: 6.55%;
  position: relative;
  height: var(--masthead-height);
  margin-inline: var(--inset);
}
.classroom-heading {
  height: 100%;
  padding-top: var(--nav-height);
  padding-bottom: clamp(24px, 3.65vw, 62px);
  display: flex;
  align-items: baseline;
  align-content: end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
}
.classroom-heading h1 {
  font: 400 clamp(34px, 3.52vw, 65px)/1.15 var(--sans);
  letter-spacing: -.02em;
}
.classroom-heading p { font-size: clamp(15px, 1.4vw, 23px); color: #5d5d60; }
.classroom-gallery {
  position: relative;
  width: 100%;
  aspect-ratio: 1280 / 538;
  overflow: hidden;
  isolation: isolate;
  background: #dedad1;
}
.classroom-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
}
.classroom-frame.is-current { opacity: 1; }
.classroom-frame.is-entering { z-index: 1; opacity: 1; }
.classroom-pause {
  position: absolute;
  top: 100%;
  left: 20px;
  z-index: 3;
  padding: 8px 12px;
  background: white;
  color: #222;
}
.classroom-pause:not(:focus-visible) { clip-path: inset(100%); pointer-events: none; }
.classroom-intro {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: center;
  gap: 7%;
  padding: clamp(80px, 10vw, 172px) 6.55%;
  background: #fdfdfd;
  color: #202020;
}
.classroom-intro h2 { font: 500 clamp(32px, 4vw, 68px)/1.2 var(--sans); letter-spacing: -.045em; }
.classroom-intro p { margin-top: 16px; font: 400 clamp(16px, 1.4vw, 21px)/1.65 var(--sans); color: #59595a; }
.classroom-example {
  display: grid;
  justify-items: start;
  gap: 12px;
  padding: 20px 0 20px clamp(24px, 4vw, 72px);
  border-left: 1px solid #dededb;
  text-align: left;
}
.classroom-equation { font: 400 clamp(32px, 3.6vw, 60px)/1.12 Georgia, serif; color: #38463d; }
.classroom-example-link { font: 500 15px/1.5 var(--sans); }
.classroom-example-link span { margin-left: .4em; }
.classroom-example:is(:hover,:focus-visible) .classroom-example-link { text-decoration: underline; text-underline-offset: 4px; }
.at-classroom :is(.grain, .trail) { visibility: hidden; }
@media (min-width: 601px) and (min-aspect-ratio: 17/10) {
  .classroom { --masthead-height: clamp(158px, calc(100svh - 45.08vw), 17.422vw); }
  .classroom-heading { padding-bottom: 20px; }
  .classroom-heading h1 { font-size: clamp(34px, 3.1vw, 52px); }
}
@media (max-width: 700px) {
  .classroom-masthead { height: auto; margin-inline: 20px; }
  .classroom-heading {
    display: grid;
    justify-content: start;
    gap: 10px;
    padding-block: calc(var(--nav-height) + 26px) 26px;
  }
  .classroom-heading h1 { font-size: clamp(32px, 8.2vw, 42px); }
  .classroom-heading p { font-size: 15px; line-height: 1.5; }
  .classroom-intro {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 36px 20px 28px;
  }
  .classroom-intro h2 { font-size: clamp(26px, 6.4vw, 34px); }
  .classroom-intro p { margin-top: 10px; line-height: 1.65; }
  .classroom-example {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 16px;
    padding: 18px 0;
    border-left: 0;
    border-block: 1px solid #dededb;
  }
  .classroom-equation { font-size: clamp(26px, 7vw, 36px); }
  .classroom-example-link { font-size: 14px; }
  #limits.limitations {
    min-height: 0;
    padding: 28px 20px 32px;
    gap: 16px;
    background: #f4f5f2;
  }
  #limits .limits-title h2 { font: 500 21px/1.3 var(--sans); letter-spacing: -.025em; }
  #limits ol { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }
  #limits li, #limits li:last-child { border-bottom: 0; border-top: 1px solid #d7dbd5; }
  #limits li h3 { font-size: 16px; }
  #limits li a { min-height: 46px; padding: 10px 0; }
}


/* The incoming photographs follow the original left-to-right path in document flow. */
.paper-flow {
  scroll-margin-top: var(--nav-height);
  position: relative;
  overflow: clip;
  background: var(--paper);
  padding-block: clamp(32px, 5vw, 72px) 0;
}
.paper-flow h2 {
  position: relative;
  z-index: 1;
  margin: 0 6.55% 0 auto;
  max-width: max-content;
  font: 450 clamp(20px, 2.15vw, 34px)/1.4 var(--sans);
  letter-spacing: -.035em;
}
.paper-flow-field { position: relative; height: clamp(280px, 44vw, 620px); }
.paper-flow-field .path-slot { max-height: none; }
.story-viewport { position: fixed; inset: 0 0 auto; height: 100svh; visibility: hidden; pointer-events: none; contain: strict; }
body > .wave-clock.wave-surface { position: fixed; top: 0; left: 0; width: 1px; height: 1px; opacity: .001; pointer-events: none; }
.film-photo picture, .film-photo picture img { display: block; width: 100%; height: 100%; }
.film-photo picture img { object-fit: cover; }
@media (max-width: 767px) {
  .paper-flow h2 { margin-right: 20px; font-size: 19px; }
  .paper-flow-field { height: clamp(245px, 59vw, 400px); }
  .paper-flow-field .path-slot { left: var(--mx); top: var(--my); width: var(--mw); }
  .paper-flow-field .wide-slot { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  #journey { height: 335svh; }
  #parallel .feature-end { height: 160svh; }
}
@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
  #feedback { height: 240svh; }
  #review { height: 145svh; }
}
