/* ============================================================
   MOATAZ MASHAL — FOUNDATION STYLESHEET (base.css)
   Design tokens, reset, typography, buttons, badges, header,
   footer, and shared utilities. Arabic-first (RTL) baseline;
   all rules use CSS logical properties for language mirroring.
   ============================================================ */

/* ------------------------------------------------------------
   1. DESIGN TOKENS
   ------------------------------------------------------------ */
:root {
  /* Brand palette */
  --ink:       #121619;  /* deep reflective stage */
  --plum:      #1D3557;  /* primary accent / titles on light */
  --magenta:   #72BDC2;  /* CTAs & active states */
  --rose:      #A8DADC;  /* hairlines, glows, hovers */
  --gold:      #55A0A6;  /* elite badge & Wise-Pause accents (steel-teal metal) */
  --alabaster: #FBFDFD;  /* cool light neutral */

  /* Derived surfaces */
  --ink-soft:      #1A2127;                       /* elevated dark card */
  --plum-deep:     #162943;                       /* ascension stage */
  --tint:          #EFF6F7;                       /* aqua-washed light */
  --rose-hairline: rgba(168, 218, 220, 0.15);     /* razor-thin borders */
  --gold-hairline: rgba(85, 160, 166, 0.35);

  /* Text colors */
  --text-dark:     #1B2733;                       /* body on light */
  --text-light:    #E9F3F4;                       /* body on dark */
  --text-muted-l:  rgba(27, 39, 51, 0.62);
  --text-muted-d:  rgba(233, 243, 244, 0.62);

  /* Typography */
  --font-display: 'Alexandria', sans-serif;       /* Arabic editorial display — engineered luxury */
  --font-body:    'Almarai', sans-serif;          /* Arabic body / UI */
  --font-latin:   'Cormorant Garamond', serif;    /* Latin luxury accents */

  /* Fluid type scale */
  --fs-h1:   clamp(2rem, 3.4vw + 0.9rem, 3.4rem);
  --fs-h2:   clamp(2rem, 3vw + 0.8rem, 3.2rem);
  --fs-h3:   clamp(1.4rem, 1.6vw + 0.7rem, 2rem);
  --fs-body: clamp(1rem, 0.3vw + 0.9rem, 1.125rem);

  /* Spatial system — the Luxury "Air" rule */
  --section-pad: clamp(6rem, 12vw, 10rem);
  --container-w: 1300px;
  --container-pad: clamp(1.25rem, 4vw, 2.5rem);
  --gap-column: 4rem;

  /* Elevation system — layered shadows (tight contact layer + widening
     ambient layers, blur doubling per step, low opacity per layer),
     tinted plum to match the environment instead of muddy black. */
  --shadow-rest:                                  /* resting cards on light */
    0 1px 2px rgba(15, 28, 46, 0.05),
    0 2px 4px rgba(15, 28, 46, 0.05),
    0 6px 12px rgba(15, 28, 46, 0.06),
    0 16px 32px rgba(15, 28, 46, 0.07);
  --shadow-raised:                                /* hover / lifted state */
    0 2px 3px rgba(15, 28, 46, 0.06),
    0 5px 8px rgba(15, 28, 46, 0.07),
    0 12px 20px rgba(15, 28, 46, 0.08),
    0 28px 48px rgba(15, 28, 46, 0.11);
  --shadow-deep:                                  /* plates on dark stages */
    0 2px 4px rgba(13, 16, 19, 0.28),
    0 8px 16px rgba(13, 16, 19, 0.3),
    0 26px 52px rgba(13, 16, 19, 0.42);
  --border-gold: 1px solid rgba(85, 160, 166, 0.45); /* gold-lined boxes */

  /* Motion */
  --ease-lux: cubic-bezier(0.25, 1, 0.5, 1);
  --tr-lux: all 0.5s var(--ease-lux);

  /* Header */
  --header-h: 5.25rem;
}

/* ------------------------------------------------------------
   2. RESET & BASE
   ------------------------------------------------------------ */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  /* Root-level clip: kills any horizontal scroll from decorative
     bleed (auroras, watermarks) without creating a scroll container,
     so position: sticky keeps working further down the page. */
  overflow-x: hidden;
  overflow-x: clip;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.8;
  color: var(--text-dark);
  background-color: var(--alabaster);
  /* `clip` (not `hidden`) — hidden would create a scroll container and
     silently disable the position: sticky pin inside Human Architecture™ */
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration: none; transition: var(--tr-lux); }

