/* ==========================================================================
   LUMEN — Fadi E. Khoury, MD
   Nocturne editorial · navy scrubs, streetlamp gold, jasmine ivory
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --night: #060a14;
  --night-2: #0a1122;
  --night-3: #0f1a33;
  --navy: #13244a;
  --scrubs: #1f3f86;
  --lamp: #f4b860;
  --lamp-hi: #ffe2a8;
  --lamp-deep: #c98a3a;
  --heart: #f0625a;
  --jasmine: #f5f0e6;
  --jasmine-2: rgba(245, 240, 230, 0.72);
  --jasmine-3: rgba(245, 240, 230, 0.56);
  --hair: rgba(245, 240, 230, 0.1);
  --hair-2: rgba(245, 240, 230, 0.18);
  --season: #e0894a;

  --serif: 'Newsreader', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --sans: 'Instrument Sans', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --gutter: clamp(20px, 4vw, 64px);
  --maxw: 1480px;
  --nav-h: 76px;
  --dir: 1;
  --arch: 999px 999px 26px 26px;
}
[dir='rtl'] { --dir: -1; }
html[data-season='winter'] { --season: #bfd7ff; }
html[data-season='spring'] { --season: #f3ead2; }
html[data-season='summer'] { --season: #5bc0e8; }

:lang(ar) {
  --serif: 'Amiri', 'Newsreader', serif;
  --sans: 'IBM Plex Sans Arabic', 'Instrument Sans', sans-serif;
  --mono: 'IBM Plex Mono', 'IBM Plex Sans Arabic', monospace;
}
[lang='en'], [lang='de'] {
  --serif: 'Newsreader', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --sans: 'Instrument Sans', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--night);
  color: var(--jasmine);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
html:lang(ar) body { line-height: 1.95; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
p { margin: 0 0 1em; }
::selection { background: var(--lamp); color: var(--night); }
:focus-visible { outline: 1.5px solid var(--lamp); outline-offset: 4px; border-radius: 6px; }
[hidden] { display: none !important; }

.container { width: min(100% - var(--gutter) * 2, var(--maxw)); margin-inline: auto; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip {
  position: fixed; top: 12px; inset-inline-start: 12px; z-index: 200;
  padding: 0.7rem 1rem; border-radius: 10px; background: var(--lamp); color: var(--night);
  transform: translateY(-160%); transition: transform 0.3s;
}
.skip:focus { transform: none; }
.i18n-pending main, .i18n-pending .nav, .i18n-pending .footer { visibility: hidden; }

/* Ambient backdrop, grain, cursor light */
body::before {
  content: ''; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(60vw 50vh at 88% -10%, rgba(244, 184, 96, 0.08), transparent 60%),
    radial-gradient(70vw 60vh at -10% 110%, rgba(31, 63, 134, 0.28), transparent 60%),
    var(--night);
}
.seasons { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.grain {
  position: fixed; inset: -100%; z-index: 90; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .7 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.1s steps(5) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}
.glow-cursor {
  position: fixed; inset: 0; z-index: 80; pointer-events: none; opacity: 0; transition: opacity 0.8s;
  background: radial-gradient(460px circle at var(--mx, 50%) var(--my, 30%), rgba(255, 205, 130, 0.065), transparent 62%);
  mix-blend-mode: screen;
}
.has-pointer .glow-cursor { opacity: 1; }

/* ---------- Shared type ---------- */
.eyebrow, .kicker, .fig, .hud__meta, .chart__head, .verse__label, .verse cite {
  font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.18em;
}
.eyebrow { font-size: 0.72rem; color: var(--jasmine-2); display: flex; align-items: center; gap: 0.75rem; margin: 0 0 1.5rem; }
.kicker { font-weight: 400; font-size: 0.72rem; color: var(--lamp); display: flex; align-items: center; gap: 0.8rem; margin: 0 0 1.4rem; }
.kicker::before { content: ''; width: 28px; height: 1px; background: currentColor; opacity: 0.7; flex: none; }
.h2 {
  font-family: var(--serif); font-weight: 300; font-size: clamp(2.8rem, 6.4vw, 6.6rem);
  line-height: 0.98; letter-spacing: -0.035em; margin: 0; max-width: 16ch;
  font-variation-settings: 'opsz' 72;
}
.h2 em, .finale__verse em, .smile__quote em, .hero__tagline em {
  font-style: italic; font-weight: 300; color: var(--lamp-hi);
}
:lang(ar) em { font-style: normal; }
:lang(ar) .eyebrow, :lang(ar) .kicker, :lang(ar) .fig, :lang(ar) .hud__meta,
:lang(ar) .chart__head, :lang(ar) .verse__label {
  letter-spacing: 0; text-transform: none; font-family: var(--sans); font-size: 0.86rem;
}
:lang(ar) .h2 { line-height: 1.32; letter-spacing: 0; font-weight: 400; font-size: clamp(2.5rem, 5.4vw, 5.4rem); }

.dot-live {
  width: 8px; height: 8px; border-radius: 50%; background: var(--lamp); flex: none;
  animation: live 2.4s infinite;
}
@keyframes live {
  0% { box-shadow: 0 0 0 0 rgba(244, 184, 96, 0.55); }
  70% { box-shadow: 0 0 0 12px rgba(244, 184, 96, 0); }
  100% { box-shadow: 0 0 0 0 rgba(244, 184, 96, 0); }
}

/* Buttons */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 0.8rem;
  padding: 1.05rem 1.65rem; border-radius: 999px; font-family: var(--sans); font-weight: 500;
  font-size: 0.95rem; line-height: 1; letter-spacing: 0.01em; white-space: nowrap; overflow: hidden;
  transition: transform 0.6s var(--ease-out), background 0.4s, color 0.4s, border-color 0.4s, box-shadow 0.5s;
}
.btn .i-arrow { flex: none; width: 18px; height: 18px; transition: transform 0.5s var(--ease-out); }
.btn:hover .i-arrow { transform: translateX(calc(var(--dir) * 4px)); }
[dir='rtl'] .i-arrow { transform: scaleX(-1); }
[dir='rtl'] .btn:hover .i-arrow { transform: scaleX(-1) translateX(4px); }
.i-arrow--back { transform: scaleX(-1); }
[dir='rtl'] .i-arrow--back { transform: none; }
.btn--lamp {
  color: #1a1206; background: linear-gradient(180deg, #ffd99a, #f1ad55);
  box-shadow: inset 0 0 0 1px rgba(255, 236, 200, 0.5), 0 12px 44px -12px rgba(244, 184, 96, 0.6);
}
.btn--lamp::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform 0.9s var(--ease-out);
}
.btn--lamp:hover { box-shadow: inset 0 0 0 1px rgba(255, 244, 222, 0.7), 0 18px 64px -10px rgba(244, 184, 96, 0.8); }
.btn--lamp:hover::after { transform: translateX(120%); }
.btn--ghost {
  color: var(--jasmine); border: 1px solid var(--hair-2); background: rgba(255, 255, 255, 0.02);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.btn--ghost:hover { border-color: rgba(244, 184, 96, 0.6); color: var(--lamp-hi); background: rgba(244, 184, 96, 0.05); }
.round-btn {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; flex: none;
  border: 1px solid var(--hair-2); color: var(--jasmine);
  transition: border-color 0.3s, color 0.3s, background 0.3s, transform 0.4s var(--ease-out);
}
.round-btn svg { width: 20px; height: 20px; }
.round-btn:hover { border-color: var(--lamp); color: var(--lamp-hi); background: rgba(244, 184, 96, 0.07); }
.round-btn:active { transform: scale(0.94); }

/* Reveal system */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal-img { clip-path: inset(14% 10% 14% 10% round var(--arch)); transition: clip-path 1.7s var(--ease-out); }
.js .reveal-img img { transform: scale(1.14); transition: transform 2.2s var(--ease-out); }
.js .reveal-img.in { clip-path: inset(0 0 0 0 round var(--arch)); }
.js .reveal-img.in img { transform: none; }
[data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 0.08em 0.1em 0; margin: 0 -0.08em -0.1em 0; }
[data-split] .w > span { display: inline-block; transform: translateY(108%); transition: transform 1.15s var(--ease-out); transition-delay: calc(var(--i) * 55ms); }
[data-split].in .w > span { transform: none; }
:lang(ar) [data-split] .w { padding: 0.3em 0.04em 0.28em; margin: -0.3em -0.04em -0.28em; }
html:not(.js) [data-split] .w > span { transform: none; }

/* ECG paper texture */
.ecg-paper {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(244, 184, 96, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 184, 96, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(244, 184, 96, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 184, 96, 0.03) 1px, transparent 1px);
  background-size: 80px 80px, 80px 80px, 16px 16px, 16px 16px;
  -webkit-mask-image: radial-gradient(110% 60% at 50% 72%, #000, transparent 72%);
  mask-image: radial-gradient(110% 60% at 50% 72%, #000, transparent 72%);
}

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; background: var(--night);
  clip-path: inset(0 0 0 0); transition: clip-path 1.15s var(--ease-io), visibility 0s linear 1.15s;
}
.preloader.is-done { clip-path: inset(0 0 100% 0); visibility: hidden; }
.no-preload .preloader { display: none; }
.preloader__inner { width: min(80vw, 560px); text-align: center; }
.preloader__ecg { width: 100%; height: 96px; overflow: visible; }
.preloader__ecg path {
  fill: none; stroke: var(--lamp-hi); stroke-width: 1.6; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.5s var(--ease-io) 0.1s forwards;
  filter: drop-shadow(0 0 6px rgba(244, 184, 96, 0.9));
}
.preloader__name {
  font-family: var(--serif); font-weight: 300; font-size: clamp(1.7rem, 3.2vw, 2.5rem); letter-spacing: -0.02em;
  margin: 1.1rem 0 0.4rem; opacity: 0; animation: fadeup 1s var(--ease-out) 0.4s forwards;
}
.preloader__role {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--jasmine-3);
  opacity: 0; animation: fadeup 1s var(--ease-out) 0.6s forwards;
}
.preloader__bpm { color: var(--lamp); font-variant-numeric: tabular-nums; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadeup { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; inset-inline: 0; z-index: 50; height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition: background 0.5s, border-color 0.5s, transform 0.7s var(--ease-out), opacity 0.8s;
}
.js:not(.is-ready) .nav { opacity: 0; }
.nav.is-scrolled {
  background: rgba(6, 10, 20, 0.66); border-color: var(--hair);
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
}
.nav.is-hidden { transform: translateY(-101%); }
.nav__inner { height: 100%; width: min(100% - var(--gutter) * 2, var(--maxw)); margin-inline: auto; display: flex; align-items: center; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; flex: none; }
.brand__mark { flex: none; width: 30px; height: 30px; color: var(--lamp); fill: none; stroke: currentColor; stroke-width: 2.2; overflow: visible; }
.brand__mark circle { fill: currentColor; stroke: none; }
.brand__name { font-family: var(--serif); font-size: 1.15rem; letter-spacing: -0.01em; white-space: nowrap; display: inline-flex; align-items: baseline; }
.brand__name small {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.16em; color: var(--jasmine-3);
  margin-inline-start: 0.55rem; padding: 0.15rem 0.4rem; border: 1px solid var(--hair-2); border-radius: 5px;
  text-transform: uppercase; transform: translateY(-2px);
}
:lang(ar) .brand__name { font-size: 1.25rem; }
:lang(ar) .brand__name small { font-family: var(--sans); letter-spacing: 0; font-size: 0.72rem; }
.nav__links { display: flex; gap: clamp(1.1rem, 2vw, 2rem); margin-inline-start: auto; }
.nav__links a, .menu__links a { display: inline-flex; align-items: baseline; gap: 0.45rem; }
.nav__links a { position: relative; font-size: 0.88rem; color: var(--jasmine-2); transition: color 0.3s; }
.nav__links i, .menu__links i { font-style: normal; font-family: var(--mono); font-size: 0.68rem; color: var(--jasmine-3); }
.nav__links a::after {
  content: ''; position: absolute; inset-inline: 0; bottom: -7px; height: 1px; background: var(--lamp);
  transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease-out);
}
[dir='rtl'] .nav__links a::after { transform-origin: right; }
.nav__links a:hover, .nav__links a.is-active { color: var(--jasmine); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); }
.nav__tools { display: flex; align-items: center; gap: 1rem; margin-inline-start: auto; }
.nav__links + .nav__tools { margin-inline-start: 0; }
.vitals {
  display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.38rem 0.75rem; border-radius: 999px;
  border: 1px solid var(--hair); font-family: var(--mono); font-size: 0.7rem; color: var(--jasmine-2);
}
.vitals__heart { flex: none; width: 13px; height: 13px; color: var(--heart); filter: drop-shadow(0 0 6px rgba(240, 98, 90, 0.6)); }
.vitals__bpm { color: var(--jasmine); font-variant-numeric: tabular-nums; }
.vitals__unit { color: var(--jasmine-3); font-size: 0.68rem; letter-spacing: 0.12em; }
.clock { margin: 0; font-family: var(--mono); font-size: 0.7rem; color: var(--jasmine-3); white-space: nowrap; }
.clock #clock { color: var(--jasmine-2); font-variant-numeric: tabular-nums; }
:lang(ar) .clock { font-family: var(--sans); font-size: 0.8rem; }
.lang { display: inline-flex; padding: 3px; border: 1px solid var(--hair); border-radius: 999px; }
.lang button {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.06em; padding: 0.38rem 0.62rem;
  border-radius: 999px; color: var(--jasmine-3); transition: background 0.35s, color 0.35s;
}
.lang button[lang='ar'] { font-family: 'IBM Plex Sans Arabic', sans-serif; font-size: 0.86rem; line-height: 1; padding-block: 0.3rem; }
.lang button:hover { color: var(--jasmine); }
.lang button[aria-pressed='true'] { background: var(--jasmine); color: var(--night); }
.menu-btn {
  display: none; align-items: center; gap: 0.7rem; padding: 0.55rem 0.95rem; border-radius: 999px;
  border: 1px solid var(--hair-2); font-size: 0.85rem;
}
.menu-btn i { position: relative; width: 16px; height: 8px; }
.menu-btn i::before, .menu-btn i::after {
  content: ''; position: absolute; inset-inline: 0; height: 1.5px; background: currentColor; border-radius: 2px;
  transition: transform 0.45s var(--ease-out), top 0.45s var(--ease-out);
}
.menu-btn i::before { top: 0; }
.menu-btn i::after { top: 6.5px; }
.menu-open .menu-btn i::before { top: 3.25px; transform: rotate(45deg); }
.menu-open .menu-btn i::after { top: 3.25px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 45; display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--nav-h) + 4vh) var(--gutter) 6vh; background: rgba(6, 10, 20, 0.97);
  opacity: 0; visibility: hidden; transition: opacity 0.5s, visibility 0s linear 0.5s;
}
.menu.is-open { opacity: 1; visibility: visible; transition: opacity 0.5s; }
.menu__links { display: flex; flex-direction: column; gap: 0.4rem; }
.menu__links a {
  font-family: var(--serif); font-weight: 300; font-size: clamp(2.6rem, 11vw, 4.4rem); line-height: 1.12; letter-spacing: -0.03em;
  opacity: 0; transform: translateY(24px); transition: opacity 0.6s var(--ease-out), transform 0.8s var(--ease-out);
}
.menu.is-open .menu__links a { opacity: 1; transform: none; transition-delay: calc(var(--i) * 60ms + 120ms); }
.menu__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.menu__verse { margin: 0; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.2em; color: var(--lamp); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column;
  padding: calc(var(--nav-h) + clamp(20px, 5vh, 64px)) 0 clamp(20px, 3.5vh, 36px);
  isolation: isolate; overflow: clip;
}
.hero__bg { position: absolute; inset: 0; z-index: -3; }
.hero__glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(38vw 38vw at 79% 40%, rgba(244, 184, 96, 0.15), transparent 62%),
    radial-gradient(60vw 40vw at 18% 105%, rgba(31, 63, 134, 0.42), transparent 70%);
}
[dir='rtl'] .hero__glow { transform: scaleX(-1); }
.hero__ecg {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; opacity: 0; transition: opacity 1.4s 0.5s;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.hero__dot {
  position: absolute; left: 0; top: 0; z-index: -2; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 10px 3px rgba(255, 226, 168, 0.95), 0 0 34px 12px rgba(244, 184, 96, 0.45);
  opacity: 0; transition: opacity 1s 0.8s; pointer-events: none; will-change: transform;
}
.is-ready .hero__ecg, .is-ready .hero__dot { opacity: 1; }

.hero__grid {
  flex: 1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter);
  grid-template-rows: auto 1fr; align-items: start;
}
.hero__title { grid-column: 1 / span 8; grid-row: 1; position: relative; z-index: 2; }
.hero__body { grid-column: 1 / span 6; grid-row: 2; position: relative; z-index: 2; }
.hero__portrait { grid-column: 9 / span 4; grid-row: 1 / span 2; margin: 0; position: relative; justify-self: end; width: min(100%, 460px); }

