/* ===========================================================
   Umar Mohammed — Personal Portfolio
   Theme: Light · Futuristic · Scientific
   =========================================================== */

:root {
  --bg: #f6f8fc;
  --bg-2: #eef2f9;
  --surface: #ffffff;
  --surface-soft: #f1f4fa;
  --ink: #0a1126;
  --ink-2: #1b2340;
  --ink-dim: #4a5670;
  --ink-faint: #8a95ab;

  --line: rgba(10, 17, 38, 0.08);
  --line-strong: rgba(10, 17, 38, 0.16);

  --c1: #4f46e5; /* indigo */
  --c2: #06b6d4; /* cyan */
  --c3: #8b5cf6; /* violet */
  --c4: #ec4899; /* pink */

  --grad: linear-gradient(120deg, var(--c1) 0%, var(--c2) 45%, var(--c3) 80%, var(--c4) 100%);
  --grad-soft: linear-gradient(120deg, rgba(79,70,229,0.10), rgba(6,182,212,0.10), rgba(139,92,246,0.10));
  --glow: 0 30px 80px -28px rgba(79, 70, 229, 0.30);
  --shadow-card: 0 1px 2px rgba(10,17,38,0.04), 0 12px 32px -16px rgba(10,17,38,0.10);
  --shadow-lift: 0 30px 60px -24px rgba(10,17,38,0.18);

  --radius: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --maxw: 1180px;

  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: var(--c1); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--c3); }

img { max-width: 100%; display: block; }

::selection { background: rgba(79, 70, 229, 0.18); color: var(--ink); }

em { font-style: normal; }
.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ===========================================================
   Background system
   =========================================================== */

.bg-layer {
  position: fixed;
  inset: 0;
  z-index: -10;
  pointer-events: none;
  overflow: hidden;
}

.bg-mesh {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(40% 30% at 15% 10%, rgba(79, 70, 229, 0.22), transparent 70%),
    radial-gradient(35% 28% at 85% 5%, rgba(6, 182, 212, 0.18), transparent 70%),
    radial-gradient(50% 40% at 50% 100%, rgba(139, 92, 246, 0.16), transparent 70%),
    radial-gradient(30% 26% at 100% 60%, rgba(236, 72, 153, 0.12), transparent 70%);
  filter: blur(60px);
  animation: meshDrift 22s ease-in-out infinite;
}

@keyframes meshDrift {
  0%, 100% { transform: translate3d(0,0,0) scale(1); }
  33% { transform: translate3d(-4%, 3%, 0) scale(1.05); }
  66% { transform: translate3d(3%, -2%, 0) scale(0.98); }
}

.bg-dots {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(10, 17, 38, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 80%);
}

.bg-grid-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, #000 25%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, #000 25%, transparent 85%);
}

/* ===========================================================
   Navigation
   =========================================================== */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 28px;
  margin: 0 auto;
  max-width: var(--maxw);
  background: rgba(246, 248, 252, 0.7);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line);
}

.nav-logo {
  display: flex; align-items: center; gap: 10px;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
}
.nav-logo:hover { color: var(--ink); }
.logo-mark {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border-radius: 9px;
  background: var(--grad);
  color: #fff;
}
.logo-text { font-size: 15px; letter-spacing: -0.01em; }

.nav-links {
  display: flex; gap: 18px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  color: var(--ink-dim);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.05px;
  white-space: nowrap;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 1.5px;
  background: var(--grad);
  transition: width 0.25s ease;
}
.nav-links a:hover,
.nav-links a.is-active { color: var(--ink); }
.nav-links a:hover::after,
.nav-links a.is-active::after { width: 100%; }

.nav-cta {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: var(--glow);
  color: #fff;
}

.nav-burger {
  display: none;
  background: none; border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav-burger span {
  display: block; width: 22px; height: 2px;
  background: var(--ink);
  margin: 4px 0; border-radius: 2px;
  transition: transform 0.2s;
}

/* ===========================================================
   Buttons
   =========================================================== */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1px;
  cursor: pointer;
  transition: all 0.25s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn svg { transition: transform 0.25s; }
.btn:hover svg { transform: translateX(3px); }

.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 1px 2px rgba(10,17,38,0.1), 0 14px 28px -14px rgba(10,17,38,0.4);
}
.btn-primary:hover {
  background: linear-gradient(120deg, var(--c1), var(--c3));
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--glow);
}

