/* ============================================================
   Mohamed Elmojtaba — Enterprise Software Architect
   v2 — editorial dark, Clash Display + Satoshi
   ============================================================ */

:root {
  --bg: #060509;
  --bg-2: #0b0911;
  --panel: rgba(255, 255, 255, 0.03);
  --line: rgba(255, 255, 255, 0.1);
  --line-soft: rgba(255, 255, 255, 0.06);
  --ink: #f5f3fa;
  --muted: #a09aae;
  --violet: #a78bfa;
  --violet-deep: #7c3aed;
  --cyan: #6ee7f3;
  --brand-dot: #e2264d;
  --grad: linear-gradient(94deg, #a78bfa 0%, #6ee7f3 100%);
  --display: "Clash Display", "Arial Narrow", sans-serif;
  --body: "Satoshi", "Helvetica Neue", sans-serif;
  --radius: 22px;
  --container: 1240px;
  --nav-h: 84px;
}

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

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

::selection { background: var(--violet-deep); color: #fff; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #271f38; border-radius: 8px; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
i { font-style: normal; }

.container { width: min(var(--container), calc(100% - 48px)); margin-inline: auto; }
.container-wide { width: min(1440px, calc(100% - clamp(48px, 7vw, 128px))); margin-inline: auto; }

/* ---------- Grain ---------- */
.noise {
  position: fixed; inset: -50%;
  width: 200%; height: 200%;
  pointer-events: none;
  z-index: 2000;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Cursor ---------- */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 3000;
  transform: translate(-50%, -50%);
}
.cursor-dot { width: 6px; height: 6px; background: var(--cyan); }
.cursor-ring {
  width: 40px; height: 40px;
  border: 1px solid rgba(167, 139, 250, 0.6);
  transition: width 0.25s ease, height 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
body.cursor-hover .cursor-ring {
  width: 70px; height: 70px;
  border-color: transparent;
  background: rgba(167, 139, 250, 0.12);
  backdrop-filter: blur(2px);
}
@media (hover: none), (pointer: coarse) { .cursor-dot, .cursor-ring { display: none; } }

/* ---------- Loader ---------- */
#loader {
  position: fixed; inset: 0;
  background: var(--bg);
  z-index: 5000;
  overflow: hidden;
}
.loader-center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  text-align: center;
}
.loader-hello {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.6rem, 4.5vw, 2.8rem);
  letter-spacing: 0.01em;
}
.loader-hello span { color: var(--brand-dot); }
.loader-role {
  color: var(--muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.34em;
}
.loader-count {
  position: absolute; right: 4vw; bottom: 2vh;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(5rem, 16vw, 12rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(245, 243, 250, 0.35);
  font-variant-numeric: tabular-nums;
}
.loader-bar {
  position: absolute; left: 0; bottom: 0;
  height: 3px; width: 0%;
  background: var(--grad);
}

/* ---------- Header ---------- */
#site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
#site-header.scrolled {
  background: rgba(6, 5, 9, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--line-soft);
}
#site-header.hidden { transform: translateY(-100%); }
.nav-inner {
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
}
.logo {
  font-family: var(--display);
  font-weight: 700; font-size: 1.45rem; letter-spacing: 0;
}
.logo span { color: var(--brand-dot); }

.nav-links { display: flex; gap: 26px; }
.nav-link {
  font-size: 0.86rem; font-weight: 500; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 6px 0;
  position: relative;
  transition: color 0.25s ease;
}
.nav-link span {
  font-size: 0.62rem;
  color: var(--violet);
  vertical-align: super;
  margin-right: 2px;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--grad);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-link:hover, .nav-link.active { color: var(--ink); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); transform-origin: left; }

.nav-right { display: flex; align-items: center; gap: 26px; }
.nav-time {
  font-size: 0.78rem; color: var(--muted);
  letter-spacing: 0.14em;
  font-variant-numeric: tabular-nums;
}
.nav-time span { color: var(--ink); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 0.88rem;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid var(--line);
  transition: border-color 0.3s ease, background 0.3s ease, color 0.3s ease;
  will-change: transform;
}
.nav-cta i { transition: transform 0.3s ease; }
.nav-cta:hover { border-color: var(--violet); background: rgba(124, 58, 237, 0.12); }
.nav-cta:hover i { transform: translateX(4px); }

