/* ============================================================
   Ammar Sallam — rebuild prototype
   Design system: warm ink + wine, editorial Roboto Slab display
   ============================================================ */

:root {
  /* palette */
  --ink:        #0B0708;   /* warm near-black bg */
  --ink-2:      #140D11;   /* raised surface */
  --wine:       #8E2157;   /* primary */
  --wine-soft:  #C77A9B;   /* light wine, eyebrows/accents */
  --plum:       #3D1332;   /* deep secondary */
  --bone:       #EDE6DF;   /* primary text */
  --bone-dim:   #A9A0A0;   /* secondary text */
  --line:       rgba(237, 230, 223, 0.14);

  /* type */
  --display: "Roboto Slab", Georgia, serif;
  --body:    "Roboto", system-ui, sans-serif;
  --arabic:  "Noto Kufi Arabic";

  /* scale */
  --step-eyebrow: 0.78rem;
  --step-body:    clamp(1rem, 0.95rem + 0.3vw, 1.15rem);
  --step-lede:    clamp(1.05rem, 0.98rem + 0.6vw, 1.35rem);
  --step-h2:      clamp(2.1rem, 1.4rem + 3.2vw, 4.4rem);
  --step-h1:      clamp(2.7rem, 1.9rem + 4.2vw, 5.6rem);

  /* space */
  --gutter: clamp(1.25rem, 5vw, 6rem);
  --section-y: clamp(5rem, 12vh, 11rem);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* In Arabic, every element that resolves --body/--display gets Noto Kufi
   Arabic — no more system-font fallback on eyebrows, buttons, etc. */
[dir="rtl"] {
  --display: var(--arabic), "Roboto Slab", Georgia, serif;
  --body:    var(--arabic), "Roboto", system-ui, sans-serif;
}

/* ---- reset-ish ---- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--body);
  font-size: var(--step-body);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--wine); color: #fff; }

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

/* ---- shared type ---- */
.eyebrow {
  font-family: var(--body);
  font-size: var(--step-eyebrow);
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--wine-soft);
  display: inline-flex;
  align-items: center;
  gap: 0.75em;
}
.eyebrow::before {
  content: "";
  width: 2.2rem;
  height: 1px;
  background: var(--wine);
}
[dir="rtl"] .eyebrow { letter-spacing: 0; }