.btn-ghost {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn-ghost:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
  color: var(--ink);
}

/* ===========================================================
   Hero
   =========================================================== */

.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 96px 28px 110px;
  position: relative;
}

.hero-inner {
  max-width: 920px;
  position: relative;
  z-index: 2;
}

.hero-inner-grid {
  max-width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 56px;
  align-items: center;
}
.hero-text { min-width: 0; }

/* Hero portrait */
.hero-portrait {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}
.portrait-frame {
  position: relative;
  width: 340px;
  height: 420px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow:
    0 1px 2px rgba(10,17,38,0.06),
    0 30px 80px -20px rgba(79, 70, 229, 0.35),
    0 50px 100px -30px rgba(139, 92, 246, 0.30);
  isolation: isolate;
  transform: rotate(-1.5deg);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.portrait-frame:hover { transform: rotate(0deg) scale(1.02); }
.portrait-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 28px;
  padding: 2px;
  background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  z-index: 3;
}
.portrait-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 22%;
  display: block;
  position: relative;
  z-index: 1;
}
.portrait-ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.portrait-ring.r1 {
  inset: -40px;
  border: 1px dashed rgba(79, 70, 229, 0.35);
  border-radius: 32px;
  animation: spin 80s linear infinite;
}
.portrait-ring.r2 {
  inset: -68px;
  border: 1px solid rgba(6, 182, 212, 0.18);
  border-radius: 36px;
  animation: spin 60s linear infinite reverse;
}
.portrait-tag {
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-card);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.4px;
  color: var(--ink);
  z-index: 4;
  white-space: nowrap;
}
.portrait-tag .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--c2);
  box-shadow: 0 0 0 3px rgba(6,182,212,0.18);
  animation: ping 2s ease-in-out infinite;
}

.hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  font-size: 12.5px;
  color: var(--ink-dim);
  margin-bottom: 36px;
}
.meta-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 10px;
  background: var(--grad-soft);
  border-radius: 999px;
  font-weight: 500;
  color: var(--ink);
  font-size: 12px;
}
.meta-tag .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--c2);
  box-shadow: 0 0 0 3px rgba(6,182,212,0.18);
  animation: ping 2s ease-in-out infinite;
}
@keyframes ping {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.9); }
}
.meta-sep {
  width: 1px; height: 14px; background: var(--line-strong);
}
.meta-loc { font-weight: 500; color: var(--ink-dim); }

.hero-title {
  margin: 0 0 28px;
  font-family: var(--font-display);
  font-size: clamp(48px, 7.5vw, 104px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.98;
  color: var(--ink);
}
.hero-title .line { display: block; }
.hero-title em.grad {
  font-style: italic;
  font-weight: 500;
}

.hero-deck {
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.6;
  color: var(--ink-dim);
  max-width: 720px;
  margin: 0 0 40px;
}
.hero-deck strong { color: var(--ink); font-weight: 600; }

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 64px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 28px 0 0;
  border-top: 1px solid var(--line);
}
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
}
.stat-num .grad { font-style: normal; }
.stat-label {
  margin-top: 8px;
  font-size: 12px;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.7px;
  line-height: 1.4;
}