.hero__eyebrow { opacity: 0; transform: translateY(12px); transition: opacity 1s var(--ease-out) 0.1s, transform 1s var(--ease-out) 0.1s; }
.hero__name {
  margin: 0; font-family: var(--serif); font-weight: 300; font-size: clamp(4.4rem, 11.4vw, 12.6rem);
  line-height: 0.86; letter-spacing: -0.048em; font-variation-settings: 'opsz' 72;
}
/* Tight leading + gradient text: the clip box and the paint box are both extended with padding
   (cancelled by negative margins) so cap tops, ascenders and serifs are never cut off. */
.hero__name .line {
  display: block; overflow: hidden;
  padding-block: 0.22em 0.12em; margin-block: -0.2em -0.1em;
  padding-inline-end: 0.14em; margin-inline-end: -0.14em;
}
.hero__name .line--2 { padding-inline-start: clamp(1.6rem, 8.6vw, 9.6rem); }
.hero__name .line__inner {
  display: inline-block; transform: translateY(125%); transition: transform 1.5s var(--ease-out);
  padding-block: 0.22em 0.12em; margin-block: -0.22em -0.12em;
  padding-inline-end: 0.1em; margin-inline-end: -0.1em;
  background: linear-gradient(180deg, #fbf7ef 45%, #f6d6a0 110%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__name .line--2 .line__inner { transition-delay: 0.12s; }
.hero__name em { font-style: italic; font-weight: 200; }
:lang(ar) .hero__name { font-weight: 400; font-size: clamp(4rem, 10vw, 10.6rem); line-height: 1.2; letter-spacing: 0; }
:lang(ar) .hero__name .line { padding-block: 0.4em 0.34em; margin-block: -0.36em -0.3em; }
:lang(ar) .hero__name .line__inner { padding-block: 0.4em 0.34em; margin-block: -0.4em -0.34em; }
:lang(ar) .hero__name em { font-weight: 700; }
.hero__tagline {
  font-family: var(--serif); font-weight: 300; font-size: clamp(1.45rem, 2.3vw, 2.35rem); letter-spacing: -0.012em; line-height: 1.2;
  margin: clamp(1.6rem, 4vh, 2.8rem) 0 0;
}
.hero__tagline em { text-shadow: 0 0 26px rgba(244, 184, 96, 0.6), 0 0 2px rgba(255, 226, 168, 0.6); }
:lang(ar) .hero__tagline { line-height: 1.6; }
.hero__intro { max-width: 47ch; color: var(--jasmine-2); margin: 1.1rem 0 2rem; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 0.85rem; }
.hero__body > * { opacity: 0; transform: translateY(18px); transition: opacity 1.1s var(--ease-out), transform 1.2s var(--ease-out); }
.hero__body > :nth-child(1) { transition-delay: 0.45s; }
.hero__body > :nth-child(2) { transition-delay: 0.58s; }
.hero__body > :nth-child(3) { transition-delay: 0.7s; }
.is-ready .hero__eyebrow, .is-ready .hero__body > * { opacity: 1; transform: none; }
.is-ready .hero__name .line__inner { transform: none; }

/* Arch frames */
.arch {
  position: relative; border-radius: var(--arch); overflow: hidden; aspect-ratio: 4 / 5.1; margin: 0;
  background: var(--night-3); isolation: isolate;
  box-shadow: 0 50px 120px -40px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 226, 168, 0.12);
}
.arch img { width: 100%; height: 100%; object-fit: cover; }
.arch::before {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(6, 10, 20, 0.5)), radial-gradient(80% 60% at 70% 8%, rgba(255, 200, 120, 0.16), transparent 60%);
}
.arch::after {
  content: ''; position: absolute; inset: 11px; z-index: 2; pointer-events: none;
  border: 1px solid rgba(255, 226, 168, 0.34); border-radius: 999px 999px 17px 17px;
}
.arch__sweep {
  position: absolute; inset: 0; z-index: 3; pointer-events: none; mix-blend-mode: screen;
  background: linear-gradient(100deg, transparent 32%, rgba(255, 230, 180, 0.2) 48%, transparent 62%);
  transform: translateX(-130%); animation: sweep 9s var(--ease-io) 3.2s infinite;
}
@keyframes sweep { 0% { transform: translateX(-130%); } 34%, 100% { transform: translateX(130%); } }
.hero .arch { clip-path: inset(100% 0 0 0 round var(--arch)); transition: clip-path 1.9s var(--ease-out) 0.2s; }
.hero .arch img { transform: scale(1.2); transition: transform 2.8s var(--ease-out) 0.2s; }
.is-ready .hero .arch { clip-path: inset(0 0 0 0 round var(--arch)); }
.is-ready .hero .arch img { transform: none; }
.fig {
  display: flex; align-items: center; gap: 0.7rem; margin-top: 1rem; font-size: 0.68rem; color: var(--jasmine-3);
  opacity: 0; transition: opacity 1s 1.2s;
}
.fig::before { content: ''; width: 18px; height: 1px; background: var(--lamp); }
.is-ready .fig { opacity: 1; }
.badge {
  position: absolute; z-index: 4; width: 136px; height: 136px; inset-inline-start: -64px; top: 58%;
  opacity: 0; transform: scale(0.75) rotate(-40deg); transition: opacity 1s 1.1s, transform 1.6s var(--ease-out) 1.1s;
}
.is-ready .badge { opacity: 1; transform: none; }
.badge__ring { width: 100%; height: 100%; overflow: visible; animation: spin 28s linear infinite; }
.badge__ring text { font-family: var(--mono); font-size: 11.6px; letter-spacing: 2.4px; fill: var(--jasmine-2); text-transform: uppercase; }
:lang(ar) .badge__ring text { font-family: var(--sans); font-size: 14px; letter-spacing: 0.5px; }
.badge__core {
  position: absolute; inset: 27%; border-radius: 50%; display: grid; place-items: center;
  background: rgba(6, 10, 20, 0.75); border: 1px solid rgba(255, 226, 168, 0.28);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.badge__core svg { position: absolute; inset: 24%; width: 52%; height: 52%; color: var(--lamp); fill: none; stroke: currentColor; stroke-width: 2.4; overflow: visible; }
.badge__core svg circle { fill: currentColor; stroke: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.hero__meta {
  position: relative; z-index: 2; display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem;
  margin-top: clamp(26px, 5vh, 56px);
}
.vitals-row { display: flex; flex-wrap: wrap; margin: 0; border-top: 1px solid var(--hair); }
.vitals-row > div {
  padding: 1rem 2rem 0 0; margin-inline-end: 2rem; border-inline-end: 1px solid var(--hair);
  opacity: 0; transform: translateY(12px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}
[dir='rtl'] .vitals-row > div { padding: 1rem 0 0 2rem; }
.vitals-row > div:last-child { border: 0; margin: 0; }
.vitals-row > div:nth-child(1) { transition-delay: 0.9s; }
.vitals-row > div:nth-child(2) { transition-delay: 1s; }
.vitals-row > div:nth-child(3) { transition-delay: 1.1s; }
.vitals-row > div:nth-child(4) { transition-delay: 1.2s; }
.is-ready .vitals-row > div { opacity: 1; transform: none; }
.vitals-row dt { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--jasmine-3); }
.vitals-row dd { margin: 0.35rem 0 0; font-family: var(--serif); font-size: 1.2rem; display: flex; align-items: center; gap: 0.5rem; }
:lang(ar) .vitals-row dt { font-family: var(--sans); letter-spacing: 0; text-transform: none; font-size: 0.8rem; }
.season-icon { display: inline-grid; width: 16px; height: 16px; color: var(--season); }
.season-icon svg { width: 100%; height: 100%; }
.scroll-cue {
  display: inline-flex; align-items: center; gap: 0.9rem; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--jasmine-2); white-space: nowrap; opacity: 0; transition: opacity 1s 1.4s, color 0.3s;
}
:lang(ar) .scroll-cue { font-family: var(--sans); letter-spacing: 0; font-size: 0.85rem; }
.is-ready .scroll-cue { opacity: 1; }
.scroll-cue:hover { color: var(--lamp-hi); }
.scroll-cue__line { position: relative; width: 72px; height: 1px; overflow: hidden; background: rgba(244, 184, 96, 0.3); }
.scroll-cue__line::after {
  content: ''; position: absolute; inset: 0; background: var(--lamp-hi);
  transform: translateX(-100%); animation: cue 2.4s var(--ease-io) infinite;
}
[dir='rtl'] .scroll-cue__line::after { animation-name: cue-rtl; }
@keyframes cue { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }
@keyframes cue-rtl { 0% { transform: translateX(100%); } 60%, 100% { transform: translateX(-100%); } }

/* ---------- Chapters ---------- */
.chapter { position: relative; padding-block: clamp(110px, 16vh, 200px); }
.chapter__head { position: relative; z-index: 0; margin-bottom: clamp(48px, 8vh, 100px); }
.chapter__head--tight { margin-bottom: clamp(36px, 6vh, 72px); }
.chapter__lede { max-width: 54ch; color: var(--jasmine-2); margin: 1.6rem 0 0; font-size: 1.08rem; }
.numeral {
  position: absolute; z-index: -1; inset-inline-end: 0; top: 50%; translate: 0 -46%; pointer-events: none; user-select: none;
  font-family: 'Newsreader', serif; font-weight: 200; font-style: italic; font-size: clamp(9rem, 21vw, 22rem); line-height: 1; letter-spacing: -0.02em;
  color: transparent; -webkit-text-stroke: 1px rgba(244, 184, 96, 0.26);
  background: linear-gradient(180deg, rgba(244, 184, 96, 0.08), transparent 70%); -webkit-background-clip: text; background-clip: text;
}
.journey__intro .numeral { top: 0; translate: 0 -8%; }

/* I · Faith */
.faith__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; }
.faith__media { grid-column: 1 / span 5; position: relative; padding-bottom: 16%; }
.faith__media .arch { width: 84%; }
.polaroid {
  position: absolute; inset-inline-end: 0; bottom: 0; width: 46%; margin: 0; padding: 10px 10px 14px;
  background: #f2ede2; color: #2b241b; border-radius: 4px; rotate: 4deg;
  box-shadow: 0 34px 80px -24px rgba(0, 0, 0, 0.85);
}
[dir='rtl'] .polaroid { rotate: -4deg; }
.polaroid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; border-radius: 2px; }
.polaroid figcaption { margin-top: 0.65rem; font-family: var(--serif); font-style: italic; font-size: 0.86rem; line-height: 1.35; }
:lang(ar) .polaroid figcaption { font-style: normal; }
.faith__text { grid-column: 7 / span 6; }
.lead { font-family: var(--serif); font-weight: 300; font-size: clamp(1.35rem, 2vw, 1.9rem); line-height: 1.38; color: var(--jasmine); margin-top: 0; }
:lang(ar) .lead { line-height: 1.9; }
.faith__text > p:not(.lead) { color: var(--jasmine-2); max-width: 56ch; }

