/* =========================================================================
   Beit Il Feker Alhadith · بيت الفكر الحديث
   Palette and motif come from the logo: a tree whose roots (navy), trunk
   (teal) and crown (leaf green to ember) grow from one glowing centre.
   ========================================================================= */

/* ---------- Tokens ---------- */
:root {
  --night: #101b2e;
  --night-2: #17253d;
  --root: #2f5d94;
  --trunk: #2a7f8b;
  --leaf: #4f8a3c;
  --ember: #e39a3b;
  --ember-ink: #a85a12;

  --bg: #f2f5f4;
  --surface: #ffffff;
  --ink: #14284b;
  --muted: #4b5c73;
  --line: rgba(20, 40, 75, 0.14);
  --focus: #2a7f8b;

  --f-latin: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-arabic: "Alexandria", "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --f-body: var(--f-latin);

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --sec: clamp(72px, 11vw, 140px);
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1726;
    --surface: #152139;
    --ink: #e6edf3;
    --muted: #a3b2c5;
    --line: rgba(230, 237, 243, 0.14);
    --root: #6f9ed6;
    --trunk: #5fb3bd;
    --leaf: #8cc06f;
    --ember-ink: #f0b066;
    --focus: #5fb3bd;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e1726;
  --surface: #152139;
  --ink: #e6edf3;
  --muted: #a3b2c5;
  --line: rgba(230, 237, 243, 0.14);
  --root: #6f9ed6;
  --trunk: #5fb3bd;
  --leaf: #8cc06f;
  --ember-ink: #f0b066;
  --focus: #5fb3bd;
  color-scheme: dark;
}

html[data-lang="ar"] { --f-body: var(--f-arabic); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html[data-lang="ar"] body { line-height: 1.85; }
img, video, canvas, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
[lang="ar"] { font-family: var(--f-arabic); }

h1, h2, h3 { font-weight: 600; letter-spacing: -0.022em; line-height: 1.08; text-wrap: balance; }
html[data-lang="ar"] :is(h1, h2, h3) { letter-spacing: 0; line-height: 1.35; font-weight: 600; }
h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; line-height: 1.25; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.section { padding-block: var(--sec); }

.skip {
  position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100;
  background: var(--ember); color: var(--night); padding: 10px 16px; border-radius: var(--r-sm);
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

.head { max-width: 46rem; margin-bottom: clamp(40px, 6vw, 72px); }
.head h2 + .head__lede { margin-top: 20px; }
.head__lede { color: var(--muted); font-size: 1.15rem; max-width: 38rem; }

.link {
  font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px;
  text-underline-offset: 5px; text-decoration-color: var(--ember);
  transition: text-decoration-color .2s, color .2s;
}
.link:hover { color: var(--ember-ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 50px; padding: 0 24px; border-radius: 999px; border: 0;
  font-weight: 600; font-size: 1rem; text-decoration: none; white-space: nowrap;
  transition: transform .25s var(--ease), background-color .2s, box-shadow .25s;
}
.btn:active { transform: translateY(1px) scale(.98); }
.btn--ember { background: var(--ember); color: #1a1206; box-shadow: 0 0 0 0 rgba(227, 154, 59, .5); }
.btn--ember:hover { box-shadow: 0 0 34px 2px rgba(227, 154, 59, .45); }
.btn--ghost { background: rgba(255, 255, 255, .08); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .35); }
.btn--ghost:hover { background: rgba(255, 255, 255, .16); }
.btn--ink { background: var(--ink); color: var(--bg); }
.btn--ink:hover { background: var(--trunk); color: #fff; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  color: #fff;
  transition: background-color .3s, color .3s, box-shadow .3s;
}
.nav.is-solid {
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  color: var(--ink); box-shadow: 0 1px 0 var(--line);
}
.nav__inner {
  width: min(100% - 2 * var(--gutter), 1320px); margin-inline: auto;
  display: flex; align-items: center; gap: 24px; height: 72px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-inline-end: auto; }
.brand__mark { width: 40px; height: 40px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255, 255, 255, .25); }
.brand__name { display: grid; line-height: 1.15; }
.brand__en { font-weight: 600; font-size: .98rem; letter-spacing: -0.01em; }
.brand__ar { font-size: .82rem; opacity: .75; }
.nav__links { display: flex; gap: 4px; }
.nav__links a {
  text-decoration: none; font-weight: 500; font-size: .95rem; padding: 8px 12px; border-radius: 999px;
  transition: background-color .2s;
}
.nav__links a:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.nav__tools { display: flex; align-items: center; gap: 6px; }
.icon-btn, .lang-btn, .menu-btn {
  height: 40px; min-width: 40px; border-radius: 999px; border: 0; background: transparent;
  display: inline-grid; place-items: center; padding: 0 10px;
  transition: background-color .2s;
}
.icon-btn:hover, .lang-btn:hover, .menu-btn:hover { background: color-mix(in srgb, currentColor 12%, transparent); }
.lang-btn { font-weight: 600; font-size: .92rem; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, currentColor 35%, transparent); padding: 0 14px; }
.lang-btn span[data-en="عربي"] { font-family: var(--f-arabic); }
.i-moon { display: none; }
:root[data-theme="dark"] .i-sun { display: none; }
:root[data-theme="dark"] .i-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .i-sun { display: none; }
  :root:not([data-theme="light"]) .i-moon { display: block; }
}
.menu-btn { display: none; gap: 5px; }
.menu-btn span { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease); }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