ul, ol { list-style: none; }

button {
  font-family: inherit;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
}

input {
  font-family: inherit;
  font-size: 1rem;
  color: inherit;
}

/* Accessible hidden text */
.visually-hidden {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Dormant features: coded, shipped, invisible (Feature Toggling rule) */
.feature-dormant { display: none !important; }

/* Lifecycle state switch — see <body data-site-state> */
body[data-site-state="B"] [data-state-only="A"] { display: none !important; }
body[data-site-state="A"] [data-state-only="B"] { display: none !important; }

/* ------------------------------------------------------------
   3. BESPOKE SCROLLBAR — ink track, plum indicator, gold on hover
   ------------------------------------------------------------ */
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--plum), #2A4A78);
  border-radius: 99px;
  border: 2px solid var(--ink);
}
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* Firefox */
html { scrollbar-width: thin; scrollbar-color: var(--plum) var(--ink); }

::selection { background: var(--plum); color: var(--alabaster); }

/* ------------------------------------------------------------
   4. LAYOUT PRIMITIVES
   ------------------------------------------------------------ */
.container {
  inline-size: 100%;
  max-inline-size: var(--container-w);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* Section surface rhythm — no two adjacent fields feel identical */
.section-light { background-color: var(--alabaster); color: var(--text-dark); }
.section-tint  { background-color: var(--tint); color: var(--text-dark); }
.section-dark  { background-color: var(--ink); color: var(--text-light); }
.section-plum  {
  background: linear-gradient(160deg, var(--plum-deep) 0%, var(--ink) 100%);
  color: var(--text-light);
}

/* ------------------------------------------------------------
   5. TYPOGRAPHY
   ------------------------------------------------------------ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.45; /* Alexandria carries taller ascenders than a Naskh serif */
  overflow-wrap: break-word; /* headings must never clip */
}

/* ------------------------------------------------------------
   Metallic gold — gradient-clipped text with a slow living sheen,
   reserved for brand phrases and signature figures.
   ------------------------------------------------------------ */
.gold-text {
  background: linear-gradient(
    172deg,
    #CDEAEC 0%,
    #8FCDD1 26%,
    #55A0A6 52%,
    #3D7E84 72%,
    #83C4C9 100%
  );
  background-size: 100% 220%;
  -webkit-background-clip: text;
  background-clip: text;
  color: var(--gold); /* graceful fallback if clipping is unsupported */
  -webkit-text-fill-color: transparent;
  animation: gold-sheen 9s ease-in-out infinite alternate;
}
@keyframes gold-sheen {
  from { background-position: 50% 0%; }
  to   { background-position: 50% 100%; }
}

/* ------------------------------------------------------------
   UNIFIED SECTION TITLE — one ceremonial format across the site:
   calligraphic letterforms, metallic gold gradient, centered,
   signed underneath by twin fading hairlines meeting a diamond.
   ------------------------------------------------------------ */
.section-title {
  --grad-title: linear-gradient(
    172deg,
    #CDEAEC 0%,
    #8FCDD1 30%,
    #55A0A6 56%,
    #3D7E84 76%,
    #83C4C9 100%
  );
  position: relative;
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  line-height: 1.55;
  text-align: center;
  margin-block-end: clamp(1.8rem, 3vw, 2.6rem);
  padding-block-end: 1.6rem;
  background-image: var(--grad-title);
  -webkit-background-clip: text;
  background-clip: text;
  color: var(--gold); /* fallback if clipping is unsupported */
  -webkit-text-fill-color: transparent;
}
/* Twin hairlines fading outward, leaving a stage for the diamond.
   Centered with inset-inline: 0 + margin auto — direction-proof,
   unlike the 50% + translateX idiom that drifts in RTL. */
.section-title::after {
  content: "";
  position: absolute;
  inset-block-end: 0.35rem;
  inset-inline: 0;
  margin-inline: auto;
  inline-size: min(19rem, 80%);
  block-size: 1px;
  background-image:
    linear-gradient(to right, transparent, var(--gold)),
    linear-gradient(to left, transparent, var(--gold));
  background-size: 43% 1px, 43% 1px;
  background-position: left center, right center;
  background-repeat: no-repeat;
}
/* The diamond seal */
.section-title::before {
  content: "";
  position: absolute;
  inset-block-end: 0.16rem;
  inset-inline: 0;
  margin-inline: auto;
  inline-size: 0.42rem;
  block-size: 0.42rem;
  transform: rotate(45deg);
  background: var(--gold);
}

