:root {
  color-scheme: light;
  --paper: #f5ead5;
  --paper-2: #e7d6b6;
  --ink: #231c15;
  --muted: #9f917c;
  --gold: #d4a94d;
  --red: #b74335;
  --blue: #356f81;
  --green: #5f7d59;
  --line-dark: rgba(245, 234, 213, 0.18);
  --line-light: rgba(68, 50, 30, 0.16);
  --shadow: 0 34px 90px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
  overscroll-behavior-y: none;
}

html.is-guided {
  scroll-snap-type: y mandatory;
}

body {
  margin: 0;
  background: #f4ead7;
  color: var(--ink);
  font-family:
    "Noto Serif SC", "Source Han Serif SC", "Songti SC", "Microsoft YaHei", serif;
}

body.is-sealed {
  height: 100svh;
  overflow: hidden;
  touch-action: none;
}

body.is-guided {
  touch-action: pan-y;
}

button,
video {
  font: inherit;
}

img {
  max-width: 100%;
}

.site-shell {
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 8%, rgba(212, 169, 77, 0.16), transparent 28rem),
    radial-gradient(circle at 8% 34%, rgba(53, 111, 129, 0.12), transparent 26rem),
    linear-gradient(180deg, #fbf3e4 0%, #f1e4cf 48%, #ead8b9 100%);
}

.music-toggle {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid rgba(68, 50, 30, 0.2);
  border-radius: 999px;
  color: #2d2419;
  background: rgba(255, 250, 238, 0.82);
  box-shadow: 0 14px 34px rgba(68, 50, 30, 0.18);
  backdrop-filter: blur(12px);
  cursor: pointer;
}

.music-toggle__icon {
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
}

.music-toggle.is-playing .music-toggle__icon {
  animation: music-pulse 1.4s ease-in-out infinite;
}

.music-toggle__text {
  font-size: 13px;
  font-weight: 800;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 28px 18px 54px;
  isolation: isolate;
}

.hero__grain,
.hero__land {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -3;
}

.hero__grain {
  opacity: 0.68;
  background:
    repeating-linear-gradient(90deg, rgba(68, 50, 30, 0.035) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(0deg, rgba(68, 50, 30, 0.024) 0 1px, transparent 1px 9px);
}

.hero__land {
  inset: auto -6% 0;
  height: 34%;
  z-index: -2;
  background:
    linear-gradient(164deg, transparent 0 22%, rgba(95, 125, 89, 0.38) 23% 38%, transparent 39%),
    linear-gradient(9deg, rgba(53, 111, 129, 0.18), rgba(212, 169, 77, 0.24));
  clip-path: polygon(0 36%, 14% 20%, 31% 35%, 52% 16%, 74% 34%, 100% 19%, 100% 100%, 0 100%);
  filter: blur(0.2px);
}

.opening {
  position: relative;
  width: min(100%, 760px);
  min-height: 560px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 20px;
  padding: 36px 24px 44px;
  text-align: center;
  will-change: opacity, transform, filter;
}

.opening::before {
  content: "";
  position: absolute;
  inset: 6% 12%;
  border: 1px solid var(--line-dark);
  background:
    linear-gradient(180deg, rgba(255, 252, 244, 0.82), rgba(255, 252, 244, 0.42)),
    repeating-linear-gradient(0deg, rgba(68, 50, 30, 0.035) 0 1px, transparent 1px 9px);
  box-shadow: 0 28px 70px rgba(67, 50, 29, 0.16);
  backdrop-filter: blur(8px);
  z-index: -1;
}

.opening.is-open {
  pointer-events: none;
  animation: artifact-open 1400ms ease-in forwards;
}

.opening__kicker,
.eyebrow {
  margin: 0;
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.opening__artifact {
  position: relative;
  width: min(44vw, 220px);
  min-width: 142px;
  aspect-ratio: 0.7;
  display: grid;
  place-items: center;
  margin-bottom: 2px;
}

.opening__artifact::before {
  content: "";
  position: absolute;
  inset: -18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 169, 77, 0.32), transparent 66%);
}

.opening__artifact img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: drop-shadow(0 28px 38px rgba(0, 0, 0, 0.58));
  opacity: 0.96;
}

.opening h1,
.reveal h2,
.film h2,
.collection h2,
.memory-card h2 {
  margin: 0;
  font-size: clamp(38px, 8vw, 86px);
  line-height: 1.02;
  letter-spacing: 0;
  text-wrap: balance;
}

.opening p:not(.opening__kicker),
.reveal p,
.film p,
.collection p,
.memory-card p {
  max-width: 620px;
  margin: 0;
  color: #6b5d4b;
  font-size: 18px;
  line-height: 1.9;
}

