:root {
  --bg: #000;
  --ink: #f6f1e8;
  --muted: rgba(246, 241, 232, 0.72);
  --gold: #c4a574;
  --gold-soft: rgba(196, 165, 116, 0.55);
  --panel: #16131f;
  --header-h: 88px;
  --side: 48px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: "Cormorant Garamond", "Times New Roman", Times, serif;
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

button,
a {
  color: inherit;
  font: inherit;
}

button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

/* ---------- chrome ---------- */

.chrome {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
}

.chrome > * {
  pointer-events: auto;
}

.header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 28px var(--side) 0;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.55);
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
}

.brand-mark {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 34px;
  letter-spacing: 0.18em;
  line-height: 1;
  color: var(--gold);
}

.brand-name {
  font-size: 13px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.header-nav button,
.header-nav a {
  text-decoration: none;
  opacity: 0.92;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: opacity 0.25s var(--ease), border-color 0.25s var(--ease);
}

.header-nav button:hover,
.header-nav a:hover {
  opacity: 1;
  border-bottom-color: var(--gold-soft);
}

.lang {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--ink);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0 16px 4px 0;
  cursor: pointer;
  outline: none;
}

.lang option {
  color: #111;
}

.menu-btn {
  width: 22px;
  height: 14px;
  position: relative;
}

.menu-btn span,
.menu-btn::before,
.menu-btn::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--ink);
}

.menu-btn::before {
  top: 0;
}

.menu-btn span {
  top: 6px;
}

.menu-btn::after {
  bottom: 0;
}

/* ---------- pager ---------- */

.pager {
  position: absolute;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 18px;
  z-index: 3;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.65);
}

.pager a {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  opacity: 0.55;
  transition: opacity 0.3s var(--ease);
}

.pager a.is-active,
.pager a:hover {
  opacity: 1;
}

.pager .num {
  width: 22px;
  height: 22px;
  border: 1px solid var(--gold-soft);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  letter-spacing: 0;
  flex-shrink: 0;
}

.pager a.is-active .num {
  border-color: var(--gold);
  color: var(--gold);
}

.pager .label {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ---------- scenes ---------- */

.stage {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}

.scene {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow: hidden;
}

.scene-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  transition: transform 8s linear;
}

.scene.is-active .scene-bg {
  transform: scale(1.1);
}

.scene-bg.has-video,
.scene.is-active .scene-bg.has-video {
  transform: none;
}

.scene-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.scene-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.12) 28%, rgba(0, 0, 0, 0.2) 62%, rgba(0, 0, 0, 0.62) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.38) 0%, rgba(0, 0, 0, 0) 42%);
}

.scene-copy {
  position: absolute;
  left: var(--side);
  bottom: 11vh;
  max-width: min(780px, 72vw);
  z-index: 2;
}

.headline {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(42px, 6.2vw, 88px);
  line-height: 0.95;
  letter-spacing: 0.01em;
}

.rule {
  width: 88px;
  height: 1px;
  background: var(--gold);
  margin: 18px 0 16px;
}

.subtitle {
  margin: 0;
  font-size: clamp(18px, 2vw, 25px);
  letter-spacing: 0.08em;
  color: var(--ink);
}

.album-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  font-size: 14px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
}

.album-link::after {
  content: "";
  width: 36px;
  height: 1px;
  background: var(--gold);
}

.filmstrip {
  position: absolute;
  right: 48px;
  bottom: 10vh;
  display: flex;
  gap: 8px;
  z-index: 2;
}

.filmstrip button {
  width: 72px;
  height: 96px;
  overflow: hidden;
  opacity: 0.78;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

.filmstrip button:hover {
  opacity: 1;
  transform: translateY(-4px);
}

.filmstrip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- overlays ---------- */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(0, 0, 0, 0.72);
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
}

.overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.panel {
  width: min(1080px, calc(100vw - 48px));
  max-height: min(780px, calc(100vh - 64px));
  background: var(--panel);
  border-radius: 28px;
  padding: 48px 48px 36px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.panel h2 {
  margin: 0 0 8px;
  text-align: center;
  font-style: italic;
  font-weight: 500;
  font-size: 36px;
}

.panel .meta {
  text-align: center;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 13px;
  color: var(--gold);
  margin-bottom: 24px;
}

.panel p {
  margin: 0 auto;
  max-width: 62ch;
  font-size: 20px;
  line-height: 1.7;
  color: var(--muted);
  text-align: center;
}

.close {
  position: absolute;
  top: 22px;
  right: 24px;
  width: 36px;
  height: 36px;
  color: var(--gold);
  font-size: 28px;
  line-height: 1;
}

.gallery-grid {
  overflow: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding-right: 6px;
}

.gallery-grid button {
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.gallery-grid button:hover img {
  transform: scale(1.04);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.92);
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  max-width: min(1200px, 88vw);
  max-height: 86vh;
  object-fit: contain;
}

.lightbox .nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 42px;
  color: var(--gold);
  padding: 12px;
}

.lightbox .prev {
  left: 18px;
}

.lightbox .next {
  right: 18px;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 35;
  background: rgba(8, 7, 12, 0.96);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}

.mobile-menu.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu a {
  font-size: 28px;
  font-style: italic;
  text-decoration: none;
  padding: 10px 0;
}

.intro {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: #000;
  display: grid;
  place-items: center;
  text-align: center;
  transition: opacity 0.9s var(--ease);
}

.intro.is-gone {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

html.no-intro .intro {
  display: none !important;
}

.intro .mark {
  font-style: italic;
  font-size: clamp(48px, 8vw, 96px);
  letter-spacing: 0.12em;
  color: var(--gold);
}

.intro .names {
  margin-top: 8px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  font-size: 16px;
}

.intro .enter {
  margin-top: 36px;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  font-size: 13px;
  color: var(--gold);
}

.skip {
  position: absolute;
  right: var(--side);
  bottom: 36px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 13px;
  color: var(--muted);
}

/* scrollbar */
.gallery-grid::-webkit-scrollbar,
.panel::-webkit-scrollbar {
  width: 6px;
}

.gallery-grid::-webkit-scrollbar-thumb,
.panel::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 99px;
}

@media (max-width: 900px) {
  :root {
    --side: 22px;
  }

  .header-nav .desktop-only,
  .pager .label,
  .filmstrip {
    display: none;
  }

  .pager {
    right: 12px;
    gap: 14px;
  }

  .scene-copy {
    bottom: 14vh;
    max-width: 88vw;
  }

  .panel {
    padding: 36px 20px 24px;
    border-radius: 18px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .scene-bg,
  html {
    transition: none;
    scroll-behavior: auto;
  }
}