/* NOTE: .title-plum / .title-light remain in markup as tone hooks,
   but the unified metallic gradient above supersedes their color. */

[lang="en"] { font-family: var(--font-latin); }

/* ------------------------------------------------------------
   ENGLISH BUILD — the Latin luxury pairing.
   The English page (html[lang="en"]) derives from the Arabic
   baseline: identical tokens, remapped to Cormorant Garamond
   (editorial serif display) + Jost (geometric luxury body).
   Inline Arabic brand phrases (رواد التناغم · انطلِق بتناغم)
   keep their Alexandria letterforms.
   ------------------------------------------------------------ */
html[lang="en"] {
  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'Jost', sans-serif;
  /* Cormorant carries a smaller x-height than Alexandria — the
     display scale breathes up a notch to hold the same presence */
  --fs-h1: clamp(2.4rem, 3.9vw + 1rem, 4rem);
  --fs-h2: clamp(2.2rem, 3.3vw + 0.9rem, 3.7rem);
}
/* Latin display leading: the tall Arabic ascender allowance reads
   loose on a serif — tighten to editorial proportions */
html[lang="en"] h1,
html[lang="en"] h2,
html[lang="en"] h3,
html[lang="en"] h4 { line-height: 1.22; }
html[lang="en"] .btn { letter-spacing: 0.04em; } /* Latin CTAs may track */
html[lang="en"] [lang="ar"] { font-family: 'Alexandria', sans-serif; }
/* Arabic script must NEVER be tracked — joining breaks. Covers the
   untranslatable brand CTAs (انطلِق بتناغم · رواد التناغم) on the EN page. */
html[lang="en"] .btn[lang="ar"],
html[lang="en"] .btn [lang="ar"] { letter-spacing: normal; }

/* ------------------------------------------------------------
   6. BUTTONS — every state glides (0.5s luxury easing)
   ------------------------------------------------------------ */
.btn {
  --btn-bg: transparent;
  --btn-fg: inherit;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
  padding: 1rem 2.1rem;
  border-radius: 0.95rem; /* engineered plate — one radius across every button */
  background-color: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid transparent;
  transition: var(--tr-lux);
  overflow: hidden;
  isolation: isolate;
  text-align: center; /* long CTAs wrap elegantly on narrow viewports */
}

/* 45° light sweep on hover — shared premium sheen */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.18) 50%, transparent 70%);
  transform: translateX(110%);
  transition: transform 0.7s var(--ease-lux);
  z-index: -1;
}
[dir="rtl"] .btn::before { transform: translateX(-110%); }
.btn:hover::before { transform: translateX(0); }

.btn-primary {
  --btn-bg: var(--magenta);
  /* Aqua CTA surface is light — dark ink text keeps AAA-grade legibility */
  --btn-fg: var(--ink);
  box-shadow: 0 8px 28px rgba(114, 189, 194, 0.28);
}
.btn-primary:hover {
  background-color: #61A7AC;
  box-shadow: 0 10px 34px rgba(114, 189, 194, 0.4);
  transform: translateY(-2px);
}

.btn-gold {
  --btn-bg: var(--gold);
  --btn-fg: var(--ink);
  box-shadow: 0 8px 28px rgba(85, 160, 166, 0.3);
}
.btn-gold:hover {
  background-color: #6BB3B8;
  transform: translateY(-2px);
}

.btn-ghost-light {
  --btn-fg: var(--alabaster);
  border-color: rgba(251, 253, 253, 0.28);
}
.btn-ghost-light:hover { border-color: var(--rose); color: var(--rose); }

.btn-outline-gold {
  --btn-fg: var(--gold);
  border-color: var(--gold-hairline);
}
.btn-outline-gold:hover {
  border-color: var(--gold);
  background-color: rgba(85, 160, 166, 0.08);
}

.btn-outline-plum {
  --btn-fg: var(--plum);
  border-color: rgba(29, 53, 87, 0.3);
}
.btn-outline-plum:hover {
  background-color: var(--plum);
  color: var(--alabaster);
  border-color: var(--plum);
}

.btn-sm { padding: 0.7rem 1.5rem; font-size: 0.85rem; }
.btn-lg { padding: 1.15rem 2.6rem; font-size: 1.05rem; }
.btn-xl { padding: 1.3rem 3.4rem; font-size: 1.15rem; }
.btn-block { inline-size: 100%; }

.btn .ic { inline-size: 1.05em; block-size: 1.05em; }