/* ---- buttons ---- */
.btn {
  --pad-y: 0.7em;
  --pad-x: 1.4em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  font-family: var(--body);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: var(--pad-y) var(--pad-x);
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.4s var(--ease), background 0.3s var(--ease),
              color 0.3s var(--ease), border-color 0.3s var(--ease);
  will-change: transform;
}
.btn--lg { --pad-y: 0.95em; --pad-x: 1.9em; font-size: 1rem; }
.btn--solid { background: var(--wine); color: #fff; }
.btn--solid:hover { background: var(--wine-soft); color: var(--ink); transform: translateY(-2px); }
.btn--ghost { border-color: var(--line); color: var(--bone); background: transparent; }
.btn--ghost:hover { border-color: var(--wine-soft); color: var(--wine-soft); transform: translateY(-2px); }

/* ============================================================
   Journey line — signature
   ============================================================ */
.journey {
  position: fixed;
  top: 0;
  inset-inline-start: clamp(1rem, 3vw, 2.6rem);
  height: 100vh;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  pointer-events: none;
  mix-blend-mode: difference;
}
.journey__cap {
  font-size: 0.58rem;
  letter-spacing: 0.24em;
  color: var(--bone);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  opacity: 0.55;
}
.journey__cap--top { transform: rotate(180deg); }
.journey__track {
  position: relative;
  width: 1px;
  flex: 1;
  max-height: 46vh;
  background: var(--line);
}
.journey__fill {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(var(--wine-soft), var(--wine));
  transform-origin: top;
}
@media (max-width: 900px) { .journey { display: none; } }

/* ============================================================
   Nav
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1rem, 2.4vw, 1.7rem) var(--gutter);
  transition: padding 0.5s var(--ease), background 0.5s var(--ease),
              backdrop-filter 0.5s var(--ease), border-color 0.5s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
  background: rgba(11, 7, 8, 0.72);
  backdrop-filter: blur(14px) saturate(1.3);
  border-bottom-color: var(--line);
}
.nav__brand { display: inline-flex; align-items: center; }
.nav__logo {
  width: 46px;
  height: auto;
  transition: transform 0.4s var(--ease), filter 0.4s var(--ease);
}
.nav.is-scrolled .nav__logo { width: 40px; }
.nav__brand:hover .nav__logo {
  transform: translateY(-1px) scale(1.04);
  filter: drop-shadow(0 4px 14px rgba(142, 33, 87, 0.6));
}
.nav__links { display: flex; gap: clamp(1.2rem, 2.5vw, 2.4rem); }
.nav__links a {
  position: relative;
  font-size: 0.95rem;
  color: var(--bone-dim);
  padding: 0.3em 0;
  transition: color 0.3s var(--ease);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--wine-soft);
  transform: scaleX(0);
  transform-origin: inline-start;
  transition: transform 0.4s var(--ease);
}
.nav__links a:hover { color: var(--bone); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__actions { display: flex; align-items: center; gap: clamp(0.7rem, 1.5vw, 1.3rem); }

/* Mobile nav: inline links move to a menu in the full build; keep the
   bar clean with logo + language + primary CTA for now. */
@media (max-width: 720px) {
  .nav__links { display: none; }
  .nav { gap: 1rem; }
}

.langtoggle {
  background: none;
  border: none;
  color: var(--bone-dim);
  font-family: var(--body);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  display: inline-flex;
  gap: 0.35em;
}
.langtoggle__opt { transition: color 0.3s var(--ease); }
.langtoggle__opt.is-active { color: var(--bone); font-weight: 700; }
.langtoggle__sep { opacity: 0.4; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: var(--gutter);
  padding-bottom: clamp(3rem, 8vh, 6rem);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: var(--ink); }
/* blurred ambient fill so the (scaled-back) portrait never leaves gaps */
.hero__backdrop {
  position: absolute;
  inset: -8%;
  background: url("../assets/img/hero-portrait.webp") center 20% / cover no-repeat;
  filter: blur(38px) brightness(0.4) saturate(0.8);
  transform: scale(1.12);
}
.hero__img {
  width: 100%;
  height: 118%;               /* extra for parallax travel */
  object-fit: cover;
  object-position: 56% 26%;   /* frame head-and-shoulders, not just the face */
  transform: scale(0.8);      /* pulled back; JS Ken Burns settles to the same */
  transform-origin: right center;
  will-change: transform;
  /* feather the exposed edges so the pulled-back portrait melts into the blur */
  -webkit-mask-image: radial-gradient(135% 118% at 74% 42%, #000 58%, transparent 100%);
          mask-image: radial-gradient(135% 118% at 74% 42%, #000 58%, transparent 100%);
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11,7,8,0.55) 0%, rgba(11,7,8,0) 28%),
    linear-gradient(90deg, rgba(11,7,8,0.92) 8%, rgba(11,7,8,0.55) 42%, rgba(11,7,8,0.05) 78%),
    linear-gradient(0deg, rgba(11,7,8,0.9) 0%, rgba(11,7,8,0) 45%);
}
[dir="rtl"] .hero__scrim {
  background:
    linear-gradient(180deg, rgba(11,7,8,0.55) 0%, rgba(11,7,8,0) 28%),
    linear-gradient(270deg, rgba(11,7,8,0.92) 8%, rgba(11,7,8,0.55) 42%, rgba(11,7,8,0.05) 78%),
    linear-gradient(0deg, rgba(11,7,8,0.9) 0%, rgba(11,7,8,0) 45%);
}
[dir="rtl"] .hero__img {
  object-position: 40% 16%;
  transform-origin: left center;
  -webkit-mask-image: radial-gradient(135% 118% at 26% 42%, #000 58%, transparent 100%);
          mask-image: radial-gradient(135% 118% at 26% 42%, #000 58%, transparent 100%);
}

.hero__inner { position: relative; max-width: 52rem; }
.hero__title {
  font-family: var(--display);
  font-weight: 300;
  font-size: var(--step-h1);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 1.4rem 0 1.6rem;
}
/* words rise behind a mask; container itself must not clip glyph descenders */
.hero__title .line { display: block; overflow: visible; white-space: nowrap; }
.hero__title .line > span { display: inline-block; vertical-align: bottom; will-change: transform; }
.hero__title .accent { color: var(--wine-soft); font-style: normal; font-weight: 300; }
.hero__title .line--sm {
  font-family: var(--body);
  font-size: clamp(1rem, 0.7rem + 1.4vw, 1.7rem);
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.01em;
  color: var(--bone-dim);
  margin-top: 0.7rem;
  white-space: normal;   /* the sub-line may wrap */
}
/* very small screens: let the big lines wrap rather than overflow */
@media (max-width: 480px) {
  .hero__title .line { white-space: normal; }
}
.hero__lede {
  font-size: var(--step-lede);
  font-weight: 300;
  max-width: 40rem;
  color: var(--bone);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.2rem; }

.hero__scroll {
  position: absolute;
  inset-inline-end: var(--gutter);
  bottom: clamp(3rem, 8vh, 6rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--bone-dim);
}
.hero__scrollline {
  width: 1px; height: 3.4rem;
  background: linear-gradient(var(--wine-soft), transparent);
  animation: scrollpulse 2.4s var(--ease) infinite;
  transform-origin: top;
}
@keyframes scrollpulse {
  0%, 100% { transform: scaleY(0.4); opacity: 0.4; }
  50%      { transform: scaleY(1);   opacity: 1; }
}
@media (max-width: 640px) { .hero__scroll { display: none; } }

/* ============================================================
   Who I am
   ============================================================ */
.who {
  position: relative;
  padding: var(--section-y) var(--gutter);
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(142,33,87,0.16), transparent 55%),
    var(--ink);
}
.who__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  grid-template-areas:
    "head  figure"
    "body  figure";
  gap: clamp(2rem, 5vw, 5rem) clamp(2rem, 5vw, 5.5rem);
  max-width: 78rem;
  margin: 0 auto;
  align-items: start;
}
.who__head { grid-area: head; }
.who__body { grid-area: body; max-width: 34rem; }
.who__figure { grid-area: figure; position: sticky; top: 14vh; }

.who__statement {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3.4rem);
  line-height: 1.14;
  letter-spacing: -0.02em;
  margin-top: 1.6rem;
}
.who__statement .wl { display: block; white-space: nowrap; }
@media (max-width: 480px) { .who__statement .wl { white-space: normal; } }
.who__statement em { color: var(--wine-soft); font-style: normal; }

