:root {
  --crimson: #7e1f24;
  --deep-crimson: #3b0e12;
  --green: #173f33;
  --gold: #c99a3a;
  --paper: #f4e6c9;
  --sepia: #5a351f;
  --ink: #0d0907;
  --ivory: #fff8e8;
  --shadow: rgba(9, 5, 3, 0.58);
  --serif: "Shippori Mincho B1", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --display: "Yuji Syuku", "Shippori Mincho B1", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ivory);
  background: var(--ink);
  font-family: var(--serif);
  line-height: 1.75;
  overflow-x: hidden;
}

img,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  color: var(--ivory);
  mix-blend-mode: difference;
}

.brand {
  font-family: var(--display);
  font-size: clamp(18px, 2vw, 28px);
  letter-spacing: 0;
}

.nav {
  display: flex;
  gap: clamp(12px, 2.6vw, 34px);
  font-size: 14px;
}

.nav a {
  opacity: 0.82;
}

.panel {
  position: relative;
  min-height: 100svh;
  isolation: isolate;
  overflow: hidden;
}

.opening {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  background: var(--ink);
}

.curtain {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 51%;
  background:
    repeating-linear-gradient(90deg, rgba(255, 224, 154, 0.07) 0 8px, transparent 8px 18px),
    linear-gradient(135deg, #25070a, #8d2028 46%, #2a080c);
  box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.5);
}

.curtain-left {
  left: 0;
}

.curtain-right {
  right: 0;
}

.glass-flare {
  position: absolute;
  inset: 0;
  background:
    conic-gradient(from 20deg at 50% 50%, transparent, rgba(226, 179, 74, 0.65), transparent, rgba(129, 27, 34, 0.7), transparent),
    radial-gradient(circle, rgba(255, 241, 179, 0.9), transparent 42%);
  opacity: 0;
  mix-blend-mode: screen;
}

.hero {
  display: grid;
  place-items: center;
  min-height: 100svh;
}

.hero-video,
.hero-scrim,
.hero-pattern {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-video {
  object-fit: cover;
  filter: saturate(1.18) contrast(1.08);
  transform: scale(1.04);
}

.hero-scrim {
  z-index: 1;
  background:
    radial-gradient(circle at 50% 42%, rgba(250, 209, 129, 0.14), transparent 34%),
    linear-gradient(90deg, rgba(13, 9, 7, 0.86), rgba(59, 14, 18, 0.25), rgba(13, 9, 7, 0.72)),
    linear-gradient(0deg, rgba(13, 9, 7, 0.94), transparent 38%, rgba(13, 9, 7, 0.55));
}

.hero-pattern {
  z-index: 2;
  opacity: 0.24;
  background:
    linear-gradient(45deg, transparent 45%, rgba(255, 236, 178, 0.28) 46% 48%, transparent 49%),
    linear-gradient(-45deg, transparent 45%, rgba(255, 236, 178, 0.18) 46% 48%, transparent 49%);
  background-size: 46px 46px;
  mix-blend-mode: overlay;
}

.hero-copy {
  position: relative;
  z-index: 5;
  width: min(1040px, calc(100% - 36px));
  padding-top: 8vh;
  text-align: center;
  text-shadow: 0 14px 42px var(--shadow);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 20px;
  font-family: var(--display);
  font-size: clamp(64px, 13vw, 172px);
  font-weight: 400;
  line-height: 0.95;
}

h2 {
  color: inherit;
  font-family: var(--display);
  font-size: clamp(36px, 6vw, 92px);
  font-weight: 400;
  line-height: 1.12;
}

.lead {
  max-width: 720px;
  margin: 0 auto 34px;
  font-size: clamp(17px, 2vw, 24px);
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 26px;
  border: 1px solid rgba(255, 229, 158, 0.72);
  background: linear-gradient(135deg, rgba(126, 31, 36, 0.88), rgba(20, 56, 45, 0.92));
  color: var(--ivory);
  font-weight: 700;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.32);
}

.cta.dark {
  background: var(--green);
}

