:root {
  --mx: 0; --my: 0;
  --paper: #f6ede0;
  --ink: #0b0d0f;
  --gold: #d9b46b;
  --progress: 0;
  --hero-opacity: 1; --hero-y: 0px;
  font-family: "Montserrat", "Helvetica Neue", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--paper);
  background: #06080a;
  letter-spacing: 0;
}

* { box-sizing: border-box; }

html { min-height: 100%; scroll-behavior: smooth; background: #06080a; }
body { min-height: 100%; margin: 0; overflow-x: clip; background: #06080a; }
button { border: 0; font: inherit; }
.site-shell { min-height: 100vh; }

/* ---- WhatsApp floating button ---- */
.wa-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25d366;
  border: 0;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  color: #ffffff;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.wa-fab:hover {
  transform: translateY(-2px) scale(1.05);
  background: #1ebe5b;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
}
.wa-fab svg { width: 28px; height: 28px; fill: currentColor; }
@media (max-width: 640px) {
  .wa-fab { right: 16px; bottom: 16px; width: 52px; height: 52px; }
}

/* ---- Loading screen ---- */
#loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  background: #06080a;
  transition: opacity 0.8s ease;
}
#loader.out { opacity: 0; pointer-events: none; }
#loader.hidden { display: none; }

.loader-mark {
  font-family: "Cormorant Garamond", serif;
  font-weight: 300;
  font-size: clamp(2.4rem, 7vw, 4.4rem);
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  text-transform: uppercase;
  color: var(--paper);
  animation: loaderPulse 2.4s ease-in-out infinite;
}
.loader-tag {
  margin-top: -8px;
  font-family: "Montserrat", sans-serif;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
}
.loader-bar {
  width: 190px;
  height: 1px;
  margin-top: 8px;
  background: rgba(246, 237, 224, 0.16);
  overflow: hidden;
}
.loader-bar span {
  display: block;
  height: 100%;
  width: 38%;
  background: var(--gold);
  animation: loaderSlide 1.25s ease-in-out infinite;
}
@keyframes loaderSlide {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(400%); }
}
@keyframes loaderPulse {
  0%, 100% { opacity: 0.72; }
  50% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .loader-mark, .loader-bar span { animation: none; }
}

/* ---- Scroll rig ---- */
.reel {
  position: relative;
  height: calc(100vh + 10640px); /* overridden by JS: 100vh + clips*SEG */
}

.stage {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  isolation: isolate;
  background: #06080a;
}

.videos, .vignette, .site-header, .hero, .captions, .caption, .hud {
  position: absolute;
}

/* ---- Video layer ---- */
.videos {
  inset: 0;
  z-index: 0;
  transform: translate3d(calc(var(--mx) * -14px), calc(var(--my) * -10px), 0) scale(1.06);
  will-change: transform;
}

.clip {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  will-change: opacity;
  pointer-events: none;
  background: #06080a;
  -webkit-user-drag: none;
  user-select: none;
}

/* ---- Vignette / grade ---- */
.vignette {
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(130% 100% at 50% 40%, transparent 52%, rgba(4, 6, 9, 0.62) 100%),
    linear-gradient(180deg, rgba(4, 6, 9, 0.44) 0%, rgba(4, 6, 9, 0) 22%, rgba(4, 6, 9, 0) 58%, rgba(4, 6, 9, 0.72) 100%);
}

/* ---- Header ---- */
.site-header {
  z-index: 20;
  top: 0; left: 0; right: 0;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(140px, 1fr);
  align-items: center;
  gap: 28px;
  padding: 30px 42px;
  color: rgba(246, 237, 224, 0.86);
}

.site-logo {
  justify-self: start;
  font-family: "Cormorant Garamond", serif;
  font-size: 24px;
  font-weight: 300;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  line-height: 1;
  color: rgba(246, 237, 224, 0.94);
  text-decoration: none;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 1.5vw, 30px);
}

.site-nav a {
  color: rgba(246, 237, 224, 0.82);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  white-space: nowrap;
  line-height: 1;
  text-decoration: none;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
  transition: color 200ms ease;
}
.site-nav a:hover { color: var(--gold); }

.language-switcher {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  background: transparent;
  color: rgba(246, 237, 224, 0.82);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
}
.language-switcher span { display: inline-flex; line-height: 1; }

/* ---- Hero ---- */
.hero {
  z-index: 15;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 4px;
  opacity: var(--hero-opacity);
  transform: translate3d(0, var(--hero-y), 0);
  will-change: opacity, transform;
  pointer-events: none;
}

.hero-kicker {
  margin: 0;
  color: var(--gold);
  font-size: clamp(0.8rem, 1.1vw, 1rem);
  font-weight: 600;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  text-indent: 0.42em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.hero-title {
  margin: 6px 0 10px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(4rem, 12vw, 12rem);
  font-weight: 300;
  line-height: 0.86;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-indent: 0.18em;
  text-shadow: 0 22px 60px rgba(0, 0, 0, 0.55);
}

.hero-sub {
  margin: 0;
  color: rgba(246, 237, 224, 0.86);
  font-size: clamp(0.95rem, 1.2vw, 1.12rem);
  font-weight: 500;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.5);
}

.scroll-hint {
  margin-top: 26px;
  font-size: 1.4rem;
  color: rgba(246, 237, 224, 0.7);
  animation: bob 1.8s ease-in-out infinite;
}
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(9px); } }

/* ---- Captions ---- */
.captions {
  z-index: 12;
  inset: 0;
  pointer-events: none;
}

.caption {
  position: absolute;
  left: clamp(28px, 6vw, 96px);
  bottom: clamp(96px, 16vh, 190px);
  width: min(520px, calc(100vw - 56px));
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  will-change: opacity, transform;
}

.caption .kicker {
  display: block;
  margin-bottom: 14px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6);
}

.caption h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.55rem, 2.7vw, 2.35rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-shadow: 0 14px 44px rgba(0, 0, 0, 0.6);
}

.caption p {
  margin: 16px 0 0;
  max-width: 440px;
  color: rgba(246, 237, 224, 0.9);
  font-size: clamp(0.88rem, 1.05vw, 1.02rem);
  font-weight: 400;
  line-height: 1.4;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6);
}

/* ---- HUD ---- */
.hud {
  z-index: 18;
  left: clamp(28px, 6vw, 96px);
  right: clamp(28px, 6vw, 96px);
  bottom: 40px;
  display: flex;
  align-items: center;
  gap: 20px;
  pointer-events: none;
}

.hud-counter {
  flex: 0 0 auto;
  color: rgba(246, 237, 224, 0.82);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6);
}
.hud-counter b { color: var(--paper); font-weight: 700; }

.hud-bar {
  position: relative;
  flex: 1 1 auto;
  height: 2px;
  background: rgba(246, 237, 224, 0.22);
  overflow: hidden;
}
.hud-fill {
  position: absolute;
  inset: 0;
  transform-origin: left center;
  transform: scaleX(var(--progress));
  background: var(--gold);
}

/* ---- Responsive ---- */
@media (max-width: 760px) {
  .site-header { grid-template-columns: 1fr auto; gap: 16px; padding: 22px; }
  .site-nav {
    grid-column: 1 / -1; grid-row: 2;
    justify-content: flex-start; gap: 18px;
    overflow-x: auto; scrollbar-width: none;
  }
  .site-nav::-webkit-scrollbar { display: none; }
  .caption { bottom: clamp(120px, 20vh, 200px); }
  .hud { bottom: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-hint { animation: none; }
  .videos { transform: scale(1.06); }
}
