/* ═══════════════════════════════════════════════════════════════
   TENVORA — استوديو رقمي فاخر
   Design system: obsidian & burgundy, antique gold accents
   Arabic RTL edition with scrollytelling animations
   ═══════════════════════════════════════════════════════════════ */

/* ── 1. TOKENS ─────────────────────────────────────────────── */
:root {
  /* Primary */
  --obsidian: #0B0909;
  --espresso: #17100E;
  --burgundy: #4B0F1B;
  --wine: #26070F;
  --crimson: #7D1F35;

  /* Metallics */
  --gold: #B08A52;
  --champagne: #D6B982;
  --brass: #8C6B3F;

  /* Text */
  --ivory: #F0E4CF;
  --parchment: #C9BBA5;
  --taupe: #8E8174;

  /* Light section */
  --paper: #D8C8B2;
  --paper-ivory: #EFE2CC;

  /* Semantic */
  --bg: var(--obsidian);
  --bg-alt: var(--espresso);
  --text: var(--parchment);
  --heading: var(--ivory);

  /* Type */
  --font-display: "Amiri", "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Tajawal", "Manrope", system-ui, sans-serif;
  --font-latin: "Manrope", system-ui, sans-serif;

  /* Rhythm */
  --section-pad: clamp(5rem, 10vw, 9rem);
  --container: 78rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);

  /* Motion */
  --ease-lux: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.45, 0, 0.15, 1);
  --t-fast: 220ms;
  --t-med: 340ms;
  --t-reveal: 900ms;

  /* Lines */
  --line: rgba(176, 138, 82, 0.28);
  --line-strong: rgba(176, 138, 82, 0.55);

  /* Radii — soft edges everywhere, zero sharp corners */
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 24px;
  --r-pill: 999px;

  /* Stacked sheets: sections roll over the previous one */
  --overlap: 48px;

  /* WhatsApp */
  --wa: #25D366;
  --wa-deep: #128C7E;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 4.8rem;
  -webkit-text-size-adjust: 100%;
  /* hide the scrollbar — scrolling itself stays fully functional
     (wheel, touch, keyboard, and anchor links all unaffected) */
  scrollbar-width: none;          /* Firefox */
  -ms-overflow-style: none;       /* old Edge/IE */
}
html::-webkit-scrollbar {
  display: none;                  /* Chrome, Safari, Opera */
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.02rem;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* no I-beam / no text selection anywhere */
  cursor: default;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

/* interactive elements keep the pointing hand */
a, button, summary, .faq__item summary, .stack__card { cursor: pointer; }

img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }

button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { padding: 0; }
ul[role="list"], ol[role="list"] { list-style: none; }

::selection { background: rgba(125, 31, 53, 0.55); color: var(--ivory); }

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

.skip-link {
  position: fixed;
  top: -100%;
  inset-inline-start: 1rem;
  z-index: 300;
  padding: 0.7rem 1.2rem;
  background: var(--obsidian);
  border: 1px solid var(--champagne);
  border-radius: var(--r-pill);
  color: var(--ivory);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  transition: top var(--t-fast) ease;
}
.skip-link:focus { top: 1rem; }

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.section { padding-block: var(--section-pad); position: relative; }
.section--tinted { background: linear-gradient(180deg, var(--obsidian) 0%, var(--espresso) 12%, var(--espresso) 88%, var(--obsidian) 100%); }

/* ── Stacked sheets ──
   Every section after the hero is a rounded sheet overlapping the
   previous one. The previous section carries +1 overlap of extra
   bottom padding, so its background (not the page) shows through
   the rounded corners. */
.about, .services, .works, .faq, .process, .why, .cta, .footer {
  border-radius: var(--overlap) var(--overlap) 0 0;
  margin-top: calc(-1 * var(--overlap));
  position: relative;
}
/* later sheets sit above earlier ones */
.about { z-index: 2; }
.services { z-index: 3; }
.works { z-index: 4; }
.process { z-index: 5; }
.faq { z-index: 6; }
.why { z-index: 7; }
.cta { z-index: 8; }
.footer { z-index: 9; }
.about, .services, .works, .faq, .why, .cta {
  padding-bottom: calc(var(--section-pad) + var(--overlap));
}

[dir="rtl"] .hero__eyebrow,
[dir="rtl"] .eyebrow { letter-spacing: 0.14em; }

/* Latin snippets (phone numbers etc.) */
[dir="ltr"], .footer__wa span[dir="ltr"], .cta__phone a[dir="ltr"] {
  font-family: var(--font-latin);
}

/* ── 3. TYPOGRAPHY ─────────────────────────────────────────── */
.h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4.4vw, 3.3rem);
  line-height: 1.35;
  color: var(--heading);
  text-wrap: balance;
  text-shadow: 0 0 1px rgba(240, 228, 207, 0.26);
}
.h2--dark { color: #2A1B12; }

.lede {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--parchment);
  max-width: 36em;
  font-weight: 400;
}