.hero-ornament {
  position: absolute;
  z-index: 4;
  width: min(720px, 72vw);
  height: 180px;
  object-fit: cover;
  object-position: top;
  opacity: 0.62;
  mix-blend-mode: screen;
  filter: invert(1) sepia(1) saturate(0.9) hue-rotate(345deg);
}

.ornament-top {
  top: 70px;
}

.ornament-bottom {
  bottom: 50px;
  transform: rotate(180deg);
}

.scroll-cue {
  position: absolute;
  z-index: 8;
  bottom: 28px;
  left: 50%;
  width: 1px;
  height: 64px;
  background: rgba(255, 248, 232, 0.28);
}

.scroll-cue span {
  display: block;
  width: 7px;
  height: 7px;
  margin-left: -3px;
  border-radius: 50%;
  background: var(--gold);
}

.story {
  padding: clamp(88px, 10vw, 150px) clamp(18px, 5vw, 72px);
  color: var(--sepia);
  background:
    radial-gradient(circle at 15% 20%, rgba(126, 31, 36, 0.16), transparent 34%),
    url("assets/paper-texture.png") center / cover;
}

.story::before,
.visit::before {
  content: "";
  position: absolute;
  inset: -20%;
  z-index: -1;
  opacity: 0.22;
  background:
    linear-gradient(45deg, var(--crimson) 12.5%, transparent 12.5% 37.5%, var(--green) 37.5% 62.5%, transparent 62.5% 87.5%, var(--crimson) 87.5%),
    linear-gradient(45deg, var(--crimson) 12.5%, transparent 12.5% 37.5%, var(--green) 37.5% 62.5%, transparent 62.5% 87.5%, var(--crimson) 87.5%);
  background-position: 0 0, 30px 30px;
  background-size: 60px 60px;
  transform: rotate(calc(var(--pattern-rotate, 0) * 1deg)) scale(1.08);
}

.chapter-mark {
  position: absolute;
  top: 100px;
  right: clamp(20px, 5vw, 80px);
  color: rgba(90, 53, 31, 0.24);
  font-family: var(--display);
  font-size: clamp(72px, 12vw, 180px);
  writing-mode: vertical-rl;
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(320px, 1.14fr);
  align-items: center;
  gap: clamp(28px, 6vw, 86px);
  max-width: 1280px;
  margin: 0 auto;
}

.section-copy {
  position: relative;
  z-index: 2;
}

.section-copy p:not(.eyebrow),
.experience-copy p,
.ticket p {
  max-width: 680px;
  font-size: clamp(15px, 1.6vw, 18px);
}

.framed-image {
  position: relative;
  margin: 0;
  border: 1px solid rgba(90, 53, 31, 0.45);
  padding: clamp(10px, 1.8vw, 18px);
  background: rgba(255, 248, 232, 0.6);
  box-shadow: 0 26px 70px rgba(49, 26, 12, 0.3);
}

.framed-image::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(126, 31, 36, 0.36);
  pointer-events: none;
}

.framed-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

figcaption {
  margin-top: 12px;
  color: rgba(90, 53, 31, 0.78);
  font-size: 13px;
}

.gallery {
  min-height: 260svh;
  background:
    linear-gradient(180deg, rgba(13, 9, 7, 0.28), rgba(13, 9, 7, 0.8)),
    radial-gradient(circle at 80% 20%, rgba(201, 154, 58, 0.32), transparent 28%),
    var(--green);
}

.gallery-sticky {
  position: sticky;
  top: 0;
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: clamp(70px, 8vw, 110px) clamp(18px, 5vw, 72px);
}

.gallery-copy {
  position: absolute;
  z-index: 5;
  top: 18vh;
  left: clamp(20px, 6vw, 86px);
  max-width: 720px;
  text-shadow: 0 16px 34px var(--shadow);
}

.layered-stage {
  position: relative;
  width: min(1180px, 92vw);
  height: min(72vh, 760px);
  perspective: 900px;
}