@media (max-width: 900px) {
  .brand__ar { display: none; }
  .menu-btn { display: inline-grid; }
  .nav__links {
    position: fixed; inset: 72px 0 auto; flex-direction: column; gap: 0;
    background: var(--bg); color: var(--ink); padding: 8px var(--gutter) 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, .18);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .25s, transform .3s var(--ease), visibility .25s;
  }
  .nav__links.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__links a { padding: 14px 4px; font-size: 1.15rem; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav.menu-open { background: var(--bg); color: var(--ink); }
}
@media (max-width: 420px) { .brand__en { font-size: .9rem; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: 110px; padding-bottom: 36px;
  color: #eef3f7;
  background:
    radial-gradient(1100px 700px at 68% 58%, #1d3150 0%, transparent 70%),
    linear-gradient(180deg, #0d1626 0%, var(--night) 55%, #142238 100%);
}
/* Home: the growing-tree film. --d is the logo circle's diameter; the
   offsets below place that circle where the canvas tree sits on inner pages. */
.hero__film {
  position: absolute; inset: 0; z-index: -2; --d: min(28vw, 54svh);
  opacity: 0; transition: opacity 1.4s var(--ease);
}
.hero__film.is-ready { opacity: 1; }
.hero__video { transform-origin: 50% 50.4%; }
.hero__video {
  position: absolute; max-width: none; width: calc(var(--d) * 1.797); aspect-ratio: 1024 / 720;
  left: calc(77% - var(--d) * .898); top: calc(46% - var(--d) * .637);
}
html[dir="rtl"] .hero__video { left: calc(22% - var(--d) * .898); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(13, 22, 38, .82) 0%, rgba(13, 22, 38, .35) 42%, transparent 62%);
}
html[dir="rtl"] .hero::before { background: linear-gradient(270deg, rgba(13, 22, 38, .82) 0%, rgba(13, 22, 38, .35) 42%, transparent 62%); }
.hero__inner { position: relative; padding-bottom: clamp(28px, 6vh, 64px); }
.hero__name {
  font-family: var(--f-arabic); font-weight: 600; color: var(--ember);
  font-size: clamp(1.15rem, 2vw, 1.5rem); margin-bottom: 18px;
}
html[data-lang="ar"] .hero__name { font-family: var(--f-latin); letter-spacing: -0.01em; }
.hero__title {
  max-width: 13.5ch; font-size: clamp(2.7rem, 6.6vw, 6rem); font-weight: 600;
  letter-spacing: -0.024em; line-height: 1;
}
html[data-lang="ar"] .hero__title { max-width: 11ch; line-height: 1.3; }
.hero__lede { max-width: 34rem; margin-top: 26px; font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: #b9c6d6; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero__ddc {
  position: relative; display: flex; flex-wrap: wrap; gap: 6px 26px;
  padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .14);
  font-weight: 500; font-size: .98rem;
}
.hero__ddc span { display: inline-flex; align-items: center; gap: 10px; }
.hero__ddc span::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.t-root { color: #84aee0; }
.t-trunk { color: #79c6cd; }
.t-crown { color: #e8b56b; }

/* Hero entrance: the only orchestrated motion on the page. */
.hero__name, .hero__title, .hero__lede, .hero__cta, .hero__ddc {
  animation: rise 1s var(--ease) both;
}
.hero__name { animation-delay: .5s; }
.hero__title { animation-delay: .65s; }
.hero__lede { animation-delay: .85s; }
.hero__cta { animation-delay: 1s; }
.hero__ddc { animation-delay: 1.2s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

@media (max-width: 760px) {
  /* Tree draws in the top band (script.js layout), text starts below it. */
  .hero { min-height: 0; padding-top: min(380px, calc(110px + 80vw)); }
  .hero__film { --d: min(64vw, 250px); }
  .hero__video, html[dir="rtl"] .hero__video { left: calc(50% - var(--d) * .898); top: calc(96px - var(--d) * .137); }
  .hero::before, html[dir="rtl"] .hero::before { background: none; }
  .hero__ddc { display: none; }
}

/* ---------- Voices (videos) ---------- */
.voices__grid {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(20px, 3vw, 40px); align-items: start;
}
.voice:nth-child(2) { margin-top: clamp(0px, 9vw, 120px); }
.voice__frame {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0;
  border-radius: var(--r-lg); overflow: hidden; background: var(--night);
  box-shadow: 0 30px 60px -30px rgba(16, 27, 46, .55);
}
.voice__poster, .voice__preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.voice__preview { opacity: 0; transition: opacity .6s; }
.voice__preview.is-playing { opacity: 1; }
.voice__frame::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(10, 18, 32, .55));
}
.voice__play {
  position: absolute; z-index: 1; inset-inline-start: 20px; bottom: 20px;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ember); color: #1a1206;
  transition: transform .35s var(--ease), box-shadow .35s;
}
.voice__play svg { margin-inline-start: 3px; }
html[dir="rtl"] .voice__play svg { margin-inline-start: 0; margin-inline-end: 3px; }
.voice__frame:hover .voice__play, .voice__frame:focus-visible .voice__play {
  transform: scale(1.08); box-shadow: 0 0 0 10px rgba(227, 154, 59, .25);
}
.voice__time {
  position: absolute; z-index: 1; inset-inline-end: 18px; bottom: 24px;
  color: #fff; font-weight: 600; font-size: .9rem; font-variant-numeric: tabular-nums;
  background: rgba(10, 18, 32, .55); padding: 3px 10px; border-radius: 999px;
}
.voice__meta { margin-top: 20px; max-width: 30rem; }
/* Third story: full row, video beside its text. */
.voice--wide {
  grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 56px); align-items: center; margin-top: clamp(12px, 3vw, 40px);
}
.voice--wide .voice__meta { margin-top: 0; }
.voice__tag {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 12px; color: var(--ember-ink);
  font-weight: 600; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase;
}
html[data-lang="ar"] .voice__tag { letter-spacing: 0; font-size: .95rem; }
.voice__tag::before { content: ""; width: 28px; height: 2px; border-radius: 2px; background: currentColor; }
.voice__name { font-size: clamp(1.8rem, 3.2vw, 2.6rem); margin-bottom: 6px; }
.voice__meta p { color: var(--muted); }
/* "You could be next": the empty venue before an event, and three steps to your own. */
.pitch {
  position: relative; margin-top: clamp(64px, 9vw, 120px);
  display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center;
  padding: clamp(20px, 3vw, 36px); border-radius: calc(var(--r-lg) + 8px);
  background:
    radial-gradient(500px 300px at 100% 0%, color-mix(in srgb, var(--ember) 14%, transparent), transparent 70%),
    radial-gradient(500px 340px at 0% 100%, color-mix(in srgb, var(--trunk) 14%, transparent), transparent 70%),
    var(--surface);
  box-shadow: 0 0 0 1px var(--line), 0 40px 80px -50px rgba(16, 27, 46, .5);
}
.pitch__photo { position: relative; margin: 0; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 5; }
.pitch__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.pitch:hover .pitch__photo img { transform: scale(1.04); }
.pitch__photo figcaption {
  position: absolute; inset: auto 0 0; padding: 60px 18px 16px; color: #fff; font-size: .92rem; font-weight: 500;
  background: linear-gradient(transparent, rgba(10, 18, 32, .85));
}
.pitch__kicker {
  display: inline-flex; align-items: center; gap: 10px; color: var(--ember-ink);
  font-weight: 600; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase;
}
html[data-lang="ar"] .pitch__kicker { letter-spacing: 0; font-size: .95rem; }
.pitch__kicker::before { content: ""; width: 28px; height: 2px; border-radius: 2px; background: currentColor; }
.pitch__title { margin-top: 14px; font-size: clamp(1.9rem, 3.6vw, 3rem); letter-spacing: -0.03em; line-height: 1.04; max-width: 17ch; }
html[data-lang="ar"] .pitch__title { line-height: 1.35; letter-spacing: 0; }
.pitch__steps { margin: clamp(26px, 3.5vw, 40px) 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.pitch__steps li {
  position: relative; display: grid; align-content: start; gap: 6px; padding: 18px 18px 20px;
  border-radius: var(--r-md); background: color-mix(in srgb, var(--bg) 70%, transparent); box-shadow: inset 0 0 0 1px var(--line);
  transition: transform .4s var(--ease), box-shadow .4s;
}
.pitch__steps li:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--line), 0 18px 30px -22px rgba(16, 27, 46, .5); }
.pitch__steps li + li::before {
  content: ""; position: absolute; top: 30px; inset-inline-start: -14px; width: 14px; height: 2px;
  background: linear-gradient(90deg, var(--line), var(--ember));
}
.pitch__num { font-weight: 700; font-size: 1.05rem; font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.pitch__steps strong { font-size: 1.1rem; letter-spacing: -0.01em; }
.pitch__steps li > span:last-child { color: var(--muted); font-size: .95rem; line-height: 1.5; }
@media (max-width: 960px) {
  .pitch { grid-template-columns: 1fr; }
  .pitch__photo { aspect-ratio: 16 / 10; }
}
@media (max-width: 640px) {
  .pitch__steps { grid-template-columns: 1fr; }
  .pitch__steps li + li::before { display: none; }
}
@media (max-width: 760px) {
  .voices__grid { grid-template-columns: 1fr; }
  .voice:nth-child(2) { margin-top: 12px; }
  .voice--wide { grid-template-columns: 1fr; gap: 0; }
  .voice--wide .voice__meta { margin-top: 20px; }
}

/* ---------- Name + story ---------- */
.name { background: var(--surface); }
.name__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.name__mark { position: sticky; top: 110px; }
.name__mark img {
  width: 100%; max-width: 440px; border-radius: 50%;
  box-shadow: 0 0 0 1px var(--line), 0 40px 80px -40px rgba(47, 93, 148, .45);
}
.name__lede { margin-top: 22px; font-size: clamp(1.15rem, 1.6vw, 1.35rem); color: var(--ink); max-width: 36rem; }
.prose { margin-top: 32px; display: grid; gap: 18px; color: var(--muted); max-width: 38rem; }
.complement { margin-top: 44px; display: grid; grid-template-columns: 1fr 1.4fr; gap: 0; border-radius: var(--r-md); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.complement > div { padding: 24px; }
.complement > div + div { background: color-mix(in srgb, var(--trunk) 10%, transparent); }
.complement h3 { font-size: 1.05rem; margin-bottom: 8px; }
.complement > div + div h3 { color: var(--trunk); }
.complement p { color: var(--muted); font-size: .98rem; }
@media (max-width: 860px) {
  .name__grid { grid-template-columns: 1fr; }
  .name__mark { position: static; }
  .name__mark img { max-width: 240px; }
  .complement { grid-template-columns: 1fr; }
}

/* ---------- Journey ---------- */
.stages { position: relative; display: grid; gap: 0; }
.stages::before {
  content: ""; position: absolute; inset-inline-start: 47px; top: 40px; bottom: 40px; width: 3px; border-radius: 3px;
  background: linear-gradient(180deg, var(--root), var(--trunk) 50%, var(--leaf) 80%, var(--ember));
  opacity: .5;
}
.stage { position: relative; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); padding-block: 36px; }
.stage + .stage { border-top: 1px solid var(--line); }
.stage__glyph {
  width: 96px; height: 96px; padding: 14px; border-radius: 50%; background: var(--bg);
  box-shadow: inset 0 0 0 2px currentColor;
  fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
}
.stage__glyph circle { fill: currentColor; stroke: none; }
.stage--root { color: var(--root); }
.stage--trunk { color: var(--trunk); }
.stage--crown { color: var(--leaf); }
.stage--crown .stage__glyph circle { fill: var(--ember); }
.stage__body { color: var(--ink); max-width: 44rem; }
.stage__step { display: flex; gap: 10px; align-items: baseline; font-weight: 600; font-size: 1.05rem; }
.stage--root .stage__step { color: var(--root); }
.stage--trunk .stage__step { color: var(--trunk); }
.stage--crown .stage__step { color: var(--leaf); }
.stage__n { font-weight: 500; font-size: .85rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.stage h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-top: 8px; }
.stage h3 + p { margin-top: 14px; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tags li {
  font-size: .9rem; font-weight: 500; padding: 5px 14px; border-radius: 999px;
  background: color-mix(in srgb, currentColor 9%, transparent);
}
.stage--root .tags li { color: var(--root); }
.stage--trunk .tags li { color: var(--trunk); }
.stage--crown .tags li { color: var(--leaf); }
@media (max-width: 640px) {
  .stages::before { inset-inline-start: 31px; }
  .stage { grid-template-columns: 64px minmax(0, 1fr); gap: 18px; }
  .stage__glyph { width: 64px; height: 64px; padding: 9px; }
}

/* ---------- Beliefs ---------- */
.beliefs { background: var(--surface); }
.beliefs__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 6vw, 96px); }
.head--side { margin-bottom: 0; }
.beliefs__list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(24px, 4vw, 56px); }
.beliefs__list > div { padding-block: 26px; border-top: 1px solid var(--line); }
.beliefs__list dt { font-weight: 600; font-size: 1.2rem; letter-spacing: -0.01em; }
.beliefs__list dd { margin-top: 6px; color: var(--muted); }
@media (max-width: 860px) {
  .beliefs__grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) { .beliefs__list { grid-template-columns: 1fr; } }

