/* ============================================================
   Ar. Abdul Baseer M — "Blueprint Deck" portfolio
   Palette drawn from his CV: parchment ivory, ink navy, gold.
   ============================================================ */
:root {
  --ivory: #f4f1ea;
  --ivory-2: #ece7db;
  --ink: #14213d;
  --ink-2: #1f2d4d;
  --gold: #c2a24b;
  --gold-soft: #d8cdb4;
  --muted: #6b6f7b;
  --steel: #7e97a6;
  --sage: #8a9b7c;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", system-ui, sans-serif;
  --ease: cubic-bezier(0.65, 0, 0.35, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  height: 100%;
  overflow: hidden; /* the deck controls all movement */
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

/* Blueprint grid over the whole page */
body::before {
  content: "";
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(20, 33, 61, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 33, 61, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  pointer-events: none;
  z-index: 1;
}

#bg3d {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  opacity: 0.55;
  transition: opacity 1.2s var(--ease);
}
body[data-slide]:not([data-slide="0"]) #bg3d { opacity: 0.14; }

/* ---------------- Loader ---------------- */
#loader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--ivory);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.8s var(--ease), visibility 0.8s;
}
#loader.done { opacity: 0; visibility: hidden; }
.loader-inner { text-align: center; }
.loader-logo {
  width: min(340px, 70vw); mix-blend-mode: multiply;
  animation: loaderPulse 1.8s var(--ease) infinite alternate;
}
@keyframes loaderPulse { from { opacity: 0.35; } to { opacity: 1; } }
.loader-bar {
  width: min(240px, 50vw); height: 1px; margin: 28px auto 0;
  background: rgba(20, 33, 61, 0.15); overflow: hidden;
}
.loader-bar span {
  display: block; height: 100%; width: 40%;
  background: var(--gold);
  animation: loaderSlide 1.1s var(--ease) infinite;
}
@keyframes loaderSlide { from { transform: translateX(-100%); } to { transform: translateX(350%); } }

/* ---------------- Fixed chrome ---------------- */
.chrome { position: fixed; z-index: 40; display: flex; align-items: center; }
.chrome-top {
  top: 0; left: 0; right: 0;
  padding: clamp(14px, 2.5vh, 26px) clamp(18px, 4vw, 48px);
  justify-content: space-between;
}
.brand-logo {
  height: clamp(58px, 10vh, 92px);
  mix-blend-mode: multiply; cursor: pointer;
}
.menu-btn {
  width: 46px; height: 46px; border: 1px solid rgba(20,33,61,0.25);
  background: rgba(244,241,234,0.6); backdrop-filter: blur(6px);
  border-radius: 50%; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  transition: border-color 0.3s;
}
.menu-btn:hover { border-color: var(--gold); }
.menu-btn span {
  display: block; width: 18px; height: 1.5px; background: var(--ink);
  transition: transform 0.35s var(--ease);
}
.menu-btn.open span:first-child { transform: translateY(3.75px) rotate(45deg); }
.menu-btn.open span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

.chrome-bottom {
  bottom: 0; left: 0; right: 0;
  padding: clamp(12px, 2.2vh, 22px) clamp(18px, 4vw, 48px);
  justify-content: space-between;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted);
}
.sheet-counter { display: flex; gap: 8px; align-items: baseline; }
#sheetNum { color: var(--ink); font-weight: 600; }
.sheet-name { color: var(--gold); }
.scroll-hint { display: flex; align-items: center; gap: 12px; }
.hint-line {
  width: 54px; height: 1px; background: rgba(20,33,61,0.2);
  position: relative; overflow: hidden;
}
.hint-line::after {
  content: ""; position: absolute; inset: 0; background: var(--gold);
  animation: hintSweep 2.2s var(--ease) infinite;
}
@keyframes hintSweep { from { transform: translateX(-100%);} to { transform: translateX(100%);} }