/* Video play affordance */
.btn-play .play-disc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 2.1rem;
  block-size: 2.1rem;
  /* The disc is taller than the text line-box; negative block margins
     let it sit inside the padding zone instead of inflating the button
     height beyond its text-only siblings. */
  margin-block: calc((1em - 2.1rem) / 2);
  border-radius: 50%;
  border: 1px solid rgba(251, 253, 253, 0.35);
  transition: var(--tr-lux);
}
.btn-play .play-disc svg { inline-size: 0.85rem; block-size: 0.85rem; }
.btn-play:hover .play-disc {
  border-color: var(--rose);
  background-color: rgba(168, 218, 220, 0.12);
}

/* ------------------------------------------------------------
   7. ELITE BADGE — «السعر قيد التحديد / pricing TBC»
   ------------------------------------------------------------ */
.badge-tbc {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: normal; /* Arabic badge text — never tracked */
  color: var(--gold);
  border: 1px solid var(--gold-hairline);
  background: rgba(85, 160, 166, 0.07);
  padding: 0.4rem 0.95rem;
  border-radius: 99px;
  white-space: nowrap;
}
.badge-tbc::before {
  content: "";
  inline-size: 5px;
  block-size: 5px;
  border-radius: 50%;
  background: var(--gold);
}
.badge-sm { font-size: 0.72rem; padding: 0.3rem 0.75rem; }

/* Shared inline icon sizing */
.ic { inline-size: 1.4rem; block-size: 1.4rem; flex: none; }
.ic-gold { color: var(--gold); }

/* ------------------------------------------------------------
   GOLD FRAME — reusable luxury plate for imagery and boxes.
   Wrap content in .frame-inner for the inset, clipped canvas.
   ------------------------------------------------------------ */
.gold-frame {
  position: relative;
  padding: clamp(0.7rem, 1.4vw, 1rem);
  border: 1px solid rgba(85, 160, 166, 0.55);
  border-radius: 2rem;
  box-shadow:
    0 0 0 1px rgba(85, 160, 166, 0.08),
    var(--shadow-deep),
    inset 0 0 34px rgba(85, 160, 166, 0.06);
}
.frame-inner {
  position: relative;
  border-radius: 1.3rem;
  overflow: hidden;
}
.frame-inner img {
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
}

/* ------------------------------------------------------------
   FILM GRAIN — analogue texture overlay for dark stages.
   Host section must be position: relative.
   ------------------------------------------------------------ */
.grain-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.055;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ------------------------------------------------------------
   LENIS — weighted smooth scroll (vendor-recommended base rules).
   Lenis animates NATIVE window scroll, so position: sticky keeps
   working (critical for the Human Architecture™ pin).
   ------------------------------------------------------------ */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* ------------------------------------------------------------
   MASKED TYPOGRAPHY REVEALS — words rise out of an invisible
   clipping edge (the crisp premium reveal). Arabic-safe: the
   split is per WORD (never per character — joining would break),
   and the mask carries block padding (cancelled by negative
   margins) so tall ascenders and diacritics never clip at rest.
   ------------------------------------------------------------ */
.w-mask {
  display: inline-block;
  overflow: hidden;
  padding: 0.18em 0.1em;
  margin: -0.18em -0.1em;
}
/* NOTE: no will-change on split words or title lines. A persistently
   composited background-clip:text layer goes BLANK in Chromium after
   scroll direction changes (the text only repaints on selection).
   GSAP clears its inline transform on reveal completion for the same
   reason: settled text must paint as a normal in-flow layer. */
.split-word { display: inline-block; }

/* Section-title ceremony: the whole title line rises inside one mask.
   The metallic gradient moves onto the inner line — a transformed child
   is painted on its own layer, escaping the parent's background-clip. */
.section-title .title-mask {
  display: block;
  overflow: hidden;
  padding-block: 0.18em;
  margin-block: -0.18em;
}
/* Once split (.title-prep), the PARENT surrenders its clipped background:
   exactly ONE background-clip:text element may paint the glyphs (the
   .title-line below). Nested parent+child clip layers trip Chromium's
   raster cache — the title blanks after scroll until a forced repaint
   (the "reappears on text selection" bug). */
.section-title.title-prep { background-image: none; }
.section-title .title-line {
  display: block;
  background-image: var(--grad-title);
  -webkit-background-clip: text;
  background-clip: text;
  color: var(--gold);
  -webkit-text-fill-color: transparent;
}
/* Ornament choreography — hairlines draw outward, the diamond seals.
   .title-prep is added by JS only, so no-JS visitors keep the static
   ornament; .is-revealed fires when the title enters the viewport. */