/* ---------- Belong ---------- */
.belong {
  padding-block: clamp(88px, 13vw, 170px); color: #eef3f7; overflow: hidden;
  background:
    radial-gradient(600px 400px at 85% 20%, rgba(227, 154, 59, .18), transparent 70%),
    radial-gradient(700px 500px at 10% 100%, rgba(47, 93, 148, .35), transparent 70%),
    var(--night);
}
.belong__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.belong__kicker {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 26px; color: var(--ember);
  font-weight: 600; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase;
}
html[data-lang="ar"] .belong__kicker { letter-spacing: 0; font-size: .95rem; }
.belong__kicker::before { content: ""; width: 28px; height: 2px; border-radius: 2px; background: currentColor; }
.belong__rules { display: grid; font-size: clamp(2.6rem, 6.6vw, 6.2rem); line-height: .98; letter-spacing: -0.045em; }
html[data-lang="ar"] .belong__rules { line-height: 1.3; letter-spacing: 0; }
.belong__rules span:nth-child(1) { color: #84aee0; }
.belong__rules span:nth-child(2) { color: #79c6cd; padding-inline-start: 1.2ch; }
.belong__rules span:nth-child(3) { color: #e8b56b; padding-inline-start: 2.4ch; }
.belong__after { margin-top: 40px; max-width: 32rem; font-size: clamp(1.15rem, 1.8vw, 1.45rem); color: #c3cfdc; }

/* The TV (Blender renders, all cropped to the same 780x927 frame):
   - .tv__set   front at rest: images/tv.webp has a transparent screen and no knobs; the
                reel plays behind it and the knobs are <button>s rendered from the same scene.
   - .tv__back  back at rest: images/tv-back.webp plus the sticky-note link.
   - .tv__turn  while dragging/settling: a 36-frame turntable sprite (6x6, 10 deg a frame).
   Boxes measured from the render (percent of the frame). */
.tv { margin: 0; justify-self: center; width: min(100%, 460px); }
.tv__stage { position: relative; aspect-ratio: 780 / 927; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; transition: transform .5s var(--ease); }
.tv.is-spinning .tv__stage { cursor: grabbing; transition: none; }
.tv__stage img { -webkit-user-drag: none; }
.tv__stage::before {
  content: ""; position: absolute; left: 6%; top: 30%; width: 70%; height: 52%; z-index: -1;
  background: radial-gradient(closest-side, rgba(121, 198, 205, .35), rgba(227, 154, 59, .12) 55%, transparent);
  filter: blur(30px); opacity: .5; transition: opacity 1.2s;
}
.tv.is-on .tv__stage::before { opacity: 1; animation: flicker 5s infinite; }
.tv.is-off .tv__stage::before, .tv.is-back .tv__stage::before { opacity: .2; animation: none; }
@keyframes flicker { 0%, 100% { opacity: 1; } 47% { opacity: .82; } 50% { opacity: 1; } 73% { opacity: .9; } }
.tv__set, .tv__back, .tv__turn { position: absolute; inset: 0; transition: opacity .18s; }
.tv__turn { opacity: 0; background: no-repeat 0 0 / 600% 600%; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .35)); }
.tv__back { opacity: 0; visibility: hidden; }
.tv.is-back .tv__set { opacity: 0; visibility: hidden; }
.tv.is-back .tv__back { opacity: 1; visibility: visible; }
.tv.is-spinning .tv__turn { opacity: 1; }
.tv.is-spinning .tv__set, .tv.is-spinning .tv__back { opacity: 0; visibility: hidden; transition: none; }
.tv__screen {
  position: absolute; left: 17.308%; top: 41.748%; width: 48.333%; height: 29.989%;
  border-radius: 9% / 12%; overflow: hidden; background: #070b12;
}
.tv__video { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.15) contrast(1.05); }
.tv.is-off .tv__video { animation: crt-off .45s var(--ease) forwards; }
.tv.is-on-again .tv__video { animation: crt-on .5s var(--ease); }
@keyframes crt-on {
  0% { transform: scale(0, .008); filter: brightness(6); opacity: 0; }
  45% { transform: scale(1, .008); filter: brightness(4); opacity: 1; }
  100% { transform: none; filter: brightness(1); }
}
@keyframes crt-off {
  0% { transform: none; filter: brightness(1); opacity: 1; }
  55% { transform: scale(1, .008); filter: brightness(4); opacity: 1; }
  100% { transform: scale(0, .008); filter: brightness(6); opacity: 0; }
}
.tv__glass {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(125deg, rgba(255, 255, 255, .2) 0%, rgba(255, 255, 255, .05) 28%, transparent 42%),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, .16) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, .55) 100%);
  box-shadow: inset 0 0 24px 6px rgba(0, 0, 0, .6);
}
.tv__static {
  position: absolute; inset: 0; opacity: 0; pointer-events: none; mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='1' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  transition: opacity .12s;
}
.tv.is-switching .tv__static { opacity: .9; animation: snow .2s steps(4) infinite; }
@keyframes snow { 25% { background-position: 37px 11px; } 50% { background-position: -23px 41px; } 75% { background-position: 13px -29px; } }
.tv__osd {
  position: absolute; top: 9%; right: 8%; z-index: 1;
  font: 700 clamp(.8rem, 2.6vw, 1.15rem) / 1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .08em;
  color: #8dff9d; text-shadow: 0 0 6px rgba(120, 255, 140, .8), 0 0 1px #000;
  opacity: 0; transition: opacity .2s;
}
.tv__osd.is-show { opacity: 1; }
.tv__body { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .35)); pointer-events: none; }

