/* ============ Tokens ============ */
:root {
  --font-ar: 'IBM Plex Sans Arabic', 'Manrope', system-ui, sans-serif;
  --font-en: 'Manrope', 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --radius: 18px;
  --wrap: 1180px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --gold: #f2b544;
  --gold-2: #ffd27a;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a1226;
  --bg-2: #0d1730;
  --surface: #111c38;
  --surface-2: #16234a;
  --line: rgba(148, 170, 230, .14);
  --text: #eef2fb;
  --muted: #9aa8c7;
  --accent: #5b8cff;
  --accent-2: #8fb0ff;
  --accent-ink: #fff;
  --shadow: 0 18px 50px -20px rgba(0, 0, 0, .7);
  --glass: rgba(10, 18, 38, .72);
  --net: 143, 176, 255;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f7fc;
  --bg-2: #eaf0fb;
  --surface: #ffffff;
  --surface-2: #f0f4fd;
  --line: rgba(20, 40, 90, .12);
  --text: #0e1a36;
  --muted: #55627f;
  --accent: #2357d8;
  --accent-2: #1d47b3;
  --accent-ink: #fff;
  --gold: #c98a12;
  --gold-2: #a86f06;
  --shadow: 0 18px 46px -24px rgba(20, 40, 90, .35);
  --glass: rgba(245, 247, 252, .8);
  --net: 35, 87, 216;
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(76px + env(safe-area-inset-top, 0px)); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-ar);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  overflow-x: hidden;
  transition: background-color .4s, color .4s;
}
html[lang="en"] body { font-family: var(--font-en); line-height: 1.65; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
svg { fill: currentColor; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 10px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: #fff; }
/* Latin credential codes (PMP®, PMI-RMP®) keep their order inside RTL text */
.brand__name small, .orbit span, .cert__seal, .stat b { direction: ltr; unicode-bidi: isolate; }

.progress {
  position: fixed; inset: 0 0 auto; height: 3px; z-index: 60;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  transform: scaleX(0); transform-origin: left;
}
[dir="rtl"] .progress { transform-origin: right; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px; border: 1px solid transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--accent-ink); font-weight: 700; cursor: pointer;
  box-shadow: 0 12px 30px -12px var(--accent);
  transition: transform .3s var(--ease), box-shadow .3s, background .3s;
}
.btn:hover { box-shadow: 0 16px 36px -12px var(--accent); }
.btn svg { width: 18px; flex: none; }
.btn--outline { background: transparent; color: var(--text); border-color: var(--line); box-shadow: none; }
.btn--outline:hover { border-color: var(--accent); color: var(--accent); box-shadow: none; }
.btn--wa { background: #1faa59; box-shadow: 0 12px 30px -14px #1faa59; color: #fff; }
.icon-btn, .lang, .btn-ghost {
  height: 42px; min-width: 42px; border-radius: 999px; border: 1px solid var(--line);
  background: transparent; cursor: pointer; display: inline-grid; place-items: center;
  transition: border-color .25s, color .25s, background .25s, transform .25s;
}
.icon-btn svg { width: 19px; }
.icon-btn:hover, .lang:hover, .btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.lang { font-weight: 800; padding: 0 12px; color: var(--accent); border-color: color-mix(in srgb, var(--accent) 50%, transparent); font-family: var(--font-en); }
.btn-ghost { padding: 0 16px; font-size: .9rem; }
:root[data-theme="dark"] .i-moon, :root[data-theme="light"] .i-sun { display: none; }
#themeBtn svg { animation: spinIn .5s var(--ease); }
@keyframes spinIn { from { transform: rotate(-90deg) scale(.4); opacity: 0; } }

/* ============ Header ============ */
.topbar {
  position: sticky; top: 0; z-index: 50;
  /* Installed on iPhone the page runs under the status bar (viewport-fit=cover), so clear it */
  padding-top: env(safe-area-inset-top, 0px);
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.topbar.scrolled { background: var(--glass); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border-color: var(--line); }
.topbar__in { display: flex; align-items: center; gap: 18px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand__mark, .footer__mark {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(135deg, #0a1226, #1a3270); color: #fff;
  font: 700 1.05rem/1 var(--font-display); letter-spacing: .5px; position: relative;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
}
.brand__mark::after { content: ''; position: absolute; bottom: 8px; width: 14px; height: 2px; border-radius: 2px; background: var(--gold); }
.brand__name { display: grid; line-height: 1.2; }
.brand__name b { font-size: 1.02rem; }
.brand__name small { color: var(--muted); font: 600 .7rem/1.3 var(--font-en); letter-spacing: .5px; }
.nav { display: flex; gap: 4px; margin-inline-start: auto; }
.nav a { padding: 8px 12px; border-radius: 999px; color: var(--muted); font-weight: 500; font-size: .95rem; position: relative; transition: color .2s; }
.nav a::after { content: ''; position: absolute; inset-inline: 12px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--gold); transform: scaleX(0); transition: transform .3s var(--ease); }
.nav a:hover, .nav a.active { color: var(--text); }
.nav a.active::after { transform: scaleX(1); }
.topbar__actions { display: flex; gap: 8px; align-items: center; }
.menu-btn { display: none !important; }
.menu-btn .i-close, .topbar.open .menu-btn .i-menu { display: none; }
.topbar.open .menu-btn .i-close { display: block; }

/* ============ Hero ============ */
.hero { position: relative; min-height: calc(100svh - 72px); display: flex; flex-direction: column; justify-content: center; padding: 40px 0 70px; overflow: hidden; margin-top: calc(-72px - env(safe-area-inset-top, 0px)); padding-top: calc(112px + env(safe-area-inset-top, 0px)); }
.hero__net { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .9; }
.hero__glow { position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 400px at 85% 20%, color-mix(in srgb, var(--accent) 28%, transparent), transparent 70%),
    radial-gradient(500px 360px at 10% 85%, color-mix(in srgb, var(--gold) 16%, transparent), transparent 70%);
  animation: glow 14s ease-in-out infinite alternate;
}
@keyframes glow { to { transform: translate3d(-3%, 2%, 0) scale(1.06); } }
.hero__in { position: relative; display: grid; grid-template-columns: 1.25fr .9fr; gap: 40px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--glass); font-size: .85rem; color: var(--muted); backdrop-filter: blur(6px); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 9px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
.eyebrow { margin: 0; color: var(--gold); font-weight: 700; letter-spacing: .5px; }
html[lang="en"] .eyebrow { text-transform: uppercase; font-size: .85rem; letter-spacing: 2px; }
.hero__title { margin: 6px 0 8px; font-size: clamp(2.8rem, 8vw, 5.4rem); line-height: 1.1; font-weight: 700; letter-spacing: -.5px; }
html[lang="en"] .hero__title { font-family: var(--font-display); font-weight: 800; }
/* Each word animates in on its own wrapper; the gradient text lives on an inner, untransformed span
   (text clipping on an element that is itself transformed/composited can paint nothing in Chrome) */
.split .ch { display: inline-block; opacity: 0; transform: translateY(.6em); animation: chIn .8s var(--ease) calc(var(--i) * 45ms + 150ms) forwards; }
.split .g {
  display: inline-block; padding-bottom: .08em; color: transparent;
  background: linear-gradient(120deg, var(--text) 30%, var(--accent-2) 60%, var(--gold) 90%) 0 0 / 220% 100%;
  -webkit-background-clip: text; background-clip: text;
  animation: sheen 7s ease-in-out 1.2s infinite;
}
@keyframes sheen { 50% { background-position: 100% 0; } }
@keyframes chIn { to { opacity: 1; transform: none; } }
.hero__roles { margin: 0 0 14px; font-size: clamp(1.1rem, 2.6vw, 1.45rem); color: var(--muted); min-height: 1.8em; }
.rotator { color: var(--text); font-weight: 700; position: relative; display: inline-block; }
.rotator::after { content: ''; display: inline-block; width: 2px; height: 1.05em; background: var(--gold); margin-inline-start: 4px; vertical-align: -3px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero__lead { color: var(--muted); max-width: 58ch; font-size: 1.05rem; margin: 0 0 28px; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* Monogram badge with orbiting credentials */
.hero__badge { position: relative; width: min(380px, 80vw); aspect-ratio: 1; justify-self: center; display: grid; place-items: center; }
.monogram {
  width: 46%; aspect-ratio: 1; border-radius: 30%; display: grid; place-items: center; position: relative; z-index: 2;
  background: linear-gradient(140deg, #0a1226, #1b3478 70%, #2e57c4);
  box-shadow: 0 30px 80px -20px rgba(37, 99, 235, .6), inset 0 0 0 1px rgba(255, 255, 255, .14);
  animation: float 6s ease-in-out infinite;
}
.monogram b { font: 700 clamp(3rem, 9vw, 4.6rem)/1 var(--font-display); color: #fff; margin-top: -8%; }
.monogram i { position: absolute; bottom: 22%; width: 30%; height: 5px; border-radius: 4px; background: var(--gold-2); box-shadow: 0 0 16px var(--gold); }
@keyframes float { 50% { transform: translateY(-12px) rotate(-2deg); } }
.orbit { position: absolute; inset: 0; border: 1px dashed var(--line); border-radius: 50%; animation: orbit 22s linear infinite; }
.orbit--2 { inset: 12%; animation-duration: 16s; animation-direction: reverse; }
.orbit--3 { inset: -6%; animation-duration: 30s; border-style: solid; border-color: color-mix(in srgb, var(--accent) 18%, transparent); }
.orbit span {
  position: absolute; top: -14px; left: 50%; translate: -50% 0;
  padding: 4px 12px; border-radius: 999px; font: 700 .8rem/1.6 var(--font-en); white-space: nowrap;
  background: var(--surface); border: 1px solid var(--line); color: var(--text); box-shadow: var(--shadow);
  animation: orbit 22s linear infinite reverse;
}
.orbit--2 span { animation-duration: 16s; animation-direction: normal; color: var(--gold); }
.orbit--3 span { top: auto; bottom: -14px; animation-duration: 30s; color: var(--accent); }
@keyframes orbit { to { rotate: 360deg; } }

.stats { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 56px; }
.stat { padding: 18px 20px; border-radius: var(--radius); background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(8px); }
.stat b { display: block; font: 800 clamp(1.8rem, 4vw, 2.5rem)/1.1 var(--font-en); color: var(--text); }
.stat b em { font-style: normal; color: var(--gold); }
.stat > span { color: var(--muted); font-size: .9rem; }
.scroll-cue { position: absolute; bottom: 18px; left: 50%; translate: -50% 0; width: 26px; height: 42px; border: 2px solid var(--line); border-radius: 14px; display: grid; justify-items: center; padding-top: 7px; }
.scroll-cue span { width: 4px; height: 8px; border-radius: 4px; background: var(--gold); animation: cue 1.8s infinite; }
@keyframes cue { 60% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* ============ Sections ============ */
.section { padding: 100px 0; position: relative; }
.section--alt { background: var(--bg-2); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head--start { text-align: start; margin: 0; }
.kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 8px; color: var(--gold); font-weight: 700; font-size: .9rem; letter-spacing: .5px; }
html[lang="en"] .kicker { text-transform: uppercase; letter-spacing: 2px; font-size: .78rem; }
.kicker::before { content: ''; width: 26px; height: 2px; border-radius: 2px; background: currentColor; }
.section-head h2 { margin: 0 0 10px; font-size: clamp(1.7rem, 4vw, 2.6rem); line-height: 1.25; }
html[lang="en"] .section-head h2 { font-family: var(--font-display); letter-spacing: -.3px; }
.section-head p { color: var(--muted); margin: 0; }

/* About */
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.about .section-head { position: sticky; top: 110px; }
.about__body p { margin: 0 0 18px; color: var(--muted); font-size: 1.05rem; }
.about__body p:first-child { color: var(--text); font-size: 1.18rem; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
.facts div { padding: 16px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.facts small { display: block; color: var(--gold); font-weight: 700; font-size: .78rem; }
.facts b { font-weight: 600; font-size: .95rem; }

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pillar {
  position: relative; padding: 26px 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  overflow: hidden; transition: transform .4s var(--ease), border-color .3s, box-shadow .4s;
}
.pillar::before { content: ''; position: absolute; inset: 0; background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.pillar:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--accent) 45%, transparent); box-shadow: var(--shadow); }
.pillar:hover::before { opacity: 1; }
.pillar__ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 16px; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.pillar__ic svg { width: 26px; }
.pillar h3 { margin: 0 0 8px; font-size: 1.15rem; }
.pillar p { margin: 0 0 14px; color: var(--muted); font-size: .93rem; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span { font-size: .76rem; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); }

/* Approach steps */
.approach { margin-top: 64px; }
.approach h3 { text-align: center; margin: 0 0 30px; font-size: 1.3rem; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; position: relative; counter-reset: s; }
.steps::before { content: ''; position: absolute; top: 27px; inset-inline: 10%; height: 2px; background: var(--line); }
.steps::after { content: ''; position: absolute; top: 27px; inset-inline-start: 10%; width: 80%; height: 2px; background: linear-gradient(90deg, var(--accent), var(--gold)); transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease) .2s; }
[dir="rtl"] .steps::after { transform-origin: right; background: linear-gradient(270deg, var(--accent), var(--gold)); }
.steps.in::after { transform: scaleX(1); }
.step { text-align: center; position: relative; z-index: 1; }
.step__n { width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 14px; display: grid; place-items: center; background: var(--surface); border: 2px solid var(--line); font: 800 1.1rem var(--font-en); color: var(--accent); transition: border-color .4s, background .4s, color .4s, transform .4s var(--ease); }
.steps.in .step__n { border-color: var(--accent); }
.step:hover .step__n { background: var(--accent); color: #fff; transform: scale(1.08); }
.step h4 { margin: 0 0 6px; font-size: 1.05rem; }
.step p { margin: 0; color: var(--muted); font-size: .88rem; }

/* Timeline */
.timeline { position: relative; display: grid; gap: 26px; padding-inline-start: 40px; }
.timeline__line { position: absolute; inset-inline-start: 11px; top: 8px; bottom: 8px; width: 2px; background: var(--line); border-radius: 2px; }
.timeline__line i { position: absolute; inset: 0 0 auto; height: 100%; background: linear-gradient(var(--gold), var(--accent)); transform: scaleY(0); transform-origin: top; border-radius: 2px; }
.job { position: relative; padding: 24px 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: border-color .3s, box-shadow .3s; }
.job:hover { border-color: color-mix(in srgb, var(--accent) 40%, transparent); box-shadow: var(--shadow); }
.job::before { content: ''; position: absolute; inset-inline-start: -36px; top: 28px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 3px solid var(--accent); }
.job--current::before { border-color: var(--gold); box-shadow: 0 0 0 6px color-mix(in srgb, var(--gold) 22%, transparent); }
.job__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; align-items: baseline; }
.job h3 { margin: 0; font-size: 1.18rem; }
.job__org { color: var(--accent); font-weight: 600; }
.job__meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--muted); font-size: .86rem; }
.job__now { padding: 2px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; background: color-mix(in srgb, var(--gold) 18%, transparent); color: var(--gold); }
.job ul { margin: 14px 0 0; padding-inline-start: 18px; color: var(--muted); font-size: .95rem; }
.job li { margin-bottom: 4px; }
.job li::marker { color: var(--gold); }
.job__toggle { margin-top: 10px; background: none; border: 0; color: var(--accent); font-weight: 700; cursor: pointer; padding: 0; font-size: .9rem; }
.job ul.collapsed li:nth-child(n + 3) { display: none; }
.earlier { margin-top: 56px; }
.earlier h3 { margin: 0 0 18px; font-size: 1.2rem; text-align: center; }
.earlier__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.earlier__item { padding: 16px; border-radius: 14px; border: 1px dashed var(--line); background: var(--surface); }
.earlier__item b { display: block; font-size: .95rem; }
.earlier__item span { color: var(--muted); font-size: .84rem; display: block; }
.earlier__item em { font-style: normal; font: 700 .8rem var(--font-en); color: var(--gold); }

/* Certifications */
.certs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cert {
  position: relative; padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s; transform-style: preserve-3d;
}
.cert:hover { box-shadow: var(--shadow); }
.cert__seal { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; text-align: center; font: 800 .72rem/1.1 var(--font-en); color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); border: 2px solid color-mix(in srgb, var(--accent) 35%, transparent); padding: 4px; }
.cert--featured { background: linear-gradient(140deg, #0a1226, #1b3478); border-color: rgba(255, 255, 255, .1); color: #fff; }
.cert--featured .cert__seal { color: var(--gold-2); background: rgba(242, 181, 68, .12); border-color: rgba(242, 181, 68, .55); }
.cert--featured small { color: #b9c6e8 !important; }
.cert--featured::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, .14) 50%, transparent 60%); transform: translateX(-100%); animation: shine 5s ease-in-out infinite; }
@keyframes shine { 30%, 100% { transform: translateX(100%); } }
.cert h3 { margin: 0 0 2px; font-size: 1.02rem; line-height: 1.4; }
.cert small { color: var(--muted); font-size: .84rem; }

.skills { margin-top: 56px; }
.skills__tabs { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 22px; }
.skills__tab { padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-weight: 600; transition: all .25s; }
.skills__tab[aria-selected="true"] { background: var(--accent); color: #fff; border-color: var(--accent); }
.skills__panel { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; min-height: 100px; }
.skills__panel span { padding: 10px 18px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-weight: 500; animation: pop .45s var(--ease) backwards; animation-delay: calc(var(--i) * 35ms); }
.skills__panel span:hover { border-color: var(--gold); color: var(--gold); }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.9); } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.contact-card {
  display: flex; align-items: center; gap: 16px; padding: 20px; border-radius: var(--radius); text-align: start;
  background: var(--surface); border: 1px solid var(--line); cursor: pointer;
  transition: transform .35s var(--ease), border-color .3s, box-shadow .35s;
}
.contact-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 45%, transparent); box-shadow: var(--shadow); }
.contact-card__ic { width: 50px; height: 50px; flex: none; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); transition: background .3s, color .3s; }
.contact-card:hover .contact-card__ic { background: var(--accent); color: #fff; }
.contact-card svg { width: 24px; }
.contact-card b { display: block; font-size: 1.02rem; }
.contact-card small { color: var(--muted); font-size: .86rem; }

/* Footer */
.footer { padding: 48px 0 40px; text-align: center; border-top: 1px solid var(--line); color: var(--muted); }
.footer__mark { margin: 0 auto 14px; width: 54px; height: 54px; font-size: 1.3rem; }
.footer p { margin: 4px 0; font-size: .92rem; }
.credit { font-size: .85rem; }
.credit a { color: var(--accent); font-weight: 700; transition: color .2s; }
.credit a:hover { color: var(--gold); }

/* ============ Share sheet & toast ============ */
.sheet { border: 1px solid var(--line); border-radius: 22px; padding: 0; background: var(--surface); color: var(--text); width: min(440px, 100% - 24px); max-height: 92vh; overflow: auto; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.sheet::backdrop { background: rgba(5, 10, 25, .7); backdrop-filter: blur(4px); }
.sheet[open] { animation: sheetIn .35s var(--ease); }
@keyframes sheetIn { from { opacity: 0; transform: translateY(40px) scale(.97); } }
.sheet__close { position: absolute; top: 12px; inset-inline-end: 12px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface-2); cursor: pointer; }
.share__body { padding: 30px 22px 24px; text-align: center; }
.share__body h3 { margin: 0 0 6px; font-size: 1.4rem; }
.share__body > p { color: var(--muted); margin: 0 0 18px; font-size: .95rem; }
.share__qr { width: min(240px, 70vw); margin: 0 auto 14px; padding: 12px; background: #fff; border-radius: 18px; box-shadow: var(--shadow); }
.share__qr img { width: 100%; height: auto; border-radius: 10px; }
.share__url { display: block; margin: 0 auto 18px; padding: 6px 14px; border-radius: 999px; border: 1px dashed var(--line); background: transparent; color: var(--accent); font: 700 .95rem var(--font-en); cursor: pointer; }
.share__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.share__actions .btn { padding: 11px 14px; font-size: .92rem; white-space: nowrap; }
.share__actions #nativeShare:not([hidden]) { grid-column: 1 / -1; }
@media (max-width: 360px) { .share__actions { grid-template-columns: 1fr; } }
.toast { position: fixed; bottom: 90px; left: 50%; translate: -50% 0; z-index: 90; padding: 10px 18px; border-radius: 999px; background: var(--text); color: var(--bg); font-weight: 600; font-size: .9rem; box-shadow: var(--shadow); animation: sheetIn .3s var(--ease); white-space: nowrap; }
.toast[hidden] { display: none; }

/* Mobile tab bar */
.tabbar { display: none; }

/* ============ Reveal ============ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }

/* ============ Responsive ============ */
@media (max-width: 1080px) {
  .topbar__actions { margin-inline-start: auto; }
  .menu-btn { display: inline-grid !important; }
  .topbar.open { background: var(--glass); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border-color: var(--line); }
  /* The header links become a dropdown panel under the bar */
  .nav {
    position: absolute; top: calc(100% + 8px); inset-inline: 16px; flex-direction: column; gap: 2px; padding: 8px;
    background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .25s var(--ease), visibility .25s;
  }
  .topbar.open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav a { padding: 12px 16px; border-radius: 12px; font-size: 1rem; }
  .nav a::after { display: none; }
  .nav a.active { background: var(--surface-2); color: var(--accent); }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .earlier__grid { grid-template-columns: repeat(2, 1fr); }
  .certs, .contact-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .hero__in { grid-template-columns: 1fr; text-align: center; }
  .hero__lead { margin-inline: auto; }
  .hero__cta { justify-content: center; }
  .hero__badge { width: min(230px, 56vw); order: -1; margin-bottom: 6px; }
  .orbit span { font-size: .7rem; padding: 2px 10px; }
  .stats { grid-template-columns: repeat(2, 1fr); margin-top: 36px; }
  .scroll-cue { display: none; }
  .about { grid-template-columns: 1fr; gap: 24px; }
  .about .section-head { position: static; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps::before, .steps::after { inset-inline-start: 27px; top: 28px; bottom: 28px; width: 2px; height: auto; }
  .steps::after { transform: scaleY(0); transform-origin: top !important; background: linear-gradient(var(--accent), var(--gold)) !important; }
  .steps.in::after { transform: scaleY(1); }
  .step { display: grid; grid-template-columns: 56px 1fr; gap: 0 16px; text-align: start; padding-bottom: 18px; }
  .step__n { grid-row: span 2; margin: 0; }
  .step h4 { align-self: end; }
}
@media (max-width: 640px) {
  html { scroll-padding-top: calc(64px + env(safe-area-inset-top, 0px)); }
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .section { padding: 72px 0; }
  .topbar__in { height: 64px; gap: 10px; }
  .hero { margin-top: calc(-64px - env(safe-area-inset-top, 0px)); padding-top: calc(96px + env(safe-area-inset-top, 0px)); }
  .brand__name small { display: none; }
  .btn-ghost { display: none; }
  .pillars, .certs, .contact-grid, .facts { grid-template-columns: 1fr; }
  .earlier__grid { grid-template-columns: 1fr 1fr; }
  .timeline { padding-inline-start: 28px; }
  .timeline__line { inset-inline-start: 5px; }
  .job { padding: 20px; }
  .job::before { inset-inline-start: -30px; }
  .tabbar {
    display: flex; position: fixed; inset: auto 0 0; z-index: 55; justify-content: space-around;
    padding: 8px 4px calc(8px + env(safe-area-inset-bottom));
    background: var(--glass); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
    border-top: 1px solid var(--line);
  }
  .tabbar a { display: grid; justify-items: center; gap: 2px; font-size: .7rem; color: var(--muted); padding: 2px 6px; transition: color .2s; }
  .tabbar svg { width: 22px; height: 22px; transition: transform .3s var(--ease); }
  .tabbar a.active { color: var(--accent); }
  .tabbar a.active svg { transform: translateY(-2px); }
  .toast { bottom: calc(84px + env(safe-area-inset-bottom)); }
  .sheet { margin: auto auto 0; border-radius: 22px 22px 0 0; width: 100%; max-width: 100%; }
}
@media (max-width: 380px) {
  .earlier__grid { grid-template-columns: 1fr; }
  .stat { padding: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .split .ch { opacity: 1; transform: none; }
}

@media print {
  .topbar, .tabbar, .hero__net, .hero__badge, .scroll-cue, .sheet, .toast { display: none !important; }
  .reveal { opacity: 1; transform: none; }
}
