/* The pared-back, scroll-led home page. Header and document styles stay shared. */
.scroll-home { --header-height: 64px; }
.scroll-home main { overflow: visible; }
.opening {
  min-height: min(740px, calc(100svh - var(--header-height)));
  padding: clamp(100px, 15svh, 180px) 22px 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.opening h1 {
  font-family: var(--mono);
  font-size: clamp(68px, 11vw, 142px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.085em;
  margin: 0 0 30px;
}
.opening-tagline {
  font-family: var(--serif);
  font-size: clamp(25px, 3.5vw, 46px);
  line-height: 1.2;
  letter-spacing: -.04em;
  margin: 0;
}
.opening-availability {
  margin: 23px 0 0;
  font-family: var(--mono);
  font-size: clamp(10px, 1.2vw, 13px);
  line-height: 1.8;
  color: var(--muted);
}
.scroll-film { position: relative; margin: 0; padding: 0 22px; }
.film-sticky {
  min-height: min(760px, calc(100svh - var(--header-height)));
  display: grid;
  place-items: center;
}
.film-view {
  position: relative;
  width: min(1240px, 100%);
  margin-inline: auto;
  border-radius: 10px;
  overflow: hidden;
  background: #e3e5e4;
  transform-origin: center;
}
.home .scroll-video {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100svh - var(--header-height) - 70px);
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #e3e5e4;
}
.film-toggle {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  border: 1px solid #29282035;
  border-radius: 30px;
  padding: 9px 15px;
  background: #f5f1e8ed;
  color: #292820;
  font-family: var(--mono);
  font-size: 10px;
  cursor: pointer;
  box-shadow: 0 3px 12px #2928200a;
}
.film-toggle:hover { background: #fffdf7; }
.film-view.is-playing .film-toggle { top: 16px; bottom: auto; }
/* Long scroll tracks are enabled only when JS can control video seeking. */
.scroll-home.has-scroll-films .scroll-film:not(.manual-film) {
  height: calc(100svh + var(--film-travel, 160svh));
}
.has-scroll-films .scroll-film:not(.manual-film) .film-sticky {
  position: sticky;
  top: var(--header-height);
  height: calc(100svh - var(--header-height));
}
.scroll-copy {
  min-height: 82svh;
  max-width: 1080px;
  margin: 0 auto;
  padding: 110px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.scroll-copy h2, .quote-section blockquote p {
  font-family: var(--serif);
  font-size: clamp(40px, 6.4vw, 86px);
  font-weight: normal;
  letter-spacing: -.045em;
  line-height: 1.13;
  margin: 0;
  text-wrap: balance;
}
.manifesto h2 { font-family: var(--mono); font-weight: bold; font-size: clamp(33px, 5.8vw, 78px); line-height: 1.35; letter-spacing: -.06em; }
.manifesto .unfold-line {
  margin: clamp(60px, 10svh, 110px) 0 0;
  font-family: var(--serif);
  font-size: clamp(34px, 5.2vw, 70px);
  line-height: 1.15;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.scroll-word { opacity: var(--word-opacity, 1); }
.quote-section { min-height: 92svh; max-width: 1070px; }
.quote-section blockquote { margin: 0; }
.quote-section blockquote p { font-size: clamp(32px, 4.7vw, 64px); line-height: 1.25; }
.quote-section cite {
  display: block;
  font-family: var(--mono);
  font-size: clamp(18px, 2.2vw, 26px);
  line-height: 1.7;
  color: var(--muted);
  font-style: normal;
  margin-top: 36px;
}
.platform-section { min-height: 62svh; padding-top: 50px; }
.pencil-section h2 { font-size: clamp(36px, 5.2vw, 70px); }
.penpals-section {
  min-height: 75svh;
  max-width: none;
  padding-top: 30px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.penpals-section::before {
  content: '';
  position: absolute;
  inset: 0 0 0 65%;
  z-index: -1;
  pointer-events: none;
  background: url('images/type-scatter-800.webp') right bottom / cover no-repeat;
  opacity: .16;
  mask-image: linear-gradient(to right, transparent, #000 65%);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 65%);
}
.penpals-section h2 { font-size: clamp(35px, 4.9vw, 66px); max-width: 940px; }
.closing-banner { max-width: 1160px; margin: 0 auto; padding: 25px 22px 70px; }
.closing-banner picture, .closing-banner img { display: block; width: 100%; height: auto; }
@media (max-width: 760px) {
  .opening { min-height: 65svh; padding-top: 100px; padding-bottom: 80px; }
  .opening h1 { margin-bottom: 26px; }
  .scroll-film { padding-inline: 12px; }
  .scroll-copy { min-height: 72svh; padding: 85px 25px; }
  .quote-section { min-height: 85svh; }
  .platform-section { min-height: 58svh; padding-block: 60px; }
  .penpals-section { min-height: 68svh; }
  .film-view { border-radius: 6px; }
  .film-toggle { right: 10px; bottom: 10px; font-size: 9px; padding: 8px 12px; }
  .closing-banner { padding: 15px 12px 35px; }
}
@media (max-width: 480px) {
  .scroll-home { --header-height: 58px; }
  .opening h1 { font-size: clamp(57px, 17vw, 78px); }
  .opening-tagline { font-size: 28px; }
  .opening-availability { max-width: 300px; font-size: 10px; }
  .scroll-copy h2 { font-size: clamp(34px, 9.3vw, 44px); }
  .manifesto h2 { font-size: clamp(29px, 8.6vw, 40px); }
  .quote-section blockquote p { font-size: 34px; }
  .quote-section cite { font-size: 18px; margin-top: 28px; }
  .penpals-section h2 { font-size: 36px; }
  .penpals-section::before { left: 50%; opacity: .09; }
}
/* Reduced motion and data saving use regular, click-to-play videos. */
.scroll-home.static-films .film-sticky { min-height: 0; padding-block: 30px; }
.scroll-home.static-films .scroll-copy { min-height: 50svh; }
.scroll-home .opening h1,
.scroll-home .manifesto h2 {
  font-family: var(--typewriter);
  font-weight: 400;
  letter-spacing: -.035em;
}
.scroll-home .platform-section h2 {
  font-size: clamp(24px, 3.4vw, 46px);
  line-height: 1.3;
  letter-spacing: -.025em;
}
@media (prefers-reduced-motion: reduce) {
  .scroll-word { opacity: 1 !important; }
  .film-view { transform: none !important; opacity: 1 !important; }
}
@media (max-width: 640px) {
  .scroll-home { --header-height: 88px; }
}