/* Knobs: the dial (render) turns; a fixed highlight on the button keeps the light still. */
.tv__knob {
  position: absolute; aspect-ratio: 1; padding: 0; border: 0; border-radius: 50%; background: none;
  cursor: grab; touch-action: none; z-index: 2;
  transition: box-shadow .35s var(--ease), transform .35s var(--ease);
}
.tv__knob--ch { left: 72.256%; top: 41.532%; width: 8%; }
.tv__knob--pw { left: 73.05%; top: 50.485%; width: 6.1%; cursor: pointer; }
.tv__knob::after {
  content: ""; position: absolute; inset: 12%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 35% 28%, rgba(255, 255, 255, .45), transparent 45%);
  opacity: .5; transition: opacity .35s;
}
.tv__dial {
  position: absolute; inset: 0; border-radius: 50%;
  background: url(/images/tv-knob-top.webp) center / 100% no-repeat;
  transition: transform .45s cubic-bezier(.34, 1.56, .64, 1), filter .35s;
}
.tv__knob--pw .tv__dial { background-image: url(/images/tv-knob-bot.webp); }
.tv__dial::before {   /* pointer line */
  content: ""; position: absolute; left: 50%; top: 18%; width: 9%; height: 26%; translate: -50% 0; border-radius: 2px;
  background: var(--ember); box-shadow: 0 0 6px rgba(227, 154, 59, .8);
}
.tv.is-turning .tv__knob--ch .tv__dial { transition: none; }
.tv__knob:hover, .tv__knob:focus-visible { box-shadow: 0 0 0 3px rgba(227, 154, 59, .55), 0 0 22px 4px rgba(227, 154, 59, .45); }
.tv__knob:hover .tv__dial, .tv__knob:focus-visible .tv__dial { filter: brightness(1.6) contrast(1.1); }
.tv__knob:hover::after, .tv__knob:focus-visible::after { opacity: 1; }
.tv__knob:active { transform: scale(.94); }
.tv.is-off .tv__knob--pw .tv__dial::before { background: #6b7685; box-shadow: none; }

/* The sticky note sits on the rendered paper (box measured at 180 deg). */
.tv__note {
  position: absolute; left: 40.3%; top: 52.6%; width: 19.5%; aspect-ratio: 1;
  display: grid; place-content: center; justify-items: center; gap: 2px; rotate: 2deg;
  color: #2b2414; text-decoration: none; border-radius: 3px;
  font-family: "Caveat", "Bricolage Grotesque", cursive; font-weight: 700; font-size: clamp(1rem, 3.9vw, 1.72rem); line-height: 1;
  transition: transform .4s var(--ease), box-shadow .4s, background-color .3s;
}
html[data-lang="ar"] .tv__note { font-family: "Aref Ruqaa Ink", "Aref Ruqaa", var(--f-arabic); font-size: clamp(.95rem, 3.5vw, 1.5rem); }
.tv__note-arrow { width: 52%; height: auto; color: #b5481c; }
html[dir="rtl"] .tv__note-arrow { transform: scaleX(-1); }
.tv__note:hover, .tv__note:focus-visible { transform: scale(1.08) rotate(-3deg); background-color: rgba(255, 220, 90, .35); box-shadow: 0 14px 24px -12px rgba(0, 0, 0, .6); }

.tv__cap { display: grid; justify-items: center; gap: 10px; margin-top: 6px; color: #a9b8c9; font-size: .95rem; text-align: center; }
.tv__now { display: inline-flex; align-items: center; gap: 10px; }
.tv__live { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #e2564b; box-shadow: 0 0 0 4px rgba(226, 86, 75, .2); }
.tv.is-on .tv__live { animation: live 1.6s infinite; }
.tv.is-off .tv__live, .tv.is-back .tv__live { background: #6b7685; box-shadow: none; animation: none; }
@keyframes live { 50% { opacity: .35; } }
.tv__flip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px;
  background: rgba(255, 255, 255, .06); color: #c3cfdc; font-size: .88rem; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
  transition: background-color .25s, color .25s;
}
.tv__flip:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.tv__flip svg { transition: transform .6s var(--ease); }
.tv.is-back .tv__flip svg { transform: rotate(180deg); }
@media (max-width: 900px) {
  .belong__grid { grid-template-columns: 1fr; }
  .tv { width: min(78vw, 420px); }
}
}
@media (max-width: 560px) {
  .belong__rules span:nth-child(n) { padding-inline-start: 0; }
}

/* ---------- Join ---------- */
.paths { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); }
.paths li { display: flex; flex-direction: column; gap: 10px; padding-top: 22px; border-top: 3px solid var(--trunk); }
.paths li:nth-child(1) { border-color: var(--root); }
.paths li:nth-child(3) { border-color: var(--leaf); }
.paths li:nth-child(4) { border-color: var(--ember); }
.paths h3 { font-size: 1.4rem; }
.paths p { color: var(--muted); flex: 1; }
.paths .link { align-self: flex-start; margin-top: 6px; }
.join__fine { margin-top: 48px; font-size: .95rem; color: var(--muted); max-width: 40rem; }
@media (max-width: 960px) { .paths { grid-template-columns: 1fr 1fr; row-gap: 40px; } }
@media (max-width: 560px) { .paths { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact { background: var(--surface); }
.contact__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); }
.contact__privacy { margin-top: 22px; font-size: .95rem; color: var(--muted); }
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-weight: 600; font-size: .95rem; }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--bg);
  border: 1.5px solid var(--line); border-radius: var(--r-md); padding: 14px 16px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 150px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--trunk); box-shadow: 0 0 0 4px color-mix(in srgb, var(--trunk) 22%, transparent); }
