/* ==========================================================================
   "Night edition": the presentation language of the Hashim portfolio,
   in Abdulaziz's own identity. Loaded after style.css and overrides it.
   Palette: midnight green-black, sage (the ribbon), brushed silver,
   and a bisht gold as the signal colour. Dark by default; light available.
   Type: Alexandria (display), IBM Plex Sans Arabic (body),
   Handjet (pixel numerals), JetBrains Mono (labels).
   ========================================================================== */

:root {
  --gold: #d9b26a;
  --gold-2: #b8893a;
  --gold-soft: #f2deb0;
  --night-990: #050807;
  --night-950: #0a0e0c;
  --night-900: #0f1512;
  --night-850: #131b17;
  --night-800: #19231e;
  --night-700: #24322b;
  --grad-signal: linear-gradient(100deg, #f2deb0 0%, #d9b26a 30%, #b0d0ac 64%, #e6e8e5 100%);
  --grad-primary: linear-gradient(135deg, #f2deb0, #d9b26a 45%, #b8893a);
  --shadow-gold: 0 14px 40px -12px rgba(217, 178, 106, .55);
  --r-xl: 40px;
  --f-display: "Alexandria", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --f-body: "IBM Plex Sans Arabic", "Segoe UI", system-ui, sans-serif;
  --f-pixel: "Handjet", "JetBrains Mono", monospace;
  --f-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --f-num: "Handjet", "JetBrains Mono", monospace;
  --header-h: 78px;
}
html[lang="en"] {
  --f-display: "Alexandria", "IBM Plex Sans", system-ui, sans-serif;
  --f-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
}

/* ---------- Night (default) ---------- */
:root[data-theme="dark"] {
  --bg: #0a0e0c;
  --bg-2: #0f1512;
  --surface: #141c18;
  --surface-2: #18221d;
  --glass: rgba(24, 34, 29, .55);
  --glass-strong: rgba(10, 14, 12, .84);
  --ink: #f1f3ef;
  --ink-soft: #c4ccc6;
  --muted: #8e9a93;
  --line: rgba(176, 208, 172, .13);
  --line-strong: rgba(176, 208, 172, .26);
  --accent-ink: #e3c27e;
  --header-glass: rgba(10, 14, 12, .74);
  --shadow-soft: 0 14px 40px -18px rgba(0, 0, 0, .75);
  --shadow-deep: 0 40px 80px -30px rgba(0, 0, 0, .85);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #0a0e0c; --bg-2: #0f1512; --surface: #141c18; --surface-2: #18221d;
    --glass: rgba(24, 34, 29, .55); --glass-strong: rgba(10, 14, 12, .84);
    --ink: #f1f3ef; --ink-soft: #c4ccc6; --muted: #8e9a93;
    --line: rgba(176, 208, 172, .13); --line-strong: rgba(176, 208, 172, .26);
    --accent-ink: #e3c27e; --header-glass: rgba(10, 14, 12, .74);
    --shadow-soft: 0 14px 40px -18px rgba(0, 0, 0, .75); --shadow-deep: 0 40px 80px -30px rgba(0, 0, 0, .85);
    color-scheme: dark;
  }
}
/* ---------- Pearl (light) ---------- */
:root[data-theme="light"] {
  --bg: #f5f5f0;
  --bg-2: #ecede6;
  --surface: #ffffff;
  --surface-2: #f8f8f4;
  --glass: rgba(255, 255, 255, .72);
  --glass-strong: rgba(255, 255, 255, .92);
  --ink: #121614;
  --ink-soft: #3a423d;
  --muted: #69716c;
  --line: rgba(18, 22, 20, .1);
  --line-strong: rgba(18, 22, 20, .18);
  --accent-ink: #8a6420;
  --header-glass: rgba(10, 14, 12, .82);
  --shadow-soft: 0 14px 40px -20px rgba(18, 22, 20, .26);
  --shadow-deep: 0 40px 80px -36px rgba(18, 22, 20, .4);
  color-scheme: light;
}

/* ---------- Base ---------- */
body { font-size: clamp(15.5px, 1.05vw, 17.5px); }
h1, h2 { font-weight: 800; line-height: 1.32; }
html[lang="en"] h1, html[lang="en"] h2 { font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
h3, h4 { font-family: var(--f-display); font-weight: 600; }
::selection { background: var(--gold); color: var(--night-950); }
:focus-visible { outline-color: var(--gold); }
.num, .ltr-num { font-family: var(--f-mono); }

/* aurora + fine grid behind everything */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(55% 45% at 85% 8%, rgba(150, 189, 146, .14), transparent 62%),
    radial-gradient(45% 40% at 8% 30%, rgba(217, 178, 106, .08), transparent 60%),
    radial-gradient(60% 50% at 50% 110%, rgba(207, 210, 208, .06), transparent 60%);
}
:root[data-theme="light"] body::before { opacity: .5; }

/* ---------- Progress ---------- */
.progress span { background: var(--grad-signal); background-size: 100% 100%; }

/* ---------- Signal (gradient) text ---------- */
.sage-text,
:root:not([data-theme="dark"]) .section:not(.section--dark) .sage-text,
:root:not(#_) .section .cta-band .sage-text,
:root:not(#_) .section .growth__panel .sage-text,
:root:not(#_) .section .diag__panel .sage-text {
  background-image: var(--grad-signal); background-size: 200% 100%;
  animation: signal-shift 9s ease-in-out infinite alternate;
}
:root[data-theme="light"] .section:not(.section--dark) .sage-text,
:root[data-theme="light"] .trust .sage-text {
  background-image: linear-gradient(100deg, #8a6420 0%, #b8893a 32%, #4f7a4c 66%, #3a423d 100%);
}
@keyframes signal-shift { to { background-position: 100% 0; } }

/* ---------- Eyebrow: a chip with a prompt and a caret ---------- */
.eyebrow {
  padding: 6px 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--glass);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: #b0d0ac; font-size: .86rem; font-weight: 500; gap: 10px;
}
:root[data-theme="light"] .section:not(.section--dark) .eyebrow { color: #4f7a4c; }
html[lang="en"] .eyebrow { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .06em; }
.eyebrow::before { content: ">"; width: auto; height: auto; border-radius: 0; background: none; font-family: var(--f-mono); font-weight: 700; color: var(--gold); }
[dir="rtl"] .eyebrow::before { content: "<"; }
.eyebrow::after { content: ""; width: 7px; height: 1.05em; background: var(--gold); animation: caret 1.1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.eyebrow--on-dark, .on-dark .eyebrow { color: #b0d0ac; }

/* ---------- Headings ---------- */
.h-hero { font-size: clamp(2.3rem, 5.4vw, 4.4rem); font-weight: 800; line-height: 1.24; }
html[lang="en"] .h-hero { font-size: clamp(2.3rem, 5.2vw, 4.3rem); line-height: 1.04; letter-spacing: -.035em; }
.h-section { font-size: clamp(1.8rem, 3.8vw, 3.05rem); }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.24rem); }

/* ---------- Buttons ---------- */
.btn { min-height: 52px; height: auto; border: 1px solid transparent; position: relative; isolation: isolate; overflow: hidden; font-family: var(--f-body); }
.btn--sm { min-height: 40px; }
.btn--sage { background: var(--grad-primary); color: #1d1405; box-shadow: var(--shadow-gold); }
.btn--sage::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .9s var(--ease);
}
.btn--sage:hover::after { transform: translateX(120%); }
.btn--sage:hover { box-shadow: 0 20px 44px -12px rgba(217, 178, 106, .75); }
.btn--ghost { background: var(--glass); border-color: var(--line-strong); color: #f1f3ef; box-shadow: none; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-soft); background: var(--glass); box-shadow: none; }
.btn--line { min-height: 44px; border-color: var(--line-strong); box-shadow: none; }
.btn--line:hover { border-color: var(--sage-500); color: var(--accent-ink); box-shadow: none; }
.link-arrow { color: var(--accent-ink); }

/* ---------- Header: glass bar, pill navigation ---------- */
.site-header.is-scrolled { height: 70px; box-shadow: inset 0 -1px 0 var(--line); }
.brand__mark { background: linear-gradient(140deg, var(--night-700), var(--night-900)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), inset 0 0 0 1px rgba(176, 208, 172, .3), 0 8px 20px -10px rgba(150, 189, 146, .6); }
.brand__role { color: #9aa79f; }
.nav ul { gap: 2px; }
.nav a { padding: 8px 13px; border-radius: 999px; font-size: .92rem; color: rgba(241, 243, 239, .78); transition: color .25s, background-color .25s; }
.nav a::after { inset-inline: 42%; bottom: 3px; height: 2px; background: var(--gold); transform: scaleX(0); }
.nav a:hover { color: #fff; background: rgba(24, 34, 29, .55); }
.nav a[aria-current="page"] { color: #fff; background: rgba(24, 34, 29, .7); box-shadow: inset 0 0 0 1px rgba(176, 208, 172, .26); }
.nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a:hover::after { transform: scaleX(0); }
.nav a[aria-current="page"]:hover::after { transform: scaleX(1); }
.tool-btn { background: rgba(24, 34, 29, .55); box-shadow: inset 0 0 0 1px rgba(176, 208, 172, .26); }
.tool-btn:hover { background: rgba(24, 34, 29, .7); box-shadow: inset 0 0 0 1px var(--gold); color: var(--gold-soft); }
.lang-btn__label { font-family: var(--f-mono); }
.theme-menu__list { background: #0f1512; box-shadow: inset 0 0 0 1px rgba(176, 208, 172, .2), var(--shadow-deep); }
.drawer__panel { background: linear-gradient(170deg, #131b17, #0a0e0c); }
.drawer nav a { border-radius: 14px; border-bottom: 0; padding: 13px 14px; }
.drawer nav a[aria-current="page"] { background: rgba(24, 34, 29, .7); color: var(--gold-soft); }
@media (max-width: 1280px) and (min-width: 1121px) { .nav { display: block; } .menu-btn { display: none; } .header-tools { margin-inline-start: 0; } .site-header .header-cta { display: none; } }

/* ---------- Sections ---------- */
.section--alt { background: linear-gradient(180deg, transparent, var(--bg-2) 16%, var(--bg-2) 84%, transparent); }
.section--surface { background: var(--bg-2); }
.section--dark {
  background:
    radial-gradient(80% 90% at 100% 0%, rgba(150, 189, 146, .16), transparent 60%),
    radial-gradient(60% 80% at 0% 100%, rgba(217, 178, 106, .1), transparent 60%),
    linear-gradient(165deg, #131b17, #0a0e0c 60%, #050807);
}
.watermark { font-family: var(--f-pixel); font-weight: 700; line-height: .8; font-size: clamp(7rem, 20vw, 17rem); opacity: .55; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(60% 50% at 20% 10%, rgba(150, 189, 146, .2), transparent 60%),
    radial-gradient(50% 50% at 85% 25%, rgba(217, 178, 106, .1), transparent 60%),
    radial-gradient(60% 60% at 60% 100%, rgba(207, 210, 208, .07), transparent 60%),
    linear-gradient(170deg, #0f1512, #0a0e0c 55%, #050807);
  padding-bottom: clamp(70px, 8vw, 110px);
}
.hero__grain { opacity: .9; background-size: 64px 64px; }
.hero__role { color: #c4ccc6; }
.hero__role i { background: var(--gold); }
.hero .lead { color: #c4ccc6; }
.hero__chips > span { background: rgba(24, 34, 29, .55); box-shadow: none; border: 1px solid rgba(176, 208, 172, .16); color: #c4ccc6; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.hero__chips .i { color: #b0d0ac; }
.stage { aspect-ratio: 1 / 1.06; max-width: 600px; }
.stage__ring { position: absolute; inset: 4% 6%; border-radius: 50%; border: 1px dashed rgba(176, 208, 172, .22); z-index: 0; }
.stage__ring::after { content: ""; position: absolute; inset: 9%; border-radius: 50%; border: 1px solid rgba(217, 178, 106, .1); }
.arch { top: 46%; }

/* Floating figure cards (pixel numerals, glass) */
.float-chip {
  border-radius: 18px; padding: 12px 15px; font-size: .8rem; color: #c4ccc6; line-height: 1.45;
  background: rgba(10, 14, 12, .82); border: 1px solid rgba(176, 208, 172, .24); box-shadow: 0 30px 60px -26px rgba(0, 0, 0, .9);
}
.float-chip b { font-family: var(--f-pixel); font-size: 2rem; line-height: .95; font-weight: 600; color: #fff; }
.float-chip b em { color: var(--gold); }
.float-chip--a { top: 7%; inset-inline-start: 2%; }
.float-chip--b { top: 40%; inset-inline-end: -3%; }
.float-chip--c { bottom: auto; top: 66%; inset-inline-start: -2%; }

/* The commercial brief (the counterpart of a terminal) */
.brief {
  position: absolute; z-index: 4; bottom: -7%; inset-inline-end: -6%; width: min(330px, 70%);
  border-radius: 18px; overflow: hidden; direction: ltr; text-align: left;
  background: rgba(6, 9, 8, .93); border: 1px solid rgba(176, 208, 172, .24);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .9); font-family: var(--f-mono); font-size: .76rem; color: #c9d1cb;
}
.brief__bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: rgba(255, 255, 255, .03); border-bottom: 1px solid rgba(176, 208, 172, .14); }
.brief__bar i { width: 10px; height: 10px; border-radius: 50%; background: #e0826b; display: block; }
.brief__bar i:nth-child(2) { background: #e6c46a; }
.brief__bar i:nth-child(3) { background: #96bd92; }
.brief__bar span { margin-inline-start: 10px; color: #7f8b84; font-size: .72rem; }
.brief__body { padding: 12px 15px 14px; line-height: 1.85; white-space: nowrap; }
.brief__body div { overflow: hidden; text-overflow: ellipsis; }
.brief .p { color: var(--gold); }
.brief .ok { color: #96bd92; }
.brief .dim { color: #6f7b74; }
.brief .ar { font-family: var(--f-body); direction: rtl; unicode-bidi: isolate; color: #f1f3ef; }
.brief .cursor { display: inline-block; width: .6em; height: 1.05em; background: var(--gold); vertical-align: -.2em; animation: caret 1s steps(1) infinite; }
@media (max-width: 960px) { .brief { inset-inline-end: 0; bottom: -4%; } }
@media (max-width: 560px) {
  .stage { aspect-ratio: auto; padding-top: 112%; }
  .brief { position: relative; inset: auto; width: 100%; margin-top: 18px; }
  .float-chip--b { inset-inline-end: 0; }
  .float-chip--c { inset-inline-start: 0; top: 70%; }
}

/* Arch: no gem; a quiet badge; sage + gold glint in the frame */
.arch__gem, .arch__badge i { display: none !important; }
.arch__frame {
  background: conic-gradient(from var(--a),
    rgba(150, 189, 146, .1) 0 12%, #f2deb0 22%, #ffffff 27%, #d9b26a 32%, rgba(150, 189, 146, .1) 46% 60%,
    #cfd2d0 72%, #b0d0ac 78%, rgba(150, 189, 146, .1) 90%);
  filter: drop-shadow(0 0 6px rgba(217, 178, 106, .5)) drop-shadow(0 0 16px rgba(150, 189, 146, .3));
}
.arch__body {
  background:
    radial-gradient(80% 60% at 50% 28%, rgba(150, 189, 146, .42), transparent 70%),
    radial-gradient(60% 40% at 50% 100%, rgba(217, 178, 106, .3), transparent 70%),
    linear-gradient(180deg, #1d2a23, #0b100d);
  box-shadow: 0 0 0 8px rgba(150, 189, 146, .05), inset 0 0 0 1px rgba(255, 255, 255, .12), 0 50px 90px -30px rgba(0, 0, 0, .9), inset 0 0 60px rgba(150, 189, 146, .2);
}
.arch__badge { background: rgba(10, 14, 12, .88); box-shadow: inset 0 0 0 1px rgba(217, 178, 106, .45), 0 12px 30px -10px rgba(0, 0, 0, .7); }
.arch__badge b { color: var(--gold-soft); }

/* ---------- Organisation marquee ---------- */
.marquee-band { padding-block: 26px 30px; border-block: 1px solid var(--line); background: linear-gradient(180deg, transparent, rgba(150, 189, 146, .04)); }
.marquee-band__label { text-align: center; font-size: .84rem; color: var(--muted); margin: 0 0 16px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; gap: clamp(28px, 4vw, 56px); width: max-content; align-items: center; animation: marquee 52s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
[dir="rtl"] .marquee__track { animation-name: marquee-rtl; }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes marquee-rtl { to { transform: translateX(50%); } }
.org { display: flex; align-items: center; gap: 12px; flex: none; opacity: .9; }
.org__tile {
  height: 52px; min-width: 52px; padding: 0 12px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--surface-2), var(--surface)); border: 1px solid var(--line-strong);
  font-family: var(--f-mono); font-weight: 700; font-size: .84rem; color: var(--accent-ink); letter-spacing: .02em; direction: ltr;
}
.org__tile .i { width: 22px; height: 22px; color: #b0d0ac; }
.org span { font-size: .86rem; color: var(--ink-soft); line-height: 1.35; max-width: 210px; }
.org span small { display: block; color: var(--muted); font-size: .76rem; }

/* ---------- Breath band (the "34 years" statement) ---------- */
.breath {
  position: relative; border-radius: var(--r-xl); padding: clamp(34px, 6vw, 80px); overflow: hidden; color: #f1f3ef;
  border: 1px solid rgba(176, 208, 172, .26);
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(150, 189, 146, .26), transparent 60%),
    radial-gradient(70% 90% at 0% 100%, rgba(217, 178, 106, .2), transparent 60%),
    linear-gradient(160deg, #18231d, #0a0e0c);
}
.breath__big {
  position: absolute; inset-inline-end: 4%; bottom: -6%; pointer-events: none;
  font-family: var(--f-pixel); font-weight: 700; font-size: clamp(9rem, 26vw, 20rem); line-height: .78;
  color: transparent; -webkit-text-stroke: 2px rgba(217, 178, 106, .5);
}
.breath__big::after { content: attr(data-n); position: absolute; inset: 0; color: rgba(217, 178, 106, .12); -webkit-text-stroke: 0; filter: blur(30px); }
.breath > * { position: relative; }
.breath h2 { max-width: 20ch; }
.breath p { color: #c4ccc6; max-width: 60ch; }
.breath .eyebrow { color: #b0d0ac; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font-size: .86rem; background: rgba(24, 34, 29, .55); border: 1px solid rgba(176, 208, 172, .18); color: #c4ccc6; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.chip .i { width: 17px; height: 17px; color: #b0d0ac; }
.chip b { color: #fff; font-weight: 600; }

/* ---------- Cards ---------- */
.card {
  border-radius: var(--r-lg); background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line); box-shadow: var(--shadow-soft);
}
.card::before { background: radial-gradient(420px circle at var(--mx) var(--my), rgba(217, 178, 106, .12), transparent 45%); }
.card::after { background: var(--grad-signal); height: 2px; }
.card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-deep); }
.card__icon, :root[data-theme="dark"] .card__icon {
  color: var(--accent-ink); border: 1px solid var(--line-strong); box-shadow: none;
  background: linear-gradient(140deg, rgba(217, 178, 106, .18), rgba(150, 189, 146, .14));
}
.card__num { font-family: var(--f-pixel); font-size: 1.6rem; opacity: .6; top: 18px; }
.tag { font-family: var(--f-mono); font-size: .72rem; border: 1px solid var(--line-strong); box-shadow: none; background: rgba(150, 189, 146, .06); }
.figure { border-radius: var(--r-lg); background: linear-gradient(180deg, var(--surface), var(--surface-2)); border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.figure b { font-family: var(--f-pixel); font-size: clamp(2.4rem, 3.6vw, 3.2rem); line-height: .95; font-weight: 600; }
.figure b em { color: var(--accent-ink); }

/* ---------- Trust strip (inner pages) ---------- */
.trust__inner { background: var(--glass-strong); border: 1px solid var(--line); box-shadow: var(--shadow-soft); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-radius: var(--r-lg); }
.trust__inner::before { background: var(--grad-signal); height: 2px; }
.trust__item strong.num { font-family: var(--f-pixel); font-size: 2.4rem !important; font-weight: 600; line-height: 1; }

/* ---------- Stats: a glass panel with pixel numerals ---------- */
.stats { border: 1px solid rgba(176, 208, 172, .16); border-radius: var(--r-lg); overflow: hidden; background: rgba(24, 34, 29, .45); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.stat { padding: clamp(22px, 3vw, 36px); }
.stat + .stat { border-inline-start: 1px solid rgba(176, 208, 172, .14); }
.stat__num { font-family: var(--f-pixel); font-size: clamp(3rem, 6vw, 5.2rem); line-height: .9; color: #fff; }
.stat__num small { font-family: var(--f-mono); font-size: .3em; color: var(--gold); letter-spacing: .04em; }
.stat__label { color: #c4ccc6; }
@media (max-width: 900px) { .stat:nth-child(-n+2) { border-bottom: 1px solid rgba(176, 208, 172, .14); } }

/* ---------- Motto as a quote ---------- */
.motto blockquote { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.5rem, 3.2vw, 2.5rem); line-height: 1.55; }
html[lang="en"] .motto blockquote { font-style: normal; font-weight: 600; letter-spacing: -.02em; line-height: 1.3; }
.motto__mark { display: none; }
.motto::before { content: "”"; display: block; font-family: Georgia, serif; font-size: 6rem; line-height: .6; color: var(--gold); opacity: .75; margin-bottom: 10px; }

/* ---------- Media frames (photography) ---------- */
.media { position: relative; margin: 0; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line-strong); box-shadow: var(--shadow-deep); background: var(--surface); }
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.media:hover img { transform: scale(1.04); }
.media figcaption { position: absolute; inset-inline: 0; bottom: 0; padding: 44px 22px 16px; font-size: .88rem; color: #f1f3ef; background: linear-gradient(0deg, rgba(5, 8, 7, .92), transparent); }
.media--cinema { aspect-ratio: 21 / 8; margin-bottom: clamp(36px, 5vw, 60px); }
@media (max-width: 680px) { .media--cinema { aspect-ratio: 4 / 3; } }

/* ---------- Growth, timeline, chain, diag ---------- */
.growth__tab { background: linear-gradient(180deg, var(--surface), var(--surface-2)); box-shadow: none; border: 1px solid var(--line); }
.growth__tab[aria-selected="true"] { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), var(--shadow-soft); }
.growth__tab .num { font-family: var(--f-pixel); font-size: 1.3rem; color: var(--accent-ink); }
.growth__panel { border: 1px solid rgba(176, 208, 172, .2); background: radial-gradient(600px 300px at 90% 0%, rgba(150, 189, 146, .18), transparent 60%), radial-gradient(500px 260px at 0% 100%, rgba(217, 178, 106, .1), transparent 60%), linear-gradient(165deg, #141c18, #070a09); }
.growth__mult b { font-family: var(--f-pixel); font-size: clamp(3rem, 5vw, 4.4rem); }
.growth__chart .ax, .growth__chart .val { font-family: var(--f-mono); }
.growth__chart .val--t { fill: var(--gold-soft); }
.career__track { background: var(--line); }
.career__list li, .tl__card, .faq details, .contact-line, .dq, .diag__progress, .flag, .cities span {
  background: linear-gradient(180deg, var(--surface), var(--surface-2)); box-shadow: none; border: 1px solid var(--line);
}
.tl__card { border-radius: var(--r-lg); box-shadow: var(--shadow-soft); }
.tl__dot { background: var(--surface); color: var(--accent-ink) !important; box-shadow: inset 0 0 0 2px var(--gold), 0 0 0 6px var(--bg) !important; }
.tl::before { background: linear-gradient(var(--gold), var(--sage-500) 45%, var(--graphite-500)); }
.era b { background: var(--glass); border: 1px solid var(--line-strong); color: var(--gold-soft); font-family: var(--f-mono); }
:root[data-theme="light"] .era b { color: var(--accent-ink); }
.win { background: linear-gradient(160deg, rgba(217, 178, 106, .12), rgba(150, 189, 146, .05)); box-shadow: inset 0 0 0 1px rgba(217, 178, 106, .26); }
.win__big { font-family: var(--f-pixel); font-size: 1.9rem; color: var(--accent-ink); }
.chain li::before { font-family: var(--f-pixel); font-size: 1.3rem; color: #1d1405; background: var(--grad-primary); box-shadow: 0 0 0 6px var(--bg), var(--shadow-gold); }
.section--alt .chain li::before { box-shadow: 0 0 0 6px var(--bg-2), var(--shadow-gold); }
.chain li::after { background: repeating-linear-gradient(90deg, var(--gold) 0 8px, transparent 8px 14px); opacity: .5; }
.check-list li::before { background: var(--grad-primary); }
.dq__opts label > span { background: var(--surface-2); border: 1px solid var(--line); box-shadow: none; }
.dq__opts input:checked + span { background: var(--grad-primary); color: #1d1405; }
.dq__opts input:hover + span { box-shadow: inset 0 0 0 1px var(--gold); }
.diag__panel { border: 1px solid rgba(176, 208, 172, .2); }
.diag__score b { font-family: var(--f-pixel); font-size: 4.2rem; }
.diag__bar i, .card::after { background: var(--grad-signal); }
.field input, .field select, .field textarea { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-strong); }
.field input:focus, .field select:focus, .field textarea:focus { box-shadow: inset 0 0 0 2px var(--gold); }

/* ---------- Page hero (inner pages): aurora + grid, no animation ---------- */
.page-hero {
  background:
    radial-gradient(60% 70% at 85% 0%, rgba(150, 189, 146, .2), transparent 60%),
    radial-gradient(50% 60% at 10% 100%, rgba(217, 178, 106, .1), transparent 60%),
    linear-gradient(170deg, #0f1512, #0a0e0c 60%, #050807);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .9;
  background-image: linear-gradient(rgba(176, 208, 172, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(176, 208, 172, .05) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 70% 30%, #000 25%, transparent 80%); mask-image: radial-gradient(ellipse 70% 70% at 70% 30%, #000 25%, transparent 80%);
}
.page-hero::after { background: linear-gradient(transparent, rgba(10, 14, 12, .5)); }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 800; }
.page-hero .lead { color: #c4ccc6; }

/* ---------- CTA band: centred, glowing ---------- */
.cta-band {
  text-align: center; grid-template-columns: 1fr; justify-items: center; border: 1px solid rgba(217, 178, 106, .3); border-radius: var(--r-xl);
  background:
    radial-gradient(80% 120% at 50% 0%, rgba(217, 178, 106, .24), transparent 60%),
    radial-gradient(60% 80% at 100% 100%, rgba(150, 189, 146, .18), transparent 60%),
    linear-gradient(160deg, #18231d, #0a0e0c);
}
.cta-band h2 { max-width: 24ch; margin-inline: auto; }
.cta-band p { margin-inline: auto; color: #c4ccc6; }
.cta-band__actions { justify-content: center; }
.cta-band .eyebrow { margin-inline: auto; }
.cta-band__mark { display: none; }

/* ---------- Footer ---------- */
.site-footer { background: linear-gradient(180deg, var(--bg), #050807); border-top: 1px solid var(--line); }
:root[data-theme="light"] .site-footer { background: linear-gradient(180deg, #131b17, #050807); }
.site-footer::before { height: 2px; background: var(--grad-signal); }
.site-footer h4 { font-family: var(--f-body); font-weight: 500; font-size: .86rem; color: #8e9a93; }
.site-footer a:hover { color: var(--gold-soft); }
.footer-mark { opacity: .035; }
.footer-sig { font-family: var(--f-mono); direction: ltr; }

/* WhatsApp float, as in the reference */
.fab { background: #25d366; color: #fff; box-shadow: 0 14px 34px -10px rgba(37, 211, 102, .7); }
.fab:hover { transform: scale(1.08) rotate(-6deg); }

/* ---------- Light theme: keep dark bands dark ---------- */
:root[data-theme="light"] .hero .lead, :root[data-theme="light"] .page-hero .lead { color: #c4ccc6; }
:root[data-theme="light"] .stats { background: rgba(24, 34, 29, .45); }

@media (prefers-reduced-motion: reduce) {
  .marquee__track, .sage-text, .eyebrow::after, .brief .cursor { animation: none !important; }
}

/* Kinetic headline words that carry the gradient keep both animations */
.kw__i.sage-text {
  animation: rise 1s var(--ease) both, signal-shift 9s ease-in-out infinite alternate;
  animation-delay: calc(.2s + var(--i) * .055s), 0s;
}
@media (prefers-reduced-motion: reduce) { .kw__i.sage-text { animation: none; transform: none; } }
.brief { width: min(370px, 76%); font-size: .73rem; }
html[lang="ar"] .h-hero { font-size: clamp(2.2rem, 4.7vw, 3.9rem); }
.brief { bottom: -15%; inset-inline-end: -10%; }
.arch__badge { bottom: -18px; }
@media (max-width: 960px) { .brief { inset-inline-end: 0; bottom: -12%; } }
@media (max-width: 560px) { .brief { bottom: auto; } }
@media (max-width: 560px) {
  .brief { position: relative; inset: auto; width: 100%; margin-top: 34px; }
  .float-chip--c { display: none; }
  .stage { padding-top: 118%; }
  .arch { top: 50%; }
}
@media (max-width: 560px) {
  .arch { top: 46px; translate: -50% 0; }
  .stage { padding-top: calc(var(--aw, 220px) * 1.44 + 90px); }
  .float-chip--a { top: 4px; }
  .float-chip--b { top: 150px; }
}

/* Light theme: dark panels keep their light gradient text and chips */
:root[data-theme="light"] .section .breath .sage-text,
:root[data-theme="light"] .section .cta-band .sage-text { background-image: var(--grad-signal); }
:root[data-theme="light"] .section .breath .eyebrow,
:root[data-theme="light"] .section .cta-band .eyebrow,
:root[data-theme="light"] .section .growth__panel .eyebrow,
:root[data-theme="light"] .section .diag__panel .eyebrow { color: #b0d0ac; background: rgba(24, 34, 29, .55); border-color: rgba(176, 208, 172, .18); }

/* ---------- Studio portrait: the full photograph on a champagne backdrop ---------- */
.arch--studio .arch__body {
  background:
    radial-gradient(70% 50% at 50% 26%, rgba(255, 250, 238, .95) 0%, rgba(240, 228, 200, .7) 34%, transparent 72%),
    radial-gradient(90% 60% at 50% 105%, rgba(70, 58, 36, .55), transparent 70%),
    linear-gradient(180deg, #e6d7b4 0%, #cdb88a 48%, #9a855b 82%, #6c5c3d 100%);
  box-shadow: 0 0 0 8px rgba(217, 178, 106, .06), inset 0 0 0 1px rgba(255, 255, 255, .28), 0 50px 90px -30px rgba(0, 0, 0, .9), inset 0 -40px 80px rgba(60, 48, 28, .35);
}
.arch--studio .arch__body::before { opacity: .18; }
.arch--studio .arch__img {
  width: 109%; left: 1%; translate: none;
  filter: drop-shadow(0 18px 30px rgba(40, 30, 14, .45)) drop-shadow(0 2px 4px rgba(40, 30, 14, .25));
  -webkit-mask-image: linear-gradient(to top, transparent 0, #000 10%); mask-image: linear-gradient(to top, transparent 0, #000 10%);
}
@media (max-width: 560px) { .float-chip--b { top: 270px; } }

/* ---------- EDG logo ---------- */
.brand__mark { width: 66px; height: 44px; }
.brand__mark img { width: 50px; height: auto; }
@media (max-width: 480px) { .brand__mark { width: 58px; height: 40px; } .brand__mark img { width: 44px; } }
.footer-edg { display: inline-flex; flex-direction: column; gap: 6px; margin: 4px 0 18px; }
.footer-edg img { width: min(250px, 70vw); height: auto; opacity: .92; transition: opacity .3s; }
.footer-edg:hover img { opacity: 1; }
.footer-edg span { font-size: .78rem; color: #8e9a93; }
.footer-mark { width: 420px; opacity: .03; inset-inline-end: -40px; bottom: -10px; }
.nf img { margin-inline: auto; }
.org__tile--logo { padding: 0 10px; }
.org__tile--logo img { width: 52px; height: auto; }
