/* ═══════════════════════════════════════════════════════════
   BY RABEA — style.css
   Architectural Dark Hero & Footer · Light Editorial Content Surface
   Supports RTL (Arabic) & LTR (English) · Reference-Matched Composition
   ═══════════════════════════════════════════════════════════ */

:root {
  /* Dark Architectural Surfaces */
  --bg-0:     #11141c;
  --bg-1:     #151a24;
  --bg-2:     #1b2230;
  --bg-card:  #141b26;
  --bg-card2: #192232;

  /* Light Editorial Surfaces */
  --light-0:      #f4f6f9;
  --light-1:      #ffffff;
  --light-border: #dce2ec;
  --light-ink-1:  #101828;
  --light-ink-2:  #475467;
  --light-ink-3:  #667085;

  /* Accent (Synced dynamically by Admin SEO accentColor) */
  --blue:       #0b63f6;
  --blue-bright:#3b82f6;
  --blue-dim:   #084ec4;
  --blue-glow:  rgba(11, 99, 246, 0.28);
  --blue-glow2: rgba(11, 99, 246, 0.10);

  /* Dark Surface Ink */
  --text-1: #f5f7fb;
  --text-2: #b4bfd0;
  --text-3: #7d8ba1;

  --border:    rgba(255, 255, 255, 0.12);
  --border-hi: rgba(59, 130, 246, 0.48);

  --radius:    8px;
  --radius-lg: 14px;

  --font-en: 'Inter', system-ui, -apple-system, sans-serif;
  --font-ar: 'Cairo', system-ui, -apple-system, sans-serif;

  --nav-h: 68px;
  --ease-ui: cubic-bezier(0.2, 0, 0, 1);
}

/* ── Base Reset & Typography ───────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-block-start: var(--nav-h);
  font-size: 16px;
}
body {
  background: var(--bg-0);
  color: var(--text-1);
  font-family: var(--font-ar);
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.ltr { font-family: var(--font-en); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  -webkit-tap-highlight-color: transparent;
}

.container {
  max-width: 1220px;
  margin-inline: auto;
  width: 100%;
  padding-inline: clamp(1.25rem, 4vw, 3.25rem);
}

/* ── Sticky Top Navigation ─────────────────────────────── */
#main-nav {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 100;
  height: var(--nav-h);
  padding-inline: clamp(1rem, 4vw, 3.25rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(17, 20, 28, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background-color 0.25s var(--ease-ui), border-color 0.25s var(--ease-ui), box-shadow 0.25s var(--ease-ui);
}
#main-nav.scrolled {
  background: rgba(17, 20, 28, 0.98);
  border-bottom-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.nav-start {
  display: flex;
  align-items: center;
  gap: clamp(0.85rem, 2vw, 1.75rem);
  min-width: 0;
}
.nav-brand {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  direction: ltr;
  unicode-bidi: isolate;
  font-family: var(--font-en);
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.brand-slash {
  color: var(--blue);
  font-weight: 900;
  font-size: 1.25em;
  line-height: 1;
}
.brand-by { color: var(--text-1); }
.brand-rabea { color: var(--text-1); }

.nav-sep-line {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.16);
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 1.8vw, 1.85rem);
}
.nav-links a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-2);
  padding-block: 0.3rem;
  position: relative;
  white-space: nowrap;
  transition: color 0.15s var(--ease-ui);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transition: transform 0.2s var(--ease-ui);
}
@media (hover: hover) {
  .nav-links a:hover { color: var(--text-1); }
  .nav-links a:hover::after { transform: scaleX(1); }
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.nav-cv-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.36rem 0.72rem;
  border-radius: 6px;
  border: 1px solid rgba(56, 152, 255, 0.35);
  background: rgba(11, 99, 246, 0.14);
  color: #e2e8f0;
  font-family: var(--font-en);
  font-size: 0.76rem;
  font-weight: 800;
  transition: transform 0.15s ease-out, border-color 0.2s var(--ease-ui), background-color 0.2s var(--ease-ui), color 0.2s var(--ease-ui);
}
@media (hover: hover) {
  .nav-cv-link:hover {
    background: var(--blue);
    border-color: var(--blue);
    color: #ffffff;
    transform: translateY(-1px);
  }
}

/* Language Toggle matching reference [EN] / عربي pill */
#lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.5rem 0.25rem 0.3rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-2);
  transition: border-color 0.2s var(--ease-ui), background-color 0.2s var(--ease-ui), transform 0.15s ease-out;
}
.lang-chip-en,
.lang-chip-ar {
  padding: 0.22rem 0.52rem;
  border-radius: 4px;
  transition: background-color 0.2s var(--ease-ui), color 0.2s var(--ease-ui);
}
html[lang="en"] .lang-chip-en,
html[lang="ar"] .lang-chip-ar {
  background: var(--blue);
  color: #ffffff;
}
.lang-chip-sep {
  color: var(--text-3);
  font-weight: 400;
}
@media (hover: hover) {
  #lang-toggle:hover { border-color: var(--blue); }
}

/* Hamburger */
#nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  padding: 6px;
  border-radius: 6px;
}
#nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-1);
  border-radius: 2px;
  transition: transform 0.25s var(--ease-ui), opacity 0.2s var(--ease-ui);
}
#nav-hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#nav-hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
#nav-hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Drawer */
#nav-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  inset-inline-end: 0;
  width: min(320px, 85vw);
  background: var(--bg-1);
  z-index: 200;
  transform: translateX(105%);
  visibility: hidden;
  pointer-events: none;
  box-shadow: none;
  transition: transform 0.3s var(--ease-ui), visibility 0.3s;
  padding: 1.5rem;
  border-inline-start: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
}
html[dir="ltr"] #nav-drawer {
  transform: translateX(105%);
}
html[dir="rtl"] #nav-drawer {
  transform: translateX(-105%);
}
html[dir="ltr"] #nav-drawer.open,
html[dir="rtl"] #nav-drawer.open,
#nav-drawer.open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
  box-shadow: 0 0 36px rgba(0, 0, 0, 0.6);
}
.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.25rem;
}
.drawer-title {
  direction: ltr;
  unicode-bidi: isolate;
  font-family: var(--font-en);
  font-weight: 900;
  color: var(--text-1);
  font-size: 1.05rem;
}
#drawer-close {
  font-size: 1.6rem;
  color: var(--text-2);
  width: 36px;
  height: 36px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.drawer-link {
  display: block;
  padding: 0.85rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: color 0.15s var(--ease-ui);
}
.drawer-link-accent { color: var(--blue-bright); font-weight: 700; }
@media (hover: hover) {
  .drawer-link:hover { color: var(--text-1); }
}

