/* ═══════════════════════════════════════════════════════════════
   MOHAMMAD FAHAD SIDDIQUI — PORTFOLIO DESIGN SYSTEM
   Premium editorial design with warm neutrals & cinematic motion
   ═══════════════════════════════════════════════════════════════ */

/* ── DESIGN TOKENS (EXECUTIVE NAVY & STEEL BLUE PALETTE) ───────── */
:root {
  /* Core Palette Swatches */
  --color-white: #F9F7F7;       /* Swatch 1: Soft clean off-white */
  --color-ice: #DBE2EF;         /* Swatch 2: Soft ice blue / surface tint */
  --color-blue: #3F72AF;        /* Swatch 3: Vibrant steel blue / primary interactive accent */
  --color-navy: #112D4E;        /* Swatch 4: Deep midnight navy / primary headings & dark surface */
  --navy: #112D4E;              /* Direct token alias */

  /* Semantic Theme Variables */
  --bg: #F9F7F7;
  --bg-dark: #112D4E;
  --bg-mid: #DBE2EF;
  --bg-warm: #edf2f9;
  --bg-card: #ffffff;
  --text: #112D4E;
  --text-muted: #3F72AF;
  --text-dim: #546e8c;
  --text-light: #F9F7F7;
  --text-light-muted: #DBE2EF;
  --border: #DBE2EF;
  --border-dark: #244973;
  --border-mid: #b8c8dd;
  --border-warm: #cad9ec;
  --accent: #3F72AF;
  --accent-glow: rgba(63, 114, 175, 0.22);
  --font-body: 'Inter', Arial, sans-serif;
  --font-mono: 'DM Mono', monospace;
  --font-serif: 'Source Serif 4', Georgia, serif;
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── RESET & BASE ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── NOISE OVERLAY ──────────────────────────────────────────── */
.noise {
  position: fixed; inset: 0;
  pointer-events: none; opacity: 0.035; z-index: 100;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

/* ── HEADER ─────────────────────────────────────────────────── */
.site-header {
  height: 76px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 4vw;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
  background: rgba(249, 247, 247, 0.94);
  backdrop-filter: blur(14px);
  transition: box-shadow 0.4s ease, background 0.4s ease;
}
.site-header.scrolled {
  box-shadow: 0 2px 30px rgba(0,0,0,0.06);
}
.brand {
  display: flex; gap: 12px; align-items: center;
  text-decoration: none; color: inherit;
  font: 700 12.5px var(--font-mono); letter-spacing: 0.08em;
}
.brand-mark {
  display: grid; place-items: center;
  width: 30px; height: 30px;
  border: 1.5px solid var(--text); font-size: 11px; font-weight: 700;
  transition: background 0.3s, color 0.3s;
}
.brand:hover .brand-mark { background: var(--text); color: var(--bg); }
.brand .brand-name {
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.08em;
}
.nav { display: flex; gap: 28px; }
.nav a, .text-link {
  font: 600 11.5px var(--font-mono); color: var(--text); text-decoration: none;
  letter-spacing: 0.04em;
  transition: opacity 0.3s;
}
.nav a:hover, .text-link:hover { opacity: 0.55; }
.header-cta {
  font: 700 11.5px var(--font-mono);
  letter-spacing: 0.06em;
  border: 1.5px solid var(--text);
  padding: 9px 15px;
  color: var(--text);
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
}
.header-cta:hover { background: var(--text); color: var(--bg); }

/* ── HEADER ACTIONS & HIRE NOW BUTTON ──────────────────────── */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.header-hire-btn {
  font: 700 11.5px var(--font-mono);
  letter-spacing: 0.06em;
  background: var(--text);
  color: var(--bg);
  border: 1.5px solid var(--text);
  padding: 9px 16px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.25s, box-shadow 0.25s;
}
.header-hire-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(63, 114, 175, 0.3);
}

/* ── MOBILE MENU TOGGLE ────────────────────────────────────── */
.menu-toggle {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 8px; z-index: 60;
}
.menu-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--text);
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
}
.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE NAV ─────────────────────────────────────────────── */
.mobile-nav {
  position: fixed; inset: 0; z-index: 55;
  background: rgba(242, 240, 234, 0.98);
  backdrop-filter: blur(20px);
  display: flex; flex-direction: column;
  justify-content: center; align-items: center; gap: 24px;
  transform: translateY(-100%);
  transition: transform 0.5s var(--ease-out);
  pointer-events: none;
}
.mobile-nav.open {
  transform: translateY(0);
  pointer-events: all;
}
.mobile-nav a {
  font: 600 18px var(--font-mono); color: var(--text);
  text-decoration: none; letter-spacing: 0.04em;
  opacity: 0; transform: translateY(15px);
  transition: opacity 0.4s, transform 0.4s var(--ease-out);
}
.mobile-nav.open a {
  opacity: 1; transform: none;
}
.mobile-nav.open a:nth-child(1) { transition-delay: 0.1s; }
.mobile-nav.open a:nth-child(2) { transition-delay: 0.15s; }
.mobile-nav.open a:nth-child(3) { transition-delay: 0.2s; }
.mobile-nav.open a:nth-child(4) { transition-delay: 0.25s; }
.mobile-nav.open a:nth-child(5) { transition-delay: 0.3s; }
.mobile-nav.open a:nth-child(6) { transition-delay: 0.35s; }
.mobile-nav.open a:nth-child(7) { transition-delay: 0.4s; }
.mobile-nav.open a:nth-child(8) { transition-delay: 0.45s; }
.mobile-nav.open a:nth-child(9) { transition-delay: 0.5s; }
.mobile-nav-close {
  position: absolute;
  top: 20px;
  right: 5vw;
  width: 42px;
  height: 42px;
  border: 1px solid var(--text);
  background: transparent;
  color: var(--text);
  font-size: 24px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, transform 0.3s;
  z-index: 60;
}
.mobile-nav-close:hover,
.mobile-nav-close:active {
  background: var(--text);
  color: var(--bg);
  transform: rotate(90deg);
}
.mobile-resume {
  margin-top: 16px;
  border: 1px solid var(--text) !important;
  padding: 12px 20px !important;
}

/* ── SHARED ─────────────────────────────────────────────────── */
.section { padding: 120px 7vw; }
.eyebrow, .section-label, .project-index, .visual-label {
  font: 500 10px var(--font-mono); letter-spacing: 0.13em;
}
.eyebrow { color: var(--text-muted); }
.status-dot {
  display: inline-block; width: 7px; height: 7px;
  border-radius: 50%; background: var(--accent);
  margin-right: 8px;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 var(--accent-glow); }
  50% { opacity: 0.7; box-shadow: 0 0 0 8px transparent; }
}
em {
  font-family: var(--font-serif); font-weight: 600; font-style: italic;
}
.section-label {
  display: flex; gap: 18px; color: var(--text-dim); margin-bottom: 65px;
}
.section-label span { color: var(--text); }
.button {
  display: inline-flex; gap: 25px; align-items: center;
  text-decoration: none; padding: 15px 18px;
  font: 500 11px var(--font-mono);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}
.button:hover { transform: translateY(-2px); }
.button-dark { background: var(--text); color: var(--bg); }
.button-outline {
  background: transparent; color: var(--text);
  border: 1px solid var(--text);
  cursor: pointer;
}
.button-outline:hover {
  background: var(--text); color: var(--bg);
}
.text-link { border-bottom: 1px solid var(--text); padding-bottom: 4px; }

/* ── HERO ───────────────────────────────────────────────────── */
.hero {
  min-height: calc(100vh - 76px);
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 5vw; align-items: center;
  position: relative; overflow: hidden; padding-top: 80px;
}
.hero h1 {
  font-size: clamp(64px, 9.5vw, 154px);
  line-height: 0.84; letter-spacing: -0.075em;
  margin: 22px 0 34px; font-weight: 800;
}
.hero-lede {
  max-width: 590px;
  font-size: clamp(18px, 2vw, 27px);
  line-height: 1.25; letter-spacing: -0.03em;
  color: var(--text-muted);
}
.hero-lede strong { color: var(--text); }
.hero-actions {
  display: flex; gap: 25px; align-items: center; margin-top: 35px;
}

/* ── ENGINEERING CORE ───────────────────────────────────────── */
.engineering-core {
  width: min(40vw, 520px); aspect-ratio: 1;
  position: relative; justify-self: end;
  display: grid; place-items: center;
  transition: transform 0.4s var(--ease-out);
}
.core-chip {
  width: 190px; height: 190px;
  border: 1px solid #272727; border-radius: 50%;
  background: var(--bg); display: flex; flex-direction: column;
  justify-content: center; align-items: center; text-align: center;
  z-index: 5; box-shadow: 0 0 0 18px rgba(23,23,23,0.035);
}
.core-chip .chip-kicker { font: 500 8px var(--font-mono); letter-spacing: 0.15em; color: var(--text-dim); }
.core-chip strong { font-size: 17px; letter-spacing: -0.04em; margin: 7px 0; }
.core-chip small { font: 9px var(--font-mono); color: var(--text-dim); }
.core-ring, .core-orbit {
  position: absolute; border: 1px solid #7f7a72; border-radius: 50%;
}
.ring-a { inset: 13%; transform: rotate(22deg) scaleY(0.36); }
.ring-b { inset: 13%; transform: rotate(-35deg) scaleY(0.36); }
.orbit-a { inset: 0; border-style: dashed; opacity: 0.55; transform: rotate(70deg) scaleY(0.45); animation: orbit-spin 30s linear infinite; }
.orbit-b { inset: 6%; border-style: dotted; opacity: 0.45; transform: rotate(-18deg) scaleY(0.62); animation: orbit-spin 45s linear infinite reverse; }
@keyframes orbit-spin { to { transform: rotate(430deg) scaleY(0.45); } }
.core-node {
  position: absolute; z-index: 8;
  font: 500 10px var(--font-mono);
  border: 1px solid #292929; padding: 7px 9px;
  background: var(--bg);
  transition: background 0.3s, color 0.3s, transform 0.3s var(--ease-spring);
}
.core-node:hover { background: var(--text); color: var(--bg); transform: scale(1.1); }
.node-a { top: 9%; left: 47%; }
.node-b { right: 2%; top: 48%; }
.node-c { bottom: 11%; left: 43%; }
.node-d { left: 2%; top: 43%; }
.node-e { right: 15%; top: 14%; }
.core-axis { position: absolute; background: #292929; opacity: 0.15; }
.axis-x { width: 100%; height: 1px; }
.axis-y { height: 100%; width: 1px; }
.hero-meta {
  position: absolute; left: 7vw; right: 7vw; bottom: 28px;
  display: flex; justify-content: space-between;
  font: 9px var(--font-mono); color: var(--text-dim);
}

/* ── TICKER ─────────────────────────────────────────────────── */
.ticker {
  overflow: hidden;
  white-space: nowrap;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  position: relative;
  background: var(--bg);
  user-select: none;
}
.ticker-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: ticker-scroll 35s linear infinite;
}
.ticker-track:hover {
  animation-play-state: paused;
}
.ticker-group {
  display: flex;
  align-items: center;
  gap: 36px;
  padding-right: 36px;
  flex-shrink: 0;
}
.ticker-group span {
  font: 500 10px var(--font-mono);
  letter-spacing: 0.14em;
  color: var(--text);
  white-space: nowrap;
}
.ticker-group i {
  font-style: normal;
  color: var(--accent);
  font-size: 8px;
  opacity: 0.8;
}
@keyframes ticker-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ── STORY / ABOUT ──────────────────────────────────────────── */
.story { background: var(--bg-dark); color: var(--text-light); }
.story .section-label { color: var(--text-light-muted); }