.primary-action,
.video-cover {
  border: 0;
  cursor: pointer;
}

.primary-action {
  min-height: 52px;
  display: inline-grid;
  place-items: center;
  padding: 0 28px;
  color: #19110b;
  background: linear-gradient(135deg, #f0d99f, #c99532);
  border-radius: 999px;
  box-shadow: 0 18px 34px rgba(118, 82, 22, 0.24);
  font-weight: 800;
  text-decoration: none;
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 24px;
  display: grid;
  justify-items: center;
  gap: 8px;
  color: #6b5d4b;
  opacity: 0;
  transform: translateX(-50%) translateY(10px);
  pointer-events: none;
  transition:
    opacity 600ms ease,
    transform 600ms ease;
}

.scroll-hint.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.scroll-hint span {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.scroll-hint i {
  width: 20px;
  height: 32px;
  border: 1px solid rgba(68, 50, 30, 0.36);
  border-radius: 999px;
  position: relative;
}

.scroll-hint i::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 7px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #8f6b2b;
  transform: translateX(-50%);
  animation: scroll-dot 1.6s ease-in-out infinite;
}

.reveal {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(1100px, calc(100% - 36px));
  height: 100%;
  margin: 0;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 26px;
  opacity: 0;
  transform: translate(-50%, 38px);
  pointer-events: none;
  transition:
    opacity 900ms ease 760ms,
    transform 900ms ease 760ms;
}

.reveal.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

.reveal__copy {
  max-width: 820px;
}

.reveal h2 {
  margin-top: 10px;
}

.quick-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.quick-facts span {
  padding: 8px 12px;
  border: 1px solid var(--line-light);
  color: #574634;
  background: rgba(255, 255, 255, 0.28);
}

.film,
.collection,
.memory-card {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
}

.film {
  min-height: 100svh;
  display: grid;
  align-content: center;
  padding: 54px 0;
}

.hero,
.film,
.detail-section,
.anatomy-section,
.collection,
.memory-card {
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.film,
.detail-section,
.anatomy-section,
.collection,
.memory-card {
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

.film.is-arriving,
.detail-section.is-arriving,
.anatomy-section.is-arriving,
.collection.is-arriving,
.memory-card.is-arriving {
  opacity: 0.18;
  transform: translateY(34px);
}

.film.is-arrived,
.detail-section.is-arrived,
.anatomy-section.is-arrived,
.collection.is-arrived,
.memory-card.is-arrived {
  opacity: 1;
  transform: translateY(0);
}

.film__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: center;
  margin-bottom: 22px;
}

.film__intro {
  max-width: 820px;
  justify-self: center;
  text-align: center;
}

.film__intro p:not(.eyebrow) {
  color: #6b5d4b;
}

.archive-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  width: min(100%, 980px);
  margin: 0 auto;
}

.archive-facts div {
  min-height: 78px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--line-light);
  background: rgba(255, 255, 255, 0.24);
}

.archive-facts strong {
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1;
}

.archive-facts span {
  color: #786955;
  font-size: 13px;
  line-height: 1.45;
}

.film-media {
  display: grid;
  gap: 14px;
  align-items: start;
  width: min(100%, 860px);
  justify-self: center;
}

.package-preview {
  margin: 0;
}

.package-preview figcaption {
  color: #776650;
  font-size: 12px;
  line-height: 1.45;
}

.cinema {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #070504;
  border: 1px solid rgba(245, 234, 213, 0.2);
  box-shadow: var(--shadow);
  align-self: center;
}

.cinema::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 12px rgba(245, 234, 213, 0.03);
  z-index: 3;
}

.cinema video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #060403;
}

.anatomy-section {
  width: min(1120px, calc(100% - 36px));
  min-height: 100svh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(420px, 1fr);
  gap: 30px;
  align-items: center;
  padding: 54px 0;
}

.anatomy-copy h2 {
  margin: 8px 0 0;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.06;
  letter-spacing: 0;
  text-wrap: balance;
}

.anatomy-copy p:not(.eyebrow) {
  max-width: 560px;
  margin: 18px 0 0;
  color: #6b5d4b;
  font-size: 16px;
  line-height: 1.75;
}

.anatomy-board {
  display: grid;
  grid-template-columns: minmax(300px, 0.76fr) minmax(360px, 0.64fr);
  gap: 16px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line-light);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.18)),
    repeating-linear-gradient(0deg, rgba(68, 50, 30, 0.035) 0 1px, transparent 1px 9px);
  box-shadow: 0 24px 60px rgba(65, 49, 29, 0.12);
}

