:root {
  --plaster: #EEF0EC;
  --sumi: #1E2421;
  --sugi: #C08A55;
  --koke: #5E6B4E;
  --dusk: #F2B868;
  --ai: #2D4A6B;
  --mincho: "Zen Old Mincho", serif;
  --gothic: "Zen Kaku Gothic New", sans-serif;
  --instrument: "Instrument Serif", serif;
  --gutter: clamp(1.25rem, 5.5vw, 6.5rem);
  --line: color-mix(in srgb, var(--sumi) 35%, var(--plaster));
  color: var(--sumi);
  background: var(--plaster);
  font-family: var(--gothic);
  font-size: clamp(1rem, 0.96rem + 0.19vw, 1.125rem);
  line-height: 1.75;
}
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, dl, dd, figure { margin: 0; }
a { color: inherit; }
button, input, textarea { font: inherit; }
button, summary { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  padding: .8rem var(--gutter);
  border-bottom: 1px solid var(--line);
}
.brand {
  font-family: var(--mincho);
  font-weight: 900;
  text-decoration: none;
  letter-spacing: -.04em;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: .55rem clamp(.65rem, 2vw, 1.5rem);
  border: 1px solid var(--plaster);
  background: var(--ai);
  color: var(--plaster);
  font-weight: 700;
  text-decoration: none;
}
.button:hover { text-decoration: underline; }
.button:focus-visible { outline-color: var(--sumi); }
.stage .button:focus-visible { outline-color: var(--plaster); }
.wrap { width: min(100% - 2 * var(--gutter), 75rem); margin-inline: auto; }
.section { padding-block: clamp(4.5rem, 11vw, 10rem); }
h1, h2, h3 { font-family: var(--mincho); font-weight: 900; letter-spacing: -.055em; line-height: 1.19; }
.section-title { font-size: clamp(2.45rem, 6vw, 5.8rem); }
h3 { font-size: clamp(1.65rem, 3.3vw, 3.2rem); }
.figures, .hero-date span, .count { font-family: var(--instrument); font-weight: 400; }
.intro {
  display: grid;
  isolation: isolate;
  color: var(--plaster);
  background: var(--sumi);
}
.stage, .story { grid-area: 1 / 1; min-width: 0; }
.stage {
  position: relative;
  align-self: start;
  height: 100svh;
  pointer-events: none;
}
.dusk-view, .house { display: block; width: 100%; height: 100%; }
.dusk-view { mask-image: linear-gradient(var(--sumi) 70%, transparent); }
.story { position: relative; }
.chapter {
  display: grid;
  justify-items: start;
  gap: clamp(1rem, 4vw, 3rem);
  padding: clamp(2rem, 7vw, 6rem) var(--gutter);
}
.story-panel, .material, .materials > h2 {
  min-width: 0;
  width: fit-content;
  max-width: min(100%, 31rem);
  padding: clamp(1rem, 2vw, 2rem);
  border-inline-start: 2px solid var(--sugi);
  background: color-mix(in srgb, var(--sumi) 92%, transparent);
}
.story-panel h1 { font-size: clamp(2.8rem, 7vw, 7.5rem); }
.story-panel h2 { font-size: clamp(1.85rem, 4vw, 4rem); }
.story-panel h1, .story-panel h2, .material h3 { margin-block: .2em .35em; }
.opening > p:first-child { font-weight: 700; }
.hero-date span { font-size: clamp(1.5rem, 3vw, 2.7rem); line-height: 1; }
.closing .button { margin-top: .5rem; }
.story .button:focus-visible { outline-color: var(--plaster); }
.chapter-1 { align-items: end; min-height: 92svh; }
.immersive .stage { position: sticky; top: 0; }
.immersive .dusk-view { display: none; }
.immersive .stage::after {
  position: absolute;
  inset: auto 0 0;
  height: 24%;
  background: linear-gradient(transparent, var(--sumi));
  opacity: var(--dusk-fade, 0);
  content: "";
}
.immersive .story-panel, .immersive .material, .immersive .materials > h2 {
  max-width: min(100%, 27rem);
  background: color-mix(in srgb, var(--sumi) 56%, transparent);
  backdrop-filter: blur(8px);
  text-shadow: 0 1px 4px var(--sumi);
}
.immersive .opening {
  max-width: 100%;
  padding: 0;
  border: 0;
  background: none;
  backdrop-filter: none;
  text-shadow: 0 2px 5px var(--sumi), 0 3px 18px var(--sumi);
}
.immersive .opening h1 { font-size: clamp(3rem, 8vw, 8rem); }
.immersive .closing:not(:focus-within) { opacity: var(--closing-opacity, 1); }
.immersive .chapter {
  align-items: end;
  min-height: 125svh;
  padding-top: 12svh;
  padding-bottom: 14svh;
}
.immersive .chapter-1 { min-height: 100svh; }
.immersive .chapter-2 { min-height: 150svh; }
.immersive .chapter-3 { min-height: 110svh; }
.immersive .chapter-4 { min-height: 0; align-items: start; }
.immersive .chapter-4 > .story-panel { margin-top: 35svh; }
.immersive .materials > * { margin-block: 24svh 0; }
.immersive .chapter-5 { min-height: 155svh; }
.immersive .chapter-6 {
  min-height: 0;
  align-content: start;
  padding-top: 56svh;
  padding-bottom: clamp(1.25rem, 4vw, 3rem);
  row-gap: clamp(1.5rem, 5vw, 4rem);
}
.journey-meter {
  position: absolute;
  z-index: 1;
  inset: clamp(.65rem, 2vw, 1.6rem) 0 auto auto;
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .35rem .8rem;
  background: var(--sumi);
  color: var(--plaster);
  font-weight: 700;
}
.journey-line {
  width: clamp(2.75rem, 11vw, 10rem);
  height: 2px;
  background: color-mix(in srgb, var(--plaster) 45%, var(--sumi));
}
.journey-line::after {
  display: block;
  height: 100%;
  background: var(--sugi);
  transform: scaleX(var(--progress, 0));
  transform-origin: left;
  content: "";
}
.event, .faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(1.25rem, 4vw, 5rem); }
.event { align-items: end; margin-bottom: 2rem; }
.visit { width: 100%; max-width: 56rem; }
.immersive .visit { max-width: min(100%, 53rem); }
.visit > div { margin-bottom: 1.25rem; }
.visit .times button { color: var(--plaster); border-color: var(--sugi); }
.visit .times button[aria-pressed="true"] { color: var(--sumi); background: var(--plaster); outline-color: var(--plaster); }
.event h2 { font-size: clamp(1.75rem, 3.5vw, 3rem); }
.year { margin-top: 1rem; font-weight: 700; }
.dates { display: flex; align-items: center; gap: clamp(.6rem, 2.5vw, 2rem); }
.dates > div { display: flex; align-items: baseline; gap: .35rem; }
.count { color: var(--sugi); min-width: .86em; font-size: clamp(3.8rem, 8vw, 7rem); line-height: .95; font-variant-numeric: tabular-nums; }
.date-divider { width: clamp(1.2rem, 5vw, 4rem); border-top: 1px solid var(--sugi); }
.event-details > div { display: grid; grid-template-columns: 3.5em minmax(0, 1fr); gap: 1rem; padding-block: .8rem; border-top: 1px solid var(--sugi); }
.event-details > div:last-child { border-bottom: 1px solid var(--sugi); }
.event-details dt { font-weight: 700; }
.figures { font-size: clamp(1.35rem, 2.7vw, 2rem); line-height: 1; }
.materials { display: grid; gap: clamp(1rem, 4vw, 3rem); width: 100%; }
.materials > h2 { font-size: clamp(1.85rem, 4vw, 4rem); }
.material:nth-of-type(2) { justify-self: end; }
.works { width: 100%; max-width: 75rem; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.25rem, 4vw, 4rem); margin-top: 1rem; }
.photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.immersive.photos-ready .works {
  position: sticky;
  top: 66svh;
  align-self: start;
  max-width: 33rem;
  margin-top: 42svh;
}
.immersive.photos-ready .gallery { gap: .4rem 1.4rem; }
.immersive.photos-ready .photo {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem; padding-top: .65rem; font-weight: 700; }
figcaption span { font-weight: 400; }
.booking, .faq, .footer { color: var(--plaster); }
main, .footer { background: color-mix(in srgb, var(--sumi) 91%, var(--sugi)); }
.booking { border-block: 1px solid var(--sugi); }
.intro.immersive + .booking {
  border-top: 0;
  padding-top: clamp(1rem, 3vw, 2.5rem);
  background: linear-gradient(var(--sumi), transparent);
}
.booking-layout { max-width: 46rem; }
.booking .button:focus-visible { outline-color: var(--plaster); }
.slots { min-width: 0; padding: 0; margin: 0 0 1.25rem; border: 0; }
.slots legend { margin-bottom: .55rem; font-family: var(--mincho); font-weight: 900; }
.times { display: flex; flex-wrap: wrap; gap: .4rem; }
.times button { min-height: 2.75rem; padding: .3rem .65rem; border: 1px solid var(--sumi); background: transparent; color: var(--sumi); font-family: var(--instrument); font-size: clamp(1.25rem, 2vw, 1.5rem); }
.times button[aria-pressed="true"] { background: var(--sumi); color: var(--plaster); outline-color: var(--sumi); }
.times button:hover { text-decoration: underline; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-block: 1.4rem; }
.fields label { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .25rem; font-weight: 700; }
.fields label span { font-weight: 400; }
.fields input, .fields textarea { grid-column: 1 / -1; width: 100%; min-width: 0; min-height: 2.75rem; padding: .45rem .6rem; color: var(--plaster); background: transparent; border: 1px solid var(--sugi); border-radius: 0; }
.fields textarea { resize: vertical; }
.question { grid-column: 1 / -1; }
#form-status:not(:empty) { margin-top: .8rem; font-weight: 700; }
details { padding: 1rem 0; border-top: 1px solid var(--line); }
details:last-child { border-bottom: 1px solid var(--line); }
summary { font-weight: 700; }
details p { margin-top: .7rem; }
.footer { padding-block: clamp(2rem, 6vw, 5rem); }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
@media (max-width: 48rem) {
  .event, .gallery, .faq { grid-template-columns: minmax(0, 1fr); }
  .immersive.photos-ready .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