.body-text { color: var(--text); max-width: 38em; font-weight: 300; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gold);
  margin-bottom: 1.3rem;
}
.eyebrow .rule { width: 2.6rem; height: 1px; background: var(--gold); opacity: 0.7; flex: none; }
.eyebrow--dark { color: #7A4A22; }
.eyebrow--dark .rule { background: #7A4A22; }

.section-head { margin-bottom: clamp(3rem, 6vw, 4.5rem); max-width: 44rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--center .lede { margin-inline: auto; }
.section-head--row {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

/* ── 4. BUTTONS & LINKS ────────────────────────────────────── */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 2.2rem;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  border: 1px solid var(--gold);
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--ivory);
  overflow: hidden;
  transition: color var(--t-med) var(--ease-lux), background-color var(--t-med) var(--ease-lux), border-color var(--t-med) var(--ease-lux), transform var(--t-med) var(--ease-lux), box-shadow var(--t-med) var(--ease-lux);
}
.btn:active { transform: translateY(1px) scale(0.98); }
/* Sheen sweep on hover */
.btn::after {
  content: "";
  position: absolute;
  top: -40%;
  bottom: -40%;
  width: 34%;
  inset-inline-start: -45%;
  background: linear-gradient(105deg, transparent, rgba(240, 228, 207, 0.18), transparent);
  transform: skewX(-18deg);
  transition: inset-inline-start 700ms var(--ease-lux);
  pointer-events: none;
}
.btn:hover::after, .btn:focus-visible::after { inset-inline-start: 115%; }
.btn--gold:hover, .btn--gold:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(125, 31, 53, 0.35);
}

.btn--gold:hover, .btn--gold:focus-visible {
  background: linear-gradient(180deg, var(--crimson), var(--burgundy));
  border-color: var(--champagne);
}

.btn--ghost { border-color: rgba(176, 138, 82, 0.45); color: var(--parchment); }
.btn--ghost:hover, .btn--ghost:focus-visible {
  border-color: var(--champagne);
  color: var(--ivory);
  background: rgba(176, 138, 82, 0.08);
}

/* WhatsApp buttons */
.btn--wa { border-color: rgba(37, 211, 102, 0.55); }
.btn--wa .btn__icon { color: var(--wa); transition: color var(--t-med) ease, transform var(--t-med) var(--ease-lux); }
.btn--wa:hover, .btn--wa:focus-visible {
  background: linear-gradient(180deg, rgba(18, 140, 126, 0.32), rgba(18, 140, 126, 0.18));
  border-color: var(--wa);
  color: #EAFFF3;
}
.btn--wa:hover .btn__icon { color: #4BE07F; transform: scale(1.08); }

.btn--small { padding: 0.6rem 1.4rem; font-size: 0.8rem; }
.btn--small::after { display: none; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--champagne);
  position: relative;
  transition: color var(--t-fast) ease;
}
.text-link::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -6px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--t-med) var(--ease-lux);
}
.text-link:hover::after, .text-link:focus-visible::after { transform: scaleX(1); }
.text-link svg { transition: transform var(--t-med) var(--ease-lux); }
.text-link:hover svg { transform: translateX(-4px); }

/* ── 4b. SCROLL PROGRESS BAR ───────────────────────────────── */
.scroll-progress {
  position: fixed;
  top: 0; right: 0; left: 0;
  height: 2px;
  z-index: 150;
  background: transparent;
  pointer-events: none;
}
.scroll-progress {
  border-end-end-radius: 3px;
  border-end-start-radius: 3px;
}
.scroll-progress__fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--champagne), var(--crimson));
  border-end-end-radius: 3px;
  border-end-start-radius: 3px;
  transform: scaleX(0);
  transform-origin: right;
  will-change: transform;
}

/* ── 5. PRELOADER ──────────────────────────────────────────── */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--obsidian);
  display: grid;
  place-items: center;
  transition: opacity 700ms var(--ease-lux), visibility 0s 700ms;
}
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader__inner { display: grid; justify-items: center; gap: 1.1rem; }
.preloader__logo {
  width: 118px; height: auto;
  animation: emblem-pulse 1.8s var(--ease-lux) infinite;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.5));
}
.preloader__word {
  font-family: var(--font-latin);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  color: var(--ivory);
}
.preloader__line { width: 120px; height: 1px; background: rgba(176, 138, 82, 0.2); overflow: hidden; }
.preloader__line-fill {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  animation: load-line 1.4s var(--ease-lux) forwards;
}
@keyframes load-line { to { transform: scaleX(1); } }
@keyframes emblem-pulse {
  0%, 100% { opacity: 0.65; }
  50% { opacity: 1; }
}

/* ── 6. NAVIGATION ─────────────────────────────────────────── */
@keyframes nav-drop {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background-color var(--t-med) ease, border-color var(--t-med) ease;
}
.js .nav { transform: translateY(-100%); }
.js.is-loaded .nav { animation: nav-drop 800ms var(--ease-lux) 150ms both; }
.nav.is-scrolled {
  background: rgba(11, 9, 9, 0.95);
  border-bottom-color: rgba(176, 138, 82, 0.16);
}
.nav__inner {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 4.6rem;
}
.nav__brand { display: flex; align-items: center; gap: 0.7rem; }
.nav__logo { width: 44px; height: auto; transition: filter var(--t-med) ease; }
.nav__wordmark {
  font-family: var(--font-latin);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--ivory);
}
.nav__links {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.6rem;
  margin-inline-start: auto;
}
.nav__links a {
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--parchment);
  padding-block: 0.4rem;
  white-space: nowrap;
  transition: color var(--t-fast) ease;
}
.nav__links a:hover, .nav__links a.is-active { color: var(--ivory); }
.nav__indicator {
  position: absolute;
  bottom: -2px;
  inset-inline-start: 0;
  width: 22px;
  height: 1px;
  background: var(--gold);
  opacity: 0;
  transition: transform var(--t-med) var(--ease-lux), opacity var(--t-med) ease, width var(--t-med) var(--ease-lux);
}
.nav__indicator.is-visible { opacity: 1; }
.nav__cta { margin-inline-start: 0.4rem; }
.nav__toggle {
  display: none;
  margin-inline-start: auto;
  width: 44px;
  height: 44px;
  position: relative;
  z-index: 130;
}
.nav__toggle span {
  position: absolute;
  inset-inline: 10px;
  height: 1.5px;
  background: var(--ivory);
  transition: transform var(--t-med) var(--ease-lux), top var(--t-med) var(--ease-lux);
}
.nav__toggle span:nth-child(1) { top: 18px; }
.nav__toggle span:nth-child(2) { top: 26px; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { top: 22px; transform: rotate(-45deg); }

/* Mobile menu */
.mmenu {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(11, 9, 9, 0.6);
  opacity: 0;
  transition: opacity var(--t-med) ease;
}
.mmenu.is-open { opacity: 1; }
.mmenu__panel {
  position: absolute;
  top: 0; bottom: 0;
  inset-inline-end: 0;
  width: min(21rem, 88vw);
  background: linear-gradient(180deg, var(--espresso), var(--wine));
  border-inline-start: 1px solid rgba(176, 138, 82, 0.3);
  border-start-start-radius: 28px;
  border-end-start-radius: 28px;
  padding: 6.2rem 2.4rem 2.6rem;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 520ms var(--ease-lux);
}
[dir="rtl"] .mmenu__panel { transform: translateX(-100%); }
.mmenu.is-open .mmenu__panel { transform: translateX(0); }
.mmenu__links { display: grid; gap: 0.3rem; }
.mmenu__links a {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--ivory);
  padding-block: 0.55rem;
  border-bottom: 1px solid rgba(176, 138, 82, 0.14);
  opacity: 0;
  translate: 30px 0;
}
.mmenu.is-open .mmenu__links a {
  opacity: 1;
  translate: 0 0;
  transition: opacity 500ms var(--ease-lux), translate 500ms var(--ease-lux);
  transition-delay: calc(150ms + var(--i, 0) * 60ms);
}
.mmenu__cta { margin-top: auto; }