/* Orbit visualization — hidden by default now that portrait is the right-side hero element */
.orbit {
  display: none;
  position: absolute;
  top: 80px;
  right: -120px;
  width: 460px; height: 460px;
  z-index: 0;
  pointer-events: none;
  opacity: 0.85;
}
.orbit-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px dashed rgba(79, 70, 229, 0.25);
  animation: spin 60s linear infinite;
}
.orbit-ring.r2 {
  inset: 14%;
  border-color: rgba(6, 182, 212, 0.28);
  animation-duration: 40s;
  animation-direction: reverse;
}
.orbit-ring.r3 {
  inset: 28%;
  border-color: rgba(139, 92, 246, 0.3);
  animation-duration: 30s;
}
.orbit-core {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--grad);
  filter: blur(2px);
  opacity: 0.7;
  animation: pulseCore 4s ease-in-out infinite;
}
@keyframes pulseCore {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.7; }
  50% { transform: translate(-50%, -50%) scale(1.15); opacity: 0.95; }
}
.orbit-node {
  position: absolute;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--c1);
  box-shadow: 0 0 0 6px rgba(79,70,229,0.10);
}
.orbit-node.n1 { top: -6px; left: 50%; transform: translateX(-50%); }
.orbit-node.n2 { top: 50%; right: -6px; transform: translateY(-50%); border-color: var(--c2); box-shadow: 0 0 0 6px rgba(6,182,212,0.12); }
.orbit-node.n3 { bottom: -6px; left: 50%; transform: translateX(-50%); border-color: var(--c3); box-shadow: 0 0 0 6px rgba(139,92,246,0.12); }
.orbit-node.n4 { top: 50%; left: -6px; transform: translateY(-50%); border-color: var(--c4); box-shadow: 0 0 0 6px rgba(236,72,153,0.12); }

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===========================================================
   Section base
   =========================================================== */

.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 100px 28px;
  position: relative;
}

.section-head {
  margin-bottom: 56px;
  max-width: 760px;
}
.section-num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.6px;
  color: var(--c1);
  margin-bottom: 14px;
  padding: 4px 10px;
  border: 1px solid rgba(79,70,229,0.25);
  border-radius: 999px;
  background: rgba(79,70,229,0.06);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 0 0 14px;
  color: var(--ink);
}
.section-sub {
  font-size: 17px;
  color: var(--ink-dim);
  margin: 0;
  line-height: 1.6;
  max-width: 660px;
}

/* ===========================================================
   Vision & Mission
   =========================================================== */

.section-vision { padding-top: 60px; }
.vm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.vm-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 44px 40px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}
.vm-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad);
  opacity: 0.85;
}
.vm-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--c1);
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}
.vm-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.7vw, 34px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 0 0 18px;
  color: var(--ink);
}
.vm-title em.grad { font-style: italic; font-weight: 500; }
.vm-body {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-dim);
  margin: 0;
}

/* ===========================================================
   Biography
   =========================================================== */

.bio-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  align-items: start;
}

.bio-body p {
  font-size: 16.5px;
  line-height: 1.85;
  color: var(--ink-dim);
  margin: 0 0 22px;
}
.bio-body strong { color: var(--ink); font-weight: 600; }
.bio-lead {
  font-family: var(--font-display);
  font-size: 22px !important;
  line-height: 1.5 !important;
  color: var(--ink) !important;
  font-weight: 500;
  letter-spacing: -0.012em;
  margin-bottom: 28px !important;
  position: relative;
  padding-left: 22px;
}
.bio-lead::before {
  content: '';
  position: absolute;
  left: 0; top: 8px; bottom: 8px;
  width: 3px; border-radius: 3px;
  background: var(--grad);
}

.bio-side { position: sticky; top: 92px; }
.bio-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-card);
}
.bio-card-soft {
  background: linear-gradient(160deg, var(--surface), var(--surface-soft));
}
.bio-card-head {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--c1);
  margin-bottom: 16px;
}
.bio-card dl { margin: 0; padding: 0; }
.bio-card dl > div {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 13.5px;
  gap: 16px;
}
.bio-card dl > div:last-child { border-bottom: 0; }
.bio-card dt { color: var(--ink-faint); flex-shrink: 0; }
.bio-card dd { margin: 0; color: var(--ink); font-weight: 500; text-align: right; }

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
  position: relative;
  padding: 8px 0 8px 28px;
  font-size: 14px;
  color: var(--ink);
  border-bottom: 1px dashed var(--line);
}
.check-list li:last-child { border-bottom: 0; }
.check-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 12px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--grad);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M9.55 17.05 4.5 12l1.4-1.4 3.65 3.65 8.55-8.55 1.4 1.4z'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M9.55 17.05 4.5 12l1.4-1.4 3.65 3.65 8.55-8.55 1.4 1.4z'/></svg>") center/contain no-repeat;
}

/* ===========================================================
   Timeline
   =========================================================== */