#drawer-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(5, 8, 15, 0.7);
  backdrop-filter: blur(4px);
}
#drawer-backdrop.open { display: block; }

@media (min-width: 901px) {
  #nav-drawer, #drawer-backdrop { display: none !important; }
}

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.72rem 1.4rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.88rem;
  transition: transform 0.15s ease-out, background-color 0.2s var(--ease-ui), border-color 0.2s var(--ease-ui), color 0.2s var(--ease-ui), box-shadow 0.2s var(--ease-ui);
}
.btn:not(:disabled):active { transform: scale(0.96); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.btn-primary {
  background: var(--blue);
  color: #ffffff;
  border: 1px solid var(--blue);
  box-shadow: 0 8px 20px rgba(11, 99, 246, 0.25);
}
@media (hover: hover) {
  .btn-primary:hover {
    background: var(--blue-dim);
    border-color: var(--blue-dim);
    transform: translateY(-1px);
  }
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-1);
  border: 1px solid rgba(255, 255, 255, 0.26);
}
@media (hover: hover) {
  .btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
  }
}

.btn-outline-hero {
  background: transparent;
  color: var(--text-2);
  border: 1px solid rgba(255, 255, 255, 0.16);
}
@media (hover: hover) {
  .btn-outline-hero:hover {
    color: var(--text-1);
    border-color: var(--blue);
  }
}

.btn-outline {
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--border);
}
@media (hover: hover) {
  .btn-outline:hover { border-color: var(--blue); color: var(--text-1); }
}
.section-light .btn-outline,
.section-light-alt .btn-outline {
  color: var(--light-ink-1);
  border-color: rgba(15, 23, 42, 0.22);
  background: rgba(255, 255, 255, 0.65);
}
@media (hover: hover) {
  .section-light .btn-outline:hover,
  .section-light-alt .btn-outline:hover {
    background: #ffffff;
    border-color: var(--blue);
    color: var(--blue);
  }
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
@media (hover: hover) {
  .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: var(--blue-bright);
  }
}
.btn-sm { padding: 0.5rem 1.05rem; font-size: 0.82rem; }

/* ── 1. Hero Section (Reference Dark Graphite Composition) ─ */
#hero {
  position: relative;
  min-height: clamp(520px, 74vh, 660px);
  background: linear-gradient(135deg, #0b0e15 0%, #10141e 56%, #0c1018 100%);
  display: flex;
  align-items: stretch;
  padding-block: calc(var(--nav-h) + 2rem) 0;
  overflow: hidden;
  isolation: isolate;
}

/* Giant RABEA watermark behind portrait */
.hero-watermark {
  position: absolute;
  top: clamp(2.6rem, 6vh, 4.4rem);
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  text-align: center;
  font-family: var(--font-en);
  font-size: clamp(6rem, 23vw, 20.5rem);
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: -0.04em;
  color: rgba(226, 232, 240, 0.085);
  pointer-events: none;
  user-select: none;
  z-index: 0;
  white-space: nowrap;
}

/* Bottom diagonal electric blue geometric accent wedge (mirrors RTL/LTR cleanly) */
.hero-blue-wedge {
  position: absolute;
  inset-inline-end: -4%;
  bottom: -10%;
  width: clamp(180px, 24vw, 340px);
  height: clamp(180px, 34vh, 320px);
  background: linear-gradient(135deg, rgba(11, 99, 246, 0.85) 0%, rgba(11, 99, 246, 0.12) 100%);
  clip-path: polygon(100% 0, 100% 100%, 15% 100%);
  opacity: 0.72;
  pointer-events: none;
  z-index: 2;
}
html[dir="rtl"] .hero-blue-wedge {
  clip-path: polygon(0 0, 0 100%, 85% 100%);
  background: linear-gradient(225deg, rgba(11, 99, 246, 0.85) 0%, rgba(11, 99, 246, 0.12) 100%);
}

/* Natural logical grid mirroring across AR RTL and EN LTR */
#hero .hero-inner {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  align-items: end;
  gap: clamp(1.75rem, 4.2vw, 3.25rem);
}

#hero .hero-text {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  min-width: 0;
  width: 100%;
  max-width: 560px;
  justify-self: start;
  align-items: flex-start;
  align-self: center;
  padding-bottom: 3.25rem;
  text-align: start;
  position: relative;
  z-index: 4;
}

