/* CAPTIVATING STUDIO — house styles
   Full-bleed environments. Type overlaps image. Nothing is centered by default.
   Ivory is warm. Black is near. Nothing is pure white. */

:root {
  --near-black: #050505;
  --ivory: #E9E1D2;
  --ivory-soft: rgba(233, 225, 210, 0.72);
  --taupe: #77736D;
  --navy: #070A10;
  --navy-ivory: #F5F1EA;
  --olive-deep: #14120C;
  --cream: #E8E0CF;
  --espresso: #241C14;
  --champagne: rgba(201, 169, 106, 0.5);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--near-black);
  color: var(--ivory);
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
}

::selection { background: rgba(201, 169, 106, 0.25); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

.skip {
  position: absolute; left: -200vw; top: 16px;
  z-index: 99999;
  background: var(--near-black); color: var(--ivory);
  padding: 12px 22px;
  font-size: 11px; letter-spacing: .3em; text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--ivory-soft);
}
.skip:focus { left: 16px; }

a:focus-visible { outline: 1px solid var(--ivory); outline-offset: 6px; }

/* ---------- atmosphere ---------- */

.grain {
  position: fixed; inset: -50%;
  width: 200%; height: 200%;
  transform: translateZ(0);
  backface-visibility: hidden;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9000;
  animation: grainShift 0.95s steps(4) infinite;
}
@keyframes grainShift {
  0% { transform: translate(0,0); } 25% { transform: translate(-1.4%, 1%); }
  50% { transform: translate(1%, -1.4%); } 75% { transform: translate(-1%, -1%); }
  100% { transform: translate(0,0); }
}

#dust {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 3;
}

/* ---------- navigation ---------- */

.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 30px 44px;
  z-index: 9500;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 1.6s ease, transform 1.6s ease;
  background: linear-gradient(to bottom, rgba(5,5,5,0.6), transparent);
}
.site-nav.on { opacity: 1; transform: translateY(0); }

.nav-mark {
  font-family: 'Prata', serif;
  font-size: 19px;
  color: var(--ivory);
  text-decoration: none;
  display: flex; align-items: center; gap: .15em;
}
.nav-mark .bar, .cs-mark .bar, .lr-mark .bar {
  display: inline-block;
  width: 1px; height: .52em;
  background: rgba(233, 225, 210, 0.24);
}

.site-nav nav { display: flex; gap: 44px; }
.site-nav nav a {
  color: rgba(233, 225, 210, 0.55);
  text-decoration: none;
  font-size: 10px;
  font-weight: 300;
  letter-spacing: .5em; text-indent: .5em;
  text-transform: uppercase;
  transition: color .5s ease;
}
.site-nav nav a:hover { color: var(--ivory); }

/* ---------- reveals ---------- */

.rv {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 2s cubic-bezier(0.22, 1, 0.36, 1),
              transform 2s cubic-bezier(0.22, 1, 0.36, 1);
}
.inview .rv { opacity: 1; transform: translateY(0); }
.inview .rv:nth-child(2) { transition-delay: .25s; }
.inview .rv:nth-child(3) { transition-delay: .5s; }
.inview .rv:nth-child(4) { transition-delay: .75s; }
.inview .rv:nth-child(5) { transition-delay: 1s; }
.inview .rv:nth-child(6) { transition-delay: 1.2s; }
.inview .rv:nth-child(7) { transition-delay: 1.4s; }
.inview .rv:nth-child(8) { transition-delay: 1.55s; }

/* ---------- environments ---------- */

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

/* ---------- I · opening ---------- */

.opening {
  background: var(--near-black);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 9vh;
  padding: 16vh 7vw 12vh;
  text-align: center;
}