.who__figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 2px;
}
.who__figure figcaption {
  margin-top: 0.8rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone-dim);
}
.who__body p + p { margin-top: 1.2rem; }

.stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-top: 2.6rem;
  padding-top: 2.2rem;
  border-top: 1px solid var(--line);
}
.stats__num {
  display: block;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.7rem, 1.1rem + 1.8vw, 2.6rem);
  color: var(--bone);
  line-height: 1;
}
/* a word instead of a number needs a smaller size to fit the column */
.stats__num--phrase { font-size: clamp(1.3rem, 1rem + 1vw, 1.75rem); }
.stats__label {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--wine-soft);
}

.who__next {
  max-width: 78rem;
  margin: clamp(3.5rem, 8vh, 6rem) auto 0;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bone-dim);
}

@media (max-width: 820px) {
  .who__grid {
    grid-template-columns: 1fr;
    grid-template-areas: "head" "figure" "body";
  }
  .who__figure { position: static; max-width: 26rem; }
}
@media (max-width: 520px) {
  .stats { grid-template-columns: 1fr; gap: 1.1rem; }
}

/* ============================================================
   Reveal states — hidden only when JS is active (progressive
   enhancement). Without JS/GSAP the content stays visible.
   ============================================================ */
.js .reveal { opacity: 0; transform: translateY(28px); }
.js .reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