.hero-name {
  display: flex;
  align-items: flex-start;
  gap: clamp(0.65rem, 1.5vw, 1rem);
  font-weight: 900;
  line-height: 1.08;
  color: #ffffff;
}
.hero-slash-mark {
  direction: ltr;
  unicode-bidi: isolate;
  color: var(--blue);
  font-family: var(--font-en);
  font-size: clamp(2.8rem, 5.4vw, 4.5rem);
  line-height: 0.92;
  flex-shrink: 0;
}
.hero-name-stack {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.name-sep { display: none; }
.hero-name .name-ar {
  font-size: clamp(2.45rem, 4.8vw, 4rem);
  font-weight: 900;
  color: #ffffff;
  line-height: 1.08;
}
.hero-name .name-en {
  font-family: var(--font-en);
  font-size: clamp(0.98rem, 1.7vw, 1.25rem);
  font-weight: 800;
  letter-spacing: 0.18em;
  color: #93c5fd;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(59, 130, 246, 0.34);
  background: rgba(11, 99, 246, 0.12);
  align-self: flex-start;
}
html[lang="en"] .hero-name .name-ar {
  order: 2;
  font-size: clamp(0.95rem, 1.6vw, 1.2rem);
  font-weight: 700;
  letter-spacing: 0;
  color: #93c5fd;
  padding: 0.22rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(59, 130, 246, 0.34);
  background: rgba(11, 99, 246, 0.12);
  align-self: flex-start;
}
html[lang="en"] .hero-name .name-en {
  order: 1;
  font-size: clamp(2.6rem, 5.1vw, 4.2rem);
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.03em;
  line-height: 1;
  padding: 0;
  border: 0;
  background: transparent;
}

.hero-eyebrow {
  font-size: clamp(1.06rem, 1.75vw, 1.32rem);
  font-weight: 800;
  color: #f1f5f9;
  padding-inline-start: 0.85rem;
  border-inline-start: 3px solid var(--blue);
  line-height: 1.4;
}

/* Dynamic Typing Bar directly below the Role Title */
.hero-typewriter-box {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  width: fit-content;
  max-width: 100%;
  min-height: 2.85rem;
  padding: 0.55rem 0.95rem;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(56, 152, 255, 0.34);
  box-shadow: 0 8px 24px rgba(2, 6, 23, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  font-size: clamp(0.88rem, 1.25vw, 0.98rem);
  font-weight: 600;
  color: #dbeafe;
  line-height: 1.5;
}
.typewriter-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 10px #38bdf8;
  flex-shrink: 0;
  animation: twPulse 1.8s ease-in-out infinite;
}
.typewriter-cursor {
  display: inline-block;
  color: #38bdf8;
  font-weight: 900;
  animation: twBlink 0.9s steps(2, start) infinite;
}
@keyframes twBlink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
@keyframes twPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.65; }
}

.hero-title {
  font-size: clamp(0.95rem, 1.25vw, 1.06rem);
  color: var(--text-2);
  line-height: 1.78;
  max-width: 48ch;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 0.25rem;
}
.btn-cv-pill {
  background: rgba(56, 152, 255, 0.14);
  border-color: rgba(56, 152, 255, 0.42);
  color: #dbeafe;
}
@media (hover: hover) {
  .btn-cv-pill:hover {
    background: rgba(56, 152, 255, 0.28);
    border-color: #38bdf8;
    color: #ffffff;
    transform: translateY(-2px);
  }
}

.hero-quick-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.15rem;
}
.quick-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.78rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: transform 0.18s ease-out, border-color 0.2s var(--ease-ui), color 0.2s var(--ease-ui), background-color 0.2s var(--ease-ui);
}
@media (hover: hover) {
  .quick-pill:hover {
    color: #ffffff;
    border-color: var(--blue);
    background: rgba(11, 99, 246, 0.16);
    transform: translateY(-2px);
  }
}

/* Portrait Stage — anchors seamlessly to bottom edge & preserves blue rim light */
#hero .hero-portrait-wrap {
  position: relative;
  min-width: 0;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  align-self: end;
  justify-self: end;
}
#hero .hero-portrait-wrap::before {
  content: '';
  position: absolute;
  inset: -12% -10% 0 -24%;
  background: radial-gradient(circle at 66% 42%, rgba(11, 99, 246, 0.24) 0%, transparent 62%);
  pointer-events: none;
  z-index: 0;
}
#hero .hero-portrait {
  position: relative;
  z-index: 1;
  display: block;
  width: min(100%, 660px);
  height: clamp(440px, 67vh, 610px);
  max-width: 660px;
  object-fit: cover;
  object-position: 80% top;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.55) 18%, black 34%, black 93%, transparent 100%),
                      linear-gradient(to bottom, transparent 0%, black 14%, black 100%);
  mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.55) 18%, black 34%, black 93%, transparent 100%),
              linear-gradient(to bottom, transparent 0%, black 14%, black 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}
html[dir="rtl"] #hero .hero-portrait {
  object-position: 84% top;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 16%, black 80%, rgba(0, 0, 0, 0.6) 90%, transparent 100%),
                      linear-gradient(to bottom, transparent 0%, black 14%, black 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 16%, black 80%, rgba(0, 0, 0, 0.6) 90%, transparent 100%),
              linear-gradient(to bottom, transparent 0%, black 14%, black 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}
#hero .portrait-badge {
  position: absolute;
  bottom: 1rem;
  inset-inline-end: 1rem;
  z-index: 5;
  background: rgba(17, 20, 28, 0.9);
  border: 1px solid rgba(59, 130, 246, 0.45);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-1);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  backdrop-filter: blur(8px);
}
.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  flex-shrink: 0;
}

/* ── Reference Typography & Light Surface Sections ──────── */
.section {
  padding-block: clamp(3.25rem, 6vw, 5rem);
}
.section-light {
  background: var(--light-0);
  color: var(--light-ink-1);
  border-top: 1px solid var(--light-border);
}
.section-light-alt {
  background: var(--light-1);
  color: var(--light-ink-1);
  border-top: 1px solid var(--light-border);
}

