/* Text and portraits reserve space in the document instead of sharing coordinates. */
.hero-view,
.motion-ready .hero-view {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 28%);
  grid-template-rows: auto 1fr auto auto;
  grid-template-areas: "label label" "type portrait" "copy cue" "location location";
  column-gap: 4vw;
  row-gap: clamp(20px, 3svh, 36px);
  height: auto;
  min-height: 100svh;
  max-height: none;
  padding: clamp(112px, 14svh, 160px) var(--gutter) 28px;
  overflow: visible;
  align-items: center;
}
.motion-ready .intro {
  height: auto;
  min-height: 100svh;
}
.hero-label,
.hero-type,
.portrait-card,
.hero-copy,
.scroll-cue,
.hero-location {
  position: static;
  inset: auto;
  margin: 0;
  min-width: 0;
}
.hero-label {
  grid-area: label;
  max-width: 100%;
}
.hero-type {
  grid-area: type;
  width: 100%;
  align-self: center;
}
#hero-title {
  max-width: 100%;
}
.hero-prefix {
  font-size: clamp(22px, 2.5vw, 42px);
  line-height: 1.3;
  margin-bottom: 12px;
}
.hello-word {
  font-size: clamp(100px, min(27vw, 38svh), 500px);
  line-height: 1.08;
  white-space: nowrap;
  margin-left: 0;
  letter-spacing: -0.09em;
}
.portrait-card {
  grid-area: portrait;
  width: 100%;
  max-width: 380px;
  justify-self: end;
  aspect-ratio: 4/5;
  height: auto !important;
  transform: none;
  padding: 0;
  align-self: center;
  overflow: hidden;
}
.portrait-card picture,
.portrait-card img {
  height: auto;
  aspect-ratio: 4/5;
  object-fit: contain;
}
.hero-copy {
  grid-area: copy;
  max-width: 100%;
  font-size: clamp(18px, 1.55vw, 25px);
  align-self: start;
}
.hero-copy p {
  line-height: 1.6;
}
.hero-copy br {
  display: none;
}
.hero-copy .underlined {
  margin-top: 16px;
}
.scroll-cue {
  grid-area: cue;
  justify-self: end;
  align-self: end;
  max-width: 100%;
  gap: 16px;
}
.hero-location {
  grid-area: location;
  width: auto;
  max-width: 100%;
  align-self: end;
}
.hero-view > * {
  min-width: 0;
}
@media (max-width: 900px) {
  .hero-view,
  .motion-ready .hero-view {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto auto auto auto auto;
    grid-template-areas: "label label" "portrait portrait" "type type" "copy copy" "location cue";
    padding: 100px var(--gutter) 30px;
    row-gap: 24px;
    min-height: 100svh;
  }
  .portrait-card {
    width: min(42vw, 200px);
    max-height: none;
    justify-self: end;
  }
  .hello-word {
    font-size: clamp(100px, 35vw, 290px);
    line-height: 1.1;
  }
  .hero-prefix {
    font-size: clamp(22px, 3vw, 30px);
  }
  .hero-copy {
    font-size: 18px;
  }
  .hero-label {
    max-width: 100%;
    font-size: 11px;
  }
  .hero-location {
    font-size: 10px;
  }
  .scroll-cue {
    font-size: 10px;
    gap: 12px;
    max-width: 100%;
    justify-self: end;
  }
  .scroll-cue > span:last-child {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
  }
  .scroll-cue > span:first-child {
    max-width: 120px;
  }
}
@media (max-width: 350px) {
  .hero-view,
  .motion-ready .hero-view {
    row-gap: 22px;
    padding-inline: 18px;
  }
  .hero-location {
    font-size: 9px;
  }
  .scroll-cue {
    gap: 8px;
    font-size: 9px;
  }
  .scroll-cue > span:first-child {
    max-width: 85px;
  }
  .hero-copy {
    font-size: 17px;
  }
}
/* Animated content has enough clearance from adjacent reading areas. */
.story-film h1 {
  line-height: 1.05;
}
.story .film-rule {
  display: none;
}
.school-hero h1 > span {
  line-height: 1.3;
  padding-bottom: 0.12em;
}
.object-scene figure {
  margin-bottom: 70px;
}
.film-frame {
  margin-bottom: 35px;
}
.story .chronicle article {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 7%;
  row-gap: 60px;
  overflow: hidden;
}
.chapter-composition {
  min-width: 0;
  align-self: center;
  overflow: hidden;
  padding: 20px 0;
}
.story .chronicle article > div:last-child {
  min-width: 0;
}
.story .milestone.word {
  font-size: clamp(72px, 12vw, 180px);
  line-height: 1.1;
  white-space: nowrap;
}
.chapter-art {
  display: block;
  width: 100%;
  height: 180px;
  margin-top: 30px;
  position: relative;
  overflow: hidden;
}
.writing-art {
  stroke: #d2ad8a;
  stroke-width: 2;
  stroke-linecap: round;
}
.building-art i {
  position: absolute;
  bottom: 40px;
  width: 23%;
  height: 72px;
  border: 1px solid #d2ad8a;
  background: #d2ad8a12;
  transform-origin: center bottom;
}
.building-art i:nth-child(1) {
  left: 7%;
  height: 45px;
}
.building-art i:nth-child(2) {
  left: 38%;
  height: 82px;
}
.building-art i:nth-child(3) {
  left: 69%;
  height: 122px;
}
.building-art span {
  position: absolute;
  bottom: 0;
  left: 7%;
  font-size: 10px;
  letter-spacing: 0.06em;
}
.sharing-art {
  display: grid;
  place-items: center;
}
.sharing-art i {
  position: absolute;
  left: 50%;
  top: 50%;
  border: 1px solid #d2ad8a80;
  border-radius: 50%;
  width: 140px;
  height: 140px;
  transform: translate(-50%, -50%);
}
.sharing-art i:nth-child(2) {
  width: 100px;
  height: 100px;
}
.sharing-art i:nth-child(3) {
  width: 60px;
  height: 60px;
}
.sharing-art span {
  position: relative;
  text-align: center;
  line-height: 1.4;
  font-size: 13px;
  padding: 8px 18px;
  background: #211c24;
}
@media (min-width: 901px) {
  .story .chronicle article:nth-child(2) .chapter-composition {
    order: 2;
  }
  .story .chronicle article:nth-child(2) > div:last-child {
    order: 1;
  }
}
@media (max-width: 900px) {
  .story .chronicle article {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 45px;
    padding-block: 60px;
    min-height: 0;
  }
  .chapter-composition {
    padding-block: 10px;
  }
  .story .milestone.word {
    font-size: 23vw;
  }
  .chapter-art {
    height: 150px;
    max-width: 430px;
    margin-top: 20px;
  }
  .school-hero h1 > span {
    line-height: 1.3;
  }
  .object-scene figure {
    margin-bottom: 55px;
  }
}
.working-heading h2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 60px);
  font-size: clamp(40px, 8.5vw, 140px);
  line-height: 1.1;
}
.working-heading h2 > span {
  min-width: 0;
}
.chapter-next {
  position: static;
  display: block;
  margin-top: 16px;
  line-height: 1.1;
}
.chapter-portrait {
  display: grid;
  grid-template-rows: auto auto;
  height: auto;
  gap: 16px;
  margin-bottom: 45px;
}
.chapter-portrait img {
  height: auto;
  aspect-ratio: 4 / 5;
}
.chapter-portrait .chapter-next { margin: 0; }
.story-pinned .chapter-portrait {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 16px;
  height: min(520px, calc(100svh - 285px));
}
.story-pinned .chapter-portrait img {
  height: 100%;
  object-fit: contain;
}
.story-pinned .chapter-next {
  margin: 0;
  font-size: clamp(55px, 7vw, 95px);
}
@media (max-width: 600px) {
  .working-heading h2 {
    grid-template-columns: minmax(0, 1fr);
    font-size: 15vw;
    gap: 8px;
  }
}
@media (min-width: 901px) {
  .portrait-card {
    width: min(100%, max(180px, calc((100svh - 390px) * .8)), 380px);
  }
}
.hero-copy p {
  max-width: 38ch;
}
/* Compact screens keep the opening story, with natural scrolling. */
.intro-orb { display: none; }
.compact-opening .intro { isolation: isolate; overflow: hidden; }
.compact-opening .intro-orb {
  display: block;
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--purple);
  clip-path: circle(0px at 50% 50%);
  pointer-events: none;
}
.compact-opening .conversation-scene { background: transparent; }
.message-front {
  justify-content: flex-start;
  text-align: left;
}
.message-front .message-text { color: var(--ink); }
.message-front .message-period { color: var(--purple); }
.school-path svg { left: 0; width: 100%; stroke-linecap: round; stroke-linejoin: round; }
.js .work-progress { display: block; }
.menu-icon { transition: transform 0.25s ease; }
.menu-toggle[aria-expanded="true"] .menu-icon { transform: rotate(45deg); }
