/* The Rufescent, scroll film
   Palette: Cellar #1A0B09 | Rufescent #661813 | Ivory #F2E9DC | Brass #C9A96A | Smoke #A67B74 */

:root {
  --cellar: #1a0b09;
  --rufescent: #661813;
  --ivory: #f2e9dc;
  --brass: #c9a96a;
  --smoke: #a67b74;
  --emerald: #14342b;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Raleway", "Helvetica Neue", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: auto; }

body {
  background: var(--cellar);
  color: var(--ivory);
  font-family: var(--sans);
  font-weight: 300;
  overflow-x: hidden;
}

::selection { background: var(--rufescent); color: var(--ivory); }

/* ---------- film layer ---------- */

.film {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: var(--cellar);
}

.plate {
  position: absolute;
  inset: 0;
  opacity: 0;
  will-change: opacity, transform;
}

.plate img,
.plate picture,
.plate video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.plate video { opacity: 0; }
.plate video.playing { opacity: 1; transition: opacity 0.8s ease; }

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
}

#hero-canvas.playing { opacity: 1; transition: opacity 0.8s ease; }

@media (max-width: 700px) {
  #hero-canvas { display: none; }
}

/* ---------- baked effects ---------- */

.tint {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: var(--cellar);
  opacity: 0.34;
  mix-blend-mode: multiply;
}

#dust {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: radial-gradient(ellipse 120% 90% at 50% 42%, transparent 52%, rgba(10, 4, 3, 0.55) 100%);
}

#grain {
  position: fixed;
  inset: 0;
  z-index: 9;
  pointer-events: none;
  opacity: 0.07;
  mix-blend-mode: overlay;
}

/* ---------- masthead ---------- */

.masthead {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.4rem 2.2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ivory);
}

.brand img { width: 34px; height: 34px; border-radius: 6px; }

.brand span {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

.masthead-cta {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
  text-decoration: none;
  border: 1px solid rgba(201, 169, 106, 0.35);
  padding: 0.65rem 1.1rem;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.masthead-cta:hover { border-color: var(--brass); color: var(--ivory); }

body.on-cream .brand span { color: var(--rufescent); }
body.on-cream .masthead-cta { color: var(--rufescent); border-color: rgba(102, 24, 19, 0.35); }
body.on-cream .masthead-cta:hover { border-color: var(--rufescent); color: #2c1512; }
.brand span, .masthead-cta { transition: color 0.5s ease, border-color 0.5s ease; }

@media (prefers-reduced-motion: reduce) {
  body.on-cream .elevator { display: none; }
}

/* ---------- elevator ---------- */

.elevator {
  position: fixed;
  right: 1.6rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}

.elevator-track {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.9rem 0.55rem;
  border: 1px solid rgba(201, 169, 106, 0.28);
  background: rgba(26, 11, 9, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.elevator-car {
  position: absolute;
  left: 0.28rem;
  width: 3px;
  height: 1.9rem;
  background: var(--brass);
  top: 0.9rem;
  will-change: transform, top;
}

.stop {
  position: relative;
  display: block;
  background: none;
  border: 0;
  color: var(--smoke);
  font-family: var(--serif);
  font-size: 0.86rem;
  font-weight: 500;
  width: 1.9rem;
  height: 1.9rem;
  line-height: 1.9rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

.stop i { font-style: normal; }

.stop em {
  position: absolute;
  right: calc(100% + 1rem);
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.stop:hover { color: var(--ivory); }
.stop:hover em, .stop.active em { opacity: 1; }
.stop.active { color: var(--brass); }

.stop:focus-visible {
  outline: 1px solid var(--brass);
  outline-offset: 2px;
}

/* ---------- floors ---------- */

main { position: relative; z-index: 4; }

.floor {
  min-height: 170vh;
  display: flex;
  align-items: center;
  padding: 0 clamp(1.2rem, 6vw, 7rem);
}

.floor--arrival {
  min-height: 300vh;
  align-items: flex-start;
  justify-content: center;
}

/* hero */

.hero {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  max-width: 60rem;
}

.hero-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 1.6rem;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(3rem, 9.5vw, 7.5rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.02;
}

.hero-sub {
  margin-top: 1.8rem;
  font-size: clamp(0.9rem, 1.4vw, 1.05rem);
  letter-spacing: 0.04em;
  color: rgba(242, 233, 220, 0.82);
  max-width: 34rem;
  line-height: 1.8;
}

.scroll-cue {
  position: fixed;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.64rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--brass);
  z-index: 5;
}

/* glass cards */

.card {
  position: relative;
  max-width: 30rem;
  padding: clamp(1.8rem, 3.4vw, 3rem);
  background: rgba(26, 11, 9, 0.46);
  border: 1px solid rgba(201, 169, 106, 0.22);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  will-change: transform, opacity;
}

.card--light {
  background: rgba(242, 233, 220, 0.6);
  border-color: rgba(102, 24, 19, 0.18);
  color: #2c1512;
}

.eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 1.4rem;
}

.eyebrow span { color: var(--smoke); margin-left: 0.9em; }

.card--light .eyebrow { color: var(--rufescent); }
.card--light .eyebrow span { color: rgba(102, 24, 19, 0.6); }

.card h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  line-height: 1.12;
  margin-bottom: 1.2rem;
}

.card .body {
  font-size: 0.94rem;
  line-height: 1.85;
  color: rgba(242, 233, 220, 0.85);
}

.card--light .body { color: rgba(44, 21, 18, 0.85); }

.stats {
  display: flex;
  gap: 2rem;
  margin-top: 1.8rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(201, 169, 106, 0.22);
}

.stats dt {
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--smoke);
  margin-bottom: 0.4rem;
}

.stats dd {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--brass);
}

/* word-mask reveal */

.mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}

.mask .word {
  display: inline-block;
  will-change: transform;
}

/* alternate card side per floor for rhythm */

#dining, #rooms, #lotus { justify-content: flex-end; }

/* ---------- invitation ---------- */

.invitation {
  position: relative;
  z-index: 5;
  background: var(--ivory);
  color: #2c1512;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem 0;
}

.invitation-inner { max-width: 38rem; }

.invitation-crest {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  margin-bottom: 2rem;
}

.invitation h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.15;
  color: var(--rufescent);
  margin-bottom: 1.4rem;
}