/* Dot navigation */
.dots {
  position: fixed; right: clamp(14px, 2.5vw, 34px); top: 50%;
  transform: translateY(-50%); z-index: 40;
  display: flex; flex-direction: column; gap: 14px;
}
.dots button {
  width: 10px; height: 10px; padding: 0;
  border: 1px solid rgba(20,33,61,0.4); border-radius: 50%;
  background: transparent; cursor: pointer;
  transition: all 0.35s var(--ease);
  position: relative;
}
.dots button.active { background: var(--gold); border-color: var(--gold); transform: scale(1.3); }
.dots button:hover::after {
  content: attr(data-label);
  position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink); white-space: nowrap;
  background: rgba(244,241,234,0.9); padding: 4px 10px; border: 1px solid rgba(20,33,61,0.12);
}

/* ---------------- Floating glass dock (Apple-style) ---------------- */
.dock {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%);
  z-index: 45;
  display: flex; align-items: flex-start; gap: 2px;
  padding: 9px 16px;
  background: linear-gradient(135deg, rgba(255,255,255,0.55), rgba(255,255,255,0.28));
  -webkit-backdrop-filter: blur(22px) saturate(1.6);
  backdrop-filter: blur(22px) saturate(1.6);
  border: 1px solid rgba(255,255,255,0.65);
  border-radius: 999px;
  box-shadow:
    0 12px 40px rgba(20,33,61,0.16),
    inset 0 1px 0 rgba(255,255,255,0.8),
    inset 0 -1px 0 rgba(20,33,61,0.05);
}
.dock-item {
  appearance: none; background: transparent; border: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  gap: 4px; padding: 7px 12px 14px; position: relative;
  font-family: var(--serif); color: var(--ink);
  transition: color 0.25s;
}
.dock-item .dock-label {
  font-size: var(--dock-fs, 16px); line-height: 1; white-space: nowrap;
  font-weight: 600; will-change: font-size;
}
.dock-item::after {
  content: ""; position: absolute; bottom: 6px; left: 50%; transform: translateX(-50%) scale(0);
  width: 5px; height: 5px; border-radius: 50%; background: var(--gold);
  transition: transform 0.3s var(--ease);
}
.dock-item.active { color: var(--ink); }
.dock-item.active .dock-label { color: var(--gold); }
.dock-item.active::after { transform: translateX(-50%) scale(1); }

/* mobile: dock collapses into a vertical glass stack toggled by the menu button */
@media (max-width: 1199px) {
  .dock {
    left: auto; inset-inline-end: 16px; top: 78px; transform: none;
    flex-direction: column; align-items: stretch; gap: 0;
    border-radius: 22px; padding: 10px 8px;
    opacity: 0; visibility: hidden; translate: 0 -14px;
    transition: opacity 0.35s var(--ease), visibility 0.35s, translate 0.35s var(--ease);
  }
  .dock.open { opacity: 1; visibility: visible; translate: 0 0; }
  .dock-item { flex-direction: row; justify-content: flex-start; gap: 10px; padding: 10px 16px; }
  .dock-item .dock-label { font-size: 17px !important; }
  .dock-item::after { bottom: auto; top: 50%; left: 4px; transform: translateY(-50%) scale(0); }
  .dock-item.active::after { transform: translateY(-50%) scale(1); }
}
@media (min-width: 1200px) {
  .menu-btn { display: none; }
  .dots { display: none; } /* the dock shows position on desktop */
}

.chrome-actions { display: flex; align-items: center; gap: 10px; }
.lang-btn {
  height: 46px; min-width: 46px; padding: 0 14px;
  border: 1px solid rgba(20,33,61,0.25); border-radius: 999px;
  background: rgba(244,241,234,0.6); backdrop-filter: blur(6px);
  font-family: var(--sans); font-size: 13px; font-weight: 700; color: var(--ink);
  cursor: pointer; transition: border-color 0.3s, color 0.3s;
}
.lang-btn:hover { border-color: var(--gold); color: var(--gold); }