.anatomy-figure {
  margin: 0;
  height: min(58svh, 520px);
  min-height: 420px;
  overflow: hidden;
  border: 1px solid rgba(68, 50, 30, 0.14);
  background: #f7ecd5;
}

.anatomy-figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
}

.anatomy-list {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.anatomy-list div {
  min-height: 126px;
  padding: 16px;
  border: 1px solid var(--line-light);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.16)),
    rgba(244, 230, 202, 0.2);
}

.anatomy-list dt {
  color: var(--red);
  font-weight: 900;
  margin-bottom: 6px;
}

.anatomy-list dd {
  margin: 0;
  color: #675a49;
  line-height: 1.5;
}

.video-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  color: #fff5dc;
  background:
    linear-gradient(rgba(15, 10, 6, 0.42), rgba(15, 10, 6, 0.82)),
    url("./assets/white-pagoda-real.jpg") center 42% / cover;
  z-index: 4;
}

.video-cover.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 320ms ease, visibility 320ms ease;
}

.video-cover__play {
  width: 76px;
  height: 76px;
  display: block;
  border-radius: 50%;
  background:
    linear-gradient(135deg, #f8e9c3, #d4a94d);
  box-shadow: 0 0 0 12px rgba(245, 234, 213, 0.12), 0 20px 56px rgba(0, 0, 0, 0.4);
  position: relative;
}

.video-cover__play::after {
  content: "";
  position: absolute;
  left: 31px;
  top: 23px;
  border-left: 22px solid #1a1009;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
}

.video-cover span:not(.video-cover__play) {
  font-size: clamp(22px, 4vw, 40px);
  font-weight: 900;
}

.video-cover small {
  color: rgba(255, 245, 220, 0.72);
}

.detail-section {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.72fr);
  gap: 34px;
  align-items: center;
  padding: 54px 0;
}

.detail-section--reverse .detail-visual {
  order: 2;
}

.detail-visual {
  margin: 0;
  height: min(62svh, 560px);
  min-height: 420px;
  border: 1px solid var(--line-light);
  background: rgba(255, 255, 255, 0.24);
  box-shadow: 0 24px 60px rgba(65, 49, 29, 0.14);
  overflow: hidden;
}

.detail-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.detail-visual--duo {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.28);
}

.detail-visual--duo img {
  min-height: 0;
  border: 1px solid rgba(68, 50, 30, 0.12);
}

.detail-copy {
  max-width: 430px;
}

.detail-copy h2 {
  margin: 8px 0 0;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: 0;
  text-wrap: balance;
}

.detail-copy p:not(.eyebrow) {
  margin: 0;
  color: #6b5d4b;
  font-size: 17px;
  line-height: 1.9;
}

.detail-copy h2 + p {
  margin-top: 18px;
}

.collection {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1fr);
  gap: 46px;
  align-items: center;
  padding: 54px 0;
}

.collection .eyebrow,
.memory-card .eyebrow {
  color: var(--red);
}

.collection p,
.memory-card p {
  color: #675a49;
}

.package-preview {
  width: min(100%, 210px);
  justify-self: center;
}

.package-preview img {
  display: block;
  width: 100%;
  aspect-ratio: 0.7;
  object-fit: cover;
  object-position: center;
  border: 1px solid var(--line-light);
  box-shadow: 0 18px 42px rgba(65, 49, 29, 0.12);
}

.package-preview figcaption {
  margin-top: 8px;
}

.spec-list {
  margin: 0;
  display: grid;
  border-top: 1px solid var(--line-light);
}

.spec-list div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 18px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line-light);
}

.spec-list dt {
  color: #8d806f;
  font-size: 14px;
}

.spec-list dd {
  margin: 0;
  font-weight: 800;
  line-height: 1.55;
}

.memory-card {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, 210px) auto;
  gap: 28px;
  align-items: center;
  align-content: center;
  margin-bottom: 0;
  padding: 54px 28px;
  border: 1px solid var(--line-light);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.22)),
    repeating-linear-gradient(0deg, rgba(68, 50, 30, 0.04) 0 1px, transparent 1px 9px);
  box-shadow: 0 24px 60px rgba(65, 49, 29, 0.12);
}

.memory-card__seal {
  min-height: 56px;
  display: grid;
  place-items: center;
  padding: 0 18px;
  border: 1px solid rgba(183, 67, 53, 0.58);
  color: var(--red);
  font-weight: 900;
  white-space: nowrap;
}

@keyframes artifact-open {
  0% {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }

  100% {
    opacity: 0;
    transform: scale(1.22);
    filter: blur(8px);
  }
}

@keyframes music-pulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.12);
  }
}

