/* H&A Investment Holding · site styles
   Quiet luxury: near-black ink, ivory and stone grounds, one champagne gold. Cormorant for display, Cinzel for
   inscription caps (the logo's wordmark), Manrope for text; Amiri and IBM Plex Sans Arabic in Arabic.
   Written with logical properties so the Arabic pages mirror without overrides. */

:root {
  --ink: #0C0D0B; --ink-2: #141512; --ink-3: #1D1E1A;
  --ivory: #F3EEE5; --stone: #E7E0D3; --paper: #FAF7F1;
  --gold: #C2A36B; --gold-hi: #DDC48F; --gold-lo: #96784A; --gold-ink: #77592B;
  --on-ink: #EEE8DC; --on-ink-2: #A8A193; --on-iv: #191915; --on-iv-2: #625D52;
  --line-ink: rgba(194, 163, 107, .24); --line-ink-2: rgba(238, 232, 220, .1); --line-iv: rgba(25, 25, 21, .14);
  --f-display: "Cormorant Garamond", "Times New Roman", serif;
  --f-caps: "Cinzel", "Trajan Pro", serif;
  --f-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --side: clamp(20px, 5.2vw, 76px);
  --max: 1340px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --vb: 0px;
  --track: .26em;
  --disp-lh: 1;
  color-scheme: dark;
}
@supports (height: 100lvh) { :root { --vb: calc(100lvh - 100svh); } }
.lang-ar {
  --f-display: "Amiri", "Noto Naskh Arabic", serif;
  --f-caps: "IBM Plex Sans Arabic", sans-serif;
  --f-body: "IBM Plex Sans Arabic", system-ui, sans-serif;
  --track: 0;
  --disp-lh: 1.35;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; background: var(--ink); color: var(--on-ink); font-family: var(--f-body); font-size: 17px; line-height: 1.7; font-weight: 400; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip; }
.lang-ar body, body.lang-ar { font-size: 17.5px; line-height: 1.85; }
img, video, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; }
p, h1, h2, h3, figure, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }
::selection { background: var(--gold); color: var(--ink); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--gold); color: var(--ink); padding: 10px 16px; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--max) + var(--side) * 2); margin-inline: auto; padding-inline: var(--side); }
.wrap.narrow { max-width: calc(980px + var(--side) * 2); }

/* ---------------------------------------------------------------- type */
.eyebrow { font-family: var(--f-caps); font-size: 12.5px; letter-spacing: var(--track); text-transform: uppercase; color: var(--gold); font-weight: 500; line-height: 1.5; }
.lang-ar .eyebrow { font-size: 14px; font-weight: 500; }
.display, .h1, .h2, h3, .statement, .say { font-family: var(--f-display); font-weight: 300; text-wrap: balance; }
.lang-ar .display, .lang-ar .h1, .lang-ar .h2, .lang-ar h3, .lang-ar .statement, .lang-ar .say { font-weight: 400; }
.display { font-size: clamp(48px, 7.4vw, 124px); line-height: var(--disp-lh); letter-spacing: -.012em; }
.h1 { font-size: clamp(42px, 5.4vw, 88px); line-height: calc(var(--disp-lh) * 1.02); letter-spacing: -.01em; }
.h2 { font-size: clamp(36px, 4.3vw, 68px); line-height: calc(var(--disp-lh) * 1.05); letter-spacing: -.008em; }
.lang-ar .display { font-size: clamp(42px, 6.2vw, 104px); letter-spacing: 0; }
.lang-ar .h1 { font-size: clamp(38px, 4.6vw, 74px); letter-spacing: 0; }
.lang-ar .h2 { font-size: clamp(32px, 3.7vw, 58px); letter-spacing: 0; }
em { font-style: italic; color: var(--gold-hi); }
.ivory em, .stone em { color: var(--gold-lo); }
.ivory .eyebrow, .stone .eyebrow, .ivory .i, .stone .i { color: var(--gold-ink); }
.lang-ar em { font-style: normal; }
.lede { font-size: clamp(17.5px, 1.4vw, 21px); line-height: 1.65; color: var(--on-ink-2); max-width: 56ch; }
.ivory .lede, .stone .lede { color: var(--on-iv-2); }
h3 { font-size: clamp(24px, 2vw, 30px); line-height: 1.15; font-weight: 400; }
.i { font-family: var(--f-caps); font-size: 12px; letter-spacing: .2em; color: var(--gold); }

/* ---------------------------------------------------------------- grounds */
.ink { background: var(--ink); color: var(--on-ink); }
.ivory { background: var(--ivory); color: var(--on-iv); }
.stone { background: var(--stone); color: var(--on-iv); }
.sec { padding-block: clamp(96px, 14vh, 184px); position: relative; }
.head { display: grid; gap: 22px; margin-bottom: clamp(48px, 7vh, 88px); max-width: 880px; }
.head.row { display: flex; justify-content: space-between; align-items: end; gap: 40px; max-width: none; }
.head.row .lede { max-width: 44ch; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.split > .head { margin-bottom: 0; }

/* ---------------------------------------------------------------- buttons */
.btn-line, .btn-solid { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 50px; padding: 14px 28px; font-family: var(--f-body); font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; text-decoration: none; border: 1px solid currentColor; transition: background .45s var(--ease), color .45s var(--ease), border-color .45s var(--ease); white-space: nowrap; }
.lang-ar .btn-line, .lang-ar .btn-solid { letter-spacing: 0; font-size: 15px; font-weight: 500; }
.btn-line { color: var(--on-ink); border-color: rgba(238, 232, 220, .4); }
.btn-line:hover { background: var(--on-ink); color: var(--ink); border-color: var(--on-ink); }
.btn-line.dark, .ivory .btn-line, .stone .btn-line { color: var(--on-iv); border-color: rgba(25, 25, 21, .35); }
.btn-line.dark:hover, .ivory .btn-line:hover, .stone .btn-line:hover { background: var(--on-iv); color: var(--ivory); }
.btn-line.sm { min-height: 38px; padding: 9px 18px; font-size: 11px; }
.btn-solid { background: var(--on-iv); color: var(--ivory); border-color: var(--on-iv); }
.btn-solid:hover { background: var(--gold-lo); border-color: var(--gold-lo); }
.btn-solid.gold { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.btn-solid.gold:hover { background: var(--gold-hi); border-color: var(--gold-hi); }

/* ---------------------------------------------------------------- header */
.bar { position: fixed; inset-inline: 0; top: 0; z-index: 60; display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 22px var(--side); color: var(--on-ink); transition: background .5s var(--ease), padding .5s var(--ease), transform .6s var(--ease), border-color .5s; border-bottom: 1px solid transparent; }
.bar.solid { background: rgba(12, 13, 11, .82); -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2); padding-block: 13px; border-bottom-color: var(--line-ink-2); }
.bar.hide { transform: translateY(-101%); }
.brand { display: block; color: var(--gold); flex: none; }
.brand svg { height: 46px; width: auto; transition: height .5s var(--ease); }
.bar.solid .brand svg { height: 38px; }
.nav { display: flex; gap: clamp(18px, 2.2vw, 36px); font-size: 14px; letter-spacing: .06em; }
.lang-ar .nav { font-size: 15px; letter-spacing: 0; }
.nav a { text-decoration: none; color: rgba(238, 232, 220, .78); position: relative; padding-block: 6px; transition: color .3s; }
.nav a::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: var(--o, left); transition: transform .5s var(--ease); }
[dir="rtl"] .nav a::after { --o: right; }
.nav a:hover, .nav a[aria-current] { color: var(--on-ink); }
.nav a:hover::after, .nav a[aria-current]::after { transform: scaleX(1); }
.bar-end { display: flex; align-items: center; gap: 18px; }
.lang { display: flex; gap: 2px; }
.lang a { text-decoration: none; font-size: 11px; letter-spacing: .12em; padding: 6px 7px; color: var(--on-ink-2); font-family: var(--f-body); font-weight: 600; }
.lang a[lang="ar"] { font-family: "IBM Plex Sans Arabic", sans-serif; font-size: 13px; letter-spacing: 0; }
.lang a[aria-current] { color: var(--gold); }
.lang a:hover { color: var(--on-ink); }
.menu-btn { display: none; width: 44px; height: 44px; position: relative; }
.menu-btn i { position: absolute; inset-inline: 10px; height: 1px; background: currentColor; transition: transform .5s var(--ease), top .5s var(--ease); }
.menu-btn i:first-of-type { top: 17px; } .menu-btn i:last-of-type { top: 26px; }
.menu-open .menu-btn i:first-of-type { top: 21.5px; transform: rotate(45deg); }
.menu-open .menu-btn i:last-of-type { top: 21.5px; transform: rotate(-45deg); }
@media (max-width: 1180px) { .nav { display: none; } .menu-btn { display: block; } }
@media (max-width: 640px) { .hide-sm { display: none !important; } .brand svg { height: 36px; } .bar.solid .brand svg { height: 32px; } .bar { padding-block: 16px; } .bar-end { gap: 6px; } .lang a { padding: 6px 5px; } }