/* ---------------- Deck & slides ---------------- */
#deck { position: fixed; inset: 0; z-index: 10; }
.slide {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(76px, 12vh, 120px) clamp(20px, 6vw, 90px);
  visibility: hidden;
}
.slide.active { visibility: visible; }
.slide-inner {
  width: 100%; max-width: 1180px; max-height: 100%;
  overflow-y: auto; overflow-x: hidden;
  scrollbar-width: thin; scrollbar-color: rgba(20,33,61,0.25) transparent;
  padding: 4px 10px;
}

/* Section headings — drawing-sheet style */
.sec-label {
  font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--gold); display: flex; align-items: center; gap: 14px;
  margin-bottom: 14px;
}
.sec-label::before { content: ""; width: 42px; height: 1px; background: var(--gold); }
.sec-title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(30px, 5.2vh, 54px); line-height: 1.05;
  margin-bottom: clamp(16px, 3vh, 34px);
}
.sec-title em { font-style: italic; color: var(--gold); }

/* Parallax depth layers */
[data-depth] { will-change: transform; }

/* ---------------- Hero ---------------- */
.hero-grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(20px, 4vw, 60px); align-items: center;
}
.hero-kicker {
  font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 18px;
  display: flex; align-items: center; gap: 14px;
}
.hero-kicker::before { content: ""; width: 42px; height: 1px; background: var(--gold); }
.hero-name {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(44px, 9.5vh, 96px); line-height: 0.98;
}
.hero-name .name-prefix {
  font-size: 0.62em; color: var(--gold); font-style: italic; font-weight: 500;
  vertical-align: 0.24em; margin-inline-end: 0.16em;
}
.hero-name .last { font-style: italic; color: var(--gold); display: block; }
.hero-roles {
  margin: 22px 0 18px; height: 1.6em; overflow: hidden;
  font-size: clamp(14px, 2vh, 18px); letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-2); font-weight: 600;
}
.hero-roles span { display: block; }
.hero-intro { max-width: 46ch; color: var(--muted); line-height: 1.75; font-size: clamp(14px, 1.9vh, 16px); }
.hero-cta { margin-top: clamp(18px, 3.5vh, 34px); display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 28px; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; font-family: var(--sans); font-weight: 600;
  border: 1px solid var(--ink); color: var(--ink); background: transparent;
  position: relative; overflow: hidden; transition: color 0.4s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; background: var(--ink);
  transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease);
  z-index: -1;
}
.btn:hover { color: var(--ivory); }
.btn:hover::before { transform: scaleX(1); }
.btn.gold { border-color: var(--gold); color: var(--gold); }
.btn.gold::before { background: var(--gold); }
.btn.gold:hover { color: var(--ink); }

.hero-photo-wrap { position: relative; justify-self: center; }
/* soft arched niche behind the cut-out figure */
.hero-photo-wrap::before {
  content: ""; position: absolute; z-index: -2;
  inset: 6% -7% 0 -7%;
  background: linear-gradient(180deg, rgba(216,205,180,0.5), rgba(244,241,234,0) 78%);
  border-radius: 50% 50% 20px 20px / 34% 34% 4% 4%;
}
.hero-photo {
  width: clamp(240px, 44vh, 440px); aspect-ratio: 4/5;
  object-fit: contain; object-position: bottom;
  /* transparent cut-out floats over the 3D scene with grounded shadow */
  filter: saturate(0.98) contrast(1.02) drop-shadow(0 26px 30px rgba(20, 33, 61, 0.32));
}
/* arched gold frame — architectural portrait niche */
.hero-photo-frame {
  position: absolute; inset: 4% 4% 0 4%; z-index: -1;
  border: 1px solid var(--gold); border-bottom: none;
  border-radius: 50% 50% 0 0 / 30% 30% 0 0;
}
.hero-photo-dim {
  position: absolute; font-size: 10px; letter-spacing: 0.2em; color: var(--muted);
}
.dim-h { top: -34px; left: 0; right: 36px; text-align: center; border-top: 1px solid rgba(20,33,61,0.2); padding-top: 4px; }
.dim-v { top: 0; bottom: 36px; right: -14px; writing-mode: vertical-rl; border-right: 1px solid rgba(20,33,61,0.2); padding-right: 4px; text-align: center; }

