:root {
  --bg: #0b0b0d;
  --bg-soft: #131317;
  --line: rgba(255, 255, 255, 0.1);
  --fg: #f4f1ec;
  --fg-dim: #9d968c;
  --accent: #c98a5e;

  --shell: min(1280px, 92vw);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --step-lead: clamp(1rem, 0.9rem + 0.45vw, 1.2rem);
  --step-h2: clamp(2.2rem, 1.4rem + 3.6vw, 4.6rem);
  --step-h1: clamp(2.6rem, 1.5rem + 5vw, 6rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

em {
  font-style: italic;
}

/* ── Shared type ──────────────────────────────────────────────────────── */

.eyebrow {
  margin: 0 0 1.2rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-title,
.hero__title {
  font-family: "Instrument Serif", ui-serif, Georgia, serif;
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}

.hero__title {
  font-size: var(--step-h1);
}

.section-title {
  font-size: var(--step-h2);
}

.section-title em,
.hero__title em {
  color: var(--accent);
}

.section-lead {
  max-width: 46ch;
  margin: 1.6rem 0 0;
  font-size: var(--step-lead);
  color: var(--fg-dim);
}

.section-head {
  width: var(--shell);
  margin: 0 auto 4.5rem;
}

.section-head--center {
  text-align: center;
}

.section-head--center .section-lead {
  margin-inline: auto;
}

/* ── Nav ──────────────────────────────────────────────────────────────── */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem calc((100vw - var(--shell)) / 2);
}

/* Scrim keeps the nav legible over both the bright hero and the dark sections. */
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(11, 11, 13, 0.55), transparent);
  pointer-events: none;
}

.nav__mark {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
}

.nav__mark span {
  color: var(--accent);
}

.nav__links {
  display: flex;
  gap: 2rem;
}

.nav__links a {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.3s var(--ease);
}

.nav__links a:hover {
  opacity: 1;
}

@media (max-width: 640px) {
  .nav__links {
    display: none;
  }
}

/* ── Buttons ──────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.95rem 1.9rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.4s var(--ease), background 0.3s, color 0.3s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--solid {
  background: var(--fg);
  color: #111;
}

.btn--solid:hover {
  background: var(--accent);
  color: #fff;
}

.btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--fg);
}

.btn--ghost:hover {
  border-color: var(--fg);
}

/* ── Hero ─────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: -12% 0;
  z-index: 0;
  will-change: transform;
}

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

.hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(11, 11, 13, 0.55) 0%,
    rgba(11, 11, 13, 0.15) 35%,
    rgba(11, 11, 13, 0.8) 78%,
    var(--bg) 100%
  );
}

.hero__body {
  position: relative;
  z-index: 2;
  width: var(--shell);
  margin: 0 auto;
  padding-bottom: clamp(5rem, 12vh, 9rem);
  /* Hero copy sits on unpredictable photo brightness — shadow guarantees contrast. */
  text-shadow: 0 1px 30px rgba(0, 0, 0, 0.55), 0 1px 4px rgba(0, 0, 0, 0.35);
}

.hero__body .eyebrow {
  color: #f0c39c;
}

.hero__lead {
  max-width: 44ch;
  margin: 1.8rem 0 0;
  font-size: var(--step-lead);
  color: rgba(244, 241, 236, 0.78);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.6rem;
}

.hero__cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  z-index: 2;
  width: 1px;
  height: 56px;
  background: rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

.hero__cue span {
  position: absolute;
  inset: 0;
  background: var(--accent);
  animation: cue 2.4s var(--ease) infinite;
}

@keyframes cue {
  0% {
    transform: translateY(-100%);
  }
  60%,
  100% {
    transform: translateY(100%);
  }
}

/* ── Dollhouse ────────────────────────────────────────────────────────── */

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

/* Scroll distance that the sticky stage animates across. */
.dollhouse__scrollspace {
  height: 320vh;
}

.dollhouse__sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.dollhouse__stage {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  perspective: 1400px;
}

/* Fades the model's lower edge into the page so captions and stats stay legible. */
.dollhouse__sticky::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  height: 48%;
  background: linear-gradient(180deg, transparent, rgba(11, 11, 13, 0.88) 58%, var(--bg));
  pointer-events: none;
}

.dollhouse__stage img {
  width: min(120%, 1500px);
  will-change: transform;
  transform-style: preserve-3d;
}

.dollhouse__captions {
  position: absolute;
  z-index: 2;
  left: calc((100vw - var(--shell)) / 2);
  bottom: clamp(6rem, 16vh, 10rem);
  width: min(30ch, 80vw);
}