.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
  padding-left: 8px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: linear-gradient(180deg, var(--c1), var(--c2), var(--c3), transparent);
}
.timeline-item {
  position: relative;
  padding-left: 36px;
  padding-bottom: 24px;
}
.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: 0; top: 18px;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--c1);
  box-shadow: 0 0 0 4px rgba(79,70,229,0.10);
}
.timeline-item.current .timeline-dot {
  background: var(--grad);
  border-color: var(--surface);
  box-shadow: 0 0 0 4px rgba(79,70,229,0.20), 0 0 18px rgba(139,92,246,0.55);
  animation: nodePulse 2.4s ease-in-out infinite;
}
@keyframes nodePulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(79,70,229,0.18), 0 0 18px rgba(139,92,246,0.5); }
  50% { box-shadow: 0 0 0 8px rgba(79,70,229,0.10), 0 0 28px rgba(139,92,246,0.7); }
}

.t-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s, box-shadow 0.25s;
}
.t-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}

.t-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-faint);
  margin-bottom: 10px;
}
.t-date { color: var(--c1); font-weight: 500; }
.t-loc::before { content: '· '; }
.t-role {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 4px;
  color: var(--ink);
}
.t-org {
  font-size: 14px;
  font-weight: 500;
  color: var(--c1);
  margin-bottom: 10px;
}
.t-body {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-dim);
  margin: 0;
}

/* ===========================================================
   Products
   =========================================================== */

.products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.product {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.product::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad);
  opacity: 0;
  transition: opacity 0.3s;
}
.product:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: var(--line-strong);
}
.product:hover::before { opacity: 1; }

.product.featured {
  grid-column: span 3;
  background: linear-gradient(135deg, var(--surface), var(--surface-soft));
  padding: 36px 40px;
  border-color: rgba(79,70,229,0.18);
}
.product.featured::before { opacity: 1; }
.product.featured .product-title {
  font-size: 32px;
}

.product-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.5px;
  color: var(--c1);
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(79,70,229,0.08);
  border: 1px solid rgba(79,70,229,0.18);
  margin-bottom: 16px;
}
.product-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  color: var(--ink);
}
.product-sub {
  font-size: 14px;
  color: var(--ink-faint);
  margin: 0 0 14px;
}
.product-body {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-dim);
  margin: 0 0 14px;
}
.product-body strong { color: var(--ink); font-weight: 600; }
.product-link {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--c1);
}
.product-link:hover { color: var(--c3); }

/* ===========================================================
   Skills
   =========================================================== */

.skills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.skill {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.skill:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
  border-color: var(--line-strong);
}
.skill-key {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--grad-soft);
  border: 1px solid rgba(79,70,229,0.18);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--c1);
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}
.skill h4 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  color: var(--ink);
}
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  color: var(--ink-dim);
}

/* ===========================================================
   Sectors
   =========================================================== */

.sectors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.sector {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.sector:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-lift);
}
.sector-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--grad-soft);
  color: var(--c1);
  margin-bottom: 12px;
  border: 1px solid rgba(79,70,229,0.18);
}
.sector h4 {
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
  color: var(--ink);
}
.sector p {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-dim);
  margin: 0;
}

/* ===========================================================
   Events & Speaking
   =========================================================== */

.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.event {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 0;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  display: flex;
  flex-direction: column;
}

.event-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-soft);
}
.event-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.event-image-bottom img {
  object-position: center 75%;
}

.event-image-portrait {
  aspect-ratio: 4 / 5;
  background: var(--surface-soft);
}
.event-image-portrait img {
  object-fit: contain;
  object-position: center top;
  background: linear-gradient(180deg, var(--surface-soft), var(--bg));
}

.event-image-marketscape {
  background: var(--surface);
  aspect-ratio: 16 / 10;
}
.event-image-marketscape img {
  object-fit: contain;
  object-position: center;
  background: var(--surface);
}
.img-fallback {
  display: none;
  position: absolute;
  inset: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  background:
    radial-gradient(circle at 70% 20%, rgba(236,72,153,0.10), transparent 60%),
    radial-gradient(circle at 30% 80%, rgba(79,70,229,0.10), transparent 60%),
    var(--surface-soft);
}
.img-missing .img-fallback { display: flex; }
.fallback-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.6px;
  color: var(--c4);
  padding: 4px 12px;
  border: 1px solid rgba(236,72,153,0.30);
  background: rgba(236,72,153,0.06);
  border-radius: 999px;
  margin-bottom: 14px;
  text-transform: uppercase;
}
.fallback-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.025em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 8px;
}
.fallback-sub {
  font-size: 13px;
  color: var(--ink-dim);
  max-width: 240px;
  line-height: 1.5;
}
.event:hover .event-image img { transform: scale(1.04); }
.event-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(10,17,38,0.10) 100%);
  pointer-events: none;
}