.chart {
  position: relative; margin-top: 2.6rem; border: 1px solid var(--hair-2); border-radius: 18px; overflow: hidden;
  background:
    linear-gradient(rgba(244, 184, 96, 0.035) 1px, transparent 1px) 0 0 / 100% 22px,
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008));
}
.chart__head {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.95rem 1.25rem;
  border-bottom: 1px solid var(--hair); font-size: 0.68rem; color: var(--jasmine-3);
}
.chart__ecg { flex: 1; max-width: 160px; height: 22px; overflow: visible; }
.chart__ecg path { fill: none; stroke: var(--lamp); stroke-width: 1.2; stroke-linejoin: round; filter: drop-shadow(0 0 3px rgba(244, 184, 96, 0.7)); }
.chart__id { color: var(--lamp); }
.chart dl { margin: 0; padding: 0.3rem 1.25rem 0.9rem; }
.chart__row { display: grid; grid-template-columns: 8.5rem 1fr; gap: 1rem; align-items: baseline; padding: 0.78rem 0; border-bottom: 1px dashed var(--hair); }
.chart__row:last-child { border-bottom: 0; }
.chart dt { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--jasmine-3); }
.chart dd { margin: 0; font-family: var(--serif); font-size: 1.14rem; }
:lang(ar) .chart dt { font-family: var(--sans); letter-spacing: 0; text-transform: none; font-size: 0.82rem; }