.section-label {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.5rem;
}
.ref-section-title {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: clamp(1.6rem, 2.8vw, 2.25rem);
  font-weight: 900;
  line-height: 1.18;
  color: var(--light-ink-1);
}
.ref-section-title-dark { color: #ffffff; }
.ref-slash {
  direction: ltr;
  unicode-bidi: isolate;
  color: var(--blue);
  font-family: var(--font-en);
  font-weight: 900;
  flex-shrink: 0;
}
.ref-accent-rule {
  width: 38px;
  height: 3px;
  background: var(--blue);
  margin-block: 1rem;
  border-radius: 2px;
}
.ref-accent-sm {
  width: 30px;
  margin-block: 0.75rem;
}
.band-divider {
  border: 0;
  border-top: 1px solid var(--light-border);
  margin-block: clamp(2rem, 4vw, 3rem);
}

/* Light-surface images subtle 1px outline per better-ui */
.section-light img,
.section-light-alt img {
  outline: 1px solid oklch(0 0 0 / 0.1);
  outline-offset: -1px;
}

/* Shared Interactive 3D Card & Spotlight Glare Utility */
.tilt-3d-card {
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0px));
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s var(--ease-ui), border-color 0.25s var(--ease-ui);
}
.tilt-3d-card.is-tilting {
  transition: transform 0.08s ease-out, box-shadow 0.2s ease-out, border-color 0.2s ease-out;
}
.tilt-3d-card::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  opacity: var(--glare-opacity, 0);
  background: radial-gradient(circle at var(--glare-x, 50%) var(--glare-y, 50%), rgba(56, 152, 255, 0.16) 0%, transparent 56%);
  transition: opacity 0.25s ease-out;
  z-index: 4;
}

/* ── 2. Experience Across Environments + Dual Field Gallery ─ */
.sectors-band {
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
.sectors-pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.sector-pillar {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-inline-start: 1px solid var(--light-border);
  transition: transform 0.25s var(--ease-ui);
}
@media (hover: hover) {
  .sector-pillar:hover { transform: translateY(-3px); }
}
.sector-svg {
  width: 44px;
  height: 44px;
  color: var(--blue);
}
.sector-label {
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--light-ink-1);
}

.field-showcase-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.52fr) minmax(0, 0.48fr);
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: stretch;
}
.field-dual-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}
.field-photo-frame {
  background: #141b26;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}
.field-photo-img {
  width: 100%;
  flex: 1;
  min-height: 290px;
  max-height: 410px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 12%;
  display: block;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.field-photo-frame:hover .field-photo-img {
  transform: scale(1.03);
}
.field-photo-cap {
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  border-top: 1px solid var(--light-border);
  background: var(--light-1);
}
.field-cap-badge {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--blue);
  background: rgba(11, 99, 246, 0.08);
  border: 1px solid rgba(11, 99, 246, 0.2);
  padding: 0.22rem 0.62rem;
  border-radius: 999px;
}
.field-cap-text {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--light-ink-1);
  line-height: 1.45;
}

.field-details-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.05rem;
  min-width: 0;
}
.field-sub-heading {
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 900;
  color: var(--light-ink-1);
}
.field-sub-desc {
  font-size: 0.98rem;
  line-height: 1.75;
  color: var(--light-ink-2);
}
.field-pillars-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.95rem;
}
.light-card {
  background: var(--light-1);
  border: 1px solid var(--light-border);
  border-radius: var(--radius);
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
  transition: transform 0.22s var(--ease-ui), border-color 0.22s var(--ease-ui), box-shadow 0.22s var(--ease-ui);
}
@media (hover: hover) {
  .light-card:hover {
    transform: translateY(-2px);
    border-color: rgba(11, 99, 246, 0.4);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  }
}
.light-card-wide {
  grid-column: span 2;
}
.light-card-tag {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--blue);
}
.light-card h4 {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--light-ink-1);
}
.light-card p {
  font-size: 0.86rem;
  line-height: 1.65;
  color: var(--light-ink-2);
}

/* ── 3. Interactive 3D Career Stage ─────────────────────── */
.journey-split {
  display: grid;
  grid-template-columns: minmax(0, 0.39fr) minmax(0, 0.61fr);
  gap: clamp(2rem, 4.5vw, 3.75rem);
  align-items: start;
}
.journey-intro-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
  position: sticky;
  top: calc(var(--nav-h) + 1.5rem);
}
.journey-desc {
  font-size: 0.96rem;
  line-height: 1.72;
  color: var(--light-ink-2);
  margin-bottom: 1.35rem;
}

.exp-3d-console {
  background: #ffffff;
  border: 1px solid var(--light-border);
  border-radius: var(--radius-lg);
  padding: 1.15rem;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.exp-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.exp-filter-btn {
  padding: 0.38rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--light-border);
  background: var(--light-1);
  color: var(--light-ink-2);
  font-size: 0.78rem;
  font-weight: 700;
  transition: background-color 0.2s var(--ease-ui), color 0.2s var(--ease-ui), border-color 0.2s var(--ease-ui), transform 0.15s ease-out;
}
.exp-filter-btn:hover,
.exp-filter-btn.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #ffffff;
  transform: translateY(-1px);
}
.exp-mini-stepper {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--light-border);
}
.exp-step-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.28rem 0.6rem;
  border-radius: 6px;
  border: 1px solid var(--light-border);
  background: #f8fafc;
  color: var(--light-ink-2);
  transition: all 0.2s var(--ease-ui);
}
.exp-step-pill.active,
.exp-step-pill:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: rgba(11, 99, 246, 0.08);
}

.exp-3d-viewport {
  perspective: 1200px;
}