.event-body-wrap {
  padding: 24px 26px 26px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.event-body-only { padding-top: 28px; }
.event::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad);
  opacity: 0;
  transition: opacity 0.3s;
}
.event:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: var(--line-strong);
}
.event:hover::before { opacity: 1; }

.event-featured {
  background: linear-gradient(135deg, var(--surface), var(--surface-soft));
  border-color: rgba(79,70,229,0.18);
}
.event-featured::before { opacity: 1; }

.event-press {
  background: linear-gradient(135deg, var(--surface), rgba(236,72,153,0.05));
  border-color: rgba(236,72,153,0.18);
}

.event-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--c1);
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(79,70,229,0.08);
  border: 1px solid rgba(79,70,229,0.18);
  margin-bottom: 16px;
}
.event-badge.press {
  color: var(--c4);
  background: rgba(236,72,153,0.08);
  border-color: rgba(236,72,153,0.22);
}
.event-year {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-faint);
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}
.event-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.018em;
  line-height: 1.2;
  margin: 0 0 6px;
  color: var(--ink);
}
.event-loc {
  font-size: 13px;
  color: var(--c1);
  font-weight: 500;
  margin-bottom: 12px;
}
.event-body {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-dim);
  margin: 0;
}
.event-body strong { color: var(--ink); font-weight: 600; }

/* ===========================================================
   Awards
   =========================================================== */

.awards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.award {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.award:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
  border-color: var(--line-strong);
}
.award-featured {
  background: linear-gradient(135deg, rgba(79,70,229,0.06), rgba(139,92,246,0.04), var(--surface));
  border-color: rgba(79,70,229,0.20);
}
.award-press {
  background: linear-gradient(135deg, var(--surface), rgba(236,72,153,0.04));
  border-color: rgba(236,72,153,0.18);
}
.award-medal {
  width: 42px; height: 42px;
  border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--grad-soft);
  color: var(--c1);
  margin-bottom: 14px;
  border: 1px solid rgba(79,70,229,0.18);
}
.award-press .award-medal {
  background: rgba(236,72,153,0.08);
  color: var(--c4);
  border-color: rgba(236,72,153,0.22);
}
.award-year {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.4px;
  color: var(--ink-faint);
  margin-bottom: 8px;
}
.award-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.018em;
  line-height: 1.25;
  margin: 0 0 10px;
  color: var(--ink);
}
.award-body {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-dim);
  margin: 0;
}
.award-body strong { color: var(--ink); font-weight: 600; }

/* ===========================================================
   Memories
   =========================================================== */

.memories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.memory {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.memory:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-lift);
}
.memory-image {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface-soft);
}
.memory-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 25%;
  transition: transform 0.6s cubic-bezier(0.16,1,0.3,1);
  display: block;
}
.memory:hover .memory-image img { transform: scale(1.04); }
.memory-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(10,17,38,0.18) 100%);
  pointer-events: none;
}
.memory-image.img-missing img { display: none; }
.memory-image.img-missing::after { display: none; }
.memory-body { padding: 20px 22px 22px; }
.memory-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.5px;
  color: var(--ink-faint);
  margin-bottom: 6px;
  text-transform: uppercase;
}
.memory-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.018em;
  margin: 0 0 8px;
  color: var(--ink);
}
.memory-desc {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-dim);
  margin: 0;
}

/* ===========================================================
   Recommendations
   =========================================================== */

.recs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.rec {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
  position: relative;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.rec::before {
  content: '\201C';
  position: absolute;
  top: 8px; left: 22px;
  font-family: var(--font-display);
  font-size: 64px;
  line-height: 1;
  color: rgba(79,70,229,0.12);
  pointer-events: none;
}
.rec:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
  border-color: var(--line-strong);
}
.rec blockquote {
  margin: 0 0 18px;
  padding-top: 8px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
  font-weight: 400;
  position: relative;
  z-index: 1;
}
.rec figcaption {
  padding-top: 16px;
  border-top: 1px dashed var(--line);
}
.rec-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
}
.rec-role {
  font-size: 12.5px;
  color: var(--ink-dim);
  margin-bottom: 6px;
  line-height: 1.4;
}
.rec-rel {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--c1);
  letter-spacing: 0.2px;
}