.verse { position: relative; margin-top: clamp(100px, 15vh, 170px); text-align: center; }
.verse__jasmine { width: 78px; height: 78px; margin: 0 auto 1.5rem; color: var(--lamp); overflow: visible; filter: drop-shadow(0 0 10px rgba(244, 184, 96, 0.45)); }
.js .verse__jasmine path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.6s var(--ease-out); }
.js .verse__jasmine circle { opacity: 0; transition: opacity 1s 1.6s; }
.verse.in .verse__jasmine path { stroke-dashoffset: 0; }
.verse.in .verse__jasmine circle { opacity: 1; }
.verse__label { font-size: 0.7rem; color: var(--jasmine-3); margin: 0; }
.verse__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 2.4rem; border-top: 1px solid var(--hair); }
.verse blockquote {
  margin: 0; padding: 2.3rem 2rem 0.4rem; border-inline-end: 1px solid var(--hair);
  opacity: 0; transform: translateY(20px); transition: opacity 1.2s var(--ease-out), transform 1.2s var(--ease-out);
}
.verse blockquote:nth-child(2) { transition-delay: 0.15s; }
.verse blockquote:nth-child(3) { transition-delay: 0.3s; border-inline-end: 0; }
.verse.in blockquote { opacity: 1; transform: none; }
html:not(.js) .verse blockquote { opacity: 1; transform: none; }
.verse blockquote p { margin: 0; font-family: var(--serif); font-weight: 300; font-style: italic; font-size: clamp(1.25rem, 1.65vw, 1.62rem); line-height: 1.42; }
.verse blockquote[lang='ar'] p { font-style: normal; font-weight: 400; font-size: clamp(1.4rem, 1.9vw, 1.9rem); line-height: 1.85; }
.verse cite { display: block; margin-top: 1.2rem; font-style: normal; font-size: 0.68rem; color: var(--lamp); }
.verse blockquote[lang='ar'] cite { font-family: 'IBM Plex Sans Arabic', sans-serif; letter-spacing: 0; font-size: 0.8rem; }