body.menu-open { overflow: hidden; }

/* Hero figure: gentle idle float */
@keyframes figure-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -12px; }
}
.is-loaded .hero__outfit { animation: figure-float 7s ease-in-out 2.2s infinite; }
.hero__outfit { transition: filter 600ms ease; }

/* ── 7. HERO ───────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-bottom: var(--overlap); /* room for the next sheet's curve */
}
.hero__parallax { position: absolute; inset: 0; overflow: hidden; }
.hero__bg, .hero__bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 118%;
  object-fit: cover;
  object-position: center 30%;
  will-change: transform;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(270deg, rgba(11, 9, 9, 0.94) 0%, rgba(11, 9, 9, 0.78) 34%, rgba(11, 9, 9, 0.28) 62%, rgba(11, 9, 9, 0.15) 100%),
    linear-gradient(0deg, var(--obsidian) 0%, rgba(11, 9, 9, 0) 26%),
    linear-gradient(180deg, rgba(11, 9, 9, 0.55) 0%, rgba(11, 9, 9, 0) 22%);
}
.hero__vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 50% 40%, rgba(0,0,0,0) 55%, rgba(11,9,9,0.55) 100%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  padding-block: 7.5rem 5rem;
}
.hero__content { max-width: 42rem; }
.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--champagne);
  margin-bottom: 1.6rem;
}
.hero__eyebrow .rule { width: 2.8rem; height: 1px; background: var(--gold); }
.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.7rem, 5.6vw, 4.3rem);
  line-height: 1.3;
  color: var(--ivory);
  /* Amiri's hairlines need slight reinforcement on dark bg */
  text-shadow: 0 0 1px rgba(240, 228, 207, 0.32);
}
.hero__title .reveal-mask { overflow: visible; }
.hero__title .reveal-mask > .reveal { white-space: normal; }
.hero__title span { display: block; }
.hero__title-accent {
  background: linear-gradient(100deg, var(--champagne) 10%, #E9D5A8 45%, var(--gold) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-inline-end: 0.08em;
}
.hero__lede {
  margin-top: 1.7rem;
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  color: var(--parchment);
  max-width: 32em;
}
.hero__actions {
  margin-top: 2.6rem;
  display: flex;
  gap: 1.1rem;
  flex-wrap: wrap;
}
.hero__support {
  margin-top: 2rem;
  font-size: 0.86rem;
  letter-spacing: 0.05em;
  color: var(--taupe);
}
.hero__figure {
  position: relative;
  justify-self: start;
  margin: 0;
  max-height: 82svh;
}
.hero__outfit {
  width: auto;
  max-width: 100%;
  max-height: 82svh;
  object-fit: contain;
  filter: drop-shadow(0 34px 44px rgba(0, 0, 0, 0.55));
  will-change: transform;
}
.hero__figure-frame {
  position: absolute;
  inset: 6% -7% 4% -7%;
  border: 1px solid rgba(176, 138, 82, 0.22);
  border-radius: 36px;
  pointer-events: none;
}
.hero__figure-frame::before, .hero__figure-frame::after {
  content: "";
  position: absolute;
  width: 9px; height: 9px;
  border-color: var(--gold);
  border-style: solid;
}
.hero__figure-frame::before { top: -4px; inset-inline-start: -4px; border-width: 1px 0 0 1px; border-start-start-radius: 8px; }
[dir="rtl"] .hero__figure-frame::before { border-width: 1px 1px 0 0; }
.hero__figure-frame::after { bottom: -4px; inset-inline-end: -4px; border-width: 0 1px 1px 0; border-end-end-radius: 8px; }
[dir="rtl"] .hero__figure-frame::after { border-width: 0 0 1px 1px; }

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: calc(2.6rem + var(--overlap));
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 0.7rem;
  z-index: 2;
}
.hero__scroll-label {
  font-size: 0.8rem;
  color: var(--taupe);
}
.hero__scroll-line {
  width: 1px;
  height: 3rem;
  background: linear-gradient(180deg, var(--gold), transparent);
  animation: scroll-hint 2.4s var(--ease-lux) infinite;
}
@keyframes scroll-hint {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ── 8. ORNAMENT DIVIDER ───────────────────────────────────── */
.ornament-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  padding-block: 0.2rem calc(0.2rem + var(--overlap)); /* stay clear of the next sheet */
  margin-bottom: calc(-1 * var(--overlap)); /* keep the flow gap exact */
  color: var(--gold);
}
.ornament-divider__line {
  width: min(30vw, 220px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong));
  transform: scaleX(0);
  transition: transform 1200ms var(--ease-lux) 200ms;
}
.ornament-divider__line:last-child {
  background: linear-gradient(90deg, var(--line-strong), transparent);
  transform-origin: left;
}
.ornament-divider__line:first-child { transform-origin: right; }
.ornament-divider__dia {
  opacity: 0;
  transform: rotate(-180deg) scale(0.4);
  transition: transform 900ms var(--ease-lux) 500ms, opacity 600ms ease 500ms;
}
.is-visible .ornament-divider__line, .ornament-divider.is-visible .ornament-divider__line { transform: scaleX(1); }
.is-visible .ornament-divider__dia, .ornament-divider.is-visible .ornament-divider__dia { opacity: 1; transform: rotate(0) scale(1); }

/* Eyebrow rule draws itself in */
.js .eyebrow .rule, .js .hero__eyebrow .rule {
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 900ms var(--ease-lux) 250ms;
}
.js .is-visible .eyebrow .rule, .js .reveal.is-visible .rule { transform: scaleX(1); }