.scene {
  position: absolute;
  border: 1px solid rgba(255, 232, 160, 0.38);
  object-fit: cover;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.5);
}

.scene-back {
  inset: 7% 2% auto auto;
  width: 72%;
  height: 62%;
  opacity: 0.74;
}

.scene-mid {
  inset: 21% auto auto 0;
  width: 64%;
  height: 58%;
}

.scene-front {
  right: 0;
  bottom: 0;
  width: 55%;
  height: 58%;
}

.gaslight {
  position: absolute;
  top: 18%;
  left: 18%;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 229, 139, 0.85), rgba(255, 195, 74, 0.22) 38%, transparent 70%);
  filter: blur(4px);
  mix-blend-mode: screen;
}

.experience {
  display: grid;
  place-items: center;
  padding: 100px clamp(18px, 5vw, 72px);
  background:
    conic-gradient(from 18deg at 55% 40%, rgba(126, 31, 36, 0.8), rgba(201, 154, 58, 0.28), rgba(23, 63, 51, 0.82), rgba(13, 9, 7, 1), rgba(126, 31, 36, 0.8)),
    var(--ink);
}

.experience::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 49%, rgba(255, 232, 160, 0.16) 50%, transparent 51%),
    linear-gradient(0deg, transparent 49%, rgba(255, 232, 160, 0.11) 50%, transparent 51%);
  background-size: 9vw 9vw;
  opacity: 0.55;
}

.experience-copy {
  position: relative;
  z-index: 3;
  width: min(940px, 100%);
  text-align: center;
}

.experience-copy p {
  margin-right: auto;
  margin-left: auto;
}

.wipe-band {
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 2;
  width: 0%;
  background: linear-gradient(90deg, rgba(13, 9, 7, 0.98), rgba(126, 31, 36, 0.9), rgba(201, 154, 58, 0.24));
}

.motif-field span {
  position: absolute;
  width: clamp(120px, 20vw, 280px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 229, 158, 0.34);
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 32%, rgba(255, 229, 158, 0.24) 34% 35%, transparent 37%),
    conic-gradient(from 45deg, transparent, rgba(201, 154, 58, 0.24), transparent 30%);
}

.motif-field span:nth-child(1) {
  top: 10%;
  left: 8%;
}

.motif-field span:nth-child(2) {
  top: 18%;
  right: 12%;
}

.motif-field span:nth-child(3) {
  bottom: 12%;
  left: 18%;
}

.motif-field span:nth-child(4) {
  right: 22%;
  bottom: 10%;
}

.visit {
  display: grid;
  place-items: center;
  padding: 100px clamp(18px, 5vw, 72px);
  color: var(--sepia);
  background: url("assets/paper-texture.png") center / cover;
}

.ticket {
  position: relative;
  width: min(860px, 100%);
  padding: clamp(34px, 6vw, 74px);
  border: 1px solid rgba(90, 53, 31, 0.42);
  background: rgba(255, 248, 232, 0.72);
  text-align: center;
  box-shadow: 0 24px 80px rgba(49, 26, 12, 0.24);
}

.ticket::before,
.ticket::after {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(126, 31, 36, 0.32);
  pointer-events: none;
}

.ticket::after {
  inset: 26px;
  border-color: rgba(201, 154, 58, 0.42);
}

.ticket p {
  margin-right: auto;
  margin-left: auto;
}

.char {
  display: inline-block;
  will-change: transform, opacity;
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: 210px;
  }

  .story-grid {
    grid-template-columns: 1fr;
  }

  .gallery-copy {
    position: relative;
    top: auto;
    left: auto;
    width: min(100%, 680px);
    margin-bottom: 22px;
  }

  .gallery-sticky {
    align-content: center;
  }

  .layered-stage {
    height: 62vh;
  }

  .scene-back,
  .scene-mid,
  .scene-front {
    width: 86%;
    height: 42%;
  }

  .scene-back {
    inset: 5% 0 auto auto;
  }

  .scene-mid {
    inset: 28% auto auto 0;
  }

  .scene-front {
    bottom: 4%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