/* Dot-Rail Accordion Timeline matching reference vertical line + blue dots + 3D Depth */
.timeline-dot-rail {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  padding-inline-start: 1.75rem;
}
.timeline-dot-rail::before {
  content: '';
  position: absolute;
  top: 1.55rem;
  bottom: 2rem;
  inset-inline-start: 5px;
  width: 2px;
  background: linear-gradient(to bottom, var(--blue), #cbd5e1);
}
.timeline-accordion-item {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--light-border);
  border-radius: 12px;
  transform-style: preserve-3d;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.25s var(--ease-ui), box-shadow 0.25s var(--ease-ui), opacity 0.25s var(--ease-ui);
}
.timeline-accordion-item.is-hidden {
  display: none;
}
.timeline-accordion-item::before {
  content: '';
  position: absolute;
  top: 1.35rem;
  inset-inline-start: calc(-1.75rem + 0.5px);
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px var(--light-1), 0 0 12px rgba(11, 99, 246, 0.4);
  transition: transform 0.25s var(--ease-ui);
}
.timeline-accordion-item.open {
  background: #ffffff;
  border-color: var(--blue);
  box-shadow: 0 20px 42px rgba(11, 99, 246, 0.12), 0 6px 16px rgba(15, 23, 42, 0.06);
}
.timeline-accordion-item.open::before {
  transform: scale(1.25);
}
.timeline-acc-header {
  padding: 1.1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  transform: translateZ(14px);
}
.timeline-acc-header:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: var(--radius); }
.timeline-acc-main { display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; }
.timeline-acc-top-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.timeline-sector-chip {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.16rem 0.55rem;
  border-radius: 999px;
  background: rgba(11, 99, 246, 0.09);
  color: var(--blue);
  border: 1px solid rgba(11, 99, 246, 0.2);
}
.timeline-acc-company {
  font-size: 1.04rem;
  font-weight: 800;
  color: var(--light-ink-1);
}
.timeline-acc-role {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--light-ink-2);
}
.timeline-acc-period {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--blue);
}
.timeline-acc-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--blue);
  flex-shrink: 0;
}
.acc-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--light-border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s var(--ease-ui), background-color 0.2s var(--ease-ui), color 0.2s var(--ease-ui);
}
.timeline-accordion-item.open .acc-icon {
  transform: rotate(180deg);
  background: var(--blue);
  color: #ffffff;
  border-color: var(--blue);
}
.timeline-acc-body {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s var(--ease-ui), opacity 0.25s var(--ease-ui);
}
.timeline-accordion-item.open .timeline-acc-body {
  max-height: 480px;
  opacity: 1;
  border-top: 1px solid var(--light-border);
}
.timeline-acc-inner {
  padding: 1rem 1.25rem 1.25rem;
}
.timeline-tasks-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.timeline-tasks-list li {
  position: relative;
  padding-inline-start: 1.15rem;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--light-ink-2);
}
.timeline-tasks-list li::before {
  content: '▸';
  position: absolute;
  inset-inline-start: 0;
  color: var(--blue);
}

/* ── 4. Selected Experience (Wide Dark Blueprint Cards) ─── */
.projects-header-row {
  margin-bottom: 1.75rem;
}
.projects-sub {
  margin-top: 0.45rem;
  font-size: 0.96rem;
  color: var(--light-ink-2);
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}
.project-card {
  position: relative;
  background: linear-gradient(135deg, #121722 0%, #172133 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 290px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s var(--ease-ui), border-color 0.25s var(--ease-ui), box-shadow 0.25s var(--ease-ui);
}
@media (hover: hover) {
  .project-card:hover {
    transform: translateY(-3px);
    border-color: var(--blue);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.18);
  }
}
.project-blueprint-bg {
  position: absolute;
  bottom: 0;
  inset-inline-end: 0;
  width: 68%;
  height: 100%;
  pointer-events: none;
  opacity: 0.85;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}
html[dir="rtl"] .blueprint-svg {
  transform: scaleX(-1);
}
.blueprint-svg {
  width: 100%;
  height: auto;
  max-height: 225px;
}
.project-body {
  position: relative;
  z-index: 2;
  padding: clamp(1.35rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  max-width: 72%;
  flex: 1;
}
.project-cover-badge {
  align-self: flex-start;
  font-family: var(--font-en);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #93c5fd;
  background: rgba(11, 99, 246, 0.18);
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: 999px;
  padding: 0.22rem 0.65rem;
}
.project-title {
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-weight: 900;
  color: #ffffff;
  line-height: 1.25;
}
.project-tag {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--blue-bright);
}
.project-desc {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-2);
  flex: 1;
}
.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.85rem;
}

/* ── 5. Entrepreneurial Chapter (Nano Tech) ──────────────── */
.founding-split {
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: start;
}
.founding-heading-col {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  align-items: flex-start;
}
.founding-pill {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--blue);
  background: rgba(11, 99, 246, 0.08);
  border: 1px solid rgba(11, 99, 246, 0.22);
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
}
.founding-content-col { min-width: 0; }
.founding-title {
  font-size: clamp(1.35rem, 2.3vw, 1.8rem);
  font-weight: 900;
  color: var(--light-ink-1);
}
.founding-subtitle {
  margin-top: 0.35rem;
  font-size: 0.96rem;
  color: var(--light-ink-2);
}
.founding-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}
.founding-feature {
  background: var(--light-0);
  border: 1px solid var(--light-border);
  border-radius: var(--radius);
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.founding-icon { font-size: 1.35rem; }
.founding-feature h4 { font-size: 0.96rem; font-weight: 800; color: var(--light-ink-1); }
.founding-feature p { font-size: 0.84rem; line-height: 1.6; color: var(--light-ink-2); }

/* ── 6. Core Expertise & Credentials ─────────────────────── */
.expertise-band {
  display: grid;
  grid-template-columns: minmax(0, 0.34fr) minmax(0, 0.66fr);
  gap: clamp(1.5rem, 3.5vw, 2.75rem);
  align-items: center;
}
.expertise-pillars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.expertise-pillar {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 0.9rem;
  border-inline-start: 1px solid var(--light-border);
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--light-ink-1);
}
.expertise-pillar .sector-svg { width: 32px; height: 32px; flex-shrink: 0; }