/* II · Journey */
.journey { position: relative; padding-top: clamp(110px, 16vh, 200px); }
.journey__intro { position: relative; z-index: 1; }
.journey__lede { max-width: 56ch; color: var(--jasmine-2); margin: 1.6rem 0 0; font-size: 1.08rem; }
.journey__track { position: relative; height: 640vh; margin-top: 4vh; }
.journey__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.journey__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.journey__labels { position: absolute; inset: 0; pointer-events: none; }
.city {
  position: absolute; left: 0; top: 0; display: flex; flex-direction: column; align-items: center; text-align: center;
  opacity: 0; will-change: transform, opacity;
}
.city__when { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--lamp); white-space: nowrap; }
:lang(ar) .city__when { font-family: var(--sans); letter-spacing: 0; font-size: 0.8rem; }
.city__place {
  font-family: var(--serif); font-weight: 300; font-style: italic; font-size: clamp(1.5rem, 2.5vw, 2.6rem); line-height: 1.15;
  white-space: nowrap; text-shadow: 0 2px 30px rgba(6, 10, 20, 0.95); transition: color 0.5s;
}
:lang(ar) .city__place { font-style: normal; }
.city__pin { width: 1px; height: 42px; margin-top: 0.45rem; background: linear-gradient(var(--lamp), rgba(244, 184, 96, 0)); }
.city.is-active .city__place { color: var(--lamp-hi); }
.journey__tag {
  position: absolute; top: calc(var(--nav-h) + 14px); inset-inline-start: var(--gutter); margin: 0;
  display: flex; align-items: center; gap: 0.7rem; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--jasmine-2);
}
:lang(ar) .journey__tag { font-family: var(--sans); letter-spacing: 0; font-size: 0.85rem; }
.journey__hint {
  position: absolute; left: 50%; bottom: 32%; translate: -50% 0; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 0.7rem;
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--jasmine-2);
  transition: opacity 0.6s;
}
:lang(ar) .journey__hint { font-family: var(--sans); letter-spacing: 0; font-size: 0.85rem; }
.journey__hint-line { width: 1px; height: 38px; background: linear-gradient(var(--lamp), transparent); animation: hint 2s var(--ease-io) infinite; transform-origin: top; }
@keyframes hint { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
.journey__hud {
  position: absolute; inset-inline: var(--gutter); bottom: clamp(18px, 4vh, 44px);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; pointer-events: none;
}
.hud__card {
  width: min(420px, 100%); padding: 1.25rem 1.4rem 1.3rem; border-radius: 18px;
  background: rgba(6, 10, 20, 0.6); border: 1px solid var(--hair-2);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.hud__card.swap { animation: swap 0.7s var(--ease-out); }
@keyframes swap { from { opacity: 0.2; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.hud__meta { margin: 0; display: flex; justify-content: space-between; gap: 1rem; font-size: 0.7rem; }
.hud__when { color: var(--lamp); }
.hud__place { color: var(--jasmine-3); }
.hud__title { margin: 0.45rem 0 0.3rem; font-family: var(--serif); font-weight: 300; font-size: 1.75rem; line-height: 1.15; letter-spacing: -0.01em; }
:lang(ar) .hud__title { line-height: 1.5; }
.hud__text { margin: 0; color: var(--jasmine-2); font-size: 0.95rem; line-height: 1.55; }
.hud__progress { flex: 1; max-width: 460px; display: grid; gap: 0.7rem; justify-items: end; }
.hud__count { font-family: var(--mono); font-size: 0.7rem; color: var(--jasmine-2); font-variant-numeric: tabular-nums; }
.hud__rail { position: relative; width: 100%; height: 1px; background: var(--hair-2); }
.hud__bar { position: absolute; inset-block: 0; inset-inline-start: 0; width: 0; background: var(--lamp); box-shadow: 0 0 10px var(--lamp); }
.hud__ticks { list-style: none; margin: 0; padding: 0; width: 100%; display: flex; justify-content: space-between; }
.hud__ticks li { width: 7px; height: 7px; border-radius: 50%; background: var(--hair-2); transition: background 0.4s, box-shadow 0.4s, transform 0.4s; }
.hud__ticks li.on { background: var(--lamp); box-shadow: 0 0 12px var(--lamp); }
.hud__ticks li.now { transform: scale(1.6); }
.journey__list-wrap { position: absolute; }
.journey__list { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; margin: 0; }

/* Interlude · the streetlight */
.light { position: relative; background: #000; color: var(--jasmine); }
.light::before, .light::after { content: ''; position: absolute; inset-inline: 0; height: 30vh; z-index: 1; pointer-events: none; }
.light::before { top: 0; background: linear-gradient(var(--night), transparent); }
.light::after { bottom: 0; background: linear-gradient(transparent, var(--night)); }
.light__track { height: 280vh; position: relative; }
.light__stage {
  --p: 0; --on: 0; position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter);
  align-items: center; padding-inline: var(--gutter); direction: ltr;
}
.light__unit { position: relative; grid-column: 1 / span 6; height: 100%; }
.lamp { position: absolute; left: 4%; top: 0; height: 100%; width: auto; overflow: visible; }
.lamp__bulb { fill: #3a3a3a; transition: fill 0.3s; }
.light__stage.is-on .lamp__bulb { fill: #fff3d6; filter: drop-shadow(0 0 8px #ffd796) drop-shadow(0 0 22px #f4b860); }
.light__cone {
  position: absolute; z-index: 2; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none;
  opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(60% 82% at var(--cone-x, 31%) var(--cone-y, 11%), rgba(255, 222, 165, 0.5), rgba(255, 196, 120, 0.14) 46%, transparent 76%);
  clip-path: polygon(calc(var(--cone-x, 31%) - 1.2%) var(--cone-y, 11%), calc(var(--cone-x, 31%) + 1.2%) var(--cone-y, 11%), calc(var(--cone-x, 31%) + 52%) 100%, calc(var(--cone-x, 31%) - 52%) 100%);
  mix-blend-mode: screen;
}
.light__stage.is-on .light__cone { opacity: var(--cone, 0); animation: flicker 1.1s steps(1) 1; }
@keyframes flicker {
  0% { opacity: 0; } 8% { opacity: 0.8; } 14% { opacity: 0.1; } 22% { opacity: 0.9; } 30% { opacity: 0.25; } 38% { opacity: 1; } 100% { opacity: var(--cone, 1); }
}
.light__cone i {
  position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #ffe7bd; opacity: 0;
  box-shadow: 0 0 6px #ffd796; animation: mote 7s linear infinite;
}
.light__cone i:nth-child(1) { left: 30%; top: 30%; animation-delay: -1s; }
.light__cone i:nth-child(2) { left: 38%; top: 46%; animation-delay: -3s; animation-duration: 9s; }
.light__cone i:nth-child(3) { left: 24%; top: 58%; animation-delay: -5s; }
.light__cone i:nth-child(4) { left: 44%; top: 66%; animation-delay: -2s; animation-duration: 8s; }
.light__cone i:nth-child(5) { left: 33%; top: 76%; animation-delay: -6s; }
.light__cone i:nth-child(6) { left: 52%; top: 52%; animation-delay: -4s; animation-duration: 10s; }
.light__cone i:nth-child(7) { left: 19%; top: 40%; animation-delay: -7s; }
.light__cone i:nth-child(8) { left: 41%; top: 84%; animation-delay: -2.5s; animation-duration: 11s; }
@keyframes mote {
  0% { opacity: 0; transform: translate(0, 0); } 20% { opacity: 0.9; }
  50% { transform: translate(14px, -26px); } 80% { opacity: 0.7; } 100% { opacity: 0; transform: translate(-10px, -52px); }
}
.light__photo {
  position: absolute; z-index: 1; margin: 0; left: calc(var(--cone-x, 31%) - 33%); top: 21%; width: 66%; aspect-ratio: 1; overflow: hidden;
  opacity: var(--photo, 0); filter: brightness(calc(0.25 + var(--photo, 0) * 0.7)) sepia(0.35) contrast(1.08);
  -webkit-mask-image: radial-gradient(50% 50% at 50% 44%, #000 50%, transparent 100%);
  mask-image: radial-gradient(50% 50% at 50% 44%, #000 50%, transparent 100%);
  transform: scale(calc(1.06 - var(--photo, 0) * 0.06));
}
.light__photo img { width: 100%; height: 100%; object-fit: cover; }
.light__copy { grid-column: 8 / span 5; position: relative; z-index: 2; }
[dir='rtl'] .light__copy { direction: rtl; text-align: right; }
.light__copy > * { opacity: 0; transform: translateY(16px); transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out); }
.light__stage.show-copy .light__copy > * { opacity: 1; transform: none; }
.light__stage.show-copy .light__copy > :nth-child(2) { transition-delay: 0.1s; }
.light__stage.show-copy .light__copy > :nth-child(3) { transition-delay: 0.25s; }
.light__stage.show-copy .light__copy > :nth-child(4) { transition-delay: 0.35s; }
.light__stage.show-copy .light__copy > :nth-child(5) { transition-delay: 0.55s; }
.light__quote { margin: 0 0 1.2rem; }
.light__quote p { margin: 0; font-family: 'Amiri', serif; font-size: clamp(1.9rem, 3.2vw, 3.1rem); line-height: 1.6; color: var(--lamp-hi); text-shadow: 0 0 30px rgba(244, 184, 96, 0.35); }
.light__translation { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(1.15rem, 1.5vw, 1.4rem); line-height: 1.45; color: var(--jasmine); margin-bottom: 0.6rem; }
.light__source { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--jasmine-3); }
:lang(ar) .light__source { font-family: var(--sans); letter-spacing: 0; text-transform: none; font-size: 0.85rem; }
.light__text { margin-top: 2rem; padding-top: 1.6rem; border-top: 1px solid var(--hair); color: var(--jasmine-2); font-size: 1.05rem; max-width: 44ch; }

/* III · Love */
.love::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(19, 36, 74, 0.32) 28%, rgba(19, 36, 74, 0.32) 72%, transparent);
}
.principles {
  list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px; background: var(--hair); border: 1px solid var(--hair); border-radius: 24px; overflow: hidden;
}
.principle {
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column;
  min-height: 380px; padding: 1.9rem 1.7rem 2.2rem; background: rgba(6, 10, 20, 0.92);
}
.principle::before {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 0.6s;
  background: radial-gradient(340px circle at var(--x, 50%) var(--y, 0%), rgba(244, 184, 96, 0.15), transparent 62%);
}
.principle:hover::before { opacity: 1; }
.principle__no { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.14em; color: var(--jasmine-3); }
.principle__icon { width: 58px; height: 58px; margin: 2.3rem 0 0; color: var(--lamp); overflow: visible; }
.principle__icon path, .principle__icon circle { fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.principle__icon .fill { fill: currentColor; stroke: none; }
.principle__icon .glyph { fill: currentColor; stroke: none; font-family: 'Newsreader', serif; font-size: 11px; }
.principle__icon .glyph--ar { font-family: 'Amiri', serif; font-size: 12px; }
.js .principle__icon [pathLength] { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.8s var(--ease-out) calc(var(--d, 0s) + 0.3s); }
.principle.in .principle__icon [pathLength] { stroke-dashoffset: 0; }
.principle h3 { margin: 3.4rem 0 0.7rem; font-family: var(--serif); font-weight: 300; font-size: 1.68rem; line-height: 1.12; letter-spacing: -0.01em; }
:lang(ar) .principle h3 { line-height: 1.5; font-size: 1.6rem; }
.principle p { margin: 0; color: var(--jasmine-2); font-size: 0.97rem; }

.smile { margin: clamp(100px, 15vh, 170px) 0 0; text-align: center; }
.smile blockquote { margin: 0; }
.smile__quote {
  margin: 0 auto; max-width: 17ch; font-family: var(--serif); font-weight: 300; font-size: clamp(2.3rem, 5.2vw, 5.4rem);
  line-height: 1.04; letter-spacing: -0.032em;
}
:lang(ar) .smile__quote { line-height: 1.45; letter-spacing: 0; font-weight: 400; max-width: 20ch; }
.smile__line { width: min(100%, 1000px); height: clamp(90px, 12vw, 150px); margin: 1.4rem auto 0; overflow: visible; }
.smile__line path { fill: none; stroke: var(--lamp-hi); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 7px rgba(244, 184, 96, 0.85)); }
.smile figcaption { margin-top: 0.6rem; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--jasmine-3); }
:lang(ar) .smile figcaption { font-family: var(--sans); letter-spacing: 0; text-transform: none; font-size: 0.85rem; }

/* Moments */
.moments { position: relative; padding-block: clamp(110px, 16vh, 200px); overflow: clip; }
.moments__head { position: relative; z-index: 2; display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem 3rem; margin-bottom: clamp(30px, 5vh, 56px); }
.moments__side { display: grid; justify-items: end; gap: 1rem; }
.moments__hint { margin: 0; max-width: 30ch; text-align: end; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--jasmine-3); }
:lang(ar) .moments__hint { font-family: var(--sans); letter-spacing: 0; text-transform: none; font-size: 0.85rem; }
.moments__controls { display: flex; align-items: center; gap: 0.8rem; }
.counter { min-width: 5.5ch; text-align: center; font-family: var(--mono); font-size: 0.74rem; color: var(--jasmine-2); font-variant-numeric: tabular-nums; }
.projector { position: absolute; z-index: 0; top: 0; left: 50%; width: 76vw; height: 100%; translate: -50% 0; pointer-events: none; }
.projector::before {
  content: ''; position: absolute; inset: 0; filter: blur(14px);
  background: conic-gradient(from 180deg at 50% -4%, transparent 166deg, rgba(255, 214, 150, 0.09) 175deg, rgba(255, 214, 150, 0.16) 180deg, rgba(255, 214, 150, 0.09) 185deg, transparent 194deg);
}
.projector i { position: absolute; left: 50%; width: 2px; height: 2px; border-radius: 50%; background: #ffe7bd; opacity: 0; animation: dust 9s linear infinite; }
.projector i:nth-child(1) { top: 22%; margin-left: -30px; }
.projector i:nth-child(2) { top: 38%; margin-left: 40px; animation-delay: -2s; }
.projector i:nth-child(3) { top: 54%; margin-left: -64px; animation-delay: -4s; }
.projector i:nth-child(4) { top: 30%; margin-left: 12px; animation-delay: -6s; }
.projector i:nth-child(5) { top: 66%; margin-left: 76px; animation-delay: -3s; }
.projector i:nth-child(6) { top: 46%; margin-left: -10px; animation-delay: -7.5s; }
@keyframes dust { 0% { opacity: 0; transform: translate(0, 0); } 25% { opacity: 0.7; } 75% { opacity: 0.4; } 100% { opacity: 0; transform: translate(26px, -60px); } }
.strip {
  position: relative; z-index: 1; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory;
  scrollbar-width: none; overscroll-behavior-x: contain; padding-block: 2vh 1vh; cursor: grab; outline-offset: -4px;
}
.strip::-webkit-scrollbar { display: none; }
.strip.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.strip.is-dragging .frame__btn { pointer-events: none; }
.strip__list {
  list-style: none; margin: 0; display: flex; align-items: center; gap: clamp(18px, 2.4vw, 40px); width: max-content;
  padding: 0 calc(50vw - clamp(130px, 17vw, 230px));
}
.frame { --d: 1; position: relative; scroll-snap-align: center; margin: 0; }
.frame figure { margin: 0; }
.frame__btn { display: block; border-radius: 16px; cursor: inherit; }
.frame__media {
  display: block; height: clamp(320px, 58vh, 620px); aspect-ratio: var(--ar); overflow: hidden; border-radius: 16px;
  transform: scale(calc(1 - var(--d) * 0.08)); filter: brightness(calc(1 - var(--d) * 0.6)) saturate(calc(1 - var(--d) * 0.75));
  box-shadow: 0 40px 90px -36px rgba(0, 0, 0, 0.95); transition: border-radius 0.6s var(--ease-out);
}
.frame:nth-child(3n + 1) .frame__media { border-radius: var(--arch); }
.frame__media img { width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; transition: transform 1.2s var(--ease-out); }
.frame__btn:hover .frame__media img { transform: scale(1.04); }
.frame figcaption { margin-top: 1rem; display: grid; gap: 0.2rem; opacity: calc(1 - var(--d) * 1.5); }
.frame__cap { font-family: var(--serif); font-size: 1.12rem; line-height: 1.3; }
.frame__place { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--lamp); }
:lang(ar) .frame__place { font-family: var(--sans); letter-spacing: 0; font-size: 0.82rem; }
.moments__progress { position: relative; width: min(100% - var(--gutter) * 2, 520px); height: 1px; margin: 2.6rem auto 0; background: var(--hair-2); }
.moments__progress span { position: absolute; inset-block: 0; inset-inline-start: 0; width: var(--prog, 8%); background: var(--lamp); box-shadow: 0 0 10px var(--lamp); transition: width 0.2s; }

/* Lightbox */
.lightbox {
  width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; margin: 0; padding: 0; border: 0;
  background: transparent; color: var(--jasmine); overflow: hidden;
}
.lightbox::backdrop { background: rgba(3, 5, 10, 0.94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.lightbox[open] { animation: lbin 0.5s var(--ease-out); }
@keyframes lbin { from { opacity: 0; transform: scale(0.98); } to { opacity: 1; transform: none; } }
.lightbox__figure { margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.1rem; padding: 5vh 7vw; }
.lightbox__figure img { max-width: 100%; max-height: 78vh; width: auto; height: auto; object-fit: contain; border-radius: 12px; box-shadow: 0 40px 120px -30px #000; }
.lightbox figcaption { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 0.4rem 1.2rem; text-align: center; }
.lightbox__caption { font-family: var(--serif); font-size: 1.3rem; }
.lightbox__place, .lightbox__count { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--lamp); }
.lightbox__count { color: var(--jasmine-3); }
.lightbox__close { position: absolute; top: 20px; inset-inline-end: 20px; }
.lightbox__prev, .lightbox__next { position: absolute; top: 50%; translate: 0 -50%; }
.lightbox__prev { inset-inline-start: 20px; }
.lightbox__next { inset-inline-end: 20px; }

/* Beyond the white coat */
.beyond { position: relative; padding-block: clamp(100px, 14vh, 180px); }
.index { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--hair); }
.index__row {
  position: relative; display: grid; grid-template-columns: 4.5rem minmax(0, 1fr) minmax(0, 24rem); gap: 1.5rem; align-items: center;
  padding: clamp(1rem, 2.4vh, 1.7rem) 0; border-top: 1px solid var(--hair);
}
.index__row::after {
  content: ''; position: absolute; inset-inline: 0; bottom: -1px; height: 1px; background: var(--lamp);
  transform: scaleX(0); transform-origin: left; transition: transform 0.9s var(--ease-out);
}
[dir='rtl'] .index__row::after { transform-origin: right; }
.index__row:hover::after { transform: scaleX(1); }
.index__no { font-family: var(--mono); font-size: 0.68rem; color: var(--jasmine-3); }
.index__t {
  font-family: var(--serif); font-weight: 300; font-size: clamp(2.3rem, 5.6vw, 5.4rem); line-height: 1.02; letter-spacing: -0.035em;
  transition: transform 0.8s var(--ease-out), color 0.4s;
}
:lang(ar) .index__t { letter-spacing: 0; line-height: 1.45; font-size: clamp(2.1rem, 4.6vw, 4.4rem); }
.index__row:hover .index__t { transform: translateX(calc(var(--dir) * 1.4rem)); color: var(--lamp-hi); font-style: italic; }
:lang(ar) .index__row:hover .index__t { font-style: normal; }
.index__d { font-family: var(--mono); font-size: 0.74rem; line-height: 1.6; color: var(--jasmine-2); text-align: end; letter-spacing: 0.03em; }
:lang(ar) .index__d { font-family: var(--sans); font-size: 0.9rem; letter-spacing: 0; }
.index__thumb { display: none; }
.hover-card {
  position: fixed; left: 0; top: 0; z-index: 30; width: 250px; aspect-ratio: 4 / 5; pointer-events: none; overflow: hidden;
  border-radius: var(--arch); opacity: 0; transition: opacity 0.35s; will-change: transform;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 226, 168, 0.2);
}
.hover-card.is-on { opacity: 1; }
.hover-card img { width: 100%; height: 100%; object-fit: cover; }
.hover-card__barca, .index__thumb--barca {
  position: absolute; inset: 0; display: none; place-content: center; text-align: center;
  background: repeating-linear-gradient(90deg, #0b3b86 0 20%, #a3194b 20% 40%);
}
.hover-card.is-barca img { display: none; }
.hover-card.is-barca .hover-card__barca { display: grid; }
.hover-card__barca b { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 2.6rem; line-height: 1; color: #ffd166; text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5); }

/* Finale */
.finale { position: relative; text-align: center; padding-block: clamp(120px, 20vh, 240px) clamp(80px, 12vh, 140px); overflow: clip; isolation: isolate; }
.finale__glow { position: absolute; z-index: -1; inset: auto -10% -35vh; height: 90vh; background: radial-gradient(50% 60% at 50% 100%, rgba(244, 184, 96, 0.24), transparent 70%); pointer-events: none; }
.finale .kicker { justify-content: center; }
.finale .kicker::after { content: ''; width: 28px; height: 1px; background: currentColor; opacity: 0.7; }
.finale__verse {
  margin: 0 auto; max-width: 12ch; font-family: var(--serif); font-weight: 300; font-size: clamp(3.6rem, 11.5vw, 12.5rem);
  line-height: 0.92; letter-spacing: -0.048em; font-variation-settings: 'opsz' 72;
}
:lang(ar) .finale__verse { font-weight: 400; line-height: 1.35; letter-spacing: 0; font-size: clamp(3.2rem, 9vw, 9.6rem); }
.finale__ref { margin: 1.5rem 0 0; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--lamp); }
:lang(ar) .finale__ref { font-family: var(--sans); letter-spacing: 0; font-size: 0.95rem; }
.finale__line { width: min(100%, 1100px); height: auto; margin: 2.6rem auto 0; overflow: visible; }
.finale__line path { fill: none; stroke: var(--lamp-hi); stroke-width: 1.6; stroke-linejoin: round; filter: drop-shadow(0 0 6px rgba(244, 184, 96, 0.85)); }
.js .finale__line path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 3.2s var(--ease-io); }
.finale__line.in path { stroke-dashoffset: 0; }
.finale__beat { fill: var(--lamp-hi); transform-box: fill-box; transform-origin: center; filter: drop-shadow(0 0 8px var(--lamp)); }
.js .finale__beat { opacity: 0; transition: opacity 0.6s 3s; }
.finale__line.in .finale__beat { opacity: 1; }
.finale__text { max-width: 48ch; margin: 2.2rem auto 2.4rem; color: var(--jasmine-2); font-size: 1.08rem; }
.finale__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.9rem; }
.socials { list-style: none; margin: 2.8rem 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.6rem 2rem; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; }
.socials a { display: inline-flex; align-items: center; gap: 0.35rem; color: var(--jasmine-2); transition: color 0.3s; }
.socials a:hover { color: var(--lamp-hi); }
.socials svg { flex: none; width: 15px; height: 15px; }
[dir='rtl'] .socials svg { transform: scaleX(-1); }
.socials__where { color: var(--jasmine-3); }
:lang(ar) .socials__where { font-family: var(--sans); letter-spacing: 0; text-transform: none; font-size: 0.9rem; }
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 70; translate: -50% 20px; margin: 0; padding: 0.75rem 1.2rem; border-radius: 999px;
  background: var(--jasmine); color: var(--night); font-size: 0.88rem; opacity: 0; pointer-events: none; transition: opacity 0.4s, translate 0.5s var(--ease-out);
}
.toast.show { opacity: 1; translate: -50% 0; }