.menu { position: fixed; inset: 0; z-index: 55; background: var(--ink); color: var(--on-ink); clip-path: inset(0 0 100% 0); transition: clip-path .9s var(--ease); visibility: hidden; overflow-y: auto; }
.menu-open .menu { clip-path: inset(0 0 0 0); visibility: visible; }
.menu-in { min-height: 100%; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: 120px var(--side) calc(40px + env(safe-area-inset-bottom, 0px)); }
.menu nav { display: grid; gap: 4px; }
.menu nav a { font-family: var(--f-display); font-size: clamp(34px, 8vw, 64px); line-height: calc(var(--disp-lh) * 1.12); text-decoration: none; display: flex; align-items: baseline; gap: 18px; color: var(--on-ink); opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease), color .3s; }
.menu nav a .n { font-family: var(--f-caps); font-size: 11px; letter-spacing: .2em; color: var(--gold); }
.menu nav a[aria-current] { color: var(--gold-hi); }
.menu-open .menu nav a { opacity: 1; transform: none; }
.menu-open .menu nav a:nth-child(2) { transition-delay: .05s; } .menu-open .menu nav a:nth-child(3) { transition-delay: .1s; }
.menu-open .menu nav a:nth-child(4) { transition-delay: .15s; } .menu-open .menu nav a:nth-child(5) { transition-delay: .2s; }
.menu-open .menu nav a:nth-child(6) { transition-delay: .25s; } .menu-open .menu nav a:nth-child(7) { transition-delay: .3s; }
.menu-foot { display: grid; gap: 10px; color: var(--on-ink-2); font-size: 14px; }
.menu-foot a { text-decoration: none; }
.menu-foot .lang { margin-top: 10px; gap: 12px; }
.menu-foot .lang a { font-size: 13px; padding: 0; }

/* ---------------------------------------------------------------- scroll films */
.act { position: relative; height: calc(var(--h) * 1vh); }
@media (hover: none) and (pointer: coarse) { .act { height: calc(var(--h) * .72vh); } }
.stage { position: sticky; top: 0; height: 100vh; height: 100lvh; overflow: hidden; background: var(--ink); }
.stage canvas, .stage .poster, .stage .poster img { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage .poster img { object-fit: cover; }
.veil { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 90% at 50% 46%, transparent 40%, rgba(8, 9, 7, .55) 100%), linear-gradient(to top, rgba(8, 9, 7, .72), transparent 46%); }
#hero .title::before { content: ""; position: absolute; inset: -18% -6%; z-index: -1; background: radial-gradient(closest-side, rgba(8, 9, 7, .62), rgba(8, 9, 7, .3) 60%, transparent); pointer-events: none; }
#hero .title { z-index: 1; isolation: isolate; position: absolute; inset-inline: 0; top: calc(50% - var(--vb) / 2); translate: 0 -50%; text-align: center; padding-inline: var(--side); display: grid; justify-items: center; gap: 26px; }
#hero .title .display { max-width: 13ch; text-shadow: 0 2px 40px rgba(0, 0, 0, .35); }
#hero .title .lede { color: rgba(238, 232, 220, .82); max-width: 50ch; text-shadow: 0 1px 18px rgba(0, 0, 0, .5); }
.beat { position: absolute; inset-inline: var(--side); bottom: calc(clamp(72px, 13vh, 140px) + env(safe-area-inset-bottom, 0px) + var(--vb)); opacity: 0; visibility: hidden; will-change: opacity, transform; display: grid; gap: 16px; }
.beat.c { text-align: center; justify-items: center; }
.beat.c::before { content: ""; position: absolute; inset: -60% -10%; z-index: -1; background: radial-gradient(closest-side, rgba(8, 9, 7, .55), transparent); }
.beat { isolation: isolate; }
.say { font-size: clamp(30px, 3.6vw, 58px); line-height: calc(var(--disp-lh) * 1.12); font-style: italic; max-width: 22ch; text-shadow: 0 2px 28px rgba(0, 0, 0, .45); }
.lang-ar .say { font-style: normal; }
.say.big { font-style: normal; font-size: clamp(44px, 6.6vw, 112px); line-height: var(--disp-lh); max-width: 14ch; }
.cue { position: absolute; inset-inline: 0; bottom: calc(26px + env(safe-area-inset-bottom, 0px) + var(--vb)); display: grid; justify-items: center; gap: 12px; font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: rgba(238, 232, 220, .7); pointer-events: none; }
.cue i { width: 1px; height: 46px; background: linear-gradient(var(--gold), transparent); animation: cue 2.4s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
.rail { position: absolute; inset-inline-end: var(--side); top: calc(50% - var(--vb) / 2); translate: 0 -50%; width: 1px; height: 28vh; background: rgba(238, 232, 220, .18); }
.rail i { position: absolute; inset: 0; background: var(--gold); transform-origin: top; transform: scaleY(var(--p, 0)); }
@media (max-width: 720px) { .rail { display: none; } }

.chapter .stage canvas { transform-origin: center; }
.shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 9, 7, .78), rgba(8, 9, 7, .35) 46%, transparent 72%), linear-gradient(0deg, rgba(8, 9, 7, .6), transparent 40%); }
[dir="rtl"] .shade { transform: scaleX(-1); }
.panel { position: absolute; inset-inline-start: var(--side); bottom: calc(clamp(56px, 11vh, 120px) + env(safe-area-inset-bottom, 0px) + var(--vb)); max-width: min(600px, 86vw); display: grid; gap: 20px; opacity: 0; visibility: hidden; justify-items: start; }
.panel .body { color: rgba(238, 232, 220, .84); font-size: clamp(16px, 1.25vw, 19px); max-width: 48ch; }
.facts { display: grid; grid-template-columns: repeat(3, auto); gap: 18px 34px; padding-block: 18px 6px; border-top: 1px solid var(--line-ink); justify-content: start; }
.facts dt { font-family: var(--f-display); font-size: clamp(24px, 2.2vw, 34px); color: var(--gold-hi); line-height: 1.1; }
.facts dd { margin: 0; font-size: 13.5px; color: rgba(238, 232, 220, .78); }
.tag-ill { position: absolute; inset-inline-end: var(--side); bottom: calc(22px + env(safe-area-inset-bottom, 0px) + var(--vb)); font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: rgba(238, 232, 220, .55); }
.lang-ar .tag-ill { letter-spacing: 0; font-size: 12px; }
@media (max-width: 720px) {
  .shade { background: linear-gradient(0deg, rgba(8, 9, 7, .92), rgba(8, 9, 7, .7) calc(var(--vb) + 40%), rgba(8, 9, 7, .1) calc(var(--vb) + 70%)); }
  [dir="rtl"] .shade { transform: none; }
  .panel { inset-inline-end: var(--side); bottom: calc(46px + env(safe-area-inset-bottom, 0px) + var(--vb)); gap: 14px; }
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 16px; }
  .facts dt { font-size: 22px; }
  .tag-ill { top: 84px; bottom: auto; }
}