/* ---------------- Stats / About ---------------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 70px); align-items: start; }
.about-text p { color: var(--ink-2); line-height: 1.8; margin-bottom: 1em; font-size: clamp(13.5px, 1.85vh, 15.5px); }
.about-quote {
  font-family: var(--serif); font-style: italic; font-size: clamp(20px, 3vh, 28px);
  color: var(--gold); border-inline-start: 2px solid var(--gold);
  padding-inline-start: 20px; margin: 20px 0;
}
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 2.5vh, 26px); }
.stat-card {
  border: 1px solid rgba(20,33,61,0.14); padding: clamp(16px, 2.6vh, 28px);
  background: rgba(255,255,255,0.45); position: relative; overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.stat-card::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
}
.stat-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(20,33,61,0.12); }
.stat-value {
  font-family: var(--serif); font-size: clamp(34px, 5.4vh, 58px); line-height: 1;
  color: var(--ink); font-weight: 600;
}
.stat-value .suffix { color: var(--gold); }
.stat-label { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; margin-top: 8px; font-weight: 700; }
.stat-note { font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip {
  font-size: 11px; letter-spacing: 0.1em; padding: 6px 14px;
  border: 1px solid rgba(20,33,61,0.18); border-radius: 100px; color: var(--ink-2);
  background: rgba(255,255,255,0.4);
}

/* ---------------- Snapshot / competencies ---------------- */
.pipeline { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(20px, 3.6vh, 40px); }
.pipe-step {
  display: flex; align-items: center; gap: 10px;
  font-size: clamp(10px, 1.4vh, 12px); letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700;
  padding: 12px 16px; border: 1px solid rgba(20,33,61,0.14); background: rgba(255,255,255,0.5);
}
.pipe-step .n { color: var(--gold); font-family: var(--serif); font-style: italic; font-size: 1.4em; }
.pipe-arrow { color: var(--gold); align-self: center; }
.comp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 2vh, 22px); }
.comp-card {
  border: 1px solid rgba(20,33,61,0.14); padding: clamp(16px, 2.4vh, 26px);
  background: rgba(255,255,255,0.5);
  transform-style: preserve-3d; transition: box-shadow 0.3s;
  position: relative;
}
.comp-card h3 { font-family: var(--serif); font-size: clamp(18px, 2.6vh, 24px); margin-bottom: 8px; }
.comp-card p { font-size: 13px; color: var(--muted); line-height: 1.65; }
.comp-card .sweep {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 50%), rgba(194,162,75,0.13), transparent 40%);
  opacity: 0; transition: opacity 0.3s;
}
.comp-card:hover .sweep { opacity: 1; }

/* ---------------- Asset classes ---------------- */
.asset-grid { display: grid; grid-template-columns: minmax(240px, 0.9fr) 1.1fr; gap: clamp(24px, 5vw, 70px); align-items: center; }
.donut-wrap { position: relative; justify-self: center; width: min(340px, 38vh); }
.donut-wrap svg { width: 100%; height: auto; transform: rotate(-90deg); }
.donut-seg { fill: none; stroke-width: 26; cursor: pointer; transition: stroke-width 0.35s var(--ease), opacity 0.35s; }
.donut-wrap.has-hover .donut-seg:not(.hot) { opacity: 0.3; }
.donut-seg.hot { stroke-width: 34; }
.donut-center {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; pointer-events: none;
}
.donut-center .big { font-family: var(--serif); font-size: clamp(36px, 5.6vh, 56px); font-weight: 600; }
.donut-center .small { font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }
.asset-rows { display: flex; flex-direction: column; gap: 4px; }
.asset-row {
  display: grid; grid-template-columns: 40px 1fr 52px; gap: 14px; align-items: center;
  padding: clamp(8px, 1.6vh, 14px) 10px; cursor: pointer; border-bottom: 1px solid rgba(20,33,61,0.1);
  transition: background 0.3s;
}
.asset-row:hover, .asset-row.hot { background: rgba(255,255,255,0.55); }
.asset-key {
  width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-weight: 600; color: var(--ink); border: 1px solid rgba(20,33,61,0.2);
}
.asset-row h4 { font-size: clamp(13px, 1.9vh, 15.5px); }
.asset-row p { font-size: 12px; color: var(--muted); margin-top: 2px; line-height: 1.5; }
.asset-pct { font-family: var(--serif); font-size: clamp(18px, 2.8vh, 24px); color: var(--gold); text-align: end; }
.asset-bar { grid-column: 2 / 4; height: 3px; background: rgba(20,33,61,0.08); overflow: hidden; }
.asset-bar span { display: block; height: 100%; width: 0; transition: width 1.2s var(--ease); }