/* ── 9. ABOUT ──────────────────────────────────────────────── */
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2.6rem, 6vw, 5.5rem);
  align-items: center;
}
.about__media {
  position: relative;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 0.85rem;
  background: var(--espresso);
  overflow: hidden;
}
.about__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: calc(var(--r-lg) - 8px); }
.about__media::after {
  content: "";
  position: absolute;
  top: -10px;
  inset-inline-start: -10px;
  width: 84px; height: 84px;
  border-top: 1px solid var(--line-strong);
  border-inline-start: 1px solid var(--line-strong);
  border-start-start-radius: 20px;
  pointer-events: none;
}
[dir="rtl"] .about__media::after { border-top: 1px solid var(--line-strong); border-inline-start: none; border-inline-end: 1px solid var(--line-strong); border-start-start-radius: 0; border-start-end-radius: 20px; }
.about__media-caption {
  margin-top: 0.85rem;
  font-size: 0.8rem;
  color: var(--taupe);
}
.about__body .lede { margin-block: 1.4rem 1.1rem; }
.about__point {
  margin-top: 2rem;
  padding-inline-start: 1.4rem;
  border-inline-start: 1px solid var(--line-strong);
}
.about__point-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  color: var(--ivory);
}
.about__point-text {
  margin-top: 0.5rem;
  color: var(--text);
  font-size: 0.97rem;
  max-width: 38em;
}
.about__philosophy {
  margin-top: 2rem;
  padding-inline-start: 1.4rem;
  border-inline-start: 1px solid var(--line-strong);
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  color: var(--ivory);
  line-height: 1.8;
}
.about__philosophy-by {
  display: block;
  margin-top: 0.7rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--taupe);
}
.about__body .text-link { margin-top: 2.2rem; }

/* ── 10. SERVICES ──────────────────────────────────────────── */
.services__list {
  list-style: none;
  margin: 0;
  border-top: 1px solid var(--line);
}
.service {
  display: grid;
  grid-template-columns: 4.6rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.6rem;
  padding: 1.9rem 0.9rem;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: background-color var(--t-med) ease;
}
.service {
  border-radius: var(--r-md);
}
.service::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 12px; bottom: 12px;
  width: 2px;
  border-radius: var(--r-pill);
  background: linear-gradient(180deg, var(--crimson), var(--gold));
  transform: scaleY(0);
  transition: transform var(--t-med) var(--ease-lux);
}
.service:hover { background: rgba(75, 15, 27, 0.16); }
.service:hover::before { transform: scaleY(1); }
.service__num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold);
}
.service__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  color: var(--heading);
  line-height: 1.5;
}
.service__desc { margin-top: 0.35rem; color: var(--text); font-size: 0.95rem; max-width: 44em; }
.service__desc em {
  font-style: normal;
  color: var(--champagne);
  font-size: 0.88rem;
}
.service__tags {
  margin-top: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
}
.service__tags-label { color: var(--taupe); }
.service__tag {
  padding: 0.22rem 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  color: var(--parchment);
  background: rgba(176, 138, 82, 0.08);
}
.service__result {
  margin-top: 0.85rem;
  padding-top: 0.7rem;
  border-top: 1px dashed var(--line);
  font-size: 0.9rem;
  color: var(--champagne);
  max-width: 44em;
}

/* Works closing line */
.works__foot {
  margin-top: clamp(2rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 1.8rem;
}
.works__foot-text {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--ivory);
}
.service__arrow {
  width: 22px; height: 22px;
  color: var(--brass);
  transition: transform var(--t-med) var(--ease-lux), color var(--t-med) ease;
}
.service:hover .service__arrow { transform: translateX(-6px); color: var(--champagne); }
.section-foot {
  margin-top: 2.8rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ── 11. WORKS — CARD STACK ───────────────────────────────── */
/* The three featured projects as a deck: the front card is fully
   detailed, the cards behind peek out as top bars only. Clicking a
   rear card brings it forward (0.75s, soft easing). No color or
   font changes — same tokens. */

.stack {
  --stack-step: 46px;
  --stack-tuck: 18px;
  position: relative;
  max-width: 44rem;
  margin-inline: auto;
  transition: height 750ms var(--ease-lux); /* container glides as roles swap */
}

/* JS layout: all cards share one origin; transforms spread them.
   Without JS, cards fall back to normal flow, fully visible. */
.js .stack__card {
  position: absolute;
  top: 0;
  inset-inline: 0;
}

.stack__card {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--espresso);
  padding: 0.85rem;
  cursor: pointer;
  outline: none;
  transform-origin: top center;
  transition:
    transform 750ms var(--ease-lux),
    opacity 750ms var(--ease-lux),
    box-shadow 750ms var(--ease-lux),
    border-color var(--t-med) ease;
}
.stack__card:focus-visible {
  border-color: var(--champagne);
  box-shadow: 0 0 0 2px rgba(214, 185, 130, 0.35);
}

/* top bar — always visible, carries name + type */
.stack__bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.35rem 0.5rem 0.95rem;
}
.stack__bar-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--heading);
}
.stack__bar-cat {
  font-size: 0.78rem;
  color: var(--gold);
}
.stack__bar-cat [dir="ltr"] { font-family: var(--font-latin); font-size: 0.92em; }

.stack__media {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: calc(var(--r-lg) - 8px);
}
.stack__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  scale: 1;
  transition: transform 900ms var(--ease-lux), scale 1000ms var(--ease-lux);
}
/* idle Ken Burns drift keeps the front image alive */
.stack__card--front .stack__media img { animation: kenburns-drift 20s ease-in-out infinite alternate; }
.stack__card--front:hover .stack__media img { scale: 1.045; }
/* gold light sweep across the front image on hover */
.stack__card--front .stack__media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 32%, rgba(214, 185, 130, 0.14) 46%, rgba(240, 228, 207, 0.3) 50%, rgba(214, 185, 130, 0.14) 54%, transparent 68%);
  transform: translateX(-130%);
  transition: transform 1100ms var(--ease-lux);
}
.stack__card--front:hover .stack__media::before { transform: translateX(130%); }
.stack__media::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 2px;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--gold), var(--champagne));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 600ms var(--ease-lux);
}
.stack__meta { padding: 1.3rem 0.6rem 0.6rem; }
.stack__visit { margin-top: 1.2rem; pointer-events: auto; }

/* ── positions ──
   The front card sits at translateY(0), fully detailed.
   Rear cards are placed by JS: tucked --stack-tuck behind the card
   above, each 5.5% narrower, bars peeking in --stack-step steps.
   Transforms live inline so role swaps animate as one motion. */
.stack__card--front {
  cursor: default;
  box-shadow: 0 26px 54px rgba(0, 0, 0, 0.45);
}