.dh-cap {
  position: absolute;
  bottom: 0;
  margin: 0;
  font-family: "Instrument Serif", ui-serif, Georgia, serif;
  font-size: clamp(1.4rem, 1rem + 1.4vw, 2.1rem);
  line-height: 1.2;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.dh-cap.is-active {
  opacity: 1;
  transform: none;
}

.dh-cap__n {
  display: block;
  margin-bottom: 0.5rem;
  font-family: Inter, sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--accent);
}

.dollhouse__stats {
  position: absolute;
  z-index: 2;
  right: calc((100vw - var(--shell)) / 2);
  bottom: clamp(6rem, 16vh, 10rem);
  display: flex;
  gap: 2.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dollhouse__stats li {
  display: flex;
  flex-direction: column;
}

.dollhouse__stats strong {
  font-family: "Instrument Serif", ui-serif, Georgia, serif;
  font-size: clamp(1.8rem, 1.2rem + 1.8vw, 2.8rem);
  font-weight: 400;
  line-height: 1;
}

.dollhouse__stats span {
  margin-top: 0.4rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

@media (max-width: 900px) {
  .dollhouse__stats {
    display: none;
  }
  .dollhouse__captions {
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
  }
}

/* ── Rooms ────────────────────────────────────────────────────────────── */

.rooms {
  padding: clamp(7rem, 16vh, 12rem) 0;
}

.rooms__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1rem, 2vw, 2rem);
  width: var(--shell);
  margin: 0 auto;
}

.room {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: var(--bg-soft);
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.room.is-in {
  opacity: 1;
  transform: none;
}

/* Editorial rhythm: alternating wide / narrow, offset verticals. */
.room--wide {
  grid-column: span 7;
  aspect-ratio: 16 / 10;
}

.room--narrow {
  grid-column: span 5;
  aspect-ratio: 4 / 5;
}

.room--offset {
  margin-top: clamp(2rem, 8vh, 6rem);
}

.room--full {
  grid-column: span 12;
  aspect-ratio: 21 / 9;
}

@media (max-width: 760px) {
  .room--wide,
  .room--narrow,
  .room--full {
    grid-column: span 12;
    aspect-ratio: 4 / 3;
  }
  .room--offset {
    margin-top: 0;
  }
}

.room__img {
  position: absolute;
  inset: -8% 0;
  width: 100%;
  height: 116%;
  object-fit: cover;
  will-change: transform;
  transition: filter 0.6s var(--ease);
}

.room:hover .room__img {
  filter: brightness(1.06);
}

.room__label {
  position: absolute;
  left: 1.4rem;
  bottom: 1.2rem;
  z-index: 2;
  margin: 0;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: rgba(11, 11, 13, 0.55);
  backdrop-filter: blur(10px);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ── Live embed ───────────────────────────────────────────────────────── */

.live {
  padding: clamp(4rem, 10vh, 7rem) 0 clamp(7rem, 16vh, 12rem);
  scroll-margin-top: 5rem;
}

.live__frame {
  position: relative;
  width: var(--shell);
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 6px;
  background: #000;
}

@media (max-width: 760px) {
  .live__frame {
    aspect-ratio: 3 / 4;
  }
}

.live__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease), opacity 0.6s;
}

.live__frame:hover .live__poster {
  transform: scale(1.03);
}

.live__play {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 0;
  background: radial-gradient(ellipse at center, rgba(11, 11, 13, 0.5), rgba(11, 11, 13, 0.85));
  color: var(--fg);
  font-family: inherit;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.8);
  cursor: pointer;
}

.live__play svg {
  width: 68px;
  height: 68px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  fill: currentColor;
  transition: transform 0.5s var(--ease), background 0.4s, border-color 0.4s;
}

.live__play:hover svg {
  transform: scale(1.08);
  background: var(--accent);
  border-color: var(--accent);
}

.live__play span {
  margin-top: 0.6rem;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.live__play small {
  font-size: 0.74rem;
  color: rgba(244, 241, 236, 0.72);
}

.live__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.live__note {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  z-index: 3;
  transform: translateX(-50%);
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  background: rgba(11, 11, 13, 0.8);
  backdrop-filter: blur(10px);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--fg-dim);
  white-space: nowrap;
}

.live__note b {
  color: var(--accent);
  font-weight: 500;
}

/* ── Footer ───────────────────────────────────────────────────────────── */

.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  align-items: flex-end;
  width: var(--shell);
  margin: 0 auto;
  padding: 3rem 0 4rem;
  border-top: 1px solid var(--line);
}

.foot__mark {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.foot__mark span {
  color: var(--accent);
}

.foot__meta,
.foot__note {
  margin: 0.5rem 0 0;
  font-size: 0.78rem;
  color: var(--fg-dim);
}

/* ── Reveal ───────────────────────────────────────────────────────────── */

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
  .dollhouse__scrollspace {
    height: 100vh;
  }
}