/* Footer */
.footer { border-top: 1px solid var(--hair); padding: 2.2rem 0 2.4rem; font-size: 0.86rem; color: var(--jasmine-3); }
.footer__grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem 2rem; }
.brand--small { gap: 0.6rem; color: var(--jasmine-2); }
.brand--small .brand__mark { width: 22px; height: 22px; }
.footer__legal { display: flex; gap: 1.4rem; }
.footer__legal button, .footer__top { color: var(--jasmine-2); transition: color 0.3s; }
.footer__legal button:hover, .footer__top:hover { color: var(--lamp-hi); }
.footer__tools { display: flex; align-items: center; gap: 1.4rem; }
.season-switch {
  display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.5rem 0.85rem; border-radius: 999px; border: 1px solid var(--hair-2);
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--jasmine-2);
  transition: border-color 0.3s, color 0.3s;
}
:lang(ar) .season-switch { font-family: var(--sans); letter-spacing: 0; font-size: 0.85rem; }
.season-switch:hover { border-color: var(--season); color: var(--jasmine); }
.footer__note { margin: 1.4rem auto 0; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--jasmine-3); }
:lang(ar) .footer__note { font-family: var(--sans); letter-spacing: 0; font-size: 0.82rem; }

/* Legal dialogs */
.legal {
  width: min(100% - 32px, 680px); max-height: 84vh; padding: 2.3rem 2.3rem 2rem; border: 1px solid var(--hair-2); border-radius: 22px;
  background: var(--night-2); color: var(--jasmine); overflow: auto; font-family: 'Instrument Sans', sans-serif;
}
.legal::backdrop { background: rgba(3, 5, 10, 0.78); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.legal[open] { animation: lbin 0.45s var(--ease-out); }
.legal h2 { margin: 0 0 0.6rem; font-family: 'Newsreader', serif; font-weight: 300; font-size: 2.2rem; letter-spacing: -0.02em; }
.legal h3 { margin: 1.7rem 0 0.45rem; font-family: 'IBM Plex Mono', monospace; font-weight: 500; font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--lamp); }
.legal p, .legal address { margin: 0 0 0.6rem; color: var(--jasmine-2); font-size: 0.95rem; font-style: normal; line-height: 1.65; }
.legal__lead { color: var(--jasmine-3) !important; }
.legal__note { margin-top: 1.4rem !important; font-size: 0.85rem !important; color: var(--jasmine-3) !important; }
.legal .todo { color: var(--lamp); }
.legal a { color: var(--lamp-hi); text-decoration: underline; text-decoration-color: rgba(255, 226, 168, 0.35); text-underline-offset: 3px; }
.legal a:hover { text-decoration-color: var(--lamp-hi); }
.legal__close { position: sticky; top: 0; float: right; margin: -0.6rem -0.6rem 0 0.6rem; width: 44px; height: 44px; background: var(--night-2); }