.stack__card[data-pos] {
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  box-shadow: 0 -12px 30px rgba(0, 0, 0, 0.35);
}

/* hide body of rear cards — top bar only */
.stack__card[data-pos] .stack__media,
.stack__card[data-pos] .stack__meta {
  display: none;
}
.stack__card[data-pos] .stack__bar {
  padding-bottom: 1.15rem;
}

/* rear cards: hover/focus hint (border only — transform is JS-owned) */
.stack__card[data-pos]:hover,
.stack__card[data-pos]:focus-visible {
  border-color: var(--line-strong);
}
.stack__card[data-pos]:hover .stack__bar-name,
.stack__card[data-pos]:focus-visible .stack__bar-name {
  color: var(--champagne);
}

/* ── 11b. WORKS (legacy grid — kept for fallback/no-JS) ───── */
.works__note {
  max-width: 28rem;
  font-size: 0.9rem;
  color: var(--taupe);
}
.works__note em { color: var(--parchment); }

.works__grid {
  display: none; /* replaced by the card stack */
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1.4rem, 3vw, 2.4rem);
}
.work {
  position: relative;
  display: block;
  grid-column: span 5;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--espresso);
  padding: 0.85rem;
  overflow: hidden;
  transition: border-color var(--t-med) ease, transform var(--t-med) var(--ease-lux), box-shadow var(--t-med) var(--ease-lux);
}
.work:hover { border-color: var(--line-strong); transform: translateY(-6px); box-shadow: 0 22px 44px rgba(0, 0, 0, 0.4); }
.work--featured { grid-column: span 7; }
.work--tall { margin-top: 3.5rem; }
.work--wide { grid-column: span 7; margin-top: 3.5rem; }

.work__media { position: relative; margin: 0; overflow: hidden; border-radius: calc(var(--r-lg) - 8px); }
.work__media img {
  width: 100%;
  aspect-ratio: 4 / 4.6;
  object-fit: cover;
  transition: transform 900ms var(--ease-lux);
}
.work--featured .work__media img { aspect-ratio: 4 / 3; }
.work--wide .work__media img { aspect-ratio: 16 / 10; }
.work:hover .work__media img { transform: scale(1.045); }
.work__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(38, 7, 15, 0) 55%, rgba(38, 7, 15, 0.55) 100%);
  opacity: 0;
  transition: opacity var(--t-med) ease;
}
.work:hover .work__veil { opacity: 1; }
.work__media::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--champagne));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 600ms var(--ease-lux);
}
.work:hover .work__media::after { transform: scaleX(1); }

.work__meta { padding: 1.4rem 0.6rem 0.8rem; }
.work__cat {
  font-size: 0.8rem;
  color: var(--gold);
}
.work__cat [dir="ltr"] { font-family: var(--font-latin); font-size: 0.92em; letter-spacing: 0.02em; }
.work__name {
  margin-top: 0.55rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  color: var(--heading);
}
.work--featured .work__name { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.work__desc { margin-top: 0.45rem; font-size: 0.92rem; color: var(--text); max-width: 40em; }
.work__cta { margin-top: 1rem; }

/* ── 12. DETAILS ───────────────────────────────────────────── */
.details__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 1.1fr;
  gap: clamp(1.2rem, 2.5vw, 2rem);
  align-items: center;
}
.detail {
  margin: 0;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.detail img { border-radius: inherit; }
.detail img {
  width: 100%;
  aspect-ratio: 4 / 4.6;
  object-fit: cover;
  scale: 1;
  transition: scale 1000ms var(--ease-lux);
}
.detail--tall img { aspect-ratio: 4 / 5.8; }
.detail:hover img { scale: 1.06; }
/* 3D tilt with the pointer (JS drives the vars) */
.js .detail {
  transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 450ms var(--ease-lux), border-color var(--t-med) ease, box-shadow var(--t-med) ease;
}
.detail:hover { border-color: rgba(176, 138, 82, 0.4); box-shadow: 0 22px 44px rgba(0, 0, 0, 0.4); }
/* slow cinematic drift once revealed */
.js .detail.is-visible img { animation: kenburns-drift 16s ease-in-out infinite alternate; }
.detail figcaption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1.1rem 1.2rem;
  font-size: 0.82rem;
  color: var(--ivory);
  background: linear-gradient(180deg, transparent, rgba(11, 9, 9, 0.82));
}
.detail figcaption span { color: var(--gold); }

.details__caption {
  margin-top: clamp(2.6rem, 5vw, 4rem);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.6rem;
  text-align: center;
}
.details__caption-line { width: min(18vw, 130px); height: 1px; background: var(--line-strong); }
.details__caption p {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  color: var(--ivory);
  max-width: 32em;
}

/* ── 13. PROCESS — PINNED SCROLLYTELLING ───────────────────── */
.process {
  position: relative;
  z-index: 6;
  background: transparent; /* the viewport is the visible sheet */
  margin-top: calc(-1 * var(--overlap));
  padding-bottom: 0; /* sticky viewport is 100vh tall — nothing to tuck under */
}
.process .section-head { margin-bottom: clamp(2rem, 4vw, 3rem); }

.process__stage { position: relative; }
.js .process__stage { height: 320vh; }