.burger {
  display: none;
  width: 46px; height: 46px;
  background: transparent; border: 1px solid var(--line); border-radius: 50%;
  cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.burger span {
  display: block; width: 18px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: transform 0.35s ease;
}
body.menu-open .burger span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
body.menu-open .burger span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Mobile menu ---------- */
#mobile-menu {
  position: fixed; inset: 0;
  background: rgba(6, 5, 9, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 900;
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 52px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
body.menu-open #mobile-menu { opacity: 1; visibility: visible; }
.mm-links { display: flex; flex-direction: column; gap: 6px; }
.mm-link {
  font-family: var(--display);
  font-size: clamp(2.2rem, 9vw, 3.4rem);
  font-weight: 600;
  letter-spacing: 0;
  display: flex; align-items: baseline; gap: 16px;
  padding: 4px 10px;
  transition: color 0.25s ease, transform 0.25s ease;
}
.mm-link em { font-style: normal; font-size: 0.85rem; color: var(--violet); font-family: var(--body); }
.mm-link:hover { color: var(--violet); transform: translateX(8px); }
.mm-foot { text-align: center; color: var(--muted); font-size: 0.85rem; display: grid; gap: 4px; }
.mm-foot a { color: var(--ink); }

/* ---------- Buttons ---------- */
.btn-pill {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 34px;
  border-radius: 999px;
  font-weight: 700; font-size: 0.95rem;
  background: var(--grad);
  color: #0a0714;
  transition: box-shadow 0.3s ease, filter 0.3s ease;
  box-shadow: 0 10px 36px rgba(124, 58, 237, 0.35);
  will-change: transform;
}
.btn-pill:hover { filter: brightness(1.08); box-shadow: 0 14px 48px rgba(110, 231, 243, 0.3); }
.btn-pill.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: none;
}
.btn-pill.ghost:hover { border-color: var(--violet); color: var(--violet); }
.btn-pill i { margin-left: 8px; transition: transform 0.3s ease; }
.btn-pill:hover i { transform: translateY(3px); }

.btn-round {
  width: 128px; height: 128px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  text-align: center;
  font-family: var(--display);
  font-weight: 600; font-size: 0.95rem; line-height: 1.15;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(6px);
  transition: background 0.35s ease, border-color 0.35s ease;
  will-change: transform;
}
.btn-round i { font-size: 1.3rem; color: var(--cyan); transition: transform 0.35s ease; }
.btn-round:hover { background: rgba(124, 58, 237, 0.16); border-color: var(--violet); }
.btn-round:hover i { transform: translateY(5px); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: clip;
  background: var(--bg);
}
#hero-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: 0;
  transition: opacity 1.8s ease;
}
#hero-canvas.on { opacity: 1; }
.hero-vignette {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 50% 110%, transparent 40%, rgba(6, 5, 9, 0.8) 100%),
    linear-gradient(to bottom, rgba(6, 5, 9, 0.55), transparent 30%, transparent 72%, rgba(6, 5, 9, 0.9));
  pointer-events: none;
}
/* NOTE: the hero frame must NOT be a flex item of a row-flex parent —
   `flex: 1` zeroes the basis and stretches it full-bleed, killing the
   side margins. The hero is a plain block; the frame sizes itself. */
.hero-frame {
  position: relative; z-index: 2;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: calc(var(--nav-h) + 16px);
  padding-bottom: 26px;
  width: min(1440px, calc(100% - clamp(48px, 7vw, 128px)));
  margin-inline: auto;
}
.hero-meta {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 24px;
  margin-bottom: clamp(16px, 3vh, 36px);
  font-size: 0.86rem;
}
.hm-left {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
}
.hm-left .dot, .contact-kicker .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 14px #34d399;
  display: inline-block;
}
.hm-right { text-align: right; color: var(--muted); line-height: 1.5; }