/* ---------------------------------------------------------------- home */
.manifesto { text-align: center; }
.mark-sm { width: 70px; margin: 0 auto 44px; color: var(--gold); }
.mark-xs { width: 46px; color: var(--gold); margin: 0 auto 14px; }
.mark-lg { width: min(240px, 50%); color: var(--gold); opacity: .9; margin-top: 30px; }
.statement { font-size: clamp(30px, 3.5vw, 56px); line-height: calc(var(--disp-lh) * 1.22); }
.statement .wd { transition: opacity .2s linear; }

.figures { border-top: 1px solid var(--line-ink-2); border-bottom: 1px solid var(--line-ink-2); }
.fig-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fig { padding: 44px 28px 48px; border-inline-start: 1px solid var(--line-ink-2); display: grid; gap: 10px; align-content: start; }
.fig:first-child { border-inline-start: 0; padding-inline-start: 0; }
.fig .n { font-family: var(--f-display); font-size: clamp(50px, 5.4vw, 92px); line-height: 1; color: var(--gold-hi); font-weight: 300; font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.fig .n sup { font-size: .32em; vertical-align: top; position: relative; top: .4em; margin-inline-start: .2em; color: var(--gold); font-family: var(--f-caps); letter-spacing: .08em; }
.fig .l { font-size: 15px; color: var(--on-ink-2); max-width: 24ch; line-height: 1.5; }
@media (max-width: 900px) {
  .fig-row { grid-template-columns: 1fr 1fr; }
  .fig:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
  .fig:nth-child(n+3) { border-top: 1px solid var(--line-ink-2); }
  .fig { padding: 32px 18px; }
}

.structure .head { margin-inline: auto; text-align: center; justify-items: center; }
.tree { position: relative; }
.root { width: max-content; max-width: 100%; margin: 0 auto; text-align: center; padding: 28px 46px; border: 1px solid var(--line-iv); background: var(--paper); }
.root .t { font-family: var(--f-display); font-size: clamp(24px, 2.2vw, 32px); line-height: 1.15; }
.root .d { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--on-iv-2); margin-top: 6px; }
.lang-ar .root .d { letter-spacing: 0; font-size: 14px; }
.tree .links { width: 100%; height: 90px; overflow: visible; }
.tree .links path { fill: none; stroke: var(--gold-lo); stroke-width: 1.2; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: var(--draw, 0); }
.nodes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.nodes li { padding: 30px 28px 34px; background: var(--paper); border-top: 2px solid var(--gold); display: grid; gap: 10px; align-content: start; text-align: center; }
.nodes .k { font-family: var(--f-caps); font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-ink); }
.lang-ar .nodes .k { letter-spacing: 0; font-size: 14px; }
.nodes .t { font-family: var(--f-display); font-size: clamp(22px, 1.9vw, 29px); line-height: 1.18; }
.nodes .d { font-size: 14px; color: var(--on-iv-2); }
@media (max-width: 820px) {
  .tree .links { display: none; }
  .root { margin-bottom: 26px; }
  .nodes { grid-template-columns: 1fr; gap: 14px; }
  .nodes li { text-align: start; }
}

.family-teaser .split { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); align-items: center; }
.family-teaser .head { justify-items: start; }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px); }
.trio li:nth-child(2) { margin-top: 64px; }
.trio a { text-decoration: none; display: grid; gap: 6px; }
.frame { overflow: hidden; aspect-ratio: 3 / 4; background: var(--stone); margin-bottom: 14px; }
.frame img { width: 100%; height: 112%; object-fit: cover; transition: transform 1.2s var(--ease), filter 1.2s var(--ease); filter: saturate(.92); }
.trio a:hover .frame img, .fstrip a:hover .frame img { transform: scale(1.04); filter: saturate(1); }
.trio .t, .fstrip .t { font-family: var(--f-display); font-size: clamp(21px, 1.7vw, 27px); line-height: 1.15; }
.trio .d, .fstrip .d { font-size: 14px; color: var(--on-iv-2); }
@media (max-width: 980px) { .family-teaser .split { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .trio { grid-template-columns: 1fr 1fr; } .trio li:nth-child(2) { margin-top: 40px; } .trio li:nth-child(3) { grid-column: 1 / -1; width: 50%; justify-self: center; margin-top: -10px; } }

.stages { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-ink); }
.stages li { padding: 34px 28px 10px 0; display: grid; gap: 16px; align-content: start; }
.stages li + li { padding-inline-start: 28px; border-inline-start: 1px solid var(--line-ink-2); }
[dir="rtl"] .stages li { padding: 34px 0 10px 28px; }
[dir="rtl"] .stages li + li { padding-inline-start: 28px; }
.stages p { color: var(--on-ink-2); font-size: 16px; }
.stages.light { border-top-color: var(--line-iv); }
.stages.light li + li { border-inline-start-color: var(--line-iv); }
.stages.light p { color: var(--on-iv-2); }
.after { margin-top: 56px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; color: var(--on-ink-2); font-family: var(--f-display); font-size: clamp(20px, 1.7vw, 26px); font-style: italic; }
.lang-ar .after { font-style: normal; }
.stone .after, .ivory .after { color: var(--on-iv-2); }
@media (max-width: 980px) { .stages { grid-template-columns: 1fr 1fr; } .stages li:nth-child(3) { padding-inline-start: 0; border-inline-start: 0; } .stages li:nth-child(n+3) { border-top: 1px solid var(--line-ink-2); margin-top: 18px; } }
@media (max-width: 560px) { .stages { grid-template-columns: 1fr; } .stages li, .stages li + li, [dir="rtl"] .stages li { padding-inline: 0; border-inline-start: 0; } .stages li + li { border-top: 1px solid var(--line-ink-2); } .stages.light li + li { border-top-color: var(--line-iv); } }

.sec-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.2vw, 32px); }
.card { display: grid; align-content: start; }
.card figure { overflow: hidden; aspect-ratio: 16 / 10; background: var(--ink-3); }
.card img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.6s var(--ease), filter 1.2s var(--ease); filter: saturate(.85) brightness(.95); }
.card:hover img { transform: scale(1); filter: saturate(1) brightness(1); }
.card .txt { padding: 22px 0 8px; display: grid; gap: 8px; border-bottom: 1px solid var(--line-iv); }
.ink .card .txt { border-bottom-color: var(--line-ink-2); }
.card p { font-size: 15.5px; color: var(--on-iv-2); }
.ink .card p { color: var(--on-ink-2); }
.also { margin-top: 40px; font-size: 15px; color: var(--on-iv-2); }
.ink .also { color: var(--on-ink-2); }
@media (max-width: 980px) { .sec-grid { grid-template-columns: 1fr 1fr; } .head.row { display: grid; } }
@media (max-width: 600px) { .sec-grid { grid-template-columns: 1fr; } }