/* ---------------- Experience ---------------- */
.exp-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: clamp(16px, 3vh, 30px); }
.exp-tab {
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700;
  padding: 10px 18px; cursor: pointer; border: 1px solid rgba(20,33,61,0.16);
  background: transparent; color: var(--muted); font-family: var(--sans);
  transition: all 0.3s var(--ease);
}
.exp-tab.active { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.exp-sheet {
  border: 1px solid rgba(20,33,61,0.16); background: rgba(255,255,255,0.55);
  padding: clamp(20px, 3.4vh, 38px); position: relative;
}
.exp-sheet::before {
  content: attr(data-sheet); position: absolute; top: 14px; right: 18px;
  font-size: 10px; letter-spacing: 0.2em; color: var(--gold);
}
.exp-period { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.exp-title { font-family: var(--serif); font-size: clamp(20px, 3.2vh, 30px); font-weight: 600; }
.exp-company { font-size: 13px; color: var(--muted); margin: 6px 0 4px; font-weight: 600; }
.exp-tagline { font-size: 12.5px; font-style: italic; color: var(--muted); margin-bottom: 14px; }
.exp-sheet ul { list-style: none; }
.exp-sheet li {
  font-size: clamp(12.5px, 1.75vh, 14px); color: var(--ink-2); line-height: 1.7;
  padding-block: 7px; padding-inline-start: 26px;
  position: relative; border-bottom: 1px dashed rgba(20,33,61,0.08);
}
.exp-sheet li::before {
  content: "—"; position: absolute; inset-inline-start: 0; color: var(--gold);
}

/* ---------------- Why me ---------------- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 2vh, 22px); }
.why-card {
  border: 1px solid rgba(20,33,61,0.14); background: rgba(255,255,255,0.5);
  padding: clamp(16px, 2.4vh, 26px); transform-style: preserve-3d;
}
.why-num {
  font-family: var(--serif); font-style: italic; color: var(--gold);
  font-size: clamp(22px, 3.4vh, 32px);
}
.why-card h3 { font-size: clamp(14px, 2vh, 17px); margin: 6px 0; }
.why-card p { font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.why-tag { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-top: 10px; display: block; }

/* ---------------- Projects ---------------- */
.proj-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: clamp(14px, 2.4vh, 26px); }
.proj-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: clamp(12px, 2vh, 20px);
}
.proj-card {
  position: relative; aspect-ratio: 4/3; overflow: hidden; cursor: pointer;
  border: 1px solid rgba(20,33,61,0.14); background: var(--ivory-2);
}
.proj-card img, .proj-card video {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease), filter 0.6s;
  filter: saturate(0.9);
}
.proj-card:hover img, .proj-card:hover video { transform: scale(1.07); filter: saturate(1.05); }
/* play badge for projects that carry a video */
.proj-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.9);
  width: 54px; height: 54px; border-radius: 50%; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  background: rgba(244, 241, 234, 0.72); backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 8px 24px rgba(20, 33, 61, 0.28);
  transition: transform 0.35s var(--ease), background 0.3s; pointer-events: none;
}
.proj-play svg { width: 22px; height: 22px; fill: var(--ink); margin-inline-start: 3px; }
.proj-card:hover .proj-play { transform: translate(-50%, -50%) scale(1); background: var(--gold); }
.proj-card:hover .proj-play svg { fill: var(--ink); }
.proj-meta {
  position: absolute; inset: auto 0 0 0; padding: 30px 16px 14px;
  background: linear-gradient(transparent, rgba(20,33,61,0.85));
  color: var(--ivory); transform: translateY(30%); opacity: 0;
  transition: all 0.5s var(--ease);
}
.proj-card:hover .proj-meta { transform: none; opacity: 1; }
.proj-meta h4 { font-family: var(--serif); font-size: 18px; }
.proj-meta span { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-soft); }
.proj-empty {
  grid-column: 1 / -1; text-align: center; padding: 8vh 20px; color: var(--muted);
  border: 1px dashed rgba(20,33,61,0.2); font-size: 14px; line-height: 1.7;
}

