:root {
  --ink: #090b0a;
  --bone: #eee8db;
  --soft: #c9c1b2;
  --copper: #d3763f;
  --ember: #9e3d20;
  --sage: #57635a;
  --line: rgba(238, 232, 219, .22);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-inout: cubic-bezier(.87, 0, .13, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body {
  margin: 0;
  color: var(--bone);
  background: var(--ink);
  font-family: "Manrope", sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--copper); color: var(--ink); }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.boot {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: var(--ink);
  transition: transform 1.1s var(--ease-inout);
}
.boot.is-gone { transform: translateY(-105%); }
.boot-mark {
  font: 500 4rem/1 "Cormorant Garamond", serif;
  letter-spacing: -.08em;
  transform: translateY(-8px);
}
.boot-line {
  position: absolute;
  width: 140px;
  height: 1px;
  top: calc(50% + 54px);
  background: rgba(255,255,255,.12);
  overflow: hidden;
}
.boot-line span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--copper);
  transform-origin: left;
  animation: load 1.15s var(--ease-out) both;
}
@keyframes load { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.site-header {
  position: fixed;
  z-index: 40;
  top: 0;
  left: 0;
  right: 0;
  height: 94px;
  padding: 0 clamp(24px, 4vw, 68px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  mix-blend-mode: normal;
  transition: background .5s ease, backdrop-filter .5s ease;
}
.site-header.is-scrolled {
  background: rgba(9,11,10,.54);
  backdrop-filter: blur(16px);
}
.wordmark { display: flex; align-items: center; gap: 13px; }
.wordmark-em {
  font: 500 1.65rem/.85 "Cormorant Garamond", serif;
  border-right: 1px solid rgba(255,255,255,.45);
  padding-right: 13px;
  letter-spacing: -.06em;
}
.wordmark b,
.wordmark small { display: block; }
.wordmark b { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; }
.wordmark small { margin-top: 4px; font-size: .56rem; letter-spacing: .22em; color: rgba(255,255,255,.62); text-transform: uppercase; }
.header-meta { display: flex; align-items: center; gap: 24px; }
.concept-label { font-size: .57rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.tour-button {
  border: 1px solid rgba(255,255,255,.34);
  color: white;
  background: rgba(0,0,0,.16);
  padding: 10px 16px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: background .35s var(--ease-out), border-color .35s var(--ease-out), transform .35s var(--ease-out);
}
.tour-button:hover { background: rgba(211,118,63,.24); border-color: var(--copper); transform: translateY(-1px); }
.tour-icon {
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 7px solid white;
}
.tour-button.is-playing .tour-icon { width: 7px; height: 9px; border: 0; border-left: 2px solid white; border-right: 2px solid white; }
.tour-copy { font-size: .61rem; letter-spacing: .12em; text-transform: uppercase; }

.rail {
  position: fixed;
  z-index: 35;
  right: clamp(20px, 2.6vw, 48px);
  top: 50%;
  transform: translateY(-50%);
  height: 190px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
  color: rgba(255,255,255,.72);
}
.rail-number,.rail-total { font-size: .55rem; letter-spacing: .12em; }
.rail-track { flex: 1; width: 1px; background: rgba(255,255,255,.24); overflow: hidden; }
.rail-track span { display: block; width: 100%; height: 100%; background: var(--copper); transform: scaleY(0); transform-origin: top; }

.scene {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
}
.scene-media { position: absolute; inset: 0; z-index: -4; overflow: hidden; }
.scene-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  will-change: transform;
  filter: saturate(.86) contrast(1.04);
}
.veil { position: absolute; inset: 0; z-index: -3; pointer-events: none; }
.veil-arrival { background: linear-gradient(90deg, rgba(5,7,6,.88) 0%, rgba(5,7,6,.42) 52%, rgba(5,7,6,.06) 100%), linear-gradient(0deg, rgba(5,7,6,.72), transparent 48%); }
.veil-side { background: linear-gradient(90deg, rgba(6,9,7,.94) 0%, rgba(6,9,7,.82) 35%, rgba(6,9,7,.24) 66%, rgba(6,9,7,.04)); }
.veil-water { background: linear-gradient(90deg, rgba(4,8,7,.12), rgba(4,8,7,.05) 55%, rgba(4,8,7,.72)), linear-gradient(0deg, rgba(4,8,7,.64), transparent 55%); }
.veil-rooftop { background: linear-gradient(90deg, rgba(7,8,7,.06), rgba(7,8,7,.32) 48%, rgba(7,8,7,.94) 77%); }
.veil-stage { background: radial-gradient(circle at 50% 42%, rgba(8,10,8,.2), rgba(8,10,8,.92) 75%), linear-gradient(0deg, rgba(8,10,8,.98), rgba(8,10,8,.08) 56%); }
.scene-content { position: relative; z-index: 3; min-height: 100svh; }

.ambient { position: absolute; z-index: -2; border-radius: 50%; filter: blur(80px); pointer-events: none; }
.ambient-one { width: 420px; height: 420px; background: rgba(211,118,63,.18); left: 18%; top: 35%; }

.hero-content {
  padding: 20vh clamp(30px, 8vw, 130px) 9vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.eyebrow,.chapter-number {
  margin: 0 0 24px;
  font-size: .65rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: rgba(255,255,255,.72);
}
.hero-title {
  margin: 0;
  font: 500 clamp(4.6rem, 11.3vw, 11.2rem)/.74 "Cormorant Garamond", serif;
  letter-spacing: -.067em;
  text-wrap: balance;
}
.title-line { display: block; overflow: hidden; padding: .05em .1em .06em 0; }
.title-line > span { display: block; transform: translateY(115%); transition: transform 1.2s var(--ease-out); }
.title-indent { padding-left: 13vw; color: var(--bone); }
body.is-ready .title-line > span { transform: translateY(0); }
body.is-ready .title-line:nth-child(2)>span { transition-delay: .12s; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
body.is-ready .reveal { opacity: 1; transform: none; transition-delay: .38s; }
.hero-footer {
  margin-top: clamp(40px, 7vh, 86px);
  margin-left: 13vw;
  max-width: 660px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 50px;
  align-items: end;
}
.hero-footer p,.chapter-body {
  margin: 0;
  color: rgba(255,255,255,.72);
  font-size: clamp(.78rem, .95vw, .95rem);
  line-height: 1.75;
}
.explore,.text-link {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  white-space: nowrap;
  font-size: .63rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.explore i,.text-link i,.final-card a i {
  width: 30px;
  height: 1px;
  display: block;
  background: currentColor;
  position: relative;
  transition: width .35s var(--ease-out);
}
.explore i::after,.text-link i::after,.final-card a i::after {
  content: "";
  position: absolute;
  right: 0;
  top: -3px;
  width: 7px;
  height: 7px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}
.explore:hover i,.text-link:hover i,.final-card a:hover i { width: 44px; }
.scroll-cue {
  position: absolute;
  bottom: 32px;
  left: clamp(30px, 4vw, 70px);
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: .55rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
}
.scroll-cue i { width: 38px; height: 1px; background: rgba(255,255,255,.5); animation: pulse 2s ease-in-out infinite; transform-origin: left; }
@keyframes pulse { 0%,100% { transform: scaleX(.4); opacity: .5; } 50% { transform: scaleX(1); opacity: 1; } }

.chapter-content {
  width: min(650px, 52vw);
  padding: 17vh 0 11vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.chapter-left { margin-left: clamp(34px, 8vw, 130px); }
.chapter-right { margin-left: auto; margin-right: clamp(48px, 8vw, 130px); }
.chapter-content h2,.water-content h2,.final-content h2 {
  margin: 0 0 34px;
  font: 500 clamp(3.7rem, 7.3vw, 8rem)/.82 "Cormorant Garamond", serif;
  letter-spacing: -.055em;
}
.chapter-content h2 em,.water-content h2 em,.final-content h2 em { font-weight: 400; color: var(--copper); }
.chapter-content .chapter-body { max-width: 480px; }
.stat-row {
  margin-top: 62px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 60px;
}
.stat-row div { display: grid; gap: 5px; }
.stat-row strong { font: 500 2.9rem/1 "Cormorant Garamond", serif; }
.stat-row span { color: rgba(255,255,255,.55); font-size: .59rem; letter-spacing: .14em; text-transform: uppercase; }
.chapter-tag {
  position: absolute;
  right: clamp(30px, 5vw, 80px);
  bottom: 36px;
  font-size: .55rem;
  letter-spacing: .18em;
  color: rgba(255,255,255,.54);
  text-transform: uppercase;
  writing-mode: vertical-rl;
}
.chapter-tag-left { right: auto; left: clamp(30px, 5vw, 80px); }

.water-content {
  min-height: 100svh;
  padding: 18vh clamp(34px, 8vw, 130px) 10vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-end;
  text-align: right;
}
.water-content .chapter-body { width: min(430px, 90vw); }
.floating-note {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 13px;
  border: 1px solid rgba(255,255,255,.32);
  background: rgba(8,10,9,.36);
  backdrop-filter: blur(10px);
  border-radius: 999px;
  font-size: .56rem;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.floating-note i { width: 6px; height: 6px; background: var(--copper); border-radius: 50%; box-shadow: 0 0 0 5px rgba(211,118,63,.17); }
.note-one { left: 34%; top: 64%; }
.note-two { left: 65%; top: 43%; }
.text-link { margin-top: 46px; }

.stage-media { transform: scale(1.05); }
.stage-lines { position: absolute; inset: 0; z-index: -1; display: flex; justify-content: space-around; pointer-events: none; }
.stage-lines i { display: block; width: 1px; height: 100%; background: linear-gradient(transparent, rgba(255,255,255,.11), transparent); }
.final-content {
  padding: 16vh clamp(34px, 8vw, 130px) 8vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.final-content h2 span { font-size: .46em; letter-spacing: .02em; text-transform: uppercase; font-family: "Manrope", sans-serif; font-weight: 500; }
.final-content .chapter-body { max-width: 530px; }
.final-card {
  width: min(920px, 92vw);
  margin-top: 64px;
  padding: clamp(24px, 4vw, 46px);
  border: 1px solid rgba(255,255,255,.26);
  background: rgba(12,14,12,.55);
  backdrop-filter: blur(18px);
  display: flex;
  align-items: end;
  justify-content: space-between;
  text-align: left;
}
.final-card small { display: block; margin-bottom: 10px; color: rgba(255,255,255,.55); font-size: .56rem; letter-spacing: .17em; text-transform: uppercase; }
.final-card strong { font: 500 clamp(1.8rem, 3vw, 3.2rem)/.82 "Cormorant Garamond", serif; letter-spacing: -.04em; }
.final-card a { display: flex; align-items: center; gap: 14px; color: var(--copper); font-size: .62rem; letter-spacing: .13em; text-transform: uppercase; }
.disclaimer { max-width: 850px; margin: 24px auto 0; font-size: .54rem; line-height: 1.6; color: rgba(255,255,255,.36); }

.sound-indicator { position: fixed; z-index: 30; left: clamp(20px, 3vw, 50px); bottom: 28px; height: 13px; display: flex; align-items: flex-end; gap: 3px; opacity: .65; }
.sound-indicator i { width: 1px; background: white; animation: sound 1.1s ease-in-out infinite alternate; }
.sound-indicator i:nth-child(1) { height: 5px; }
.sound-indicator i:nth-child(2) { height: 11px; animation-delay: -.6s; }
.sound-indicator i:nth-child(3) { height: 7px; animation-delay: -.3s; }
.sound-indicator i:nth-child(4) { height: 13px; animation-delay: -.8s; }
@keyframes sound { to { transform: scaleY(.35); opacity: .35; } }

.scene .chapter-content > *, .scene .water-content > *, .scene .final-content > * {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .9s var(--ease-out), transform 1s var(--ease-out);
}
.scene.is-active .chapter-content > *, .scene.is-active .water-content > *, .scene.is-active .final-content > * { opacity: 1; transform: none; }
.scene.is-active .chapter-content > *:nth-child(2),.scene.is-active .water-content > *:nth-child(2),.scene.is-active .final-content > *:nth-child(2) { transition-delay: .08s; }
.scene.is-active .chapter-content > *:nth-child(3),.scene.is-active .water-content > *:nth-child(3),.scene.is-active .final-content > *:nth-child(3) { transition-delay: .16s; }
.scene.is-active .chapter-content > *:nth-child(4),.scene.is-active .final-content > *:nth-child(4) { transition-delay: .24s; }

@media (max-width: 760px) {
  .site-header { height: 76px; padding: 0 18px; }
  .concept-label { display: none; }
  .tour-button { padding: 9px 11px; }
  .tour-copy { font-size: .53rem; }
  .rail { right: 12px; height: 130px; }
  .hero-content { padding: 18vh 24px 10vh; justify-content: flex-end; }
  .hero-title { font-size: clamp(4.25rem, 22vw, 7rem); line-height: .78; }
  .title-indent { padding-left: 8vw; }
  .hero-footer { margin: 36px 22px 0 8vw; grid-template-columns: 1fr; gap: 25px; }
  .hero-footer p { font-size: .73rem; max-width: 82%; }
  .scroll-cue { display: none; }
  .chapter-content { width: auto; padding: 21vh 42px 12vh 28px; justify-content: flex-end; }
  .chapter-left,.chapter-right { margin: 0; }
  .chapter-content h2,.water-content h2,.final-content h2 { font-size: clamp(3.7rem, 17vw, 6rem); }
  .veil-side { background: linear-gradient(0deg, rgba(6,9,7,.96) 0%, rgba(6,9,7,.63) 52%, rgba(6,9,7,.07) 100%); }
  .veil-rooftop { background: linear-gradient(0deg, rgba(7,8,7,.96) 0%, rgba(7,8,7,.58) 52%, rgba(7,8,7,.05) 100%); }
  .scene-horizon .scene-media img { object-position: 62% center; }
  .scene-rooftop .scene-media img { object-position: 62% center; }
  .stat-row { gap: 28px; margin-top: 38px; }
  .stat-row strong { font-size: 2.2rem; }
  .chapter-tag { display: none; }
  .water-content { padding: 19vh 42px 10vh 26px; align-items: flex-start; text-align: left; }
  .water-content .chapter-body { max-width: 82%; }
  .note-one { left: 8%; top: 50%; }
  .note-two { left: auto; right: 7%; top: 38%; }
  .final-content { padding: 16vh 30px 7vh; justify-content: flex-end; }
  .final-card { margin-top: 38px; align-items: flex-start; gap: 28px; flex-direction: column; }
  .disclaimer { font-size: .48rem; }
  .sound-indicator { left: 18px; bottom: 17px; }
}

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