/* ===========================================================
   Certifications
   =========================================================== */

.certs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.cert-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  display: flex;
  gap: 22px;
  align-items: flex-start;
}
.cert-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad);
  opacity: 0;
  transition: opacity 0.3s;
}
.cert-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-lift);
}
.cert-card:hover::before { opacity: 1; }
.cert-featured {
  background: linear-gradient(135deg, rgba(123,66,188,0.06), var(--surface));
  border-color: rgba(123,66,188,0.20);
}
.cert-featured::before { opacity: 1; }

.cert-logo {
  flex: 0 0 64px;
  width: 64px; height: 64px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px -8px rgba(10,17,38,0.18);
}
.cert-logo img { width: 36px; height: 36px; object-fit: contain; }
.cert-logo-hashicorp { background: linear-gradient(135deg, #fff, #f5edff); border-color: rgba(123,66,188,0.25); }
.cert-logo-cloud { color: var(--c1); background: linear-gradient(135deg, #fff, #eef0ff); border-color: rgba(79,70,229,0.25); }
.cert-logo-sec { color: var(--c2); background: linear-gradient(135deg, #fff, #e6f8fb); border-color: rgba(6,182,212,0.25); }
.cert-logo-academic { color: var(--c4); background: linear-gradient(135deg, #fff, #fdeef5); border-color: rgba(236,72,153,0.22); }

.cert-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 6px;
}
.cert-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.018em;
  line-height: 1.25;
  margin: 0 0 8px;
  color: var(--ink);
}
.cert-body {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-dim);
  margin: 0;
}

/* ===========================================================
   Technology Stack
   =========================================================== */

.stack-group {
  margin-bottom: 36px;
}
.stack-heading {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--c1);
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line);
}
.stack-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 12px;
}
.stack-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 12px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  box-shadow: var(--shadow-card);
}
.stack-item:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-lift);
}
.stack-item img,
.stack-item .stack-svg {
  width: 36px;
  height: 36px;
  object-fit: contain;
  transition: transform 0.25s;
}
.stack-item:hover img,
.stack-item:hover .stack-svg { transform: scale(1.08); }
.stack-item span {
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.stack-mcp .stack-svg { color: var(--c3); display: flex; align-items: center; justify-content: center; }

/* AI Models & Tools — featured group at top */
.stack-group-ai {
  background: linear-gradient(135deg, rgba(79,70,229,0.04), rgba(139,92,246,0.04), rgba(236,72,153,0.03));
  border: 1px solid rgba(79,70,229,0.14);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  overflow: hidden;
  margin-bottom: 44px;
}
.stack-group-ai::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad);
}
.stack-group-ai .stack-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--c3);
  border-bottom-color: rgba(139,92,246,0.20);
}
.stack-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.stack-group-ai .stack-item {
  background: var(--surface);
}
.stack-group-ai .stack-grid {
  grid-template-columns: repeat(8, 1fr);
}