/* ---- reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  :root:not(.force-motion) * { animation: none !important; transition-duration: 0.01ms !important; }
  :root:not(.force-motion) .reveal { opacity: 1 !important; transform: none !important; }
  :root:not(.force-motion) .hero__img { height: 100%; }
}

/* ---- RTL type ---- */
[dir="rtl"] body,
[dir="rtl"] .hero__title,
[dir="rtl"] .who__statement,
[dir="rtl"] .nav__brandtext,
[dir="rtl"] .stats__num {
  font-family: "Noto Kufi Arabic", var(--body);
}
[dir="rtl"] .hero__title { line-height: 1.15; }
[dir="rtl"] .hero__title .accent { font-style: normal; }
[dir="rtl"] .hero__title .line--sm { font-style: normal; }  /* Arabic: no synthetic slant */
[dir="rtl"] .who__statement em { font-style: normal; }

/* ============================================================
   Creed — pull-quote bridge
   ============================================================ */
.creed {
  padding: clamp(4rem, 10vh, 8rem) var(--gutter);
  text-align: center;
}
.creed__quote {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(1.7rem, 1rem + 3vw, 3.6rem);
  line-height: 1.2;
  max-width: 60rem;
  margin: 0 auto;
}
.creed__quote em { color: var(--wine-soft); font-style: italic; }
[dir="rtl"] .creed__quote { font-family: "Noto Kufi Arabic", var(--body); }
[dir="rtl"] .creed__quote em { font-style: normal; }

/* ============================================================
   The Ascent — winding journey (signature section)
   ============================================================ */
