:root {
  color-scheme: dark;
  --ink: #030609;
  --deep: #071019;
  --navy: #0d1822;
  --fog: #aeb6b7;
  --muted: rgba(210, 216, 213, 0.62);
  --soft: rgba(238, 227, 211, 0.84);
  --amber: #d8b184;
  --amber-quiet: rgba(216, 177, 132, 0.68);
  --line: rgba(229, 218, 203, 0.18);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 72% 5%, rgba(190, 136, 82, 0.13), transparent 28rem),
    linear-gradient(180deg, #08101a 0%, #030609 42%, #05090e 100%);
  color: var(--soft);
  font-family: var(--sans);
}

body.is-locked {
  overflow: hidden;
}

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

button {
  font: inherit;
}

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

img {
  max-width: 100%;
}

.grain,
.mist {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.grain {
  z-index: 50;
  opacity: 0.12;
  mix-blend-mode: soft-light;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 3px 3px;
}

.mist {
  z-index: 3;
  opacity: 0.28;
  filter: blur(34px);
  transform: translate3d(0, 0, 0);
}

.mist--one {
  background: radial-gradient(ellipse at 12% 18%, rgba(180, 194, 198, 0.2), transparent 38%);
  animation: drift 24s ease-in-out infinite alternate;
}

.mist--two {
  background: radial-gradient(ellipse at 82% 78%, rgba(216, 177, 132, 0.12), transparent 34%);
  animation: drift 31s ease-in-out infinite alternate-reverse;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto minmax(150px, 1fr);
  align-items: start;
  gap: 22px;
  padding: clamp(22px, 3.8vw, 54px) clamp(22px, 4.2vw, 64px);
  color: rgba(238, 227, 211, 0.9);
  opacity: 0;
  pointer-events: none;
  transition: background 500ms ease, padding 500ms ease, backdrop-filter 500ms ease;
}

.topbar.is-scrolled {
  padding-top: 18px;
  padding-bottom: 16px;
  background: rgba(3, 6, 9, 0.62);
  backdrop-filter: blur(20px);
  opacity: 1;
  pointer-events: auto;
}

.brand {
  display: grid;
  gap: 14px;
  width: max-content;
}

.brand span {
  font-family: var(--serif);
  font-size: clamp(26px, 2.8vw, 40px);
  font-weight: 400;
  letter-spacing: 0.42em;
  line-height: 1;
  text-transform: uppercase;
}

.brand small,
.sound-toggle,
.scene__label,
.scene__number,
.scroll-cue,
.hero__start {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.34em;
  line-height: 1.4;
  text-transform: uppercase;
}

.brand small {
  color: rgba(238, 227, 211, 0.48);
}

.chapter-nav {
  display: flex;
  gap: clamp(10px, 1.3vw, 18px);
  align-items: center;
  padding-top: 6px;
}

.chapter-nav a {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: rgba(238, 227, 211, 0.46);
  font-size: 12px;
  transition: color 250ms ease, background 250ms ease;
}

.chapter-nav a::after {
  position: absolute;
  inset: 7px;
  border: 1px solid transparent;
  border-radius: inherit;
  content: "";
  transition: border-color 250ms ease, transform 250ms ease;
}

.chapter-nav a.is-active {
  color: var(--amber);
}

.chapter-nav a.is-active::after {
  border-color: rgba(216, 177, 132, 0.48);
  transform: scale(1.12);
}

.sound-toggle {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: rgba(238, 227, 211, 0.72);
  cursor: pointer;
}

.sound-toggle__icon {
  position: relative;
  width: 18px;
  height: 18px;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.sound-toggle__icon::before,
.sound-toggle__icon::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 3px;
  height: 8px;
  border-radius: 3px;
  background: currentColor;
  content: "";
  transform: translate(-4px, -50%);
}

.sound-toggle__icon::after {
  transform: translate(3px, -50%);
}

.sound-toggle[aria-pressed="true"] {
  color: var(--amber);
}

.sound-toggle[aria-pressed="false"] .sound-toggle__icon::after {
  height: 0;
}

.experience {
  position: relative;
  z-index: 1;
}

.scene {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
}

.hero {
  background: #05080c;
  isolation: isolate;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(3, 6, 9, 0.78), transparent 52%),
    linear-gradient(180deg, rgba(3, 6, 9, 0.42), transparent 38%, rgba(3, 6, 9, 0.72));
  content: "";
  pointer-events: none;
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  height: 32%;
  background: linear-gradient(180deg, transparent, rgba(3, 6, 9, 0.9) 70%, #030609);
  content: "";
}

.hero__concept {
  position: absolute;
  inset: 72px 0 112px;
  width: 100%;
  height: calc(100% - 184px);
  display: block;
  object-fit: contain;
  object-position: center center;
  user-select: none;
  -webkit-user-drag: none;
}

.hero-menu {
  position: absolute;
  top: 104px;
  left: 22px;
  z-index: 4;
  display: grid;
  gap: 10px;
  max-width: min(190px, 42vw);
}

.hero-menu a {
  color: rgba(238, 227, 211, 0.72);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.24em;
  line-height: 1.35;
  overflow-wrap: anywhere;
  text-transform: uppercase;
  transition: color 250ms ease;
}

.hero-menu a:hover {
  color: var(--amber);
}

.hero__message {
  position: absolute;
  right: clamp(22px, 7vw, 112px);
  bottom: clamp(150px, 19vh, 230px);
  z-index: 4;
  width: min(430px, calc(100vw - 44px));
  text-align: right;
}

.hero__message p {
  margin: 0;
  color: rgba(238, 227, 211, 0.9);
  font-family: var(--serif);
  font-size: clamp(24px, 2.7vw, 43px);
  font-weight: 400;
  line-height: 1.14;
  text-wrap: balance;
}

.hero__message p + p {
  margin-top: 10px;
}

.hero__start,
.scroll-cue {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 0;
  border: 1px solid rgba(238, 227, 211, 0.46);
  background: rgba(5, 8, 12, 0.12);
  color: rgba(238, 227, 211, 0.84);
  cursor: pointer;
  backdrop-filter: blur(10px);
  opacity: 1;
}

.hero__start {
  right: 22px;
  bottom: 18vh;
  left: 22px;
  min-width: 252px;
  min-height: 48px;
  padding: 13px 24px;
  border-radius: 999px;
}

.hero__start svg,
.scroll-cue svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.3;
}