.cs-mark {
  font-family: 'Prata', serif;
  font-size: clamp(96px, 20vw, 200px);
  color: var(--ivory);
  line-height: 1;
  display: flex; align-items: center; justify-content: center; gap: .16em;
  transform: scale(0.96);
  transition: opacity 3.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 3.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.inview .cs-mark { transform: scale(1); }
.cs-mark.small { font-size: 44px; }

.mangez {
  font-family: 'Prata', serif;
  font-size: clamp(15px, 2.6vw, 21px);
  letter-spacing: .64em; text-indent: .64em;
  text-transform: uppercase;
  color: var(--ivory-soft);
  margin-top: 54px;
}

.consume {
  font-size: 10px;
  letter-spacing: .52em; text-indent: .52em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-top: 22px;
}

.paths {
  display: flex; flex-direction: row; gap: clamp(30px, 7vw, 110px);
  flex-wrap: wrap; justify-content: center;
}
.path {
  text-decoration: none;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.path-feed {
  font-size: 9px;
  letter-spacing: .5em; text-indent: .5em;
  text-transform: uppercase;
  color: var(--taupe);
  transition: color .6s ease;
}
.path-word {
  font-family: 'Prata', serif;
  font-size: clamp(24px, 3.4vw, 34px);
  letter-spacing: .34em; text-indent: .34em;
  text-transform: uppercase;
  color: var(--ivory-soft);
  transition: color .6s ease, letter-spacing 1.4s ease;
}
.path:hover .path-word, .path:focus-visible .path-word { color: var(--ivory); letter-spacing: .42em; }
.path:hover .path-feed, .path:focus-visible .path-feed { color: var(--ivory-soft); }

/* ---------- room grammar: full-bleed panel + asymmetric content ---------- */

.room { display: block; }

.panel {
  position: absolute;
  top: 0; bottom: 0;
  width: 58%;
  overflow: hidden;
}
.panel-right { right: 0; }
.panel-left { left: 0; }

.panel img, .panel video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.panel img { transform: scale(1.08); }
.panel video { transform: scale(1.03); }

/* the image dissolves into the room — never a framed card */
.panel-veil { position: absolute; inset: 0; pointer-events: none; }
.panel-right .panel-veil {
  background: linear-gradient(to right, var(--room-bg, #070A10) 0%, transparent 42%),
              linear-gradient(to top, rgba(0,0,0,0.55), transparent 40%),
              linear-gradient(to bottom, rgba(0,0,0,0.35), transparent 30%);
}
.panel-left .panel-veil {
  background: linear-gradient(to left, var(--room-bg, #14120C) 0%, transparent 42%),
              linear-gradient(to top, rgba(0,0,0,0.55), transparent 40%),
              linear-gradient(to bottom, rgba(0,0,0,0.35), transparent 30%);
}

.room-content {
  position: relative;
  z-index: 4;
  min-height: 100vh;
  min-height: 100svh;
  display: flex; flex-direction: column;
  justify-content: center;
}
.room-content.left  { align-items: flex-start; text-align: left;  padding: 16vh 8vw 14vh 7vw; width: 62%; }
.room-content.right { align-items: flex-start; text-align: left;  padding: 16vh 7vw 14vh 8vw; width: 62%; margin-left: 38%; }
.room-content.center { align-items: center; text-align: center; padding: 16vh 7vw 14vh; width: 100%; margin: 0; }

.room-index {
  font-size: 9px;
  letter-spacing: .55em; text-indent: .55em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-bottom: 4vh;
}

/* the maison monograms — cream cutouts breathing above each title */
.brand-mark {
  height: clamp(38px, 5vw, 60px);
  width: auto;
  margin-bottom: 3vh;
  opacity: .78;
}
.inview .brand-mark { animation: markBreathe 12s ease-in-out infinite; }
@keyframes markBreathe {
  0%, 100% { opacity: .92; transform: scale(1); }
  50%      { opacity: .74; transform: scale(1.015); }
}

/* enormous — the title breaks over the image */
.room-title {
  font-size: clamp(32px, 6vw, 84px);
  line-height: 1.14;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 400;
  position: relative;
  z-index: 5;
}
.title-break { display: inline-block; margin-left: clamp(30px, 8vw, 140px); }
.serif-p { font-family: 'Playfair Display', serif; }
.prata { font-family: 'Prata', serif; }

.room-line {
  margin-top: 6.5vh;
  font-size: clamp(16px, 2.1vw, 22px);
  letter-spacing: .12em;
  line-height: 1.85;
  font-weight: 400;
  opacity: .88;
}
.room-line em { font-style: italic; }

.room-tagline {
  margin-top: 18px;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 14px;
  letter-spacing: .14em;
  opacity: .66;
}

.room-copy {
  margin-top: 26px;
  max-width: 40ch;
  font-size: 12.5px;
  line-height: 2.3;
  letter-spacing: .06em;
  opacity: .6;
}

.room-cta {
  display: inline-block;
  margin-top: 6vh;
  padding: 17px 36px 17px 42px;
  font-size: 10px;
  letter-spacing: .5em; text-indent: .5em;
  text-transform: uppercase;
  text-decoration: none;
  color: inherit;
  border: 1px solid currentColor;
  opacity: .75;
  transition: opacity .6s ease, background .6s ease, letter-spacing 1s ease;
}
.room-cta:hover { opacity: 1; background: rgba(255,255,255,0.045); letter-spacing: .56em; }

/* ---------- II · mind ---------- */

.mind {
  --room-bg: #070A10;
  background:
    radial-gradient(90% 70% at 18% 30%, rgba(18, 26, 44, 0.55), transparent 60%),
    var(--navy);
  color: var(--navy-ivory);
  font-family: 'Lato', sans-serif;
}
.mind .room-index { color: rgba(245, 241, 234, 0.36); }

/* right-set rooms get a slightly smaller title so it never clips */
.room-content.right .room-title { font-size: clamp(30px, 5vw, 70px); }
.room-content.right .title-break { margin-left: clamp(20px, 5vw, 90px); }

/* ---------- III · body ---------- */

.body-room {
  --room-bg: #191510;
  background:
    radial-gradient(90% 80% at 82% 65%, rgba(48, 46, 28, 0.5), transparent 62%),
    linear-gradient(180deg, var(--espresso), var(--olive-deep));
  color: var(--cream);
  font-family: 'Lato', sans-serif;
}
.body-room .room-index { color: rgba(232, 224, 207, 0.38); }

#orbits {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
  opacity: .22;
}

/* ---------- IV · soul ---------- */

.soul {
  background: #030303;
  color: var(--ivory);
}
.soul-backdrop {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.soul-backdrop img, .soul-backdrop video {
  position: absolute;
  height: 118%;
  width: auto;
  object-fit: cover;
  -webkit-mask-image: radial-gradient(62% 58% at 50% 46%, #000 28%, transparent 74%);
  mask-image: radial-gradient(62% 58% at 50% 46%, #000 28%, transparent 74%);
}
.soul-backdrop video { opacity: .44; }
/* quiet veil so the words hold the room over the moving frames */
.soul-backdrop::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(closest-side at 50% 46%, rgba(3,3,3,0.22), rgba(3,3,3,0.66));
  pointer-events: none;
}

.lr-mark {
  font-family: 'Prata', serif;
  font-size: clamp(84px, 16vw, 160px);
  color: var(--ivory);
  line-height: 1;
  display: flex; align-items: center; gap: .16em;
  margin-bottom: 34px;
}
.soul-name {
  font-size: clamp(17px, 3vw, 24px);
  letter-spacing: .58em; text-indent: .58em;
  text-transform: uppercase;
  color: var(--ivory-soft);
  font-weight: 400;
}
.room-sub {
  font-family: 'Prata', serif;
  font-size: 11px;
  letter-spacing: .62em; text-indent: .62em;
  margin-top: 14px;
  color: var(--taupe);
}
.soul-line {
  margin-top: 6.5vh;
  font-size: clamp(19px, 3.2vw, 27px);
  letter-spacing: .1em;
  line-height: 1.8;
  font-weight: 400;
}
.soul-line.small { font-size: clamp(15px, 2.4vw, 20px); margin-top: 4vh; }
.room-translate {
  margin-top: 14px;
  font-size: 9px;
  letter-spacing: .5em; text-indent: .5em;
  text-transform: uppercase;
  color: var(--taupe);
}
.soul .room-cta { border-color: var(--champagne); }

/* ---------- close ---------- */

.close {
  min-height: 55vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 30px;
  background: var(--near-black);
  position: relative;
  padding: 10vh 7vw;
}
.close-line {
  font-family: 'Prata', serif;
  font-size: 12px;
  letter-spacing: .64em; text-indent: .64em;
  text-transform: uppercase;
  color: var(--taupe);
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .grain { animation: none; }          /* static grain on mobile — kills the flicker */
  .site-nav { padding: 22px 24px; }
  .site-nav nav { gap: 26px; }

  /* image becomes the room itself; text floats over a scrim */
  .panel, .panel-right, .panel-left { width: 100%; left: 0; right: 0; }
  .panel-right .panel-veil,
  .panel-left .panel-veil {
    background: linear-gradient(to bottom,
      rgba(0,0,0,0.62) 0%, rgba(0,0,0,0.28) 35%,
      rgba(0,0,0,0.34) 65%, rgba(0,0,0,0.72) 100%);
  }
  .room-content.left, .room-content.right {
    width: 100%; margin: 0;
    padding: 15vh 9vw 13vh;
  }
  .title-break { margin-left: clamp(18px, 9vw, 60px); }
  .paths { flex-direction: column; gap: 26px; }
  .opening { gap: 7vh; }
  .room-cta {
    font-size: 9px;
    letter-spacing: .3em; text-indent: .3em;
    padding: 15px 20px 15px 26px;
    white-space: nowrap;
  }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .grain { animation: none; }
  #dust { display: none; }
  .rv, .cs-mark {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .inview .panel img, .panel img,
  .inview .soul-backdrop img, .soul-backdrop img { animation: none; transform: none; }
  .panel video, .soul-backdrop video { transform: none; }
}