.field [aria-invalid="true"] { border-color: #c2412d; }
.form .btn { justify-self: start; }
.form__status { min-height: 1.6em; font-weight: 500; }
.form__status.is-ok { color: var(--leaf); }
.form__status.is-err { color: #c2412d; }
:root[data-theme="dark"] .form__status.is-err { color: #f08a78; }
.form__hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (max-width: 860px) { .contact__grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { padding-block: 48px; border-top: 1px solid var(--line); }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: center; }
.footer__brand { display: flex; gap: 16px; align-items: center; }
.footer__brand img { border-radius: 50%; }
.footer__name { font-weight: 600; }
.footer__not, .footer__copy { color: var(--muted); font-size: .92rem; max-width: 36rem; }


/* ---------- Nav current page + join button ---------- */
.nav__links a[aria-current="page"] { background: color-mix(in srgb, currentColor 12%, transparent); }
.nav__links .nav__join { background: var(--ember); color: #1a1206; margin-inline-start: 8px; }
.nav__links .nav__join:hover, .nav__links .nav__join[aria-current="page"] { background: #f0ad55; }
@media (max-width: 900px) {
  .nav__links .nav__join { margin: 14px 0 0; text-align: center; border-radius: 999px; border: 0; }
}

.btn--line { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--line:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }

/* ---------- Voices: role line ---------- */
.voice__role { color: var(--trunk) !important; font-weight: 600; font-size: .95rem; margin-bottom: 8px; }

/* ---------- Moments strip ---------- */
.moments { padding-bottom: var(--sec); }
.moments__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px 24px; margin-bottom: 32px; }
.moments__head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.moments__strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(200px, 22vw, 290px); gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); scroll-padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2));
  padding-bottom: 6px;
}
.moments__strip::-webkit-scrollbar { display: none; }
.moments__strip li { scroll-snap-align: start; position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 3 / 4.4; background: var(--night); }
.moments__strip li:nth-child(even) { margin-top: 36px; }
.moments__strip img { width: 100%; height: 100%; object-fit: cover; }
.moments__strip span {
  position: absolute; inset: auto 0 0; padding: 40px 16px 14px; color: #fff; font-weight: 500; font-size: .92rem;
  background: linear-gradient(transparent, rgba(10, 18, 32, .8));
}

/* ---------- Closing CTA ---------- */
.cta { position: relative; isolation: isolate; overflow: hidden; }
.cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(520px 380px at 22% 50%, color-mix(in srgb, var(--ember) 16%, transparent), transparent 70%),
    radial-gradient(600px 420px at 90% 10%, color-mix(in srgb, var(--trunk) 12%, transparent), transparent 70%);
}
.cta__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
/* A loose stack of prints around the logo. */
.cta__photos { position: relative; aspect-ratio: 1 / 1.02; max-width: 520px; width: 100%; justify-self: center; }
.cta__shot {
  position: absolute; margin: 0; width: 46%; padding: 8px 8px 0; border-radius: 6px;
  background: #fbf8f2; box-shadow: 0 2px 0 rgba(0, 0, 0, .04), 0 30px 50px -24px rgba(16, 27, 46, .55);
  transition: transform .7s var(--ease);
}
.cta__shot img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 3px; }
.cta__shot figcaption { padding: 9px 4px 11px; color: #3a4658; font-size: .82rem; font-weight: 500; text-align: center; }
.cta__shot--a { left: 0; top: 6%; transform: rotate(-7deg); }
.cta__shot--b { left: 27%; top: 0; transform: rotate(2deg); z-index: 1; }
.cta__shot--c { right: 0; top: 14%; transform: rotate(8deg); }
.cta__photos:hover .cta__shot--a { transform: rotate(-10deg) translate(-12px, -6px); }
.cta__photos:hover .cta__shot--b { transform: rotate(0) translateY(-14px); }
.cta__photos:hover .cta__shot--c { transform: rotate(11deg) translate(12px, -4px); }
.cta__mark {
  position: absolute; z-index: 2; left: 50%; bottom: 0; width: 26%; height: auto; translate: -50% 0;
  border-radius: 50%; box-shadow: 0 0 0 6px var(--bg), 0 0 60px rgba(227, 154, 59, .45);
}
.cta__text h2 { font-size: clamp(2.3rem, 5vw, 4.2rem); letter-spacing: -0.035em; line-height: 1.02; max-width: 12ch; }
html[data-lang="ar"] .cta__text h2 { line-height: 1.35; letter-spacing: 0; }
.cta__lede { margin-top: 22px; color: var(--muted); font-size: 1.15rem; max-width: 30rem; }
.cta__ways { margin-top: 28px; display: grid; gap: 2px; max-width: 30rem; }
.cta__ways li {
  display: flex; align-items: center; gap: 14px; padding: 13px 0; font-weight: 500;
  border-bottom: 1px solid var(--line);
}
.cta__dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 5px color-mix(in srgb, currentColor 20%, transparent); }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
@media (max-width: 860px) {
  .cta__grid { grid-template-columns: 1fr; }
  .cta__photos { max-width: 400px; }
}

