/* ==========================================================================
   SHYAM ADHIKARI — SENIOR AI/ML & PYTHON ENGINEER PORTFOLIO
   Unified Precision Neural Editorial + Interactive Python Workbench Stylesheet
   ========================================================================== */

:root {
  --ink: #07090f;
  --ink-soft: #0c1019;
  --panel: #111724;
  --panel-elev: #151d2d;
  --paper: #f1f3ec;
  --text: #f4f6ef;
  --text-soft: #b2bcb6;
  --muted: #8b9690;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.22);
  --acid: #d8ff68;
  --aqua: #69f0d4;
  --blue: #7b8cff;
  --amber: #ffbe5c;
  --display: "Space Grotesk", "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;
  --body: "Inter", "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --shell: min(1240px, calc(100vw - 56px));
  --signal-h: 34px;
  --nav-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 112px;
  background: var(--ink);
}
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.62;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--display); }
.shell { width: var(--shell); margin-inline: auto; }

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  padding: 10px 16px;
  z-index: 120;
  background: var(--acid);
  color: #07090f;
  font-weight: 700;
  border-radius: 8px;
}
.skip-link:focus { top: 12px; }

/* ── Page Loader & Desktop Cursor Glow ─────────────────────────────────── */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--ink);
  pointer-events: none;
  transition: opacity 0.45s ease 0.08s, visibility 0.45s ease 0.08s;
}
.page-loader.done { opacity: 0; visibility: hidden; }
.page-loader-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--aqua), var(--acid));
  box-shadow: 0 0 18px var(--aqua);
  animation: loader-fill 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes loader-fill { to { width: 100%; } }

.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(105, 240, 212, 0.07) 0%, rgba(216, 255, 104, 0.02) 40%, transparent 65%);
  pointer-events: none;
  z-index: 35;
  transform: translate(calc(var(--cx, -300px) - 280px), calc(var(--cy, -300px) - 280px));
  transition: transform 0.18s ease-out, opacity 0.35s;
  opacity: 0;
  will-change: transform;
}
.cursor-glow.active { opacity: 1; }
@media (hover: none), (max-width: 900px) { .cursor-glow { display: none; } }

/* ── Top Credential Announcement Rail ──────────────────────────────────── */
.signal-bar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 70;
  min-height: var(--signal-h);
  padding: 7px 46px 7px 20px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  background: #d7ff68;
  color: #07100c;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(7, 16, 12, 0.14);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0.4s;
}
.signal-bar-message {
  grid-column: 2;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}
/* High-contrast obsidian pulse dot on lime background */
.signal-live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #071611;
  box-shadow: 0 0 0 3px rgba(7, 22, 17, 0.2);
  animation: signal-live 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes signal-live {
  50% { opacity: 0.5; box-shadow: 0 0 0 7px rgba(7, 22, 17, 0); }
}
.signal-bar a {
  grid-column: 3;
  justify-self: end;
  font-weight: 800;
  border-bottom: 1px solid rgba(7, 16, 12, 0.45);
  transition: opacity 0.2s;
  white-space: nowrap;
}
.signal-bar a:hover { opacity: 0.65; }
.signal-bar-close {
  position: absolute;
  right: 12px;
  top: 50%;
  width: 24px;
  height: 24px;
  margin-top: -12px;
  border: 0;
  background: none;
  color: #07100c;
  font: 20px/1 var(--body);
  cursor: pointer;
  opacity: 0.7;
}
.signal-bar-close:hover { opacity: 1; }
html.bar-dismissed .signal-bar { transform: translateY(-115%); visibility: hidden; }
html.bar-dismissed .site-header { top: 0; }

/* ── Sticky Navigation Shell ───────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: var(--signal-h);
  inset-inline: 0;
  z-index: 60;
  transition: top 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  animation: nav-drop 0.65s cubic-bezier(0.2, 0.8, 0.2, 1) 0.35s both;
}
@keyframes nav-drop {
  from { opacity: 0; transform: translateY(-18px); }
  to { opacity: 1; transform: none; }
}
.nav-shell {
  position: relative;
  width: 100%;
  min-height: var(--nav-h);
  padding-inline: clamp(16px, 3vw, 48px);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(6, 8, 13, 0.96);
  backdrop-filter: blur(24px) saturate(1.25);
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  width: max-content;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #07090f;
  background: var(--acid);
  font-family: var(--display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.04em;
  flex-shrink: 0;
}
.brand-copy {
  display: flex;
  flex-direction: column;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.brand-copy small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 6px;
  padding: 4px 10px 4px 8px;
  border: 1px solid rgba(105, 240, 212, 0.3);
  border-radius: 999px;
  background: rgba(105, 240, 212, 0.07);
  color: var(--aqua);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--aqua);
  box-shadow: 0 0 8px var(--aqua);
  animation: dot-blink 2.2s ease-in-out infinite;
}
@keyframes dot-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

.nav-links {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 28px);
  color: #b7c2bc;
  font-size: 13.5px;
  font-weight: 500;
}
.nav-links a {
  position: relative;
  padding: 4px 0;
  transition: color 0.22s ease;
  white-space: nowrap;
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--acid);
  border-radius: 999px;
  transition: width 0.28s ease;
}
.nav-links a:hover,
.nav-links a.nav-active { color: var(--text); }
.nav-links a:hover::after,
.nav-links a.nav-active::after { width: 100%; }

.nav-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 9px;
}
.nav-brief-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 13px;
  border: 1px solid rgba(216, 255, 104, 0.34);
  border-radius: 999px;
  background: rgba(216, 255, 104, 0.08);
  color: var(--acid);
  font-family: var(--body);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.22s, color 0.22s, transform 0.2s;
}
.nav-brief-btn:hover {
  background: var(--acid);
  color: #07090f;
  transform: translateY(-1px);
}
.brief-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.theme-toggle {
  position: relative;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: #cbd4d0;
  cursor: pointer;
  transition: border-color 0.22s, color 0.22s, transform 0.2s;
}
.theme-toggle:hover { border-color: var(--aqua); color: var(--aqua); transform: translateY(-1px); }
.theme-toggle span { position: absolute; line-height: 1; transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.22s; }
.theme-sun { font-size: 16px; opacity: 0; transform: translateY(20px) rotate(35deg); }
.theme-moon { font-size: 18px; opacity: 1; transform: none; }
html[data-theme="light"] .theme-sun { opacity: 1; transform: none; }
html[data-theme="light"] .theme-moon { opacity: 0; transform: translateY(-20px) rotate(-35deg); }

.nav-contact {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 38px;
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.22s, color 0.22s, border-color 0.22s, box-shadow 0.22s;
}
.nav-contact:hover {
  background: var(--acid);
  border-color: var(--acid);
  color: #07090f;
  box-shadow: 0 0 22px rgba(216, 255, 104, 0.25);
}

.mobile-menu-toggle {
  display: none;
  width: 38px;
  height: 38px;
  padding: 9px 8px;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}
.mobile-menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.scroll-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--aqua), var(--acid));
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  inset: calc(var(--signal-h) + var(--nav-h)) 0 0 0;
  z-index: 58;
  background: rgba(6, 9, 15, 0.97);
  backdrop-filter: blur(22px);
  padding: 28px 24px 36px;
  overflow-y: auto;
}
html.bar-dismissed .mobile-drawer { top: var(--nav-h); }
.mobile-drawer[hidden] { display: none; }
.mobile-drawer-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 440px;
  margin-inline: auto;
}
.mobile-drawer-inner > a {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--text);
}
.mobile-drawer-actions {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ── Shared Buttons & Section Headers ──────────────────────────────────── */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--body);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.22s, background 0.22s, color 0.22s, border-color 0.22s, box-shadow 0.22s;
}
.button:hover { transform: translateY(-2px); }
.button-primary {
  background: var(--acid);
  color: #07090f;
}
.button-primary:hover { box-shadow: 0 8px 26px rgba(216, 255, 104, 0.32); }
.button-secondary {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}
.button-secondary:hover {
  border-color: var(--aqua);
  color: var(--aqua);
  box-shadow: 0 8px 24px rgba(105, 240, 212, 0.14);
}
.button-ghost {
  border-color: rgba(105, 240, 212, 0.28);
  background: rgba(105, 240, 212, 0.07);
  color: var(--aqua);
}
.button-ghost:hover {
  background: rgba(105, 240, 212, 0.16);
  border-color: var(--aqua);
}

.eyebrow {
  margin: 0 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #cfd9d3;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.eyebrow span {
  width: 28px;
  height: 2px;
  background: var(--acid);
  box-shadow: 0 0 14px var(--acid);
  flex-shrink: 0;
}