.scroll-cue {
  left: 50%;
  bottom: 36px;
  flex-direction: column;
  gap: 10px;
  width: 184px;
  padding: 0;
  border: 0;
  background: transparent;
  transform: translateX(-50%);
}

.scroll-cue::before {
  width: 72px;
  height: 1px;
  background: rgba(238, 227, 211, 0.46);
  content: "";
}

.scene__number {
  position: absolute;
  top: 50%;
  left: clamp(22px, 4.1vw, 64px);
  z-index: 2;
  color: rgba(216, 177, 132, 0.62);
  transform: translateY(-50%);
}

.intro {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
  padding: clamp(96px, 13vw, 170px) clamp(24px, 8vw, 128px);
  background:
    linear-gradient(90deg, rgba(3, 6, 9, 0.98), rgba(5, 11, 16, 0.76) 55%, rgba(10, 17, 23, 0.96)),
    radial-gradient(circle at 82% 36%, rgba(216, 177, 132, 0.13), transparent 30rem);
}

.intro__copy {
  max-width: 760px;
  padding-left: 0;
}

.scene__label {
  margin: 0 0 28px;
  color: var(--amber-quiet);
}

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

h1,
h2 {
  color: #dec3a3;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: 0;
}

h1 {
  margin-bottom: 28px;
  font-size: clamp(44px, 7.1vw, 104px);
  line-height: 0.98;
}

h2 {
  margin-bottom: 24px;
  font-size: clamp(38px, 5.2vw, 82px);
  line-height: 1.02;
}

p {
  color: var(--muted);
  font-size: clamp(17px, 1.45vw, 22px);
  font-weight: 300;
  line-height: 1.78;
}

.portrait,
.photo-card {
  margin: 0;
}

.portrait--large {
  position: relative;
  height: min(72vh, 720px);
  border: 1px solid rgba(238, 227, 211, 0.1);
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.48);
}

.portrait--large::before,
.photo-card::before,
.split__media::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(3, 6, 9, 0.02), rgba(3, 6, 9, 0.34)),
    radial-gradient(circle at 50% 20%, transparent, rgba(3, 6, 9, 0.44));
  content: "";
  pointer-events: none;
}

.portrait img,
.split__media img,
.photo-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: saturate(0.78) contrast(0.96) brightness(0.82);
}

.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
  padding: clamp(90px, 12vw, 160px) clamp(24px, 9vw, 138px);
  background:
    linear-gradient(180deg, #030609 0%, #07111a 44%, #04070b 100%);
}