.resp-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); margin-bottom: 56px; }
.resp-row li { border-top: 1px solid var(--line-ink); padding-top: 28px; display: grid; gap: 12px; align-content: start; }
.resp-row .n { font-family: var(--f-display); font-size: clamp(40px, 4vw, 64px); line-height: 1; color: var(--gold-hi); font-weight: 300; }
.resp-row .t { font-family: var(--f-display); font-size: 24px; line-height: 1.2; }
.resp-row .d { color: var(--on-ink-2); font-size: 15px; }
@media (max-width: 820px) { .resp-row { grid-template-columns: 1fr; } }

.invest { position: relative; min-height: 100vh; min-height: 100svh; display: grid; align-items: center; text-align: center; overflow: hidden; color: var(--on-ink); padding-block: 140px; }
.invest .bg, .phero .bg, .rband .bg { position: absolute; inset: -8% 0; }
.invest .bg img, .phero .bg img, .phero .bg video, .rband .bg img { width: 100%; height: 100%; object-fit: cover; }
.invest::after { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 70% at 50% 50%, rgba(8, 9, 7, .5), rgba(8, 9, 7, .82)); }
.invest .wrap { position: relative; z-index: 1; display: grid; justify-items: center; gap: 26px; }
.invest .lede { color: rgba(238, 232, 220, .82); }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 10px; }

/* ---------------------------------------------------------------- inner pages */
.phero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; color: var(--on-ink); padding-block: 160px clamp(70px, 12vh, 130px); }
.phero .bg video { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s var(--ease); }
.phero .bg video.on { opacity: 1; }
.phero .veil { background: linear-gradient(to top, rgba(8, 9, 7, .86), rgba(8, 9, 7, .25) 55%, rgba(8, 9, 7, .45)); }
.phero .wrap { position: relative; z-index: 1; display: grid; gap: 24px; }
.phero .display { max-width: 15ch; }
.phero .lede { color: rgba(238, 232, 220, .82); }
.phero .cue { bottom: 26px; }
.phero .cue i { height: 40px; }

.subnav { position: sticky; top: 64px; z-index: 20; background: var(--ivory); color: var(--on-iv); border-bottom: 1px solid var(--line-iv); }
.subnav .wrap { display: flex; gap: 30px; overflow-x: auto; scrollbar-width: none; padding-block: 16px; font-size: 13px; letter-spacing: .06em; }
.subnav .wrap::-webkit-scrollbar { display: none; }
.subnav a { text-decoration: none; color: var(--on-iv-2); white-space: nowrap; }
.subnav a:hover, .subnav a.on { color: var(--on-iv); }

.prose { display: grid; gap: 22px; }
.prose p { font-size: 17.5px; color: var(--on-iv-2); max-width: 64ch; }
.ink .prose p { color: var(--on-ink-2); }
.prose p.first { font-family: var(--f-display); font-size: clamp(25px, 2.2vw, 34px); line-height: calc(var(--disp-lh) * 1.3); color: var(--on-iv); }

.tl { position: relative; display: grid; }
.tl .spine { position: absolute; inset-block: 0; inset-inline-start: 0; width: 1px; background: var(--line-ink-2); }
.tl .spine i { position: absolute; inset: 0; background: var(--gold); transform-origin: top; transform: scaleY(var(--tl, 0)); }
.tl-item { display: grid; grid-template-columns: minmax(150px, 3fr) minmax(0, 9fr); gap: 32px; padding: 34px 0 34px 40px; border-bottom: 1px solid var(--line-ink-2); position: relative; }
[dir="rtl"] .tl-item { padding: 34px 40px 34px 0; }
.tl-item::before { content: ""; position: absolute; inset-inline-start: -4px; top: 50px; width: 9px; height: 9px; background: var(--ink); border: 1px solid var(--gold); transform: rotate(45deg); }
.tl-item .y { font-family: var(--f-display); font-size: clamp(34px, 3.4vw, 54px); color: var(--gold-hi); line-height: 1; font-weight: 300; }
.tl-item h3 { margin-bottom: 10px; }
.tl-item p { color: var(--on-ink-2); max-width: 62ch; }
@media (max-width: 720px) { .tl-item { grid-template-columns: 1fr; gap: 10px; padding-inline-start: 28px; } [dir="rtl"] .tl-item { padding: 30px 28px 30px 0; } }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(30px, 5vw, 90px); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); }
.strength, .grid-3 li { border-top: 1px solid var(--line-iv); padding-block: 32px 40px; display: grid; gap: 14px; align-content: start; }
.strength p, .grid-3 p { color: var(--on-iv-2); }
@media (max-width: 820px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.vlist { border-top: 1px solid var(--on-iv); }
.vlist li { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding-block: 22px; border-bottom: 1px solid var(--line-iv); }
.vlist .t { font-family: var(--f-display); font-size: clamp(26px, 2.4vw, 38px); line-height: 1.1; }
.vlist .d { font-size: 14.5px; color: var(--on-iv-2); text-align: end; max-width: 30ch; }
@media (max-width: 560px) { .vlist li { display: grid; gap: 6px; } .vlist .d { text-align: start; } }

.rows { border-top: 1px solid var(--line-ink); }
.rows > div { display: grid; grid-template-columns: minmax(130px, 4fr) minmax(0, 8fr); gap: 24px; padding-block: 18px; border-bottom: 1px solid var(--line-ink-2); }
.rows dt { font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); padding-top: 3px; }
.lang-ar .rows dt { letter-spacing: 0; font-size: 14px; }
.rows dd { margin: 0; color: var(--on-ink); }
.rows.light { border-top-color: var(--on-iv); margin-top: 56px; }
.rows.light > div { border-bottom-color: var(--line-iv); }
.rows.light dt { color: var(--gold-ink); }
.rows.light dd { color: var(--on-iv); }
@media (max-width: 560px) { .rows > div { grid-template-columns: 1fr; gap: 4px; } }

/* family */
.fhero { background: var(--ivory); color: var(--on-iv); padding-block: 170px 120px; text-align: center; }
.fhero .wrap { display: grid; justify-items: center; gap: 24px; }
.fhero .display { max-width: 16ch; }
.fhero .lede { margin-inline: auto; }
.fstrip { display: grid; grid-template-columns: repeat(3, minmax(0, 320px)); justify-content: center; gap: clamp(14px, 2.4vw, 36px); margin-top: 80px; padding-inline: var(--side); }
.fstrip li:nth-child(2) { margin-top: 70px; }
.fstrip a { text-decoration: none; display: grid; gap: 6px; text-align: start; }
@media (max-width: 640px) { .fstrip { grid-template-columns: 1fr 1fr; } .fstrip li:nth-child(2) { margin-top: 40px; } .fstrip li:nth-child(3) { grid-column: 1 / -1; width: 56%; justify-self: center; } }
.person { padding-block: clamp(100px, 14vh, 170px); }
.pgrid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 7vw, 120px); align-items: center; }
.person.flip .portrait { order: 2; }
.portrait { overflow: hidden; aspect-ratio: 2 / 3; background: var(--ink-3); max-height: 86vh; }
.portrait img { width: 100%; height: 110%; object-fit: cover; }
.pbody { display: grid; gap: 22px; }
.pbody .sub { font-family: var(--f-display); font-style: italic; font-size: clamp(19px, 1.6vw, 24px); color: var(--gold-hi); }
.lang-ar .pbody .sub { font-style: normal; }
.ivory .pbody .sub { color: var(--gold-lo); }
.pbody .prose { margin-top: 12px; }
@media (max-width: 860px) { .pgrid { grid-template-columns: 1fr; } .person.flip .portrait { order: 0; } .portrait { max-height: none; aspect-ratio: 4 / 5; } }
.fstatement { text-align: center; }
.fstatement .display { font-style: normal; }