.process__viewport {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-radius: var(--overlap) var(--overlap) 0 0;
  background:
    radial-gradient(90% 80% at 50% 20%, rgba(75, 15, 27, 0.18), transparent 65%),
    linear-gradient(180deg, var(--obsidian), var(--espresso) 50%, var(--obsidian));
}
.process__viewport::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 4.9rem;
  height: 1px;
  background: var(--line);
}
.process__track {
  position: relative;
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}
.process__timeline {
  list-style: none;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(1.4rem, 3vw, 2.6rem);
  position: relative;
}
.process__timeline::before {
  content: "";
  position: absolute;
  top: 8px;
  inset-inline: 0;
  height: 1px;
  background: var(--line);
  border-radius: var(--r-pill);
}
.process__timeline::after {
  content: "";
  position: absolute;
  top: 7.5px;
  inset-inline-start: 0;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, var(--gold), var(--crimson));
  border-radius: var(--r-pill);
  transform: scaleX(var(--p, 0));
  transform-origin: right;
  will-change: transform;
}
.step { position: relative; padding-top: 2.4rem; }
.step::after {
  content: "";
  position: absolute;
  top: 4px;
  inset-inline-start: 0;
  width: 9px; height: 9px;
  background: var(--obsidian);
  border: 1px solid var(--gold);
  transform: rotate(45deg);
  transition: background-color var(--t-med) ease, box-shadow var(--t-med) ease;
}
.step.is-active::after {
  background: var(--champagne);
  box-shadow: 0 0 0 4px rgba(214, 185, 130, 0.15);
}
.step__num {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--brass);
  display: block;
  transition: color var(--t-med) ease;
}
.step.is-active .step__num { color: var(--gold); }
.step__title {
  margin-top: 0.7rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.3rem, 1.8vw, 1.6rem);
  color: var(--taupe);
  transition: color var(--t-med) ease;
}
.step.is-active .step__title { color: var(--ivory); }
.step__desc {
  margin-top: 0.5rem;
  font-size: 0.92rem;
  color: var(--taupe);
  max-height: 0;
  opacity: 0;
  transform: translateY(10px);
  overflow: hidden;
  transition: max-height 500ms var(--ease-lux), opacity 500ms var(--ease-lux), transform 500ms var(--ease-lux), color var(--t-med) ease;
}
.step.is-active .step__desc {
  max-height: 7em;
  opacity: 1;
  transform: none;
  color: var(--parchment);
}
.process__hint {
  margin-top: 2.6rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--taupe);
  opacity: 0.8;
}

/* ── 14. WHY (parchment light section) ─────────────────────── */
.section--parchment {
  background:
    radial-gradient(90% 60% at 50% 0%, rgba(255, 250, 238, 0.5), transparent 70%),
    var(--paper);
  color: #4A3B2C;
}
.why__grid {
  list-style: none;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.4rem, 3vw, 2.4rem);
}
.why__item {
  background: rgba(239, 226, 204, 0.65);
  border: 1px solid rgba(122, 74, 34, 0.25);
  border-radius: var(--r-lg);
  padding: 2rem 1.8rem;
  transition: transform var(--t-med) var(--ease-lux), box-shadow var(--t-med) ease, border-color var(--t-med) ease;
}
.why__item:hover {
  transform: translateY(-4px);
  border-color: rgba(122, 74, 34, 0.5);
  box-shadow: 0 18px 34px rgba(58, 38, 22, 0.14);
}
.why__orn { color: #7A4A22; display: inline-grid; margin-bottom: 1.1rem; }
.why__item h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: #2A1B12;
}
.why__item p { margin-top: 0.55rem; font-size: 0.95rem; line-height: 1.85; color: #5A4A38; }

/* ── 15b. FAQ — الأسئلة الشائعة ──────────────────────────── */
.faq__list {
  max-width: 52rem;
  margin-inline: auto;
  display: grid;
  gap: 0.9rem;
}
.faq__item {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(23, 16, 14, 0.55);
  overflow: hidden;
  transition: border-color var(--t-med) ease, background-color var(--t-med) ease;
}
.faq__item[open] {
  border-color: rgba(176, 138, 82, 0.4);
  background: rgba(23, 16, 14, 0.8);
}
.faq__item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 1.25rem 1.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--heading);
  transition: color var(--t-fast) ease;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  flex: none;
  width: 1.9rem;
  height: 1.9rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--gold);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.15rem;
  line-height: 1;
  transition: transform var(--t-med) var(--ease-lux), background-color var(--t-med) ease, color var(--t-med) ease;
}
.faq__item[open] summary::after {
  content: "−";
  transform: rotate(180deg);
  background: rgba(176, 138, 82, 0.15);
}
.faq__item summary:hover { color: var(--ivory); }
.faq__item summary:focus-visible {
  outline: none;
  color: var(--ivory);
  box-shadow: inset 0 0 0 2px rgba(214, 185, 130, 0.35);
  border-radius: var(--r-md);
}
.faq__answer {
  padding: 0.2rem 1.5rem 1.4rem;
  color: var(--text);
  font-size: 0.97rem;
  line-height: 1.9;
  max-width: 46em;
}

/* ── 15. CTA ───────────────────────────────────────────────── */
.cta {
  background:
    radial-gradient(85% 120% at 50% 115%, rgba(125, 31, 53, 0.4), transparent 65%),
    linear-gradient(180deg, var(--wine), var(--burgundy));
  text-align: center;
  overflow: hidden;
}
.cta__ornament {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 12% 20%, rgba(214, 185, 130, 0.35) 50%, transparent 51%),
    radial-gradient(1px 1px at 85% 30%, rgba(214, 185, 130, 0.3) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 75% 75%, rgba(214, 185, 130, 0.25) 50%, transparent 51%),
    radial-gradient(1px 1px at 25% 80%, rgba(214, 185, 130, 0.3) 50%, transparent 51%);
  pointer-events: none;
}
.cta__inner { position: relative; max-width: 46rem; }
.cta__inner .eyebrow { justify-content: center; }
.cta__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 3.7rem);
  line-height: 1.35;
  color: var(--ivory);
  text-wrap: balance;
  text-shadow: 0 0 1px rgba(240, 228, 207, 0.3);
}
.cta__lede {
  margin: 1.5rem auto 0;
  color: rgba(240, 228, 207, 0.85);
  max-width: 32em;
}
.cta__actions {
  margin-top: 2.6rem;
  display: flex;
  justify-content: center;
  gap: 1.1rem;
  flex-wrap: wrap;
}
.cta .btn--ghost { color: var(--ivory); border-color: rgba(214, 185, 130, 0.5); }
.cta .btn--ghost:hover { background: rgba(214, 185, 130, 0.12); }
.cta__phone {
  margin-top: 2.4rem;
  display: grid;
  gap: 0.3rem;
  justify-items: center;
}
.cta__phone-label {
  font-size: 0.85rem;
  color: rgba(240, 228, 207, 0.65);
}
.cta__phone a {
  font-size: 1.3rem;
  letter-spacing: 0.06em;
  color: var(--champagne);
  transition: color var(--t-fast) ease;
}
.cta__phone a:hover { color: var(--ivory); }