.hero-title {
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  font-size: clamp(3.4rem, 11vw, 10rem);
  line-height: 0.94;
  letter-spacing: -0.015em;
  display: grid;
  margin-bottom: clamp(22px, 4vh, 44px);
}
.ht-line { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.ht-line > span { display: inline-block; will-change: transform; }
.ht-indent { padding-left: clamp(28px, 8vw, 150px); }
.ht-stroke {
  color: transparent;
  -webkit-text-stroke: 2px rgba(245, 243, 250, 0.75);
}
.ht-grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.ht-mark {
  font-size: 0.16em;
  vertical-align: top;
  color: var(--muted);
  -webkit-text-fill-color: var(--muted);
  margin-left: 0.4em;
  letter-spacing: 0;
}

.hero-foot {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 40px;
  margin-bottom: clamp(14px, 3vh, 32px);
}
.hero-desc {
  max-width: 46ch;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
}
.hero-desc strong { color: var(--ink); }
.hero-cta-wrap { flex-shrink: 0; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line-soft);
}
.stat {
  padding: 16px 26px 2px 0;
  border-right: 1px solid var(--line-soft);
}
.stat:last-child { border-right: 0; }
.stat-top {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  line-height: 1.1;
  display: block;
}
.stat-top i { color: var(--cyan); padding: 0 2px; }
.stat-top sup { font-size: 0.5em; }
.stat-wide .stat-top { font-size: clamp(1.1rem, 1.8vw, 1.55rem); padding-top: 0.45em; }
.stat-num { font-weight: 600; }
.stat-label { color: var(--muted); font-size: 0.82rem; display: block; margin-top: 6px; }

/* ---------- Marquee ---------- */
.marquee-band {
  border-block: 1px solid var(--line-soft);
  background: var(--bg-2);
  padding: 22px 0;
  overflow: clip;
}
.marquee { display: flex; width: max-content; animation: marquee 30s linear infinite; }
.marquee-track { display: flex; align-items: center; }
.marquee-track li {
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  font-size: clamp(1.2rem, 2.6vw, 2rem);
  letter-spacing: 0.02em;
  color: rgba(245, 243, 250, 0.32);
  padding: 0 38px;
  position: relative;
  white-space: nowrap;
  transition: color 0.3s ease;
}
.marquee-track li:hover { color: var(--ink); }
.marquee-track li::after {
  content: "✦"; position: absolute; right: -10px; top: 50%;
  transform: translateY(-50%);
  color: var(--violet-deep); font-size: 0.85rem;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections / headers ---------- */
.section { padding: clamp(96px, 13vw, 170px) 0; position: relative; }
.section-alt { background: var(--bg-2); border-block: 1px solid rgba(255, 255, 255, 0.04); }

.sec-head {
  display: flex; align-items: flex-end; gap: clamp(18px, 3.5vw, 44px);
  margin-bottom: clamp(48px, 7vw, 84px);
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: clamp(22px, 3vw, 36px);
}
.sec-idx {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(4rem, 11vw, 9rem);
  line-height: 0.78;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(167, 139, 250, 0.4);
  flex-shrink: 0;
}
.sec-head-txt { display: grid; gap: 12px; }
.sec-tag {
  font-size: 0.76rem; font-weight: 700;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--cyan);
}
.sec-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2rem, 5.2vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}
.about-copy .lead {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  line-height: 1.25;
  margin-bottom: 30px;
}
.about-copy .lead em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.about-copy p:not(.lead) { color: var(--muted); margin-bottom: 20px; max-width: 58ch; }
.about-copy strong { color: var(--ink); }
.about-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }

.about-side { display: grid; gap: 22px; }
.profile-card {
  position: relative;
  border: 1px solid rgba(167, 139, 250, 0.3);
  border-radius: calc(var(--radius) + 4px);
  background: linear-gradient(165deg, rgba(124, 58, 237, 0.13), rgba(255, 255, 255, 0.02) 55%);
  padding: 30px 32px;
  overflow: hidden;
}
.profile-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad);
}
.pc-head {
  display: flex; align-items: center; gap: 18px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-soft);
}
.pc-badge {
  font-family: var(--display);
  font-weight: 700;
  font-size: 2.1rem;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.pc-badge sup { font-size: 0.45em; }
.pc-badge-info { font-size: 0.78rem; color: var(--muted); line-height: 1.5; }

.facts li {
  display: grid; grid-template-columns: 110px 1fr; gap: 14px;
  padding: 13px 2px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.92rem;
  align-items: baseline;
}
.profile-card .facts li:last-child { border-bottom: 0; padding-bottom: 4px; }
.facts span { color: var(--muted); text-transform: uppercase; font-size: 0.72rem; letter-spacing: 0.18em; }
.facts b { font-weight: 700; }

/* ---------- Expertise rows ---------- */
.svc-list { border-top: 1px solid var(--line-soft); }
.svc-row {
  position: relative;
  display: grid;
  grid-template-columns: 80px minmax(0, 5fr) minmax(0, 6fr) 60px;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  padding: clamp(26px, 3.4vw, 40px) 18px;
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
  cursor: default;
}
.svc-row::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--grad);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 0;
}
.svc-row:hover::before { transform: scaleY(1); transform-origin: top; }
.svc-row > * { position: relative; z-index: 1; transition: color 0.3s ease, -webkit-text-stroke-color 0.3s ease; }
.svc-idx {
  font-family: var(--display);
  font-weight: 600; font-size: 1rem;
  color: var(--violet);
}
.svc-row h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.3rem, 2.6vw, 2rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.svc-row p { color: var(--muted); font-size: 0.95rem; max-width: 52ch; }
.svc-arrow {
  font-size: 1.6rem;
  color: var(--violet);
  justify-self: end;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), color 0.3s ease;
}
.svc-row:hover .svc-idx,
.svc-row:hover h3,
.svc-row:hover p,
.svc-row:hover .svc-arrow { color: #0a0714; }
.svc-row:hover .svc-arrow { transform: translateX(10px) rotate(-45deg); }

.stack-belt {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: clamp(44px, 6vw, 70px);
}
.stack-group {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 26px 28px;
}
.stack-group h4 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 12px;
}
.stack-group p { color: var(--muted); font-size: 0.92rem; line-height: 1.8; }