.ascent {
  position: relative;
  padding: var(--section-y) var(--gutter);
  background:
    radial-gradient(90% 40% at 0% 30%, rgba(61,19,50,0.35), transparent 60%),
    radial-gradient(90% 40% at 100% 70%, rgba(61,19,50,0.3), transparent 60%),
    var(--ink);
  overflow: hidden;
}
.ascent__intro {
  max-width: 46rem;
  margin: 0 auto clamp(3rem, 8vh, 6rem);
  text-align: center;
}
.ascent__intro .eyebrow::before { display: none; }
.ascent__title {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(1.9rem, 1.2rem + 2.8vw, 3.6rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin-top: 1.4rem;
}
.ascent__title em { color: var(--wine-soft); font-style: normal; }
.ascent__lede { margin-top: 1.4rem; color: var(--bone-dim); font-style: italic; }
[dir="rtl"] .ascent__lede { font-style: normal; }  /* Arabic: no synthetic slant */
[dir="rtl"] .ascent__title { font-family: "Noto Kufi Arabic", var(--body); }
[dir="rtl"] .ascent__title em { font-style: normal; }

.ascent__track {
  position: relative;
  max-width: 72rem;
  margin: 0 auto;
}
/* The Journey mirrors between languages: English reads L→R (step 1 on the
   left), Arabic reads R→L (step 1 on the right). The wine path is mirrored for
   English and left natural for Arabic so it always opposes the card, and the
   comet/arrow travel the mirrored direction automatically. */
.ascent__pathwrap { position: absolute; inset: 0; pointer-events: none; transform: scaleX(-1); }
[dir="rtl"] .ascent__pathwrap { transform: none; }
.ascent__svg {
  width: 100%; height: 100%;
  display: block;
  overflow: visible;
  filter: drop-shadow(0 0 14px rgba(142, 33, 87, 0.55));
}
.ascent__path { opacity: 0.9; }

.ascent__arrow {
  position: absolute;
  left: 50%;
  top: 98%;
  transform: translate(-50%, -2px);
  width: 0; height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 13px solid var(--wine-soft);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  filter: drop-shadow(0 0 10px rgba(199, 122, 155, 0.8));
}
.ascent__arrow.is-on { opacity: 1; animation: arrowdip 1.6s var(--ease) infinite; }
@keyframes arrowdip {
  0%, 100% { transform: translate(-50%, -2px); }
  50%      { transform: translate(-50%, 6px); }
}

.ascent__node {
  position: absolute;
  left: var(--nx); top: var(--ny);
  width: 13px; height: 13px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid rgba(199, 122, 155, 0.4);
  transition: border-color 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.ascent__node.is-on {
  border-color: var(--wine-soft);
  box-shadow: 0 0 0 4px rgba(142, 33, 87, 0.35), 0 0 18px rgba(199, 122, 155, 0.8);
}

/* --- stages --- */
.stage {
  position: relative;
  min-height: 56vh;
  display: flex;
  align-items: center;
  padding: 2.5rem 0;
}
.stage--end   { justify-content: flex-start; }
.stage--start { justify-content: flex-end; }

.stage__ghost {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(7rem, 4rem + 14vw, 15rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(199, 122, 155, 0.17);
  user-select: none;
  z-index: 0;
}
.stage--end .stage__ghost   { inset-inline-end: 4%; }
.stage--start .stage__ghost { inset-inline-start: 4%; }

.stage__card {
  position: relative;
  z-index: 1;
  width: min(430px, 88%);
  padding: clamp(1.4rem, 3vw, 2.2rem);
  background: rgba(20, 13, 17, 0.74);
  border: 1px solid rgba(199, 122, 155, 0.22);
  border-radius: 10px;
  backdrop-filter: blur(10px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.js .stage__card { opacity: 0; transform: translateY(36px); }
.js .stage__card.is-in {
  opacity: 1; transform: none;
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
/* idle float, applied after reveal via animation on the inner pulse */
.stage__card.is-in.float { animation: cardfloat 7s ease-in-out 1.1s infinite alternate; }
.stage__card.is-in.float:hover { animation: none; }  /* hand control to the 3D tilt */
.stage:nth-child(odd)  .stage__card.is-in.float { animation-delay: 2.1s; }
@keyframes cardfloat {
  from { transform: translateY(-5px); }
  to   { transform: translateY(6px); }
}

.stage__kicker {
  display: flex;
  align-items: baseline;
  gap: 0.6em;
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--wine-soft);
}
[dir="rtl"] .stage__kicker { letter-spacing: 0; }
.stage__kicker b {
  font-family: var(--display);
  font-size: 1.35em;
  color: var(--wine-soft);
}
.stage__title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.25rem, 1rem + 1vw, 1.65rem);
  line-height: 1.25;
  margin: 0.7rem 0 0.7rem;
}
[dir="rtl"] .stage__title { font-family: "Noto Kufi Arabic", var(--body); }
.stage__text { color: var(--bone-dim); font-size: 0.98rem; }

.ascent__cta {
  text-align: center;
  margin-top: clamp(3rem, 7vh, 5rem);
}
.ascent__cta p {
  font-family: var(--display);
  font-style: italic;
  color: var(--bone-dim);
  margin-bottom: 1.4rem;
}
[dir="rtl"] .ascent__cta p { font-family: "Noto Kufi Arabic", var(--body); font-style: normal; }

/* ============================================================
   Services
   ============================================================ */
.services { padding: var(--section-y) var(--gutter); }
.services__head { max-width: 72rem; margin: 0 auto 3rem; }
.services__title {
  font-family: var(--display);
  font-weight: 300;
  font-size: var(--step-h2);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-top: 1.4rem;
}
.services__title .accent { color: var(--wine-soft); }
[dir="rtl"] .services__title { font-family: "Noto Kufi Arabic", var(--body); }

.services__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  max-width: 72rem;
  margin: 0 auto;
  align-items: start;
}
.svc--flip { margin-top: 0; }   /* both cards top-aligned, no stagger */
.svc__media {
  aspect-ratio: 16 / 11;
  overflow: hidden;
  border-radius: 8px;
}
.svc__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.svc:hover .svc__media img { transform: scale(1.045); }
.svc__body { padding-top: 1.5rem; }
.svc__name {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.4rem);
}
[dir="rtl"] .svc__name { font-family: "Noto Kufi Arabic", var(--body); }
.svc__tag { color: var(--wine-soft); margin: 0.3rem 0 1.1rem; font-size: 0.95rem; }
.svc__list { list-style: none; display: grid; gap: 0.55rem; margin-bottom: 1.4rem; }
.svc__list li {
  position: relative;
  padding-inline-start: 1.4rem;
  color: var(--bone-dim);
  font-size: 0.97rem;
}
.svc__list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.68em;
  width: 0.8rem;
  height: 1px;
  background: var(--wine);
}
.svc__link {
  color: var(--bone);
  font-weight: 500;
  border-bottom: 1px solid rgba(199, 122, 155, 0.4);
  padding-bottom: 2px;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.svc__link:hover { color: var(--wine-soft); border-color: var(--wine-soft); }

/* ============================================================
   Voices — testimonials
   ============================================================ */
.voices {
  position: relative;
  padding: var(--section-y) var(--gutter);
  background:
    radial-gradient(110% 60% at 50% 0%, rgba(61, 19, 50, 0.3), transparent 55%),
    var(--ink);
  overflow: hidden;
}
.voices__marquee {
  position: absolute;
  top: clamp(1rem, 4vh, 3rem);
  left: 0; right: 0;
  overflow: hidden;
  pointer-events: none;
}
.voices__strip {
  display: inline-block;
  white-space: nowrap;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(3rem, 2rem + 6vw, 7rem);
  color: transparent;
  -webkit-text-stroke: 1px rgba(199, 122, 155, 0.13);
  will-change: transform;
}
.voices__head { position: relative; max-width: 72rem; margin: clamp(3rem, 9vh, 7rem) auto 3rem; }
.voices__title {
  font-family: var(--display);
  font-weight: 300;
  font-size: var(--step-h2);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-top: 1.4rem;
  max-width: 30ch;
}
[dir="rtl"] .voices__title { font-family: "Noto Kufi Arabic", var(--body); }

.voices__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.4rem, 3vw, 2.5rem);
  max-width: 72rem;
  margin: 0 auto;
  align-items: start;
}
.voice {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 2.6rem 1.8rem 1.6rem;
  background: rgba(20, 13, 17, 0.5);
}
.voice--mid { transform: translateY(2.4rem); }
.js .voice--mid.reveal { transform: translateY(calc(2.4rem + 28px)); }
.js .voice--mid.reveal.is-in { transform: translateY(2.4rem); }
.voice::before {
  content: "“";
  position: absolute;
  top: 0.4rem;
  inset-inline-start: 1.4rem;
  font-family: var(--display);
  font-size: 3.4rem;
  line-height: 1;
  color: var(--wine);
}
[dir="rtl"] .voice::before { content: "«"; font-family: "Noto Kufi Arabic", var(--body); font-size: 2.6rem; top: 0.8rem; }
.voice blockquote { font-size: 0.98rem; color: var(--bone); line-height: 1.7; }
.voice figcaption {
  margin-top: 1.2rem;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--wine-soft);
}