/* ── 16. WHATSAPP FAB ──────────────────────────────────────── */
.wa-fab {
  position: fixed;
  bottom: 1.6rem;
  inset-inline-start: 1.6rem;
  z-index: 110;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  transition: transform var(--t-med) var(--ease-lux), box-shadow var(--t-med) ease, opacity var(--t-med) ease;
  color: #fff;
  background: linear-gradient(160deg, var(--wa), var(--wa-deep));
  box-shadow: 0 10px 26px rgba(18, 140, 126, 0.45);
  transition: transform var(--t-med) var(--ease-lux), box-shadow var(--t-med) ease, opacity var(--t-med) ease;
  opacity: 0;
  transform: translateY(16px) scale(0.9);
  pointer-events: none;
}
.wa-fab.is-shown { opacity: 1; transform: none; pointer-events: auto; }
.wa-fab:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 16px 34px rgba(18, 140, 126, 0.55); }
.wa-fab__ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(37, 211, 102, 0.5);
  animation: wa-ring 2.6s var(--ease-lux) infinite;
}
@keyframes wa-ring {
  0% { transform: scale(0.9); opacity: 0.9; }
  70%, 100% { transform: scale(1.35); opacity: 0; }
}

/* ── 17. FOOTER ────────────────────────────────────────────── */
.footer {
  background: var(--obsidian);
  padding-top: clamp(3.4rem, 6vw, 5rem);
  /* sheet overlap handled in the shared stacked-sheets rule */
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: 3rem;
}
.footer__brand { display: grid; justify-items: start; gap: 0.9rem; align-content: start; }
.footer__logo { width: 54px; height: auto; }
.footer__wordmark {
  font-family: var(--font-latin);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  color: var(--ivory);
}
.footer__statement { color: var(--taupe); font-size: 0.92rem; max-width: 20em; }
.footer__col { display: grid; gap: 0.7rem; align-content: start; justify-items: start; }
.footer__col h3 {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.footer__col a { color: var(--parchment); font-size: 0.95rem; transition: color var(--t-fast) ease; }
.footer__col a:hover { color: var(--champagne); }
.footer__wa { display: inline-flex; align-items: center; gap: 0.5rem; }
.footer__wa svg { color: var(--wa); }
.footer__legal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px solid rgba(176, 138, 82, 0.14);
  padding-block: 1.4rem;
  font-size: 0.85rem;
  color: var(--taupe);
}
.footer__legal-links { display: flex; gap: 1.4rem; }
.footer__legal-links a:hover { color: var(--champagne); }

/* ═══════════ PRO-ANIMATION LAYER ═══════════ */
/* Word/line split headings — each word rises 25px into place.
   (blur removed for performance — transform+opacity only) */
.js [data-split] .split-line { display: block; }
.js [data-split] .split-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(25px);
  transition:
    opacity 900ms var(--ease-lux),
    transform 900ms var(--ease-lux);
  transition-delay: calc(var(--d, 0) * 60ms + var(--li, 0) * 120ms);
  will-change: opacity, transform;
}
.js [data-split].is-visible .split-word {
  opacity: 1;
  transform: translateY(0);
}

/* Scroll-parallax consumer (hero bg excluded — it has its own drift) */
.js [data-parallax]:not(.hero__parallax) {
  transform: translate3d(0, var(--py, 0px), 0);
  will-change: transform;
}

/* Inner image parallax: the img drifts inside its clipped frame.
   translate is separate from transform so Ken Burns keeps running. */
.js [data-img-parallax] img {
  translate: 0 var(--ipy, 0px);
  will-change: translate;
}
.js [data-img-parallax] { overflow: hidden; }
/* give drifting images headroom so edges never show */
.js .about__media img { scale: 1.12; }
.js .stack__media img { scale: 1.1; }

/* Magnetic glow sweep on CTA cards */
.js .work::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(214, 185, 130, 0.09), transparent 65%);
  opacity: 0;
  transition: opacity 400ms ease;
  pointer-events: none;
  z-index: 1;
}
.js .work:hover::before { opacity: 1; }

/* ── 18. SCROLL REVEAL SYSTEM (JS-gated) ───────────────────── */
/* Base: hidden state only when JS is present */
.js .reveal, .js .reveal-img, .js .reveal-card, .js .reveal-line, .js .reveal-mask {
  will-change: opacity, transform;
}

/* Rise (25px climb, no blur — transform+opacity only) */
.js .reveal {
  opacity: 0;
  transform: translateY(25px);
  transition:
    opacity var(--t-reveal) var(--ease-lux),
    transform var(--t-reveal) var(--ease-lux);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Staggered children (parent gets .reveal-stagger) */
.js .reveal-stagger > * {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 900ms var(--ease-lux), transform 900ms var(--ease-lux);
  transition-delay: calc(var(--i, 0) * 110ms);
}
.js .reveal-stagger.is-visible > * { opacity: 1; transform: none; }

/* Slide from side (cards moving into place) */
.js .reveal-card {
  opacity: 0;
  transform: translateX(56px) scale(0.98);
  transition: opacity 950ms var(--ease-lux), transform 950ms var(--ease-lux);
  transition-delay: calc(var(--i, 0) * 120ms);
}
.js .reveal-card.from-start { transform: translateX(-56px) scale(0.98); }
.js .reveal-card.is-visible { opacity: 1; transform: none; }

/* Image: cinematic curtain reveal — espresso wipe with a gold edge
   riding the reveal line, while the image settles from a slight zoom */
.js .reveal-img { position: relative; overflow: hidden; }
.js .reveal-img img {
  transform: scale(1.12);
  transition: transform 1500ms var(--ease-lux);
}
.js .reveal-img::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 2;
  background: linear-gradient(180deg, var(--espresso), #0F0A09);
  transform-origin: bottom;
  transition: transform 1150ms var(--ease-lux) 60ms;
  pointer-events: none;
}
/* gold hairline glued to the curtain's leading edge */
.js .reveal-img::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(180deg, var(--champagne) 0 2px, transparent 2px);
  transform-origin: bottom;
  transition: transform 1150ms var(--ease-lux) 60ms;
  opacity: 0.9;
  pointer-events: none;
}
.js .detail.reveal-img.is-visible::after { transform: scaleY(0); }
.js .reveal-img.is-visible::before { transform: scaleY(0); }
.js .reveal-img.is-visible img { transform: none; }
/* the about figure keeps its corner ornament as ::after — no gold edge there */
.js .about__media.reveal-img::after { content: none; }
.js .about__media.reveal-img::before { border-radius: inherit; }