.section-title.title-prep::after {
  transform: scaleX(0);
  transition: transform 1.1s var(--ease-lux) 0.45s;
}
.section-title.title-prep::before {
  opacity: 0;
  transform: rotate(45deg) scale(0);
  transition: transform 0.7s var(--ease-lux) 0.95s, opacity 0.7s var(--ease-lux) 0.95s;
}
.section-title.is-revealed::after { transform: scaleX(1); }
.section-title.is-revealed::before { opacity: 1; transform: rotate(45deg) scale(1); }

/* ------------------------------------------------------------
   EDITORIAL IMAGE DRIFT — the photograph is oversized inside its
   clipped frame (CSS `scale`, which composes with the GSAP
   translate scrub) and glides slowly as the visitor scrolls.
   Gated behind .js-anim so reduced-motion users see the plain crop.
   ------------------------------------------------------------ */
.js-anim [data-drift] {
  --zoom: 1.12;
  scale: var(--zoom);
  transition: scale 0.8s var(--ease-lux);
  will-change: transform;
}

/* ------------------------------------------------------------
   CARD GLARE — a soft gold light that follows the pointer across
   tilted cards (element injected by interactions.js).
   ------------------------------------------------------------ */
.card-glare {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  border-radius: inherit;
  opacity: 0;
  background: radial-gradient(
    20rem circle at var(--gx, 50%) var(--gy, 50%),
    rgba(205, 234, 236, 0.16),
    transparent 62%
  );
  transition: opacity 0.5s var(--ease-lux);
}
.card-glare.is-on { opacity: 1; }

/* ------------------------------------------------------------
   THE WISE LIGHT — a faint warm glow trailing the pointer across
   dark sections: the wise voice as light in the darkness.
   Pure overlay (screen blend) — section backgrounds are untouched.
   ------------------------------------------------------------ */
.wise-light {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    26rem circle at var(--wx, 50%) var(--wy, 50%),
    rgba(143, 205, 209, 0.09),
    rgba(168, 218, 220, 0.05) 40%,
    transparent 65%
  );
  mix-blend-mode: screen;
  transition: opacity 0.9s var(--ease-lux);
  will-change: opacity;
}
.wise-light.is-on { opacity: 1; }

/* ------------------------------------------------------------
   8. HEADER — fixed glass bar
   ------------------------------------------------------------ */
.site-header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 100;
  background: rgba(18, 22, 25, 0.03);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-block-end: 1px solid rgba(255, 255, 255, 0.05);
  transition: background-color 0.5s var(--ease-lux), box-shadow 0.5s var(--ease-lux);
}
.site-header.is-scrolled {
  background: rgba(18, 22, 25, 0.72);
  /* A whisper, not a band: negative spread keeps the falloff tight
     under a full-width bar where layered depth reads as a smear */
  box-shadow: 0 10px 28px -16px rgba(13, 16, 19, 0.5);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  block-size: var(--header-h);
}

/* Brand lockup */
.brand { display: flex; align-items: center; gap: 0.8rem; }
.brand-mark {
  inline-size: 2.9rem;
  block-size: 2.9rem;
  object-fit: contain;
  /* White line-art tinted to steel-teal — no duplicate asset needed */
  filter: sepia(1) saturate(1.8) hue-rotate(145deg) brightness(1);
}
.brand-words { display: flex; flex-direction: column; line-height: 1.3; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--alabaster);
}
.brand-tag {
  font-size: 0.68rem;
  font-weight: 300;
  letter-spacing: normal; /* Arabic — never tracked */
  color: var(--text-muted-d);
}

/* Desktop nav */
.primary-nav { display: none; }
.nav-list { display: flex; align-items: center; gap: clamp(1.2rem, 2vw, 2.2rem); }
.nav-link {
  position: relative;
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--text-light);
  padding-block: 0.4rem;
}
.nav-link::after {
  content: "";
  position: absolute;
  inset-block-end: 0;
  inset-inline-start: 0;
  inline-size: 0;
  block-size: 1px;
  background: var(--rose);
  transition: inline-size 0.5s var(--ease-lux);
}
.nav-link:hover { color: var(--rose); }
.nav-link:hover::after { inline-size: 100%; }

.header-actions { display: flex; align-items: center; gap: 1rem; }
.header-cta { display: none; }