/* ============================================================
   Book
   ============================================================ */
.book { padding: var(--section-y) var(--gutter); }
.book__grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  max-width: 66rem;
  margin: 0 auto;
  align-items: center;
}
.book__cover {
  position: relative;
  max-width: 330px;
  margin: 0 auto;
  perspective: 900px;
}
.book__cover::after {
  content: "";
  position: absolute;
  inset: 8% -10% -6% -10%;
  background: radial-gradient(50% 50% at 50% 60%, rgba(142, 33, 87, 0.35), transparent 70%);
  z-index: -1;
}
.book__cover img {
  border-radius: 4px;
  box-shadow: 24px 34px 70px rgba(0, 0, 0, 0.6);
  will-change: transform;
}
.book__title {
  font-family: var(--display);
  font-weight: 300;
  font-size: var(--step-h2);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 1.2rem 0 1.2rem;
}
[dir="rtl"] .book__title { font-family: "Noto Kufi Arabic", var(--body); }
.book__body p { color: var(--bone-dim); max-width: 46ch; }
.book__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.8rem; }

/* ============================================================
   Contact
   ============================================================ */
.contact {
  padding: var(--section-y) var(--gutter);
  background:
    radial-gradient(120% 90% at 100% 100%, rgba(61, 19, 50, 0.45), transparent 60%),
    var(--ink);
}
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  max-width: 72rem;
  margin: 0 auto;
  align-items: start;
}
.contact__title {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(2rem, 1.3rem + 2.2vw, 3.4rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 1.2rem 0 1.2rem;
  white-space: nowrap;   /* keep "Take your first step" on one line */
}
@media (max-width: 480px) { .contact__title { white-space: normal; } }
.contact__title em { color: var(--wine-soft); font-style: normal; }
[dir="rtl"] .contact__title { font-family: "Noto Kufi Arabic", var(--body); }
[dir="rtl"] .contact__title em { font-style: normal; }
.contact__intro > p.reveal { color: var(--bone-dim); max-width: 44ch; }

.contact__direct { margin-top: 2.2rem; }
.contact__mail {
  font-family: var(--display);
  font-size: 1.15rem;
  color: var(--bone);
  border-bottom: 1px solid rgba(199, 122, 155, 0.4);
  padding-bottom: 2px;
  transition: color 0.3s var(--ease);
}
.contact__mail:hover { color: var(--wine-soft); }
.socials { display: flex; gap: 0.8rem; margin-top: 1.6rem; }
.socials a {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--bone-dim);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.socials a:hover { color: var(--wine-soft); border-color: var(--wine-soft); transform: translateY(-3px); }

/* --- form --- */
.form {
  background: rgba(20, 13, 17, 0.6);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: clamp(1.5rem, 3vw, 2.4rem);
}
.form__row { margin-bottom: 1.2rem; }
.form__row--half {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
.form label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone-dim);
  margin-bottom: 0.5rem;
}
[dir="rtl"] .form label { letter-spacing: 0; }
.form input,
.form textarea {
  width: 100%;
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--bone);
  font-family: inherit;
  font-size: 1rem;
  padding: 0.75em 0.9em;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.form input:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--wine-soft);
  box-shadow: 0 0 0 3px rgba(142, 33, 87, 0.25);
}
.form textarea { resize: vertical; min-height: 7rem; }
.form__submit { width: 100%; margin-top: 0.4rem; }
.form__note { margin-top: 1rem; color: var(--wine-soft); font-size: 0.92rem; }
.form__note--err { color: #e08199; }

/* ============================================================
   Footer
   ============================================================ */
.footer {
  border-top: 1px solid var(--line);
  padding: clamp(2.5rem, 6vh, 4rem) var(--gutter);
  text-align: center;
}
.footer__brand { display: inline-block; margin-bottom: 1rem; }
.footer__line {
  font-family: var(--display);
  font-style: italic;
  color: var(--bone-dim);
}
[dir="rtl"] .footer__line { font-family: "Noto Kufi Arabic", var(--body); font-style: normal; }
.footer__copy { margin-top: 0.6rem; font-size: 0.8rem; color: var(--bone-dim); opacity: 0.7; }

/* ============================================================
   Responsive — new sections
   ============================================================ */
@media (max-width: 980px) {
  .services__grid, .voices__grid, .book__grid, .contact__grid { grid-template-columns: 1fr; }
  .svc--flip { margin-top: 0; }
  .voice--mid { transform: none; }
  .js .voice--mid.reveal { transform: translateY(28px); }
  .js .voice--mid.reveal.is-in { transform: none; }
  .book__cover { max-width: 260px; }
}
@media (max-width: 820px) {
  .stage { min-height: 44vh; justify-content: center; }
  .stage__card { width: min(430px, 100%); }
  .ascent__node { display: none; }
  .ascent__path { opacity: 0.45; }
  .stage__ghost { opacity: 0.6; }
}
@media (max-width: 520px) {
  .form__row--half { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  :root:not(.force-motion) .stage__card { opacity: 1; transform: none; }
  :root:not(.force-motion) .stage__card.is-in.float { animation: none; }
  :root:not(.force-motion) .ascent__path { stroke-dashoffset: 0 !important; stroke-dasharray: none !important; }
  :root:not(.force-motion) .ascent__arrow { opacity: 1; }
}

/* ============================================================
   Preloader
   ============================================================ */
.loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.6rem;
  background: var(--ink);
  clip-path: inset(0 0 0% 0);
}
.js .loader { display: flex; }
.loader__mark { display: flex; flex-direction: column; align-items: center; gap: 0.9rem; }
.loader__name {
  font-family: var(--display);
  font-size: 1.1rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone);
}
.loader__bar {
  width: min(220px, 40vw);
  height: 1px;
  background: var(--line);
  overflow: hidden;
}
.loader__fill {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--wine), var(--wine-soft));
}

