/* =========================================================
   Hussam Misallati — personal brand site
   Mobile-first. Dark is the brand; no light theme.
   ========================================================= */

@property --a {
  syntax: "<angle>";
  inherits: false;
  initial-value: 135deg;
}

:root {
  /* colour */
  --ink: #141214;
  --ink-2: #1b181a;
  --ink-3: #242022;
  --text: #efe7e2;
  --muted: #b9aba3;
  --rose-1: #f6d8c6;
  --rose-2: #e8b9a0;
  --rose-3: #b8775a;
  --rose-4: #7a4a36;
  --line: rgb(232 185 160 / .16);
  --line-strong: rgb(232 185 160 / .42);
  --rose-grad: linear-gradient(var(--a), var(--rose-1) 0%, var(--rose-2) 32%, var(--rose-3) 70%, var(--rose-4) 100%);
  --rose-grad-soft: linear-gradient(var(--a), var(--rose-1), var(--rose-2) 45%, var(--rose-3));

  /* type */
  --serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Jost", "Futura", "Avenir Next", system-ui, sans-serif;
  --ar: "Tajawal", "Geeza Pro", "Segoe UI", sans-serif;

  --fs-body: clamp(1rem, .96rem + .2vw, 1.0625rem);
  --fs-lead: clamp(1.125rem, 1.05rem + .45vw, 1.375rem);
  --fs-h3: clamp(1.25rem, 1.15rem + .5vw, 1.5rem);
  --fs-h2: clamp(2.125rem, 1.6rem + 2.6vw, 3.75rem);
  --fs-hero: clamp(3.25rem, 1.4rem + 10vw, 8.25rem);

  /* space */
  --gutter-l: 2.5rem;            /* room for the vertical tab on phones */
  --gutter-r: 1.25rem;
  --section-y: clamp(4.5rem, 3rem + 7vw, 9rem);
  --header-h: 60px;
  --radius-s: 6px;
  --radius-m: 14px;

  /* motion */
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-in: cubic-bezier(.5, 0, .75, 0);
  --dur-1: .18s;
  --dur-2: .45s;
  --dur-3: .9s;

  --z-glow: 1;
  --z-bar: 80;
  --z-menu: 90;
  --z-header: 100;

  color-scheme: dark;
}

@media (min-width: 900px) {
  :root { --gutter-l: 4.5rem; --gutter-r: 3rem; --header-h: 76px; }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.65;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
/* film grain — static, never animated */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-color: var(--line-strong); text-underline-offset: .2em; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 500; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure, blockquote { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a, button { touch-action: manipulation; }
[hidden] { display: none !important; }
::selection { background: var(--rose-3); color: var(--ink); }

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--rose-2);
  outline-offset: 3px;
  border-radius: 4px;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: 1rem; top: -4rem; z-index: 300;
  padding: .75rem 1.25rem; background: var(--rose-2); color: var(--ink);
  font-weight: 500; border-radius: 999px; text-decoration: none;
  transition: top var(--dur-1) var(--ease);
}
.skip:focus-visible { top: 1rem; }

.wrap {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--gutter-l) var(--gutter-r);
}

/* ---------- type helpers ---------- */
.h2 {
  font-family: var(--serif);
  font-size: var(--fs-h2);
  font-weight: 500;
  font-optical-sizing: auto;
  line-height: 1.04;
  letter-spacing: -.01em;
  text-wrap: balance;
  max-width: 18ch;
  margin-bottom: .45em;
}
.h3 {
  font-family: var(--serif);
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: .5em;
  color: var(--rose-1);
}
.lead { font-size: var(--fs-lead); line-height: 1.55; font-weight: 300; color: var(--text); }
.section__intro { color: var(--muted); max-width: 46ch; margin-bottom: 2.5rem; }

/* ---------- buttons ---------- */
.btn {
  --a: 120deg;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 52px;
  padding: .85rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: .02em;
  text-decoration: none;
  white-space: nowrap;
  transition: --a var(--dur-3) var(--ease), transform var(--dur-1) var(--ease), background-color var(--dur-2), border-color var(--dur-2), color var(--dur-2);
}
.btn--primary {
  color: var(--ink);
  background: var(--rose-grad-soft);
  box-shadow: 0 10px 30px -12px rgb(184 119 90 / .55), inset 0 1px 0 rgb(255 255 255 / .35);
}
.btn--ghost {
  color: var(--rose-1);
  border-color: var(--line-strong);
  background: rgb(20 18 20 / .35);
}
.btn--small { min-height: 44px; padding: .55rem 1.2rem; font-size: .95rem; }
.btn--block { width: 100%; }
.btn:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { --a: 300deg; }
  .btn--ghost:hover { border-color: var(--rose-2); background: rgb(232 185 160 / .08); }
}

.icon-btn {
  display: grid; place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--rose-1);
  transition: transform var(--dur-1) var(--ease), background-color var(--dur-2), opacity var(--dur-2);
}
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn:active { transform: scale(.92); }
.icon-btn:disabled { opacity: .35; cursor: default; }
@media (hover: hover) { .icon-btn:not(:disabled):hover { background: rgb(232 185 160 / .1); } }

/* ---------- vertical side-tab motif ---------- */
.section { position: relative; padding-block: var(--section-y); }
.section + .section { border-top: 1px solid var(--line); }
.tab {
  position: absolute;
  left: 0;
  top: var(--section-y);
  margin: 0;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  padding: 1.1rem .32rem;
  font-family: var(--sans);
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .32em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--ink);
  background: var(--rose-grad-soft);
  border-radius: 0 4px 4px 0;
  white-space: nowrap;
}
@media (min-width: 900px) {
  .tab { padding: 1.5rem .55rem; font-size: .75rem; }
}

