/* Stable height prevents embedded-browser toolbars from shifting the collage. */
body[data-page="home"] .spark-opening {
  padding-top: 0;
  background: transparent;
}
body[data-page="home"] .opening-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  height: calc(var(--hero-viewport-height, 100svh) - var(--site-header-height));
  min-height: 480px;
  background: transparent;
}
body[data-page="home"] .opening-hero::before {
  content: none;
}
body[data-page="home"] .opening-hero::after {
  content: none;
}
body[data-page="home"] .opening-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 34px 24px 88px;
  color: var(--ink);
  text-align: center;
  text-shadow: 0 0 3px #fff, 0 2px 7px rgb(255 255 255 / .95);
  pointer-events: none;
}
/* Paint the white outline behind each glyph so its dark fill stays intact. */
body[data-page="home"] :is(.opening-title, .opening-romanization, .opening-period, .opening-venue, .home-countdown, .opening-scroll) {
  -webkit-text-stroke: 2px #fff;
  paint-order: stroke fill;
}
body[data-page="home"] .opening-title {
  -webkit-text-stroke-width: 4px;
}
body[data-page="home"] .opening-summary {
  position: relative;
  inset: auto;
  transform: none;
  width: 100%;
  margin: 0;
  padding: 0;
  color: inherit;
  text-align: center;
}
body[data-page="home"] .opening-copy {
  width: 100%;
  transform-origin: 50% 45%;
}
/* A quiet horizontal aperture reveals the title as two intact words. */
.page-motion-ready[data-page="home"] .opening-overlay[data-page-reveal="hero-copy"] {
  opacity: 1;
  translate: none;
  transition: none;
  will-change: auto;
}
.page-motion-ready[data-page="home"] .opening-overlay[data-page-state="waiting"] .opening-title-word {
  opacity: 0;
  clip-path: inset(48% -3% 48% -3%);
  transform: translate3d(12px, 0, 0);
}
.page-motion-ready[data-page="home"] .opening-overlay.page-reveal-arriving .opening-title-word {
  animation: hero-title-aperture 1.35s cubic-bezier(.22, 1, .36, 1) calc(var(--page-reveal-delay, 0ms) + var(--title-word-delay, 0ms)) both;
  will-change: transform, opacity;
}
body[data-page="home"] .opening-title-name { --title-word-delay: 180ms; }
body[data-page="home"] .opening-romanization { --hero-line-delay: 600ms; }
body[data-page="home"] .opening-period { --hero-line-delay: 800ms; }
body[data-page="home"] .opening-venue { --hero-line-delay: 1000ms; }
body[data-page="home"] .home-countdown-wrap { --hero-line-delay: 1200ms; }
.page-motion-ready[data-page="home"] .opening-overlay[data-page-state="waiting"] :is(.opening-romanization, .opening-period, .opening-venue, .home-countdown-wrap) {
  opacity: 0;
  transform: translate3d(0, 12px, 0);
}
.page-motion-ready[data-page="home"] .opening-overlay.page-reveal-arriving :is(.opening-romanization, .opening-period, .opening-venue, .home-countdown-wrap) {
  animation: hero-line-unveil .8s cubic-bezier(.16, 1, .3, 1) calc(var(--page-reveal-delay, 0ms) + var(--hero-line-delay)) both;
  will-change: transform, opacity;
}
@keyframes hero-title-aperture {
  0% {
    opacity: 0;
    clip-path: inset(48% -3% 48% -3%);
    transform: translate3d(12px, 0, 0);
  }
  55% {
    opacity: .88;
    clip-path: inset(5% -3% 5% -3%);
  }
  100% {
    opacity: 1;
    clip-path: inset(-8% -3% -8% -3%);
    transform: none;
  }
}
@keyframes hero-line-unveil {
  from { opacity: 0; transform: translate3d(0, 12px, 0); }
  to { opacity: 1; transform: none; }
}
.motion-paused.page-motion-ready[data-page="home"] .opening-overlay :is(.opening-title-word, .opening-romanization, .opening-period, .opening-venue, .home-countdown-wrap) {
  opacity: 1;
  transform: none;
  clip-path: none;
  animation: none;
  will-change: auto;
}
body[data-page="home"] .opening-title {
  margin: 0;
  font-size: clamp(36px, 6.6vw, 86px);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: .045em;
}
body[data-page="home"] .opening-title-word {
  display: inline-block;
  white-space: nowrap;
}
body[data-page="home"] .opening-title-small {
  font-size: .52em;
}
body[data-page="home"] .opening-romanization {
  margin: 0 0 24px;
  font-size: clamp(11px, 1.2vw, 16px);
  font-weight: 800;
  letter-spacing: .36em;
}
body[data-page="home"] .opening-period {
  justify-content: center;
  font-size: clamp(23px, 3vw, 37px);
  line-height: 1.3;
}
body[data-page="home"] .opening-period-dash, body[data-page="home"] .opening-venue > span {
  color: inherit;
}
body[data-page="home"] .opening-period-dash {
  align-self: center;
  display: flex;
  align-items: center;
  transform: translateY(2px);
}
body[data-page="home"] .opening-period-arrow {
  display: block;
  width: 1.2em;
  height: auto;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 2px #fff);
}
body[data-page="home"] .opening-venue {
  margin: 10px 0 0;
  font-size: clamp(12px, 1.3vw, 16px);
}
body[data-page="home"] .home-countdown-wrap {
  margin-top: 22px;
  padding: 0;
}
body[data-page="home"] .home-countdown {
  justify-content: center;
  gap: 8px 12px;
  margin: 0 auto;
  color: inherit;
}
body[data-page="home"] .countdown-value {
  font-size: clamp(36px, 4vw, 54px);
}
body[data-page="home"] .countdown-label, body[data-page="home"] .countdown-unit {
  font-size: clamp(14px, 1.5vw, 18px);
}
body[data-page="home"] .home-countdown[data-mode="clock"] {
  flex-wrap: nowrap;
  gap: clamp(6px, 1vw, 12px);
  white-space: nowrap;
}
body[data-page="home"] .home-countdown[data-mode="clock"] .countdown-label {
  font-size: clamp(11px, 3.3vw, 18px);
  letter-spacing: .02em;
}
body[data-page="home"] .home-countdown[data-mode="clock"] .countdown-value {
  display: inline-flex;
  align-items: baseline;
  font-size: clamp(24px, 7.2vw, 38px);
  letter-spacing: 0;
}
body[data-page="home"] .countdown-number {
  min-width: 1.15em;
  text-align: center;
}
body[data-page="home"] .countdown-unit-inline {
  margin: 0 .12em 0 .04em;
  font-size: .5em;
  font-weight: 700;
}
body[data-page="home"] .home-countdown [hidden] {
  display: none;
}
body[data-page="home"] .home-countdown[data-state="after"] {
  display: grid;
  gap: 10px;
}
body[data-page="home"] .countdown-message {
  display: grid;
  gap: 4px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
}
body[data-page="home"] .countdown-mobile-break {
  display: none;
}
body[data-page="home"] .opening-dates-title {
  margin: 0 0 28px;
  color: #fff;
  font-size: var(--home-heading-size);
  font-weight: 900;
  line-height: 1.4;
}
body[data-page="home"] .opening-scroll {
  position: absolute;
  z-index: 5;
  right: 24px;
  bottom: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 8px;
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
  text-decoration: none;
}
body[data-page="home"] .opening-scroll-arrow {
  width: 24px;
  height: 52px;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
body[data-page="home"] .opening-scroll-track {
  stroke: currentColor;
  stroke-opacity: .2;
}
body[data-page="home"] .opening-scroll-ink {
  stroke: currentColor;
  stroke-dasharray: 48 200;
  animation: opening-scroll-flow 2.6s ease-in-out infinite;
}
.entry-pending body[data-page="home"] .opening-scroll {
  visibility: hidden;
}
@keyframes opening-scroll-flow {
  from {
    stroke-dashoffset: 52;
  }
  to {
    stroke-dashoffset: -104;
  }
}
@media (max-width: 760px) {
  body[data-page="home"] .opening-hero {
    min-height: 440px;
  }
  body[data-page="home"] .opening-overlay {
    padding: 24px 16px 108px;
  }
  body[data-page="home"] .opening-title {
    font-size: clamp(32px, 8.8vw, 54px);
    letter-spacing: .02em;
    -webkit-text-stroke-width: 3px;
  }
  body[data-page="home"] .opening-romanization {
    margin: 0 0 20px;
    font-size: 11px;
  }
  body[data-page="home"] .opening-period {
    gap: 8px;
    font-size: clamp(21px, 5.4vw, 30px);
  }
  body[data-page="home"] .opening-venue {
    font-size: 11px;
    letter-spacing: .025em;
  }
  body[data-page="home"] .home-countdown-wrap {
    margin-top: 16px;
  }
  body[data-page="home"] .countdown-value {
    font-size: 38px;
  }
  body[data-page="home"] .countdown-label, body[data-page="home"] .countdown-unit {
    font-size: 13px;
  }
  body[data-page="home"] .opening-scroll {
    right: 14px;
    bottom: 88px;
    font-size: 9px;
  }
  body[data-page="home"] .opening-scroll-arrow {
    width: 20px;
    height: 40px;
  }
  body[data-page="home"] .countdown-message {
    font-size: 12px;
  }
  body[data-page="home"] .opening-dates-title {
    margin-bottom: 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  body[data-page="home"] .opening-scroll-ink {
    animation: none;
    stroke-dasharray: none;
  }
}
@media (prefers-reduced-motion: reduce), print {
  .page-motion-ready[data-page="home"] .opening-overlay[data-page-reveal="hero-copy"] :is(.opening-title-word, .opening-romanization, .opening-period, .opening-venue, .home-countdown-wrap) {
    opacity: 1;
    transform: none;
    clip-path: none;
    animation: none;
    will-change: auto;
  }
}