/* ---------- Timeline ---------- */
.timeline { position: relative; max-width: 860px; padding-left: 46px; }
.tl-line {
  position: absolute; left: 8px; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--violet), var(--cyan));
  transform-origin: top;
  border-radius: 2px;
}
.tl-item { position: relative; padding-bottom: 58px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot {
  position: absolute; left: -45px; top: 10px;
  width: 17px; height: 17px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--violet);
  box-shadow: 0 0 20px rgba(167, 139, 250, 0.55);
}
.tl-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.tl-role {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  letter-spacing: -0.01em;
}
.tl-date {
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: #0a0714;
  background: var(--grad);
  padding: 5px 14px;
  border-radius: 999px;
}
.tl-org { color: var(--violet); font-weight: 700; font-size: 0.96rem; margin: 8px 0 12px; }
.tl-desc { color: var(--muted); max-width: 62ch; }

/* ---------- Work / stack cards ---------- */
.stack { display: grid; gap: 26px; }
.stack-card {
  position: sticky;
  top: calc(var(--nav-h) + 12px + var(--i) * 26px);
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(24px, 4vw, 60px);
  background: linear-gradient(150deg, #131022 0%, #0b0911 55%);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(30px, 4.5vw, 60px);
  min-height: 420px;
  align-items: center;
  will-change: transform;
  box-shadow: 0 -18px 60px rgba(0, 0, 0, 0.4);
}
.sc-num {
  font-family: var(--display);
  font-weight: 700; font-size: 0.95rem;
  letter-spacing: 0.3em;
  color: var(--cyan);
  display: block;
  margin-bottom: 18px;
}
.sc-body h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.7rem, 3.6vw, 2.9rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
}
.sc-body p { color: var(--muted); max-width: 56ch; margin-bottom: 24px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-size: 0.74rem; font-weight: 700;
  letter-spacing: 0.06em;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.14);
  border: 1px solid rgba(167, 139, 250, 0.32);
  color: var(--violet);
}
.sc-visual {
  position: relative;
  border-radius: var(--radius);
  min-height: clamp(220px, 30vw, 340px);
  overflow: hidden;
  display: grid; place-items: center;
  border: 1px solid var(--line);
}
.sc-visual > span:not(.sc-play) {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.6rem, 6vw, 5rem);
  letter-spacing: 0.02em;
  color: rgba(245, 243, 250, 0.92);
  text-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}
