:root {
  --gold: #C9A84C;
  --ink: #0F0E0D;
  --font-display: "Bebas Neue", "Arial Narrow", sans-serif;
  --font-serif: "Playfair Display", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --ease-premium: cubic-bezier(0.23, 1, 0.32, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { background: var(--ink); }
body {
  font-family: var(--font-body);
  background: var(--ink);
  color: #fff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ═══ BYONEZ GLOBAL NAV — keep identical across every Byonez property ═══ */
.byo-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 46px;
  padding: 0 clamp(1rem, 4vw, 2rem);
  background: rgba(12, 11, 10, 0.55);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.byo-nav__brand {
  font-family: "Bebas Neue", "Arial Narrow", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.28em;
  color: #fff;
  text-decoration: none;
  line-height: 1;
}
.byo-nav__links { display: flex; gap: clamp(0.9rem, 3vw, 1.8rem); }
.byo-nav__links a {
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.byo-nav__links a:hover { color: #C9A84C; }
.byo-nav__links a.is-current { color: #C9A84C; border-color: #C9A84C; }
@media (max-width: 520px) {
  .byo-nav { height: 44px; padding: 0 0.9rem; }
  .byo-nav__links { gap: 0.85rem; }
  .byo-nav__links a { font-size: 0.58rem; letter-spacing: 0.1em; }
  .byo-nav__brand { font-size: 0.9rem; letter-spacing: 0.22em; }
}

/* ═══════════════════════════════════════════════════════════════════════
   VISUAL PORTFOLIO — horizontal cinematic scroll
   Vertical scroll is translated into lateral travel through full-bleed
   universes. GSAP pins the section and drives the track; the CSS here
   never hides content, so if the CDN fails the panels still read.
   ═══════════════════════════════════════════════════════════════════════ */

.v-progress {
  position: fixed;
  top: 46px; left: 0; right: 0;
  height: 2px;
  z-index: 600;
  pointer-events: none;
  opacity: 0.6;
}
@media (max-width: 520px) { .v-progress { top: 44px; } }
.v-progress span {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: var(--gold);
}

/* the elegant "camera cut" line that flashes between universes */
.u-cut {
  position: fixed;
  top: 50%; left: 0; right: 0;
  height: 1px;
  z-index: 590;
  pointer-events: none;
  background: var(--gold);
  opacity: 0;
  transform: scaleX(0);
  transform-origin: 0 50%;
}

.universes {
  position: relative;
  height: 100vh;
  overflow: hidden;
  background: #000;
}

.universes-track {
  display: flex;
  height: 100%;
  width: max-content;
  will-change: transform;
}

.u-panel {
  position: relative;
  flex: 0 0 100vw;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: #000;
}

.u-media {
  position: absolute;
  inset: 0;
  will-change: transform;
  transform: scale(1.05);
}
.u-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* tone panels (awaiting footage) — designed as chapter interstitials */
.u-panel--tone .u-media {
  display: flex;
  align-items: center;
  justify-content: center;
}
.u-ghost {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 44vh;
  line-height: 1;
  color: rgba(255, 255, 255, 0.05);
  user-select: none;
}
.tone-3 { background: radial-gradient(120% 120% at 30% 20%, #4a3818 0%, #1c1509 70%); }
.tone-4 { background: radial-gradient(120% 120% at 70% 30%, #0d4a4f 0%, #041d1f 70%); }
.tone-5 { background: radial-gradient(120% 120% at 40% 70%, #1c1140 0%, #070418 70%); }
.tone-6 { background: radial-gradient(120% 120% at 65% 40%, #6b0f1a 0%, #260408 70%); }
.tone-7 { background: radial-gradient(120% 120% at 50% 50%, #17171c 0%, #050506 75%); }
.tone-8 { background: radial-gradient(130% 130% at 50% 30%, #14141c 0%, #030307 72%); }

.u-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(130% 100% at 50% 50%, transparent 38%, rgba(4, 4, 5, 0.5) 100%),
    linear-gradient(180deg, rgba(4, 4, 5, 0.34) 0%, transparent 26%, transparent 60%, rgba(4, 4, 5, 0.58) 100%);
}

.u-num {
  position: absolute;
  top: clamp(4.8rem, 9vh, 6.5rem);
  right: clamp(1.5rem, 4vw, 3rem);
  z-index: 3;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.72rem;
  letter-spacing: 4px;
  color: var(--gold);
}

/* ---- universe copy — positioned differently per panel ---- */
.u-copy {
  position: absolute;
  z-index: 3;
  max-width: min(46ch, 78vw);
  color: #fff;
}
.u-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2.4rem, 6.4vw, 5.6rem);
  line-height: 1.04;
  margin: 0;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.45), 0 1px 6px rgba(0, 0, 0, 0.35);
}
.u-sub {
  margin: 1.1rem 0 0;
  font-family: var(--font-body);
  font-weight: 200;
  font-size: clamp(0.92rem, 1.5vw, 1.12rem);
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.82);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
}

/* word-mask reveal primitive (spans injected by script.js) */
.u-title .word, .u-sub .word { display: inline-block; overflow: hidden; vertical-align: top; }
.u-title .word > span, .u-sub .word > span { display: inline-block; will-change: transform; }

.u-copy--bl { left: clamp(1.5rem, 6vw, 6rem); bottom: clamp(4rem, 12vh, 8rem); }
.u-copy--br { right: clamp(1.5rem, 6vw, 6rem); bottom: clamp(4rem, 12vh, 8rem); text-align: right; }
.u-copy--c  { left: 50%; top: 50%; transform: translate(-50%, -50%); text-align: center; }
.u-copy--cl { left: clamp(1.5rem, 6vw, 6rem); top: 50%; transform: translateY(-50%); }
.u-copy--r  { right: clamp(1.5rem, 6vw, 6rem); top: 50%; transform: translateY(-50%); text-align: right; }

/* ---- vertical dot navigation ---- */
.u-dots {
  position: fixed;
  right: clamp(1rem, 2.4vw, 2rem);
  top: 50%;
  transform: translateY(-50%);
  z-index: 550;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}
.u-dots button {
  appearance: none; -webkit-appearance: none;
  width: 9px; height: 9px;
  padding: 0; margin: 0;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: transparent;
  cursor: pointer;
  transition: background-color 0.4s var(--ease-premium), transform 0.4s var(--ease-premium);
}
.u-dots button[aria-current="true"] {
  background: var(--gold);
  transform: scale(1.35);
}

/* ═══ CLOSING ═══ */
.closing {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.5rem;
  background: var(--ink);
  text-align: center;
}
.closing-inner { display: flex; flex-direction: column; align-items: center; }
.closing-mark {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(3.2rem, 11vw, 8rem);
  line-height: 1;
  margin: 0;
}
.closing-line {
  margin: 1.6rem 0 2.8rem;
  font-weight: 300;
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.62);
}
.closing-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1.15rem 2.4rem;
  border-radius: 999px;
  background: var(--gold);
  color: #100E0A;
  text-decoration: none;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: transform 0.4s var(--ease-premium), box-shadow 0.4s var(--ease-premium);
  box-shadow: 0 16px 40px -16px rgba(201, 168, 76, 0.6);
}
.closing-cta:hover { transform: translateY(-3px); box-shadow: 0 24px 52px -18px rgba(201, 168, 76, 0.7); }

/* CTA arrow — flips direction for right-to-left languages */
.cta-arrow::before { content: "\2192"; }
[lang="ar"] .cta-arrow::before { content: "\2190"; }

/* ═══ LANGUAGE SWITCHER — EN · ES · FR · DE · IT · AR ═══ */
.lang {
  position: fixed;
  top: calc(46px + 0.55rem + env(safe-area-inset-top, 0px));
  left: clamp(1rem, 4vw, 2rem);
  z-index: 700;
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(12, 11, 10, 0.55);
  -webkit-backdrop-filter: blur(12px) saturate(1.3);
  backdrop-filter: blur(12px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 6px 20px -8px rgba(0, 0, 0, 0.5);
}
.lang button {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  margin: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.58);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  line-height: 1;
  padding: 0.34rem 0.5rem 0.3rem;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.25s var(--ease-premium), background-color 0.25s var(--ease-premium);
}
.lang button[lang="ar"] { font-family: "Noto Sans Arabic", var(--font-body); letter-spacing: 0; }
.lang button:hover { color: #fff; }
.lang button[aria-current="true"] { color: #0F0E0D; background: var(--gold); }
@media (max-width: 520px) {
  .lang { top: calc(44px + 0.5rem + env(safe-area-inset-top, 0px)); left: 0.8rem; }
  .lang button { padding: 0.32rem 0.42rem 0.28rem; font-size: 0.6rem; letter-spacing: 0.06em; }
}

/* ═══ ARABIC — local: text runs RTL, the horizontal-scroll layout stays LTR ═══ */
[lang="ar"] .u-title,
[lang="ar"] .closing-mark {
  font-family: "Amiri", var(--font-serif);
  font-style: normal;
}
[lang="ar"] .u-sub,
[lang="ar"] .closing-line {
  font-family: "Noto Sans Arabic", var(--font-body);
}
[lang="ar"] .u-title { line-height: 1.18; }
[lang="ar"] .u-sub { font-weight: 300; }

/* ═══ MOBILE ═══ */
@media (max-width: 640px) {
  .u-ghost { font-size: 34vh; }
  .u-dots { right: 0.7rem; gap: 0.75rem; }
  .u-dots button { width: 8px; height: 8px; }
  .u-copy--bl, .u-copy--br { bottom: clamp(3.5rem, 14vh, 6rem); }
}

/* ═══ REDUCED MOTION / NO-JS FALLBACK ═══
   Without JS the track is a plain vertical stack; every panel reads. */
.no-gsap .universes { height: auto; overflow: visible; }
.no-gsap .universes-track { flex-direction: column; width: 100%; }
.no-gsap .u-panel { flex: none; height: 100vh; }
.no-gsap .u-media { transform: none; }
.no-gsap .u-dots { display: none; }
.no-gsap .u-cut { display: none; }

@media (prefers-reduced-motion: reduce) {
  .universes { height: auto; overflow: visible; }
  .universes-track { flex-direction: column; width: 100%; }
  .u-panel { flex: none; height: 100vh; }
  .u-media { transform: none; }
  .u-dots, .u-cut { display: none; }
  .u-title .word > span, .u-sub .word > span { transform: none !important; }
}

/* ═══════════════════════════════════════════════════════════════════════
   OPENING SCREEN — full-viewport intro above the universes.
   A 100vh section that scrolls away while it fades; scroll back = it returns.
   ═══════════════════════════════════════════════════════════════════════ */
.opening {
  position: relative;
  z-index: 690;               /* above the journey UI, below nav + lang */
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(4.5rem, 12vh, 8rem) clamp(1.4rem, 6vw, 4rem);
  background: var(--ink);
  overflow: hidden;
}

.opening-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.18;
  pointer-events: none;
}
.opening-veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 100% at 50% 45%, transparent 32%, rgba(6, 5, 4, 0.7) 100%),
    linear-gradient(180deg, rgba(6, 5, 4, 0.48) 0%, transparent 30%, transparent 66%, rgba(6, 5, 4, 0.7) 100%);
}
.opening-inner {
  position: relative;
  z-index: 2;
  max-width: 940px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  will-change: opacity, transform;
}

/* --- entrance: staggered fade-up on first load (one time) --- */
@keyframes opening-rise {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}
.opening-kicker,
.opening-title,
.opening-sub,
.opening-cta {
  opacity: 0;
  animation: opening-rise 0.75s cubic-bezier(0.23, 1, 0.32, 1) both;
}
.opening-kicker { animation-delay: 0.05s; }
.opening-title  { animation-delay: 0.32s; }
.opening-sub    { animation-delay: 0.62s; }
.opening-cta    { animation-delay: 0.88s; }

/* --- small line: clean, a touch larger and calmer tracking --- */
.opening-kicker {
  margin: 0 0 clamp(1.5rem, 3.8vh, 2.4rem);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(0.8rem, 1.9vw, 1rem);
  letter-spacing: 0.2em;
  color: var(--gold);
}

/* --- title: minimalist sans, light weight, tight tracking, metallic sheen --- */
.opening-title {
  margin: 0;
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 300;
  font-size: clamp(1.7rem, 3.7vw, 3rem);
  line-height: 1.34;
  letter-spacing: -0.012em;
  perspective: 1000px;
}
.opening-title__ink {
  display: inline-block;
  background-image:
    linear-gradient(112deg,
      rgba(255, 255, 255, 0) 43%,
      rgba(255, 255, 255, 0.5) 48%,
      rgba(255, 255, 255, 0.88) 50%,
      rgba(255, 255, 255, 0.5) 52%,
      rgba(255, 255, 255, 0) 57%),
    linear-gradient(180deg,
      #b1902f 0%, #e7d7a9 24%, #ffffff 50%, #e7d7a9 76%, #b1902f 100%);
  background-size: 320% 100%, 100% 100%;
  background-position: 135% 0, 50% 0;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.1),
    0 4px 12px rgba(0, 0, 0, 0.4),
    0 14px 40px rgba(0, 0, 0, 0.32),
    0 0 46px rgba(201, 168, 76, 0.14);
  transform-style: preserve-3d;
  transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1);
  will-change: transform, background-position;
  animation: opening-sheen 5.5s linear 1.8s infinite;
}
@keyframes opening-sheen {
  0%   { background-position: 135% 0, 50% 0; }
  100% { background-position: -40% 0, 50% 0; }
}

/* --- sub: readable, wider, still light --- */
.opening-sub {
  margin: clamp(1.5rem, 4vh, 2.4rem) 0 0;
  max-width: 58ch;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(0.96rem, 1.7vw, 1.18rem);
  line-height: 1.66;
  letter-spacing: 0.005em;
  color: rgba(255, 255, 255, 0.62);
}
.opening-cta {
  margin-top: clamp(2.1rem, 5vh, 3.2rem);
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 2.1rem;
  border: 1px solid rgba(201, 168, 76, 0.5);
  border-radius: 999px;
  background: transparent;
  color: var(--gold);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(0.78rem, 1.35vw, 0.9rem);
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: background-color 0.4s var(--ease-premium), border-color 0.4s var(--ease-premium), color 0.4s var(--ease-premium);
}
.opening-cta span { transition: transform 0.4s var(--ease-premium); }
.opening-cta:hover {
  background: rgba(201, 168, 76, 0.12);
  border-color: var(--gold);
  color: #F3E7C4;
}
.opening-cta:hover span { transform: translateX(5px); }

/* --- reduced motion / no-GSAP: a plain static hero you scroll past --- */
.opening--static .opening-video { opacity: 0.28; }

@media (max-width: 600px) {
  .opening-kicker { letter-spacing: 0.16em; font-size: clamp(0.78rem, 3.4vw, 0.92rem); }
  .opening-sub { max-width: 40ch; }
}
@media (prefers-reduced-motion: reduce) {
  .opening-kicker, .opening-title, .opening-sub, .opening-cta {
    animation: none;
    opacity: 1;
  }
  .opening-title__ink { animation: none; background-position: 135% 0, 50% 0; transition: none; }
}