.split__media {
  position: relative;
  height: min(78vh, 790px);
  margin-left: 0;
  overflow: hidden;
  border: 1px solid rgba(238, 227, 211, 0.12);
  transform: none;
}

.split__media img {
  object-position: 50% 36%;
}

.split__copy {
  max-width: 650px;
}

.depth {
  display: grid;
  place-items: center;
  padding: clamp(90px, 13vw, 180px) clamp(24px, 8vw, 120px);
  background:
    radial-gradient(ellipse at 50% 10%, rgba(121, 141, 150, 0.13), transparent 34rem),
    linear-gradient(180deg, #030609, #081622 52%, #020406);
}

.depth__text {
  position: relative;
  z-index: 2;
  max-width: 900px;
  text-align: center;
}

.depth__text p:not(.scene__label) {
  max-width: 660px;
  margin-right: auto;
  margin-left: auto;
}

.waterline {
  position: absolute;
  inset: 0;
  opacity: 0.52;
  pointer-events: none;
}

.waterline span {
  position: absolute;
  left: -8%;
  width: 116%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(183, 207, 211, 0.3), transparent);
  animation: water 9s ease-in-out infinite;
}

.waterline span:nth-child(1) {
  bottom: 29%;
}

.waterline span:nth-child(2) {
  bottom: 34%;
  animation-delay: -2.1s;
}

.waterline span:nth-child(3) {
  bottom: 42%;
  animation-delay: -4.3s;
}

.waterline span:nth-child(4) {
  bottom: 53%;
  animation-delay: -6.6s;
}

.gallery {
  display: grid;
  align-content: center;
  gap: clamp(44px, 6vw, 84px);
  padding: clamp(92px, 12vw, 160px) clamp(24px, 7vw, 112px);
  background:
    linear-gradient(180deg, #020406, rgba(7, 15, 22, 0.98) 48%, #05080c),
    radial-gradient(circle at 20% 30%, rgba(216, 177, 132, 0.1), transparent 28rem);
}

.gallery__copy {
  max-width: 820px;
  margin-left: 0;
}

.gallery__rail {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(16px, 2.6vw, 38px);
  align-items: start;
}

.photo-card {
  position: relative;
  height: clamp(430px, 58vw, 700px);
  overflow: hidden;
  border: 1px solid rgba(238, 227, 211, 0.1);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.36);
}

.photo-card--low {
  margin-top: 0;
}

.thanks {
  display: grid;
  place-items: center;
  padding: clamp(80px, 12vw, 160px) clamp(24px, 8vw, 128px);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(216, 177, 132, 0.12), transparent 28rem),
    radial-gradient(ellipse at 20% 88%, rgba(127, 151, 158, 0.12), transparent 24rem),
    linear-gradient(180deg, #05080c, #07111a 48%, #020406);
}

.thanks__window {
  position: relative;
  width: min(760px, 100%);
  padding: clamp(32px, 6vw, 74px);
  border: 1px solid rgba(238, 227, 211, 0.16);
  background: rgba(6, 10, 14, 0.58);
  box-shadow:
    0 0 90px rgba(216, 177, 132, 0.08),
    0 30px 120px rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(22px);
}

.thanks__window::before {
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(216, 177, 132, 0.12);
  content: "";
  pointer-events: none;
}

.final {
  display: grid;
  place-items: center;
  padding: clamp(88px, 13vw, 180px) clamp(24px, 8vw, 120px);
  background:
    radial-gradient(circle at 50% 35%, rgba(216, 177, 132, 0.16), transparent 21rem),
    radial-gradient(ellipse at 50% 100%, rgba(127, 151, 158, 0.17), transparent 28rem),
    linear-gradient(180deg, #05080c, #020304);
}

.final__content {
  width: min(840px, 100%);
  text-align: center;
}

.final__signature {
  margin-top: 48px;
  color: var(--amber);
  font-family: var(--serif);
  font-size: clamp(30px, 4.6vw, 64px);
  line-height: 1.1;
}

.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 900ms ease, transform 900ms ease;
}

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

:focus-visible {
  outline: 1px solid rgba(229, 201, 169, 0.9);
  outline-offset: 5px;
}

@keyframes drift {
  from {
    transform: translate3d(-2vw, -1vh, 0) scale(1);
  }
  to {
    transform: translate3d(3vw, 2vh, 0) scale(1.08);
  }
}