/* Curriculum vitae */
.cv { position: relative; padding-block: clamp(100px, 14vh, 180px) clamp(70px, 10vh, 130px); }
.cv__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 2rem 3rem; margin-bottom: clamp(44px, 7vh, 84px); }
.cv__download {
  display: inline-flex; align-items: center; gap: 1rem; padding: 0.8rem 1.5rem 0.8rem 0.8rem; border-radius: 999px;
  border: 1px solid rgba(244, 184, 96, 0.45); background: linear-gradient(180deg, rgba(244, 184, 96, 0.12), rgba(244, 184, 96, 0.04));
  transition: border-color 0.4s, background 0.4s, box-shadow 0.5s, transform 0.6s var(--ease-out);
}
.cv__download:hover { border-color: var(--lamp); background: linear-gradient(180deg, rgba(244, 184, 96, 0.2), rgba(244, 184, 96, 0.07)); box-shadow: 0 16px 50px -16px rgba(244, 184, 96, 0.55); }
.cv__download-icon { flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #1a1206; background: linear-gradient(180deg, #ffd99a, #f1ad55); box-shadow: inset 0 0 0 1px rgba(255, 236, 200, 0.5); }
.cv__download-icon svg { width: 22px; height: 22px; transition: transform 0.5s var(--ease-out); }
.cv__download:hover .cv__download-icon svg { transform: translateY(3px); }
.cv__download-text { display: grid; gap: 0.2rem; }
.cv__download-text strong { font-family: var(--serif); font-weight: 400; font-size: 1.28rem; line-height: 1.1; }
.cv__download-text small { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--lamp); }
:lang(ar) .cv__download-text small { font-family: var(--sans); letter-spacing: 0; text-transform: none; font-size: 0.8rem; }
.btn .i-down { flex: none; width: 18px; height: 18px; }