/* ---------- Initiatives ---------- */
.initiative + .initiative { border-top: 1px solid var(--line); }
.initiative--sawa { background: var(--surface); }
.initiative__top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.initiative__photos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: clamp(40px, 6vw, 72px); }
.initiative__photos li { border-radius: var(--r-md); overflow: hidden; aspect-ratio: 3 / 4; background: var(--night); }
.initiative__photos li:nth-child(odd) { transform: translateY(22px); }
.initiative__photos img { width: 100%; height: 100%; object-fit: cover; }
.initiative-next { background: var(--night); color: #eef3f7; }
.initiative-next__inner { display: grid; gap: 18px; justify-items: start; }
.initiative-next__inner > * { max-width: 44rem; }
.initiative-next p { color: #c3cfdc; font-size: 1.15rem; }
@media (max-width: 900px) {
  .initiative__top { grid-template-columns: 1fr; }
  .initiative__photos { grid-template-columns: 1fr 1fr; }
}

/* ---------- Footer nav ---------- */
.footer__nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer__nav a { text-decoration: none; color: var(--muted); font-weight: 500; }
.footer__nav a:hover { color: var(--ink); }

/* ---------- Video player ---------- */
.player {
  width: min(100vw - 32px, 1200px); max-width: none; max-height: none; padding: 0; border: 0;
  background: transparent; overflow: visible;
}
.player::backdrop { background: rgba(8, 13, 24, .86); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.player[open] { animation: pop .4s var(--ease); }
@keyframes pop { from { opacity: 0; transform: scale(.96); } }
.player__box { position: relative; }
.player__video { width: 100%; max-height: calc(100svh - 120px); aspect-ratio: 16 / 9; background: #000; border-radius: var(--r-md); }
.player__close {
  position: absolute; top: -52px; inset-inline-end: 0;
  width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: rgba(255, 255, 255, .12); color: #fff;
}
.player__close:hover { background: rgba(255, 255, 255, .24); }

/* ---------- Scenes (about) ---------- */
.scenes__grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, clamp(200px, 22vw, 300px));
  gap: 14px;
}
.scenes__grid li { border-radius: var(--r-md); overflow: hidden; background: var(--night); }
.scenes__grid li:first-child { grid-row: span 2; }
.scenes__grid img { width: 100%; height: 100%; object-fit: cover; }
.scenes__more { display: inline-block; margin-top: 32px; }
@media (max-width: 760px) {
  .scenes__grid { grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-rows: 210px; }
  .scenes__grid li:first-child { grid-column: span 2; grid-row: auto; }
}

/* ---------- Gallery ---------- */
.gallery__jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.gallery__jump a {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 14px 10px 18px; border-radius: 999px; text-decoration: none; font-weight: 500;
  color: var(--ink); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), 0 6px 18px -12px rgba(16, 27, 46, .4);
  transition: box-shadow .2s, transform .25s var(--ease);
}
html[dir="rtl"] .gallery__jump a { padding: 10px 18px 10px 14px; }
.gallery__jump a:hover { box-shadow: inset 0 0 0 1.5px var(--ink), 0 10px 24px -14px rgba(16, 27, 46, .5); transform: translateY(-1px); }
.gallery__jump small {
  min-width: 28px; padding: 1px 8px; border-radius: 999px; text-align: center;
  font-size: .8rem; font-weight: 600; font-variant-numeric: tabular-nums;
  background: color-mix(in srgb, var(--trunk) 14%, transparent); color: var(--trunk);
}
.gallery { scroll-margin-top: 80px; }
.gallery + .gallery { padding-top: 0; }
.gallery__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; margin-bottom: 28px; }
.gallery__head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.gallery__head p { color: var(--muted); }
.gallery__grid { columns: 4; column-gap: 14px; }
@media (max-width: 1100px) { .gallery__grid { columns: 3; } }
@media (max-width: 760px) { .gallery__grid { columns: 2; column-gap: 10px; } .gallery__grid figcaption { font-size: .85rem; } }
.gallery__grid li { break-inside: avoid; margin-bottom: 18px; }
.gallery__grid figure, .lightbox__fig { margin: 0; }
.gallery__item {
  display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in;
  border-radius: var(--r-md); overflow: hidden; background: var(--night);
}
.gallery__item img { width: 100%; height: auto; transition: transform .5s var(--ease); }
.gallery__item:hover img { transform: scale(1.03); }
.gallery__grid figcaption { margin-top: 8px; font-size: .92rem; color: var(--muted); }

