.top-page {
  --night: #14100c;
  background: var(--night);
  color: var(--bg);
}
.top-page :is(main, .site-header) :focus-visible { outline-color: var(--bg); }
.top-page .skip { color: var(--text); }
.top-page .skip:focus-visible { outline-color: var(--wood); }
.top-page .site-header {
  background: var(--night);
  border-color: var(--wood-deep);
}
.top-page :is(.button:not(.button-accent), .menu-toggle) {
  background: var(--night);
  border-color: var(--wood);
  color: var(--bg);
}
.top-page .brand img { filter: invert(1); }
.top-page .brand { font-size: clamp(1.125rem, 1rem + 0.4vw, 1.25rem); }
.top-screen {
  position: relative;
  isolation: isolate;
  overflow: clip;
}
.top-backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--night);
}
.top-backdrop :is(img, canvas) {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.top-backdrop img { object-fit: cover; opacity: 0.21; }
.top-cinema:not(.is-moving) .top-backdrop { bottom: auto; height: 85svh; }
.top-backdrop canvas { visibility: hidden; }
.top-screen.has-hall canvas { visibility: visible; }
.top-screen.has-hall img { visibility: hidden; }
.top-intro {
  display: grid;
  align-content: center;
  justify-items: center;
  min-height: 85svh;
  padding: var(--gutter);
  text-align: center;
}
.top-wordmark {
  max-width: 100%;
  margin: 0;
  font: 600 clamp(1rem, 8.4vw, 18rem)/0.88 var(--utility);
  letter-spacing: -0.045em;
  color: var(--wood);
}
.top-wordmark-word { display: inline-block; white-space: nowrap; clip-path: inset(-0.2em -0.15em -0.14em); }
.top-wordmark-letter { display: inline-block; }
@supports (background-clip: text) {
  .top-wordmark,
  .top-wordmark-letter {
    background: linear-gradient(112deg, var(--wood) 15%, var(--bg) 48%, var(--wood) 65%, var(--wood-deep) 110%);
    background-clip: text;
    color: transparent;
  }
  .top-wordmark-letter { background-size: 600% 100%; background-position: var(--letter-position) 50%; }
  .top-wordmark:has(.top-wordmark-letter) { background: none; }
}
.top-intro h1 {
  margin-top: clamp(1.5rem, 4vw, 4rem);
  font-size: clamp(1.75rem, 4.5vw, 5rem);
  text-wrap: balance;
}
.top-chapters {
  width: min(75rem, 100% - 2 * var(--gutter));
  margin-inline: auto;
  display: grid;
  gap: 3rem;
  padding-block: var(--gutter) var(--section);
}
.top-chapter {
  width: min(100%, 35rem);
  text-shadow: 0 2px 8px var(--night), 0 0 20px var(--night);
}
.top-chapter > span { color: var(--wood); }
.top-chapter h2 { font-family: "Shippori Mincho B1", serif; font-size: clamp(3rem, 9vw, 8rem); line-height: 1.1; }
.top-chapter p { max-width: 30em; font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem); }
.top-progress, .top-scroll { display: none; }
.top-cinema.is-moving { height: 300svh; }
.top-cinema.is-moving.is-wide { height: 500svh; }
.is-moving .top-screen {
  position: sticky;
  top: 0;
  height: 100svh;
}
.is-moving .top-intro {
  position: absolute;
  inset: 0;
  min-height: 0;
}
.is-moving .top-backdrop::after {
  content: "";
  position: absolute;
  inset: 60% 0 0;
  background: linear-gradient(to bottom, transparent, var(--night));
}
.is-moving .top-chapters {
  height: 100%;
  align-items: end;
  padding-bottom: clamp(2rem, 8svh, 6rem);
}
.is-moving .top-chapter { grid-area: 1 / 1; opacity: 0; }
.is-moving .top-progress {
  display: block;
  position: absolute;
  inset-block: 18% 18%;
  inset-inline-end: calc(var(--gutter) / 2);
  width: 1px;
  background: var(--wood-deep);
}
.top-progress span {
  display: block;
  height: 100%;
  transform: scaleY(0);
  transform-origin: top;
  background: var(--bg);
}
.is-moving .top-scroll {
  display: block;
  position: absolute;
  inset: auto var(--gutter) 1rem auto;
  margin: 0;
  color: var(--bg);
  background: var(--night);
  padding: 0.15em 0.55em;
  font-size: clamp(1rem, 1.3vw, 1.125rem);
}
.top-section { margin-block: var(--section); }
.top-section h2, .top-page .cta h2 {
  font-size: clamp(1.75rem, 4.5vw, 4.75rem);
  text-wrap: balance;
}
.top-numbers, .top-cases, .top-issues { border-top: 1px solid var(--wood-deep); padding-top: var(--section); }
.top-note { color: var(--line); }
.top-metrics {
  margin-top: clamp(1.75rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: clamp(1.25rem, 3vw, 3rem);
}
.top-metrics > div { border-top: 1px solid var(--wood-deep); padding-top: 1rem; }
.top-value {
  margin-block: 0.15em;
  color: var(--wood);
  font-size: clamp(3rem, 5.8vw, 7rem);
  line-height: 1;
  white-space: nowrap;
}
.top-value small { font-size: clamp(1rem, 2.1vw, 2.25rem); }
.top-case-stage { overflow: clip; }
.top-case-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  padding: clamp(1.5rem, 3vw, 3rem) var(--gutter) 1rem;
  width: min(75rem, 100%);
  margin-inline: auto;
}
.top-case-stage.is-pinned .top-case-list {
  display: flex;
  width: max-content;
  margin: 0;
}
.is-pinned .top-case-list li { width: min(69vw, 70rem); }
.top-case-link { display: block; text-decoration: none; }
.top-case-link:hover h3 { text-decoration: underline; }
.top-case-image {
  overflow: hidden;
  aspect-ratio: 3 / 2;
}
.is-pinned .top-case-image { height: min(49svh, 36vw); aspect-ratio: auto; }
.top-case-image img { width: 100%; height: 100%; }
.top-case-copy { padding-top: 1rem; }
.top-case-copy h3 { font-size: clamp(1.4rem, 2.4vw, 2.65rem); }
.top-issue-list, .top-updates ul { margin-top: clamp(1.5rem, 4vw, 3.5rem); }
.top-issue-list li { border-top: 1px solid var(--wood-deep); }
.top-issue-list li:last-child { border-bottom: 1px solid var(--wood-deep); }
.top-issue-list a {
  display: block;
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding: clamp(1.25rem, 4vw, 3.5rem) clamp(0.5rem, 2vw, 1.5rem);
  text-decoration: none;
}
.top-issue-list h3 { font-size: clamp(1.5rem, 4vw, 4rem); }
.top-issue-list a:hover h3 { text-decoration: underline; }
.top-issue-list img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: 0;
}
.has-photo-hover .top-issue-list img { transition: opacity 0.4s ease-out; }
.has-photo-hover .top-issue-list a:is(:hover, :focus-visible) img { opacity: 0.22; }
.top-updates {
  display: grid;
  gap: clamp(2.5rem, 6vw, 6rem);
}
.top-updates li { border-top: 1px solid var(--wood-deep); }
.top-updates :is(time, .news-list span) { color: var(--line); }
.top-seminar-list a { display: block; padding-block: 1rem; }
.top-seminar-list h3 { margin-top: 0.45rem; }
.top-updates .news-list a { flex-basis: 100%; }
.top-page .cta {
  background: var(--night);
  color: var(--bg);
  border-top: 1px solid var(--wood-deep);
  padding-block: var(--section);
}
@media (min-width: 48rem) {
  .top-updates { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