/* ---------- header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-header);
  height: var(--header-h);
  transition: background-color var(--dur-2), border-color var(--dur-2), backdrop-filter var(--dur-2);
  border-bottom: 1px solid transparent;
  padding-top: env(safe-area-inset-top);
  box-sizing: content-box;
}
.site-header.is-scrolled {
  background: rgb(20 18 20 / .78);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
}
.site-header__inner {
  height: 100%;
  max-width: 1400px;
  margin-inline: auto;
  padding-inline: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: inline-flex; align-items: center; gap: .7rem;
  min-height: 44px;
  text-decoration: none;
  color: var(--rose-2);
}
.brand__mark { width: 34px; height: 33px; }
.brand__name {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity var(--dur-2), transform var(--dur-2) var(--ease);
}
.is-scrolled .brand__name, .menu-open .brand__name { opacity: 1; transform: none; }

.nav-inline { display: none; }
.menu-toggle {
  display: inline-flex; align-items: center; gap: .75rem;
  min-height: 44px; min-width: 44px;
  padding: .5rem .25rem .5rem .75rem;
  background: none; border: 0;
  color: var(--text);
  font-size: .95rem; letter-spacing: .04em;
}
.menu-toggle__bars { position: relative; width: 26px; height: 12px; }
.menu-toggle__bars i {
  position: absolute; left: 0; right: 0; height: 1.5px;
  background: var(--rose-2);
  transition: transform var(--dur-2) var(--ease), top var(--dur-2) var(--ease);
}
.menu-toggle__bars i:first-child { top: 0; }
.menu-toggle__bars i:last-child { top: 10px; left: 8px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars i:first-child { top: 5px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars i:last-child { top: 5px; left: 0; transform: rotate(-45deg); }

@media (min-width: 1000px) {
  .menu-toggle { display: none; }
  .nav-inline { display: flex; align-items: center; gap: 2rem; }
  .nav-inline a:not(.btn) {
    position: relative;
    font-size: .95rem; letter-spacing: .03em;
    text-decoration: none; color: var(--muted);
    padding-block: .6rem;
    transition: color var(--dur-2);
  }
  .nav-inline a:not(.btn)::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: .3rem; height: 1px;
    background: var(--rose-2); transform: scaleX(0); transform-origin: left;
    transition: transform var(--dur-2) var(--ease);
  }
  .nav-inline a:not(.btn):hover, .nav-inline a[aria-current="true"] { color: var(--text); }
  .nav-inline a:not(.btn):hover::after, .nav-inline a[aria-current="true"]::after { transform: scaleX(1); }
  .brand__name { opacity: 1; transform: none; }
}

/* ---------- full-screen menu ---------- */
.menu {
  position: fixed;
  inset: 0;
  z-index: var(--z-menu);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--header-h) + env(safe-area-inset-top) + 2rem) 1.5rem calc(2rem + env(safe-area-inset-bottom));
  background:
    radial-gradient(120% 60% at 100% 0%, rgb(184 119 90 / .22), transparent 60%),
    var(--ink);
  clip-path: circle(0% at calc(100% - 44px) 30px);
  transition: clip-path .6s var(--ease);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.menu.is-open { clip-path: circle(150% at calc(100% - 44px) 30px); }
.menu__list { counter-reset: m; }
.menu__list li {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
  transition-delay: calc(.12s + var(--i) * 45ms);
}
.menu.is-open .menu__list li { opacity: 1; transform: none; }
.menu__list a {
  display: flex; align-items: baseline; gap: 1rem;
  min-height: 56px;
  padding-block: .35rem;
  font-family: var(--serif);
  font-size: clamp(1.9rem, 8.5vw, 3rem);
  line-height: 1.15;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.menu__list a:active span { color: var(--rose-2); }
.menu__foot {
  display: grid; gap: .25rem; margin-top: 2rem;
  opacity: 0; transition: opacity .5s .45s;
}
.menu.is-open .menu__foot { opacity: 1; }
.menu__line { display: inline-flex; align-items: center; min-height: 44px; color: var(--rose-2); text-decoration: none; font-size: 1.05rem; }
body:has(.menu.is-open) { overflow: hidden; }

/* ---------- cursor glow (desktop only) ---------- */
.cursor-glow { display: none; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .cursor-glow {
    display: block;
    position: fixed; left: 0; top: 0;
    width: 560px; height: 560px; margin: -280px 0 0 -280px;
    z-index: var(--z-glow);
    pointer-events: none;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgb(232 185 160 / .075), transparent 70%);
    transform: translate3d(-999px, -999px, 0);
    will-change: transform;
  }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: calc(var(--header-h) + 1rem) var(--gutter-r) calc(2rem + env(safe-area-inset-bottom)) 1.25rem;
  overflow: hidden;
}
.hero__texture {
  position: absolute; inset: 0; z-index: -3;
  background: url("../assets/img/texture-tall.webp") center / cover no-repeat;
  opacity: .5;
}
.hero__texture::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(90% 60% at 80% 20%, transparent, var(--ink) 85%);
}
.hero__media {
  position: absolute;
  top: 0; right: 0;
  width: 84%;
  height: 72%;
  margin: 0;
  z-index: -1;
}
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 55% 10%;
  -webkit-mask-image: linear-gradient(to bottom, #000 42%, transparent 98%), linear-gradient(to right, transparent 0%, #000 38%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, #000 42%, transparent 98%), linear-gradient(to right, transparent 0%, #000 38%);
  mask-composite: intersect;
  animation: heroImg 1.6s var(--ease) both;
}
@keyframes heroImg { from { opacity: 0; transform: scale(1.06); } }

.hm-anim {
  position: absolute;
  top: calc(var(--header-h) + 1.25rem);
  left: 1.25rem;
  width: clamp(104px, 30vw, 170px);
  height: auto;
  aspect-ratio: 471 / 458;
  overflow: visible;
  filter: drop-shadow(0 8px 24px rgb(0 0 0 / .5));
}
.hm-anim__stroke {
  stroke-width: 2.2;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: hmDraw 2.4s .2s cubic-bezier(.6, .1, .3, 1) forwards, hmStrokeOut .9s 2.4s ease forwards;
}
.hm-anim__fill { opacity: 0; animation: hmFill 1.1s 1.7s ease forwards; }
.hm-anim__sheen { transform: translateX(-280px); animation: hmSheen 9s 2.5s var(--ease) infinite; }
@keyframes hmDraw { to { stroke-dashoffset: 0; } }
@keyframes hmStrokeOut { to { opacity: .35; } }
@keyframes hmFill { to { opacity: 1; } }
@keyframes hmSheen {
  0% { transform: translateX(-280px); }
  16%, 100% { transform: translateX(660px); }
}