/* ============================================================
   Custom cursor
   ============================================================ */
.cursor, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  z-index: 300;
  pointer-events: none;
  border-radius: 50%;
  opacity: 0;
}
.has-cursor .cursor, .has-cursor .cursor-ring { opacity: 1; }
.cursor {
  width: 6px; height: 6px;
  margin: -3px 0 0 -3px;
  background: var(--wine-soft);
}
.cursor-ring {
  width: 34px; height: 34px;
  margin: -17px 0 0 -17px;
  border: 1px solid rgba(199, 122, 155, 0.55);
  transition: transform 0.35s var(--ease), border-color 0.3s var(--ease);
}
.cursor-ring.is-big {
  transform: scale(1.9);
  border-color: rgba(199, 122, 155, 0.9);
}

/* ============================================================
   Split-text word masks
   ============================================================ */
.w { display: inline-block; overflow: hidden; vertical-align: bottom; }
.wi { display: inline-block; will-change: transform; }
/* once a heading has played its rise, stop clipping so descenders/italics show fully */
[data-wshown] .w { overflow: visible; }
/* pre-reveal state only when split is active */
.split-ready .who__statement .wi,
.split-ready .ascent__title .wi,
.split-ready .contact__title .wi,
.split-ready .services__title .wi,
.split-ready .voices__title .wi,
.split-ready .book__title .wi {
  transform: translateY(112%) rotate(3deg);
}