/* portfolio */
.holding { padding-block: clamp(100px, 14vh, 170px); }
.hgrid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 110px); align-items: center; }
.hgrid.flip .himg { order: -1; }
.htext { display: grid; gap: 24px; justify-items: start; }
.himg { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--ink-3); }
.himg.tall { aspect-ratio: 4 / 5; }
.himg img { width: 100%; height: 114%; object-fit: cover; }
.himg figcaption, .note { font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; }
.himg figcaption { position: absolute; inset-inline-end: 14px; bottom: 12px; color: rgba(238, 232, 220, .7); }
.lang-ar .himg figcaption, .lang-ar .note { letter-spacing: 0; font-size: 12px; }
@media (max-width: 900px) { .hgrid { grid-template-columns: 1fr; } .hgrid.flip .himg { order: 0; } }
.kfacts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 72px; border-top: 1px solid var(--on-iv); }
.kfacts > div { padding: 26px 20px 6px 0; display: grid; gap: 8px; }
.kfacts > div + div { padding-inline-start: 20px; border-inline-start: 1px solid var(--line-iv); }
.kfacts dt { font-family: var(--f-display); font-size: clamp(36px, 3.6vw, 58px); line-height: 1; color: var(--on-iv); font-weight: 300; }
.kfacts dd { margin: 0; font-size: 14.5px; color: var(--on-iv-2); }
@media (max-width: 820px) { .kfacts { grid-template-columns: 1fr 1fr; } .kfacts > div:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; } .kfacts > div:nth-child(n+3) { border-top: 1px solid var(--line-iv); margin-top: 14px; } }
.plist { width: 100%; border-top: 1px solid var(--line-ink); margin-top: 10px; }
.plist li { display: flex; justify-content: space-between; gap: 18px; padding-block: 16px; border-bottom: 1px solid var(--line-ink-2); }
.plist .t { font-family: var(--f-display); font-size: 22px; }
.plist .d { font-size: 14px; color: var(--on-ink-2); text-align: end; }
.features { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 48px; }
.features li { padding: 9px 16px; border: 1px solid var(--line-iv); font-size: 13.5px; color: var(--on-iv-2); }
.gal { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 20px); }
.gal figure { overflow: hidden; background: var(--stone); }
.gal img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.gal figure:hover img { transform: scale(1.03); }
.gal .g1 { grid-column: 1 / 8; aspect-ratio: 16 / 9.4; } .gal .g2 { grid-column: 8 / 13; }
.gal .g3 { grid-column: 1 / 5; aspect-ratio: 4 / 3; } .gal .g4 { grid-column: 5 / 9; aspect-ratio: 4 / 3; } .gal .g5 { grid-column: 9 / 13; aspect-ratio: 4 / 3; }
.gal .g6 { grid-column: 1 / 13; aspect-ratio: 21 / 8; }
@media (max-width: 720px) { .gal .g1, .gal .g2, .gal .g6 { grid-column: 1 / -1; aspect-ratio: 16 / 10; } .gal .g3, .gal .g4 { grid-column: span 6; } .gal .g5 { grid-column: 1 / -1; aspect-ratio: 16 / 10; } }
.note { margin-top: 18px; color: var(--on-iv-2); font-size: 11.5px; }
.erables .split { align-items: end; }

/* approach */
.steps { display: grid; border-top: 1px solid var(--line-ink); counter-reset: s; }
.steps li { display: grid; grid-template-columns: minmax(80px, 2fr) minmax(0, 10fr); gap: 24px; padding-block: 30px; border-bottom: 1px solid var(--line-ink-2); align-items: baseline; }
.steps .i { font-family: var(--f-display); font-size: clamp(40px, 4vw, 64px); letter-spacing: 0; color: var(--gold-hi); line-height: 1; transition: color .6s; }
.steps li:not(.lit) .i { color: rgba(238, 232, 220, .18); }
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--on-ink-2); max-width: 60ch; }
.checks { display: grid; gap: 0; border-top: 1px solid var(--on-iv); }
.checks li { display: flex; gap: 18px; align-items: baseline; padding-block: 18px; border-bottom: 1px solid var(--line-iv); font-family: var(--f-display); font-size: clamp(21px, 1.8vw, 27px); line-height: 1.3; }
.checks li::before { content: ""; flex: none; width: 8px; height: 8px; background: var(--gold); transform: rotate(45deg) translateY(-3px); }
.checks.light { border-top-color: rgba(238, 232, 220, .6); }
.checks.light li { border-bottom-color: rgba(238, 232, 220, .16); color: var(--on-ink); }