/* ---------------- Certifications ---------------- */
.cert-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(24px, 4vw, 60px); }
.cert-list { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(10px, 1.8vh, 18px); }
.cert-card {
  border: 1px solid rgba(20,33,61,0.14); padding: clamp(14px, 2vh, 22px);
  background: rgba(255,255,255,0.5); position: relative; transform-style: preserve-3d;
}
.cert-card::before {
  content: "✦"; color: var(--gold); font-size: 14px; display: block; margin-bottom: 8px;
}
.cert-card h4 { font-size: clamp(13px, 1.9vh, 15px); line-height: 1.4; }
.cert-card p { font-size: 11.5px; color: var(--muted); margin-top: 5px; }
.cert-card time { font-size: 10.5px; color: var(--gold); letter-spacing: 0.1em; }
.edu-item { border-inline-start: 2px solid var(--gold); padding-block: 4px; padding-inline-start: 18px; margin-bottom: 18px; }
.edu-item h4 { font-family: var(--serif); font-size: clamp(17px, 2.5vh, 22px); font-weight: 600; }
.edu-item p { font-size: 12.5px; color: var(--muted); margin-top: 4px; }

/* ---------------- Recommendations ---------------- */
.reco-wrap { max-width: 860px; margin: 0 auto; text-align: center; }
.reco-quote {
  font-family: var(--serif); font-size: clamp(16px, 2.5vh, 24px); line-height: 1.55;
  font-weight: 500; color: var(--ink); min-height: 3.5em;
}
.reco-quote::before { content: "“"; color: var(--gold); font-size: 1.6em; line-height: 0; vertical-align: -0.25em; margin-right: 4px; }
.reco-who { margin-top: clamp(16px, 3vh, 28px); }
.reco-who .stamp {
  display: inline-block; border: 1.5px solid var(--gold); color: var(--gold);
  padding: 8px 22px; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 700;
  transform: rotate(-2deg); background: rgba(255,255,255,0.4);
}
.reco-who p { font-size: 12px; color: var(--muted); margin-top: 10px; }
.reco-nav { display: flex; justify-content: center; gap: 10px; margin-top: clamp(18px, 3vh, 30px); }
.reco-nav button {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(20,33,61,0.25);
  background: transparent; cursor: pointer; color: var(--ink); font-size: 15px;
  transition: all 0.3s;
}
.reco-nav button:hover { border-color: var(--gold); color: var(--gold); }

/* ---------------- Contact ---------------- */
.contact-wrap { text-align: center; max-width: 760px; margin: 0 auto; }
.contact-title { font-family: var(--serif); font-size: clamp(38px, 7.5vh, 76px); font-weight: 500; line-height: 1.05; }
.contact-title em { font-style: italic; color: var(--gold); }
.contact-sub { color: var(--muted); margin: 16px auto 0; max-width: 52ch; line-height: 1.7; font-size: clamp(13px, 1.9vh, 15px); }
.contact-links { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: clamp(22px, 4vh, 40px); }
.contact-meta { margin-top: clamp(20px, 4vh, 40px); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); display: flex; justify-content: center; gap: 26px; flex-wrap: wrap; }
.contact-meta a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--gold); padding-bottom: 2px; }