.hero__title {
  font-family: var(--serif);
  font-size: var(--fs-hero);
  font-weight: 500;
  font-optical-sizing: auto;
  line-height: .9;
  letter-spacing: -.015em;
  margin: 0 0 .25em;
}
.hero__line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__line > span {
  --a: 100deg;
  display: inline-block;
  background: var(--rose-grad);
  background-size: 140% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: lineUp 1.1s var(--ease) both;
}
.hero__line:nth-child(1) > span { animation-delay: .35s; }
.hero__line:nth-child(2) > span { animation-delay: .5s; }
@keyframes lineUp { from { transform: translateY(105%); } }

.hero__copy { position: static; display: flex; flex-direction: column; }
.hero__role {
  font-size: var(--fs-lead);
  font-weight: 300;
  line-height: 1.4;
  margin-bottom: .35rem;
  max-width: 30ch;
}
.hero__role span { color: var(--rose-2); }
.hero__place { color: var(--muted); font-size: .95rem; margin-bottom: 1.5rem; }
.hero__role, .hero__place, .hero__ctas { animation: fadeIn 1s .85s var(--ease) both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } }
.hero__ctas { display: grid; gap: .5rem; }
.hero__ctas .btn--ghost { border-color: transparent; background: none; text-decoration: underline; text-decoration-color: var(--line-strong); }
.hero__scroll { display: none; }

@media (min-width: 600px) {
  .hero__ctas { display: flex; flex-wrap: wrap; gap: .75rem; }
  .hero__ctas .btn--ghost { border-color: var(--line-strong); text-decoration: none; background: rgb(20 18 20 / .35); }
}

@media (min-width: 900px) {
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    align-items: center;
    gap: 3rem;
    padding: calc(var(--header-h) + 2rem) var(--gutter-r) 4rem var(--gutter-l);
    min-height: min(100svh, 980px);
  }
  .hero__texture { background-image: url("../assets/img/texture-1600.webp"); opacity: .45; }
  .hero__copy { grid-column: 1; grid-row: 1; position: relative; }
  .hm-anim { position: relative; top: auto; left: auto; width: clamp(130px, 12vw, 190px); margin-bottom: 1.75rem; }
  .hero__media {
    position: relative;
    grid-column: 2; grid-row: 1;
    width: 100%;
    height: min(78svh, 760px);
    justify-self: end;
    max-width: 480px;
  }
  .hero__media::before {
    content: "";
    position: absolute; inset: -14px 14px 14px -14px;
    border: 1px solid var(--line-strong);
    border-radius: 999px 999px 4px 4px;
    pointer-events: none;
  }
  .hero__media img {
    border-radius: 999px 999px 4px 4px;
    -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
  }
  .hero__scroll {
    display: grid; place-items: center;
    position: absolute; left: 50%; bottom: 1.5rem;
    width: 44px; height: 44px; margin-left: -22px;
  }
  .hero__scroll span { width: 1px; height: 36px; background: linear-gradient(var(--rose-2), transparent); animation: cue 2.4s ease-in-out infinite; transform-origin: top; }
  @keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
}

/* =========================================================
   PROOF (stats + logos)
   ========================================================= */
.proof {
  padding: 3rem var(--gutter-r) 3.5rem 1.25rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(to bottom, var(--ink-2), var(--ink));
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 1100px;
  margin: 0 auto 2.75rem;
}
.stat {
  display: flex; flex-direction: column-reverse; justify-content: flex-end;
  padding-inline: .6rem;
  text-align: center;
}
.stat + .stat { border-left: 1px solid var(--line); }
.stat dd {
  margin: 0 0 .35rem;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 1rem + 4.6vw, 4.25rem);
  font-weight: 500;
  line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
  white-space: nowrap;
  color: var(--rose-1);
}
.stat__suf { color: var(--rose-3); }
.stat dt { font-size: .875rem; line-height: 1.35; color: var(--muted); }

.proof__row { max-width: 1100px; margin: 0 auto; }
.proof__row + .proof__row { margin-top: 2rem; }
.proof__label {
  display: flex; align-items: center; gap: 1rem;
  font-size: .875rem; color: var(--muted); margin-bottom: 1rem;
}
.proof__label::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.proof__logos { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.proof__logos a { display: block; border-radius: var(--radius-s); transition: transform var(--dur-1) var(--ease); }
.proof__logos a:active { transform: scale(.96); }
.proof__logos img, .venture__logo {
  width: 100%;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 14%, #000 86%, transparent), linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 14%, #000 86%, transparent), linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
  mask-composite: intersect;
}
.proof__press { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.proof__press img { width: 100%; border-radius: 8px; opacity: .9; }
@media (min-width: 760px) {
  .proof { padding-inline: var(--gutter-l) var(--gutter-r); }
  .proof__row { display: grid; grid-template-columns: 11rem 1fr; align-items: center; gap: 2rem; }
  .proof__label { margin: 0; }
  .proof__press { grid-template-columns: repeat(6, 1fr); max-width: 760px; }
  .proof__logos { gap: 2rem; max-width: 760px; }
}

/* =========================================================
   PROFILE
   ========================================================= */
.profile__grid { display: grid; gap: 2.25rem; }
.profile__photo { position: relative; border-radius: var(--radius-m); overflow: hidden; }
.profile__photo img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.profile__photo::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  background: linear-gradient(to top, rgb(20 18 20 / .55), transparent 40%);
}
.profile__text p:not(.lead) { color: var(--muted); max-width: 62ch; }
.profile__text .lead { max-width: 34ch; }

.disclose { margin-top: 1.25rem; }
.disclose__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur-2) var(--ease);
}
.disclose__inner { overflow: hidden; }
.disclose__inner > :first-child { margin-top: 1.25rem; }
.disclose.is-open .disclose__body { grid-template-rows: 1fr; }
.disclose__btn {
  display: inline-flex; align-items: center; gap: .5rem;
  min-height: 48px; padding: .5rem 0;
  background: none; border: 0;
  color: var(--rose-2); font-weight: 500;
  border-bottom: 1px solid var(--line-strong);
}
.disclose__btn svg { width: 18px; height: 18px; transform: rotate(90deg); transition: transform var(--dur-2) var(--ease); }
.disclose.is-open .disclose__btn svg { transform: rotate(-90deg); }
.disclose__btn [data-when="open"], .disclose.is-open .disclose__btn [data-when="closed"] { display: none; }
.disclose.is-open .disclose__btn [data-when="open"] { display: inline; }
.no-js .disclose__body { grid-template-rows: 1fr; }
.no-js .disclose__btn { display: none; }