.section { padding-block: clamp(86px, 9.5vw, 140px); }
.section-index {
  margin-bottom: 18px;
  color: var(--aqua);
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.section-heading {
  margin-bottom: clamp(44px, 5.5vw, 72px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
}
.section-heading > p {
  max-width: 410px;
  margin-bottom: 6px;
  color: var(--text-soft);
  font-size: 0.98rem;
}
.editorial-h2,
.section-heading h2 {
  max-width: 820px;
  margin-bottom: 0;
  font-size: clamp(2.45rem, 4.9vw, 4.9rem);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: -0.055em;
}

/* ── Hero: Above-the-Fold Recruiter Command Stage ──────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: calc(var(--signal-h) + var(--nav-h));
  overflow: hidden;
  background:
    radial-gradient(circle at 74% 38%, rgba(30, 68, 82, 0.52) 0, rgba(11, 18, 30, 0.35) 34%, transparent 62%),
    radial-gradient(circle at 18% 72%, rgba(123, 140, 255, 0.12) 0, transparent 48%),
    linear-gradient(180deg, #070a12 0%, #06080e 75%, #05070b 100%);
  border-bottom: 1px solid var(--line);
}
#neural-field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  touch-action: none;
  cursor: grab;
}
#neural-field:active { cursor: grabbing; }
.hero-noise {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.2'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(6, 9, 15, 0.92) 0%, rgba(6, 9, 15, 0.68) 48%, rgba(6, 9, 15, 0.28) 100%),
    linear-gradient(180deg, rgba(6, 9, 15, 0.25) 0%, transparent 35%, rgba(6, 9, 15, 0.8) 100%);
}

.hero-grid {
  position: relative;
  z-index: 4;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(380px, 0.88fr);
  align-items: center;
  gap: clamp(28px, 4vw, 56px);
  padding-block: clamp(24px, 3.2vh, 42px);
}
.hero-copy { max-width: 670px; min-width: 0; }

.hero-title {
  margin-bottom: 18px;
  color: #f6f8f2;
  font-size: clamp(2.85rem, 4.9vw, 5.15rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.06em;
  filter: drop-shadow(0 16px 36px rgba(0, 0, 0, 0.45));
}
.ht-line { display: block; }
.ht-line-em em {
  font-style: normal;
  font-weight: 500;
}
.ht-line-light {
  color: rgba(244, 247, 240, 0.78);
  font-weight: 400;
}
.typewriter {
  background: linear-gradient(135deg, var(--acid) 0%, var(--aqua) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  min-width: 2ch;
}
.typewriter-cursor {
  display: inline-block;
  width: 3px;
  height: 0.82em;
  background: var(--acid);
  margin-left: 3px;
  vertical-align: -0.06em;
  border-radius: 2px;
  animation: cursor-blink 0.78s step-end infinite;
  box-shadow: 0 0 12px var(--acid);
}
@keyframes cursor-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.hero-intro {
  max-width: 610px;
  margin-bottom: 18px;
  color: #b8c4be;
  font-size: clamp(0.96rem, 1.12vw, 1.07rem);
  line-height: 1.62;
}
.hero-intro strong { color: #f5f7f1; font-weight: 600; }

/* Above-the-fold Academic Pedigree Pills */
.hero-degrees {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}
.degree-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  background: rgba(15, 22, 34, 0.76);
  backdrop-filter: blur(12px);
  font-size: 11.5px;
  color: #d7e0db;
  transition: border-color 0.22s, transform 0.22s, background 0.22s;
}
.degree-pill b {
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(105, 240, 212, 0.16);
  color: var(--aqua);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
}
.degree-pill-phd {
  border-color: rgba(216, 255, 104, 0.4);
  background: rgba(216, 255, 104, 0.08);
}
.degree-pill-phd b {
  background: var(--acid);
  color: #07090f;
}
.degree-pill:hover {
  transform: translateY(-2px);
  border-color: var(--aqua);
  background: rgba(105, 240, 212, 0.12);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Right Hero Column: Live Python Profile Command Card */
.hero-showcase {
  --mx: 50%;
  --my: 30%;
  position: relative;
  min-width: 0;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transform-style: preserve-3d;
  transition: transform 0.14s linear;
}
.hero-code-card {
  position: relative;
  min-width: 0;
  max-width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(105, 240, 212, 0.12), transparent 44%),
    linear-gradient(155deg, rgba(16, 23, 35, 0.94), rgba(8, 11, 18, 0.97));
  backdrop-filter: blur(18px);
  box-shadow: 0 32px 72px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(216, 255, 104, 0.08) inset;
  overflow: hidden;
}
.code-window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.025);
}
.window-dots { display: flex; gap: 6px; }
.window-dots i { width: 9px; height: 9px; border-radius: 50%; display: block; }
.window-dots i:nth-child(1) { background: #ff6b6b; }
.window-dots i:nth-child(2) { background: #ffd166; }
.window-dots i:nth-child(3) { background: #69f0d4; }
.code-filename {
  font-family: var(--mono);
  font-size: 11.5px;
  color: #cbd5cf;
}
.code-badge {
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(216, 255, 104, 0.12);
  border: 1px solid rgba(216, 255, 104, 0.34);
  color: var(--acid);
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.hero-code-block {
  margin: 0;
  padding: 18px 20px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: clamp(11px, 0.92vw, 12.5px);
  line-height: 1.65;
  color: #dde6e1;
}
/* Python Syntax Highlighting Tokens */
.tok-kw { color: #95a4ff; font-weight: 600; }
.tok-dec { color: #d8ff68; }
.tok-cls { color: #69f0d4; font-weight: 600; }
.tok-fn { color: #7ee3ff; }
.tok-str { color: #b8f28a; }
.tok-num { color: #ffbe5c; }
.tok-var { color: #e9f0ec; }
.tok-cm { color: #70807a; font-style: italic; }

.hero-code-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(5, 8, 14, 0.65);
}
.hero-mini-profile {
  display: flex;
  align-items: center;
  gap: 11px;
}
.hero-mini-profile img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 20%;
  border: 1.5px solid rgba(216, 255, 104, 0.55);
}
.hero-mini-profile strong {
  display: block;
  font-family: var(--display);
  font-size: 13px;
  line-height: 1.15;
  color: #f4f6ef;
}
.hero-mini-profile span {
  display: block;
  font-size: 11px;
  color: #8f9e98;
}
.hero-code-cta {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(105, 240, 212, 0.1);
  border: 1px solid rgba(105, 240, 212, 0.3);
  color: var(--aqua);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
.hero-code-cta:hover { background: var(--aqua); color: #07090f; }

.hero-stack-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.hero-stack-strip span {
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(12, 17, 27, 0.72);
  color: #b7c3bd;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
}
.hero-stack-strip span:first-child {
  border-color: rgba(216, 255, 104, 0.42);
  color: var(--acid);
  background: rgba(216, 255, 104, 0.08);
  font-weight: 700;
}

/* Above-the-fold Hero Metrics Dock */
.hero-metrics-cinematic {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(6, 9, 15, 0.78);
  backdrop-filter: blur(18px);
}
.hero-metrics-cinematic div {
  min-height: 94px;
  padding: 16px clamp(18px, 2.8vw, 44px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.25s;
}
.hero-metrics-cinematic div:last-child { border-right: 0; }
.hero-metrics-cinematic div:hover { background: rgba(216, 255, 104, 0.045); }
.hero-metrics-cinematic strong {
  background: linear-gradient(135deg, #f6f8f1 15%, var(--acid) 65%, var(--aqua) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: var(--display);
  font-size: clamp(1.65rem, 2.5vw, 2.55rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.05em;
}
.hero-metrics-cinematic span {
  margin-top: 5px;
  color: #9ba7a1;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

/* ── Enterprise Trust Bar ──────────────────────────────────────────────── */
.trust-bar {
  position: relative;
  z-index: 2;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  background: #0a0e17;
}
.trust-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.trust-label {
  color: var(--aqua);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}
.trust-logos {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.trust-logos > span:not(.trust-sep) {
  color: #b7c2bc;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: color 0.22s;
}
.trust-logos > span:not(.trust-sep):hover { color: var(--acid); }
.trust-sep { color: rgba(216, 255, 104, 0.35); font-size: 8px; }

/* ── Interactive Python & AI/ML Systems Workbench (#lab) ───────────────── */
.capability-lab {
  --lab-accent: #d8ff68;
  position: relative;
  padding: clamp(82px, 8.5vw, 128px) 0 clamp(92px, 9.5vw, 140px);
  overflow: hidden;
  isolation: isolate;
  background: #05070c;
  color: #f4f6f1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.capability-lab::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  opacity: 0.36;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, transparent 4%, #000 22%, #000 78%, transparent 100%);
}
.lab-aurora {
  position: absolute;
  z-index: -2;
  inset: -18% -10% 45%;
  filter: blur(52px) saturate(1.15);
  opacity: 0.65;
  overflow: hidden;
  pointer-events: none;
}
.lab-aurora i { position: absolute; inset: 0; display: block; mix-blend-mode: screen; }
.lab-aurora i:nth-child(1) { background: radial-gradient(ellipse at 18% 42%, rgba(105, 240, 212, 0.42), transparent 42%); animation: aurora-one 12s ease-in-out infinite alternate; }
.lab-aurora i:nth-child(2) { background: radial-gradient(ellipse at 62% 28%, rgba(216, 255, 104, 0.36), transparent 38%); animation: aurora-two 14s ease-in-out infinite alternate; }
.lab-aurora i:nth-child(3) { background: radial-gradient(ellipse at 82% 70%, rgba(123, 140, 255, 0.48), transparent 44%); animation: aurora-three 16s ease-in-out infinite alternate; }
@keyframes aurora-one { to { transform: translate(10%, 6%) scale(1.12); } }
@keyframes aurora-two { to { transform: translate(-10%, 10%) scale(0.92); } }
@keyframes aurora-three { to { transform: translate(-7%, -9%) scale(1.15); } }

.lab-heading {
  position: relative;
  z-index: 2;
  margin-bottom: clamp(36px, 4.5vw, 56px);
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: clamp(32px, 6vw, 90px);
  align-items: end;
}
.lab-kicker {
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.8);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.lab-kicker span {
  width: 8px;
  height: 8px;
  background: var(--lab-accent);
  box-shadow: 0 0 18px var(--lab-accent);
}
.lab-heading h2 {
  margin: 0;
  font-size: clamp(2.8rem, 5.8vw, 5.8rem);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.065em;
}
.lab-heading h2 em { color: var(--lab-accent); font-style: normal; font-weight: 450; }
.lab-heading > p {
  max-width: 460px;
  margin: 0 0 6px;
  color: #b7c2bc;
  font-size: 0.98rem;
  line-height: 1.65;
}
.lab-heading > p strong { color: var(--acid); }

.lab-console {
  --lx: 50%;
  --ly: 30%;
  position: relative;
  z-index: 2;
  padding: 1px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  overflow: hidden;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.36), rgba(105, 240, 212, 0.22) 38%, rgba(216, 255, 104, 0.45) 68%, rgba(123, 140, 255, 0.28));
  box-shadow: 0 42px 110px rgba(0, 0, 0, 0.65), 0 0 90px rgba(105, 240, 212, 0.08);
}
.lab-console::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background: radial-gradient(circle at var(--lx) var(--ly), rgba(255, 255, 255, 0.1), transparent 28%);
  mix-blend-mode: soft-light;
}

/* Left Panel: Python IDE Terminal */
.lab-terminal {
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: linear-gradient(160deg, #0d121b, #07090f 75%);
  color: #e8ece6;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}
.terminal-bar,
.terminal-footer {
  min-height: 52px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
}
.terminal-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #e2eae5;
  min-width: 0;
}
.terminal-brand i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lab-accent);
  box-shadow: 0 0 12px var(--lab-accent);
  flex-shrink: 0;
}
.terminal-lang {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--aqua);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.terminal-bar-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.terminal-action-btn,
.terminal-run-btn {
  height: 30px;
  padding: 0 12px;
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.18s;
}
.terminal-action-btn {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
  color: #d3dcd7;
}
.terminal-action-btn:hover { border-color: var(--aqua); color: var(--aqua); }
.terminal-run-btn {
  border: 1px solid var(--lab-accent);
  background: var(--lab-accent);
  color: #07090f;
}
.terminal-run-btn:hover { transform: translateY(-1px); filter: brightness(1.05); }

.terminal-screen {
  padding: 20px 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.terminal-header-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.terminal-overline {
  color: var(--lab-accent);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
}
.terminal-command {
  color: #8f9b95;
  font-family: var(--mono);
  font-size: 11px;
}
.terminal-command span { color: var(--lab-accent); }
.terminal-command strong { color: #d5ded8; font-weight: 500; }

.terminal-code-wrap {
  min-width: 0;
  max-width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  background: #06080d;
  overflow-x: auto;
}
.lab-code {
  margin: 0;
  padding: 16px 18px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.62;
  color: #dde5e0;
  min-height: 238px;
}

.terminal-trace-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #8b9892;
  padding-top: 2px;
}
.trace-status-pill {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(105, 240, 212, 0.14);
  color: var(--aqua);
  border: 1px solid rgba(105, 240, 212, 0.3);
}
.trace-status-pill.is-running {
  background: rgba(216, 255, 104, 0.16);
  color: var(--acid);
  border-color: rgba(216, 255, 104, 0.4);
}
.terminal-output {
  display: grid;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.terminal-output .trace-row {
  min-height: 38px;
  padding: 6px 4px;
  display: grid;
  grid-template-columns: 30px 1fr auto;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: #bcc7c1;
  font-family: var(--mono);
  font-size: 11px;
}
.terminal-output i { color: #67746e; font-style: normal; }
.terminal-output b {
  color: var(--lab-accent);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.terminal-output .trace-row.trace-enter { animation: trace-enter 0.36s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes trace-enter { from { opacity: 0; transform: translateY(7px); } }

.terminal-footer {
  min-height: 44px;
  border-bottom: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #8f9b95;
  text-transform: uppercase;
  font-size: 9.5px;
}

/* Right Panel: High-Contrast Dark Architectural Engineering Console */
.lab-controller {
  position: relative;
  min-width: 0;
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  color: #f2f5ee;
  background:
    radial-gradient(circle at 80% 15%, rgba(105, 240, 212, 0.09), transparent 45%),
    linear-gradient(155deg, #131a27, #0c1019 60%, #090d14);
}
.controller-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: #8b9892;
}
.controller-meta strong {
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--lab-accent);
  font-weight: 700;
}

.controller-summary h3 {
  margin: 0 0 10px;
  font-size: clamp(1.55rem, 2.3vw, 2.2rem);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.04em;
  color: #f6f8f2;
}
.controller-summary p {
  margin: 0;
  color: #a9b5af;
  font-size: 0.93rem;
  line-height: 1.6;
}

.controller-telemetry {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(6, 9, 15, 0.6);
}
.telemetry-visual {
  display: grid;
  grid-template-columns: 118px 1fr;
  align-items: center;
  gap: 20px;
}
.controller-dial {
  position: relative;
  width: 116px;
  height: 116px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(20, 30, 44, 0.95) 0 54%, rgba(10, 14, 22, 0.9) 55%);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4), inset 0 0 24px rgba(105, 240, 212, 0.08);
}
.dial-core {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 2;
}
.dial-core span {
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1;
  color: var(--lab-accent);
  letter-spacing: -0.04em;
}
.dial-core small {
  margin-top: 4px;
  color: #9ba8a2;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.dial-orbit { position: absolute; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, 0.18); }
.dial-orbit::after {
  content: "";
  position: absolute;
  top: -3.5px;
  left: 50%;
  width: 7px;
  height: 7px;
  margin-left: -3.5px;
  border-radius: 50%;
  background: var(--lab-accent);
  box-shadow: 0 0 12px var(--lab-accent);
}
.dial-orbit-a { inset: 8%; animation: dial-spin 12s linear infinite; }
.dial-orbit-b { inset: 18%; border-style: solid; border-color: rgba(105, 240, 212, 0.18); animation: dial-spin 8s linear infinite reverse; }
@keyframes dial-spin { to { transform: rotate(360deg); } }

.telemetry-bars { display: flex; flex-direction: column; gap: 11px; }
.t-bar-item { display: flex; flex-direction: column; gap: 5px; }
.t-bar-head {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10px;
  color: #c2ccc6;
}
.t-bar-head strong { color: var(--lab-accent); }
.t-bar-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.t-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--aqua), var(--lab-accent));
  transition: width 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* 4 Tactile Mode Selector Cards */
.lab-mode-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.lab-mode-tabs button {
  padding: 13px 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  color: #d6dfd9;
  font-family: var(--body);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.22s, background 0.22s, transform 0.2s, box-shadow 0.22s;
}
.lab-mode-tabs button span {
  color: #88958f;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
}
.lab-mode-tabs button strong {
  font-family: var(--display);
  font-size: 14px;
  font-weight: 600;
  color: #f3f6f0;
}
.lab-mode-tabs button small {
  color: #95a29c;
  font-family: var(--mono);
  font-size: 10px;
}
.lab-mode-tabs button:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-2px);
}
.lab-mode-tabs button[aria-selected="true"] {
  border-color: var(--lab-accent);
  background: rgba(216, 255, 104, 0.1);
  box-shadow: 0 0 0 1px var(--lab-accent) inset, 0 10px 26px rgba(0, 0, 0, 0.32);
}
.lab-mode-tabs button[aria-selected="true"] span,
.lab-mode-tabs button[aria-selected="true"] small { color: var(--lab-accent); }

.controller-note {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #8c9993;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.05em;
}
.controller-note i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--aqua);
  box-shadow: 0 0 8px var(--aqua);
  flex-shrink: 0;
}

/* ── Profile, Portrait & 3D Architecture Stage ─────────────────────────── */
.manifesto { padding-bottom: 0; overflow: hidden; }
.manifesto-intro { margin-bottom: clamp(64px, 8vw, 112px); }
.manifesto-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: start;
}
.manifesto-copy {
  padding-top: 8px;
  color: var(--text-soft);
  font-size: 1.04rem;
  line-height: 1.72;
}
.manifesto-copy p { margin-bottom: 18px; }
.manifesto-copy strong { color: var(--text); font-weight: 600; }

/* Full-bleed Editorial Profile Split with Properly Framed Portrait */
.about-card {
  width: 100%;
  min-height: min(680px, 76svh);
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  border-block: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(125deg, #0b111c 0%, #070a11 65%);
  overflow: hidden;
}
.about-card-copy {
  order: 1;
  align-self: center;
  max-width: 720px;
  padding: clamp(48px, 6vw, 96px) clamp(28px, 6vw, 96px);
}
.about-label {
  margin: 0 0 16px;
  color: var(--aqua);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.about-card-copy h3 {
  max-width: 600px;
  margin: 0 0 22px;
  font-size: clamp(2.1rem, 3.8vw, 3.8rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.055em;
  color: #f4f6ef;
}
.about-card-copy > p:not(.about-label) {
  max-width: 575px;
  margin-bottom: 26px;
  color: #aeb8b3;
  font-size: 1.02rem;
  line-height: 1.7;
}
.about-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.about-tags span {
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #dce3de;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.about-tags span:first-child {
  border-color: rgba(216, 255, 104, 0.4);
  background: rgba(216, 255, 104, 0.1);
  color: var(--acid);
}

.about-portrait {
  order: 2;
  position: relative;
  margin: 0;
  width: 100%;
  height: 100%;
  min-height: 480px;
  overflow: hidden;
  background: #101722;
}
.about-portrait-frame { position: absolute; inset: 0; }
.about-portrait-frame picture { display: block; width: 100%; height: 100%; }
.about-portrait-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(11, 17, 28, 0.62) 0%, transparent 26%),
    linear-gradient(180deg, transparent 58%, rgba(7, 10, 17, 0.65) 100%);
}
/* Headroom-safe portrait framing */
.about-portrait-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 50% 16%;
  filter: saturate(0.92) contrast(1.04);
}
.about-portrait figcaption {
  position: absolute;
  z-index: 4;
  left: 28px;
  bottom: 28px;
  max-width: 310px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-left: 3px solid var(--acid);
  border-radius: 10px;
  background: rgba(7, 10, 17, 0.86);
  backdrop-filter: blur(14px);
}
.about-portrait figcaption span {
  color: var(--aqua);
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.about-portrait figcaption strong {
  margin-top: 4px;
  color: #f4f6ef;
  font-size: 12px;
  line-height: 1.3;
}

/* 4-Layer Interactive Architecture Stage (Zero Clipping!) */
.architecture-stage {
  position: relative;
  margin-top: clamp(68px, 8vw, 110px);
  margin-bottom: clamp(68px, 8vw, 110px);
  min-height: 580px;
  padding: clamp(36px, 4.5vw, 56px);
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  align-items: center;
  gap: 44px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 26px;
  background: radial-gradient(circle at 74% 48%, rgba(28, 58, 72, 0.55), rgba(11, 15, 24, 0.94) 50%, #080b12 85%);
  box-shadow: 0 38px 90px rgba(0, 0, 0, 0.35), inset 0 1px rgba(255, 255, 255, 0.08);
  overflow: hidden;
  isolation: isolate;
}
.architecture-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(105, 240, 212, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(105, 240, 212, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(90deg, transparent, #000);
}
.architecture-copy { position: relative; z-index: 3; }
.architecture-copy > span {
  color: var(--aqua);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.architecture-copy > strong {
  display: block;
  margin: 16px 0 14px;
  font-family: var(--display);
  font-size: clamp(1.9rem, 3vw, 2.95rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.05em;
  color: #f4f6ef;
}
.architecture-copy > p { color: #9aa7a1; max-width: 380px; margin-bottom: 22px; }

.arch-callout {
  padding: 16px 18px;
  border: 1px solid rgba(216, 255, 104, 0.3);
  border-radius: 14px;
  background: rgba(7, 11, 18, 0.78);
}
.arch-callout-tag {
  display: inline-block;
  color: var(--acid);
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin-bottom: 6px;
}
.arch-callout strong {
  display: block;
  font-family: var(--display);
  font-size: 1.08rem;
  color: #f4f6ef;
  margin-bottom: 6px;
}
.arch-callout p { margin: 0; font-size: 0.88rem; color: #a8b5af; line-height: 1.55; }

.stack-scene {
  position: relative;
  z-index: 2;
  height: 440px;
  perspective: 1100px;
  transform-style: preserve-3d;
  transform: rotateX(52deg) rotateZ(-24deg) translate3d(0, 44px, 0);
  transition: transform 0.2s ease-out;
}
.stack-layer {
  position: absolute;
  left: 50%;
  top: 54%;
  width: min(440px, 38vw);
  height: 122px;
  padding: 18px 22px;
  display: grid;
  grid-template-columns: 38px 1fr;
  align-content: center;
  column-gap: 12px;
  text-align: left;
  color: #f4f6ef;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(27, 42, 56, 0.94), rgba(10, 16, 26, 0.92));
  box-shadow: 0 24px 44px rgba(0, 0, 0, 0.42), inset 0 1px rgba(255, 255, 255, 0.1);
  transform-style: preserve-3d;
  backdrop-filter: blur(12px);
  cursor: pointer;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.stack-layer span {
  grid-row: 1 / span 2;
  color: var(--acid);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.stack-layer strong { font-family: var(--display); font-size: 17px; font-weight: 600; }
.stack-layer small {
  grid-column: 2;
  color: #9baaa4;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.stack-cloud { transform: translate(-50%, -18%) translateZ(0px); }
.stack-model { transform: translate(-50%, -32%) translateZ(66px); }
.stack-knowledge { transform: translate(-50%, -46%) translateZ(132px); }
.stack-agent { transform: translate(-50%, -60%) translateZ(198px); }
.stack-layer:hover,
.stack-layer.is-active {
  border-color: rgba(216, 255, 104, 0.72);
  background: linear-gradient(135deg, rgba(35, 58, 72, 0.96), rgba(12, 22, 34, 0.95));
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.55), 0 0 36px rgba(216, 255, 104, 0.14);
}
.stack-beam {
  position: absolute;
  left: 50%;
  top: 22%;
  width: 2px;
  height: 58%;
  background: linear-gradient(transparent, var(--acid), var(--aqua), transparent);
  box-shadow: 0 0 18px var(--aqua);
  transform: translateZ(235px);
  pointer-events: none;
  animation: beam-pulse 2.6s ease-in-out infinite;
}
@keyframes beam-pulse { 50% { opacity: 0.28; transform: translateZ(235px) scaleY(0.84); } }

/* ── Selected Work Section (#work) ─────────────────────────────────────── */
.work {
  background: var(--paper);
  color: #101614;
  padding-block: clamp(86px, 9.5vw, 134px);
}
.work .section-index { color: #22665c; }
.work .section-heading > p { color: #4d5a56; }

.project-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 48px);
}
.project-card,
.project-card-featured {
  position: relative;
  min-height: 490px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  border-radius: 20px;
  background: #0a0f18;
  color: #f3f6f0;
  box-shadow: 0 28px 68px rgba(17, 29, 25, 0.16);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.28s ease;
}
.project-card:hover {
  box-shadow: 0 38px 86px rgba(17, 29, 25, 0.24);
}
.project-visual {
  position: relative;
  grid-column: 1;
  grid-row: 1;
  min-height: 470px;
  overflow: hidden;
  background: #0d121c;
}
.project-card:nth-child(even) .project-visual { grid-column: 2; }

.visual-impact-badge {
  position: absolute;
  top: 22px;
  left: 22px;
  z-index: 6;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(105, 240, 212, 0.35);
  background: rgba(7, 11, 18, 0.84);
  backdrop-filter: blur(10px);
  color: var(--aqua);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-number {
  position: absolute;
  top: 24px;
  right: 26px;
  z-index: 5;
  color: rgba(255, 255, 255, 0.42);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.project-card:nth-child(even) .project-number { right: auto; left: 26px; }

.project-content {
  grid-column: 2;
  grid-row: 1;
  padding: clamp(36px, 4.5vw, 60px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.project-card:nth-child(even) .project-content { grid-column: 1; }
.project-kicker {
  margin-bottom: 12px;
  color: var(--aqua);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.project-content h3 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 3.4vw, 3.45rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.055em;
  color: #f5f7f1;
}
.project-content > p:not(.project-kicker) {
  color: #a6b2ac;
  font-size: 0.97rem;
  line-height: 1.68;
  margin-bottom: 20px;
}

.project-metrics-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}
.project-metrics-row span {
  padding: 7px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #c2ccc6;
  font-size: 12px;
}
.project-metrics-row strong {
  color: var(--acid);
  font-family: var(--mono);
  margin-right: 5px;
}

.tag-list {
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  list-style: none;
}
.tag-list li {
  padding: 5px 11px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #c7d1cb;
  font-family: var(--mono);
  font-size: 10.5px;
}
.tag-list li.tag-primary {
  border-color: rgba(216, 255, 104, 0.48);
  background: rgba(216, 255, 104, 0.12);
  color: var(--acid);
  font-weight: 700;
}

.project-actions-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  margin-top: 24px;
}
.project-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--acid);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  transition: gap 0.22s, color 0.22s;
}
.project-cta:hover { gap: 11px; }
.project-cta-muted { color: #9eb0a9; }
.project-cta-muted:hover { color: var(--aqua); }

/* Project Visual Artwork — with Upright Counter-Rotating Orbit Nodes */
.agent-visual {
  display: grid;
  place-items: center;
  background: radial-gradient(circle at center, #1e3844, #0a1019 60%);
}
.agent-core {
  position: relative;
  z-index: 5;
  width: 106px;
  height: 106px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(216, 255, 104, 0.78);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(216, 255, 104, 0.18), rgba(10, 18, 26, 0.94));
  color: var(--acid);
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 0 60px rgba(105, 240, 212, 0.25), inset 0 0 28px rgba(216, 255, 104, 0.12);
}
.agent-core small {
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.14em;
  color: var(--aqua);
}
.orbit {
  position: absolute;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(105, 240, 212, 0.28);
  border-radius: 50%;
  animation: orbit-spin 16s linear infinite;
}
.orbit-two {
  width: 410px;
  height: 410px;
  border-style: dashed;
  border-color: rgba(216, 255, 104, 0.22);
  animation: orbit-spin-rev 22s linear infinite;
}
.orbit-node {
  position: absolute;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  background: #131c28;
  color: #e6eee9;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  font-style: normal;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
}
.orbit-one .orbit-node:first-child { top: -28px; left: calc(50% - 28px); }
.orbit-one .orbit-node:last-child { bottom: -28px; left: calc(50% - 28px); }
.orbit-two .orbit-node:first-child { left: -28px; top: calc(50% - 28px); }
.orbit-two .orbit-node:last-child { right: -28px; top: calc(50% - 28px); }
/* Counter-rotate labels so they ALWAYS stay upright (0deg) */
.orbit-one .orbit-node span { display: inline-block; animation: orbit-spin-rev 16s linear infinite; }
.orbit-two .orbit-node span { display: inline-block; animation: orbit-spin 22s linear infinite; }

.pulse-ring {
  position: absolute;
  width: 106px;
  height: 106px;
  border: 1px solid var(--acid);
  border-radius: 50%;
  animation: pulse 3s ease-out infinite;
}
@keyframes orbit-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes orbit-spin-rev { from { transform: rotate(360deg); } to { transform: rotate(0deg); } }
@keyframes pulse { 0% { transform: scale(0.85); opacity: 0.7; } 100% { transform: scale(3.2); opacity: 0; } }

.graph-visual { background: radial-gradient(circle at 45% 50%, #1d3244, #0b111a); }
.graph-visual svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.graph-visual path { fill: none; stroke: rgba(105, 240, 212, 0.36); stroke-width: 1.5; }
.g-node {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 4px solid #253d48;
  border-radius: 50%;
  background: var(--aqua);
  box-shadow: 0 0 22px rgba(105, 240, 212, 0.72);
  z-index: 2;
}
.n1 { left: 17%; top: 24%; } .n2 { left: 43%; top: 46%; } .n3 { left: 75%; top: 22%; }
.n4 { left: 22%; top: 75%; } .n5 { left: 79%; top: 72%; } .n6 { left: 56%; top: 68%; width: 12px; height: 12px; }
.scan-line {
  position: absolute;
  inset: -30% 0 auto;
  height: 35%;
  background: linear-gradient(transparent, rgba(216, 255, 104, 0.1), transparent);
  animation: scan 4s linear infinite;
}
@keyframes scan { to { transform: translateY(480px); } }

.vector-visual {
  display: flex;
  align-items: center;
  padding: 44px;
  background: linear-gradient(135deg, #0b1119, #152432);
}
.vector-bars { width: 56%; height: 165px; display: flex; align-items: end; gap: 8px; }
.vector-bars i {
  flex: 1;
  height: 92%;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(var(--aqua), rgba(105, 240, 212, 0.1));
  animation: bars 2.2s ease-in-out infinite alternate;
  transform-origin: bottom;
}
.vector-bars i:nth-child(2n) { animation-delay: -0.5s; }
.vector-bars i:nth-child(3n) { animation-delay: -1s; }
.vector-bars i:nth-child(4n) { animation-delay: -1.5s; }
@keyframes bars { from { transform: scaleY(0.24); } to { transform: scaleY(1); } }
.vector-stat { margin-left: auto; display: flex; flex-direction: column; text-align: right; }
.vector-stat strong {
  color: var(--acid);
  font-family: var(--display);
  font-size: clamp(2.8rem, 4.2vw, 4rem);
  line-height: 1;
  letter-spacing: -0.06em;
}
.vector-stat span {
  margin-top: 6px;
  color: #9baaa4;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.signal-visual { background: linear-gradient(145deg, #091019, #111b2b); }
.signal-visual svg { width: 100%; height: 100%; }
.signal-visual .grid { fill: none; stroke: rgba(255, 255, 255, 0.08); stroke-width: 1; }
.signal-visual .signal {
  fill: none;
  stroke: url(#signalGradient);
  stroke-width: 4;
  filter: drop-shadow(0 0 10px rgba(105, 240, 212, 0.65));
  stroke-dasharray: 700;
  animation: signal-draw 4s ease-in-out infinite;
}
@keyframes signal-draw { 0% { stroke-dashoffset: 700; } 55%, 100% { stroke-dashoffset: 0; } }
.signal-dot {
  position: absolute;
  right: 8%;
  top: 13%;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 24px var(--acid);
}

/* Additional Production Systems Bento Row inside #work */
.extra-work-header {
  margin-top: clamp(54px, 6vw, 80px);
  margin-bottom: 24px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.extra-work-label {
  color: #20635a;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.extra-work-header p { margin: 0; color: #52605b; font-size: 0.94rem; }

.bento-work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.bento-card {
  padding: 28px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(15, 24, 21, 0.12);
  box-shadow: 0 14px 36px rgba(19, 32, 27, 0.07);
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}
.bento-card:hover {
  transform: translateY(-4px);
  border-color: rgba(32, 99, 90, 0.38);
  box-shadow: 0 22px 48px rgba(19, 32, 27, 0.13);
}
.bento-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}
.bento-kicker {
  color: #266b61;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.bento-metric {
  padding: 4px 10px;
  border-radius: 999px;
  background: #0d141d;
  color: var(--acid);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
}
.bento-card h3 {
  margin-bottom: 12px;
  font-size: 1.4rem;
  line-height: 1.15;
  letter-spacing: -0.035em;
  color: #101815;
}
.bento-card p {
  color: #4f5d58;
  font-size: 0.93rem;
  line-height: 1.62;
  margin-bottom: 20px;
  flex: 1;
}
.bento-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.bento-tags span {
  padding: 4px 9px;
  border-radius: 999px;
  background: #edf2ee;
  border: 1px solid rgba(15, 24, 21, 0.1);
  color: #263530;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
}
.bento-tags span:first-child {
  background: #10181d;
  color: var(--acid);
  border-color: #10181d;
}

/* ── Expertise Mastery Matrix (#expertise) ─────────────────────────────── */
.expertise {
  background: #0b0f18;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.expertise-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 30px;
}
.expertise-filters button {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.035);
  color: #bcc7c1;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.expertise-filters button:hover { border-color: var(--aqua); color: var(--aqua); }
.expertise-filters button[aria-selected="true"] {
  background: var(--acid);
  border-color: var(--acid);
  color: #07090f;
  font-weight: 700;
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.expertise-card {
  --mx: 50%;
  --my: 50%;
  position: relative;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: linear-gradient(155deg, rgba(17, 24, 37, 0.9), rgba(9, 12, 20, 0.92));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: border-color 0.25s, transform 0.22s, box-shadow 0.28s, opacity 0.25s;
}
.expertise-card.is-filtered-out { display: none; }
.expertise-card-highlight {
  border-color: rgba(216, 255, 104, 0.36);
  background:
    radial-gradient(circle at 85% 15%, rgba(216, 255, 104, 0.1), transparent 45%),
    linear-gradient(155deg, rgba(19, 28, 40, 0.94), rgba(9, 13, 21, 0.96));
}
.expertise-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at var(--mx) var(--my), rgba(105, 240, 212, 0.14), transparent 42%);
  opacity: 0;
  transition: opacity 0.28s;
}
.expertise-card:hover {
  border-color: rgba(105, 240, 212, 0.42);
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.38);
}
.expertise-card:hover::before { opacity: 1; }
.expertise-card > * { position: relative; z-index: 1; }

.expertise-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.expertise-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
}
.expertise-icon-python { background: rgba(216, 255, 104, 0.13); color: var(--acid); }
.expertise-icon-agent { background: rgba(105, 240, 212, 0.11); color: var(--aqua); }
.expertise-icon-ml { background: rgba(123, 140, 255, 0.13); color: var(--blue); }
.expertise-icon-dl { background: rgba(255, 190, 92, 0.12); color: var(--amber); }
.expertise-icon-knowledge { background: rgba(105, 240, 212, 0.1); color: var(--aqua); }
.expertise-icon-cloud { background: rgba(216, 255, 104, 0.1); color: var(--acid); }

.expertise-badge {
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cdd7d1;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
}
.expertise-card > span {
  color: var(--aqua);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.expertise-card h3 {
  margin: 8px 0 12px;
  font-size: 1.48rem;
  line-height: 1.15;
  letter-spacing: -0.035em;
  color: #f4f6ef;
}
.expertise-card p {
  color: #9ba7a1;
  font-size: 0.93rem;
  line-height: 1.62;
  margin-bottom: 20px;
  flex: 1;
}
.skill-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.skill-chips span {
  padding: 5px 9px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.04);
  color: #d6dfd9;
  font-family: var(--mono);
  font-size: 10.5px;
}
.expertise-card-highlight .skill-chips span:first-child {
  background: var(--acid);
  color: #07090f;
  border-color: var(--acid);
  font-weight: 700;
}

/* Dual Tech Ticker */
.ticker {
  margin-top: clamp(56px, 6.5vw, 84px);
  border-block: 1px solid var(--line);
  overflow: hidden;
  position: relative;
}
.ticker::before,
.ticker::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 90px;
  z-index: 2;
  pointer-events: none;
}
.ticker::before { left: 0; background: linear-gradient(to right, #0b0f18, transparent); }
.ticker::after { right: 0; background: linear-gradient(to left, #0b0f18, transparent); }
.ticker-row {
  display: block;
  width: max-content;
  padding: 13px 0;
  color: #b7c2bc;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  white-space: nowrap;
}
.ticker-row i { margin: 0 22px; color: var(--acid); font-style: normal; font-size: 8px; }
.ticker-forward { animation: ticker 34s linear infinite; }
.ticker-reverse { animation: ticker-rev 30s linear infinite; color: #7b8984; }
@keyframes ticker { to { transform: translateX(-50%); } }
@keyframes ticker-rev { from { transform: translateX(-50%); } to { transform: translateX(0); } }

/* ── Experience Timeline (#experience) — Crisp & Compact ───────────────── */
.experience { background: var(--ink); }
.timeline {
  position: relative;
  border-top: 1px solid var(--line);
}
.timeline::before {
  content: "";
  position: absolute;
  left: calc(185px + 22px);
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--acid), var(--aqua), rgba(255, 255, 255, 0.1));
  transform-origin: top;
  transform: scaleY(0);
  transition: transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 1;
}
.timeline.drawn::before { transform: scaleY(1); }

.timeline-item {
  display: grid;
  grid-template-columns: 185px 44px 1fr;
  border-bottom: 1px solid var(--line);
  transition: background 0.25s;
}
.timeline-item:hover { background: rgba(255, 255, 255, 0.018); }
.timeline-date {
  padding-top: 30px;
  color: #8f9b95;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.timeline-marker { position: relative; }
.timeline-marker::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: var(--line);
}
.timeline-marker span {
  position: absolute;
  top: 33px;
  left: calc(50% - 5.5px);
  z-index: 2;
  width: 11px;
  height: 11px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: #5a6661;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.28);
}
.timeline-item.current .timeline-marker span {
  background: var(--acid);
  box-shadow: 0 0 18px rgba(216, 255, 104, 0.78);
}
.timeline-item.current-alt .timeline-marker span {
  background: var(--aqua);
  box-shadow: 0 0 16px rgba(105, 240, 212, 0.65);
}

.timeline-body {
  padding: 26px 0 28px 28px;
  display: grid;
  grid-template-columns: minmax(220px, 0.68fr) minmax(300px, 1.32fr);
  column-gap: 44px;
  align-items: start;
}
.timeline-role h3 {
  margin-bottom: 5px;
  font-size: clamp(1.35rem, 2.1vw, 1.85rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.035em;
  color: #f4f6ef;
}
.timeline-item.current .timeline-role h3 {
  background: linear-gradient(135deg, var(--acid), var(--aqua));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.timeline-role .company {
  margin: 0;
  color: var(--aqua);
  font-size: 13px;
  font-weight: 600;
}
.timeline-desc p {
  margin: 0 0 12px;
  color: #a4b0aa;
  font-size: 0.95rem;
  line-height: 1.65;
}
.timeline-desc strong { color: var(--acid); }
.timeline-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.timeline-tags span {
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.035);
  color: #c2ccc6;
  font-family: var(--mono);
  font-size: 10px;
}
.timeline-tags span:first-child {
  border-color: rgba(216, 255, 104, 0.38);
  color: var(--acid);
}

/* ── Academic Pedigree (#education) ────────────────────────────────────── */
.education {
  background: linear-gradient(180deg, #090e17 0%, #07090f 100%);
  border-top: 1px solid var(--line);
}
.degree-pathway {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--mono);
  font-size: 11px;
  color: #b7c2bc;
}
.degree-pathway i { font-style: normal; color: var(--aqua); }
.degree-pathway .pathway-active {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(216, 255, 104, 0.14);
  color: var(--acid);
  font-weight: 700;
}

.degree-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.degree-card {
  --mx: 50%;
  --my: 50%;
  position: relative;
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 20px;
  background: linear-gradient(155deg, rgba(16, 22, 34, 0.92), rgba(8, 11, 18, 0.95));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.28s, transform 0.2s;
}
.degree-card-phd {
  border-color: rgba(216, 255, 104, 0.38);
  background:
    radial-gradient(circle at 85% 12%, rgba(216, 255, 104, 0.11), transparent 45%),
    linear-gradient(155deg, rgba(18, 29, 41, 0.95), rgba(8, 12, 20, 0.97));
}
.degree-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx) var(--my), rgba(123, 140, 255, 0.15), transparent 44%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s;
}
.degree-card:hover { border-color: rgba(105, 240, 212, 0.45); box-shadow: 0 26px 60px rgba(0, 0, 0, 0.4); }
.degree-card:hover::before { opacity: 1; }
.degree-card > * { position: relative; z-index: 1; }

.degree-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.degree-status {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(105, 240, 212, 0.12);
  color: var(--aqua);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.degree-card-phd .degree-status {
  background: rgba(216, 255, 104, 0.16);
  color: var(--acid);
}
.degree-step {
  font-family: var(--mono);
  font-size: 12px;
  color: #6b7872;
  font-weight: 700;
}
.degree-card h3 {
  margin: 0 0 10px;
  font-size: 1.55rem;
  line-height: 1.16;
  letter-spacing: -0.035em;
  color: #f4f6ef;
}
.degree-card h3 small {
  display: block;
  margin-top: 4px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--aqua);
}
.degree-school {
  margin: 0 0 14px;
  color: #cfd8d3;
  font-size: 0.9rem;
  font-weight: 600;
}
.degree-focus {
  margin: 0 0 22px;
  color: #97a49e;
  font-size: 0.9rem;
  line-height: 1.62;
  flex: 1;
}
.degree-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.degree-pills span {
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #d2dcd6;
  font-family: var(--mono);
  font-size: 10px;
}

/* ── Doctoral Research & Live GitHub (#research) ───────────────────────── */
.research {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 14% 12%, rgba(105, 240, 212, 0.09), transparent 34%),
    linear-gradient(180deg, #09101a, #06090f);
  border-top: 1px solid var(--line);
}
.research::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(105, 240, 212, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(105, 240, 212, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, #000, transparent 74%);
}
.research .shell { position: relative; z-index: 1; }

/* Flagship Doctoral Project Umbrella Container (Quant Finance) */
.research-project-shell {
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(216, 255, 104, 0.24);
  border-radius: 24px;
  background:
    radial-gradient(circle at 10% 0%, rgba(216, 255, 104, 0.08), transparent 42%),
    radial-gradient(circle at 92% 10%, rgba(105, 240, 212, 0.08), transparent 40%),
    linear-gradient(160deg, rgba(14, 23, 34, 0.94), rgba(7, 10, 17, 0.97));
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.38), inset 0 1px rgba(255, 255, 255, 0.08);
}
.research-project-header {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  gap: 24px 36px;
  align-items: end;
  padding-bottom: 26px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
}
.research-project-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.research-project-badge {
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--acid);
  color: #07090f;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.research-project-role {
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid rgba(105, 240, 212, 0.3);
  background: rgba(105, 240, 212, 0.08);
  color: var(--aqua);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.research-project-title-group h3 {
  margin: 0 0 10px;
  font-size: clamp(2.1rem, 3.6vw, 3.4rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.055em;
  background: linear-gradient(135deg, #f6f8f1 20%, var(--acid) 75%, var(--aqua) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.research-project-title-group p {
  margin: 0;
  max-width: 610px;
  color: #aebbb5;
  font-size: 0.96rem;
  line-height: 1.65;
}
.research-project-pillars {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.research-project-pillars span {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 13px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.035);
  color: #d7e1dc;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
}
.research-project-pillars i {
  font-style: normal;
  color: var(--acid);
  font-weight: 800;
}

.research-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.research-card {
  --mx: 50%;
  --my: 50%;
  position: relative;
  min-height: 290px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(105, 240, 212, 0.12), transparent 40%),
    linear-gradient(150deg, rgba(16, 28, 39, 0.88), rgba(7, 11, 18, 0.94));
  transition: border-color 0.25s, box-shadow 0.28s;
}
.research-card:hover { border-color: rgba(105, 240, 212, 0.36); box-shadow: 0 22px 54px rgba(0, 0, 0, 0.38); }
.research-card > span {
  color: var(--aqua);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.research-card h3,
.research-card h4 {
  font-family: var(--display);
  margin: 22px 0 12px;
  font-size: clamp(1.32rem, 1.72vw, 1.66rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.04em;
  color: #f4f6ef;
}
.research-card p { color: #9aa7a1; font-size: 0.94rem; line-height: 1.66; }
.research-flow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  color: #c1cdc7;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.research-flow i { font-style: normal; }
.research-flow b { color: var(--acid); font-weight: 700; }

.github-panel {
  margin-top: 20px;
  padding: clamp(28px, 4vw, 44px);
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: clamp(28px, 4vw, 52px);
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  background: linear-gradient(125deg, rgba(19, 32, 42, 0.95), rgba(8, 12, 19, 0.96));
}
.github-kicker {
  color: var(--aqua);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.github-panel-copy h3 {
  margin: 14px 0 10px;
  font-size: clamp(2rem, 3.4vw, 3.3rem);
  line-height: 0.96;
  letter-spacing: -0.055em;
  color: #f4f6ef;
}
.github-panel-copy p { max-width: 420px; color: #99a7a1; font-size: 0.95rem; }
.github-panel-copy a {
  display: inline-flex;
  gap: 8px;
  margin-top: 10px;
  color: var(--acid);
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.github-live { min-width: 0; }
.github-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(6, 9, 15, 0.5);
}
.github-stats > div {
  min-height: 92px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}
.github-stats > div:last-child { border-right: 0; }
.github-stats strong {
  color: var(--acid);
  font-family: var(--display);
  font-size: 2rem;
  line-height: 1;
}
.github-stats span {
  margin-top: 7px;
  color: #93a19b;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.github-recent { margin-top: 12px; display: grid; gap: 7px; }
.github-repo {
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  color: #d2dcd6;
  font-family: var(--mono);
  font-size: 12px;
  transition: border-color 0.22s, background 0.22s;
}
.github-repo:hover { border-color: rgba(105, 240, 212, 0.36); background: rgba(105, 240, 212, 0.06); }
.github-repo span:last-child { color: #8c9a94; font-size: 10px; text-transform: uppercase; white-space: nowrap; }
.github-loading { padding: 14px; color: #8c9a94; font-family: var(--mono); font-size: 12px; }

/* ── Contact Section (High Contrast on Acid Lime) ──────────────────────── */
.contact {
  position: relative;
  padding: clamp(100px, 12vw, 150px) 0 clamp(90px, 10vw, 130px);
  background: var(--acid);
  color: #070a0f;
  overflow: hidden;
}
.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 55% at 82% 20%, rgba(105, 240, 212, 0.36) 0%, transparent 60%),
    radial-gradient(ellipse 45% 50% at 10% 80%, rgba(123, 140, 255, 0.18) 0%, transparent 55%);
  animation: contact-mesh 8s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 1;
}
@keyframes contact-mesh {
  from { opacity: 0.65; transform: scale(1); }
  to { opacity: 1; transform: scale(1.06); }
}
.contact-orb {
  position: absolute;
  width: 620px;
  height: 620px;
  right: -100px;
  top: -140px;
  border: 1px solid rgba(7, 10, 15, 0.22);
  border-radius: 50%;
  box-shadow: inset 0 0 80px rgba(7, 10, 15, 0.06);
  pointer-events: none;
}
.contact-orb::before,
.contact-orb::after { content: ""; position: absolute; inset: 14%; border: 1px solid rgba(7, 10, 15, 0.16); border-radius: 50%; }
.contact-orb::after { inset: 30%; background: rgba(7, 10, 15, 0.05); }

.contact-inner { position: relative; z-index: 2; }
.contact .eyebrow { color: #11241c; }
.contact .eyebrow span { background: #070a0f; box-shadow: none; }
.contact h2 {
  margin: 0 0 34px;
  font-size: clamp(3.6rem, 8.5vw, 8.5rem);
  font-weight: 600;
  line-height: 0.84;
  letter-spacing: -0.075em;
}
.contact h2 em { font-style: normal; color: #274f46; }
.contact-email {
  display: inline-flex;
  gap: 14px;
  align-items: center;
  padding-bottom: 6px;
  border-bottom: 2px solid #070a0f;
  font-size: clamp(1.1rem, 2.2vw, 1.8rem);
  font-weight: 700;
  transition: opacity 0.22s;
}
.contact-email:hover { opacity: 0.72; }

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}
.contact-btn-solid,
.contact-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  transition: transform 0.22s, box-shadow 0.22s, background 0.22s;
}
.contact-btn-solid:hover,
.contact-btn-outline:hover { transform: translateY(-2px); }
.contact-btn-solid {
  background: #070a0f;
  color: #f4f6ef;
  box-shadow: 0 6px 22px rgba(7, 10, 15, 0.24);
}
.contact-btn-solid:hover { box-shadow: 0 12px 34px rgba(7, 10, 15, 0.36); }
/* High-contrast outlined buttons on lime */
.contact-btn-outline {
  background: rgba(7, 10, 15, 0.09);
  color: #070a0f;
  border: 1.5px solid rgba(7, 10, 15, 0.52);
}
.contact-btn-outline:hover {
  background: rgba(7, 10, 15, 0.18);
  border-color: #070a0f;
}

.contact-meta-row {
  margin-top: 26px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}
.contact-response { margin: 0; color: #1c3a30; font-size: 13.5px; font-weight: 600; }
.contact-phone {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-family: var(--body);
  font-size: 14.5px;
  font-weight: 700;
  color: #070a0f;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.copy-hint {
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(7, 10, 15, 0.38);
  background: rgba(7, 10, 15, 0.08);
  color: #070a0f;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
}
.contact-phone:hover .copy-hint,
.contact-phone.copied .copy-hint {
  background: #070a0f;
  color: var(--acid);
}

/* ── Footer & Smart Non-Overlapping Back-to-Top ────────────────────────── */
.site-footer {
  padding: 24px 0;
  background: #06080e;
  color: #93a09a;
  font-size: 12.5px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.site-footer .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.site-footer a { color: #d5ded8; font-weight: 600; transition: color 0.22s; }
.site-footer a:hover { color: var(--acid); }

.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 55;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 13px;
  background: rgba(8, 11, 18, 0.88);
  backdrop-filter: blur(14px);
  color: var(--aqua);
  font-size: 19px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s, background 0.22s, border-color 0.22s;
}
.back-to-top.visible { opacity: 1; transform: none; pointer-events: auto; }
.back-to-top.near-footer { opacity: 0 !important; pointer-events: none !important; transform: translateY(16px); }
.back-to-top:hover { background: rgba(105, 240, 212, 0.16); border-color: var(--aqua); }

/* ── 60-Second Recruiter Brief Modal ───────────────────────────────────── */
.brief-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
}
.brief-modal[hidden] { display: none; }
.brief-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 11, 0.78);
  backdrop-filter: blur(12px);
}
.brief-dialog {
  position: relative;
  z-index: 2;
  width: min(740px, 100%);
  max-height: 90svh;
  overflow-y: auto;
  padding: clamp(24px, 3.5vw, 36px);
  border-radius: 22px;
  border: 1px solid rgba(216, 255, 104, 0.34);
  background: linear-gradient(155deg, #111827, #080c14 75%);
  color: #f3f6f0;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7);
}
.brief-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.brief-kicker {
  display: block;
  color: var(--acid);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  margin-bottom: 6px;
}
.brief-header h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  letter-spacing: -0.04em;
  line-height: 1.15;
}
.brief-close {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
  color: #f3f6f0;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}
.brief-close:hover { border-color: var(--acid); color: var(--acid); }

.brief-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 22px;
}
.brief-stat {
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.035);
}
.brief-stat strong {
  display: block;
  color: var(--acid);
  font-family: var(--display);
  font-size: 1.25rem;
  line-height: 1.1;
}
.brief-stat span {
  display: block;
  margin-top: 4px;
  color: #9ba8a2;
  font-family: var(--mono);
  font-size: 10px;
}
.brief-sections { display: grid; gap: 14px; margin-bottom: 24px; }
.brief-sections h3 {
  margin: 0 0 5px;
  color: var(--aqua);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.brief-sections p { margin: 0; color: #cad4ce; font-size: 0.93rem; line-height: 1.58; }
.brief-footer { display: flex; flex-wrap: wrap; gap: 10px; }

/* ── Scroll Reveal ─────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.visible { opacity: 1; transform: none; }

/* ── Light Theme Support ───────────────────────────────────────────────── */
html[data-theme="light"] {
  color-scheme: light;
  --ink: #eef3ef;
  --ink-soft: #e3ebe5;
  --panel: #ffffff;
  --paper: #f8faf6;
  --text: #101914;
  --text-soft: #4c5a54;
  --muted: #5d6c65;
  --line: rgba(12, 30, 24, 0.14);
  --acid: #6b8a00;
  --aqua: #087a6d;
  --blue: #4c5cc8;
}
html[data-theme="light"] body { background: #eef3ef; color: #101914; }
html[data-theme="light"] .signal-bar { background: #cbf059; color: #07120d; }
html[data-theme="light"] .nav-shell {
  background: rgba(247, 250, 247, 0.96);
  border-bottom-color: rgba(12, 30, 24, 0.14);
}
html[data-theme="light"] .brand-mark { background: #c5ee4e; color: #07100d; }
html[data-theme="light"] .nav-links { color: #364740; }
html[data-theme="light"] .nav-links a:hover,
html[data-theme="light"] .nav-links a.nav-active { color: #0b1611; }
html[data-theme="light"] .nav-brief-btn {
  background: rgba(107, 138, 0, 0.12);
  border-color: rgba(107, 138, 0, 0.42);
  color: #3f5500;
}
html[data-theme="light"] .nav-brief-btn:hover { background: #c5ee4e; color: #07100d; }
html[data-theme="light"] .nav-contact { border-color: rgba(12, 30, 24, 0.28); color: #101914; }
html[data-theme="light"] .nav-contact:hover { background: #c5ee4e; border-color: #c5ee4e; color: #07100d; }
html[data-theme="light"] .theme-toggle { border-color: rgba(12, 30, 24, 0.18); background: rgba(12, 30, 24, 0.04); color: #263b33; }
html[data-theme="light"] .mobile-menu-toggle { border-color: rgba(12, 30, 24, 0.22); }
html[data-theme="light"] .mobile-menu-toggle span { background: #101914; }
html[data-theme="light"] .mobile-drawer { background: rgba(244, 248, 245, 0.98); }
html[data-theme="light"] .mobile-drawer-inner > a { color: #101914; border-bottom-color: rgba(12, 30, 24, 0.12); }

/* Keep Hero, Lab, About split, Architecture, and Research as dramatic obsidian visual chapters in Light Theme */
html[data-theme="light"] .hero,
html[data-theme="light"] .capability-lab,
html[data-theme="light"] .about-card,
html[data-theme="light"] .architecture-stage,
html[data-theme="light"] .research {
  --acid: #d8ff68;
  --aqua: #69f0d4;
  --text: #f4f6ef;
  --muted: #9aa7a1;
  --line: rgba(255, 255, 255, 0.13);
  color: #f4f6ef;
}
html[data-theme="light"] .trust-bar { background: #e3ece6; border-bottom-color: rgba(12, 30, 24, 0.14); }
html[data-theme="light"] .trust-logos > span:not(.trust-sep) { color: #2b3c35; }
html[data-theme="light"] .trust-logos > span:not(.trust-sep):hover { color: #087a6d; }
html[data-theme="light"] .trust-sep { color: rgba(8, 122, 109, 0.45); }

html[data-theme="light"] .expertise { background: #e5ede7; color: #101914; }
html[data-theme="light"] .expertise-filters button {
  border-color: rgba(12, 30, 24, 0.2);
  background: rgba(255, 255, 255, 0.72);
  color: #293b34;
}
html[data-theme="light"] .expertise-filters button[aria-selected="true"] {
  background: #101914;
  border-color: #101914;
  color: #d8ff68;
}
html[data-theme="light"] .expertise-card {
  background: linear-gradient(155deg, #ffffff, #f2f7f3);
  border-color: rgba(12, 30, 24, 0.14);
}
html[data-theme="light"] .expertise-card-highlight { border-color: rgba(8, 122, 109, 0.48); }
html[data-theme="light"] .expertise-card h3 { color: #101914; }
html[data-theme="light"] .expertise-card p { color: #4c5a54; }
html[data-theme="light"] .expertise-badge { background: #eef3ef; border-color: rgba(12, 30, 24, 0.14); color: #273932; }
html[data-theme="light"] .skill-chips span { background: #eef3ef; border-color: rgba(12, 30, 24, 0.12); color: #24352e; }
html[data-theme="light"] .expertise-card-highlight .skill-chips span:first-child { background: #101914; color: #d8ff68; }
html[data-theme="light"] .ticker::before { background: linear-gradient(to right, #e5ede7, transparent); }
html[data-theme="light"] .ticker::after { background: linear-gradient(to left, #e5ede7, transparent); }
html[data-theme="light"] .ticker-row { color: #2d3e37; }
html[data-theme="light"] .ticker-reverse { color: #566861; }

html[data-theme="light"] .experience { background: #eef3ef; color: #101914; }
html[data-theme="light"] .timeline-date { color: #55665f; }
html[data-theme="light"] .timeline-marker span { border-color: #eef3ef; }
html[data-theme="light"] .timeline-role h3 { color: #101914; }
html[data-theme="light"] .timeline-item.current .timeline-role h3 {
  background: linear-gradient(135deg, #087a6d, #4b6900);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
html[data-theme="light"] .timeline-desc p { color: #4c5a54; }
html[data-theme="light"] .timeline-desc strong { color: #087a6d; }
html[data-theme="light"] .timeline-tags span { background: #ffffff; border-color: rgba(12, 30, 24, 0.14); color: #25362f; }
html[data-theme="light"] .timeline-tags span:first-child { background: #101914; color: #d8ff68; border-color: #101914; }

html[data-theme="light"] .education { background: #e8efe9; color: #101914; }
html[data-theme="light"] .degree-pathway { background: #ffffff; border-color: rgba(12, 30, 24, 0.14); color: #2e3f38; }
html[data-theme="light"] .degree-pathway .pathway-active { background: #101914; color: #d8ff68; }
html[data-theme="light"] .degree-card { background: #ffffff; border-color: rgba(12, 30, 24, 0.14); }
html[data-theme="light"] .degree-card-phd { border-color: rgba(8, 122, 109, 0.5); }
html[data-theme="light"] .degree-card h3 { color: #101914; }
html[data-theme="light"] .degree-school { color: #2b3c35; }
html[data-theme="light"] .degree-focus { color: #52615b; }
html[data-theme="light"] .degree-pills span { background: #edf3ee; border-color: rgba(12, 30, 24, 0.12); color: #25362f; }
html[data-theme="light"] .degree-status { background: rgba(8, 122, 109, 0.12); color: #066358; }
html[data-theme="light"] .degree-card-phd .degree-status { background: #101914; color: #d8ff68; }

html[data-theme="light"] .contact { background: #ccf257; color: #070e0b; }
html[data-theme="light"] .site-footer { background: #e2ebe4; color: #475750; border-top-color: rgba(12, 30, 24, 0.12); }
html[data-theme="light"] .site-footer a { color: #101914; }
html[data-theme="light"] .back-to-top { background: rgba(255, 255, 255, 0.92); border-color: rgba(12, 30, 24, 0.22); color: #087a6d; }

/* ── Responsive Breakpoints ────────────────────────────────────────────── */
@media (max-width: 1120px) {
  .nav-links { gap: 15px; font-size: 13px; }
  .status-badge { display: none; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; padding-block: 34px; }
  .hero-copy { max-width: 760px; }
  .hero-showcase { width: 100%; max-width: 660px; }
  .lab-console { grid-template-columns: minmax(0, 1fr); }
  .lab-terminal { border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
  .expertise-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento-work-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  .signal-bar { grid-template-columns: 1fr auto; padding-inline: 16px 42px; }
  .signal-bar-message { grid-column: 1; justify-self: start; font-size: 9.5px; }
  .signal-bar a { grid-column: 2; font-size: 9.5px; }
  .nav-shell { grid-template-columns: 1fr auto; }
  .nav-links,
  .nav-brief-btn,
  .nav-contact { display: none; }
  .mobile-menu-toggle { display: flex; }

  .lab-heading,
  .manifesto-grid,
  .section-heading,
  .architecture-stage,
  .github-panel { grid-template-columns: 1fr; flex-direction: column; align-items: flex-start; gap: 24px; }
  .about-card { grid-template-columns: 1fr; min-height: 0; }
  .about-portrait { order: 1; min-height: 440px; height: 58svh; }
  .about-card-copy { order: 2; padding: 48px 28px; }

  .project-card,
  .project-card-featured { grid-template-columns: 1fr; min-height: 0; }
  .project-visual,
  .project-card:nth-child(even) .project-visual { grid-column: 1; grid-row: 1; min-height: 340px; }
  .project-content,
  .project-card:nth-child(even) .project-content { grid-column: 1; grid-row: 2; }
  .project-number,
  .project-card:nth-child(even) .project-number { top: 20px; left: auto; right: 22px; }

  .degree-grid,
  .research-project-header,
  .research-grid { grid-template-columns: 1fr; }

  .timeline::before { left: calc(130px + 18px); }
  .timeline-item { grid-template-columns: 130px 36px 1fr; }
  .timeline-body { grid-template-columns: 1fr; gap: 12px; padding-left: 18px; }

  .stack-scene { height: 360px; transform: rotateX(48deg) rotateZ(-20deg) translate3d(0, 26px, 0); }
  .stack-layer { width: min(440px, 72vw); }
  .brief-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  :root { --shell: min(100% - 32px, 1240px); --signal-h: 32px; --nav-h: 60px; }
  .signal-bar { display: flex; justify-content: center; padding: 6px 34px 6px 12px; }
  .signal-bar-message { font-size: 8.5px; letter-spacing: 0.05em; white-space: normal; text-align: center; }
  .signal-bar a { display: none; }
  .brand-copy small { display: none; }

  .hero-title { font-size: clamp(2.1rem, 9.6vw, 3.2rem); }
  .hero-actions { flex-direction: column; }
  .hero-actions .button { width: 100%; justify-content: space-between; }
  .hero-code-block { font-size: 10.5px; padding: 14px; max-width: 100%; }
  .hero-code-footer { flex-direction: column; align-items: flex-start; }
  .hero-metrics-cinematic { grid-template-columns: repeat(2, 1fr); }
  .hero-metrics-cinematic div { min-height: 82px; padding: 14px 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.09); }

  .telemetry-visual { grid-template-columns: 1fr; justify-items: center; }
  .telemetry-bars { width: 100%; }
  .lab-mode-tabs { grid-template-columns: 1fr; }
  .terminal-bar { flex-wrap: wrap; padding: 10px 14px; }
  .terminal-screen { padding: 16px; }
  .lab-code { font-size: 11px; min-height: 0; }
  .terminal-footer { flex-wrap: wrap; padding: 10px 14px; }

  .stack-scene {
    height: auto;
    transform: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .stack-layer {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    height: auto;
    min-height: 76px;
    transform: none !important;
  }
  .stack-beam { display: none; }

  .bento-work-grid,
  .expertise-grid { grid-template-columns: 1fr; }

  .timeline::before,
  .timeline-marker { display: none; }
  .timeline-item { grid-template-columns: 1fr; padding: 22px 0; }
  .timeline-date { padding: 0 0 6px; }
  .timeline-body { padding: 0; }

  .github-stats { grid-template-columns: 1fr; }
  .github-stats > div { border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); min-height: 72px; }
  .github-stats > div:last-child { border-bottom: 0; }
  .github-repo { flex-direction: column; align-items: flex-start; gap: 3px; }

  .contact-actions { flex-direction: column; }
  .contact-btn-solid,
  .contact-btn-outline { justify-content: center; }
  .back-to-top { bottom: 18px; right: 16px; width: 42px; height: 42px; }
  .site-footer span:nth-child(2) { display: none; }
}

/* ── Reduced Motion ────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .page-loader, .typewriter-cursor { display: none; }
}