.invitation .body {
  font-size: 0.98rem;
  line-height: 1.85;
  color: rgba(44, 21, 18, 0.8);
  margin-bottom: 2.4rem;
}

.cta {
  display: inline-block;
  font-size: 0.76rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ivory);
  background: var(--rufescent);
  text-decoration: none;
  padding: 1.1rem 2.4rem;
  transition: background 0.3s ease;
}

.cta:hover { background: #7d221c; }

.cta:focus-visible { outline: 2px solid var(--rufescent); outline-offset: 3px; }

.invitation-address {
  margin-top: 2.2rem;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(44, 21, 18, 0.5);
}

.invitation footer {
  width: 100%;
  margin-top: 5rem;
  padding: 1.6rem;
  border-top: 1px solid rgba(102, 24, 19, 0.12);
}

.invitation footer p {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: rgba(44, 21, 18, 0.45);
}

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

@media (max-width: 900px) {
  .floor { padding: 0 1.2rem; }
  #dining, #rooms, #lotus { justify-content: center; }
  .floor { justify-content: center; }
  .card { max-width: 34rem; }
}

@media (max-width: 700px) {
  .masthead { padding: 1rem 1.1rem; }
  .brand img { width: 28px; height: 28px; }
  .brand span { font-size: 0.72rem; letter-spacing: 0.2em; white-space: nowrap; }
  .masthead-cta { display: none; }
  .elevator { right: 0.55rem; }
  .elevator-track { padding: 0.6rem 0.35rem; }
  .stop { width: 1.6rem; height: 1.6rem; line-height: 1.6rem; font-size: 0.76rem; }
  .stop em { display: none; }
  .stats { gap: 1.2rem; flex-wrap: wrap; }
  .card { padding: 1.5rem 1.3rem; margin-right: 2.2rem; }
  .hero h1 { letter-spacing: 0.1em; }
  #hero-video { display: none; }
}

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

@media (prefers-reduced-motion: reduce) {
  #grain, #dust { display: none; }
  .plate { transition: none; }
  .scroll-cue { display: none; }
}
