:root {
  color-scheme: dark;
  --bg: #080a09;
  --surface: #101311;
  --surface-soft: #161a17;
  --text: #f2efe7;
  --muted: #aaa99f;
  --line: rgba(242, 239, 231, 0.16);
  --accent: #e6d4a0;
  --accent-deep: #2a261d;
  --header-height: 72px;
  --radius: 16px;
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", "Hiragino Sans", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
}

body {
  overflow-x: clip;
  font-size: 16px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

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

button {
  font: inherit;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-160%);
  border-radius: 8px;
  background: var(--text);
  color: var(--bg);
  padding: 10px 14px;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 clamp(20px, 4vw, 64px);
  border-bottom: 1px solid rgba(242, 239, 231, 0.09);
  background: rgba(8, 10, 9, 0.66);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
}

.brand {
  font-size: 1.08rem;
  font-weight: 650;
  letter-spacing: 0.16em;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 36px);
  white-space: nowrap;
  color: var(--muted);
  font-size: 0.82rem;
}

.site-header nav a {
  transition: color 220ms ease;
}

.site-header nav a:hover,
.site-header nav a:focus-visible {
  color: var(--text);
}

.nav-action {
  border: 1px solid rgba(230, 212, 160, 0.42);
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--text);
}

.hero,
.finale {
  position: relative;
  isolation: isolate;
  min-height: 100dvh;
  overflow: hidden;
  display: grid;
  align-items: center;
}

.hero-media,
.finale-media,
.scene {
  position: absolute;
  inset: 0;
  z-index: -3;
}

.hero-media img,
.finale-media img,
.scene img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media img {
  animation: hero-breathe 14s ease-in-out infinite alternate;
}

.hero-shade,
.finale-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(8, 10, 9, 0.95) 0%, rgba(8, 10, 9, 0.72) 34%, rgba(8, 10, 9, 0.1) 70%),
    linear-gradient(0deg, rgba(8, 10, 9, 0.72), transparent 44%);
}

.hero-content,
.finale-content {
  width: min(650px, 88vw);
  margin-left: clamp(20px, 7vw, 120px);
  padding-top: var(--header-height);
}

.hero-mark {
  margin: 0 0 22px;
  color: var(--accent);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 7em;
  margin-bottom: 22px;
  font-size: clamp(3.2rem, 6.4vw, 5.8rem);
  font-weight: 560;
  letter-spacing: -0.055em;
  line-height: 1.03;
}

.hero-lede {
  max-width: 31em;
  margin-bottom: 30px;
  color: #d2d0c8;
  font-size: clamp(0.98rem, 1.4vw, 1.12rem);
}

.primary-action,
.instrument-action {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: #12110d;
  padding: 12px 24px;
  font-weight: 650;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.primary-action:hover,
.instrument-action:hover {
  transform: translateY(-2px);
  background: #f0dfae;
  box-shadow: 0 14px 44px rgba(230, 212, 160, 0.16);
}

.primary-action:active,
.instrument-action:active {
  transform: scale(0.98);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.story {
  position: relative;
  background: var(--bg);
}

.story-stage {
  position: sticky;
  top: 0;
  z-index: 0;
  height: 100dvh;
  overflow: hidden;
}

.scene {
  z-index: 0;
  opacity: 0;
  transform: scale(1.035);
  transition: opacity 900ms cubic-bezier(0.16, 1, 0.3, 1), transform 1600ms cubic-bezier(0.16, 1, 0.3, 1);
}

.story[data-scene="0"] .scene-one,
.story[data-scene="1"] .scene-two,
.story[data-scene="2"] .scene-three {
  opacity: 1;
  transform: scale(1);
}

.stage-vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(8, 10, 9, 0.88) 0%, rgba(8, 10, 9, 0.42) 38%, transparent 70%),
    linear-gradient(0deg, rgba(8, 10, 9, 0.68), transparent 35%, rgba(8, 10, 9, 0.24));
  pointer-events: none;
}

.story-track {
  position: relative;
  z-index: 3;
  margin-top: -100dvh;
}

.story-step {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-height) + 36px) clamp(20px, 7vw, 120px) 48px;
}

.story-copy {
  width: min(510px, 88vw);
  padding-left: 24px;
  border-left: 1px solid rgba(230, 212, 160, 0.54);
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.6);
}

.story-kicker,
.instrument-label {
  margin-bottom: 16px;
  color: var(--accent);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
}

.story-copy h2,
.experience-copy h2,
.finale-content h2 {
  margin-bottom: 20px;
  font-size: clamp(2.2rem, 4.2vw, 4.8rem);
  font-weight: 540;
  letter-spacing: -0.045em;
  line-height: 1.14;
  text-wrap: balance;
}

.story-copy h2 span {
  display: block;
}

.story-copy p:last-child,
.experience-copy > p:last-child,
.finale-content > p {
  max-width: 34em;
  margin-bottom: 0;
  color: #ceccc4;
  text-wrap: pretty;
}

.story-still {
  display: none;
}

.experience {
  position: relative;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(460px, 1.2fr);
  align-items: center;
  gap: clamp(48px, 8vw, 120px);
  padding: clamp(112px, 14vw, 190px) clamp(20px, 7vw, 120px);
  background:
    radial-gradient(circle at 75% 50%, rgba(230, 212, 160, 0.06), transparent 30%),
    var(--bg);
}

.experience-copy h2 {
  font-size: clamp(2.5rem, 4.8vw, 5rem);
}

.experience-copy > p:last-child {
  color: var(--muted);
}

.resonance-instrument {
  position: relative;
  isolation: isolate;
  min-height: 610px;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(28, 31, 28, 0.92), rgba(12, 14, 13, 0.98));
  box-shadow: 0 38px 100px rgba(0, 0, 0, 0.34);
}