.lang-toggle {
  font-family: var(--font-latin);
  font-size: 0.9rem;
  color: var(--text-muted-d);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 99px;
  padding: 0.35rem 0.8rem;
  transition: var(--tr-lux);
}
.lang-toggle:hover { color: var(--gold); border-color: var(--gold-hairline); }

/* Burger — two bars morph to an X */
.nav-burger {
  position: relative;
  inline-size: 2.6rem;
  block-size: 2.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  z-index: 110;
}
.burger-bar {
  display: block;
  inline-size: 1.5rem;
  block-size: 2px;
  border-radius: 2px;
  background: var(--alabaster);
  transition: transform 0.5s var(--ease-lux), opacity 0.5s var(--ease-lux);
}
.nav-burger.is-open .burger-bar:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.nav-burger.is-open .burger-bar:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }

/* Mobile overlay menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  /* Below the header (100) so the burger stays reachable to close */
  z-index: 99;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3rem;
  padding: calc(var(--header-h) + 2rem) var(--container-pad) 3rem;
  background: rgba(18, 22, 25, 0.92);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease-lux), visibility 0.5s var(--ease-lux);
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }

.mobile-nav-list { display: flex; flex-direction: column; gap: 1.4rem; text-align: center; }
.mobile-nav-list a {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-weight: 700;
  color: var(--alabaster);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease-lux), transform 0.6s var(--ease-lux), color 0.5s var(--ease-lux);
}
.mobile-menu.is-open .mobile-nav-list a { opacity: 1; transform: translateY(0); }
/* Staggered entrance */
.mobile-menu.is-open .mobile-nav-list li:nth-child(1) a { transition-delay: 0.08s; }
.mobile-menu.is-open .mobile-nav-list li:nth-child(2) a { transition-delay: 0.14s; }
.mobile-menu.is-open .mobile-nav-list li:nth-child(3) a { transition-delay: 0.2s; }
.mobile-menu.is-open .mobile-nav-list li:nth-child(4) a { transition-delay: 0.26s; }
.mobile-menu.is-open .mobile-nav-list li:nth-child(5) a { transition-delay: 0.32s; }
.mobile-menu.is-open .mobile-nav-list li:nth-child(6) a { transition-delay: 0.38s; }
.mobile-nav-list a:hover { color: var(--rose); }

.mobile-menu-ctas {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

/* Desktop breakpoint: reveal inline nav, retire burger */
@media (min-width: 1024px) {
  .primary-nav { display: block; }
  .header-cta { display: inline-flex; }
  .nav-burger, .mobile-menu { display: none; }
}

/* ------------------------------------------------------------
   9. FOOTER
   ------------------------------------------------------------ */
.site-footer {
  background-color: var(--ink);
  color: var(--text-light);
  padding-block-start: clamp(4rem, 8vw, 6rem);
  border-block-start: 1px solid var(--rose-hairline);
}

.footer-grid {
  display: grid;
  gap: 3rem;
  text-align: center;
  padding-block-end: 3rem;
}

.footer-brand { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.footer-logo { inline-size: 4rem; block-size: 4rem; object-fit: contain; opacity: 0.9; }
.footer-name { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; }
.footer-tag { font-size: 0.8rem; font-weight: 300; color: var(--text-muted-d); }

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem 1.8rem;
}
.footer-nav a { font-size: 0.9rem; color: var(--text-muted-d); }
.footer-nav a:hover { color: var(--rose); }

.footer-social { display: flex; justify-content: center; gap: 1.1rem; }
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 2.7rem;
  block-size: 2.7rem;
  border-radius: 50%;
  border: 1px solid var(--rose-hairline);
  color: var(--text-muted-d);
}
.footer-social a:hover {
  color: var(--gold);
  border-color: var(--gold-hairline);
  transform: translateY(-3px);
}
.footer-social svg { inline-size: 1.15rem; block-size: 1.15rem; }

.footer-legal {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.85rem;
  color: var(--text-muted-d);
}
.footer-legal a:hover { color: var(--rose); }
.legal-sep { color: var(--rose-hairline); }

.footer-base {
  border-block-start: 1px solid rgba(255, 255, 255, 0.05);
  padding-block: 1.4rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted-d);
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.2fr 1.6fr 1fr;
    align-items: start;
    text-align: start;
  }
  .footer-brand { align-items: flex-start; }
  .footer-nav ul { justify-content: flex-start; }
  .footer-social { justify-content: flex-start; }
  .footer-legal { grid-column: 1 / -1; justify-content: flex-start; }
}