@media (min-width: 900px) {
  .profile__grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 5rem; align-items: center; }
  .profile__photo img { aspect-ratio: 4 / 5; object-position: 50% 30%; }
}

/* =========================================================
   JOURNEY timeline
   ========================================================= */
.timeline {
  position: relative;
  padding-left: 2.25rem;
  view-timeline: --tl block;
  display: grid;
  gap: 1.75rem;
}
.timeline__rail {
  position: absolute;
  left: .5rem; top: .9rem; bottom: .9rem;
  width: 1px;
  background: var(--line);
}
.timeline__progress {
  position: absolute; inset: 0;
  background: linear-gradient(var(--rose-1), var(--rose-3));
  transform-origin: top;
  transform: scaleY(var(--p, 0));
  box-shadow: 0 0 12px rgb(232 185 160 / .5);
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .timeline__progress {
      animation: grow linear both;
      animation-timeline: --tl;
      animation-range: cover 50vh cover calc(100% - 50vh);
    }
  }
}
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }

.tl { position: relative; }
.tl::before {
  content: "";
  position: absolute;
  left: calc(-2.25rem + .5rem - 6px);
  top: .7rem;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--ink);
  border: 1px solid var(--rose-2);
  box-shadow: 0 0 0 4px var(--ink);
}
.tl::after {
  content: "";
  position: absolute;
  left: calc(-2.25rem + .5rem - 2px);
  top: calc(.7rem + 4px);
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--rose-2);
}
.tl__year {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem);
  line-height: 1.1;
  color: var(--rose-2);
  margin-bottom: .6rem;
  font-variant-numeric: lining-nums;
}
.tl__card {
  padding: 1.15rem 1.25rem 1rem;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
}
.tl__card .h3 { font-size: 1.2rem; }
.tl__card p { color: var(--muted); margin: 0; }

.highlight {
  --a: 120deg;
  display: grid;
  gap: .5rem 1.75rem;
  margin-top: 3rem;
  padding: 1.5rem 1.4rem;
  border: 1px solid transparent;
  border-radius: var(--radius-m);
  background:
    linear-gradient(var(--ink-2), var(--ink-2)) padding-box,
    var(--rose-grad) border-box;
}
.highlight__num {
  font-family: var(--serif);
  font-size: clamp(3rem, 2rem + 5vw, 5rem);
  line-height: 1;
  margin: 0;
  color: var(--rose-1);
  font-variant-numeric: lining-nums tabular-nums;
}
.highlight__title { font-family: var(--serif); font-size: 1.25rem; color: var(--text); margin-bottom: .3rem; }
.highlight p:last-child { color: var(--muted); margin: 0; }

@media (min-width: 900px) {
  .timeline { padding-left: 0; gap: 0; }
  .timeline__rail { left: 50%; }
  .tl { width: 50%; padding: 0 3.5rem 2.5rem 0; text-align: right; }
  .tl:nth-child(odd) { margin-left: 50%; padding: 0 0 2.5rem 3.5rem; text-align: left; }
  .tl::before { left: auto; right: -7px; }
  .tl::after { left: auto; right: -3px; }
  .tl:nth-child(odd)::before { right: auto; left: -6px; }
  .tl:nth-child(odd)::after { right: auto; left: -2px; }
  .tl:nth-child(n+3) { margin-top: -4.5rem; }
  .highlight { grid-template-columns: auto 1fr; align-items: center; max-width: 820px; margin-inline: auto; padding: 2rem 2.5rem; }
}

/* =========================================================
   VENTURES rail
   ========================================================= */