.edu-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.32fr);
  gap: 1.75rem;
  align-items: start;
}
.academic-card {
  background: var(--light-1);
  border: 1px solid var(--light-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.edu-icon-badge {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: rgba(11, 99, 246, 0.08);
  border: 1px solid rgba(11, 99, 246, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}
.edu-period { font-size: 0.78rem; font-weight: 800; color: var(--blue); }
.edu-school { font-size: 1.2rem; font-weight: 800; color: var(--light-ink-1); }
.edu-major { font-size: 0.92rem; font-weight: 700; color: var(--light-ink-2); }
.edu-desc { font-size: 0.86rem; line-height: 1.65; color: var(--light-ink-2); }

.certs-container {
  background: var(--light-1);
  border: 1px solid var(--light-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.certs-heading { font-size: 1.08rem; font-weight: 800; color: var(--light-ink-1); margin-bottom: 1rem; }
.certs-list { display: flex; flex-direction: column; gap: 0.75rem; }
.cert-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.65rem 0.9rem;
  background: var(--light-0);
  border: 1px solid var(--light-border);
  border-radius: var(--radius);
}
.cert-check { color: var(--blue); font-weight: 900; font-size: 1rem; }
.cert-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cert-info strong { font-size: 0.9rem; color: var(--light-ink-1); }
.cert-info span { font-size: 0.78rem; color: var(--light-ink-2); font-family: var(--font-en); }

/* ── 7. Behind the Name & Identity Preview ──────────────── */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 4vw, 3.25rem);
  align-items: start;
}
.about-bio {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}
.about-bio p {
  color: var(--light-ink-2);
  font-size: 0.98rem;
  line-height: 1.75;
}
.about-highlights {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.highlight-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--light-0);
  border: 1px solid var(--light-border);
  border-radius: var(--radius);
  padding: 0.7rem 0.95rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--light-ink-1);
}
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 0.5rem;
}
.stat-card {
  background: var(--light-0);
  border: 1px solid var(--light-border);
  border-radius: var(--radius);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.stat-number {
  font-family: var(--font-en);
  font-size: 1.85rem;
  font-weight: 900;
  color: var(--blue);
}
.stat-label {
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--light-ink-2);
}

.behind-portraits-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.05rem;
  min-width: 0;
}
.identity-photo-card {
  background: var(--light-0);
  border: 1px solid var(--light-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 205px minmax(0, 1fr);
  align-items: stretch;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
@media (hover: hover) {
  .identity-photo-card:hover {
    border-color: rgba(11, 99, 246, 0.35);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
  }
}
.identity-photo-img {
  width: 100%;
  height: 100%;
  min-height: 215px;
  aspect-ratio: 1 / 1;
  background: #141b26;
  object-fit: cover;
  object-position: center 14%;
  display: block;
}
.identity-photo-body {
  padding: 1.2rem 1.35rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.55rem;
  min-width: 0;
}
.identity-photo-body h3 {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--light-ink-1);
}
.identity-photo-body p {
  font-size: 0.85rem;
  line-height: 1.62;
  color: var(--light-ink-2);
}
.identity-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.35rem;
}

/* ── 8. Dark Contact Band, EL ROB3 Persona & Interactive Socials ─ */
.section-dark {
  position: relative;
  background: var(--bg-0);
  color: var(--text-1);
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.hero-blue-wedge-footer {
  width: clamp(140px, 18vw, 260px);
  height: clamp(140px, 24vh, 240px);
  opacity: 0.55;
  z-index: 0;
}
.contact-inner { position: relative; z-index: 2; }

.connect-top-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}
.connect-inline-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  font-size: 0.95rem;
  color: var(--text-2);
}
.connect-meta-link,
.connect-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  transition: color 0.15s var(--ease-ui);
}
@media (hover: hover) {
  .connect-meta-link:hover { color: var(--blue-bright); }
}
.connect-meta-sep { color: var(--border-hi); }

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  gap: 2rem;
  align-items: start;
}
.contact-info-cards { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }

/* Personal EL ROB3 Black Shirt Portrait Card inside Contact Section */
.contact-persona-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(11, 99, 246, 0.08) 100%);
  border: 1px solid rgba(59, 130, 246, 0.28);
  border-radius: var(--radius-lg);
  padding: 0.9rem;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}
.contact-persona-media {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(56, 152, 255, 0.4);
  background: #0d111a;
}
.contact-persona-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 15%;
  display: block;
}
.contact-persona-chip {
  position: absolute;
  bottom: 0.35rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(11, 14, 20, 0.9);
  border: 1px solid rgba(56, 152, 255, 0.5);
  color: #93c5fd;
  font-family: var(--font-en);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  padding: 0.15rem 0.48rem;
  border-radius: 999px;
  white-space: nowrap;
}
.contact-persona-copy {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}
.contact-persona-copy h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
}
.contact-sub { font-size: 0.88rem; line-height: 1.65; color: var(--text-2); }

/* Interactive SVG Social Dock inside #contact */
.contact-social-block {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.contact-social-heading {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--blue-bright);
  letter-spacing: 0.04em;
}
.contact-social-dock {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}
.contact-social-tile {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.68rem 0.85rem;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-1);
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.2s var(--ease-ui), box-shadow 0.25s var(--ease-ui), background-color 0.2s var(--ease-ui);
}
.contact-social-icon,
.about-social-svg {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--social-brand, #38bdf8);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.2s var(--ease-ui), color 0.2s var(--ease-ui), border-color 0.2s var(--ease-ui);
}
.contact-social-icon svg,
.about-social-svg svg {
  width: 18px;
  height: 18px;
}
.about-social-svg {
  width: 42px;
  height: 42px;
}
.contact-social-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  flex: 1;
}
.contact-social-meta strong {
  font-size: 0.84rem;
  font-weight: 800;
  color: #ffffff;
}
.contact-social-meta small {
  font-size: 0.7rem;
  color: var(--text-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.contact-social-arrow {
  font-family: var(--font-en);
  font-size: 0.86rem;
  color: var(--text-3);
  transition: transform 0.2s ease-out, color 0.2s ease-out;
}
@media (hover: hover) {
  .contact-social-tile:hover {
    transform: translateY(-3px);
    border-color: var(--social-brand, var(--blue));
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35), 0 0 18px color-mix(in srgb, var(--social-brand, #38bdf8) 25%, transparent);
  }
  .contact-social-tile:hover .contact-social-icon,
  .about-social-card:hover .about-social-svg {
    transform: scale(1.1) rotate(-4deg);
    background: var(--social-brand, var(--blue));
    border-color: var(--social-brand, var(--blue));
    color: #0b0e15;
  }
  .contact-social-tile:hover .contact-social-arrow {
    color: var(--social-brand, var(--blue-bright));
    transform: translate(2px, -2px);
  }
}

.contact-direct-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}
.c-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}
.c-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(11, 99, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.25);
  color: var(--blue-bright);
  flex-shrink: 0;
}
.c-icon svg,
.connect-svg,
.inline-svg-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.connect-svg { color: var(--blue-bright); }
.founding-svg {
  width: 28px;
  height: 28px;
  color: var(--blue);
}
.edu-svg {
  width: 24px;
  height: 24px;
  color: var(--blue);
}
.highlight-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  flex-shrink: 0;
}
.c-info-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.c-label { font-size: 0.72rem; color: var(--text-3); font-weight: 600; }
.c-val { font-size: 0.86rem; color: var(--text-1); font-weight: 700; overflow-wrap: anywhere; }
.c-val-email {
  direction: ltr;
  unicode-bidi: isolate;
  font-family: var(--font-en);
  font-size: clamp(0.72rem, 2.7vw, 0.84rem);
  overflow-wrap: anywhere;
  word-break: normal;
  white-space: normal;
}
.connect-inline-meta .c-val-email {
  white-space: nowrap;
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 1.85rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-2);
}
.form-field input,
.form-field textarea {
  background: var(--bg-card2);
  color: var(--text-1);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 0.7rem 0.95rem;
  font: inherit;
  font-size: 0.9rem;
  resize: vertical;
  transition: border-color 0.2s var(--ease-ui), box-shadow 0.2s var(--ease-ui);
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-glow);
}
#form-status { font-size: 0.88rem; min-height: 1.3em; }
#form-status.success { color: #22c55e; }
#form-status.error { color: #ef4444; }