.form { display: grid; gap: 22px; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.form label { display: grid; gap: 8px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--on-ink-2); }
.lang-ar .form label { letter-spacing: 0; font-size: 14px; }
.form input, .form select, .form textarea { font: inherit; font-size: 17px; letter-spacing: 0; text-transform: none; color: var(--on-ink); background: transparent; border: 0; border-bottom: 1px solid rgba(238, 232, 220, .28); border-radius: 0; padding: 10px 0 12px; width: 100%; transition: border-color .3s; -webkit-appearance: none; appearance: none; }
.form select { background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 12px) 55%, calc(100% - 7px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
[dir="rtl"] .form select { background-position: 12px 55%, 7px 55%; }
.form select option { color: var(--on-iv); }
.form textarea { resize: vertical; min-height: 120px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 0; border-bottom-color: var(--gold); }
.form ::placeholder { color: rgba(238, 232, 220, .32); }
.ivory .form label { color: var(--on-iv-2); }
.ivory .form input, .ivory .form select, .ivory .form textarea { color: var(--on-iv); border-bottom-color: rgba(25, 25, 21, .3); }
.ivory .form ::placeholder { color: rgba(25, 25, 21, .35); }
.send { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; margin-top: 8px; }
.fnote { font-size: 13px; color: var(--on-ink-2); max-width: 40ch; }
.ivory .fnote { color: var(--on-iv-2); }
.status { min-height: 1.4em; font-size: 14px; color: var(--gold-hi); }
.ivory .status { color: var(--gold-lo); }
@media (max-width: 560px) { .form .two { grid-template-columns: 1fr; } }

/* responsibility */
.ritems { border-top: 1px solid var(--on-iv); }
.ritem { display: grid; grid-template-columns: minmax(70px, 1.2fr) minmax(0, 3.6fr) minmax(0, 7fr); gap: clamp(18px, 3vw, 48px); padding-block: 40px; border-bottom: 1px solid var(--line-iv); align-items: baseline; }
.ritem .y { font-family: var(--f-caps); font-size: 13px; letter-spacing: .2em; color: var(--gold-ink); }
.ritem .n { font-family: var(--f-display); font-size: clamp(38px, 4vw, 66px); line-height: 1; font-weight: 300; }
.ritem h3 { margin-bottom: 10px; }
.ritem p:not(.y):not(.n) { color: var(--on-iv-2); max-width: 60ch; }
@media (max-width: 820px) { .ritem { grid-template-columns: 1fr; gap: 10px; } }
.rband { position: relative; overflow: hidden; color: var(--on-ink); padding-block: clamp(120px, 18vh, 220px); }
.rband .veil { background: linear-gradient(90deg, rgba(8, 9, 7, .9), rgba(8, 9, 7, .6)); }
[dir="rtl"] .rband .veil { background: linear-gradient(270deg, rgba(8, 9, 7, .9), rgba(8, 9, 7, .6)); }
.rband .wrap { position: relative; z-index: 1; align-items: center; }

/* contact */
.crows { border-top: 1px solid var(--on-iv); margin-block: 26px 34px; }
.crows > div { display: grid; grid-template-columns: minmax(100px, 3fr) minmax(0, 8fr) auto; gap: 16px; align-items: center; padding-block: 18px; border-bottom: 1px solid var(--line-iv); }
.crows dt { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-ink); }
.lang-ar .crows dt { letter-spacing: 0; font-size: 14px; }
.crows dd { margin: 0; font-size: 17px; overflow-wrap: anywhere; }
.crows a { text-decoration: none; }
.copy { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; border: 1px solid var(--line-iv); padding: 7px 12px; color: var(--on-iv-2); transition: border-color .3s, color .3s; }
.lang-ar .copy { letter-spacing: 0; font-size: 12px; }
.copy:hover { border-color: var(--on-iv); color: var(--on-iv); }
.cta-col { display: flex; align-items: center; height: 100%; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
@media (max-width: 460px) { .crows > div { grid-template-columns: 1fr auto; } .crows dt { grid-column: 1 / -1; } }

/* ---------------------------------------------------------------- footer */
.foot { background: var(--ink-2); color: var(--on-ink-2); padding-block: clamp(80px, 12vh, 140px) 40px; border-top: 1px solid var(--line-ink-2); }
.foot-top { display: grid; grid-template-columns: auto 1fr; gap: 40px 80px; align-items: end; padding-bottom: 60px; border-bottom: 1px solid var(--line-ink-2); }
.foot-logo { color: var(--gold); display: block; }
.foot-logo svg { width: clamp(220px, 26vw, 340px); height: auto; }
.foot .foot-tag { font-family: var(--f-display); font-size: clamp(22px, 2vw, 30px); line-height: 1.3; color: var(--on-ink); max-width: 26ch; justify-self: end; text-align: end; }
.foot-grid { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 40px; padding-block: 50px; }
.foot .k { font-family: var(--f-caps); font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); font-weight: 500; margin-bottom: 18px; }
.lang-ar .foot .k { letter-spacing: 0; font-size: 14px; }
.foot ul { display: grid; gap: 10px; font-size: 15.5px; }
.foot a { text-decoration: none; transition: color .3s; }
.foot a:hover { color: var(--on-ink); }
.foot address { font-style: normal; margin-bottom: 12px; color: var(--on-ink); }
.foot p { font-size: 15px; }
.k2 { display: inline-block; min-width: 92px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(168, 161, 147, .7); }
.lang-ar .k2 { letter-spacing: 0; font-size: 13px; }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 30px; padding-top: 30px; border-top: 1px solid var(--line-ink-2); font-size: 12px; color: rgba(168, 161, 147, .8); }
.foot-legal p { font-size: 12px; }
.to-top { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--on-ink-2); }
.to-top:hover { color: var(--gold); }
@media (max-width: 820px) { .foot-top { grid-template-columns: 1fr; } .foot-tag { justify-self: start; text-align: start; } .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > div:last-child { grid-column: 1 / -1; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- motion fallbacks */
.js [data-reveal="rise"] { opacity: 0; }
.wd { display: inline; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js [data-reveal="rise"] { opacity: 1; }
}

/* ================================================================ round 2: motion system and new sections */

/* ---- doors: the first-visit intro and the page transition share two bronze leaves */
.doors { position: fixed; inset: 0; z-index: 95; pointer-events: none; visibility: hidden; }
.doors .leaf { position: absolute; top: 0; bottom: 0; width: 50.5%; background: linear-gradient(90deg, #0E0F0C, #15160F 70%, #1A1A14); transition: transform 1.05s cubic-bezier(.77, 0, .18, 1); will-change: transform; }
.doors .leaf.l { left: 0; transform: translateX(-101%); border-right: 1px solid rgba(194, 163, 107, .55); }
.doors .leaf.r { right: 0; transform: translateX(101%); border-left: 1px solid rgba(194, 163, 107, .55); background: linear-gradient(270deg, #0E0F0C, #15160F 70%, #1A1A14); }
.intro .doors, .doors-shut .doors, .doors-close .doors { visibility: visible; pointer-events: auto; }
.intro .doors .leaf, .doors-shut .doors .leaf, .doors-close .doors .leaf { transform: none; }
.doors-close .doors .leaf { transition-duration: .62s; }
.intro-c { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 26px; opacity: 0; transition: opacity .5s; }
.intro .intro-c { opacity: 1; }
.intro-mark { width: clamp(96px, 11vw, 150px); color: var(--gold); overflow: visible; }
.intro-mark path { fill: transparent; stroke: var(--gold); stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.25s cubic-bezier(.65, 0, .35, 1), fill .6s ease .9s; }
.intro.drawn .intro-mark path { stroke-dashoffset: 0; fill: var(--gold); }
.intro-word { font-family: "Cinzel", serif; font-size: 13px; letter-spacing: .5em; text-transform: uppercase; color: var(--gold); opacity: 0; transform: translateY(8px); transition: opacity .8s ease .7s, transform .8s ease .7s; padding-inline-start: .5em; }
.intro.drawn .intro-word { opacity: 1; transform: none; }
.intro.opening .intro-c { opacity: 0; transition-duration: .35s; }
/* if the script never arrives, the doors still open */
.intro .doors, .doors-shut .doors { animation: doors-failsafe 0s linear 6s forwards; }
@keyframes doors-failsafe { to { visibility: hidden; } }

/* ---- scroll progress, under the header */
.progress { position: absolute; inset-inline: 0; bottom: -1px; height: 1px; background: var(--gold); transform-origin: var(--o, left); transform: scaleX(var(--sp, 0)); opacity: .9; }
[dir="rtl"] .progress { --o: right; }

/* ---- cursor ring (desktop only) */
.cursor { position: fixed; left: 0; top: 0; z-index: 80; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; border: 1px solid var(--gold); pointer-events: none; display: grid; place-items: center; transition: width .45s var(--ease), height .45s var(--ease), margin .45s var(--ease), background .45s, opacity .3s; opacity: 0; }
.cursor.live { opacity: 1; }
.cursor b { font: 600 10.5px/1 var(--f-body); letter-spacing: .18em; text-transform: uppercase; color: var(--ink); opacity: 0; transition: opacity .3s; }
.lang-ar .cursor b { letter-spacing: 0; font-size: 12px; }
.cursor.big { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: var(--gold); border-color: var(--gold); }
.cursor.big b { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---- wipe reveal (images and cards); the script sets the start */
[data-reveal="wipe"] { will-change: clip-path; }

/* ---- hero: the headline arrives letter by letter */
.display .ch { display: inline-block; will-change: transform; }
.display .chm { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }

/* ---- chapter numbers on the flagship films */
.chap-n { position: absolute; inset-inline-end: var(--side); top: calc(50% - var(--vb) / 2); translate: 0 -50%; font-family: var(--f-display); font-size: clamp(120px, 18vw, 300px); line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(221, 196, 143, .55); opacity: 0; visibility: hidden; pointer-events: none; }
@media (max-width: 720px) { .chap-n { top: 120px; translate: 0 0; font-size: 110px; } }

/* ---- the portfolio, sideways */
.track-sec { position: relative; overflow: hidden; }
.track-pin { min-height: 100vh; min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto; padding-block: clamp(96px, 12vh, 130px) 40px; gap: clamp(28px, 4vh, 48px); }
.track-head { display: flex; justify-content: space-between; align-items: end; gap: 40px; }
.track-head .h2 { max-width: 16ch; }
.track-side { display: grid; gap: 18px; justify-items: end; text-align: end; max-width: 42ch; }
.track-count { font-family: var(--f-display); font-size: 22px; color: var(--on-ink-2); }
.track-count span { color: var(--gold-hi); font-size: 34px; }
.track-view { overflow: hidden; display: flex; align-items: center; }
.track { display: flex; gap: clamp(18px, 2vw, 30px); padding-inline: var(--side); will-change: transform; }
.tcard { flex: none; width: clamp(300px, 31vw, 470px); }
.tcard a { display: grid; text-decoration: none; height: 100%; background: var(--ink-2); border: 1px solid var(--line-ink-2); transition: border-color .5s, transform .7s var(--ease); }
.tcard a:hover { border-color: var(--line-ink); transform: translateY(-6px); }
.tcard figure { position: relative; overflow: hidden; aspect-ratio: 16 / 11; background: var(--ink-3); }
.tcard img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1.4s var(--ease), filter 1s; filter: saturate(.9); }
.tcard a:hover img { transform: scale(1.0); filter: saturate(1); }
.tcard.plan img { filter: saturate(.55) brightness(.8); }
.tnum { position: absolute; inset-inline-start: 18px; top: 14px; font-family: var(--f-display); font-size: 26px; color: rgba(238, 232, 220, .9); text-shadow: 0 1px 12px rgba(0, 0, 0, .4); }
.tbody { padding: 24px 26px 28px; display: grid; gap: 12px; align-content: start; }
.ttag { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font-size: 13px; color: var(--on-ink-2); }
.chip { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-hi); border: 1px solid var(--line-ink); padding: 5px 10px; }
.lang-ar .chip { letter-spacing: 0; font-size: 13px; }
.tcard.plan .chip { color: var(--ink); background: var(--gold); border-color: var(--gold); }
.tcard h3 { font-size: clamp(24px, 1.9vw, 30px); }
.td { color: var(--on-ink-2); font-size: 15.5px; line-height: 1.6; min-height: 3.2em; }
.tfig { display: flex; align-items: baseline; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line-ink-2); }
.tfig b { font-family: var(--f-display); font-weight: 300; font-size: 30px; color: var(--gold-hi); line-height: 1; }
.tfig span { font-size: 13.5px; color: var(--on-ink-2); }
.track-foot { display: flex; align-items: center; gap: 24px; }
.track-bar { flex: 1; height: 1px; background: var(--line-ink-2); position: relative; overflow: hidden; }
.track-bar b { position: absolute; inset: 0; background: var(--gold); transform-origin: var(--o, left); transform: scaleX(var(--tp, 0)); }
[dir="rtl"] .track-bar b { --o: right; }
.hint { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--on-ink-2); white-space: nowrap; }
.lang-ar .hint { letter-spacing: 0; font-size: 14px; }
/* touch screens and narrow windows: a native swipeable row */
.track-sec.native .track-view { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.track-sec.native .track-view::-webkit-scrollbar { display: none; }
.track-sec.native .tcard { scroll-snap-align: start; scroll-margin-inline: var(--side); width: min(82vw, 420px); }
.track-sec.native .track { padding-inline: var(--side); }
@media (max-width: 900px) { .track-head { display: grid; } .track-side { justify-items: start; text-align: start; } }

/* ---- the map of Morocco */
.mapsec { padding-block: clamp(96px, 14vh, 170px); }
.mapgrid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(30px, 6vw, 110px); }
.mapsteps .head { margin-bottom: 8vh; }
.mstep { min-height: 62vh; display: grid; align-content: center; gap: 12px; opacity: .28; transition: opacity .6s var(--ease); max-width: 46ch; }
.mstep.on { opacity: 1; }
.mstep .k { font-family: var(--f-caps); font-size: 12.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.lang-ar .mstep .k { letter-spacing: 0; font-size: 15px; }
.mstep h3 { font-size: clamp(30px, 3vw, 46px); }
.mstep .d { color: var(--on-ink-2); font-size: 17px; }
.mnote { font-size: 13px; color: var(--on-ink-2); max-width: 46ch; padding-bottom: 12vh; }
.mapstick { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; align-items: center; }
.mapfig { position: relative; width: 100%; max-height: 86vh; }
.kmap { width: 100%; height: auto; max-height: 82vh; overflow: visible; direction: ltr; }
.kmap .land { fill: url(#landfill); stroke: var(--gold); stroke-width: 1.4; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: var(--ld, 1); fill-opacity: var(--lf, 0); transition: fill-opacity 1.4s ease .6s; }
.kmap .arc { fill: none; stroke: var(--gold); stroke-width: 1.3; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: .9; transition: stroke-dashoffset 1.6s cubic-bezier(.65, 0, .35, 1); }
.kmap .arc.root { stroke: var(--on-ink-2); }
.kmap .arc.show { stroke-dashoffset: 0; }
.kmap .city { opacity: 0; transition: opacity .8s ease .4s; }
.kmap .city.show { opacity: 1; }
.kmap .city .dot { fill: var(--gold); }
.kmap .city.plan .dot { fill: var(--ink); stroke: var(--gold); stroke-width: 2.5; }
.kmap .city.root .dot { fill: var(--on-ink-2); }
.kmap .city .halo { fill: none; stroke: var(--gold); stroke-width: 1.2; opacity: 0; transform-origin: 0 0; }
.kmap .city.on.show .halo { animation: halo 2.6s ease-out infinite; }
@keyframes halo { 0% { opacity: .9; transform: scale(.35); } 100% { opacity: 0; transform: scale(1.6); } }
.kmap text { font-family: var(--f-display); font-size: 30px; fill: var(--on-ink); paint-order: stroke; stroke: rgba(12, 13, 11, .85); stroke-width: 6px; stroke-linejoin: round; }
.lang-ar .kmap text { font-size: 30px; }
.kmap .start text { transform: translate(18px, 10px); text-anchor: start; }
.kmap .end text { transform: translate(-18px, 10px); text-anchor: end; }
.kmap .end-up text { transform: translate(-16px, -12px); text-anchor: end; }
.inset { position: absolute; left: 0; top: 2%; width: min(44%, 290px); background: rgba(20, 21, 18, .92); border: 1px solid var(--line-ink); padding: 14px 16px 8px; opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.inset.show { opacity: 1; transform: none; }
.inset-k { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.lang-ar .inset-k { letter-spacing: 0; font-size: 13px; }
.inset svg { width: 100%; height: auto; overflow: visible; direction: ltr; }
.iland { fill: #23241F; stroke: var(--gold-lo); stroke-width: 1; vector-effect: non-scaling-stroke; }
.ipt circle { fill: var(--gold); }
.ipt text { font-family: var(--f-body); font-size: 13px; fill: var(--on-ink); text-anchor: middle; }
.lang-ar .ipt text { font-family: "IBM Plex Sans Arabic", sans-serif; font-size: 14px; }
.legend { position: absolute; right: 0; bottom: 6%; display: grid; gap: 8px; font-size: 13px; color: var(--on-ink-2); }
.legend span { display: flex; align-items: center; gap: 10px; }
.legend span::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); }
.legend .plan::before { background: transparent; border: 2px solid var(--gold); width: 8px; height: 8px; }
@media (max-width: 900px) {
  .mapgrid { grid-template-columns: 1fr; }
  .mapstick { order: -1; top: 56px; height: auto; z-index: 2; background: var(--ink); padding-block: 10px; border-bottom: 1px solid var(--line-ink-2); }
  .kmap { max-height: 40vh; }
  .mapfig { max-height: none; display: grid; justify-items: center; }
  .inset { width: 42%; top: 6px; }
  .legend { bottom: 4px; }
  .mstep { min-height: 44vh; }
  .mapsteps .head { margin-bottom: 4vh; margin-top: 4vh; }
}

/* ---- why Morocco */
.mgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 1.8vw, 28px); }
.mcard { display: grid; align-content: start; }
.mcard figure { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: var(--ink-3); }
.mcard img { width: 100%; height: 112%; object-fit: cover; }
.mcard figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8, 9, 7, .82), rgba(8, 9, 7, .1) 55%); }
.mcard .n { position: absolute; inset-inline: 22px; bottom: 16px; z-index: 1; font-family: var(--f-display); font-weight: 300; font-size: clamp(54px, 5vw, 86px); line-height: 1; color: var(--gold-hi); }
.mc-body { padding: 22px 2px 0; display: grid; gap: 10px; }
.mcard .sector { font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.lang-ar .mcard .sector { letter-spacing: 0; font-size: 13.5px; }
.mcard .d { color: var(--on-ink-2); font-size: 15.5px; }
.mcard .src { font-size: 12.5px; color: rgba(168, 161, 147, .8); font-style: italic; }
.lang-ar .mcard .src { font-style: normal; }
@media (max-width: 1100px) { .mgrid { grid-template-columns: 1fr 1fr; gap: 40px 22px; } }
@media (max-width: 560px) { .mgrid { grid-template-columns: 1fr; } .mcard figure { aspect-ratio: 16 / 11; } }

/* ---- sectors: list and picture */
.slist { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(30px, 5vw, 90px); align-items: start; }
.slist ol { border-top: 1px solid var(--line-ink); }
.slist li a { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 4px 18px; align-items: baseline; padding-block: 26px; border-bottom: 1px solid var(--line-ink-2); text-decoration: none; }
.slist .t { font-family: var(--f-display); font-size: clamp(30px, 3.2vw, 52px); line-height: 1.05; color: rgba(238, 232, 220, .38); transition: color .5s var(--ease), transform .7s var(--ease); }
.slist .d { grid-column: 2; color: var(--on-ink-2); font-size: 15.5px; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .7s var(--ease), opacity .5s; }
.slist li.on .t { color: var(--on-ink); transform: translateX(var(--nudge, 10px)); }
[dir="rtl"] .slist li.on .t { --nudge: -10px; }
.slist li.on .d { max-height: 4em; opacity: 1; }
.slist li.on .i { color: var(--gold-hi); }
.spane { position: sticky; top: 16vh; aspect-ratio: 4 / 5; overflow: hidden; background: var(--ink-3); }
.spane img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity .8s var(--ease), transform 1.6s var(--ease); }
.spane img.on { opacity: 1; transform: scale(1); }
.sthumb { display: none; }
@media (max-width: 900px) {
  .slist { grid-template-columns: 1fr; }
  .spane { display: none; }
  .slist li a { grid-template-columns: 1fr; }
  .sthumb { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: 14px; }
  .slist .i { display: none; }
  .slist .t { color: var(--on-ink); font-size: 30px; }
  .slist .d { grid-column: 1; max-height: none; opacity: 1; }
  .slist li.on .t { transform: none; }
}

/* ---- values band */
.band { padding-block: clamp(70px, 10vh, 120px); overflow: hidden; border-block: 1px solid var(--line-ink-2); }
.brow { overflow: hidden; white-space: nowrap; }
.brow + .brow { margin-top: 1vh; }
.mq { display: inline-flex; align-items: center; gap: 4vw; will-change: transform; padding-inline-end: 4vw; }
.mq span { font-family: var(--f-display); font-weight: 300; font-size: clamp(54px, 8.4vw, 150px); line-height: 1.15; color: var(--on-ink); }
.lang-ar .mq span { font-weight: 400; font-size: clamp(48px, 7vw, 124px); line-height: 1.4; }
.brow.ghost .mq span { color: transparent; -webkit-text-stroke: 1px rgba(221, 196, 143, .6); font-style: italic; }
.lang-ar .brow.ghost .mq span { font-style: normal; }
.mq i { width: 14px; height: 14px; flex: none; background: var(--gold); transform: rotate(45deg); }

/* ---- the closing doors */
.finale .stage { background: var(--ink); }
.finale .veil { background: radial-gradient(70% 60% at 50% 55%, rgba(8, 9, 7, .55), rgba(8, 9, 7, .2) 70%), linear-gradient(to top, rgba(8, 9, 7, .55), transparent 40%); }
.fin { position: absolute; inset-inline: var(--side); top: calc(50% - var(--vb) / 2); translate: 0 -50%; display: grid; justify-items: center; text-align: center; gap: 24px; opacity: 0; visibility: hidden; }
.fin .lede { color: rgba(238, 232, 220, .86); text-shadow: 0 1px 18px rgba(0, 0, 0, .55); }
.fin .display { text-shadow: 0 2px 40px rgba(0, 0, 0, .45); }

/* ---- portfolio: residences and projects */
.res-grid, .proj-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 44px); }
.res-card, .proj-card { display: grid; align-content: start; gap: 16px; }
.res-card figure, .proj-card figure { overflow: hidden; aspect-ratio: 16 / 10; background: var(--ink-3); position: relative; }
.res-card img, .proj-card img { width: 100%; height: 112%; object-fit: cover; }
.proj-card img { filter: saturate(.6) brightness(.85); }
.res-card p:not(.eyebrow), .proj-card p:not(.eyebrow):not(.chipline) { color: var(--on-iv-2); }
.ink .proj-card p:not(.eyebrow):not(.chipline) { color: var(--on-ink-2); }
.chipline { display: flex; gap: 12px; align-items: center; font-size: 13.5px; color: var(--on-ink-2); }
.proj-card .chip { color: var(--ink); background: var(--gold); border-color: var(--gold); }
@media (max-width: 760px) { .res-grid, .proj-grid { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .kmap text, .lang-ar .kmap text { font-size: 46px; stroke-width: 8px; } .kmap .city .dot { r: 11; } }

/* ---- 404: the closed door, in every language */
.e404 { position: relative; min-height: 100vh; min-height: 100svh; display: grid; align-items: center; text-align: center; overflow: hidden; padding-block: 140px 80px; }
.e404 .bg { position: absolute; inset: 0; }
.e404 .bg img { width: 100%; height: 100%; object-fit: cover; }
.e404 .veil { background: radial-gradient(80% 70% at 50% 50%, rgba(8, 9, 7, .55), rgba(8, 9, 7, .88)); }
.e404 .wrap { position: relative; z-index: 1; display: grid; justify-items: center; gap: 40px; }
.e404-l { display: grid; justify-items: center; gap: 14px; }
.e404-l + .e404-l { padding-top: 34px; border-top: 1px solid var(--line-ink-2); width: min(560px, 100%); }
.e404-l[lang="ar"] { font-family: "IBM Plex Sans Arabic", sans-serif; }
.e404-l[lang="ar"] .h2 { font-family: "Amiri", serif; letter-spacing: 0; }
.e404 .lede { color: rgba(238, 232, 220, .82); }