.rail-wrap { container-type: inline-size; }
.rail {
  display: flex;
  gap: .9rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter-l);
  padding: .5rem var(--gutter-r) 1.25rem var(--gutter-l);
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.venture {
  flex: 0 0 min(86%, 420px);
  scroll-snap-align: start;
  display: flex; flex-direction: column;
  padding: 1.25rem 1.25rem 1rem;
  background: linear-gradient(to bottom, var(--ink-3), var(--ink-2));
  border: 1px solid var(--line);
  border-radius: 20px;
  transform-style: preserve-3d;
  transition: transform var(--dur-2) var(--ease), border-color var(--dur-2);
}
.venture:active { transform: scale(.985); }
.venture__head p { color: var(--muted); }
.venture__logo { height: 92px; width: auto; max-width: 100%; margin: -.25rem 0 .75rem -.5rem; object-fit: contain; }
.venture__subs { margin-bottom: 1.25rem; }
.venture__subs--plates { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.venture__subs--plates li { display: grid; gap: .35rem; font-size: .75rem; line-height: 1.3; color: var(--muted); }
.venture__subs--plates img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 6px; }
.venture__subs--tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.venture__subs--tags li {
  padding: .4rem .85rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: .9rem;
  color: var(--rose-1);
}
.venture__subs--wide { display: grid; gap: .6rem; }
.venture__subs--wide li {
  display: grid; grid-template-columns: 104px 1fr; align-items: center; gap: .9rem;
  font-size: .9rem; line-height: 1.35; color: var(--muted);
}
.venture__subs--wide img { width: 104px; height: 56px; object-fit: contain; background: #1a1719; border-radius: 6px; border: 1px solid var(--line); }
.venture__link {
  margin-top: auto;
  display: inline-flex; align-items: center; justify-content: space-between; gap: .5rem;
  min-height: 52px;
  padding-top: .5rem;
  border-top: 1px solid var(--line);
  text-decoration: none;
  color: var(--rose-2); font-weight: 500;
}
.venture__link svg { width: 22px; height: 22px; transition: transform var(--dur-2) var(--ease); }
@media (hover: hover) { .venture__link:hover svg { transform: translate(3px, -3px); } }

.rail__hint {
  display: flex; align-items: center; gap: .75rem;
  padding-inline: var(--gutter-l) var(--gutter-r);
  font-size: .875rem; color: var(--muted); margin: 0;
}
.rail__hint::after { content: ""; width: 40px; height: 1px; background: var(--rose-3); }

@container (min-width: 960px) {
  .rail {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: visible;
    max-width: 1240px;
    margin-inline: auto;
    gap: 1.5rem;
  }
  .rail__hint { display: none; }
}

.roles {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.roles__list { display: grid; gap: 0; }
.roles__list li {
  position: relative;
  padding: .7rem 0 .7rem 1.4rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.roles__list li::before {
  content: ""; position: absolute; left: 0; top: 1.3rem;
  width: 6px; height: 6px; transform: rotate(45deg);
  background: var(--rose-3);
}
@media (min-width: 760px) {
  .roles { display: grid; grid-template-columns: 14rem 1fr; gap: 2rem; }
  .roles__list { grid-template-columns: 1fr 1fr; column-gap: 2.5rem; }
}

/* =========================================================
   PHILOSOPHY
   ========================================================= */
.philosophy {
  background:
    linear-gradient(to bottom, var(--ink) 0%, rgb(20 18 20 / .8) 30%, var(--ink) 100%),
    url("../assets/img/texture-tall.webp") center / cover;
}
@media (min-width: 900px) {
  .philosophy { background-image: linear-gradient(to bottom, var(--ink) 0%, rgb(20 18 20 / .8) 30%, var(--ink) 100%), url("../assets/img/texture-1600.webp"); }
}
.pillars { display: grid; gap: 1rem; margin-top: 2rem; }
.pillar {
  padding: 1.6rem 1.4rem 1.2rem;
  background: rgb(27 24 26 / .85);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
}
.pillar::before {
  content: ""; display: block; width: 44px; height: 2px; margin-bottom: 1.25rem;
  background: var(--rose-grad);
}
.pillar p { color: var(--muted); }
.pillar p:last-child { margin-bottom: 0; }
@media (min-width: 900px) {
  .pillars { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
  .pillar { padding: 2rem 1.75rem 1.5rem; }
}

.vision-quote {
  position: relative;
  margin-top: 4rem;
  padding: 2.75rem 0 0;
  max-width: 980px;
  margin-inline: auto;
  text-align: center;
}
.vision-quote::before {
  --a: 160deg;
  content: "";
  position: absolute; left: 50%; top: 0;
  width: 72px; height: 1px; margin-left: -36px;
  background: var(--rose-grad);
}
.vision-quote blockquote p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.4rem, 1rem + 2.2vw, 2.6rem);
  line-height: 1.32;
  text-wrap: balance;
  color: var(--text);
}
.vision-quote figcaption { color: var(--muted); font-size: .9rem; }

/* =========================================================
   WORD from Hussam
   ========================================================= */
.word { overflow: hidden; }
.word__inner { max-width: 880px; }
.word__fig { position: relative; }
.word__mark {
  position: absolute; right: -8%; top: -10%;
  width: min(70vw, 460px); height: auto; aspect-ratio: 471 / 458;
  color: var(--rose-2); opacity: .06;
  pointer-events: none;
}
.word__fig blockquote { position: relative; }
.word__big {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 1.2rem + 3.4vw, 3.6rem);
  line-height: 1.12;
  text-wrap: balance;
  color: var(--rose-1);
  margin-bottom: 1.25rem;
}
.word__fig blockquote p:not(.word__big) { font-size: var(--fs-lead); font-weight: 300; line-height: 1.6; max-width: 54ch; }
.word__fig figcaption { display: flex; align-items: flex-end; gap: 1rem; margin-top: 1.5rem; }
.word__sign { width: clamp(180px, 40vw, 280px); }
.word__fig figcaption span { color: var(--muted); font-size: .9rem; padding-bottom: .9rem; }

/* =========================================================
   VOICES carousel
   ========================================================= */
.voices__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.voices__head .h2 { margin-bottom: 0; }
.carousel-ctrl { display: none; gap: .5rem; }
@media (min-width: 760px) { .carousel-ctrl { display: flex; } }
.carousel__track {
  display: flex;
  gap: .9rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter-l);
  padding: .5rem var(--gutter-r) 1rem var(--gutter-l);
  scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track:focus-visible { outline-offset: -4px; }
.voice { flex: 0 0 min(86%, 400px); scroll-snap-align: start; }
.voice figure {
  height: 100%;
  display: flex; flex-direction: column;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}
.voice__img {
  width: 100%; height: 280px;
  object-fit: cover; object-position: 50% 15%;
  filter: grayscale(1) contrast(1.05);
  -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent);
  mask-image: linear-gradient(to bottom, #000 60%, transparent);
}
.voice blockquote { padding: 0 1.4rem; margin-top: -1.25rem; position: relative; flex: 1; }
.voice blockquote p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.0625rem, 1rem + .3vw, 1.2rem);
  line-height: 1.5;
}
.voice figcaption {
  display: grid; gap: .15rem;
  padding: 1rem 1.4rem 1.4rem;
  border-top: 1px solid var(--line);
  margin-inline: 1.4rem;
  padding-inline: 0;
}
.voice figcaption strong { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; color: var(--rose-1); }
.voice figcaption span { font-size: .875rem; line-height: 1.4; color: var(--muted); }
.dots { display: flex; justify-content: center; gap: 0; margin-top: .5rem; }
.dots button {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: none; border: 0; padding: 0;
}
.dots button::before {
  content: ""; width: 8px; height: 8px; border-radius: 999px;
  background: var(--line-strong);
  transition: width var(--dur-2) var(--ease), background-color var(--dur-2);
}
.dots button[aria-current="true"]::before { width: 26px; background: var(--rose-2); }
@media (min-width: 1100px) {
  .carousel__track { padding-inline: max(var(--gutter-l), calc((100vw - 1240px) / 2 + var(--gutter-l))) var(--gutter-r); scroll-padding-inline: max(var(--gutter-l), calc((100vw - 1240px) / 2 + var(--gutter-l))); }
}

/* =========================================================
   PRESS
   ========================================================= */