@keyframes scroll-dot {
  0% {
    opacity: 0;
    transform: translate(-50%, 0);
  }

  34% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate(-50%, 13px);
  }
}

@media (max-width: 860px) {
  .opening {
    min-height: 560px;
  }

  .opening::before {
    inset: 4% 0;
  }

  .film__layout,
  .film-media,
  .anatomy-section,
  .collection,
  .memory-card {
    grid-template-columns: 1fr;
  }

  .anatomy-board {
    grid-template-columns: minmax(190px, 0.72fr) minmax(250px, 0.78fr);
  }

  .film {
    align-content: start;
    padding: 60px 0;
  }

  .archive-facts {
    grid-template-columns: 1fr 1fr;
  }

  .detail-section,
  .detail-section--reverse {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .detail-section--reverse .detail-visual {
    order: 0;
  }

  .detail-visual {
    height: 46svh;
    min-height: 300px;
  }

  .anatomy-figure {
    height: 42svh;
    min-height: 320px;
  }
}

@media (max-width: 560px) {
  .hero {
    align-items: start;
  }

  .opening {
    min-height: 620px;
  }

  .reveal {
    align-content: center;
    justify-items: center;
    text-align: center;
    inset: 0;
    width: min(100%, 760px);
    left: 50%;
    transform: translateX(-50%);
    transition: opacity 1ms linear 0ms;
  }

  .reveal.is-visible {
    transform: translateX(-50%);
  }

  .quick-facts {
    justify-content: center;
  }

  .opening h1,
  .reveal h2,
  .film h2,
  .collection h2,
  .memory-card h2 {
    font-size: 38px;
  }

  .opening p:not(.opening__kicker),
  .reveal p,
  .film p,
  .collection p,
  .memory-card p {
    font-size: 16px;
  }

  .film {
    padding: 28px 0;
  }

  .film__layout {
    gap: 12px;
    margin-bottom: 0;
  }

  .film__intro h2 {
    font-size: 30px;
    line-height: 1.08;
  }

  .film__intro p:not(.eyebrow) {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.55;
  }

  .archive-facts {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .archive-facts div {
    min-height: 62px;
    padding: 9px;
    gap: 4px;
  }

  .archive-facts strong {
    font-size: 20px;
  }

  .archive-facts span {
    font-size: 11px;
    line-height: 1.35;
  }

  .cinema {
    aspect-ratio: 16 / 9;
  }

  .video-cover {
    gap: 8px;
  }

  .video-cover__play {
    width: 58px;
    height: 58px;
    box-shadow: 0 0 0 8px rgba(245, 234, 213, 0.12), 0 14px 40px rgba(0, 0, 0, 0.35);
  }

  .video-cover__play::after {
    left: 24px;
    top: 18px;
    border-left-width: 17px;
    border-top-width: 11px;
    border-bottom-width: 11px;
  }

  .package-preview {
    width: min(100%, 220px);
  }

  .video-cover span:not(.video-cover__play) {
    font-size: 18px;
  }

  .video-cover small {
    font-size: 12px;
  }

  .detail-section {
    min-height: 92svh;
    padding: 30px 0;
  }

  .anatomy-section {
    min-height: 92svh;
    padding: 30px 0;
  }

  .anatomy-board {
    grid-template-columns: 1fr;
    padding: 12px;
    gap: 10px;
  }

  .anatomy-figure {
    height: 30svh;
    min-height: 220px;
  }

  .anatomy-list {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  .anatomy-list div {
    min-height: 0;
    padding: 9px;
  }

  .anatomy-list dt {
    margin-bottom: 4px;
    font-size: 13px;
  }

  .anatomy-list dd {
    font-size: 12px;
    line-height: 1.42;
  }

  .detail-visual {
    height: 30svh;
    min-height: 210px;
  }

  .detail-copy h2 {
    font-size: 30px;
  }

  .collection,
  .memory-card {
    min-height: 92svh;
    padding: 34px 0;
  }

  .collection h2 {
    font-size: 30px;
  }

  .collection p {
    font-size: 14px;
    line-height: 1.65;
  }

  .collection__statement,
  .memory-card > div {
    max-width: 100%;
  }

  .spec-list {
    gap: 8px;
  }

  .spec-list div {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 10px;
    padding: 8px 0;
  }

  .spec-list dt {
    font-size: 11px;
  }

  .spec-list dd {
    font-size: 12px;
    line-height: 1.35;
  }

  .memory-card h2 {
    font-size: 30px;
  }

  .memory-card p {
    font-size: 14px;
    line-height: 1.7;
  }

  .memory-card__seal {
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