.cv__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 96px); }
.cv__label {
  display: flex; align-items: center; gap: 0.8rem; margin: 0 0 1.5rem;
  font-family: var(--mono); font-weight: 500; font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--jasmine-3);
}
.cv__label::after { content: ''; flex: 1; height: 1px; background: var(--hair); }
:lang(ar) .cv__label { font-family: var(--sans); letter-spacing: 0; text-transform: none; font-size: 0.9rem; }
.cv__list { position: relative; list-style: none; margin: 0; padding: 0; }
.cv__list::before { content: ''; position: absolute; inset-inline-start: 5px; top: 12px; bottom: 26px; width: 1px; background: linear-gradient(var(--lamp), rgba(244, 184, 96, 0.08)); }
.cv__item { position: relative; padding-inline-start: 2.2rem; padding-bottom: 2.2rem; }
.cv__item::before {
  content: ''; position: absolute; inset-inline-start: 0; top: 0.4rem; width: 11px; height: 11px; border-radius: 50%;
  background: var(--night); border: 1px solid var(--lamp);
}
.cv__item--now::before, .cv__item--key::before { background: var(--lamp); box-shadow: 0 0 0 4px rgba(244, 184, 96, 0.15), 0 0 14px var(--lamp); }
.cv__item--now::before { animation: live 2.4s infinite; }
.cv__when { margin: 0 0 0.35rem; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.12em; color: var(--lamp); }
:lang(ar) .cv__when { font-family: var(--sans); letter-spacing: 0; font-size: 0.86rem; }
.cv__role { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(1.25rem, 1.7vw, 1.55rem); line-height: 1.25; letter-spacing: -0.01em; }
:lang(ar) .cv__role { line-height: 1.6; letter-spacing: 0; }
.cv__org { margin: 0.3rem 0 0; color: var(--jasmine-2); font-size: 0.95rem; }
.cv__points { display: grid; gap: 0.45rem; margin: 0.9rem 0 0; padding: 0; list-style: none; }
.cv__points li { position: relative; padding-inline-start: 1.1rem; color: var(--jasmine-2); font-size: 0.93rem; line-height: 1.55; }
.cv__points li::before { content: ''; position: absolute; inset-inline-start: 0; top: 0.75em; width: 6px; height: 1px; background: var(--lamp); }
.cv__extras {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; margin-top: 0.6rem; padding: 1.6rem;
  border: 1px solid var(--hair-2); border-radius: 18px; background: rgba(255, 255, 255, 0.025);
}
.cv__extras .cv__label { margin-bottom: 1rem; }
.cv__tags { display: grid; gap: 0.55rem; margin: 0; padding: 0; list-style: none; }
.cv__tags li { position: relative; padding-inline-start: 1.1rem; font-size: 0.95rem; line-height: 1.45; }
.cv__tags li::before { content: ''; position: absolute; inset-inline-start: 0; top: 0.72em; width: 6px; height: 1px; background: var(--lamp); }
.cv__langs { display: grid; gap: 0.95rem; margin: 0; padding: 0; list-style: none; }
.cv__langs li { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 0.35rem 0.8rem; }
.cv__langs span { font-family: var(--serif); font-size: 1.08rem; }
.cv__langs b { font-family: var(--mono); font-weight: 500; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--lamp); }
:lang(ar) .cv__langs b { font-family: var(--sans); letter-spacing: 0; font-size: 0.82rem; }
/* CEFR meter: six segments (A1–C2), filled up to the level */
.cv__langs i {
  position: relative; grid-column: 1 / -1; height: 4px; overflow: hidden;
  background: repeating-linear-gradient(90deg, var(--hair-2) 0 calc(100% / 6 - 3px), transparent calc(100% / 6 - 3px) calc(100% / 6));
}
.cv__langs i::after {
  content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: calc(var(--lvl) / 6 * 100%);
  background: repeating-linear-gradient(90deg, var(--lamp) 0 calc(100% / var(--lvl) - 3px), transparent calc(100% / var(--lvl) - 3px) calc(100% / var(--lvl)));
  filter: drop-shadow(0 0 4px rgba(244, 184, 96, 0.6)); transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease-out) 0.3s;
}
[dir='rtl'] .cv__langs i { transform: scaleX(-1); }
.cv__extras.in .cv__langs i::after, html:not(.js) .cv__langs i::after { transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1500px) { .clock { display: none; } }
@media (max-width: 1320px) { .nav__links { display: none; } .menu-btn { display: inline-flex; } }
@media (max-width: 1240px) {
  .nav__links, .clock { display: none; }
  .menu-btn { display: inline-flex; }
  .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .principle { min-height: 320px; }
}
@media (max-width: 900px) {
  :root { --nav-h: 66px; }
  .cv__grid { grid-template-columns: minmax(0, 1fr); }
  .cv__head { align-items: flex-start; }
  .nav__tools > .lang { display: none; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .hero__title, .hero__body, .hero__portrait { grid-column: 1; grid-row: auto; }
  .hero__portrait { width: min(74vw, 380px); justify-self: end; margin-top: clamp(16px, 3vh, 28px); }
  .hero__body { margin-top: 0.5rem; }
  .badge { width: 104px; height: 104px; inset-inline-start: -46px; top: 54%; }
  .hero__meta { flex-direction: column; align-items: stretch; gap: 1.6rem; }
  .vitals-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 0.4rem; }
  .vitals-row > div, [dir='rtl'] .vitals-row > div { padding: 0.9rem 0 0; margin: 0; border: 0; }
  .faith__grid { grid-template-columns: minmax(0, 1fr); row-gap: 3rem; }
  .faith__media, .faith__text { grid-column: 1; }
  .faith__media { width: min(100%, 520px); }
  .verse__grid { grid-template-columns: minmax(0, 1fr); }
  .verse blockquote, .verse blockquote:nth-child(3) { border: 0; border-bottom: 1px solid var(--hair); padding: 2rem 0.4rem 2rem; }
  .verse blockquote:last-child { border-bottom: 0; }
  .journey__track { height: 540vh; }
  .journey__hud { flex-direction: column; align-items: stretch; gap: 1rem; }
  .hud__card { width: 100%; padding: 1rem 1.1rem; }
  .hud__title { font-size: 1.4rem; }
  .hud__text { font-size: 0.88rem; }
  .hud__progress { max-width: none; justify-items: stretch; }
  .hud__count { justify-self: end; }
  .journey__hint { bottom: 46%; }
  .light__stage { grid-template-columns: minmax(0, 1fr); grid-template-rows: 58% 42%; align-items: start; }
  .light__unit { grid-column: 1; height: 100%; }
  .light__photo { left: calc(var(--cone-x, 31%) - 30%); top: 30%; width: 62%; }
  .light__copy { grid-column: 1; align-self: start; padding-top: 0.5rem; }
  .light__quote p { font-size: clamp(1.5rem, 6vw, 2rem); }
  .light__text { margin-top: 1rem; padding-top: 1rem; font-size: 0.95rem; }
  .moments__head { flex-direction: column; align-items: flex-start; }
  .moments__side { justify-items: start; }
  .moments__hint { text-align: start; }
  .index__row { grid-template-columns: 2.4rem minmax(0, 1fr) 64px; gap: 0.4rem 1rem; }
  .index__d { grid-column: 2; grid-row: 2; text-align: start; }
  .index__thumb { display: block; grid-column: 3; grid-row: 1 / span 2; width: 64px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 999px 999px 8px 8px; position: relative; overflow: hidden; }
  .index__thumb--barca { display: block; position: relative; }
  .index__row:hover .index__t { transform: none; }
  .hover-card { display: none; }
  .footer__grid { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .principles { grid-template-columns: minmax(0, 1fr); }
  .cv__extras { grid-template-columns: minmax(0, 1fr); padding: 1.3rem; }
  .cv__download { width: 100%; }
  .principle { min-height: 0; }
  .principle h3 { margin-top: 1.8rem; }
  .hero__name .line--2 { padding-inline-start: 11vw; }
  .vitals { padding: 0.32rem 0.6rem; }
  .vitals__unit { display: none; }
  .brand__name { font-size: 1.02rem; }
  .brand__name small { display: none; }
  .chart__row { grid-template-columns: 6.6rem 1fr; }
  .chart__ecg { display: none; }
  .hud__card { padding: 0.85rem 1rem; }
  .hud__text { display: none; }
  .finale__actions .btn { width: 100%; justify-content: center; }
}


/* Short laptop screens (1366×768, 1280×720, iPad landscape): fit the whole hero above the fold */
@media (min-width: 901px) and (max-height: 860px) {
  .hero { padding-top: calc(var(--nav-h) + 10px); padding-bottom: 14px; }
  .hero__eyebrow { margin-bottom: 0.9rem; }
  .hero__name { font-size: clamp(3.6rem, min(9.4vw, 15.5vh), 10rem); }
  .hero__tagline { margin-top: 1rem; font-size: clamp(1.25rem, 2vw, 1.85rem); }
  .hero__intro { margin: 0.6rem 0 1.15rem; font-size: 0.97rem; line-height: 1.55; max-width: 54ch; }
  .hero__portrait { width: min(100%, calc(56vh / 1.275)); }
  .hero__meta { margin-top: 16px; }
  .vitals-row > div, [dir='rtl'] .vitals-row > div { padding-top: 0.7rem; }
  .vitals-row dd { font-size: 1.08rem; }
}
/* Very small phones (≤380px): keep the menu button on screen, keep "E. Khoury" on one line */
@media (max-width: 380px) {
  .vitals { display: none; }
  .nav__inner { gap: 0.75rem; }
  .menu-btn { padding: 0.5rem 0.8rem; }
  .hero__name { font-size: 18vw; }
  .hero__name .line--2 { padding-inline-start: 7vw; }
  :lang(ar) .hero__name { font-size: 15vw; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; }
  .grain, .hero__dot { display: none; }
  .journey__track { height: auto; }
  .journey__stage { position: relative; height: 62vh; }
  .journey__hint, .journey__hud { display: none; }
  .journey__list-wrap { position: static; }
  .journey__list {
    position: static; width: auto; height: auto; overflow: visible; clip-path: none; white-space: normal;
    list-style: none; padding: 0; margin: 2rem auto 0; display: grid; gap: 1.2rem;
  }
  .light__track { height: auto; }
  .light__stage { position: relative; height: auto; min-height: 100vh; padding-block: 12vh; }
}
.journey__list li { display: grid; grid-template-columns: 8rem 1fr; gap: 1rem; border-top: 1px solid var(--hair); padding-top: 1rem; }
.journey__list b { font-family: var(--mono); font-weight: 400; font-size: 0.75rem; color: var(--lamp); }
.journey__list strong { display: block; font-family: var(--serif); font-weight: 300; font-size: 1.4rem; }