/* ── Footer & Interactive SVG Pills ──────────────────────── */
#main-footer {
  background: #0b0e14;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-block: 2rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
}
.footer-brand { display: flex; flex-direction: column; gap: 4px; }
.footer-brand-row {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  direction: ltr;
  unicode-bidi: isolate;
  font-family: var(--font-en);
  font-weight: 900;
  font-size: 1.05rem;
}
.footer-tagline { font-size: 0.8rem; color: var(--text-3); }
.footer-copy { font-size: 0.82rem; color: var(--text-2); }
.footer-actions { display: flex; align-items: center; gap: 0.85rem; flex-wrap: wrap; }
.admin-link {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-2);
  padding: 0.35rem 0.8rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  transition: border-color 0.2s var(--ease-ui), color 0.2s var(--ease-ui);
}
@media (hover: hover) {
  .admin-link:hover { color: var(--blue-bright); border-color: var(--blue); }
}

.footer-social-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}
.footer-social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.82rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-2);
  font-size: 0.78rem;
  font-weight: 700;
  transition: border-color 0.2s var(--ease-ui), color 0.2s var(--ease-ui), transform 0.2s ease-out, box-shadow 0.25s var(--ease-ui), background-color 0.2s var(--ease-ui);
}
.social-svg-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--social-brand, var(--blue-bright));
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.social-svg-wrap svg {
  width: 15px;
  height: 15px;
}
@media (hover: hover) {
  .footer-social-link:hover {
    border-color: var(--social-brand, var(--blue));
    color: #ffffff;
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 6px 18px color-mix(in srgb, var(--social-brand, #38bdf8) 28%, transparent);
    transform: translateY(-2px);
  }
  .footer-social-link:hover .social-svg-wrap {
    transform: scale(1.2) rotate(-6deg);
  }
}

/* ── Deep-Dive Modals ───────────────────────────────────── */
.project-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--ease-ui), visibility 0.25s var(--ease-ui);
}
.project-modal.active { opacity: 1; visibility: visible; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 14, 20, 0.82);
  backdrop-filter: blur(8px);
}
.modal-dialog {
  position: relative;
  z-index: 1;
  background: var(--bg-1);
  color: var(--text-1);
  border: 1px solid var(--border-hi);
  border-radius: var(--radius-lg);
  max-width: 720px;
  width: 100%;
  max-height: 85dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  transform: scale(0.96);
  transition: transform 0.28s var(--ease-ui);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.project-modal.active .modal-dialog { transform: scale(1); }
.modal-close-btn {
  position: absolute;
  top: 1.15rem;
  inset-inline-end: 1.15rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s var(--ease-ui), color 0.2s var(--ease-ui);
}
@media (hover: hover) {
  .modal-close-btn:hover { border-color: var(--blue); color: #ffffff; }
}
.modal-header { display: flex; flex-direction: column; gap: 0.35rem; padding-inline-end: 2.5rem; }
.modal-category { font-size: 0.72rem; font-weight: 800; color: var(--blue-bright); letter-spacing: 0.14em; }
.modal-title { font-size: 1.4rem; font-weight: 900; color: #ffffff; }
.modal-period { font-size: 0.85rem; color: var(--text-2); }
.modal-content { display: flex; flex-direction: column; gap: 1.1rem; }
.modal-section h3 { font-size: 1rem; font-weight: 800; color: var(--blue-bright); margin-bottom: 0.4rem; }
.modal-section p { font-size: 0.92rem; color: var(--text-2); line-height: 1.7; }
.modal-tasks-list { display: flex; flex-direction: column; gap: 0.5rem; }
.modal-tasks-list li { position: relative; padding-inline-start: 1.2rem; font-size: 0.9rem; color: var(--text-2); line-height: 1.6; }
.modal-tasks-list li::before { content: '✓'; position: absolute; inset-inline-start: 0; color: var(--blue-bright); font-weight: 900; }
.modal-footer { display: flex; justify-content: flex-end; padding-top: 1rem; border-top: 1px solid var(--border); }

/* ── Dark Subpage Compatibility (about.html, yazaki.html, nefertiti.html) ─ */
body:not(.page-home) .section {
  background: var(--bg-0);
  color: var(--text-1);
}
body:not(.page-home) .section-title {
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  font-weight: 900;
  color: var(--text-1);
  margin-bottom: 1rem;
}
body:not(.page-home) .section-desc {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-2);
  margin-bottom: 1.5rem;
}
body:not(.page-home) .highlight-item {
  background: rgba(11, 99, 246, 0.08);
  border-color: var(--border);
  color: var(--text-1);
}
body:not(.page-home) .stat-card,
body:not(.page-home) .academic-card,
body:not(.page-home) .certs-container {
  background: var(--bg-card);
  border-color: var(--border);
}
body:not(.page-home) .about-social-card {
  transition: transform 0.2s ease-out, border-color 0.2s var(--ease-ui), box-shadow 0.25s var(--ease-ui);
}
@media (hover: hover) {
  body:not(.page-home) .about-social-card:hover {
    transform: translateY(-3px);
    border-color: var(--social-brand, var(--blue));
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.35);
  }
}
body:not(.page-home) .cert-item {
  background: var(--bg-card2);
  border-color: var(--border);
}
body:not(.page-home) .edu-school,
body:not(.page-home) .certs-heading,
body:not(.page-home) .cert-info strong,
body:not(.page-home) .stat-label { color: var(--text-1); }
body:not(.page-home) .edu-major,
body:not(.page-home) .edu-desc,
body:not(.page-home) .cert-info span { color: var(--text-2); }

.about-portrait-frame {
  position: relative;
  width: min(340px, 100%);
  margin-inline: auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-hi);
  background: var(--bg-card);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}