.instrument-field {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.instrument-field span {
  position: absolute;
  width: 420px;
  aspect-ratio: 1;
  border: 1px solid rgba(230, 212, 160, 0.16);
  border-radius: 50%;
  transform: scale(0.46);
  opacity: 0.2;
}

.instrument-field span:nth-child(2) {
  width: 540px;
}

.instrument-field span:nth-child(3) {
  width: 660px;
}

.instrument-field i {
  width: 16px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 36px rgba(230, 212, 160, 0.46);
}

.instrument-content {
  position: relative;
  z-index: 2;
  width: min(560px, calc(100% - 64px));
  text-align: center;
}

.instrument-content blockquote {
  margin: 0 auto 32px;
  max-width: 16em;
  font-size: clamp(1.45rem, 3vw, 2.45rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.45;
}

.reading {
  min-height: 82px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  color: var(--muted);
}

.reading p {
  margin: 0;
}

.reading-terms {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.reading-terms[hidden] {
  display: none;
}

.reading-terms span {
  border: 1px solid rgba(230, 212, 160, 0.32);
  border-radius: 999px;
  color: var(--text);
  padding: 7px 14px;
}

.instrument-action {
  min-width: 148px;
}

.resonance-instrument[data-state="reading"] .instrument-field span {
  animation: field-read 1600ms cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

.resonance-instrument[data-state="reading"] .instrument-field span:nth-child(2) {
  animation-delay: 140ms;
}

.resonance-instrument[data-state="reading"] .instrument-field span:nth-child(3) {
  animation-delay: 280ms;
}

.resonance-instrument[data-state="complete"] .instrument-field span {
  opacity: 0.72;
  transform: scale(1);
  transition: opacity 800ms ease, transform 1200ms cubic-bezier(0.16, 1, 0.3, 1);
}

.finale {
  min-height: 108dvh;
}

.finale-shade {
  background: linear-gradient(90deg, rgba(8, 10, 9, 0.98), rgba(8, 10, 9, 0.58) 47%, rgba(8, 10, 9, 0.08));
}

.finale-content h2 {
  max-width: 12em;
}

.finale-content > p {
  margin-bottom: 28px;
}

footer {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px clamp(20px, 7vw, 120px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 800ms cubic-bezier(0.16, 1, 0.3, 1), transform 800ms cubic-bezier(0.16, 1, 0.3, 1);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes hero-breathe {
  from { transform: scale(1.01); }
  to { transform: scale(1.055); }
}

@keyframes field-read {
  0% { opacity: 0.14; transform: scale(0.46); }
  70% { opacity: 0.58; }
  100% { opacity: 0; transform: scale(1); }
}

@media (max-width: 900px) {
  :root {
    --header-height: 64px;
  }

  .site-header {
    padding-inline: 20px;
  }

  .site-header nav > a:first-child {
    display: none;
  }

  .hero-shade,
  .finale-shade {
    background:
      linear-gradient(0deg, rgba(8, 10, 9, 0.98) 0%, rgba(8, 10, 9, 0.62) 44%, rgba(8, 10, 9, 0.08) 76%),
      linear-gradient(90deg, rgba(8, 10, 9, 0.38), transparent 75%);
  }

  .hero-content,
  .finale-content {
    align-self: end;
    width: auto;
    margin: 0;
    padding: 0 20px max(58px, env(safe-area-inset-bottom));
  }

  h1 {
    max-width: none;
    font-size: clamp(3rem, 15vw, 5.4rem);
  }

  .hero-lede {
    max-width: 25em;
  }

  .stage-vignette {
    background: linear-gradient(0deg, rgba(8, 10, 9, 0.98) 0%, rgba(8, 10, 9, 0.54) 48%, rgba(8, 10, 9, 0.08) 78%);
  }

  .story-step {
    align-items: end;
    padding: calc(var(--header-height) + 24px) 20px max(56px, env(safe-area-inset-bottom));
  }

  .story-copy {
    width: 100%;
    padding-left: 18px;
  }

  .story-copy h2 {
    max-width: 12em;
    font-size: clamp(2.1rem, 9vw, 3.2rem);
  }

  .experience {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 112px 20px;
  }

  .resonance-instrument {
    min-height: 560px;
  }

  .instrument-field span {
    width: 300px;
  }

  .instrument-field span:nth-child(2) {
    width: 390px;
  }

  .instrument-field span:nth-child(3) {
    width: 480px;
  }

  .instrument-content {
    width: calc(100% - 40px);
  }

  .finale {
    min-height: 100dvh;
  }
}

@media (max-width: 520px) {
  .nav-action {
    padding: 7px 12px;
  }

  .hero-mark {
    margin-bottom: 14px;
  }

  .hero-content {
    padding-bottom: max(40px, env(safe-area-inset-bottom));
  }

  .hero-lede {
    margin-bottom: 22px;
    font-size: 0.95rem;
  }

  .story-copy p:last-child {
    font-size: 0.93rem;
  }

  .resonance-instrument {
    min-height: 520px;
  }

  .instrument-content blockquote {
    font-size: 1.42rem;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header {
    background: rgba(8, 10, 9, 0.96);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .story-stage {
    display: none;
  }

  .story-track {
    margin-top: 0;
  }

  .story-step {
    min-height: auto;
    display: grid;
    padding: 0;
  }

  .story-still {
    position: relative;
    display: block;
    height: 78dvh;
  }

  .story-still::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(8, 10, 9, 0.96), transparent 65%);
  }

  .story-still img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .story-copy {
    width: auto;
    margin: -180px 20px 96px;
    z-index: 2;
  }

  .js .reveal,
  .js .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}