.story-header {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 5vw;
  align-items: end;
  margin-bottom: 55px;
  padding-bottom: 35px;
  border-bottom: 1px solid var(--border-dark);
}
.story-header-left h2 {
  font-size: clamp(44px, 5.5vw, 86px);
  line-height: 0.92;
  letter-spacing: -0.065em;
  margin: 10px 0 0;
}
.story-lead {
  font-size: 16px;
  color: #bcb8b0;
  line-height: 1.6;
  margin: 0 0 16px;
}
.story-lead strong { color: #fff; }
.story-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.story-pills span {
  font: 500 9px var(--font-mono);
  letter-spacing: 0.08em;
  border: 1px solid var(--border-dark);
  padding: 5px 10px;
  color: var(--text-light-muted);
  background: rgba(255,255,255,0.02);
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(320px, 440px) 1fr;
  gap: 5vw;
  align-items: stretch;
}

/* Photo Blueprint Card */
.photo-card {
  border: 1px solid var(--border-dark);
  background: #0e243f;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: border-color 0.4s;
}
.photo-card:hover {
  border-color: var(--accent);
}
.photo-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-dark);
  font: 500 9px var(--font-mono);
  letter-spacing: 0.1em;
}
.photo-tag { color: var(--text-light-muted); }
.photo-status {
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 6px;
}
.story-photo {
  position: relative;
  overflow: hidden;
  background: #09182b;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.story-photo img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 580px;
  object-fit: contain;
  filter: saturate(0.9) contrast(1.04);
  transition: transform 0.7s var(--ease-out), filter 0.7s;
}
.photo-card:hover .story-photo img {
  transform: scale(1.02);
  filter: saturate(1) contrast(1.05);
}
.photo-card-footer {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border-top: 1px solid var(--border-dark);
  background: rgba(255,255,255,0.015);
}
.photo-meta-item {
  padding: 10px 12px;
  border-right: 1px solid var(--border-dark);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.photo-meta-item:last-child { border-right: none; }
.meta-label {
  font: 500 8px var(--font-mono);
  letter-spacing: 0.12em;
  color: var(--text-light-muted);
}
.meta-value {
  font: 500 9px var(--font-mono);
  color: #e0ded8;
  line-height: 1.35;
}

/* Story Right Column */
.story-right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
}
.story-body { font-size: 15px; color: #bcb8b0; }
.story-body p { margin: 0 0 12px; line-height: 1.65; }
.story-body strong { color: #fff; }

/* Domain Matrix */
.domain-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.domain-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font: 500 9px var(--font-mono);
  letter-spacing: 0.12em;
}
.block-label { color: var(--text-light-muted); }
.domain-hint { color: var(--accent); }
.domain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.domain-node {
  border: 1px solid var(--border-dark);
  padding: 12px 14px;
  cursor: pointer;
  background: rgba(255,255,255,0.015);
  transition: background 0.3s, border-color 0.3s, transform 0.3s var(--ease-out);
}
.domain-node:hover {
  border-color: var(--accent);
  background: rgba(63, 114, 175,0.08);
  transform: translateY(-2px);
}
.domain-node.active {
  border-color: var(--accent);
  background: rgba(63, 114, 175,0.14);
}
.domain-icon { font-size: 16px; display: block; margin-bottom: 6px; }
.domain-node h4 { font-size: 13px; margin: 0 0 3px; letter-spacing: -0.02em; }
.domain-preview {
  font: 400 9px var(--font-mono);
  color: var(--text-light-muted);
  margin: 0;
  line-height: 1.4;
}

/* ── CURRENTLY BUILDING PANEL (ACTIVE PROFESSIONAL SNAPSHOT) ── */
.currently-building-panel {
  border: 1px solid var(--border-dark);
  background: rgba(255, 255, 255, 0.02);
  padding: 18px 20px;
  position: relative;
  margin-bottom: 8px;
}
.building-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.building-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.live-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 10px #22c55e;
}
.building-kicker {
  font: 700 9px var(--font-mono);
  letter-spacing: 0.14em;
  color: var(--accent);
}
.building-subtag {
  font: 600 8.5px var(--font-mono);
  letter-spacing: 0.08em;
  color: var(--text-light-muted);
}
.building-headline {
  font-size: 20px;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 0 0 14px;
}
.building-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}
.building-card {
  border: 1px solid var(--border-dark);
  background: rgba(255, 255, 255, 0.025);
  padding: 12px 12px 10px;
  border-radius: 2px;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}