.about-portrait-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 15%;
  background: #141b26;
  outline: 1px solid oklch(1 0 0 / 0.1);
  outline-offset: -1px;
  display: block;
}
.about-portrait-frame .portrait-badge {
  position: absolute;
  bottom: 0.85rem;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  background: rgba(17, 20, 28, 0.92);
  border: 1px solid var(--border-hi);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-1);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ── Floating WhatsApp Button ───────────────────────────── */
.whatsapp-float-btn {
  position: fixed;
  bottom: 1.5rem;
  inset-inline-start: 1.5rem;
  z-index: 99;
  background: #25d366;
  color: #ffffff;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s ease-out, box-shadow 0.2s var(--ease-ui);
}
@media (hover: hover) {
  .whatsapp-float-btn:hover { transform: scale(1.06) translateY(-2px); }
}
.whatsapp-float-tooltip {
  position: absolute;
  inset-inline-start: calc(100% + 12px);
  background: rgba(17, 20, 28, 0.95);
  color: #ffffff;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s var(--ease-ui);
}
@media (hover: hover) {
  .whatsapp-float-btn:hover .whatsapp-float-tooltip { opacity: 1; }
}

/* ── Focus Rings ────────────────────────────────────────── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* ── Responsive Breakpoints ─────────────────────────────── */
@media (max-width: 1020px) {
  .sectors-band,
  .field-showcase-grid,
  .journey-split,
  .projects-grid,
  .founding-split,
  .expertise-band,
  .edu-grid,
  .about-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .journey-intro-col { position: static; }
  .sector-pillar,
  .expertise-pillar {
    border-inline-start: 0;
    border-top: 1px solid var(--light-border);
    padding-block: 1rem;
  }
  .expertise-pillars {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .nav-sep-line,
  .nav-links,
  .nav-cv-link { display: none; }
  #nav-hamburger { display: flex; }

  #hero {
    min-height: auto;
    padding-block: calc(var(--nav-h) + 0.5rem) 2.5rem;
  }
  #hero .hero-inner {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  /* Show studio portrait crisp on mobile top, then hero headline cleanly below */
  #hero .hero-portrait-wrap {
    order: -1;
    justify-content: center;
    justify-self: center;
  }
  #hero .hero-portrait {
    width: min(100%, 340px);
    max-width: 340px;
    height: auto;
    aspect-ratio: 4 / 3.6;
    object-position: 78% top;
    margin-inline: auto;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 16%, black 84%, transparent 100%),
                        linear-gradient(to bottom, transparent 0%, black 10%, black 80%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 16%, black 84%, transparent 100%),
                linear-gradient(to bottom, transparent 0%, black 10%, black 80%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
  }
  #hero .portrait-badge {
    bottom: 0.5rem;
    inset-inline-end: 0.5rem;
    font-size: 0.7rem;
  }
  #hero .hero-text {
    align-items: center;
    padding-bottom: 0;
    text-align: center;
    margin-inline: auto;
  }
  .hero-name { justify-content: center; }
  .hero-name-stack { align-items: center; }
  .hero-name .name-en,
  html[lang="en"] .hero-name .name-ar { align-self: center; }
  .hero-eyebrow {
    border-inline-start: 0;
    padding-inline-start: 0;
    border-bottom: 2px solid var(--blue);
    padding-bottom: 0.35rem;
  }
  .hero-typewriter-box { justify-content: center; text-align: center; }
  .hero-cta { justify-content: center; }
  .hero-quick-pills { justify-content: center; }
  .hero-watermark {
    top: 2.2rem;
    font-size: clamp(4.2rem, 22vw, 7rem);
  }
}

@media (max-width: 640px) {
  .sectors-pillars,
  .field-dual-gallery,
  .field-pillars-stack,
  .founding-grid,
  .about-stats,
  .contact-social-dock,
  .contact-direct-row,
  .form-row {
    grid-template-columns: 1fr;
  }
  .light-card-wide { grid-column: auto; }
  .contact-persona-card {
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 0.75rem;
  }
  .project-body { max-width: 100%; }
  .project-blueprint-bg { width: 100%; opacity: 0.25; }
  .identity-photo-card { grid-template-columns: 1fr; }
  .identity-photo-img { max-height: none; aspect-ratio: 1 / 1; }
  .hero-cta .btn { width: 100%; }
  .footer-inner { flex-direction: column; text-align: center; }
}

/* ── Reduced Motion Toggle & Immediate Readability ──────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .typewriter-dot,
  .typewriter-cursor { animation: none !important; }
  .tilt-3d-card { transform: none !important; }
}
body.reduce-motion *,
body.reduce-motion *::before,
body.reduce-motion *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
}
body.reduce-motion .tilt-3d-card { transform: none !important; }