/* ---------- Lightbox ---------- */
.lightbox {
  width: 100vw; height: 100svh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: transparent; color: #fff; overflow: hidden;
}
.lightbox[open] { display: grid; place-items: center; animation: pop .3s var(--ease); }
.lightbox::backdrop { background: rgba(8, 13, 24, .92); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lightbox__fig { display: grid; justify-items: center; gap: 12px; padding: 64px 72px 24px; }
.lightbox__img { max-height: calc(100svh - 130px); width: auto; border-radius: var(--r-md); }
.lightbox__cap { font-weight: 500; color: #d7e0ea; text-align: center; }
.lightbox__btn {
  position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: rgba(255, 255, 255, .12); color: #fff;
}
.lightbox__btn:hover { background: rgba(255, 255, 255, .24); }
.lightbox__prev { inset-inline-start: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__next { inset-inline-end: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__close { inset-inline-end: 16px; top: 12px; }
html[dir="rtl"] .lightbox__prev svg, html[dir="rtl"] .lightbox__next svg { transform: scaleX(-1); }
@media (max-width: 760px) {
  .lightbox__fig { padding: 68px 12px 84px; }
  .lightbox__img { max-height: calc(100svh - 190px); }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 18px; transform: none; }
}

/* ---------- Home hero: sky, halo, landing ---------- */
/* A sparse field of specks behind the film, and an ember halo that blooms
   once the seed has finished growing into the logo. */
.hero__film::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 77% 46%, rgba(240, 170, 80, .30), rgba(240, 170, 80, .08) calc(var(--d) * .62), transparent calc(var(--d) * 1.05));
  opacity: 0; transform: scale(.9); transition: opacity 1.8s var(--ease), transform 2.4s var(--ease);
}
html[dir="rtl"] .hero__film::before { background: radial-gradient(circle at 22% 46%, rgba(240, 170, 80, .30), rgba(240, 170, 80, .08) calc(var(--d) * .62), transparent calc(var(--d) * 1.05)); }
.hero__film.is-done::before { opacity: 1; transform: none; }
.hero__film.is-done .hero__video { animation: breathe 7s ease-in-out 1s infinite; }
@keyframes breathe { 50% { transform: scale(1.018); } }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -3; pointer-events: none; opacity: .55;
  background-image:
    radial-gradient(1.2px 1.2px at 12% 18%, #cfe0f5, transparent),
    radial-gradient(1px 1px at 28% 62%, #cfe0f5, transparent),
    radial-gradient(1.4px 1.4px at 46% 12%, #f3d7a8, transparent),
    radial-gradient(1px 1px at 58% 78%, #cfe0f5, transparent),
    radial-gradient(1.2px 1.2px at 88% 14%, #cfe0f5, transparent),
    radial-gradient(1px 1px at 94% 68%, #f3d7a8, transparent),
    radial-gradient(1.3px 1.3px at 6% 84%, #cfe0f5, transparent),
    radial-gradient(1px 1px at 36% 32%, #cfe0f5, transparent);
  animation: twinkle 6s ease-in-out infinite alternate;
}
@keyframes twinkle { to { opacity: .25; } }
a.hero__ddc { text-decoration: none; color: inherit; transition: border-color .3s; }
a.hero__ddc:hover { border-top-color: rgba(255, 255, 255, .4); }
a.hero__ddc:hover span { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1.5px; }
@media (max-width: 760px) {
  .hero__film::before { background: radial-gradient(circle at 50% calc(96px + var(--d) * .5), rgba(240, 170, 80, .3), transparent calc(var(--d) * .9)); }
  html[dir="rtl"] .hero__film::before { background: radial-gradient(circle at 50% calc(96px + var(--d) * .5), rgba(240, 170, 80, .3), transparent calc(var(--d) * .9)); }
}

/* ---------- Section heads, shared polish ---------- */
.head h2 { max-width: 18ch; }
html[data-lang="ar"] .head h2 { max-width: 22ch; }
.voice__frame .voice__poster { transition: transform .8s var(--ease); }
.voice__frame:hover .voice__poster { transform: scale(1.035); }

/* ---------- Light page heroes: nav switches to ink ---------- */
body:has(.hero-about, .hero-gallery, .hero-join) .nav:not(.is-solid):not(.menu-open) { color: var(--ink); }
body:has(.hero-about, .hero-gallery, .hero-join) .nav:not(.is-solid) .brand__mark { box-shadow: 0 0 0 1px var(--line); }

/* ---------- About hero: the name as texture ---------- */
.hero-about {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(150px, 20vw, 220px) 0 clamp(64px, 9vw, 112px);
  background:
    radial-gradient(900px 500px at 85% 0%, color-mix(in srgb, var(--trunk) 14%, transparent), transparent 70%),
    radial-gradient(700px 500px at 0% 100%, color-mix(in srgb, var(--ember) 12%, transparent), transparent 70%),
    var(--bg);
}
.hero-about__word {
  position: absolute; z-index: -1; inset-inline-end: -3vw; bottom: -.2em;
  font-family: var(--f-arabic); font-weight: 700; font-size: clamp(6rem, 21vw, 19rem); line-height: 1;
  white-space: nowrap; color: transparent; -webkit-text-stroke: 1.5px color-mix(in srgb, var(--root) 16%, transparent);
  direction: rtl; user-select: none;
}
.hero-about__title { font-size: clamp(2.8rem, 7vw, 6.2rem); max-width: 12ch; line-height: .98; letter-spacing: -0.03em; }
html[data-lang="ar"] .hero-about__title { line-height: 1.3; }
.hero-about__lede { margin-top: 24px; font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 32rem; }
.hero-about__facts {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 3vw, 40px);
  margin-top: clamp(48px, 7vw, 88px); max-width: 60rem;
}
.hero-about__facts li { padding-top: 18px; border-top: 3px solid var(--root); color: var(--muted); }
.hero-about__facts li:nth-child(2) { border-color: var(--trunk); }
.hero-about__facts li:nth-child(3) { border-color: var(--ember); }
.hero-about__facts strong { display: block; color: var(--ink); font-size: 1.35rem; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 4px; }
@media (max-width: 700px) {
  .hero-about__facts { grid-template-columns: 1fr; }
  .hero-about__word { font-size: 34vw; }
}

/* ---------- Onward link (about → journey) ---------- */
.onward { padding-top: 0; }
.onward__card {
  display: flex; align-items: center; gap: clamp(18px, 3vw, 36px);
  padding: clamp(28px, 4vw, 48px); border-radius: var(--r-lg); text-decoration: none; color: #eef3f7;
  background:
    radial-gradient(500px 300px at 90% 0%, rgba(227, 154, 59, .22), transparent 70%),
    linear-gradient(120deg, var(--night), #1b2f4f);
  box-shadow: 0 40px 70px -40px rgba(16, 27, 46, .6);
  transition: transform .4s var(--ease), box-shadow .4s;
}
.onward__card:hover { transform: translateY(-3px); box-shadow: 0 50px 80px -40px rgba(16, 27, 46, .7); }
.onward__dots { display: grid; gap: 8px; }
.onward__dots i { display: block; width: 14px; height: 14px; border-radius: 50%; background: currentColor; }
.onward__text { flex: 1; display: grid; gap: 6px; }
.onward__kicker { color: #e8b56b; font-weight: 600; }
.onward__title { font-size: clamp(1.5rem, 3vw, 2.4rem); font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; }
html[data-lang="ar"] .onward__title { letter-spacing: 0; line-height: 1.45; }
.onward__arrow { flex: none; transition: transform .35s var(--ease); }
.onward__card:hover .onward__arrow { transform: translateX(6px); }
html[dir="rtl"] .onward__arrow { transform: scaleX(-1); }
html[dir="rtl"] .onward__card:hover .onward__arrow { transform: scaleX(-1) translateX(6px); }

/* ---------- Initiatives hero: two photo doors ---------- */
.hero-split {
  padding: clamp(130px, 16vw, 180px) 0 clamp(24px, 4vw, 40px); color: #eef3f7;
  background: radial-gradient(900px 600px at 70% 0%, #1d3150, transparent 70%), var(--night);
}
.hero-split__title { font-size: clamp(2.5rem, 5.6vw, 4.8rem); max-width: 16ch; line-height: 1.02; letter-spacing: -0.026em; }
html[data-lang="ar"] .hero-split__title { line-height: 1.3; }
.hero-split__lede { margin-top: 22px; max-width: 36rem; color: #b9c6d6; font-size: clamp(1.05rem, 1.4vw, 1.2rem); }
.hero-split__panels {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(10px, 1.4vw, 18px);
  width: min(100% - 2 * var(--gutter), 1320px); margin: clamp(36px, 5vw, 56px) auto 0;
}
.hero-split__panel {
  position: relative; display: block; height: clamp(320px, 52vh, 560px); border-radius: var(--r-lg); overflow: hidden;
  color: #fff; text-decoration: none; background: #0a1220;
}
.hero-split__panel img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.hero-split__panel:hover img { transform: scale(1.04); }
.hero-split__panel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(8, 14, 26, .85)); }
.hero-split__label { position: absolute; z-index: 1; inset: auto 0 0; padding: clamp(20px, 3vw, 32px); display: grid; gap: 4px; color: #d7e0ea; }
.hero-split__name { font-size: clamp(1.5rem, 2.6vw, 2.2rem); font-weight: 600; color: #fff; letter-spacing: -0.02em; }
@media (max-width: 760px) {
  .hero-split__panels { grid-template-columns: 1fr; }
  .hero-split__panel { height: 300px; }
}

/* ---------- Initiatives ---------- */
.initiative__top { align-items: center; }
.initiative__ar { font-family: var(--f-arabic); font-weight: 600; color: var(--ember-ink); font-size: 1.2rem; margin-bottom: 10px; }
.initiative__lede { margin-top: 18px; color: var(--muted); font-size: 1.1rem; max-width: 36rem; }
.initiative__intro .tags li { color: var(--trunk); }
.initiative__links { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 28px; }
.initiative--sawa .initiative__top { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.lead {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 22px; align-items: center;
  padding: clamp(22px, 3vw, 32px); border-radius: var(--r-lg); background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line), 0 30px 60px -40px rgba(16, 27, 46, .45);
}
.initiative--sawa .lead { background: var(--bg); }
.lead__face {
  width: clamp(96px, 11vw, 132px); height: auto; aspect-ratio: 1; border-radius: 50%; object-fit: cover;
  box-shadow: 0 0 0 4px var(--surface), 0 0 0 6px color-mix(in srgb, var(--ember) 70%, transparent);
}
.lead__by { color: var(--muted); font-size: .92rem; }
.lead__name { font-size: 1.45rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; }
.lead__role { color: var(--trunk); font-weight: 500; font-size: .95rem; margin-top: 4px; }
.lead__watch {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 16px; padding: 6px 16px 6px 6px;
  border: 0; border-radius: 999px; background: var(--ink); color: var(--bg); font-weight: 600; font-size: .95rem; text-align: start;
  transition: background-color .2s, transform .25s var(--ease);
}
html[dir="rtl"] .lead__watch { padding: 6px 6px 6px 16px; }
.lead__watch:hover { background: var(--trunk); color: #fff; }
.lead__icon { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--ember); color: #1a1206; }
.lead__icon svg { margin-inline-start: 2px; }
.lead__time { opacity: .7; font-variant-numeric: tabular-nums; font-weight: 500; }
@media (max-width: 900px) { .initiative--sawa .initiative__top { grid-template-columns: 1fr; } }
@media (max-width: 460px) { .lead { grid-template-columns: 1fr; } }

.events { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 32px); margin-top: clamp(48px, 7vw, 88px); counter-reset: ev; }
.event__photo { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 5; background: var(--night); margin-bottom: 20px; }
.event__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.event:hover .event__photo img { transform: scale(1.04); }
.event:nth-child(2) { margin-top: clamp(0px, 4vw, 56px); }
.event__n { color: var(--ember-ink); font-weight: 600; font-size: .95rem; }
.event h3 { font-size: clamp(1.35rem, 2vw, 1.6rem); margin-top: 4px; }
.event h3 + p { color: var(--muted); margin-top: 8px; }
@media (max-width: 760px) {
  .events { grid-template-columns: 1fr; }
  .event:nth-child(2) { margin-top: 0; }
  .event__photo { aspect-ratio: 4 / 3; }
}
.review {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 5vw, 72px); align-items: center;
  margin-top: clamp(56px, 8vw, 104px); padding: clamp(16px, 2vw, 24px); border-radius: calc(var(--r-lg) + 8px);
  background: var(--bg); box-shadow: inset 0 0 0 1px var(--line);
}
.review__photo { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 5 / 4; background: var(--night); }
.review__photo img { width: 100%; height: 100%; object-fit: cover; }
.review__text { display: grid; gap: 14px; justify-items: start; padding-inline-end: clamp(0px, 3vw, 40px); }
.review__text h3 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); }
.review__text p { color: var(--muted); font-size: 1.1rem; max-width: 30rem; }
@media (max-width: 760px) { .review { grid-template-columns: 1fr; } .review__text { padding: 0 8px 12px; } }

/* ---------- Journey: branches in real life ---------- */
.branches { background: var(--surface); }
.branches__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.branches__photo { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3; background: var(--night); box-shadow: 0 40px 80px -50px rgba(16, 27, 46, .6); }
.branches__photo img { width: 100%; height: 100%; object-fit: cover; }
.branches__text { display: grid; gap: 20px; justify-items: start; }
.branches__text p { color: var(--muted); font-size: 1.12rem; }
@media (max-width: 860px) { .branches__grid { grid-template-columns: 1fr; } }

/* ---------- Gallery hero ---------- */
.hero-gallery {
  padding: clamp(120px, 13vw, 160px) 0 clamp(24px, 4vw, 48px);
  background: radial-gradient(800px 420px at 100% 0%, color-mix(in srgb, var(--ember) 14%, transparent), transparent 70%), var(--bg);
}
.hero-gallery__title { font-size: clamp(2.6rem, 6vw, 5.2rem); max-width: 17ch; line-height: 1; letter-spacing: -0.03em; }
html[data-lang="ar"] .hero-gallery__title { line-height: 1.3; }
.hero-gallery__lede { margin-top: 22px; max-width: 36rem; color: var(--muted); font-size: clamp(1.05rem, 1.4vw, 1.2rem); }
.hero-gallery + .gallery { padding-top: clamp(24px, 4vw, 48px); }

/* ---------- Gallery: closing band ---------- */
.nextnight {
  color: #eef3f7;
  background: radial-gradient(700px 400px at 50% 120%, rgba(227, 154, 59, .28), transparent 70%), var(--night);
}
.nextnight__inner { display: grid; justify-items: center; text-align: center; gap: 20px; }
.nextnight__inner > * { max-width: 40rem; }
.nextnight p { color: #c3cfdc; font-size: 1.15rem; }

/* ---------- Join hero ---------- */
.hero-join {
  padding: clamp(120px, 15vw, 170px) 0 clamp(56px, 8vw, 96px);
  background: radial-gradient(800px 500px at 0% 0%, color-mix(in srgb, var(--leaf) 12%, transparent), transparent 70%), var(--bg);
}
.hero-join__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.hero-join__title { font-size: clamp(2.8rem, 7vw, 6rem); line-height: .98; letter-spacing: -0.03em; }
html[data-lang="ar"] .hero-join__title { line-height: 1.3; }
.hero-join__lede { margin-top: 24px; max-width: 32rem; color: var(--muted); font-size: clamp(1.1rem, 1.5vw, 1.25rem); }
.hero-join__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-join__photo {
  position: relative; border-radius: 999px 999px var(--r-lg) var(--r-lg); overflow: hidden; aspect-ratio: 4 / 5; background: var(--night);
  box-shadow: 0 50px 90px -50px rgba(16, 27, 46, .7);
}
.hero-join__photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) {
  .hero-join__grid { grid-template-columns: 1fr; }
  .hero-join__photo { max-width: 420px; aspect-ratio: 1; }
}

/* ---------- Carousel controls ---------- */
.moments__head > div:first-child { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 24px; }
.carousel__nav { display: flex; gap: 8px; }
.carousel__btn {
  width: 48px; height: 48px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line);
  transition: background-color .2s, color .2s, opacity .2s, transform .25s var(--ease);
}
.carousel__btn:hover:not(:disabled) { background: var(--ink); color: var(--bg); }
.carousel__btn:active:not(:disabled) { transform: scale(.94); }
.carousel__btn:disabled { opacity: .35; cursor: default; }
html[dir="rtl"] .carousel__btn svg { transform: scaleX(-1); }
.carousel__track { height: 3px; margin-top: 28px; border-radius: 3px; background: var(--line); overflow: hidden; }
.carousel__bar {
  display: block; height: 100%; border-radius: 3px; transform-origin: left; transform: scaleX(.08);
  background: linear-gradient(90deg, var(--root), var(--trunk), var(--leaf), var(--ember));
  transition: transform .2s linear;
}
html[dir="rtl"] .carousel__bar { transform-origin: right; }
[data-carousel] { cursor: grab; user-select: none; -webkit-user-select: none; }
[data-carousel] img { -webkit-user-drag: none; pointer-events: none; }
[data-carousel].is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.moments__strip li { transition: transform .5s var(--ease), box-shadow .5s; }
.moments__strip li:hover { transform: translateY(-6px); box-shadow: 0 24px 40px -24px rgba(16, 27, 46, .6); }
.moments__strip.is-dragging li:hover { transform: none; box-shadow: none; }
@media (max-width: 760px) { .carousel__nav { display: none; } }

/* ---------- Dark-band grain ---------- */
.belong, .nextnight, .initiative-next, .hero-split { position: relative; isolation: isolate; }
.belong::after, .nextnight::after, .initiative-next::after, .hero-split::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Loading polish ----------
   Lazy photos sit on a soft tinted placeholder and fade in once decoded (script.js
   adds .is-loading only to images that haven't loaded yet). Transparent renders opt out. */
img[loading="lazy"]:not(.tv__body):not([src*="logo"]) { background-color: color-mix(in srgb, var(--ink) 7%, transparent); }
img.is-loading { opacity: 0; }
img.is-in { animation: img-in .5s var(--ease); }
@keyframes img-in { from { opacity: 0; } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
}