@keyframes water {
  0%,
  100% {
    transform: translateX(-2%) scaleX(0.92);
    opacity: 0.16;
  }
  50% {
    transform: translateX(2%) scaleX(1.02);
    opacity: 0.42;
  }
}

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

@media (min-width: 921px) {
  .hero__concept {
    inset: 0;
    height: 100%;
    object-fit: cover;
  }

  .hero-menu {
    top: 50%;
    left: clamp(24px, 4.2vw, 64px);
    max-width: 220px;
    transform: translateY(-50%);
  }

  .hero__start {
    right: auto;
    bottom: auto;
    left: clamp(24px, 17.5vw, 270px);
    top: 53.5%;
  }

  .intro {
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.72fr);
    gap: clamp(36px, 8vw, 120px);
  }

  .intro__copy {
    padding-left: clamp(0px, 8vw, 150px);
  }

  .split {
    grid-template-columns: minmax(280px, 0.58fr) minmax(0, 0.72fr);
    gap: clamp(42px, 9vw, 140px);
  }

  .split__media {
    margin-left: clamp(0px, 5vw, 72px);
    transform: translateY(4vh);
  }

  .gallery__copy {
    margin-left: clamp(0px, 9vw, 150px);
  }

  .gallery__rail {
    grid-template-columns: 0.9fr 1.08fr 0.82fr;
  }

  .photo-card--low {
    margin-top: clamp(48px, 8vw, 110px);
  }
}

@media (max-width: 920px) {
  .topbar {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .chapter-nav {
    display: none;
  }

  .sound-toggle__label,
  .brand small {
    display: none;
  }

  .brand span {
    font-size: 24px;
  }

  .hero__start,
  .scroll-cue {
    opacity: 1;
  }

  .hero__concept {
    inset: 0;
    height: 100%;
    object-fit: cover;
    object-position: center center;
  }

  .hero-menu {
    top: calc(env(safe-area-inset-top) + 82px);
    right: 18px;
    left: 18px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 14px;
    max-width: none;
    text-align: center;
  }

  .hero-menu a {
    font-size: 10px;
    letter-spacing: 0.16em;
    white-space: nowrap;
  }

  .hero__message {
    right: 24px;
    bottom: 33vh;
    left: 24px;
    width: auto;
    text-align: center;
  }

  .hero__message p {
    font-size: clamp(24px, 5.8vw, 38px);
    line-height: 1.12;
  }

  .hero__start {
    left: 8.5vw;
    top: auto;
    bottom: 19vh;
    min-width: 230px;
  }

  .portrait--large,
  .split__media {
    height: 62vh;
  }

  .photo-card,
  .photo-card--low {
    height: 68vh;
    margin-top: 0;
  }
}

@media (min-width: 921px) and (max-aspect-ratio: 4/3) {
  .hero__concept {
    object-position: 74% center;
  }
}

@media (max-width: 560px) {
  .topbar {
    padding: 16px;
  }

  .brand span {
    font-size: 18px;
    letter-spacing: 0.18em;
  }

  .scene__number {
    top: 86px;
    left: 24px;
    transform: none;
  }

  .hero {
    min-height: 100svh;
  }

  .hero__concept {
    inset: 0;
    height: 100%;
  }

  .hero-menu {
    top: calc(env(safe-area-inset-top) + 70px);
    right: 14px;
    left: 14px;
    gap: 7px 10px;
  }

  .hero-menu a {
    font-size: 9px;
    letter-spacing: 0.12em;
  }

  .hero__message {
    bottom: 31vh;
    right: 18px;
    left: 18px;
  }

  .hero__message p {
    font-size: clamp(22px, 7vw, 34px);
  }

  .hero__message p + p {
    margin-top: 8px;
  }

  .hero__start {
    right: 24px;
    bottom: 18vh;
    left: 24px;
    min-width: 0;
  }

  .scroll-cue {
    bottom: 22px;
  }

  .intro,
  .split,
  .depth,
  .gallery,
  .thanks,
  .final {
    padding-right: 22px;
    padding-left: 22px;
  }

  h1 {
    font-size: clamp(42px, 13vw, 66px);
  }

  h2 {
    font-size: clamp(36px, 11vw, 58px);
  }

  p {
    font-size: 17px;
    line-height: 1.68;
  }

  .portrait--large,
  .split__media,
  .photo-card {
    height: 58vh;
  }

  .thanks__window {
    padding: 30px 24px;
  }
}