/* ============================================================
   Comet — the moving arrowhead on the journey path
   ============================================================ */
.ascent__comet {
  position: absolute;
  top: 0; left: 0;
  margin: -6px 0 0 -7px;   /* center the arrowhead on the path point */
  width: 0; height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 14px solid var(--wine-soft);
  opacity: 0;
  filter: drop-shadow(0 0 8px rgba(199, 122, 155, 1)) drop-shadow(0 0 22px rgba(142, 33, 87, 0.9));
  will-change: transform, opacity;
}
.ascent__comet::after {
  content: "";
  position: absolute;
  top: -3px; left: -30px;
  width: 26px; height: 6px;
  background: linear-gradient(270deg, rgba(199, 122, 155, 0.8), transparent);
  border-radius: 3px;
}

/* ============================================================
   Card spotlight glare (follows cursor via --mx/--my)
   ============================================================ */
.stage__card::before, .voice::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%),
              rgba(199, 122, 155, 0.12), transparent 65%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}
.stage__card:hover::before, .voice:hover::after { opacity: 1; }
.voice { transition: transform 0.5s var(--ease), border-color 0.5s var(--ease); }
.voice:hover { border-color: rgba(199, 122, 155, 0.45); }

/* ============================================================
   Service hover: gradient sweep + lift
   ============================================================ */
.svc { will-change: transform; }
.svc__media { position: relative; }
.svc__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(237, 230, 223, 0.10) 46%,
              rgba(199, 122, 155, 0.14) 52%, transparent 68%);
  transform: translateX(-130%) skewX(-8deg);
  transition: transform 0.9s var(--ease);
  pointer-events: none;
}
.svc:hover .svc__media::after { transform: translateX(130%) skewX(-8deg); }
.svc__media img { will-change: transform, clip-path; }

/* ============================================================
   Book shine on hover
   ============================================================ */
.book__cover { overflow: visible; }
.book__cover img { position: relative; }
.book__cover::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(115deg, transparent 35%, rgba(237, 230, 223, 0.16) 48%, transparent 62%);
  transform: translateX(-120%);
  transition: transform 1s var(--ease);
  pointer-events: none;
}
.book__cover:hover::before { transform: translateX(120%); }

/* ============================================================
   Nav active link (scrollspy)
   ============================================================ */
.nav__links a.is-active { color: var(--bone); }
.nav__links a.is-active::after { transform: scaleX(1); }

/* ============================================================
   Ember particles canvas
   ============================================================ */
.embers {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}
.hero__media .embers { z-index: 1; }
.ascent > .embers { z-index: 0; }

/* stats glow once counted */
.stats__num { transition: text-shadow 0.8s var(--ease); }
.stats__num.lit { text-shadow: 0 0 26px rgba(199, 122, 155, 0.55); }

/* hide custom cursor bits on touch / small screens */
@media (hover: none), (pointer: coarse), (max-width: 820px) {
  .cursor, .cursor-ring { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  :root:not(.force-motion) .loader { display: none !important; }
  :root:not(.force-motion) .wi { transform: none !important; }
  :root:not(.force-motion) .ascent__comet { display: none; }
  :root:not(.force-motion) .embers { display: none; }
}