.press__list { display: grid; gap: .75rem; }
.press-card {
  display: grid;
  grid-template-columns: 64px 1fr 24px;
  grid-template-areas: "logo meta go" "title title title";
  align-items: center;
  gap: .75rem .9rem;
  min-height: 96px;
  padding: 1rem 1.1rem 1.1rem;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  text-decoration: none;
  transition: transform var(--dur-1) var(--ease), border-color var(--dur-2), background-color var(--dur-2);
}
.press-card:active { transform: scale(.98); background: var(--ink-3); }
.press-card img { grid-area: logo; width: 64px; border-radius: 8px; }
.press-card__body { display: contents; }
.press-card__go { grid-area: go; }
.press-card__meta { grid-area: meta; }
.press-card__title {
  grid-area: title;
  padding-top: .75rem;
  border-top: 1px solid var(--line);
  font-family: var(--ar);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.6;
  color: var(--text);
  text-align: right;
}
.press-card__meta { display: inline-flex; align-items: center; gap: .35rem; font-size: .85rem; color: var(--rose-2); }
.press-card__play { width: 14px; height: 14px; }
.press-card__go { width: 22px; height: 22px; color: var(--rose-3); transition: transform var(--dur-2) var(--ease), color var(--dur-2); }
@media (hover: hover) {
  .press-card:hover { border-color: var(--line-strong); }
  .press-card:hover .press-card__go { transform: translate(3px, -3px); color: var(--rose-1); }
}
@media (min-width: 760px) { .press__list { grid-template-columns: 1fr 1fr; gap: 1rem; } }
@media (min-width: 1150px) { .press__list { grid-template-columns: repeat(3, 1fr); } }

/* =========================================================
   CONTACT
   ========================================================= */
.contact { background: radial-gradient(80% 60% at 0% 100%, rgb(184 119 90 / .12), transparent 70%); }
.contact__grid { display: grid; gap: 3rem; }
.quick { display: grid; gap: .6rem; margin-bottom: 2rem; }
.quick__item {
  display: flex; align-items: center; gap: 1rem;
  min-height: 72px;
  padding: .8rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--ink-2);
  text-decoration: none;
  transition: transform var(--dur-1) var(--ease), border-color var(--dur-2);
}
.quick__item:active { transform: scale(.98); }
.quick__item svg {
  flex: none;
  width: 44px; height: 44px; padding: 11px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: var(--rose-2);
}
.quick__item > span { display: grid; min-width: 0; }
.quick__item strong { font-weight: 500; }
.quick__item span span { color: var(--muted); font-size: .95rem; overflow-wrap: anywhere; }
.quick__item--primary {
  --a: 120deg;
  border-color: transparent;
  background: linear-gradient(var(--ink-3), var(--ink-3)) padding-box, var(--rose-grad) border-box;
}
.quick__item--primary svg { background: var(--rose-grad-soft); color: var(--ink); border-color: transparent; }
@media (hover: hover) { .quick__item:hover { border-color: var(--line-strong); } }

.socials { display: flex; flex-wrap: wrap; gap: .6rem; }
.socials a {
  display: grid; place-items: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: var(--rose-1);
  transition: transform var(--dur-1) var(--ease), background-color var(--dur-2), color var(--dur-2);
}
.socials svg { width: 22px; height: 22px; }
.socials a:active { transform: scale(.92); }
@media (hover: hover) { .socials a:hover { background: var(--rose-2); color: var(--ink); } }