.sc-visual > span:not(.sc-play) i { color: rgba(245, 243, 250, 0.55); padding: 0 6px; }
.v-migration { background: radial-gradient(140% 120% at 20% 15%, rgba(124, 58, 237, 0.55), transparent 55%), radial-gradient(120% 110% at 85% 90%, rgba(110, 231, 243, 0.4), transparent 55%), #0e0b18; }
.v-verse { background: radial-gradient(140% 120% at 75% 12%, rgba(52, 211, 153, 0.42), transparent 55%), radial-gradient(130% 120% at 18% 92%, rgba(124, 58, 237, 0.45), transparent 60%), #0e0b18; }
.v-school { background: radial-gradient(140% 120% at 80% 10%, rgba(110, 231, 243, 0.45), transparent 55%), radial-gradient(130% 120% at 15% 95%, rgba(124, 58, 237, 0.5), transparent 60%), #0e0b18; }
.v-uni { background: radial-gradient(150% 130% at 50% 0%, rgba(167, 139, 250, 0.42), transparent 60%), radial-gradient(110% 100% at 90% 100%, rgba(255, 184, 108, 0.22), transparent 55%), #0e0b18; }

.sc-link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 22px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700; font-size: 0.9rem;
  background: var(--grad);
  color: #0a0714;
  box-shadow: 0 10px 32px rgba(52, 211, 153, 0.25);
  transition: filter 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
}
.sc-link:hover { filter: brightness(1.08); box-shadow: 0 14px 44px rgba(110, 231, 243, 0.32); }
.sc-link i { transition: transform 0.3s ease; }
.sc-link:hover i { transform: translate(3px, -3px); }
.sc-visual::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}
a.sc-visual { cursor: pointer; }
.sc-play {
  position: absolute; left: 18px; bottom: 18px;
  z-index: 2;
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--body);
  font-weight: 700; font-size: 0.82rem; letter-spacing: 0.02em;
  color: var(--ink);
  background: rgba(8, 6, 13, 0.68);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  padding: 9px 18px 9px 10px;
  border-radius: 999px;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.sc-play i {
  display: grid; place-items: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--grad);
  color: #0a0714;
  font-size: 0.62rem;
  padding-left: 2px;
}
a.sc-visual:hover .sc-play {
  transform: translateY(-3px);
  border-color: var(--violet);
  background: rgba(124, 58, 237, 0.28);
}

.client-wall { margin-top: clamp(54px, 7vw, 84px); }
.client-wall h4 {
  font-family: var(--display);
  font-weight: 600; font-size: 0.85rem;
  letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 22px;
}
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip {
  font-weight: 700; font-size: 0.92rem;
  padding: 11px 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  transition: border-color 0.25s ease, color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}
.chip:hover { border-color: var(--cyan); color: var(--cyan); transform: translateY(-3px); background: rgba(110, 231, 243, 0.06); }
.chip i {
  color: var(--violet);
  font-size: 0.74em;
  font-weight: 700;
  margin-left: 7px;
  letter-spacing: 0.06em;
}
.chip-more { color: var(--muted); border-style: dashed; }

/* ---------- Credentials ---------- */
.creds-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.cred-card {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 24px;
  display: grid; align-content: space-between; gap: 14px;
  min-height: 168px;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease, background 0.3s ease;
}
.cred-card:hover { transform: translateY(-6px); border-color: rgba(167, 139, 250, 0.5); background: rgba(124, 58, 237, 0.07); }
.cred-card.featured {
  grid-column: span 2;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.22), rgba(110, 231, 243, 0.07));
  border-color: rgba(167, 139, 250, 0.45);
}
.cred-card.featured.alt {
  background: linear-gradient(135deg, rgba(110, 231, 243, 0.16), rgba(124, 58, 237, 0.08));
}
.cred-org {
  font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--cyan);
}
.cred-name {
  font-family: var(--display);
  font-weight: 600; font-size: 1.06rem; line-height: 1.22;
  letter-spacing: 0;
}
.cred-card.featured .cred-name { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.cred-date { font-size: 0.8rem; color: var(--muted); }

/* ---------- Quote ---------- */
.quote-sec { padding-block: clamp(110px, 15vw, 200px); }
.quote { max-width: 1000px; margin-inline: auto; text-align: center; }
.quote blockquote {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.6rem, 4vw, 3rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 38px;
}
.quote blockquote::before { content: "“"; color: var(--violet); }
.quote blockquote::after { content: "”"; color: var(--violet); }
.q-w { display: inline-block; }
.quote figcaption strong { display: block; font-size: 1.05rem; }
.quote figcaption span { color: var(--muted); font-size: 0.86rem; }

/* ---------- Education ---------- */
.edu-sec { padding-block: clamp(64px, 8vw, 100px); }
.edu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.edu-card {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 32px 34px;
  background: var(--panel);
}
.edu-card .sec-tag { display: block; margin-bottom: 14px; }
.edu-card h3 {
  font-family: var(--display);
  font-weight: 600; font-size: clamp(1.15rem, 2vw, 1.45rem); line-height: 1.25;
  margin-bottom: 10px;
}
.edu-card p { color: var(--muted); font-size: 0.95rem; }
.edu-extra { margin-top: 6px; font-size: 0.85rem !important; color: rgba(160, 154, 174, 0.75) !important; }

/* ---------- Contact ---------- */
.contact-sec { padding-bottom: clamp(70px, 9vw, 120px); }
.contact-kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.22em; font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 26px;
}
.mega-link {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(4rem, 17vw, 15rem);
  line-height: 0.9;
  letter-spacing: -0.015em;
  margin-bottom: clamp(40px, 7vw, 80px);
}
.ml-line { display: block; transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
.ml-grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-left: clamp(22px, 6vw, 110px);
}
.ml-arrow {
  display: inline-block;
  -webkit-text-fill-color: var(--ink);
  font-size: 0.55em;
  vertical-align: 0.16em;
  margin-left: 0.18em;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.mega-link:hover .ml-line { transform: translateX(clamp(8px, 2vw, 30px)); }
.mega-link:hover .ml-arrow { transform: translateX(0.18em) rotate(-45deg); }

.contact-rows { border-top: 1px solid var(--line-soft); max-width: 860px; }
.contact-rows li {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  align-items: baseline;
  padding: 17px 4px;
  border-bottom: 1px solid var(--line-soft);
}
.contact-rows span {
  color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.72rem; font-weight: 700;
}
.contact-rows a, .contact-rows b {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1rem, 2vw, 1.3rem);
  overflow-wrap: anywhere;
  transition: color 0.25s ease;
}
.contact-rows a:hover { color: var(--cyan); }
.contact-rows a i { color: var(--violet); font-size: 0.78em; margin-left: 4px; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--line-soft);
  padding: 52px 0 40px;
  background: var(--bg-2);
}
.footer-inner { display: grid; justify-items: center; gap: 16px; text-align: center; }
.footer-brand { font-size: 1.7rem; }
.footer-title { color: var(--muted); font-size: 0.85rem; letter-spacing: 0.22em; text-transform: uppercase; }
.footer-social { display: flex; gap: 28px; flex-wrap: wrap; justify-content: center; }
.footer-social a {
  font-size: 0.88rem; font-weight: 700; color: var(--muted);
  transition: color 0.25s ease;
}
.footer-social a:hover { color: var(--cyan); }
.copyright { color: rgba(160, 154, 174, 0.5); font-size: 0.78rem; margin-top: 8px; }
.copyright .heart { color: #e63946; font-style: normal; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .creds-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-row { grid-template-columns: 56px minmax(0, 1fr) 48px; }
  .svc-row p { grid-column: 2 / 3; }
  .svc-arrow { grid-row: 1; grid-column: 3; }
  .stack-belt { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .nav-links, .nav-time { display: none; }
  .burger { display: flex; }
  .nav-cta { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .about-side { max-width: 480px; }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { border-right: 0; border-bottom: 1px solid var(--line-soft); padding: 16px 8px 12px 0; }
  .hero-foot { flex-direction: column; align-items: flex-start; gap: 26px; }
  .stack-card { grid-template-columns: 1fr; min-height: 0; }
  .sc-visual { min-height: 180px; order: -1; }
  .edu-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .container, .container-wide { width: calc(100% - 36px); }
  .hero-title { font-size: clamp(2.5rem, 13.5vw, 4.4rem); }
  .ht-indent { padding-left: 6vw; }
  .hm-right { display: none; }
  .creds-grid { grid-template-columns: 1fr; }
  .cred-card { min-height: 0; }
  .cred-card.featured { grid-column: span 1; }
  .btn-round { width: 108px; height: 108px; font-size: 0.85rem; }
  .timeline { padding-left: 34px; }
  .tl-dot { left: -33px; }
  .contact-rows li { grid-template-columns: 1fr; gap: 4px; padding: 14px 2px; }
  .stack-card { position: static; }
  .mega-link { font-size: clamp(3.4rem, 21vw, 5.5rem); }
  .facts li { grid-template-columns: 90px 1fr; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .sec-idx { font-size: 3.4rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .marquee { animation: none; flex-wrap: wrap; width: 100%; }
  .marquee-track { flex-wrap: wrap; row-gap: 8px; }
  .marquee-track:nth-child(2) { display: none; }
  .stack-card { position: static; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