.building-card:hover {
  border-color: var(--accent);
  background: rgba(63, 114, 175, 0.06);
  transform: translateY(-2px);
}
.building-card.founder-building-card {
  border-color: rgba(63, 114, 175, 0.4);
  background: rgba(63, 114, 175, 0.04);
}
.building-role-badge {
  font: 700 8px var(--font-mono);
  letter-spacing: 0.12em;
  color: #22c55e;
  margin-bottom: 6px;
  text-transform: uppercase;
}
.building-role-badge.founder-badge {
  color: var(--accent);
}
.building-org {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 4px;
}
.building-association {
  font-size: 11px;
  color: var(--text-light-muted);
  margin-bottom: 8px;
  line-height: 1.35;
}
.building-status {
  margin-top: auto;
  font: 500 8.5px var(--font-mono);
  color: #a8a49c;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Story Metrics Strip */
.story-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.story-metric-card {
  border: 1px solid var(--border-dark);
  background: rgba(255,255,255,0.015);
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color 0.3s, transform 0.3s;
}
.story-metric-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.story-metric-card strong {
  font: 800 18px var(--font-mono);
  color: var(--accent);
  letter-spacing: -0.03em;
}
.story-metric-card small {
  font: 400 9px var(--font-mono);
  color: var(--text-light-muted);
  line-height: 1.35;
}

/* Anchored Bottom Bar */
.story-bottom-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-dark);
  padding-top: 18px;
  margin-top: 4px;
}
.story-signature {
  font: 600 11px var(--font-mono);
  letter-spacing: 0.2em;
  color: #F9F7F7;
}
.story-avail {
  font: 500 10px var(--font-mono);
  color: var(--text-light-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ── WORK / PROJECTS ────────────────────────────────────────── */
.work-head {
  display: flex; align-items: end; justify-content: space-between;
  gap: 30px; margin-bottom: 35px;
}
.work h2, .experience-head h2 {
  font-size: clamp(52px, 7vw, 108px);
  line-height: 0.85; letter-spacing: -0.07em; margin: 0;
}
.work-head p, .experience-head p { max-width: 360px; color: var(--text-dim); }

/* Filter Bar */
.filter-bar {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 40px;
}
.filter-btn {
  font: 500 10px var(--font-mono); letter-spacing: 0.08em;
  border: 1px solid var(--border-mid); background: transparent;
  padding: 8px 14px; cursor: pointer;
  transition: all 0.3s;
}
.filter-btn:hover { border-color: var(--text); }
.filter-btn.active {
  background: var(--text); color: var(--bg); border-color: var(--text);
}

/* Project Cards */
.project { cursor: pointer; }
.project-media {
  position: relative; overflow: hidden; background: var(--bg-card);
}
.project-media img {
  display: block; width: 100%;
  aspect-ratio: 16/9; object-fit: cover;
  transition: transform 0.7s var(--ease-out);
  filter: saturate(0.85);
}
.project-featured:hover img { transform: scale(1.025); }
.media-overlay {
  position: absolute; inset: auto 18px 18px auto;
  background: var(--bg); color: var(--text);
  padding: 10px 12px; font: 500 9px var(--font-mono);
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.3s, transform 0.3s var(--ease-out);
}
.project-featured:hover .media-overlay { opacity: 1; transform: none; }
.project-info {
  padding: 14px 0 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.project-index {
  color: var(--text-dim);
  font: 600 9.5px var(--font-mono);
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.project h3 {
  font-size: clamp(20px, 1.8vw, 26px);
  letter-spacing: -0.04em;
  margin: 0 0 6px;
  color: var(--text);
  transition: color 0.3s;
}
.project-card:hover h3 {
  color: var(--accent);
}
.project-info p {
  max-width: 620px;
  color: var(--text-muted);
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.55;
  min-height: 40px;
}
.project-info .tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: auto;
}
.tags span {
  font: 500 8px var(--font-mono);
  border: 1px solid var(--border-mid);
  padding: 4px 7px;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.tags span:hover {
  background: var(--text);
  color: var(--bg);
}

/* ── PROJECT CARD ACTIONS & VISUAL HOVER ─────────────────────── */
.project-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border-mid);
}

.action-btn-visual,
.action-btn-github {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 12px;
  font: 600 10px var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none !important;
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
  border: 1px solid var(--border-mid);
  white-space: nowrap;
  box-sizing: border-box;
}

.action-btn-visual {
  background: #edf2f9 !important;
  color: #112D4E !important;
  border: 1px solid #b8c8dd !important;
  font-weight: 700;
}

.action-btn-visual:hover {
  background: #3F72AF !important;
  color: #ffffff !important;
  border-color: #3F72AF !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(63, 114, 175, 0.25);
}

.action-btn-github {
  background: #112D4E !important;
  color: #ffffff !important;
  border: 1px solid #112D4E !important;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(17, 45, 78, 0.18);
}

.action-btn-github:link,
.action-btn-github:visited {
  color: #ffffff !important;
  text-decoration: none !important;
  background: #112D4E !important;
}

.action-btn-github:hover {
  background: #3F72AF !important;
  color: #ffffff !important;
  border-color: #3F72AF !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(63, 114, 175, 0.35);
  text-decoration: none !important;
}

.action-btn-github .btn-arrow {
  font-size: 11px;
  transition: transform 0.2s;
}

.action-btn-github:hover .btn-arrow {
  transform: translate(2px, -2px);
}

/* Visual Hover Pill Overlay - Hidden on touch / shown on desktop hover */
.visual-hover-pill {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(17, 45, 78, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(219, 226, 239, 0.25);
  color: #F9F7F7;
  padding: 5px 10px;
  font: 600 9px var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 5px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s var(--ease-out);
  z-index: 4;
}

.project-card:hover .visual-hover-pill {
  opacity: 1;
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(63, 114, 175, 0.3);
}

/* Modal Live Visuals Showcase */
.modal-visual-showcase {
  margin-bottom: 22px;
  background: #0d0e12;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  position: relative;
}

.modal-visual-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font: 600 9.5px var(--font-mono);
  letter-spacing: 0.12em;
}

.modal-visual-pill {
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 6px;
}

.modal-visual-badge {
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #aaa;
  font-size: 8.5px;
}

.modal-visual-viewport {
  min-height: 220px;
  max-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  background: radial-gradient(circle at 50% 50%, rgba(63, 114, 175, 0.06), transparent 70%);
  overflow: hidden;
}

.modal-visual-viewport > * {
  max-width: 92%;
  max-height: 100%;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Project Visuals & Aligned Hover Architecture */
.project-card {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  position: relative;
  transition: transform 0.35s var(--ease-out);
}
.project-card.is-hidden {
  display: none !important;
}
.project-card.filter-anim {
  animation: filterCardFade 0.22s var(--ease-out) forwards;
  will-change: opacity, transform;
}
@keyframes filterCardFade {
  from {
    opacity: 0.15;
    transform: translateY(8px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.project-visual {
  aspect-ratio: 1.3;
  width: 100%;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-mid);
  transition: border-color 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.project-card:hover .project-visual {
  border-color: var(--accent);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}
.visual-survival {
  background: #0f2642;
  position: relative;
  overflow: hidden;
}
.visual-survival img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease-out);
}
.project-card:hover .visual-survival img {
  transform: scale(1.08);
}
.visual-conveyor { background: #153457; }
.conveyor-track {
  display: flex; gap: 15px; transform: rotate(-5deg);
  background: #d9d2c5; padding: 22px 30px;
  border-top: 8px solid #a69f93; border-bottom: 8px solid #a69f93;
  box-shadow: 0 15px 0 rgba(0,0,0,0.2);
}
.conveyor-track span {
  font-size: 38px; background: #eee8dc; border: 1px solid #aaa398;
  width: 60px; height: 60px; display: grid; place-items: center;
}
.visual-jarvis { background: #111; color: #ddd; }
.terminal {
  border: 1px solid #555; padding: 24px 28px;
  display: flex; flex-direction: column; gap: 8px;
  font: 11px var(--font-mono); min-width: 70%;
}
.terminal strong { margin-top: 8px; color: #fff; }
.visual-fijs { background: #eaf0f8; flex-direction: column; }
.fashion-word {
  font-size: clamp(70px, 10vw, 130px);
  font-weight: 800; letter-spacing: -0.1em;
}
.fashion-sub { font: 500 9px var(--font-mono); letter-spacing: 0.2em; }
.visual-medai { background: #eaf0f8; }
.medai-card {
  width: 60%; aspect-ratio: 1.45; background: #fff;
  border: 1px solid #bbb4a8; padding: 25px;
  display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: 12px 12px 0 #DBE2EF;
  transition: box-shadow 0.4s var(--ease-out);
}
.project-card:hover .medai-card { box-shadow: 8px 8px 0 #DBE2EF; }
.medai-card span { font: 700 22px var(--font-mono); }
.medai-card small { color: #777; font: 10px var(--font-mono); }
.medai-card i { align-self: end; font-style: normal; font-size: 35px; }
.visual-retail { background: #e3ecf7; }
.spreadsheet {
  width: 66%; display: grid; grid-template-columns: 1fr;
  background: #f7f5f0; border: 1px solid #999; padding: 20px;
  font: 10px var(--font-mono);
}
.spreadsheet > * { padding: 9px; border-bottom: 1px solid #bbb; }
.visual-label { position: absolute; left: 15px; bottom: 14px; color: #777; }

/* New project visuals */
.visual-smartattend { background: #1a1a2e; color: #e0e0e0; flex-direction: column; }
.cv-visual {
  width: 65%; aspect-ratio: 1; border: 2px solid #4a4a6a;
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 10px; position: relative;
  overflow: hidden;
}
.cv-scan-line {
  position: absolute; width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: scan 2.5s ease-in-out infinite;
}
@keyframes scan { 0%, 100% { top: 10%; } 50% { top: 90%; } }
.cv-label { font: 700 18px var(--font-mono); }
.cv-visual small { font: 10px var(--font-mono); color: #888; }

.visual-civic { background: #e8f0f9; flex-direction: column; }
.civic-icon { text-align: center; }
.civic-icon span { font-size: 60px; display: block; }
.civic-icon small { font: 500 12px var(--font-mono); letter-spacing: 0.12em; }

.visual-skf { background: #e0ebf7; flex-direction: column; gap: 8px; }
.skf-visual { text-align: center; }
.skf-visual b { font-size: 36px; letter-spacing: 0.1em; display: block; }
.skf-visual span { font: 700 48px var(--font-mono); color: var(--accent); }
.visual-skf small { font: 500 10px var(--font-mono); color: var(--text-dim); display: block; }

/* Visuals for New Verified Projects (10 to 15) */
.visual-batteryx { background: #131a14; color: #34d399; flex-direction: column; }
.batteryx-visual { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.battery-icon { font-size: 46px; }
.battery-metric { font: 800 24px var(--font-mono); color: #10b981; letter-spacing: -0.02em; }
.batteryx-visual small { font: 600 10px var(--font-mono); color: #9ca3af; letter-spacing: 0.1em; }

.visual-grainshield { background: #1e1b15; color: #fbbf24; flex-direction: column; }
.grainshield-visual { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.grain-icon { font-size: 46px; }
.grain-metric { font: 800 18px var(--font-mono); color: var(--accent); letter-spacing: 0.08em; }
.grainshield-visual small { font: 600 10px var(--font-mono); color: #a8a29e; letter-spacing: 0.1em; }

.visual-amr { background: #151b22; color: #60a5fa; flex-direction: column; }
.amr-visual { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.amr-icon { font-size: 46px; }
.amr-metric { font: 800 20px var(--font-mono); color: #38bdf8; letter-spacing: 0.05em; }
.amr-visual small { font: 600 10px var(--font-mono); color: #94a3b8; letter-spacing: 0.1em; }

.visual-endless { background: #1b1622; color: #c084fc; flex-direction: column; }
.runner-visual { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.runner-icon { font-size: 46px; }
.runner-metric { font: 800 18px var(--font-mono); color: #a855f7; letter-spacing: 0.06em; }
.runner-visual small { font: 600 10px var(--font-mono); color: #cbd5e1; letter-spacing: 0.1em; }

.visual-flappy { background: #14201c; color: #4ade80; flex-direction: column; }
.flappy-visual { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.flappy-icon { font-size: 46px; }
.flappy-metric { font: 800 18px var(--font-mono); color: #22c55e; letter-spacing: 0.05em; }
.flappy-visual small { font: 600 10px var(--font-mono); color: #94a3b8; letter-spacing: 0.1em; }

.visual-express { background: #18181b; color: #f43f5e; flex-direction: column; }
.express-visual { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.express-icon { font-size: 46px; color: var(--accent); }
.express-metric { font: 800 20px var(--font-mono); color: #fff; letter-spacing: 0.08em; }
.express-visual small { font: 600 10px var(--font-mono); color: #a1a1aa; letter-spacing: 0.1em; }

/* Visual Zoom Hover Effects (Show in big while keeping text aligned) */
.visual-survival img,
.fashion-word,
.medai-card,
.terminal,
.conveyor-track,
.spreadsheet,
.cv-visual,
.civic-icon,
.skf-visual {
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}
.project-card:hover .visual-survival img {
  transform: scale(1.08);
}
.project-card:hover .fashion-word {
  transform: scale(1.08);
}
.project-card:hover .medai-card {
  transform: scale(1.06) translateY(-2px);
  box-shadow: 14px 14px 0 #DBE2EF;
}
.project-card:hover .terminal {
  transform: scale(1.04);
}
.project-card:hover .conveyor-track {
  transform: rotate(-3deg) scale(1.06);
}
.project-card:hover .spreadsheet {
  transform: scale(1.05);
}
.project-card:hover .cv-visual {
  transform: scale(1.06);
  border-color: var(--accent);
}
.project-card:hover .civic-icon {
  transform: scale(1.12);
}
.project-card:hover .skf-visual {
  transform: scale(1.08);
}

/* ── PROJECTS TOGGLE WRAPPER ────────────────────────────────── */
.projects-toggle-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 36px;
}
.projects-toggle-wrap .btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 28px;
  font: 600 11px var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--text);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
}
.projects-toggle-wrap .btn:hover {
  background: var(--text);
  color: var(--bg);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}
.btn-arrow {
  font-size: 13px;
  transition: transform 0.3s;
}
.projects-toggle-wrap .btn:hover .btn-arrow {
  transform: translateY(2px);
}


/* ── METHOD ─────────────────────────────────────────────────── */
.build-method { background: var(--bg-mid); }
.method-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8vw; }
.method-intro h2 {
  font-size: clamp(48px, 5.5vw, 92px);
  line-height: 0.88; letter-spacing: -0.065em; margin: 12px 0 16px;
}
.method-row { display: block; }
.method-lead {
  max-width: 440px; color: var(--text-muted); font-size: 15px; line-height: 1.6; margin: 14px 0 0;
}
.method-list { border-top: 1px solid var(--border-warm); }
.method-item {
  display: grid; grid-template-columns: 45px 1fr; gap: 15px;
  padding: 24px 0; border-bottom: 1px solid var(--border-warm);
  transition: background 0.3s;
}
.method-item:hover { background: rgba(0,0,0,0.02); }
.method-item > span { font: 700 11px var(--font-mono); color: var(--accent); padding-top: 4px; }
.method-item h3 { font-size: 22px; margin: 0 0 5px; letter-spacing: -0.04em; }
.method-item p { margin: 0; color: var(--text-muted); line-height: 1.55; }

/* ── FOUNDER JOURNEY (VENTURES I BUILD) ─────────────────────── */
.founder-journey {
  background: var(--bg-dark);
  color: var(--text-light);
  border-top: 1px solid #244973;
}
.founder-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.founder-head h2 {
  font-size: clamp(38px, 5.2vw, 84px);
  line-height: 0.9;
  letter-spacing: -0.06em;
  margin: 10px 0 0;
  color: #fff;
}
.founder-head h2 em {
  color: var(--accent);
}
.founder-lead {
  max-width: 480px;
  color: var(--text-light-muted);
  font-size: 14.5px;
  line-height: 1.55;
  margin: 0;
}
.founder-timeline-flow {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}
.founder-card {
  border: 1px solid var(--border-dark);
  background: rgba(255, 255, 255, 0.025);
  padding: 28px 30px;
  border-radius: 2px;
  position: relative;
  transition: all 0.3s var(--ease-out);
}
.founder-card:hover {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.045);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
.founder-card.predator-card {
  border-color: rgba(63, 114, 175, 0.45);
  background: rgba(63, 114, 175, 0.035);
}
.founder-card.predator-card:hover {
  border-color: var(--accent);
  background: rgba(63, 114, 175, 0.08);
}
.founder-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}
.founder-card-badge {
  font: 700 9px var(--font-mono);
  letter-spacing: 0.12em;
  padding: 4px 10px;
  border-radius: 2px;
  background: rgba(63, 114, 175, 0.12);
  color: var(--accent);
  border: 1px solid rgba(63, 114, 175, 0.3);
}
.founder-date-badge {
  font: 600 10px var(--font-mono);
  color: #fff;
  letter-spacing: 0.08em;
}
.founder-brand-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}
.founder-brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 4px;
  background: #163961;
  border: 1px solid var(--border-dark);
  color: var(--accent);
  display: grid;
  place-items: center;
  font: 800 15px var(--font-mono);
  letter-spacing: 0.05em;
  flex-shrink: 0;
}
.founder-brand-logo.predator-logo {
  border-color: var(--accent);
  background: rgba(63, 114, 175, 0.15);
  color: #fff;
}
.founder-brand-row h3 {
  font-size: clamp(20px, 2.5vw, 26px);
  margin: 0 0 3px;
  letter-spacing: -0.03em;
  color: #fff;
}
.founder-venture-tagline {
  font: 500 12px var(--font-mono);
  color: var(--text-light-muted);
  margin: 0;
}
.founder-desc {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 18px;
  max-width: 820px;
}
.founder-highlights {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.highlight-pill {
  font: 500 10.5px var(--font-mono);
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: #d1cfc7;
}
.founder-status-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 600 10px var(--font-mono);
  letter-spacing: 0.08em;
  color: #22c55e;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.status-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
}

/* Flow Connector between ventures */
.founder-flow-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 4px 0;
}
.connector-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(63, 114, 175, 0.4), transparent);
}
.connector-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid rgba(63, 114, 175, 0.35);
  background: #181716;
  font: 700 9px var(--font-mono);
  color: var(--accent);
  letter-spacing: 0.1em;
}
.connector-arrow {
  font-size: 11px;
}

/* ── EXPERIENCE TIMELINE ────────────────────────────────────── */
.experience-head {
  display: flex; justify-content: space-between; align-items: end;
  gap: 30px; margin-bottom: 70px;
}
/* ── LINE-WISE SYSTEMATIC TIMELINE ──────────────────────────── */
.timeline-container {
  position: relative;
  padding-left: 38px;
  margin-top: 40px;
}
/* The continuous vertical timeline line */
.timeline-container::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 10px;
  bottom: 20px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--border-mid) 25%, var(--border-mid) 85%, transparent 100%);
}

.timeline-year-group {
  margin-bottom: 45px;
  position: relative;
}
.timeline-year-group:last-child {
  margin-bottom: 0;
}

/* Year Badge on the line */
.timeline-year-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--bg);
  border: 1px solid var(--border-mid);
  padding: 6px 14px 6px 10px;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
  box-shadow: 0 4px 15px rgba(0,0,0,0.04);
}
.year-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
  display: inline-block;
}
.timeline-year-badge strong {
  font: 700 15px var(--font-mono);
  color: var(--text);
  letter-spacing: 0.05em;
}
.timeline-year-badge small {
  font: 600 9px var(--font-mono);
  color: var(--accent);
  letter-spacing: 0.12em;
}

/* Timeline Items list */
.timeline-items {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.timeline-item {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  padding: 22px 26px;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}
.timeline-item:hover {
  border-color: var(--accent);
  transform: translateX(4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.timeline-item.expanded {
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 8px 28px rgba(63, 114, 175,0.08);
}

/* Marker Node sitting on the vertical line */
.timeline-marker {
  position: absolute;
  left: -33px;
  top: 26px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--border-mid);
  transition: all 0.3s var(--ease-out);
  z-index: 2;
}
.timeline-item:hover .timeline-marker,
.timeline-item.expanded .timeline-marker {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 5px var(--accent-glow);
  transform: scale(1.15);
}

.timeline-date {
  font: 600 10px var(--font-mono);
  color: var(--accent);
  letter-spacing: 0.12em;
  margin-bottom: 6px;
}
.timeline-role-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 4px;
}
.timeline-role h3 {
  font-size: 22px;
  letter-spacing: -0.04em;
  margin: 0;
  color: var(--text);
  transition: color 0.3s;
}
.timeline-item:hover .timeline-role h3 {
  color: var(--accent);
}
.timeline-badge {
  font: 600 8.5px var(--font-mono);
  letter-spacing: 0.1em;
  padding: 3px 8px;
  border: 1px solid var(--border-mid);
  background: var(--bg);
  color: var(--text-dim);
  border-radius: 2px;
}
.timeline-badge.active {
  border-color: #16a34a;
  color: #15803d;
  background: rgba(34, 197, 94, 0.08);
  font-weight: 700;
}
.timeline-badge.completed {
  border-color: var(--border-mid);
  color: var(--text-dim);
  background: rgba(0, 0, 0, 0.03);
}
.timeline-badge.founder {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(63, 114, 175, 0.09);
  font-weight: 700;
}
.timeline-assoc {
  font-style: normal;
  font-size: 11.5px;
  color: var(--accent);
  font-weight: 600;
}
.timeline-role strong {
  display: block;
  font-size: 13.5px;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.timeline-role p {
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.55;
  margin: 0;
}
.timeline-details {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.45s var(--ease-out), opacity 0.35s, margin 0.35s;
  margin: 0;
  padding-left: 18px;
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.5;
}
.timeline-details li {
  margin: 6px 0;
}
.timeline-item.expanded .timeline-details {
  max-height: 500px;
  opacity: 1;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
}
.expand-hint {
  display: inline-block;
  font: 500 10px var(--font-mono);
  color: var(--accent);
  margin-top: 12px;
  letter-spacing: 0.08em;
  transition: opacity 0.3s;
}
.timeline-item.expanded .expand-hint {
  opacity: 0;
}

/* ── 05 CODE ARCHIVE & ENGINEERING LAB ─────────────────────── */
.code-archive {
  background: var(--bg-dark);
  color: var(--text-light);
  border-top: 1px solid #244973;
}
.code-archive .section-label {
  color: var(--text-light-muted);
}
.archive-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.archive-head h2 {
  font-size: clamp(44px, 6vw, 90px);
  line-height: 0.9;
  letter-spacing: -0.06em;
  margin: 10px 0 0;
  color: #fff;
}
.archive-head h2 em {
  color: var(--accent);
}
.archive-lead {
  max-width: 480px;
  color: var(--text-light-muted);
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0;
}

/* Lab Filter Bar */
.lab-filter-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}
.lab-tab-btn {
  font: 700 10.5px var(--font-mono);
  letter-spacing: 0.08em;
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid var(--border-dark);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-light-muted);
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
}
.lab-tab-btn:hover {
  border-color: var(--accent);
  color: #fff;
  background: rgba(63, 114, 175, 0.08);
}
.lab-tab-btn.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #000;
  font-weight: 800;
  box-shadow: 0 4px 16px rgba(63, 114, 175, 0.3);
}

/* Lab Grid & Cards */
.lab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}
.lab-card {
  border: 1px solid var(--border-dark);
  background: rgba(255, 255, 255, 0.025);
  padding: 24px;
  border-radius: 3px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s var(--ease-out);
  position: relative;
  overflow: hidden;
}
.lab-card:hover {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.045);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}
.lab-card.is-dimmed {
  display: none !important;
}
.lab-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.lab-badge {
  font: 700 8.5px var(--font-mono);
  letter-spacing: 0.12em;
  padding: 3px 8px;
  border-radius: 2px;
  text-transform: uppercase;
}
.lab-badge.ai-badge {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}
.lab-badge.game-badge {
  background: rgba(168, 85, 247, 0.1);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
}
.lab-badge.backend-badge {
  background: rgba(63, 114, 175, 0.12);
  color: var(--accent);
  border: 1px solid rgba(63, 114, 175, 0.3);
}
.lab-lang {
  font: 600 10px var(--font-mono);
  color: var(--text-light-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.lang-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}
.lang-dot.ts-dot { background: #3178c6; }
.lang-dot.py-dot { background: #3572A5; }
.lang-dot.cs-dot { background: #178600; }
.lang-dot.js-dot { background: #f7df1e; }

.lab-card-title-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 4px;
}
.lab-card-title-row h3 {
  font-size: 20px;
  margin: 0;
  letter-spacing: -0.03em;
  color: #fff;
}
.lab-year {
  font: 700 10px var(--font-mono);
  color: var(--accent);
}
.lab-tagline {
  font: 600 11.5px var(--font-mono);
  color: var(--text-light-muted);
  margin: 0 0 12px;
  line-height: 1.4;
}
.lab-desc {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
  margin: 0 0 16px;
  flex: 1 1 auto;
}
.lab-tech-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.lab-tech-tags span {
  font: 500 9.5px var(--font-mono);
  padding: 3px 8px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #ccc;
}
.lab-card-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.lab-action-btn {
  font: 700 9.5px var(--font-mono);
  letter-spacing: 0.08em;
  padding: 8px 12px;
  border-radius: 2px;
  border: 1px solid var(--border-dark);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
  flex: 1;
  text-align: center;
}
.lab-action-btn:hover {
  border-color: var(--accent);
  background: rgba(63, 114, 175, 0.15);
  color: var(--accent);
}
.lab-action-link {
  font: 700 9.5px var(--font-mono);
  letter-spacing: 0.08em;
  padding: 8px 12px;
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: var(--text-light-muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}
.lab-action-link:hover {
  border-color: #fff;
  color: #fff;
}

/* Archive Footer Banner */
.archive-footer-banner {
  margin-top: 36px;
  padding: 22px 28px;
  border: 1px solid var(--border-dark);
  background: rgba(255, 255, 255, 0.015);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.banner-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.gh-icon {
  font-size: 24px;
  color: var(--accent);
}
.banner-left strong {
  display: block;
  font: 700 12px var(--font-mono);
  letter-spacing: 0.1em;
  color: #fff;
  margin-bottom: 3px;
}
.banner-left p {
  font-size: 13px;
  color: var(--text-light-muted);
  margin: 0;
}

/* Related Build Items in Modal */
.related-build-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-dark);
}
.related-build-item strong {
  font-size: 12.5px;
  color: #fff;
}
.build-repo-btn {
  font: 700 9px var(--font-mono);
  color: var(--accent);
  text-decoration: none;
  padding: 4px 8px;
  border: 1px solid rgba(63, 114, 175, 0.35);
  background: rgba(63, 114, 175, 0.08);
  border-radius: 2px;
  transition: all 0.2s;
}
.build-repo-btn:hover {
  background: var(--accent);
  color: #000;
}

/* ── TECHNICAL WORKBENCH ────────────────────────────────────── */
.stack { background: var(--bg-dark); color: var(--text-light); }
.stack .section-label { color: var(--text-light-muted); }
.stack-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 40px; margin-bottom: 45px;
}
.stack-head h2 {
  font-size: clamp(48px, 6.5vw, 96px);
  line-height: 0.88; letter-spacing: -0.07em; margin: 12px 0 0;
  color: #fff;
}
.stack-head h2 em { color: var(--accent); }
.stack-head p:not(.eyebrow) {
  max-width: 460px; color: var(--text-light-muted); font-size: 15px; line-height: 1.6;
}

/* ── WORKBENCH CAPABILITY TABS ──────────────────────────────── */
.stack-filter-bar {
  margin-bottom: 28px;
}
.stack-filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.stack-tab-btn {
  font: 600 10.5px var(--font-mono);
  letter-spacing: 0.06em;
  padding: 8px 14px;
  border-radius: 20px;
  border: 1px solid var(--border-dark);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-light-muted);
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
}
.stack-tab-btn:hover {
  border-color: var(--accent);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.stack-tab-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 4px 14px rgba(63, 114, 175, 0.35);
}

.stack-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border-dark);
  border-left: 1px solid var(--border-dark);
}
.stack-block {
  min-height: 220px; border-right: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark); padding: 25px;
  transition: background 0.3s, transform 0.3s var(--ease-out), border-color 0.3s, opacity 0.3s, filter 0.3s;
  cursor: pointer; position: relative;
}
.stack-block.is-dimmed {
  opacity: 0.32;
  filter: grayscale(0.7);
}
.stack-block.is-highlighted {
  opacity: 1;
  filter: none;
  border-color: var(--accent);
  background: rgba(63, 114, 175, 0.06);
}
.stack-block:hover {
  background: rgba(255,255,255,0.04);
  border-color: var(--accent);
  transform: translateY(-3px);
}
.stack-block-top {
  display: flex; justify-content: space-between; align-items: center;
}
.stack-number { font: 9px var(--font-mono); color: var(--text-light-muted); }
.stack-inspect-icon {
  font: 600 13px var(--font-mono); color: var(--accent);
  transition: transform 0.3s;
}
.stack-block:hover .stack-inspect-icon {
  transform: translate(3px, -3px);
}
.stack-block h3 { font-size: 23px; margin: 25px 0 10px; }
.stack-block p { color: var(--text-light-muted); margin: 0; font-size: 14px; line-height: 1.7; }
.stack-related {
  font: 400 10px var(--font-mono); color: var(--accent);
  margin-top: 14px; opacity: 0;
  transition: opacity 0.3s;
}
.stack-block:hover .stack-related { opacity: 1; }

/* ── CREDENTIAL VAULT ───────────────────────────────────────── */
.credentials { background: var(--bg-warm); }
.credentials-head {
  margin-bottom: 50px;
}
.credentials-head h2 {
  font-size: clamp(48px, 6vw, 90px);
  line-height: 0.85; letter-spacing: -0.065em; margin: 10px 0;
}
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  align-items: start;
}
.cert-card {
  border: 1px solid var(--border-warm);
  background: var(--bg);
  padding: 20px;
  cursor: pointer;
  position: relative;
  align-self: start;
  min-height: 205px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s, border-color 0.3s;
}
.cert-front {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.cert-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  border-color: var(--accent);
}
.cert-icon {
  font-size: 22px;
  display: block;
  margin-bottom: 10px;
  line-height: 1;
}
.cert-card h3 {
  font-size: 14px;
  line-height: 1.35;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  min-height: 38px;
}
.cert-org {
  font: 400 10px var(--font-mono);
  color: var(--text-dim);
  line-height: 1.4;
  margin: 0 0 12px;
  min-height: 28px;
}
.cert-badge {
  font: 500 8px var(--font-mono);
  letter-spacing: 0.08em;
  border: 1px solid var(--border-mid);
  padding: 4px 8px;
  display: inline-block;
  align-self: flex-start;
  margin-top: auto;
}
.cert-back {
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height 0.5s var(--ease-out), opacity 0.4s, margin 0.4s;
}
.cert-card.expanded {
  border-color: var(--accent);
  box-shadow: 0 14px 36px rgba(63, 114, 175, 0.12);
}
.cert-card.expanded .cert-back {
  max-height: 300px; opacity: 1; margin-top: 18px;
  border-top: 1px solid var(--border-warm); padding-top: 16px;
}
.cert-detail-label {
  font: 500 9px var(--font-mono); letter-spacing: 0.12em;
  color: var(--text-dim); margin: 10px 0 2px;
}
.cert-detail-label:first-child { margin-top: 0; }
.cert-detail-value {
  font-size: 13px; margin: 0; color: var(--text);
}

/* ── ACHIEVEMENTS ───────────────────────────────────────────── */
.achievements-section { background: var(--bg); }
.achievements-head {
  margin-bottom: 40px;
}
.achievements-head h2 {
  font-size: clamp(48px, 6vw, 90px);
  line-height: 0.85; letter-spacing: -0.065em; margin: 10px 0;
}
.achievement-scroller {
  display: flex; gap: 14px;
  overflow-x: auto; overflow-y: hidden;
  padding: 10px 0 30px;
  scroll-snap-type: x proximity;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--border-mid) transparent;
}
.achievement-scroller::-webkit-scrollbar { height: 4px; }
.achievement-scroller::-webkit-scrollbar-track { background: transparent; }
.achievement-scroller::-webkit-scrollbar-thumb { background: var(--border-mid); border-radius: 2px; }
.achievement-scroller.dragging { cursor: grabbing; }
.ach-card {
  flex: 0 0 230px; scroll-snap-align: start;
  border: 1px solid var(--border-mid); padding: 20px;
  background: var(--bg);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s, border-color 0.4s;
  opacity: 0; transform: translateY(20px) scale(0.96);
}
.ach-card.visible {
  opacity: 1; transform: translateY(0) scale(1);
}
.ach-card:hover {
  transform: translateY(-6px) scale(1.04);
  box-shadow: 0 16px 40px rgba(0,0,0,0.1);
  border-color: var(--accent);
}
.ach-position {
  font: 800 40px var(--font-body);
  letter-spacing: -0.04em;
  color: var(--accent);
  margin-bottom: 8px;
  text-shadow: 0 0 20px var(--accent-glow);
  transition: text-shadow 0.4s, transform 0.4s var(--ease-spring);
}
.ach-card:hover .ach-position {
  text-shadow: 0 0 30px rgba(63, 114, 175,0.4);
  transform: scale(1.1);
}
.ach-position.ach-text {
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.08em;
  text-shadow: none;
}
.ach-card h3 {
  font-size: 13px; letter-spacing: -0.01em;
  margin: 0 0 4px;
}
.ach-comp { font: 500 9px var(--font-mono); color: var(--text-dim); margin: 0 0 2px; }
.ach-venue { font: 400 9px var(--font-mono); color: var(--text-dim); margin: 0 0 6px; }
.ach-team {
  font: 500 8px var(--font-mono); letter-spacing: 0.06em;
  color: var(--accent); margin: 0 0 4px;
}
.ach-note {
  font-size: 11px; color: var(--text-muted); margin: 0;
  border-top: 1px solid var(--border); padding-top: 6px;
  margin-top: 6px;
}
.scroll-hint {
  text-align: center; font: 400 10px var(--font-mono);
  color: var(--text-dim); margin-top: 6px;
}

/* ── EDUCATION ──────────────────────────────────────────────── */
.education { background: var(--bg-mid); }
.education-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 10vw;
}
.education-main h2 {
  font-size: clamp(55px, 6vw, 100px);
  line-height: 0.84; letter-spacing: -0.07em; margin: 12px 0 25px;
}
.education-main p { font-size: 18px; }
.education-main strong { font: 500 11px var(--font-mono); }
.education-side { border-top: 1px solid #99938a; }
.edu-item {
  padding: 23px 0; border-bottom: 1px solid #99938a;
  display: flex; flex-direction: column; gap: 6px;
  transition: background 0.3s;
}
.edu-item:hover { background: rgba(0,0,0,0.02); }
.edu-item span { font: 9px var(--font-mono); color: #6f6b64; }
.edu-item b { font-size: 17px; }
.edu-item small { color: #6f6b64; }

/* ── LEADERSHIP ─────────────────────────────────────────────── */
.leadership { background: var(--bg-dark); color: var(--text-light); }
.leadership .section-label { color: var(--text-light-muted); }
.leadership-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8vw;
}
.leadership-intro h2 {
  font-size: clamp(48px, 5vw, 80px);
  line-height: 0.88; letter-spacing: -0.06em; margin: 0 0 16px;
}
.leadership-intro p { color: var(--text-light-muted); max-width: 400px; }
.leadership-card {
  border: 1px solid var(--border-dark); padding: 30px;
  transition: border-color 0.3s;
}
.leadership-card:hover { border-color: var(--accent); }
.leadership-role .eyebrow { color: var(--text-light-muted); }
.leadership-role h3 { font-size: 22px; margin: 8px 0 4px; letter-spacing: -0.03em; }
.leadership-role strong { font-size: 12px; color: var(--text-light-muted); }
.leadership-activities {
  margin-top: 20px; padding-left: 18px; color: var(--text-light-muted);
  font-size: 13px;
}
.leadership-activities li { margin: 8px 0; }

/* ── MEMBERSHIPS ────────────────────────────────────────────── */
.memberships { background: var(--bg-warm); }
.membership-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  max-width: 900px;
}
.membership-card {
  border: 1px solid var(--border-warm); padding: 30px;
  background: var(--bg);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s, border-color 0.3s;
}
.membership-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
  border-color: var(--accent);
}
.membership-badge {
  font: 700 24px var(--font-mono); letter-spacing: 0.08em;
  color: var(--accent); margin-bottom: 14px;
}
.membership-card h3 { font-size: 18px; margin: 0 0 4px; letter-spacing: -0.02em; }
.membership-card strong { font-size: 12px; color: var(--text-dim); }
.membership-id { font: 500 11px var(--font-mono); color: var(--text); margin: 10px 0 2px; }
.membership-validity { font: 400 10px var(--font-mono); color: var(--text-dim); margin: 0 0 10px; }
.membership-card > p:last-child { font-size: 14px; color: var(--text-muted); margin: 0; }

/* ── SEMINARS ───────────────────────────────────────────────── */
.seminars { background: var(--bg); }
.seminar-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  max-width: 900px;
}
.seminar-card {
  border: 1px solid var(--border-mid); padding: 28px;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s, border-color 0.3s;
}
.seminar-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.06);
  border-color: var(--accent);
}
.seminar-card .eyebrow { display: block; margin-bottom: 10px; }
.seminar-card h3 { font-size: 17px; margin: 0 0 8px; letter-spacing: -0.02em; }
.seminar-card strong { font-size: 12px; color: var(--text-dim); display: block; margin-bottom: 10px; }
.seminar-card p { font-size: 14px; color: var(--text-muted); margin: 0; }

/* ── CONTACT ────────────────────────────────────────────────── */
.contact {
  background: var(--bg-dark); color: var(--text-light);
  min-height: 80vh; display: grid; place-items: center;
}
.contact-frame {
  width: min(1200px, 100%); border: 1px solid #244973;
  padding: 4.5vw; position: relative;
}
.contact-header {
  margin-bottom: 4px;
}
.contact-header h2 {
  font-size: clamp(38px, 4.8vw, 76px);
  line-height: 0.88; letter-spacing: -0.06em;
  margin: 12px 0 16px;
}
.contact-sub {
  max-width: 540px; color: var(--text-light-muted);
  font-size: 14.5px; line-height: 1.55;
  margin: 0;
}

/* Contact 2-Column Layout */
.contact-layout {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 4vw; margin-top: 0; align-items: start;
}
.contact-left-col {
  display: flex; flex-direction: column; gap: 24px;
}
.contact-right-col {
  display: flex; flex-direction: column;
}
.contact-ecosystem {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.contact-action {
  display: flex; flex-direction: column; gap: 4px;
  border: 1px solid var(--border-dark); padding: 16px 14px;
  text-decoration: none; color: var(--text-light);
  transition: border-color 0.3s, background 0.3s, transform 0.3s var(--ease-out);
  overflow: hidden;
}
.contact-action:hover {
  border-color: var(--accent); background: rgba(63, 114, 175,0.06);
  transform: translateY(-2px);
}
.contact-action-icon { font-size: 18px; margin-bottom: 2px; }
.contact-action-label {
  font: 500 9px var(--font-mono); letter-spacing: 0.1em;
  color: var(--text-light-muted);
}
.contact-action-value {
  font-size: 12px;
  color: var(--text-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.contact-details {
  display: flex; gap: 45px;
  padding-top: 20px; border-top: 1px solid var(--border-dark);
  margin-top: auto;
}
.contact-detail .eyebrow { color: var(--text-light-muted); display: block; margin-bottom: 6px; }
.contact-detail p { margin: 0; font-size: 14px; color: var(--text-light); }

/* Connect Form */
.contact-form-wrap {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-dark);
  padding: 28px 26px;
  backdrop-filter: blur(8px);
  border-radius: 2px;
  height: auto;
  align-self: start;
  box-sizing: border-box;
  transition: border-color 0.4s, box-shadow 0.4s;
}
@keyframes formHighlightPulse {
  0% { box-shadow: 0 0 0 0 rgba(63, 114, 175, 0.7); }
  50% { box-shadow: 0 0 35px 8px rgba(63, 114, 175, 0.4); border-color: var(--accent); }
  100% { box-shadow: 0 0 0 0 rgba(63, 114, 175, 0); }
}
.contact-form-wrap.highlight-pulse {
  animation: formHighlightPulse 1.8s ease-out;
  border-color: var(--accent) !important;
}
.form-header {
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 12px;
}
.form-kicker {
  font: 600 9px var(--font-mono);
  letter-spacing: 0.15em;
  color: var(--accent);
  display: block;
  margin-bottom: 6px;
}
.form-header h3 {
  font-size: 22px;
  letter-spacing: -0.04em;
  margin: 0 0 5px;
  color: #fff;
}
.form-header p {
  font-size: 13px;
  color: var(--text-light-muted);
  margin: 0;
}
.contact-form {
  display: flex;
  flex-direction: column;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 13px;
}
.form-field label {
  font: 600 10px var(--font-mono);
  letter-spacing: 0.12em;
  color: var(--text-light-muted);
}
.form-field label span {
  color: var(--accent);
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 11px 13px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-dark);
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  transition: border-color 0.25s, background 0.25s;
  border-radius: 2px;
  -webkit-appearance: none;
  box-sizing: border-box;
}
.form-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23d47d22' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.form-field select option {
  background: #181716;
  color: #fff;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.08);
}
.form-field-message textarea {
  min-height: 105px;
  resize: vertical;
}

/* Transmission Meta */
.form-transmission-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0 14px;
  font: 500 9.5px var(--font-mono);
  color: var(--text-light-muted);
  letter-spacing: 0.03em;
}
.form-transmission-meta .meta-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  flex-shrink: 0;
}

.form-submit-btn {
  width: 100%;
  padding: 14px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  margin-top: 4px;
  background: var(--accent);
  color: #fff;
  border: none;
  font: 700 11.5px var(--font-mono);
  letter-spacing: 0.1em;
  transition: background 0.3s, transform 0.2s, box-shadow 0.25s;
  box-shadow: 0 4px 16px rgba(63, 114, 175, 0.25);
}
.form-submit-btn:hover {
  background: #2c5788;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(63, 114, 175, 0.4);
}
.form-feedback {
  margin-top: 14px;
  padding: 10px 12px;
  font: 500 12px var(--font-mono);
  display: none;
  border: 1px solid transparent;
}
.form-feedback.success {
  display: block;
  background: rgba(46, 125, 50, 0.15);
  border-color: #2e7d32;
  color: #81c784;
}
.form-feedback.error {
  display: block;
  background: rgba(198, 40, 40, 0.15);
  border-color: #c62828;
  color: #e57373;
}

/* ── SITE FOOTER (LUXURY ARCHITECTURAL DESIGN) ──────────────── */
.site-footer {
  background: #0b1e35 !important;
  color: #F9F7F7 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 65px 5vw 35px;
  position: relative;
  z-index: 10;
}
.site-footer a {
  text-decoration: none !important;
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}
.footer-main {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 1.1fr;
  gap: 50px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none !important;
  color: #ffffff !important;
  margin-bottom: 16px;
}
.footer-brand:visited,
.footer-brand:hover {
  color: #ffffff !important;
}
.footer-brand-mark {
  width: 32px;
  height: 32px;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  display: grid;
  place-items: center;
  font: 700 11.5px var(--font-mono);
  background: rgba(63, 114, 175, 0.08);
}
.footer-brand-name {
  font: 700 13px var(--font-mono);
  letter-spacing: 0.12em;
  color: #ffffff !important;
}
.footer-mission {
  font-size: 13.5px;
  line-height: 1.6;
  color: #DBE2EF !important;
  max-width: 440px;
  margin: 0 0 22px;
}
.footer-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 6px 12px;
  border-radius: 20px;
  font: 600 9px var(--font-mono);
  letter-spacing: 0.08em;
  color: #DBE2EF !important;
}
.footer-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
}

.footer-heading {
  display: block;
  font: 700 9.5px var(--font-mono);
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 18px;
}
.footer-links-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
}
.footer-links-list li {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
.footer-links-list a {
  font: 500 12px var(--font-mono);
  color: #DBE2EF !important;
  text-decoration: none !important;
  transition: color 0.25s, transform 0.25s;
  display: inline-block;
}
.footer-links-list a:visited {
  color: #DBE2EF !important;
}
.footer-links-list a:hover {
  color: #ffffff !important;
  transform: translateX(4px);
}

.footer-social-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-social-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  text-decoration: none !important;
  color: #DBE2EF !important;
  font: 500 11.5px var(--font-mono);
  transition: all 0.25s ease;
}
.footer-social-chip:visited {
  color: #DBE2EF !important;
}
.footer-social-chip .chip-icon {
  font-size: 13px;
  color: var(--accent);
}
.footer-social-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent);
  color: #ffffff !important;
  transform: translateY(-2px);
}
.footer-social-chip.resume-chip {
  background: rgba(63, 114, 175, 0.15);
  border-color: rgba(63, 114, 175, 0.35);
  color: #ffffff !important;
  font-weight: 600;
}
.footer-social-chip.resume-chip:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.footer-bottom-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 25px;
  font: 500 10.5px var(--font-mono);
  color: #8fa5c1;
  letter-spacing: 0.06em;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-sep {
  color: var(--accent);
}

/* ── MODAL ──────────────────────────────────────────────────── */
.modal {
  position: fixed; inset: 0; z-index: 200;
  display: none; place-items: center; padding: 25px;
}
.modal.open { display: grid; }
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.65); backdrop-filter: blur(8px);
}
.modal-panel {
  position: relative;
  z-index: 1;
  background: var(--bg);
  width: min(840px, 94vw);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border-warm);
  box-shadow: 0 25px 80px rgba(0,0,0,0.3);
  padding: 0;
}
.modal-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding: 26px 36px 18px;
  background: var(--bg);
  border-bottom: 1px solid var(--border-mid);
  flex-shrink: 0;
}
.modal-header-info {
  flex: 1;
  min-width: 0;
}
.modal-header-info .eyebrow {
  margin-bottom: 4px;
}
.modal-header h2 {
  font-size: clamp(26px, 4vw, 44px);
  line-height: 0.95;
  letter-spacing: -0.05em;
  margin: 4px 0 0;
  color: var(--text);
}
.modal-close {
  position: static;
  background: none;
  border: 1px solid var(--border-mid);
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  font-size: 24px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.3s, color 0.3s, transform 0.3s;
}
.modal-close:hover {
  background: var(--text);
  color: var(--bg);
  transform: rotate(90deg);
}

.modal-body {
  overflow-y: auto;
  padding: 24px 36px 36px;
  flex: 1;
  overscroll-behavior: contain;
}
.modal-body > p:not(.eyebrow) {
  max-width: 680px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 22px;
}
.modal-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  margin-top: 10px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.modal-columns ul { padding-left: 18px; color: var(--text-muted); }
.modal-columns li { margin: 8px 0; font-size: 14px; }
.modal-impact {
  font: 500 11px var(--font-mono); color: var(--accent);
  margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--border);
}

/* Technical Workbench Modal Specifics */
.stack-modal-panel {
  background: #181716;
  color: #F9F7F7;
  border: 1px solid #244973;
}
.stack-modal-header {
  background: #181716;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.stack-modal-header h2 {
  color: #fff;
  font-size: clamp(24px, 3.5vw, 38px);
  letter-spacing: -0.04em;
}
.stack-modal-summary {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255,255,255,0.75);
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* ── BACK TO TOP FLOATING BUTTON ────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  background: var(--text);
  color: var(--bg);
  border: 1px solid var(--text);
  border-radius: 24px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.35s var(--ease-out);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(63, 114, 175, 0.4);
}
.back-to-top .top-icon {
  font-size: 15px;
  line-height: 1;
  font-weight: bold;
}
.back-to-top .top-label {
  font: 700 9px var(--font-mono);
  letter-spacing: 0.1em;
}
.stack-modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.stack-modal-tags span {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  color: #e5e5e5;
  padding: 5px 10px;
  font: 500 11px var(--font-mono);
  border-radius: 2px;
}
.stack-modal-projects {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.stack-modal-project-item {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 12px 14px;
}
.stack-modal-project-item strong {
  display: block;
  font-size: 14px;
  color: var(--accent);
  margin-bottom: 4px;
}
.stack-modal-project-item p {
  margin: 0;
  font-size: 12.5px;
  color: rgba(255,255,255,0.7);
  line-height: 1.45;
}
.stack-modal-creds {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.stack-modal-cred-item {
  font-size: 12.5px;
  color: rgba(255,255,255,0.8);
  padding-left: 14px;
  position: relative;
  line-height: 1.45;
}
.stack-modal-cred-item::before {
  content: "◆";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 8px;
  color: var(--accent);
}
.stack-modal-close {
  color: #fff !important;
  border-color: rgba(255,255,255,0.3) !important;
}
.stack-modal-close:hover {
  background: #fff !important;
  color: #000 !important;
}
.modal-footer-action {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: flex-end;
}
.stack-modal-close-btn {
  color: #fff;
  border-color: rgba(255,255,255,0.3);
  padding: 10px 20px;
}
.stack-modal-close-btn:hover {
  background: #fff;
  color: #000;
}

/* ── REVEAL ANIMATION ───────────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.75s ease, transform 0.75s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: none; }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 900px) {
  .site-header {
    height: 58px;
    padding: 0 5vw;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 60;
  }
  .nav { display: none; }
  .header-cta { display: none; }
  .menu-toggle { display: flex; }
  .brand .brand-name { display: none; }

  .header-actions {
    gap: 8px;
  }
  .header-hire-btn {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font: 700 11px var(--font-mono);
    letter-spacing: 0.06em;
    padding: 7px 16px;
    white-space: nowrap;
    margin: 0;
  }

  .mobile-nav {
    position: fixed;
    top: 58px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 55;
    background: rgba(242, 240, 234, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 24px 20px 45px;
    gap: 14px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateY(-100%);
    transition: transform 0.4s var(--ease-out);
    pointer-events: none;
  }
  .mobile-nav.open {
    transform: translateY(0);
    pointer-events: all;
  }
  .mobile-nav a {
    font: 600 16px var(--font-mono);
    letter-spacing: 0.04em;
    padding: 6px 12px;
  }
  .mobile-nav .mobile-resume {
    margin-top: 10px;
    font: 700 12px var(--font-mono);
    border: 1.5px solid var(--text);
    padding: 10px 20px;
    border-radius: 2px;
    background: var(--text);
    color: var(--bg);
  }

  .hero { grid-template-columns: 1fr; padding-top: 70px; }
  .engineering-core { width: min(80vw, 500px); justify-self: center; margin-top: 40px; }
  .hero-meta { position: static; margin-top: 50px; display: flex; gap: 20px; flex-wrap: wrap; }

  .story-header {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 35px;
    padding-bottom: 25px;
  }
  .story-grid,
  .education-grid,
  .leadership-grid { grid-template-columns: 1fr; }
  .method-grid { grid-template-columns: 1fr; gap: 35px; }

  .photo-card { max-width: 500px; margin: 0 auto; width: 100%; }
  .story-metrics { grid-template-columns: repeat(2, 1fr); gap: 8px; }

  .project-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .stack-head { display: block; margin-bottom: 28px; }
  .stack-head h2 { font-size: clamp(38px, 8vw, 68px); margin: 8px 0 12px; }
  .stack-head p:not(.eyebrow) { max-width: 100%; font-size: 14px; }
  .stack-grid { grid-template-columns: 1fr 1fr; gap: 12px; border: none; }
  .stack-block { min-height: auto; border: 1px solid var(--border-dark); padding: 20px; }
  .stack-related { opacity: 1; }
  .cert-grid { grid-template-columns: 1fr 1fr; align-items: start; }
  .membership-grid { grid-template-columns: 1fr; }
  .seminar-grid { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
  .contact-ecosystem { grid-template-columns: 1fr 1fr; }

  .experience-head, .work-head { display: block; }
  .experience-head p, .work-head p { margin-top: 20px; }
  .timeline-item { grid-template-columns: 1fr; gap: 8px; }
  .domain-grid { grid-template-columns: repeat(2, 1fr); }

  .contact-details { flex-direction: column; gap: 20px; }
  .section { padding: 70px 6vw; }
  .section-label { margin-bottom: 40px; }

  .credentials-head h2,
  .achievements-head h2 { font-size: clamp(40px, 5vw, 70px); }
}

@media (max-width: 600px) {
  .site-header { padding: 0 4vw; height: 62px; }
  .brand-mark { width: 28px; height: 28px; font-size: 9px; }
  .brand .brand-name { display: none; }
  .header-actions {
    gap: 6px;
  }
  .header-hire-btn {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font: 700 10.5px var(--font-mono);
    letter-spacing: 0.06em;
    padding: 6px 15px;
    white-space: nowrap;
    margin: 0;
  }
  .menu-toggle { padding: 4px; }

  .hero {
    min-height: auto;
    padding-top: 36px;
    padding-bottom: 24px;
    gap: 18px;
  }
  .hero h1 {
    font-size: clamp(38px, 11vw, 54px);
    margin: 12px 0 16px;
    line-height: 0.9;
  }
  .hero-lede {
    font-size: 14.5px;
    line-height: 1.5;
  }
  .hero-actions {
    margin-top: 20px;
    gap: 16px;
  }
  .engineering-core {
    width: min(62vw, 230px);
    aspect-ratio: 1;
    margin: 20px auto 10px;
    justify-self: center;
  }
  .core-chip {
    width: 114px;
    height: 114px;
    box-shadow: 0 0 0 10px rgba(23,23,23,0.035);
  }
  .core-chip strong {
    font-size: 11px;
    margin: 4px 0;
  }
  .core-chip small {
    font-size: 7.5px;
  }
  .core-chip .chip-kicker {
    font-size: 7px;
  }
  .core-node {
    font-size: 7.5px;
    padding: 4px 6px;
  }
  .hero-meta {
    position: static;
    margin-top: 22px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    row-gap: 6px;
    border-top: 1px solid var(--border);
    padding-top: 12px;
    font: 500 9px var(--font-mono);
    color: var(--text-dim);
  }
  .hero-meta span:nth-child(3) {
    grid-column: 1 / -1;
    color: var(--accent);
  }

  .section { padding: 50px 5vw; }
  .section-label { margin-bottom: 28px; }

  .story-header h2 { font-size: 12vw; }
  .story-lead { font-size: 14px; }
  .photo-card { width: 100%; }
  .photo-card-footer { grid-template-columns: 1fr; }
  .photo-meta-item { border-right: none; border-bottom: 1px solid var(--border-dark); padding: 8px 10px; }
  .photo-meta-item:last-child { border-bottom: none; }
  .story-metrics { grid-template-columns: 1fr 1fr; gap: 6px; }
  .story-metric-card { padding: 10px 8px; }
  .story-metric-card strong { font-size: 16px; }
  .story-bottom-bar { flex-direction: column; align-items: flex-start; gap: 8px; }

  .method-grid { gap: 20px; }
  .method-intro h2 {
    font-size: clamp(34px, 10.5vw, 52px);
    line-height: 0.92;
    letter-spacing: -0.06em;
    margin: 8px 0 10px;
    width: 100%;
  }
  .method-row {
    display: block;
    width: 100%;
    white-space: nowrap;
  }
  .method-lead {
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--text-muted);
    margin: 8px 0 18px;
    max-width: 100%;
  }
  .method-item {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 12px;
    padding: 14px 0;
    align-items: flex-start;
  }
  .method-item > span {
    font: 700 12px var(--font-mono);
    color: var(--accent);
    padding-top: 3px;
  }
  .method-item h3 {
    font-size: 18px;
    margin: 0 0 4px;
    letter-spacing: -0.03em;
  }
  .method-item p {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-muted);
  }

  .achievements-head h2,
  .credentials-head h2,
  .education-main h2,
  .leadership-intro h2 { font-size: 12vw; }

  .work h2, .experience-head h2 { font-size: clamp(36px, 10vw, 60px); }

  .story-body { font-size: 15px; }
  .story-body p { margin-bottom: 14px; }

  .project-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .project-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(17, 45, 78, 0.05);
  }
  .project-visual {
    height: 190px;
    min-height: 190px;
    width: 100%;
    aspect-ratio: 16/9;
  }
  .visual-hover-pill {
    display: none !important;
  }
  .visual-label {
    left: 10px;
    bottom: 8px;
    font-size: 8px;
    background: rgba(17, 45, 78, 0.75);
    padding: 2px 6px;
    border-radius: 2px;
  }
  .fashion-word {
    font-size: 42px;
    letter-spacing: -0.05em;
  }
  .fashion-sub {
    font-size: 7.5px;
    letter-spacing: 0.12em;
  }
  .medai-card {
    width: 82%;
    padding: 12px 14px;
    box-shadow: 6px 6px 0 #DBE2EF;
  }
  .medai-card span {
    font-size: 14px;
  }
  .medai-card small {
    font-size: 8px;
  }
  .medai-card i {
    font-size: 20px;
  }
  .terminal {
    padding: 10px 14px;
    gap: 4px;
    font-size: 9px;
    min-width: 85%;
  }
  .conveyor-track {
    gap: 8px;
    padding: 12px 18px;
    border-top-width: 5px;
    border-bottom-width: 5px;
  }
  .conveyor-track span {
    font-size: 22px;
    width: 38px;
    height: 38px;
  }
  .spreadsheet {
    width: 88%;
    padding: 10px 12px;
    font-size: 8.5px;
  }
  .spreadsheet > * {
    padding: 5px 0;
  }
  .cv-visual {
    width: 80%;
    gap: 6px;
  }
  .cv-label {
    font-size: 13px;
  }
  .cv-visual small {
    font-size: 8px;
  }
  .civic-icon span {
    font-size: 32px;
  }
  .civic-icon small {
    font-size: 8.5px;
  }
  .skf-visual b {
    font-size: 22px;
  }
  .skf-visual span {
    font-size: 26px;
  }
  .skf-visual small {
    font-size: 8px;
  }

  .project-info {
    padding: 16px 16px 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
  }
  .project-index {
    font: 600 8.5px var(--font-mono);
    color: var(--accent);
    letter-spacing: 0.1em;
  }
  .project h3 {
    font-size: 20px;
    margin: 4px 0 6px;
    letter-spacing: -0.03em;
    color: var(--text);
  }
  .project-info p {
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 12px;
    color: var(--text-dim);
    display: block;
  }
  .project-info .tags {
    gap: 6px;
    margin-top: auto;
    margin-bottom: 6px;
    display: flex;
    flex-wrap: wrap;
  }
  .project-info .tags span {
    font-size: 9px;
    padding: 3px 8px;
    border: 1px solid var(--border-mid);
    color: var(--text);
    background: rgba(219, 226, 239, 0.25);
  }
  .project-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
  }
  .action-btn-visual,
  .action-btn-github {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 8px;
    font: 700 9.5px var(--font-mono);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none !important;
    border-radius: 2px;
    box-sizing: border-box;
    white-space: nowrap;
    gap: 5px;
  }
  .action-btn-visual {
    background: #edf2f9 !important;
    color: #112D4E !important;
    border: 1px solid #b8c8dd !important;
    font-weight: 700 !important;
  }
  .action-btn-github {
    background: #112D4E !important;
    color: #ffffff !important;
    border: 1px solid #112D4E !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 6px rgba(17, 45, 78, 0.2);
  }

  .stack-head { display: block; margin-bottom: 22px; }
  .stack-head h2 { font-size: clamp(36px, 10vw, 52px); margin: 8px 0 10px; line-height: 0.9; }
  .stack-head p:not(.eyebrow) { font-size: 13px; line-height: 1.5; }

  .stack-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    border: none;
  }
  .stack-block {
    min-height: auto;
    border: 1px solid var(--border-dark);
    background: rgba(255, 255, 255, 0.02);
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  .stack-number {
    font: 600 8.5px var(--font-mono);
    color: var(--accent);
  }
  .stack-block h3 {
    margin: 6px 0 4px;
    font-size: 13px;
    letter-spacing: -0.02em;
  }
  .stack-block p {
    font-size: 10.5px;
    line-height: 1.45;
    color: var(--text-light-muted);
  }
  .stack-related {
    opacity: 1;
    display: inline-block;
    font: 500 8px var(--font-mono);
    margin-top: 8px;
    padding: 3px 5px;
    background: rgba(63, 114, 175, 0.08);
    border: 1px solid rgba(63, 114, 175, 0.2);
    border-radius: 2px;
    color: var(--accent);
    line-height: 1.25;
  }

  .cert-grid { grid-template-columns: 1fr 1fr; gap: 8px; align-items: start; }
  .cert-card { padding: 14px; min-height: 180px; }
  .cert-card h3 { font-size: 12px; min-height: 32px; }
  .cert-org { font-size: 9px; min-height: 24px; }
  .cert-icon { font-size: 18px; margin-bottom: 6px; }

  .domain-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .domain-node { padding: 12px; }
  .domain-node h4 { font-size: 12px; }

  /* Currently Building Panel Mobile */
  .currently-building-panel {
    padding: 14px 12px;
  }
  .building-headline {
    font-size: 17px;
    margin-bottom: 10px;
  }
  .building-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .building-card {
    padding: 10px 10px 8px;
  }
  .building-org {
    font-size: 12px;
  }

  /* Founder Journey Mobile */
  .founder-head {
    display: block;
    margin-bottom: 22px;
  }
  .founder-head h2 {
    font-size: clamp(28px, 7.5vw, 38px);
    line-height: 0.95;
    margin: 6px 0 8px;
  }
  .founder-lead {
    font-size: 13px;
    line-height: 1.5;
  }
  .founder-card {
    padding: 18px 16px;
  }
  .founder-brand-logo {
    width: 38px;
    height: 38px;
    font-size: 13px;
  }
  .founder-brand-row h3 {
    font-size: 18px;
  }
  .founder-venture-tagline {
    font-size: 11px;
  }
  .founder-desc {
    font-size: 12.5px;
    line-height: 1.5;
    margin-bottom: 14px;
  }
  .highlight-pill {
    font-size: 9.5px;
    padding: 3px 8px;
  }

  /* ── CODE ARCHIVE & LAB MOBILE ── */
  .archive-head {
    display: block;
    margin-bottom: 24px;
  }
  .archive-head h2 {
    font-size: clamp(30px, 8vw, 44px);
    line-height: 0.95;
    margin: 6px 0 8px;
  }
  .archive-lead {
    font-size: 13px;
    line-height: 1.5;
  }
  .lab-filter-bar {
    gap: 6px;
    margin-bottom: 20px;
  }
  .lab-tab-btn {
    font-size: 9.5px;
    padding: 6px 12px;
  }
  .lab-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .lab-card {
    padding: 18px 16px;
  }
  .lab-card-title-row h3 {
    font-size: 17px;
  }
  .archive-footer-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 16px;
    gap: 14px;
  }
  .archive-footer-banner .button {
    width: 100%;
    justify-content: center;
  }

  /* ── 06 CONTACT OPTIMIZED FOR MOBILE ── */
  .contact-frame {
    padding: 24px 14px;
  }
  .contact h2, .contact-header h2 {
    font-size: clamp(26px, 7.5vw, 36px);
    line-height: 0.95;
    letter-spacing: -0.04em;
    margin: 8px 0 10px;
  }
  .contact-sub {
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 16px;
    color: var(--text-light-muted);
  }
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 0;
  }
  .contact-ecosystem {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .contact-action {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 11px 10px;
    border: 1px solid var(--border-dark);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.25s ease;
    overflow: hidden;
  }
  .contact-action:hover, .contact-action:active {
    border-color: var(--accent);
    background: rgba(63, 114, 175, 0.08);
  }
  .contact-action-icon {
    font-size: 15px;
    margin-bottom: 4px;
    margin-right: 0;
    line-height: 1;
    color: var(--accent);
  }
  .contact-action-label {
    font: 600 8.5px var(--font-mono);
    letter-spacing: 0.08em;
    color: var(--text-light-muted);
    text-transform: uppercase;
    margin-bottom: 2px;
  }
  .contact-action-value {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
    margin: 0;
    padding: 0;
    width: 100%;
  }
  .contact-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border-dark);
  }
  .contact-detail .eyebrow {
    font-size: 8px;
    letter-spacing: 0.1em;
    margin-bottom: 4px;
    color: var(--text-light-muted);
  }
  .contact-detail p {
    font-size: 12px;
    line-height: 1.4;
    color: var(--text-light);
    margin: 0;
  }

  /* ── CONTACT FORM MOBILE OPTIMIZATION ── */
  .contact-form-wrap {
    padding: 18px 14px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--border-dark);
    border-radius: 4px;
  }
  .form-header h3 {
    font-size: 18px;
    margin: 0 0 4px;
    color: #fff;
  }
  .form-header p {
    font-size: 12px;
    line-height: 1.45;
    color: var(--text-light-muted);
  }
  .form-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .form-field {
    margin-bottom: 10px;
    gap: 4px;
  }
  .form-field label {
    font: 600 9px var(--font-mono);
    letter-spacing: 0.1em;
    color: var(--text-light-muted);
  }
  .form-field input,
  .form-field select,
  .form-field textarea {
    padding: 11px 12px;
    font-size: 14px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-dark);
    color: #fff;
    width: 100%;
    box-sizing: border-box;
  }
  .form-field select {
    background-position: right 12px center;
  }
  .form-field-message textarea {
    min-height: 90px;
  }
  .form-transmission-meta {
    font-size: 8.5px;
    margin: 2px 0 12px;
  }
  .form-submit-btn {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px 16px;
    font-size: 12px;
    letter-spacing: 0.06em;
  }

  /* ── JOURNEY IN MOTION (EXPERIENCE) SNUG MOBILE PACING ── */
  .experience-head {
    display: block;
    margin-bottom: 20px;
  }
  .experience-head h2 {
    font-size: clamp(26px, 7vw, 34px) !important;
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin: 6px 0 8px;
  }
  .experience-head p {
    font-size: 13px;
    line-height: 1.45;
    margin-top: 6px;
    max-width: 100%;
  }
  .timeline-container {
    padding-left: 20px;
    margin-top: 18px;
  }
  .timeline-container::before {
    left: 6px;
    top: 6px;
    bottom: 14px;
  }
  .timeline-marker {
    left: -17px;
    top: 18px;
    width: 8px;
    height: 8px;
  }
  .timeline-year-group {
    margin-bottom: 22px;
  }
  .timeline-year-badge {
    padding: 3px 8px;
    margin-bottom: 10px;
    gap: 6px;
  }
  .timeline-year-badge strong {
    font-size: 11.5px;
  }
  .timeline-year-badge small {
    font-size: 7.5px;
  }
  .timeline-items {
    gap: 10px;
  }
  .timeline-item {
    padding: 13px 12px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
  }
  .timeline-date {
    font-size: 9px;
    margin-bottom: 4px;
  }
  .timeline-role-header {
    gap: 6px;
    margin-bottom: 2px;
  }
  .timeline-role h3 {
    font-size: 15px;
    line-height: 1.25;
  }
  .timeline-badge {
    font-size: 7.5px;
    padding: 2px 6px;
  }
  .timeline-role strong {
    font-size: 11.5px;
    margin-bottom: 5px;
  }
  .timeline-role p {
    font-size: 12.5px;
    line-height: 1.45;
  }
  .timeline-details {
    font-size: 12px;
    line-height: 1.45;
    padding-left: 14px;
  }
  .timeline-details li {
    margin: 4px 0;
  }
  .expand-hint {
    font-size: 8.5px;
    margin-top: 8px;
  }

  .ach-card { flex: 0 0 190px; padding: 14px; }
  .ach-position { font-size: 32px; }
  .ach-card h3 { font-size: 12px; }

  .membership-card { padding: 20px; }
  .membership-card h3 { font-size: 16px; }
  .seminar-card { padding: 18px; }
  .seminar-card h3 { font-size: 14px; }

  .leadership-card { padding: 20px; }
  .leadership-activities { font-size: 12px; }

  .edu-item b { font-size: 15px; }

  /* ── SITE FOOTER MOBILE OPTIMIZATION ── */
  .site-footer {
    padding: 44px 5vw 28px !important;
    background: #0b1e35 !important;
    color: #F9F7F7 !important;
  }
  .footer-main {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
    padding-bottom: 28px !important;
  }
  .footer-brand {
    margin-bottom: 12px !important;
    color: #ffffff !important;
    text-decoration: none !important;
  }
  .footer-mission {
    font-size: 13px !important;
    line-height: 1.6 !important;
    margin-bottom: 16px !important;
    color: #DBE2EF !important;
  }
  .footer-links-list {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px 14px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .footer-links-list li {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .footer-links-list a {
    font-size: 12px !important;
    color: #DBE2EF !important;
    text-decoration: none !important;
    display: block !important;
    padding: 3px 0 !important;
  }
  .footer-links-list a:hover {
    color: #ffffff !important;
  }
  .footer-social-links {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
  }
  .footer-social-chip {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 10px 14px !important;
    font-size: 11px !important;
    color: #DBE2EF !important;
    text-decoration: none !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
  }
  .footer-social-chip.resume-chip {
    background: rgba(63, 114, 175, 0.2) !important;
    border-color: var(--accent) !important;
    color: #ffffff !important;
  }
  .footer-bottom-bar {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
    font-size: 9.5px !important;
    padding-top: 20px !important;
    color: #8fa5c1 !important;
  }
  .modal { padding: 12px; }
  .modal-panel {
    width: 95vw;
    max-height: 90vh;
    padding: 0;
  }
  .modal-header {
    padding: 16px 18px 14px;
    gap: 12px;
  }
  .modal-header h2 {
    font-size: clamp(20px, 6vw, 28px);
  }
  .modal-close {
    width: 32px;
    height: 32px;
    font-size: 20px;
  }
  .modal-body {
    padding: 18px 18px 28px;
  }
  .modal-columns { grid-template-columns: 1fr; gap: 20px; }
  .stack-modal-summary { font-size: 13px; }
  .project-info { padding-bottom: 30px; }
  .back-to-top {
    bottom: 20px;
    right: 18px;
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(63, 114, 175, 0.45);
  }
  .back-to-top .top-label {
    display: none !important;
  }
  .back-to-top .top-icon {
    font-size: 16px;
    margin: 0;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* ── REDUCED MOTION ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .ticker { animation: none; }
  .reveal { opacity: 1; transform: none; }
}