.form {
  padding: 1.5rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgb(27 24 26 / .8);
}
.form__note { color: var(--muted); font-size: .95rem; }
.field { display: grid; gap: .4rem; margin-bottom: 1.1rem; }
.field label { font-size: .95rem; font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 52px;
  padding: .8rem 1rem;
  font-size: 1rem;
  background: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  transition: border-color var(--dur-2), box-shadow var(--dur-2);
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--rose-2) 50%), linear-gradient(135deg, var(--rose-2) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.field textarea { resize: vertical; min-height: 140px; }
.field:has(:focus-visible) label { color: var(--rose-2); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: none; border-color: var(--rose-2); box-shadow: 0 0 0 3px rgb(232 185 160 / .2);
}
.field [aria-invalid="true"] { border-color: #ff9b8a; }
.field__err { margin: 0; color: #ffb4a6; font-size: .9rem; }

@media (min-width: 900px) {
  .contact__grid { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
  .form { padding: 2rem; }
}

/* =========================================================
   FOOTER + ACTION BAR
   ========================================================= */
.footer {
  border-top: 1px solid var(--line);
  padding: 3rem 0 calc(7rem + env(safe-area-inset-bottom));
  text-align: center;
}
.footer__inner { display: grid; justify-items: center; gap: .5rem; padding-inline: var(--gutter-r); }
.footer__mark { width: 54px; height: 53px; color: var(--rose-3); margin-bottom: .5rem; }
.footer__name { font-family: var(--serif); font-size: 1.2rem; margin: 0; }
.footer__small { color: var(--muted); font-size: .875rem; margin: 0; }
.footer__top { display: inline-flex; align-items: center; min-height: 44px; color: var(--rose-2); font-size: .95rem; }
@media (min-width: 900px) { .footer { padding-bottom: 3rem; } }

.actionbar {
  position: fixed;
  left: .75rem; right: .75rem;
  bottom: calc(.75rem + env(safe-area-inset-bottom));
  z-index: var(--z-bar);
  display: grid;
  grid-template-columns: 1fr 1fr 1.35fr;
  gap: .35rem;
  padding: .35rem;
  border-radius: 20px;
  border: 1px solid var(--line-strong);
  background: rgb(20 18 20 / .78);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: 0 18px 40px -12px rgb(0 0 0 / .7);
  transform: translateY(calc(100% + 2rem));
  transition: transform var(--dur-2) var(--ease);
}
.actionbar.is-visible { transform: none; }
.actionbar a {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 52px;
  border-radius: 15px;
  text-decoration: none;
  font-size: .95rem; font-weight: 500;
  color: var(--text);
  transition: transform var(--dur-1) var(--ease), background-color var(--dur-1);
}
.actionbar a:active { transform: scale(.95); background: rgb(232 185 160 / .1); }
.actionbar svg { width: 20px; height: 20px; color: var(--rose-2); }
.actionbar .actionbar__primary { --a: 120deg; background: var(--rose-grad-soft); color: var(--ink); }
.actionbar .actionbar__primary svg { color: var(--ink); }
@media (min-width: 900px) { .actionbar { display: none; } }

/* =========================================================
   Tap interactions (touch-first; mouse gets them too)
   ========================================================= */
.has-ripple { position: relative; overflow: hidden; isolation: isolate; }
.tap-ripple {
  position: absolute; left: var(--x); top: var(--y);
  width: var(--d); height: var(--d); margin: calc(var(--d) / -2) 0 0 calc(var(--d) / -2);
  border-radius: 50%;
  background: radial-gradient(circle, rgb(246 216 198 / .38), rgb(232 185 160 / .14) 45%, transparent 70%);
  pointer-events: none; z-index: -1;
  animation: ripple .7s var(--ease) forwards;
}
.btn--primary .tap-ripple { background: radial-gradient(circle, rgb(255 255 255 / .55), rgb(255 255 255 / .15) 45%, transparent 70%); }
@keyframes ripple { from { transform: scale(0); opacity: 1; } to { transform: scale(1); opacity: 0; } }

/* sparks burst */
.fx-layer { position: fixed; inset: 0; pointer-events: none; z-index: 200; overflow: hidden; }
.spark {
  position: absolute; left: var(--x); top: var(--y);
  width: var(--s); height: var(--s); margin: calc(var(--s) / -2);
  border-radius: 50%;
  background: radial-gradient(circle, #fff6ef, var(--rose-2) 55%, transparent 72%);
  animation: spark var(--t) cubic-bezier(.15, .8, .3, 1) forwards;
}
.spark--line { width: 2px; height: calc(var(--s) * 3); border-radius: 2px; background: linear-gradient(var(--rose-1), transparent); transform-origin: 50% 0; }
@keyframes spark {
  0% { transform: translate(0, 0) rotate(var(--r)) scale(1); opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) rotate(var(--r)) scale(.2); opacity: 0; }
}

/* monogram: tappable, replays + glow */
.hm-anim { cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.hm-anim.is-pop { animation: hmPop .6s var(--ease); }
@keyframes hmPop { 30% { transform: scale(.9); filter: drop-shadow(0 0 0 transparent); } 65% { transform: scale(1.06); filter: drop-shadow(0 0 22px rgb(232 185 160 / .55)); } }
.hm-hint {
  position: absolute; width: 56px; height: 56px; border-radius: 50%;
  border: 1px solid var(--rose-2); pointer-events: none;
  left: var(--x); top: var(--y); margin: -28px 0 0 -28px;
  animation: hint 2.2s var(--ease) 2 both;
}
@keyframes hint { 0% { transform: scale(.4); opacity: 0; } 30% { opacity: .8; } 100% { transform: scale(1.8); opacity: 0; } }

/* stats: tap to recount */
.stat { cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform .3s var(--ease); }
.stat:active { transform: scale(.96); }
.stat.is-pulse .stat__num { animation: statGlow .9s var(--ease); }
@keyframes statGlow { 40% { text-shadow: 0 0 24px rgb(232 185 160 / .7); color: var(--rose-1); } }

/* timeline: active card (centre of screen, or tapped) */
.tl__card { transition: transform .5s var(--ease), border-color .5s, background-color .5s, box-shadow .5s; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.tl__year { transition: transform .5s var(--ease), letter-spacing .5s var(--ease); transform-origin: left center; }
.tl.is-active .tl__card {
  transform: translateX(4px);
  border-color: rgb(232 185 160 / .45);
  background-color: var(--ink-3);
  box-shadow: 0 18px 40px -20px rgb(232 185 160 / .35);
}
.tl.is-active .tl__year { transform: scale(1.08); letter-spacing: .01em; }
.tl::before { transition: transform .4s var(--ease), box-shadow .4s; }
.tl.is-active::before { transform: scale(1.6); box-shadow: 0 0 0 6px rgb(232 185 160 / .15), 0 0 16px rgb(232 185 160 / .6); }

/* ventures: press-tilt toward the finger */
.venture { transition: transform .45s var(--ease), border-color .3s; will-change: transform; }
.venture.is-pressed { transition-duration: .15s; border-color: rgb(232 185 160 / .42); }

/* testimonials: tap portrait to reveal colour */
.voice__img { transition: filter .9s var(--ease), transform .9s var(--ease); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.voice.is-color .voice__img { filter: none; transform: scale(1.03); }
.voice figure { position: relative; }
.voice__tap {
  position: absolute; top: .75rem; right: .75rem; z-index: 2;
  font-size: .7rem; letter-spacing: .14em; text-transform: uppercase;
  padding: .35rem .7rem; border-radius: 999px;
  background: rgb(20 18 20 / .6); border: 1px solid var(--line); color: var(--rose-2);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  pointer-events: none; transition: opacity .4s;
}
.voice.is-color .voice__tap { opacity: 0; }

/* signature: writes itself in */
.word__sign { clip-path: inset(0 0 0 0); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.word__sign.is-writing { animation: write 1.8s cubic-bezier(.6, .1, .3, 1) both; }
@keyframes write { from { clip-path: inset(0 100% 0 0); } }

/* quick contact icons bounce on tap */
.quick__item.is-tapped svg, .actionbar a.is-tapped svg, .socials a.is-tapped svg { animation: iconBounce .5s var(--ease); }
@keyframes iconBounce { 35% { transform: scale(.7) rotate(-12deg); } 70% { transform: scale(1.2) rotate(6deg); } }

@media (prefers-reduced-motion: reduce) {
  .tap-ripple, .spark, .hm-hint { display: none; }
  .word__sign.is-writing { animation: none; }
}

/* =========================================================
   Reveal on scroll
   Scroll-driven where supported, IntersectionObserver otherwise.
   ========================================================= */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .reveal {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry calc(var(--i, 0) * 30px) entry calc(160px + var(--i, 0) * 30px);
    }
    .tl.reveal { animation-name: revealSide; }
  }
  @supports not (animation-timeline: view()) {
    .js .reveal {
      opacity: 0;
      transform: translateY(22px);
      transition: opacity .8s var(--ease), transform .8s var(--ease);
      transition-delay: calc(var(--i, 0) * 90ms);
    }
    .js .reveal.is-in { opacity: 1; transform: none; }
  }
}
@keyframes reveal { from { opacity: 0; transform: translateY(22px); } }
@keyframes revealSide { from { opacity: 0; transform: translateX(-14px); } }

/* =========================================================
   Reduced motion: final states, no draw, no parallax
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .hm-anim__stroke { display: none; }
  .hm-anim__fill { opacity: 1; animation: none; }
  .hm-anim__sheen-wrap { display: none; }
  .timeline__progress { transform: scaleY(1); }
  .menu { transition: none; }
}

/* header end group: language + menu */
.site-header__end { display: inline-flex; align-items: center; gap: .35rem; }
@media (min-width: 1000px) {
  .nav-inline { margin-inline-start: auto; }
  .site-header__end { margin-inline-start: 1rem; }
}

/* =========================================================
   Right-to-left (Arabic): mirror the physical bits
   ========================================================= */
[dir="rtl"] .tab { left: auto; right: 0; transform: none; border-radius: 4px 0 0 4px; }
[dir="rtl"] .hero { padding-right: 1.25rem; padding-left: var(--gutter-r); }
[dir="rtl"] .hero__texture::after { background: radial-gradient(90% 60% at 20% 20%, transparent, var(--ink) 85%); }
[dir="rtl"] .hero__media { right: auto; left: 0; }
[dir="rtl"] .hero__media img {
  -webkit-mask-image: linear-gradient(to bottom, #000 42%, transparent 98%), linear-gradient(to left, transparent 0%, #000 38%);
  mask-image: linear-gradient(to bottom, #000 42%, transparent 98%), linear-gradient(to left, transparent 0%, #000 38%);
}
[dir="rtl"] .hm-anim { left: auto; right: 1.25rem; }
[dir="rtl"] .proof { padding-right: 1.25rem; padding-left: var(--gutter-r); }
[dir="rtl"] .stat + .stat { border-left: 0; border-right: 1px solid var(--line); }
[dir="rtl"] .rail, [dir="rtl"] .carousel__track { padding-right: var(--gutter-l); padding-left: var(--gutter-r); }
/* the carousel's JS measures scrollLeft, so its track stays LTR and each slide reads RTL */
[dir="rtl"] .carousel__track { direction: ltr; }
[dir="rtl"] .carousel__track > * { direction: rtl; }
[dir="rtl"] .timeline { padding-left: 0; padding-right: 2.25rem; }
[dir="rtl"] .timeline__rail { left: auto; right: .5rem; }
[dir="rtl"] .tl::before { left: auto; right: calc(-2.25rem + .5rem - 6px); }
[dir="rtl"] .tl::after { left: auto; right: calc(-2.25rem + .5rem - 2px); }
[dir="rtl"] .tl__year { transform-origin: right center; }
[dir="rtl"] .tl.is-active .tl__card { transform: translateX(-4px); }
[dir="rtl"] .roles__list li::before { left: auto; right: 0; }
[dir="rtl"] .word__mark { right: auto; left: -8%; }
[dir="rtl"] .voice__tap { right: auto; left: .75rem; }
[dir="rtl"] :is(.venture__link, .disclose__btn, .press-card__go, .btn) svg { transform: scaleX(-1); }
[dir="rtl"] .hero__title, [dir="rtl"] .h2 { letter-spacing: 0; }
@keyframes revealSideRtl { from { opacity: 0; transform: translateX(14px); } }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) { [dir="rtl"] .tl.reveal { animation-name: revealSideRtl; } }
}
@media (min-width: 900px) {
  [dir="rtl"] .hero { padding-right: var(--gutter-l); padding-left: var(--gutter-r); }
  [dir="rtl"] .hero__media { left: auto; }
  [dir="rtl"] .hero__media img { -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 100%); mask-image: linear-gradient(to bottom, #000 70%, transparent 100%); }
  [dir="rtl"] .hero__media::before { inset: -14px -14px 14px 14px; }
}
@media (min-width: 900px) {
  [dir="rtl"] .timeline { padding-right: 0; }
  [dir="rtl"] .timeline__rail { right: 50%; }
  [dir="rtl"] .tl { padding: 0 0 2.5rem 3.5rem; text-align: left; }
  [dir="rtl"] .tl:nth-child(odd) { margin-left: 0; margin-right: 50%; padding: 0 3.5rem 2.5rem 0; text-align: right; }
  [dir="rtl"] .tl::before { right: auto; left: -7px; }
  [dir="rtl"] .tl::after { right: auto; left: -3px; }
  [dir="rtl"] .tl:nth-child(odd)::before { left: auto; right: -6px; }
  [dir="rtl"] .tl:nth-child(odd)::after { left: auto; right: -2px; }
}
/* Arabic letters have deep descenders: give the masked hero lines room */
html:lang(ar) .hero__title { line-height: 1.15; }
html:lang(ar) .hero__line { padding-bottom: .22em; margin-bottom: -.1em; }
html:lang(ko) .hero__title { line-height: 1.05; }

/* link to the /social page */
.menu__line--social { gap: .55rem; }
.menu__line--social svg { width: 20px; height: 20px; }
.social-cta {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .9rem;
  margin-top: 1.1rem; padding: .9rem 1rem;
  min-height: 68px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-m);
  background: linear-gradient(120deg, rgb(232 185 160 / .1), rgb(232 185 160 / .02) 60%);
  color: var(--text); text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform .25s var(--ease), border-color .3s, background-color .3s;
}
.social-cta:active { transform: scale(.98); }
.social-cta__icon {
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--rose-grad-soft); --a: 135deg; color: var(--ink);
}
.social-cta__icon svg { width: 24px; height: 24px; }
.social-cta__text { display: grid; gap: .15rem; }
.social-cta__text strong { font-weight: 500; font-size: 1.02rem; }
.social-cta__text span { color: var(--muted); font-size: .88rem; line-height: 1.35; }
.social-cta__go { width: 22px; height: 22px; color: var(--rose-2); transition: transform .3s var(--ease); }
@media (hover: hover) { .social-cta:hover { border-color: var(--rose-2); } .social-cta:hover .social-cta__go { transform: translateX(4px); } }
[dir="rtl"] .social-cta__go { transform: scaleX(-1); }
.footer__top + .footer__top { margin-inline-start: 1.25rem; }