/* Custom SVG badges for models without official simpleicons */
.stack-item-badge .stack-svg {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: var(--surface-soft);
}
.stack-opus .stack-svg { color: #C39A4E; background: linear-gradient(135deg, #fff8e8, #fdebc4); }
.stack-sonnet .stack-svg { color: var(--c1); background: linear-gradient(135deg, #eef0ff, #e2e5ff); }
.stack-qwen .stack-svg { color: #FA541C; background: linear-gradient(135deg, #fff1ea, #ffe1d0); }
.stack-grok .stack-svg { color: #fff; background: linear-gradient(135deg, #1a1a1a, #000); }
.stack-gpt-private .stack-svg { color: var(--c2); background: linear-gradient(135deg, #e6f8fb, #cdeff5); }

.stack-fallback {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--grad-soft);
  border: 1px solid rgba(79,70,229,0.18);
  color: var(--c1);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.4px;
}

/* Graceful logo fallback — if an <img> in a stack-item fails to load, hide it */
.stack-item img { background: transparent; }
.stack-item img[alt]:after {
  content: attr(alt);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--surface-soft);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--ink-dim);
  text-align: center;
  position: absolute;
}

/* ===========================================================
   Contact
   =========================================================== */

.contact-section { padding-bottom: 120px; }
.contact-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 56px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.contact-wrap::before {
  content: '';
  position: absolute;
  top: -40%; right: -20%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(79,70,229,0.10), transparent 70%);
  pointer-events: none;
}
.contact-wrap::after {
  content: '';
  position: absolute;
  bottom: -40%; left: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(139,92,246,0.10), transparent 70%);
  pointer-events: none;
}

.contact-copy { position: relative; z-index: 1; }
.contact-copy .section-num { margin-bottom: 14px; }
.contact-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 16px;
  color: var(--ink);
}
.contact-title em.grad { font-style: italic; font-weight: 500; }
.contact-sub {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-dim);
  max-width: 460px;
  margin: 0 0 28px;
}
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-self: center;
  position: relative; z-index: 1;
}
.contact-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 18px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: all 0.2s;
}
a.contact-card:hover {
  border-color: var(--c1);
  background: rgba(79,70,229,0.04);
  transform: translateY(-2px);
}
.cc-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.cc-val {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  word-break: break-word;
}

/* ===========================================================
   Footer
   =========================================================== */

.footer {
  border-top: 1px solid var(--line);
  padding: 26px 0;
  background: rgba(246,248,252,0.6);
  backdrop-filter: blur(8px);
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.footer-brand .logo-mark { width: 26px; height: 26px; }
.footer-meta {
  font-size: 13px;
  color: var(--ink-faint);
  display: flex; gap: 8px; align-items: center;
}
.footer-meta .sep { color: var(--line-strong); }

/* ===========================================================
   Reveal animation
   =========================================================== */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================================================
   Responsive
   =========================================================== */

@media (max-width: 1020px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-burger { display: block; }

  .orbit { display: none; }
  .hero { padding: 64px 22px 80px; }
  .hero-inner-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: left;
  }
  .hero-portrait { order: -1; }
  .portrait-frame { width: 240px; height: 300px; transform: rotate(-1deg); }
  .portrait-ring.r1 { inset: -22px; }
  .portrait-ring.r2 { inset: -38px; }
  .hero-title { font-size: clamp(40px, 9vw, 64px); }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 18px; }

  .section { padding: 72px 22px; }
  .vm-grid { grid-template-columns: 1fr; }
  .bio-grid { grid-template-columns: 1fr; gap: 28px; }
  .bio-side { position: static; }

  .products { grid-template-columns: repeat(2, 1fr); }
  .product.featured { grid-column: span 2; }

  .skills { grid-template-columns: repeat(2, 1fr); }
  .sectors-grid { grid-template-columns: repeat(2, 1fr); }
  .events-grid { grid-template-columns: repeat(2, 1fr); }
  .awards-grid { grid-template-columns: repeat(2, 1fr); }
  .memories-grid { grid-template-columns: repeat(2, 1fr); }
  .recs { grid-template-columns: repeat(2, 1fr); }
  .certs-grid { grid-template-columns: 1fr; }
  .stack-grid { grid-template-columns: repeat(5, 1fr); }

  .contact-wrap {
    grid-template-columns: 1fr;
    padding: 36px;
    gap: 28px;
  }
  .contact-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav { padding: 12px 18px; }
  .hero { padding: 52px 18px 72px; }
  .section { padding: 60px 18px; }

  .vm-card { padding: 32px 24px; }

  .products { grid-template-columns: 1fr; }
  .product.featured { grid-column: span 1; padding: 28px; }
  .skills, .sectors-grid, .events-grid, .awards-grid, .memories-grid, .recs { grid-template-columns: 1fr; }
  .certs-grid { grid-template-columns: 1fr; }
  .cert-card { flex-direction: column; gap: 16px; }
  .stack-grid { grid-template-columns: repeat(3, 1fr); }

  .hero-stats { grid-template-columns: 1fr 1fr; }
  .contact-wrap { padding: 28px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
}