/* ---------------- Lightbox ---------------- */
.lightbox {
  position: fixed; inset: 0; z-index: 90; background: rgba(20,33,61,0.96);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity 0.4s, visibility 0.4s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img, .lightbox video { max-width: 86vw; max-height: 80vh; object-fit: contain; box-shadow: 0 30px 80px rgba(0,0,0,0.5); background: #000; }
.lb-caption { position: absolute; bottom: 26px; left: 0; right: 0; text-align: center; color: var(--ivory); font-family: var(--serif); font-size: 18px; }
.lb-close, .lb-prev, .lb-next {
  position: absolute; background: transparent; border: 1px solid rgba(244,241,234,0.35);
  color: var(--ivory); cursor: pointer; border-radius: 50%;
  width: 46px; height: 46px; font-size: 18px; transition: all 0.3s; z-index: 2;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { border-color: var(--gold); color: var(--gold); }
.lb-close { top: 22px; right: 26px; font-size: 26px; }
.lb-prev { left: 26px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 26px; top: 50%; transform: translateY(-50%); }

/* ---------------- Responsive ---------------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 26px; text-align: center; }
  .hero-kicker, .hero-cta { justify-content: center; }
  .hero-kicker::before { display: none; }
  .hero-photo-wrap { order: -1; }
  .hero-photo { width: clamp(150px, 22vh, 240px); }
  .hero-photo-dim { display: none; }
  .hero-photo-frame { inset: -10px 10px 10px -10px; }
  .about-grid, .asset-grid, .cert-grid { grid-template-columns: 1fr; }
  .comp-grid, .why-grid { grid-template-columns: 1fr 1fr; }
  .dots { right: 10px; gap: 11px; }
  .scroll-hint span { display: none; }
}
@media (max-width: 600px) {
  .slide { padding: 84px 18px 70px; }
  .comp-grid, .why-grid, .cert-list, .stats-grid { grid-template-columns: 1fr 1fr; }
  .comp-card p { display: none; }
  .pipeline { gap: 6px; }
  .pipe-step { padding: 8px 10px; }
  .proj-grid { grid-template-columns: 1fr 1fr; }
  .donut-wrap { width: min(240px, 30vh); }
  .hero-name { font-size: clamp(38px, 11vw, 54px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------------- Arabic / RTL ---------------- */
html[lang="ar"] {
  --serif: "Amiri", "Cormorant Garamond", serif;
  --sans: "Tajawal", "Manrope", system-ui, sans-serif;
}
/* letter-spacing breaks connected Arabic script */
[dir="rtl"] .sec-label, [dir="rtl"] .hero-kicker, [dir="rtl"] .hero-roles,
[dir="rtl"] .stat-label, [dir="rtl"] .chip, [dir="rtl"] .pipe-step,
[dir="rtl"] .exp-tab, [dir="rtl"] .exp-period, [dir="rtl"] .btn,
[dir="rtl"] .why-tag, [dir="rtl"] .contact-meta, [dir="rtl"] .chrome-bottom,
[dir="rtl"] .reco-who .stamp, [dir="rtl"] .proj-meta span,
[dir="rtl"] .dock-item .dock-num, [dir="rtl"] .hero-photo-dim,
[dir="rtl"] .menu-overlay a span, [dir="rtl"] .scroll-hint {
  letter-spacing: 0;
}
[dir="rtl"] .hero-name { line-height: 1.25; }
[dir="rtl"] .sec-title { line-height: 1.35; }
[dir="rtl"] .contact-title { line-height: 1.3; }
[dir="rtl"] .exp-sheet::before { right: auto; left: 18px; }
[dir="rtl"] .dim-v { right: auto; left: -14px; border-right: none; border-left: 1px solid rgba(20,33,61,0.2); padding-right: 0; padding-left: 4px; }
[dir="rtl"] .stat-card::after { background: linear-gradient(-90deg, var(--gold), transparent); }
[dir="rtl"] .pipe-arrow { transform: scaleX(-1); }