/* Gold line draw */
.js .reveal-line {
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 1100ms var(--ease-lux);
}
.js .reveal-line.is-visible { transform: scaleX(1); }
.js .details__caption .reveal-line { transform-origin: center; }

@keyframes kenburns-drift {
  from { transform: scale(1) translateY(0); }
  to { transform: scale(1.07) translateY(-1.8%); }
}

/* Hero entrance (after preloader) — masked line-by-line */
@keyframes rise-in {
  from { opacity: 0; transform: translateY(25px); }
  to { opacity: 1; transform: none; }
}
@keyframes figure-in {
  from { opacity: 0; transform: translateY(48px) scale(0.97); }
  to { opacity: 1; transform: none; }
}
@keyframes mask-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.js .hero .reveal { opacity: 0; }
.is-loaded .hero .reveal { animation: rise-in 950ms var(--ease-lux) both; }
.js .hero__title .reveal-mask { display: block; }
/* starts only after the preloader lifts — never behind the veil */
.is-loaded .hero__title .reveal-mask > .reveal {
  animation: rise-in 1000ms var(--ease-lux) both;
}
.is-loaded .hero__eyebrow { animation-delay: 150ms; }
.is-loaded .hero__title .reveal-mask:nth-child(1) > .reveal { animation-delay: 260ms; }
.is-loaded .hero__title .reveal-mask:nth-child(2) > .reveal { animation-delay: 400ms; }
.is-loaded .hero__title .reveal-mask:nth-child(3) > .reveal { animation-delay: 540ms; }
.is-loaded .hero__lede { animation-delay: 700ms; }
.is-loaded .hero__actions { animation-delay: 830ms; }
.js .hero__figure.reveal-late { opacity: 0; }
.is-loaded .hero__figure.reveal-late { animation: figure-in 1200ms var(--ease-lux) 550ms both; }

/* ── 19. REDUCED MOTION ────────────────────────────────────── */
@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;
  }
  .js .reveal, .js .reveal-img, .js .reveal-card, .js .reveal-stagger > *,
  .js [data-split] .split-word { opacity: 1 !important; transform: none !important; filter: none !important; }
  .stack__card { transition: none !important; }
  .js .nav { transform: none !important; animation: none !important; }
  .is-loaded .hero__outfit { animation: none !important; }
  .ornament-divider__line, .ornament-divider__dia, .js .eyebrow .rule, .js .hero__eyebrow .rule { transform: none !important; opacity: 1 !important; }
  .mmenu__links a { opacity: 1 !important; translate: 0 0 !important; }
  .js .reveal-img::before, .js .reveal-img::after { display: none; }
  .js .reveal-img img { transform: none; filter: none; }
  .detail.is-visible img, .stack__card--front .stack__media img { animation: none !important; }
  .js .process__stage { height: auto; }
  .process__viewport { position: static; height: auto; padding-block: 4rem; }
  .step__desc { max-height: none; opacity: 1; transform: none; }
  .hero .reveal, .hero__figure.reveal-late { opacity: 1; }
  .js .hero__title .reveal-mask { overflow: visible; }
}

/* ── 20. RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 1080px) {
  .why__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .process__timeline { gap: 1.6rem; }
}

@media (max-width: 860px) {
  :root { --overlap: 28px; }
  .nav__links, .nav__indicator { display: none; }
  .nav__toggle { display: block; }

  .hero__inner {
    grid-template-columns: 1fr;
    padding-block: 8.2rem 6rem;
    gap: 2.4rem;
  }
  .hero__content { max-width: 36rem; }
  .hero__figure { justify-self: start; max-height: none; }
  .hero__outfit { max-height: 58svh; }
  .hero__figure-frame { display: none; }
  .hero__scrim {
    background:
      linear-gradient(270deg, rgba(11, 9, 9, 0.9) 0%, rgba(11, 9, 9, 0.55) 60%, rgba(11, 9, 9, 0.25) 100%),
      linear-gradient(0deg, var(--obsidian) 0%, rgba(11, 9, 9, 0) 30%),
      linear-gradient(180deg, rgba(11, 9, 9, 0.7) 0%, rgba(11, 9, 9, 0.25) 18%);
  }

  .about__grid { grid-template-columns: 1fr; }
  .about__media { max-width: 30rem; }

  .services__list .service { grid-template-columns: 3.4rem minmax(0, 1fr); }
  .service__arrow { display: none; }

  /* stack on mobile: tighter step, larger visible bars */
  .hero__title .reveal-mask > .reveal { white-space: normal; }
  .stack { --stack-step: 40px; }
  .stack__bar { padding-inline: 0.2rem; }
  .stack__bar-cat { font-size: 0.72rem; }

  .details__grid { grid-template-columns: 1fr 1fr; }
  .detail--tall { grid-column: span 2; order: 3; }
  .detail--tall img { aspect-ratio: 16 / 10; }

  /* Pinned process → simple stacked timeline on mobile */
  .js .process__stage { height: auto; }
  .process__viewport { position: static; height: auto; padding-block: 3rem; }
  .process__timeline { grid-template-columns: 1fr; gap: 0; }
  .process__timeline::before, .process__timeline::after { display: none; }
  .step { padding-block: 1.2rem; padding-inline-start: 1.8rem; border-inline-start: 1px solid var(--line); }
  .step::after { top: 1.7rem; inset-inline-start: -5px; }
  .step__desc { max-height: none; opacity: 1; transform: none; }
  .step__title, .step__num { color: var(--ivory); }
  .step__num { color: var(--gold); }
}

@media (max-width: 640px) {
  .hero__title { font-size: clamp(2.1rem, 9.2vw, 3rem); }
  .hero__actions .btn { width: 100%; }
  .cta__actions .btn { width: 100%; }

  .details__grid { grid-template-columns: 1fr; }
  .detail--tall { grid-column: auto; }
  .detail img, .detail--tall img { aspect-ratio: 4 / 4.4; }

  .why__grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 2.2rem; }
  .footer__legal { flex-direction: column; align-items: flex-start; }
  .wa-fab { bottom: 1.1rem; inset-inline-start: 1.1rem; width: 54px; height: 54px; }
}

/* Hero figure on very short viewports */
@media (max-height: 700px) and (min-width: 861px) {
  .hero__inner { padding-block: 6.5rem 4rem; }
  .hero__outfit { max-height: 74svh; }
}
