/* ═══════════════════════════════════════════════════════════════════════════
   VISHAL GUNJAL - PORTFOLIO  v12  "ATLASSIAN ELITE"
   Design System: ATLASSIAN PRODUCT ENGINEERING STANDARD
   ─────────────────────────────────────────────────────────────────────────
   Surfaces    : Atlassian Slate (#091E42)
   Accents     : Indigo (#5E5AD7) · Cyan (#00B8D9)
   Easing      : Physics-Based Spring (GSAP)
   Grid        : Strict 8px/8dp Spacing Grid
   Card radius : 8px (Atlassian Enterprise)
   Rule        : Mathematical Precision > Decoration
═══════════════════════════════════════════════════════════════════════════ */

/* ─── §0 · MOTION TOKENS ─────────────────────────────────────────────── */
:root {
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-std: cubic-bezier(0.25, 0.10, 0.25, 1);
  --ease-in: cubic-bezier(0.40, 0, 1, 1);
  --d-micro: 140ms;
  --d-card: 220ms;
  --d-hover: 160ms;
  --d-reveal: 420ms;
  --d-hero: 640ms;
  --d-theme: 380ms;
}

/* ─── §1 · DESIGN TOKENS - DARK (default) ────────────────────────────── */
:root {
  --bg-1: #030304; /* Neutral Deep Space */
  --bg-2: #070708; /* Neutral Surface */
  --bg-3: #101214; /* Neutral Surface Alt */
  --bg-4: #121212;
  --bg-5: #1C1C1C;

  /* ── RGB Tokens for Glassmorphism ── */
  --bg-1-rgb: 3, 3, 4;
  --bg-2-rgb: 7, 7, 8;
  --primary-rgb: 0, 101, 255;

  /* ── Text - Anti-Halation SaaS Standard (Dark) ── */
  --text-primary: #DEE4EA;   /* Soft off-white for crisp headings */
  --text-secondary: #9FADBC; /* Cool grey for readable body copy */
  --text-muted: #738496;     /* For terminal comments and metadata */
  --text-ghost: #334155;

  --accent-primary: #0065FF; /* Blue 400 */
  --accent-indigo: #6366F1;
  --accent-indigo-hi: #818CF8;
  /* ... rest of accents ... */
  --accent-cyan: #22D3EE;
  --accent-cyan-lo: rgba(34, 211, 238, 0.08);
  --accent-cyan-md: rgba(34, 211, 238, 0.15);
  --accent-cyan-bd: rgba(34, 211, 238, 0.22);

  --border: rgba(255, 255, 255, 0.1);
  --border-hover: rgba(255, 255, 255, 0.15);
  --border-strong: rgba(255, 255, 255, 0.2);

  --radius: 8px; /* Atlassian Enterprise Standard */
  --radius-sm: 3px;
  --radius-pill: 3px;

  /* ── Fonts - Phase 2 Standard ── */
  --font-display: 'Hanken Grotesk', sans-serif;
  --font-body: 'Hanken Grotesk', sans-serif;
  --font-mono: 'Roboto Mono', monospace;

  --font-sans: 'Hanken Grotesk', sans-serif;

  --s1: 4px;
  --s2: 8px;
  --s3: 16px;
  --s4: 16px;
  --s5: 24px;
  --s6: 24px;
  --s8: 32px;
  --s10: 40px;
  --s12: 48px;
  --s16: 64px;
  --s20: 80px;
  --s24: 96px;

  /* Legacy alias map - preserves all JS/HTML references */
  --canvas: var(--bg-1);
  --base: var(--bg-1);
  --s0: var(--bg-1);
  --surf-1: var(--bg-2);
  --surf-2: var(--bg-3);
  --surf-3: var(--bg-3);
  --surf-4: var(--bg-4);
  --surf-5: var(--bg-5);
  --s1-l: var(--bg-2);
  --s2-l: var(--bg-3);
  --s3-l: var(--bg-3);
  --s4-l: var(--bg-4);
  --s5-l: var(--bg-5);
  --t1: var(--text-primary);
  --t2: var(--text-secondary);
  --t3: var(--text-muted);
  --t4: var(--text-ghost);
  --t1-l: var(--text-primary);
  --t2-l: var(--text-secondary);
  --t3-l: var(--text-muted);
  --t4-l: var(--text-ghost);
  --b1: var(--border);
  --b2: var(--border);
  --b3: var(--border-hover);
  --bi: var(--accent-indigo-bd);
  --bih: var(--accent-indigo-bh);
  --br0: var(--border);
  --br1: var(--border);
  --br2: var(--accent-indigo-bd);
  --br3: var(--accent-indigo-bh);
  --bd0: var(--border);
  --bd1: var(--border);
  --bd2: var(--border-hover);
  --bd-a: var(--accent-indigo-bd);
  --bd-ah: var(--accent-indigo-bh);
  --ink: var(--accent-indigo);
  --ink-2: var(--accent-indigo-hi);
  --ink-3: var(--accent-indigo);
  --ink-d: var(--accent-indigo-lo);
  --ink-m: var(--accent-indigo-md);
  --ink-g: rgba(99, 102, 241, 0.22);
  --g: var(--accent-indigo);
  --g2: var(--accent-indigo-hi);
  --c: var(--accent-cyan);
  --gd: var(--accent-indigo-lo);
  --gg: var(--accent-indigo-md);
  --aqua: var(--accent-cyan);
  --aqua-d: var(--accent-cyan-lo);
  --aqua-m: var(--accent-cyan-md);
  --plum: var(--accent-violet);
  --plum-d: var(--accent-violet-lo);
  --plum-m: rgba(139, 92, 246, 0.15);
  --gold: var(--accent-amber);
  --gold-d: var(--accent-amber-lo);
  --gold-m: rgba(245, 158, 11, 0.15);
  --rose: var(--accent-red);
  --rose-d: rgba(239, 68, 68, 0.09);
  --emerald: var(--accent-green);
  --a: var(--accent-amber);
  --p: var(--accent-violet);
  --b: var(--accent-cyan);
  --si: var(--card-spec);
  --in: var(--card-spec);
  --sp: var(--card-spec);
  --sp-h: var(--card-spec-hover);
  --sh1: var(--shadow-1);
  --sh2: var(--shadow-2);
  --sh3: var(--shadow-2);
  --sh4: var(--shadow-2);
  --sh-3: var(--shadow-2);
  --sh-4: var(--shadow-2);
  --shg: var(--glow);
  --shg2: var(--glow-strong);
  --gl: var(--glow);
  --gl-h: var(--glow-strong);
  --gl-a: var(--glow-cyan);
  --gl-g: var(--glow-amber);
  --gl-p: 0 0 20px rgba(139, 92, 246, 0.08);
  --shc: var(--glow-cyan);
  --sha: var(--glow-amber);
  --sg: rgba(3, 5, 9, 0.82);
  --fast: var(--d-micro);
  --base-dur: var(--d-card);
  --slow: var(--d-reveal);
  --ease-out: var(--ease);
  --spring: var(--ease);
  --ease-in-out: var(--ease-std);
  --r3: 6px;
  --r4: 6px;
  --r5: 6px;
  --r6: 6px;
  --r8: 8px;
  --r10: 10px;
  --r11: 14px;
  --r12: 14px;
  --r14: 14px;
  --r16: 14px;
  --r18: 14px;
  --r20: 14px;
  --r24: 14px;
  --ff: var(--font-display);
  --fm: var(--font-mono);
  --fb: var(--font-body);
  --term-green: var(--accent-indigo);
  --term-amber: var(--accent-amber);
  --term-cyan: var(--accent-cyan);
  --term-red: var(--accent-red);
  --term-blue: var(--accent-cyan);
  --bg-primary: var(--bg-2);
  --bg-secondary: var(--bg-3);
  --bg-tertiary: var(--bg-3);
  --bg-elevated: var(--bg-4);
  --text-accent: var(--accent-indigo);
  --border-default: var(--border);
  --border-accent: var(--accent-indigo-bd);
  --border-bright: var(--accent-indigo-bh);
  --shadow-glow: var(--glow);
  --shadow-glow-strong: var(--glow-strong);
  --font-mono: var(--font-mono);
}

/* ─── PJAX PROGRESS BAR ─── */
#pjax-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--ds-text-brand, #0065FF);
  z-index: 100001;
  pointer-events: none;
  width: 0%;
  box-shadow: 0 0 10px rgba(0, 101, 255, 0.4);
}

/* ─── §2 · DESIGN TOKENS - LIGHT ─────────────────────────────────────── */
html.light {
  --bg-1: #FFFFFF;
  --bg-2: #F4F5F7; /* Atlassian Light Surface */
  --bg-3: #EEF2FF;
  --bg-4: #E8EEFF;
  --bg-5: #DDE6FF;

  /* ── RGB Tokens for Glassmorphism ── */
  --bg-1-rgb: 255, 255, 255;
  --bg-2-rgb: 244, 245, 247;
  --primary-rgb: 0, 82, 204;

  /* ── Text - Atlassian Enterprise Standard (Light) ── */
  --text-primary: #172B4D;   /* Deep slate-blue for main headings */
  --text-secondary: #42526E; /* Softer slate for body copy */
  --text-muted: #8993A4;     /* For metadata, dates, and subtle tags */
  --text-ghost: #CBD5E1;

  --accent-primary: #0052CC; /* Blue 700 */
  --accent-indigo: #4338CA;
  --accent-indigo-hi: #6366F1;
  /* ... rest of accents ... */
  --accent-cyan: #0E7490;
  --accent-cyan-lo: rgba(14, 116, 144, 0.07);
  --accent-cyan-md: rgba(14, 116, 144, 0.13);
  --accent-cyan-bd: rgba(14, 116, 144, 0.20);

  --border: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(0, 0, 0, 0.12);
  --border-strong: rgba(0, 0, 0, 0.18);

  --shadow-1: 0 1px 2px rgba(0, 0, 20, 0.06), 0 2px 6px rgba(0, 0, 20, 0.04);
  --shadow-2: 0 4px 14px rgba(0, 0, 20, 0.09), 0 12px 32px rgba(0, 0, 20, 0.05);

  --glow: 0 0 0 1px rgba(67, 56, 202, 0.12), 0 4px 16px rgba(67, 56, 202, 0.09);
  --glow-strong: 0 0 0 1px rgba(67, 56, 202, 0.24), 0 6px 24px rgba(67, 56, 202, 0.16),
    0 16px 48px rgba(67, 56, 202, 0.06);
  --glow-cyan: 0 4px 16px rgba(14, 116, 144, 0.09);
  --glow-amber: 0 4px 16px rgba(180, 83, 9, 0.09);

  --card-spec: inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.04);
  --card-spec-hover: inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.07);

  --sg: rgba(247, 249, 255, 0.88);
  --canvas: var(--bg-1);
  --base: var(--bg-1);
  --s0: var(--bg-1);
  --surf-1: var(--bg-2);
  --surf-2: var(--bg-3);
  --surf-3: var(--bg-3);
  --surf-4: var(--bg-4);
  --surf-5: var(--bg-5);
  --s1-l: var(--bg-2);
  --s2-l: var(--bg-3);
  --s3-l: var(--bg-3);
  --s4-l: var(--bg-4);
  --s5-l: var(--bg-5);
  --t1: var(--text-primary);
  --t2: var(--text-secondary);
  --t3: var(--text-muted);
  --t4: var(--text-ghost);
  --b1: var(--border);
  --b2: var(--border);
  --b3: var(--border-hover);
  --bi: var(--accent-indigo-bd);
  --bih: var(--accent-indigo-bh);
  --br0: var(--border);
  --br1: var(--border);
  --br2: var(--accent-indigo-bd);
  --br3: var(--accent-indigo-bh);
  --bd0: var(--border);
  --bd1: var(--border);
  --bd2: var(--border-hover);
  --bd-a: var(--accent-indigo-bd);
  --bd-ah: var(--accent-indigo-bh);
  --ink: var(--accent-indigo);
  --ink-2: var(--accent-indigo-hi);
  --ink-d: var(--accent-indigo-lo);
  --ink-m: var(--accent-indigo-md);
  --ink-g: rgba(67, 56, 202, 0.20);
  --g: var(--accent-indigo);
  --g2: var(--accent-indigo-hi);
  --c: var(--accent-cyan);
  --gd: var(--accent-indigo-lo);
  --gg: var(--accent-indigo-md);
  --aqua: var(--accent-cyan);
  --aqua-d: var(--accent-cyan-lo);
  --aqua-m: var(--accent-cyan-md);
  --plum: var(--accent-violet);
  --plum-d: var(--accent-violet-lo);
  --gold: var(--accent-amber);
  --gold-d: var(--accent-amber-lo);
  --rose: var(--accent-red);
  --emerald: var(--accent-green);
  --si: var(--card-spec);
  --in: var(--card-spec);
  --sp: var(--card-spec);
  --sp-h: var(--card-spec-hover);
  --sh1: var(--shadow-1);
  --sh2: var(--shadow-2);
  --sh3: var(--shadow-2);
  --sh4: var(--shadow-2);
  --shg: var(--glow);
  --shg2: var(--glow-strong);
  --gl: var(--glow);
  --gl-h: var(--glow-strong);
  --gl-a: var(--glow-cyan);
  --gl-g: var(--glow-amber);
  --shc: var(--glow-cyan);
  --sha: var(--glow-amber);
  --shadow-glow: var(--glow);
  --shadow-glow-strong: var(--glow-strong);
  --border-default: var(--border);
  --border-accent: var(--accent-indigo-bd);
  --border-bright: var(--accent-indigo-bh);
  --bg-primary: var(--bg-2);
  --bg-secondary: var(--bg-3);
  --bg-elevated: var(--bg-4);
  --text-accent: var(--accent-indigo);
}

/* ─── §2.5 · GOOGLE MISSION CONTROL THEME ────────────────────────────── */
:root[data-theme="google"] {
  --bg-1: #ffffff;
  --bg-2: #f8f9fa;
  --bg-3: #f1f3f4;
  --bg-4: #e8eaed;
  --bg-5: #dee2e6;

  --text-primary: #202124;
  --text-secondary: #3c4043;
  --text-muted: #5f6368;
  --text-ghost: #9aa0a6;

  --accent-google-blue: #4285F4;
  --accent-google-red: #EA4335;
  --accent-google-yellow: #FBBC05;
  --accent-google-green: #34A853;

  /* Override existing accents with Google Primary */
  --accent-indigo: var(--accent-google-blue);
  --accent-indigo-hi: #1a73e8;
  --accent-indigo-lo: rgba(66, 133, 244, 0.08);
  --accent-indigo-bd: rgba(66, 133, 244, 0.15);

  --accent-cyan: var(--accent-google-blue);
  --accent-violet: #8ab4f8;
  --accent-amber: var(--accent-google-yellow);
  --accent-red: var(--accent-google-red);
  --accent-green: var(--accent-google-green);

  --border: #dadce0;
  --border-hover: #bdc1c6;

  /* THE CURVERS - Charlie standard overrides Material 3 */
  --radius: 12px;
  --radius-sm: 3px;
  --radius-pill: 3px;

  --shadow-1: 0 1px 2px 0 rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
  --shadow-2: 0 4px 8px 3px rgba(60, 64, 67, 0.15), 0 1px 3px 0 rgba(60, 64, 67, 0.3);

  --font-display: var(--font-sans);
  --font-body: var(--font-sans);

  --glow: 0 0 16px rgba(66, 133, 244, 0.1);
  --card-spec: none;
  --card-spec-hover: none;
}

/* Apply Google Mode styling to top-level containers when active */
:root[data-theme="google"] .glass-card,
:root[data-theme="google"] .sk,
:root[data-theme="google"] .proj,
:root[data-theme="google"] .ac,
:root[data-theme="google"] .rec-card,
:root[data-theme="google"] .h-term {
  border-radius: var(--radius) !important;
  background: var(--bg-1) !important;
  border: 1px solid var(--border) !important;
  backdrop-filter: none !important;
  box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.1), 0 2px 6px 2px rgba(60, 64, 67, 0.05) !important;
}

:root[data-theme="google"] .h-term-bar {
  background: #f1f3f4 !important;
  color: #3c4043 !important;
  border-bottom: 1px solid #dadce0 !important;
}

:root[data-theme="google"] .h-stat {
  background: var(--bg-1) !important;
  border: 1px solid var(--border) !important;
  box-shadow: none !important;
  border-radius: 16px !important;
}

:root[data-theme="google"] .glass-card:hover,
:root[data-theme="google"] .sk:hover,
:root[data-theme="google"] .proj:hover {
  box-shadow: var(--shadow-2) !important;
  border-color: var(--accent-google-blue) !important;
}

:root[data-theme="google"] .btn {
  border-radius: 3px !important;
  text-transform: none !important;
  font-weight: 500 !important;
  letter-spacing: 0.25px !important;
  padding: 10px 24px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
}

/* ─── §3 · SMOOTH THEME CROSSFADE - covers EVERY visual property ─────── */
/*
  Strategy: Use a single CSS custom property transition on :root / html.light.
  Every colour that references a CSS var() automatically transitions.
  We add explicit transitions only on properties that DON'T use vars.
*/

/* Phase 1 - surfaces & text (0ms) */
html {
  transition:
    color 0.4s var(--ease),
    background-color 0.4s var(--ease);
}

/* Phase 2 - body bg image & pseudo-layers (20ms delay) */
body {
  transition:
    background-color 0.4s var(--ease) 0ms,
    color 0.4s var(--ease) 0ms;
}

/* ─── §3 · THEME TRANSITION - single overlay flash (Vercel/Linear pattern) ── */
#theme-overlay {
  position: fixed;
  inset: 0;
  z-index: 99997;
  pointer-events: none;
  opacity: 0;
  background: var(--bg-1);
  transition: none;
  will-change: opacity;
}

#theme-overlay.flash-in {
  transition: opacity 100ms linear;
  opacity: 1;
}

#theme-overlay.flash-out {
  transition: opacity 130ms cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
}

/* ─── §4 · RESET ──────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

html {
  scroll-padding-top: 100px;
  overscroll-behavior-y: none; /* Stops the "rubber band" bounce on desktop */
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  background-color: var(--bg-1);
  color: var(--text-primary);
  line-height: 24px; /* Locked to 8px grid */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  width: 100%;
  min-height: -webkit-fill-available;
  position: relative;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  /* Hardware Acceleration for High Refresh Rates (144Hz+) */
  will-change: scroll-position;
  -webkit-overflow-scrolling: touch;
}

/* --- PREMIUM SAAS SCROLLBARS --- */
::-webkit-scrollbar {
  width: 8px; /* Slimmer than default */
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent; /* Lets your background show through */
}

::-webkit-scrollbar-thumb {
  background: rgba(137, 147, 164, 0.3); /* Subtle grey thumb */
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(137, 147, 164, 0.6); /* Darkens on interaction */
}

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

a {
  text-decoration: none;
  color: inherit
}

ul,
ol {
  list-style: none
}

button {
  background: none;
  border: none;
  font-family: var(--font-body)
}

strong {
  color: var(--accent-indigo-hi);
  font-weight: 600
}

/* Custom cursor removed - restored system defaults */
@media (pointer: fine) {

  a,
  button,
  .btn {
    cursor: pointer;
  }
}

.container {
  max-width: min(1200px, 100%);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
  width: 100%;
}

/* ─── §4b · TYPOGRAPHY SYSTEM - Daytona level ───────────────────────────
   Daytona pattern:
   · Headings    → Oxanium, tight tracking, large scale
   · Body text   → Inter, 15–16px, 1.75 line-height, high contrast
   · Labels/UI   → Inter, 12–13px caps, tight tracking
   · Code/mono   → JetBrains Mono ONLY for actual code/terminal elements
   · NO tiny text (min readable size = 13px = 0.8125rem)
────────────────────────────────────────────────────────────────────── */

/* Global prose upgrade - Inter everywhere except code blocks */
p,
li,
dd,
dt,
span,
div,
label,
td,
th {
  font-family: var(--font-body);
}

/* Mono ONLY for code-like elements */
code,
pre,
kbd,
samp,
.h-term,
.h-term-body,
.h-term-bar,
.term-line,
.tp,
.tc,
.tf,
.to,
.ts,
.eip-prompt,
.eip-out,
.nav-logo,
.nav-cmd,
.tl-tech span,
.proj-tech span,
.cert-skill,
.cert-date,
.cert-id,
.obs-metric-val,
.telemetry-counter,
.latency-val,
.uptime-pct,
.tabular-nums {
  font-family: var(--font-mono) !important;
  font-variant-numeric: tabular-nums;
  text-align: right;
  letter-spacing: -0.01em;
}
.cert-badge,
.tl-period,
.tl-type,
.tl-location,
.typed-wrap,
.typed-prefix,
.s-label,
.h-badge,
.tag,
.skill-tag,
.tdot,
.footer,
.t-role,
.ti {
  font-family: var(--font-mono);
}

/* ── Scale - minimum 13px, readable at all viewports ── */

/* Hero headline - massive, Inter, tight */
.hero h1 {
  font-family: var(--font-sans);
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: var(--text-primary);
}

:root[data-theme="google"] .hero h1 .line2 {
  background: linear-gradient(90deg, #4285F4, #34A853);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Section titles - Oxanium, confident */
.s-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--text-primary);
}

/* Section description - Inter, proper body size */
.s-desc {
  font-family: var(--font-body);
  font-size: 1rem;
  /* 16px */
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
}

/* About body text */
.about-text p {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  /* 15px */
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

/* Hero subtext */
.h-sub {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  /* 15px */
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 480px;
}

/* Card titles - Oxanium */
.sk h3,
.ac h4,
.rec-card h4,
.tl-role,
.cert-name {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.sk h3 {
  font-size: 1rem;
}

/* 16px */
.ac h4 {
  font-size: 0.9375rem;
}

/* 15px */
.rec-card h4 {
  font-size: 0.9375rem;
}

.tl-role {
  font-size: 1.125rem;
}

/* 18px - experience is important */
.cert-name {
  font-size: 0.9375rem;
}

.proj h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

/* Card body text - Inter, legible */
.ac p,
.rec-card p,
.tcrd blockquote {
  font-family: var(--font-body);
  font-size: 0.875rem;
  /* 14px */
  line-height: 1.75;
  color: var(--text-secondary);
}

.proj p {
  font-family: var(--font-body);
  font-size: 0.875rem; /* 14px */
  line-height: 1.6;
  color: var(--text-secondary);
}

/* Timeline */
.tl-summary {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

.tl-bullet {
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.tl-company {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
}

/* Stats */
.sv,
.ahl-v,
.spk-val {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.sl,
.ahl-l,
.spk-lbl {
  font-family: var(--font-body);
  font-size: 0.75rem;
  /* 12px - labels, acceptable minimum */
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Navigation links - Inter */
.nav-links a.nav-link,
.nav-links .nav-pill {
  font-family: var(--font-body);
  text-transform: none;
}

/* Buttons - Inter, proper weight */
.btn {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  /* 13px */
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  /* Sentence case, not ALL CAPS */
}

/* Skill tags */
.tag,
.skill-tag {
  font-size: 0.75rem;
  /* 12px minimum */
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* Tech stack chips on cards */
.tl-tech span,
.proj-tech span {
  font-size: 0.75rem;
  font-weight: 500;
}

/* Section label (the # PREFIX line) */
.s-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
}

/* CTA */
.cta h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.cta p {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

/* Footer */
.footer {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Testimonial quote - Inter italic, readable */
.tcrd blockquote {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.9375rem;
  line-height: 1.7;
}

.t-name {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
}

/* About card stat highlight */
.ahl-i {
  font-size: 1.3rem
}

/* EIP section */
.eip-out {
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.eip-out p {
  font-family: var(--font-body);
}

/* ─── §5 · BACKGROUND SYSTEM - CANVAS ENGINE ────────────────────────── */
/*
  Everything rendered by #bg-canvas:
  · Morphing dot ↔ grid pattern (autonomous 12–18s cycle)
  · Cursor lighting - real-time glow illuminates nearest dots/lines
  · Autonomous pulsing + data-flow on grid lines
  · Ambient radial gradients stay in CSS (no paint cost)
  Dark: white dots/lines   Light: indigo dots/lines
*/

body {
  background-color: var(--bg-1);
  background-image:
    radial-gradient(ellipse 70% 50% at 50% -10%, rgba(99, 102, 241, 0.14) 0%, transparent 60%),
    radial-gradient(ellipse 40% 35% at 96% 90%, rgba(34, 211, 238, 0.07) 0%, transparent 55%),
    radial-gradient(ellipse 35% 30% at 2% 80%, rgba(139, 92, 246, 0.06) 0%, transparent 55%),
    radial-gradient(ellipse 30% 25% at 80% 15%, rgba(99, 102, 241, 0.05) 0%, transparent 50%);
}

html.light body {
  background-color: #F0F2FF;
  background-image:
    radial-gradient(ellipse 65% 45% at 50% -8%, rgba(67, 56, 202, 0.09) 0%, transparent 58%),
    radial-gradient(ellipse 38% 30% at 96% 92%, rgba(14, 116, 144, 0.05) 0%, transparent 52%),
    radial-gradient(ellipse 32% 28% at 2% 75%, rgba(109, 40, 217, 0.04) 0%, transparent 50%);
}

html.light {
  --bg-1: #F0F2FF;
}

/* Breathing ambient field - CSS only, GPU-cheap */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 60% 44% at 50% -10%, rgba(99, 102, 241, 0.12) 0%, transparent 56%),
    radial-gradient(ellipse 38% 32% at 88% 96%, rgba(34, 211, 238, 0.07) 0%, transparent 52%),
    radial-gradient(ellipse 28% 24% at 14% 92%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
  animation: bgBreathe 34s ease-in-out infinite alternate;
  will-change: opacity, transform;
}

@keyframes bgBreathe {
  0% {
    opacity: 0.6;
    transform: scale(1) translateY(0)
  }

  50% {
    opacity: 1.0;
    transform: scale(1.04) translateY(-12px)
  }

  100% {
    opacity: 0.75;
    transform: scale(1.02) translateY(-5px)
  }
}

html.light body::before {
  background:
    radial-gradient(ellipse 60% 42% at 50% -8%, rgba(67, 56, 202, 0.07) 0%, transparent 56%),
    radial-gradient(ellipse 36% 28% at 88% 94%, rgba(14, 116, 144, 0.04) 0%, transparent 50%);
  animation-duration: 42s;
}

body::after {
  display: none
}

/* canvas handles grid - no need for CSS grid */

/* The canvas */
#bg-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  width: 100%;
  height: 100%;
}

/* Legacy: keep #matrix-bg and #dot-grid as transparent no-ops */
#matrix-bg {
  display: none
}

#dot-grid {
  display: none
}

/* Scanline micro-texture */
.scanline {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9990;
  background: repeating-linear-gradient(0deg, transparent, transparent 4px,
      rgba(0, 0, 0, 0.002) 4px, rgba(0, 0, 0, 0.002) 5px);
}

html.light .scanline {
  opacity: 0
}

/* Cursor spotlight - canvas handles main lighting; this is secondary full-page tint */
#spotlight {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 50%),
      rgba(99, 102, 241, 0.03) 0%, transparent 60%);
  opacity: 0;
}

body.has-mouse #spotlight {
  opacity: 1
}

html.light #spotlight {
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 50%),
      rgba(67, 56, 202, 0.02) 0%, transparent 60%);
}

/* ── CARD DOT TEXTURE - micro dot grid inside every card + Vercel-noise overlay */
.sk::before,
.proj::before,
.cert::before,
.rec-card::before,
.spk-stat::after,
.ac::before,
.ahl::after,
.h-stat::after,
.tl-card::before,
.soc::after {
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.09) 1px, transparent 1px) 0 0 / 16px 16px,
    linear-gradient(to bottom, rgba(255, 255, 255, 0.06), transparent 36%) !important;
  pointer-events: none;
  z-index: 0;
}

html.light .sk::before,
html.light .proj::before,
html.light .cert::before,
html.light .rec-card::before,
html.light .spk-stat::after,
html.light .ac::before,
html.light .ahl::after,
html.light .h-stat::after,
html.light .tl-card::before,
html.light .soc::after {
  background:
    radial-gradient(circle, rgba(67, 56, 202, 0.07) 1px, transparent 1px) 0 0 / 16px 16px,
    linear-gradient(to bottom, rgba(255, 255, 255, 0.92), transparent 30%) !important;
}

/* Vercel-style section dividers - subtle radial vignette at section boundaries */
.s-alt::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--border-hover) 20%,
      var(--accent-indigo-bd) 50%, var(--border-hover) 80%, transparent 100%);
  pointer-events: none;
}

/* Vercel noise texture - applied via repeating SVG fragment */
#vercel-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  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='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  opacity: 0.015;
  mix-blend-mode: overlay;
}

/* ─── §6 · CURSOR ─────────────────────────────────────────────────────── */
#cursor-dot {
  position: fixed;
  pointer-events: none;
  z-index: 99999;
  width: 6px;
  height: 6px;
  background: white;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  will-change: transform;
  transition: width 120ms var(--ease), height 120ms var(--ease);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
  mix-blend-mode: difference;
}

#cursor-ring {
  position: fixed;
  pointer-events: none;
  z-index: 99998;
  width: 32px;
  height: 32px;
  border: 1.5px solid white;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  will-change: transform;
  transition: width 260ms var(--ease), height 260ms var(--ease), border-color 180ms;
  mix-blend-mode: difference;
}

body.cursor-hover #cursor-dot {
  width: 10px;
  height: 10px
}

body.cursor-hover #cursor-ring {
  width: 50px;
  height: 50px;
  border-color: rgba(255, 255, 255, 0.8)
}

body.cursor-click #cursor-dot {
  width: 3px;
  height: 3px
}

body.cursor-click #cursor-ring {
  width: 16px;
  height: 16px
}

@media (hover: none) {

  #cursor-dot,
  #cursor-ring {
    display: none
  }

  body,
  button {
    cursor: auto
  }
}

/* ─── §7 · SCROLL PROGRESS ────────────────────────────────────────────── */
#sp {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-indigo), var(--accent-cyan), var(--accent-violet));
  z-index: 9999;
  box-shadow: 0 0 8px rgba(99, 102, 241, 0.55), 0 0 24px rgba(99, 102, 241, 0.18);
  transition: width 80ms linear;
}

/* ─── §8 · NAVIGATION ─────────────────────────────────────────────────── */
.nav {
  /* Pinning handled by premium-feel.css consolidated block */
  background: rgba(3, 5, 9, 0.50);
  backdrop-filter: blur(40px) saturate(160%) brightness(1.06);
  -webkit-backdrop-filter: blur(40px) saturate(160%) brightness(1.06);
  border-bottom: 1px solid var(--border);
  transition: background 0.28s var(--ease-std), border-color 0.28s, box-shadow 0.28s !important;
}

html.light .nav {
  background: rgba(247, 249, 255, 0.70);
  border-bottom-color: var(--border)
}

.nav.scrolled {
  background: rgba(3, 5, 9, 0.94);
  border-bottom-color: rgba(99, 102, 241, 0.08);
  box-shadow: 0 1px 0 rgba(99, 102, 241, 0.05), 0 4px 24px rgba(0, 0, 0, 0.55);
  transform: translateX(-50%) !important;
}

html.light .nav.scrolled {
  background: rgba(255, 255, 255, 0.98);
  border-bottom-color: rgba(67, 56, 202, 0.09);
  box-shadow: 0 1px 0 rgba(67, 56, 202, 0.06), 0 4px 18px rgba(0, 0, 0, 0.07);
  transform: translateX(-50%) !important;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 12px
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--accent-indigo);
  display: flex;
  align-items: center;
  letter-spacing: 0.02em;
  white-space: nowrap;
  flex-shrink: 0
}

.nu {
  color: var(--accent-indigo-hi)
}

html.light .nu {
  color: var(--accent-indigo)
}

.na {
  color: var(--accent-amber)
}

.nh {
  color: var(--accent-cyan)
}

.nc {
  color: var(--text-muted)
}

.np {
  color: #7DD3FC
}

html.light .np {
  color: #1D4ED8
}

.ns {
  color: var(--accent-red);
  font-weight: 800;
  animation: blink 1.4s step-end infinite
}

.cur {
  display: inline-block;
  width: 7px;
  height: 14px;
  background: var(--accent-indigo);
  margin-left: 2px;
  animation: cblink 1s step-end infinite;
  vertical-align: text-bottom;
  box-shadow: 0 0 7px var(--accent-indigo)
}

@keyframes blink {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: 0.15
  }
}

@keyframes cblink {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: 0
  }
}

/* ── Nav links container ── */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0
}

/* ── Core text links ── */
.nav-links a.nav-link {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0;
  text-transform: none;
  padding: 6px 11px;
  border-radius: 7px;
  white-space: nowrap;
  transition: color var(--d-micro) var(--ease), background var(--d-micro) var(--ease) !important;
}

.nav-links a.nav-link:hover {
  color: var(--accent-indigo-hi);
  background: var(--accent-indigo-lo)
}

.nav-links a.nav-link:active {
  transform: scale(0.97)
}

/* ── Visual divider between groups ── */
.nav-divider {
  width: 1px;
  height: 18px;
  background: var(--border-hover);
  margin: 0 8px;
  flex-shrink: 0;
  border-radius: 1px;
}

html.light .nav-divider {
  background: var(--border-strong)
}

/* ── Special section pills: SRE Live + Pipeline ── */
.nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  border: 1px solid;
  white-space: nowrap;
  letter-spacing: 0;
  transition: transform var(--d-micro) var(--ease), opacity var(--d-micro) var(--ease), background-color var(--d-micro) var(--ease), border-color var(--d-micro) var(--ease), box-shadow var(--d-micro) var(--ease), color var(--d-micro) var(--ease) !important;
}

.nav-pill-cyan {
  color: var(--accent-cyan);
  background: var(--accent-cyan-lo);
  border-color: var(--accent-cyan-bd);
}

.nav-pill-cyan:hover {
  background: var(--accent-cyan-md);
  border-color: rgba(34, 211, 238, 0.50);
  box-shadow: var(--glow-cyan);
  transform: translateY(-1px) !important;
}

html.light .nav-pill-cyan {
  color: #0E7490;
  background: rgba(14, 116, 144, 0.10);
  border-color: rgba(14, 116, 144, 0.30);
}

.nav-pill-violet {
  color: var(--accent-violet);
  background: var(--accent-violet-lo);
  border-color: var(--accent-violet-bd);
}

.nav-pill-violet:hover {
  background: rgba(139, 92, 246, 0.15);
  border-color: rgba(139, 92, 246, 0.45);
  box-shadow: var(--gl-p);
  transform: translateY(-1px) !important;
}

html.light .nav-pill-violet {
  color: #6D28D9;
  background: rgba(109, 40, 217, 0.10);
  border-color: rgba(109, 40, 217, 0.30);
}

/* ── Icon-only action button (GitHub) ── */
.nav-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--border);
  border: 1px solid var(--border-hover);
  color: var(--text-muted);
  font-size: 0.9rem;
  white-space: nowrap;
  transition: transform var(--d-micro) var(--ease), opacity var(--d-micro) var(--ease), background-color var(--d-micro) var(--ease), border-color var(--d-micro) var(--ease), box-shadow var(--d-micro) var(--ease), color var(--d-micro) var(--ease) !important;
}

.nav-icon-btn:hover {
  background: var(--accent-indigo-lo);
  border-color: var(--accent-indigo-bd);
  color: var(--accent-indigo-hi);
  box-shadow: var(--glow);
}

html.light .nav-icon-btn {
  background: var(--border);
}

/* ── ⌘K Quick Nav button ── */
.nav-cmd {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--border);
  border: 1px solid var(--border-hover);
  border-radius: 7px;
  padding: 5px 10px;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0;
  cursor: inherit;
  white-space: nowrap;
  transition: all var(--d-card) var(--ease) !important
}

.nav-cmd kbd {
  background: var(--accent-indigo-lo);
  border: 1px solid var(--accent-indigo-bd);
  border-radius: 3px;
  padding: 1px 5px;
  font-size: 0.6875rem;
  font-family: var(--font-mono);
  color: var(--accent-indigo-hi)
}

.nav-cmd:hover {
  background: var(--accent-indigo-lo);
  border-color: var(--accent-indigo-bd);
  color: var(--accent-indigo-hi)
}

.nav-cmd:active {
  transform: scale(0.97)
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--border);
  border: 1px solid var(--border-hover);
  border-radius: 8px;
  color: var(--text-muted);
  cursor: inherit;
  font-size: 0.82rem;
  flex-shrink: 0;
  transition: all var(--d-card) var(--ease) !important
}

.theme-toggle:hover {
  background: var(--accent-indigo-lo);
  border-color: var(--accent-indigo-bd);
  color: var(--accent-indigo-hi);
  box-shadow: var(--glow)
}

.theme-toggle:active {
  transform: scale(0.92)
}

.theme-toggle .ti-sun {
  display: none
}

.theme-toggle .ti-moon {
  display: block
}

html.light .theme-toggle .ti-sun {
  display: block
}

html.light .theme-toggle .ti-moon {
  display: none
}

html.light .theme-toggle {
  background: var(--border);
  border-color: var(--border-hover);
  color: var(--text-secondary)
}

html.light .theme-toggle:hover {
  background: var(--accent-indigo-lo);
  border-color: var(--accent-indigo-bd);
  color: var(--accent-indigo)
}

.nav-cta {
  background: var(--accent-indigo-lo) !important;
  color: var(--accent-indigo-hi) !important;
  padding: 5px 11px !important;
  border-radius: 7px !important;
  font-family: var(--font-body) !important;
  font-weight: 600 !important;
  font-size: 0.75rem !important;
  border: 1px solid var(--accent-indigo-bd) !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  transition: transform var(--d-micro) var(--ease), opacity var(--d-micro) var(--ease), background-color var(--d-micro) var(--ease), border-color var(--d-micro) var(--ease), box-shadow var(--d-micro) var(--ease), color var(--d-micro) var(--ease) !important;
  white-space: nowrap !important
}

.nav-cta:hover {
  background: var(--accent-indigo-md) !important;
  border-color: var(--accent-indigo-bh) !important;
  box-shadow: var(--glow) !important;
  transform: translateY(-1px) !important
}

.nav-cta:active {
  transform: translateY(0) scale(0.97) !important
}

.nav-cta::before,
.nav-cta::after {
  display: none !important
}

.nav-cta-amber {
  background: var(--accent-amber-lo) !important;
  color: var(--accent-amber) !important;
  border: 1px solid var(--accent-amber-bd) !important
}

html.light .nav-cta-amber {
  background: rgba(180, 83, 9, 0.07) !important;
  color: var(--accent-amber) !important;
  border-color: rgba(180, 83, 9, 0.22) !important
}

.nav-cta-amber:hover {
  background: rgba(245, 158, 11, 0.15) !important;
  border-color: rgba(245, 158, 11, 0.45) !important;
  box-shadow: var(--glow-amber) !important
}

/* ── Job Status Badge ── */
#nav-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  border: 1px solid;
  cursor: pointer;
  transition: transform var(--d-micro) var(--ease), opacity var(--d-micro) var(--ease), background-color var(--d-micro) var(--ease), border-color var(--d-micro) var(--ease), box-shadow var(--d-micro) var(--ease), color var(--d-micro) var(--ease) !important;
  text-decoration: none;
}

/* open → green */
#nav-status.status-open {
  background: rgba(16, 185, 129, 0.10);
  color: #10B981;
  border-color: rgba(16, 185, 129, 0.28);
}

#nav-status.status-open:hover {
  background: rgba(16, 185, 129, 0.18);
  border-color: rgba(16, 185, 129, 0.50);
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.12);
  transform: translateY(-1px) !important;
}

/* seeking → amber */
#nav-status.status-seeking {
  background: rgba(245, 158, 11, 0.10);
  color: var(--accent-amber);
  border-color: rgba(245, 158, 11, 0.28);
}

#nav-status.status-seeking:hover {
  background: rgba(245, 158, 11, 0.18);
  border-color: rgba(245, 158, 11, 0.50);
  box-shadow: var(--glow-amber);
  transform: translateY(-1px) !important;
}

/* closed → muted grey */
#nav-status.status-closed {
  background: var(--accent-indigo-lo);
  color: var(--text-muted);
  border-color: var(--border-hover);
  cursor: default;
  pointer-events: none;
}

/* pulsing dot */
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-open .status-dot {
  background: #10B981;
  animation: statusDotGreen 2s ease-in-out infinite;
}

.status-seeking .status-dot {
  background: var(--accent-amber);
  animation: statusDotAmber 2s ease-in-out infinite;
}

.status-closed .status-dot {
  background: var(--text-muted);
}

@keyframes statusDotGreen {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.50);
  }

  50% {
    box-shadow: 0 0 0 5px rgba(16, 185, 129, 0);
  }
}

@keyframes statusDotAmber {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.50);
  }

  50% {
    box-shadow: 0 0 0 5px rgba(245, 158, 11, 0);
  }
}

.mob-btn {
  display: none;
  background: none;
  border: 1px solid var(--border-hover);
  font-size: 0.9rem;
  color: var(--accent-indigo);
  padding: 7px 8px;
  border-radius: 6px;
  cursor: inherit;
  transition: border-color var(--d-micro) !important
}

#theme-toggle-mob {
  display: none
}

.mob-btn:hover {
  border-color: var(--accent-indigo-bd)
}

.mob-btn:active {
  transform: scale(0.95)
}

.mob-menu {
  /* display: none; */
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: rgba(3, 5, 9, 0.97);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-hover);
  padding: 8px 28px 16px;
  z-index: 1999
}

html.light .mob-menu {
  background: rgba(255, 255, 255, 0.97)
}

.mob-menu.open {
  left: 0;
}

.mob-menu a {
  display: block;
  padding: 12px 0;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  letter-spacing: 0;
  border-bottom: 1px solid var(--border);
  transition: color var(--d-micro) !important
}

.mob-menu a:hover {
  color: var(--accent-indigo-hi)
}

.mob-menu a::before {
  content: '→ ';
  color: var(--accent-indigo);
  font-family: var(--font-body)
}

/* ─── §9 · COMMAND PALETTE ────────────────────────────────────────────── */
#cmd-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(12px);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 13vh
}

#cmd-overlay.open {
  display: flex
}

#cmd-modal {
  width: min(620px, 94vw);
  background: var(--bg-5);
  border: 1px solid var(--accent-indigo-bd);
  border-radius: var(--radius);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.70), var(--glow-strong);
  overflow: hidden;
  animation: cmdIn 180ms var(--ease) both
}

html.light #cmd-modal {
  background: var(--bg-2);
  box-shadow: var(--shadow-2), var(--glow)
}

@keyframes cmdIn {
  from {
    opacity: 0;
    transform: scale(.94) translateY(-10px)
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0)
  }
}

#cmd-search {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-hover);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 17px 20px;
  outline: none
}

#cmd-search::placeholder {
  color: var(--text-muted)
}

.cmd-results {
  max-height: 320px;
  overflow-y: auto;
  padding: 8px
}

.cmd-results::-webkit-scrollbar {
  width: 3px
}

.cmd-results::-webkit-scrollbar-thumb {
  background: var(--accent-indigo-bd);
  border-radius: 2px
}

.cmd-group-label {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 10px 12px 4px
}

.cmd-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 8px;
  cursor: inherit;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: background var(--d-micro), color var(--d-micro) !important
}

.cmd-item:hover,
.cmd-item.active {
  background: var(--accent-indigo-lo);
  color: var(--accent-indigo-hi)
}

.cmd-item i {
  width: 18px;
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted)
}

.cmd-item:hover i,
.cmd-item.active i {
  color: var(--accent-indigo-hi)
}

.cmd-item-sub {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-left: auto;
  white-space: nowrap
}

.cmd-footer {
  border-top: 1px solid var(--border);
  padding: 9px 16px;
  display: flex;
  gap: 14px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--text-muted);
  align-items: center
}

.cmd-footer kbd {
  background: var(--accent-indigo-lo);
  border: 1px solid var(--accent-indigo-bd);
  border-radius: 3px;
  padding: 1px 5px;
  color: var(--accent-indigo-hi)
}

/* ─── §10 · TOAST ─────────────────────────────────────────────────────── */
#toast-container {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 8000;
  display: flex;
  flex-direction: column;
  gap: 8px
}

.toast {
  background: var(--bg-4);
  border: 1px solid var(--border-hover);
  border-radius: 10px;
  padding: 11px 15px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-2);
  animation: toastIn 220ms var(--ease) both;
  max-width: 265px
}

html.light .toast {
  background: var(--bg-2);
  box-shadow: var(--shadow-1)
}

.toast.success {
  border-color: rgba(99, 102, 241, 0.22)
}

.toast.success i {
  color: var(--accent-indigo-hi)
}

.toast.info {
  border-color: rgba(34, 211, 238, 0.20)
}

.toast.info i {
  color: var(--accent-cyan)
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(12px)
  }

  to {
    opacity: 1;
    transform: translateX(0)
  }
}

@keyframes toastOut {
  to {
    opacity: 0;
    transform: translateX(12px)
  }
}

/* ─── §11 · HERO ──────────────────────────────────────────────────────── */
.hero {
  padding: 128px 0 88px;
  position: relative;
  z-index: 1;
  overflow: visible
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform;
  overflow: visible
}

.hero-orb-1 {
  width: 800px;
  height: 800px;
  top: -26%;
  right: -18%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.22) 0%, transparent 70%);
  filter: blur(120px);
  animation: orbDrift 22s ease-in-out infinite
}

.hero-orb-2 {
  width: 600px;
  height: 600px;
  bottom: -34%;
  left: -13%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.18) 0%, transparent 70%);
  filter: blur(100px);
  animation: orbDrift 28s ease-in-out infinite reverse
}

.hero-orb-3 {
  width: 440px;
  height: 440px;
  top: 16%;
  left: 38%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
  filter: blur(90px);
  animation: orbDrift 34s ease-in-out infinite 5s
}

html.light .hero-orb-1 {
  opacity: 0.50
}

html.light .hero-orb-2 {
  opacity: 0.35
}

html.light .hero-orb-3 {
  opacity: 0
}

@keyframes orbDrift {

  0%,
  100% {
    transform: translate(0, 0) scale(1)
  }

  35% {
    transform: translate(22px, -18px) scale(1.025)
  }

  68% {
    transform: translate(-14px, 10px) scale(0.978)
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  position: relative;
  z-index: 1
}

.hero-content {
  animation: heroFadeUp var(--d-hero) var(--ease) both
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(20px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

.h-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-indigo-lo);
  border: 1px solid var(--accent-indigo-bd);
  border-radius: var(--radius-pill);
  padding: 5px 14px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--accent-indigo-hi);
  letter-spacing: 0.10em;
  text-transform: uppercase;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden
}

.h-badge::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.08), transparent);
  transform: translateX(-100%);
  animation: badgeShimmer 4.4s ease-in-out infinite
}

@keyframes badgeShimmer {

  0%,
  100% {
    transform: translateX(-100%)
  }

  50% {
    transform: translateX(100%)
  }
}

.sdot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.22);
  animation: sdotPulse 2.4s ease-in-out infinite
}

@keyframes sdotPulse {

  0%,
  100% {
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.22)
  }

  50% {
    box-shadow: 0 0 0 5px rgba(16, 185, 129, 0.06)
  }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7.5vw, 5.8rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.045em;
  color: var(--text-primary);
  margin-bottom: 28px;
  position: relative;
}

.hero h1::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 140%;
  height: 140%;
  background: radial-gradient(circle, rgba(66, 133, 244, 0.03) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.hero h1 .line1 {
  display: block;
  color: var(--text-muted);
  font-size: 0.85em;
}

.hero h1 .line2 {
  display: block;
  background: linear-gradient(90deg, #4285F4, #34A853);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@keyframes pulse-glow {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(52, 168, 83, 0.5);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(52, 168, 83, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(52, 168, 83, 0);
  }
}

@keyframes gradientFlow {
  to {
    background-position: 200% center;
  }
}

html.light .hero h1 .line2 {
  filter: drop-shadow(0 0 16px rgba(67, 56, 202, 0.10))
}

.typed-wrap {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.typed-prefix {
  color: var(--accent-google-blue);
  font-weight: 700;
}

.typed-cursor {
  width: 8px;
  height: 18px;
  background: var(--accent-google-blue);
  display: inline-block;
  animation: tcBlink 1s step-end infinite;
  box-shadow: 0 0 12px var(--accent-google-blue);
  vertical-align: middle;
}

@keyframes tcBlink {
  50% {
    opacity: 0;
  }
}

/* Floating Profile for Luxury Feel */
.pw {
  animation: photoFloat 6s ease-in-out infinite;
}

@keyframes photoFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

.id-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 24px
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-hover);
  color: var(--text-secondary);
  background: var(--bg-2);
  transition: background var(--d-micro) var(--ease-std), border-color var(--d-micro) var(--ease-std), color var(--d-micro), transform var(--d-hover) var(--ease-in) !important
}

.chip:hover {
  background: var(--bg-3);
  border-color: var(--accent-cyan);
  color: var(--text-primary);
  transform: translateY(-2px) scale(1.03)
}

html.light .chip {
  background: var(--bg-2);
  border-color: var(--border)
}

html.light .chip:hover {
  background: var(--bg-3);
  border-color: var(--accent-indigo);
  color: var(--text-primary)
}

.chip-g {
  border-color: rgba(99, 102, 241, 0.22)
}

.chip-c {
  border-color: rgba(34, 211, 238, 0.22)
}

.chip-a {
  border-color: rgba(245, 158, 11, 0.22)
}

.chip-p {
  border-color: rgba(139, 92, 246, 0.22)
}

.chip-b {
  border-color: rgba(34, 211, 238, 0.22)
}

.h-term {
  background: linear-gradient(158deg, rgba(2, 4, 12, 0.97), rgba(1, 2, 8, 0.99));
  border: 1px solid var(--border-hover);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: var(--shadow-1), var(--card-spec);
  position: relative;
  animation: heroFadeUp var(--d-hero) var(--ease) 0.6s both
}

html.light .h-term {
  background: linear-gradient(158deg, var(--bg-3), var(--bg-4));
  border-color: var(--border-hover)
}

.h-term::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  z-index: 1;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.70) 30%, rgba(34, 211, 238, 0.90) 50%, rgba(139, 92, 246, 0.70) 70%, transparent)
}

.h-term-bar {
  background: rgba(255, 255, 255, 0.025);
  border-bottom: 1px solid var(--border);
  padding: 9px 14px;
  display: flex;
  align-items: center;
  gap: 7px
}

html.light .h-term-bar {
  background: rgba(0, 0, 0, 0.02)
}

.h-term-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%
}

.d-r {
  background: #FF5F57
}

.d-y {
  background: #FFBD2E
}

.d-g {
  background: #28CA41
}

.h-term-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin: 0 auto;
  padding-right: 28px
}

.h-term-body {
  padding: 14px 18px 16px;
  font-family: var(--font-mono);
  font-size: 0.875rem
}

.term-line {
  margin-bottom: 4px;
  opacity: 0;
  animation: termIn 0.26s var(--ease) forwards
}

.term-line:nth-child(1) {
  animation-delay: .35s
}

.term-line:nth-child(2) {
  animation-delay: .88s
}

.term-line:nth-child(3) {
  animation-delay: 1.52s
}

.term-line:nth-child(4) {
  animation-delay: 2.22s
}

@keyframes termIn {
  from {
    opacity: 0;
    transform: translateX(-4px)
  }

  to {
    opacity: 1;
    transform: translateX(0)
  }
}

.tp {
  color: var(--accent-indigo-hi);
  font-weight: 600
}

.tc {
  color: var(--text-primary)
}

.tf {
  color: var(--accent-amber)
}

.to {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.8
}

.ts {
  color: var(--accent-cyan)
}

.h-sub {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
  max-width: 480px;
  line-height: 1.8;
}

.h-stats {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
  flex-wrap: wrap
}

.h-stat {
  text-align: center;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 16px;
  min-width: 80px;
  cursor: default;
  position: relative;
  overflow: hidden;
  will-change: transform;
  box-shadow: var(--card-spec)
}

.h-stat::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.08), transparent 30%);
  pointer-events: none
}

.h-stat::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-indigo), transparent);
  opacity: 0;
  transition: opacity var(--d-card) var(--ease) !important
}

.h-stat:hover {
  background: var(--bg-3);
  border-color: var(--accent-indigo-bd);
  box-shadow: var(--glow), var(--card-spec-hover);
  transform: translateY(-4px) scale(1.02)
}

.h-stat:hover::before {
  opacity: 1
}

html.light .h-stat {
  background: var(--bg-2);
  box-shadow: var(--shadow-1), var(--card-spec)
}

html.light .h-stat:hover {
  background: var(--bg-3);
  box-shadow: var(--shadow-2), var(--glow)
}

html.light .h-stat::after {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.9), transparent 30%)
}

.sv {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-indigo-hi);
  line-height: 1;
  margin-bottom: 3px;
  text-shadow: 0 0 18px rgba(99, 102, 241, 0.42);
  position: relative;
  z-index: 1
}

html.light .sv {
  text-shadow: none
}

.sl {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  position: relative;
  z-index: 1
}

.h-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap
}

.h-photo {
  display: flex;
  justify-content: center;
  animation: heroFadeUp var(--d-hero) var(--ease) 0.2s both
}

.pw {
  position: relative;
  isolation: isolate
}

.pw-ring {
  position: absolute;
  inset: -12px;
  border-radius: 28px;
  background: conic-gradient(from 0deg, rgba(66, 133, 244, 0.15), rgba(52, 168, 83, 0.15), rgba(66, 133, 244, 0.15));
  z-index: 0;
  transform: translateZ(0) rotate(0deg);
  animation: ringSpin 20s linear infinite;
  will-change: transform;
  pointer-events: none;
  box-shadow: inset 0 0 40px rgba(66, 133, 244, 0.05);
}

html.light .pw-ring {
  opacity: 0.50
}

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

.pw img {
  position: relative;
  z-index: 1;
  width: 336px;
  height: 336px;
  border-radius: var(--radius);
  object-fit: cover;
  border: 1px solid var(--border-hover);
  box-shadow: var(--shadow-2);
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease), background-color 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease), color 0.4s var(--ease) !important;
  filter: saturate(0.88) contrast(1.07);
  transform: translateZ(0)
}

.pw:hover img {
  border-color: var(--accent-indigo-bd);
  box-shadow: var(--glow-strong), var(--shadow-2);
  filter: saturate(1.06) contrast(1.10)
}

.pb {
  position: absolute;
  background: rgba(3, 5, 9, 0.93);
  border: 1px solid var(--border-hover);
  border-radius: 10px;
  padding: 8px 12px;
  box-shadow: var(--shadow-1);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  backdrop-filter: blur(20px);
  animation: pbFloat 3.8s ease-in-out infinite;
  z-index: 2
}

html.light .pb {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-1)
}

.pb-t {
  top: -13px;
  right: -17px;
  color: var(--accent-violet);
  animation-delay: 0s
}

.pb-b {
  bottom: -13px;
  left: -17px;
  color: var(--accent-cyan);
  animation-delay: 1.9s
}

@keyframes pbFloat {

  0%,
  100% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(-7px)
  }
}

/* ─── §12 · TICKER ────────────────────────────────────────────────────── */
/*
  STRUCTURE:
  .ticker-band            → outer strip (bg, borders, overflow:hidden)
    ::before / ::after    → gradient fade overlays (not mask!)
    .ticker-wrap          → clip box, display:block, overflow:hidden, height
      .ticker-strip       → display:flex, width:max-content, animation
        .ti  .tdot ...    → items ×2 for seamless loop

  KEY RULES:
  · overflow:hidden on .ticker-band (not .ticker-wrap alone)
  · NO mask-image on clip box (breaks stacking + overflow interaction)
  · translateX(-50%) = one full set width = seamless
*/

.ticker-band {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 1;
  overflow: hidden;
  /* PRIMARY clip */
}

html.light .ticker-band {
  background: var(--bg-3)
}

/* Gradient overlays - separate from clip, no stacking issues */
.ticker-band::before,
.ticker-band::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}

.ticker-band::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg-2) 0%, transparent 100%)
}

.ticker-band::after {
  right: 0;
  background: linear-gradient(270deg, var(--bg-2) 0%, transparent 100%)
}

html.light .ticker-band::before {
  background: linear-gradient(90deg, var(--bg-3) 0%, transparent 100%)
}

html.light .ticker-band::after {
  background: linear-gradient(270deg, var(--bg-3) 0%, transparent 100%)
}

/* Clip box - simple, no mask */
.ticker-wrap {
  overflow: hidden;
  height: 44px;
}

/* THE SCROLLING STRIP — Powered by CSS Marquee for high-fidelity performance */
.ticker-strip {
  display: flex;
  align-items: center;
  width: max-content;
  height: 44px;
  gap: 0;
  animation: ticker-marquee 30s linear infinite;
  will-change: transform;
}

@keyframes ticker-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Pause on hover for easier reading */
.ticker-band:hover .ticker-strip {
  animation-play-state: paused;
}

.ticker-strip.is-dragging {
  cursor: grabbing !important
}

/* Cursor affordance - explicit pointer-events so events fire through overflow:hidden parent */
.ticker-band {
  cursor: grab;
  pointer-events: auto
}

.ticker-band:active {
  cursor: grabbing
}

/* Item styles */
.ti {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  color: var(--text-muted);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  flex-shrink: 0;
  padding: 0 18px;
  transition: color var(--d-micro) !important;
  user-select: none;
}

.ticker-band:hover .ti {
  color: var(--text-secondary)
}

.tdot {
  display: inline-block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent-indigo);
  flex-shrink: 0;
  box-shadow: 0 0 4px var(--accent-indigo);
  opacity: 0.6;
}

/* ── MOBILE: second row scrolls RIGHT ── */
@media (max-width: 767px) {
  .ticker-wrap {
    height: 34px
  }

  .ticker-strip {
    height: 34px
  }

  .ticker-wrap-r {
    display: block !important;
    border-top: 1px solid var(--border);
  }

  .ticker-strip-r {
    display: flex;
    align-items: center;
    width: max-content;
    height: 34px;
    animation: marqueeR 22s linear infinite;
    will-change: transform;
  }

  @keyframes marqueeR {
    from {
      transform: translateX(-50%)
    }

    to {
      transform: translateX(0)
    }
  }
}

/* ─── §11b · EDUCATION SECTION ──────────────────────────────────────────*/

#education {
  position: relative;
  z-index: 1;
  background-color: var(--bg-1) !important;
}

.edu-timeline {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 1024px;
  margin: 0 auto;
  position: relative;
}

@media (min-width: 768px) {
  .edu-timeline {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Each entry */
.edu-item {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}


/* Card */
.edu-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  text-align: left !important;
  transition:
    background var(--d-card) var(--ease-std),
    border-color var(--d-card) var(--ease-std),
    box-shadow var(--d-card) var(--ease),
    transform var(--d-hover) var(--ease-in);
}

.edu-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.09) 1px, transparent 1px) 0 0 / 16px 16px,
    linear-gradient(to bottom, rgba(255, 255, 255, 0.06), transparent 36%);
  pointer-events: none;
  z-index: 0;
}

html.light .edu-card::before {
  background:
    radial-gradient(circle, rgba(67, 56, 202, 0.07) 1px, transparent 1px) 0 0 / 16px 16px,
    linear-gradient(to bottom, rgba(255, 255, 255, 0.92), transparent 30%);
}

/* Accent top bar */
.edu-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-indigo);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.edu-card:hover::after {
  transform: scaleX(1)
}

.edu-card:hover {
  background: var(--bg-3);
  border-color: var(--accent-indigo-bd);
  box-shadow: var(--glow);
  transform: translateY(-3px);
}

html.light .edu-card {
  background: var(--bg-2);
  box-shadow: var(--shadow-1)
}

html.light .edu-card:hover {
  background: var(--bg-3);
  box-shadow: var(--shadow-2), var(--glow)
}

/* Card content */
.edu-icon-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
  width: 100%;
}



.edu-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-indigo-lo);
  border: 1px solid var(--accent-indigo-bd);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  transition: transform var(--d-card) var(--ease), opacity var(--d-card) var(--ease), background-color var(--d-card) var(--ease), border-color var(--d-card) var(--ease), box-shadow var(--d-card) var(--ease), color var(--d-card) var(--ease);
}

.edu-icon-atl {
  width: 32px;
  height: 32px;
  opacity: 0.4;
  flex-shrink: 0;
}


.edu-card:hover .edu-icon {
  background: var(--accent-indigo-md);
  transform: scale(1.08) rotate(-3deg);
}

.edu-degree {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800 !important;
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.edu-school {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-indigo-hi);
  margin-bottom: 6px;
  position: relative;
  z-index: 1;
}

.edu-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.edu-period,
.edu-location,
.edu-grade {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.edu-desc {
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.edu-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  position: relative;
  z-index: 1;
}

.edu-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  background: var(--accent-indigo-lo);
  color: var(--accent-indigo-hi);
  border: 1px solid var(--accent-indigo-bd);
  padding: 2px 9px;
  border-radius: var(--radius-pill);
  transition: transform var(--d-micro) var(--ease), opacity var(--d-micro) var(--ease), background-color var(--d-micro) var(--ease), border-color var(--d-micro) var(--ease), box-shadow var(--d-micro) var(--ease), color var(--d-micro) var(--ease);
}

.edu-tag:hover {
  background: var(--accent-indigo-md);
  border-color: var(--accent-indigo-bh)
}

/* Status badge on edu card */
.edu-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 9px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.edu-status.completed {
  color: #10B981;
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.25)
}

.edu-status.ongoing {
  color: #F59E0B;
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.25)
}

.edu-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  animation: statusPulse 2.4s ease-in-out infinite;
}

.edu-status.completed .edu-status-dot {
  background: #10B981
}

.edu-status.ongoing .edu-status-dot {
  background: #F59E0B;
  animation-name: statusPulseAmber
}

/* Mobile: stack single column */
@media (max-width: 767px) {
  .edu-item {
    grid-template-columns: 32px 1fr;
    grid-template-rows: auto;
    gap: 0 14px;
  }

  .edu-item:nth-child(odd) .edu-card,
  .edu-item:nth-child(even) .edu-card {
    grid-column: 2;
    grid-row: 1;
    text-align: left
  }

  .edu-item:nth-child(odd) .edu-node,
  .edu-item:nth-child(even) .edu-node {
    grid-column: 1;
    grid-row: 1
  }

  .edu-item:nth-child(odd) .edu-space,
  .edu-item:nth-child(even) .edu-space {
    display: none
  }

  .edu-item:nth-child(odd) .edu-icon-row,
  .edu-item:nth-child(even) .edu-icon-row {
    flex-direction: row
  }

  .edu-item:nth-child(odd) .edu-meta,
  .edu-item:nth-child(odd) .edu-tags {
    justify-content: flex-start
  }

  .edu-node {
    padding-top: 24px;
    align-items: center
  }
}

.section {
  padding: 96px 0;
  position: relative;
  z-index: 1
}

.s-alt {
  background: linear-gradient(180deg, var(--bg-2) 0%, transparent 100%);
  position: relative
}

.s-alt::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--border) 15%, var(--border-hover) 50%, var(--border) 85%, transparent 100%)
}

html.light .s-alt {
  background: linear-gradient(180deg, var(--bg-3) 0%, transparent 100%)
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
  position: relative
}

.section-header[data-num]::before {
  content: attr(data-num);
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 7rem);
  font-weight: 900;
  color: transparent;
  letter-spacing: -0.06em;
  line-height: 1;
  -webkit-text-stroke: 1px rgba(99, 102, 241, 0.052);
  pointer-events: none;
  user-select: none;
  z-index: 0;
  white-space: nowrap;
  opacity: 0.9
}

/* Firefox fallback: if text-stroke is unsupported, use text-shadow outline trick */
@supports not (-webkit-text-stroke: 1px transparent) {
  .section-header[data-num]::before {
    color: rgba(99, 102, 241, 0.052);
  }
}

html.light .section-header[data-num]::before {
  -webkit-text-stroke: 1px rgba(67, 56, 202, 0.060);
}

@supports not (-webkit-text-stroke: 1px transparent) {
  html.light .section-header[data-num]::before {
    color: rgba(67, 56, 202, 0.060);
  }
}

.section-header>* {
  position: relative;
  z-index: 1
}

.s-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--accent-indigo-hi);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 12px
}

.s-label::before {
  content: '#';
  color: var(--accent-red);
  font-weight: 800;
  font-size: 0.9em
}

.s-label::after {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent-indigo), transparent)
}

.s-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: -0.035em;
  line-height: 1.06
}

.s-desc {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.75
}

/* ─── §14 · BUTTONS ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  border: 1.5px solid transparent;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.btn:active {
  transform: scale(0.98) !important;
}

.btn-primary {
  background: var(--accent-indigo);
  color: white !important;
  border: none;
  box-shadow: 0 4px 14px rgba(66, 133, 244, 0.3);
}

.btn-primary:hover {
  background: var(--accent-indigo-hi);
  box-shadow: 0 8px 25px rgba(66, 133, 244, 0.4);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  border: 1.5px solid var(--border-strong);
  color: var(--text-primary) !important;
}

.btn-outline:hover {
  background: var(--primary-blue) !important;
  border-color: var(--primary-blue) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(0, 82, 204, 0.2);
}



.btn-amber {
  background: var(--accent-amber-lo);
  color: var(--accent-amber);
  border: 1px solid var(--accent-amber-bd)
}

.btn-amber:hover {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.44);
  box-shadow: var(--glow-amber)
}

.btn-white {
  background: var(--accent-indigo-md);
  color: var(--accent-indigo-hi);
  font-weight: 700;
  border: 1px solid var(--accent-indigo-bd)
}

.btn-white:hover {
  background: rgba(99, 102, 241, 0.22);
  border-color: var(--accent-indigo-bh);
  box-shadow: var(--glow)
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-hover);
  box-shadow: none
}

.btn-ghost:hover {
  border-color: var(--accent-indigo-bd);
  color: var(--accent-indigo-hi)
}

html.light .btn {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 1), inset 0 -1px 0 rgba(0, 0, 0, 0.04)
}

html.light .btn:hover {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 1), var(--glow)
}

/* ─── §16 · ABOUT ─────────────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start
}

.about-text p {
  font-family: var(--font-body);
  color: var(--text-secondary);
  font-size: 0.9375rem;
  margin-bottom: 18px;
  line-height: 1.8
}

.about-hl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px
}

.ahl {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  text-align: center;
  position: relative;
  overflow: hidden;
  will-change: transform;
  transition: background var(--d-card) var(--ease-std), border-color var(--d-card) var(--ease-std), transform var(--d-hover) var(--ease-in), box-shadow var(--d-card) var(--ease) !important
}

.ahl:hover {
  background: var(--bg-3);
  border-color: var(--text-muted);
  box-shadow: var(--shadow-2);
}

html.light .ahl {
  background: var(--bg-2);
  box-shadow: var(--shadow-1)
}

html.light .ahl:hover {
  background: var(--bg-3);
  box-shadow: var(--shadow-2)
}

.ahl-i {
  font-size: 1.2rem;
  color: var(--accent-indigo-hi);
  margin-bottom: 6px;
  position: relative;
  z-index: 1
}

.ahl-v {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--accent-indigo-hi);
  line-height: 1;
  text-shadow: 0 0 16px rgba(99, 102, 241, 0.38);
  position: relative;
  z-index: 1
}

html.light .ahl-v {
  text-shadow: none
}

.ahl-l {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
  position: relative;
  z-index: 1
}

.about-cards {
  display: flex;
  flex-direction: column;
  gap: 10px
}

.ac {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  position: relative;
  overflow: hidden;
  will-change: transform;
  transition: background var(--d-card) var(--ease-std), border-color var(--d-card) var(--ease-std), transform var(--d-hover) var(--ease-in), box-shadow var(--d-card) var(--ease) !important
}

.ac:hover {
  background: var(--bg-3);
  border-color: var(--text-muted);
  box-shadow: var(--shadow-2);
}

html.light .ac {
  background: var(--bg-2);
  box-shadow: var(--shadow-1)
}

html.light .ac:hover {
  background: var(--bg-3);
  box-shadow: var(--shadow-2)
}

.ac-h {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  position: relative;
  z-index: 1
}

.ac-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0
}

.aci-b {
  background: rgba(96, 165, 250, 0.10);
  color: #60A5FA
}

.aci-g {
  background: var(--accent-indigo-lo);
  color: var(--accent-indigo-hi)
}

.aci-p {
  background: var(--accent-violet-lo);
  color: var(--accent-violet)
}

.aci-a {
  background: var(--accent-amber-lo);
  color: var(--accent-amber)
}

.ac h4 {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  position: relative;
  z-index: 1
}

.ac p {
  font-family: var(--font-body);
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.75;
  position: relative;
  z-index: 1
}

/* ─── §17 · SKILLS ────────────────────────────────────────────────────── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px
}

.sk {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  position: relative;
  overflow: hidden;
  will-change: transform;
  transition: background var(--d-card) var(--ease-std), border-color var(--d-card) var(--ease-std), transform var(--d-hover) var(--ease-in), box-shadow var(--d-card) var(--ease) !important
}

.sk::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.08), transparent 30%);
  pointer-events: none;
  z-index: 0
}

.sk::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-indigo), var(--accent-cyan));
  opacity: 0;
  transition: opacity var(--d-card) var(--ease) !important
}

.sk:hover {
  background: var(--bg-3);
  border-color: var(--accent-indigo-bd);
  box-shadow: var(--glow), var(--card-spec-hover);
  transform: translateY(-4px) scale(1.02)
}

.sk:hover::after {
  opacity: 1
}

html.light .sk {
  background: var(--bg-2);
  box-shadow: var(--shadow-1)
}

html.light .sk:hover {
  background: var(--bg-3);
  box-shadow: var(--shadow-2), var(--glow)
}

html.light .sk::before {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.9), transparent 30%)
}

.sk-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-indigo-lo);
  border: 1px solid var(--accent-indigo-bd);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--accent-indigo-hi);
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
  transition: all var(--d-card) var(--ease) !important
}

.sk:hover .sk-icon {
  background: var(--accent-indigo-md);
  transform: scale(1.06);
  box-shadow: 0 0 14px rgba(99, 102, 241, 0.16)
}

html.light .sk:hover .sk-icon {
  box-shadow: none
}

.sk h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 13px;
  letter-spacing: -0.012em;
  position: relative;
  z-index: 1
}

.tags,
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px
}

.tag,
.skill-tag {
  background: var(--bg-3);
  color: var(--text-secondary);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid var(--border);
  letter-spacing: 0.02em;
  transition: background var(--d-micro) var(--ease-std), border-color var(--d-micro) var(--ease-std), color var(--d-micro), transform var(--d-hover) var(--ease-in) !important
}

html.light .tag,
html.light .skill-tag {
  background: var(--bg-3);
  border-color: var(--border)
}

.tag:hover,
.skill-tag:hover {
  background: var(--bg-3);
  border-color: var(--text-primary);
  color: var(--text-primary);
  transform: translateY(-1px)
}

html.light .tag:hover,
html.light .skill-tag:hover {
  border-color: var(--accent-indigo);
  background: var(--bg-3);
  color: var(--text-primary)
}

/* ─── §18 · EXPERIENCE TIMELINE ───────────────────────────────────────── */
.timeline {
  position: relative;
  padding-left: 42px
}

.timeline::before {
  content: '';
  position: absolute;
  left: 13px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, var(--accent-indigo) 0%, rgba(99, 102, 241, 0.18) 60%, transparent 100%)
}

html.light .timeline::before {
  background: linear-gradient(180deg, var(--accent-indigo) 0%, rgba(67, 56, 202, 0.14) 60%, transparent 100%)
}

.tl-item {
  position: relative;
  margin-bottom: 28px
}

.tl-item:last-child {
  margin-bottom: 0
}

.tl-dot {
  position: absolute;
  left: -33px;
  top: 7px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--accent-indigo);
  border: 3px solid var(--bg-1);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.26), 0 0 12px rgba(99, 102, 241, 0.18);
  z-index: 2
}

html.light .tl-dot {
  border-color: var(--bg-1)
}

.tl-dot.dot-amber {
  background: var(--accent-amber);
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.22)
}

.tl-dot.dot-cyan {
  background: var(--accent-cyan);
  box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.22)
}

.tl-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  transition: background var(--d-card) var(--ease-std), border-color var(--d-card) var(--ease-std), box-shadow var(--d-card) var(--ease) !important
}

.tl-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.08), transparent 30%);
  pointer-events: none
}

.tl-card:hover {
  background: var(--bg-3);
  border-color: var(--accent-indigo-bd);
  box-shadow: var(--glow), var(--card-spec-hover)
}

html.light .tl-card {
  background: var(--bg-2);
  box-shadow: var(--shadow-1)
}

html.light .tl-card:hover {
  background: var(--bg-3);
  box-shadow: var(--shadow-2), var(--glow)
}

html.light .tl-card::before {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.8), transparent 30%)
}

.tl-card-head {
  padding: 17px 22px 13px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1
}

.tl-role {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.015em;
  margin-bottom: 3px
}

.tl-company {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--accent-indigo-hi);
  font-weight: 600;
  letter-spacing: 0
}

.tl-company a {
  color: var(--accent-indigo-hi)
}

.tl-company a:hover {
  text-decoration: underline
}

.tl-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0
}

.tl-period {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--accent-indigo-lo);
  border: 1px solid var(--accent-indigo-bd);
  border-radius: var(--radius-pill);
  padding: 3px 11px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--accent-indigo-hi);
  font-weight: 600;
  letter-spacing: 0.06em;
  white-space: nowrap
}

.tl-location {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0
}

.tl-type {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: var(--radius-sm)
}

.type-contract {
  background: var(--accent-cyan-lo);
  color: var(--accent-cyan);
  border: 1px solid var(--accent-cyan-bd)
}

.type-ft {
  background: var(--accent-indigo-lo);
  color: var(--accent-indigo-hi);
  border: 1px solid var(--accent-indigo-bd)
}

.type-internship {
  background: var(--accent-amber-lo);
  color: var(--accent-amber);
  border: 1px solid var(--accent-amber-bd)
}

.type-project {
  background: var(--accent-violet-lo);
  color: var(--accent-violet);
  border: 1px solid var(--accent-violet-bd)
}

/* Extra types used in data/experience.json */
.type-opensource {
  background: var(--accent-indigo-lo);
  color: var(--accent-indigo-hi);
  border: 1px solid var(--accent-indigo-bd)
}

.type-community {
  background: var(--accent-amber-lo);
  color: var(--accent-amber);
  border: 1px solid var(--accent-amber-bd)
}

.tl-card-body {
  padding: 14px 22px 16px;
  position: relative;
  z-index: 1
}

.tl-summary {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 14px
}

.tl-bullets {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 12px
}

.tl-bullet {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7
}

.tl-bullet::before {
  content: '›';
  color: var(--accent-indigo-hi);
  font-size: 0.9rem;
  flex-shrink: 0;
  line-height: 1.3;
  font-weight: 700
}

.tl-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 4px
}

.tl-tech span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: var(--accent-indigo-lo);
  color: var(--accent-indigo-hi);
  padding: 3px 9px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--accent-indigo-bd);
  font-weight: 500;
  letter-spacing: 0.01em
}

/* ─── §19 · CERTIFICATIONS ────────────────────────────────────────────── */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px
}

.cert {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  will-change: transform;
  transition: background var(--d-card) var(--ease-std), border-color var(--d-card) var(--ease-std), transform var(--d-hover) var(--ease-in), box-shadow var(--d-card) var(--ease) !important
}

.cert::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.08), transparent 30%);
  pointer-events: none;
  z-index: 0
}

.cert::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent-indigo), var(--accent-cyan));
  opacity: 0;
  transition: opacity var(--d-card) var(--ease) !important;
  z-index: 1
}

.cert:hover {
  background: var(--bg-3);
  border-color: var(--accent-indigo-bd);
  box-shadow: var(--glow), var(--card-spec-hover);
  transform: translateY(-4px) scale(1.02)
}

.cert:hover::after {
  opacity: 1
}

html.light .cert {
  background: var(--bg-2);
  box-shadow: var(--shadow-1)
}

html.light .cert:hover {
  background: var(--bg-3);
  box-shadow: var(--shadow-2), var(--glow)
}

html.light .cert::before {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.9), transparent 30%)
}

.cert-top {
  height: 2px;
  width: 100%;
  background: var(--cert-color, var(--accent-indigo));
  opacity: 0;
  transition: opacity var(--d-card) !important;
  position: relative;
  z-index: 2
}

.cert:hover .cert-top {
  opacity: 0.88
}

.cert-head {
  padding: 18px 18px 13px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 11px;
  position: relative;
  z-index: 1
}

.cert-ico {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--border-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.025);
  transition: all var(--d-card) var(--ease) !important
}

html.light .cert-ico {
  background: var(--bg-3)
}

.cert:hover .cert-ico {
  border-color: var(--accent-indigo-bd);
  background: var(--accent-indigo-lo)
}

.cert-head-info {
  flex: 1;
  min-width: 0
}

.cert-name {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.28;
  margin-bottom: 3px;
  letter-spacing: -0.012em
}

.cert-issuer {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--text-muted);
  letter-spacing: 0
}

.cert-body {
  padding: 13px 18px 15px;
  flex: 1;
  position: relative;
  z-index: 1
}

.cert-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 6px
}

.cert-date {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.02em
}

.cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid
}

.cb-aws {
  color: #FF9900;
  background: rgba(255, 153, 0, 0.07);
  border-color: rgba(255, 153, 0, 0.22)
}

.cb-google {
  color: #4285F4;
  background: rgba(66, 133, 244, 0.07);
  border-color: rgba(66, 133, 244, 0.22)
}

.cb-cncf {
  color: #326CE5;
  background: rgba(50, 108, 229, 0.07);
  border-color: rgba(50, 108, 229, 0.22)
}

.cb-hashicorp {
  color: #7B42BC;
  background: rgba(123, 66, 188, 0.07);
  border-color: rgba(123, 66, 188, 0.22)
}

.cb-docker {
  color: #2496ED;
  background: rgba(36, 150, 237, 0.07);
  border-color: rgba(36, 150, 237, 0.22)
}

.cb-default {
  color: var(--accent-indigo-hi);
  background: var(--accent-indigo-lo);
  border-color: var(--accent-indigo-bd)
}

/* ── Status badge: Certified (green) vs Pursuing (amber) ── */
.cert-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid;
}

.cert-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.cert-status.certified {
  color: #10B981;
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.25);
}

.cert-status.certified .cert-status-dot {
  background: #10B981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.20);
  animation: statusPulse 2.4s ease-in-out infinite;
}

.cert-status.pursuing {
  color: #F59E0B;
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.25);
}

.cert-status.pursuing .cert-status-dot {
  background: #F59E0B;
  animation: statusPulseAmber 2.4s ease-in-out infinite;
}

@keyframes statusPulse {

  0%,
  100% {
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.20)
  }

  50% {
    box-shadow: 0 0 0 5px rgba(16, 185, 129, 0.06)
  }
}

@keyframes statusPulseAmber {

  0%,
  100% {
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.22)
  }

  50% {
    box-shadow: 0 0 0 5px rgba(245, 158, 11, 0.06)
  }
}

.cert-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 10px
}

.cert-skill {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: var(--bg-3);
  color: var(--text-muted);
  border: 1px solid var(--border);
  transition: all var(--d-micro) var(--ease) !important
}

html.light .cert-skill {
  background: var(--bg-3);
  border-color: var(--border)
}

.cert-skill:hover {
  color: var(--accent-indigo-hi);
  border-color: var(--accent-indigo-bd);
  background: var(--accent-indigo-lo)
}

.cert-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-top: 1px solid var(--border);
  padding: 11px 18px;
  margin-top: auto;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--accent-indigo-hi);
  position: relative;
  z-index: 1;
  transition: gap var(--d-micro) !important
}

.cert-link:hover {
  gap: 9px
}

.cert-link-none {
  color: var(--text-muted);
  cursor: default
}

.cert-link-none:hover {
  gap: 5px
}

.skel {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 185px
}

html.light .skel {
  background: var(--bg-3)
}

.sl- {
  height: 8px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--border) 25%, var(--border-hover) 50%, var(--border) 75%);
  background-size: 200% 100%;
  animation: skelPulse 1.6s ease-in-out infinite
}

.sl--w {
  width: 70%
}

.sl--m {
  width: 50%
}

.sl--s {
  width: 35%
}

@keyframes skelPulse {
  0% {
    background-position: -200% 0
  }

  100% {
    background-position: 200% 0
  }
}

/* ─── §20 · RECOGNITION ───────────────────────────────────────────────── */
.rec-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px
}

.rec-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 18px;
  text-align: center;
  position: relative;
  overflow: hidden;
  will-change: transform;
  transition: background var(--d-card) var(--ease-std), border-color var(--d-card) var(--ease-std), transform var(--d-hover) var(--ease-in), box-shadow var(--d-card) var(--ease) !important
}

.rec-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.08), transparent 30%);
  pointer-events: none
}

.rec-card:hover {
  background: var(--bg-3);
  border-color: var(--accent-indigo-bd);
  box-shadow: var(--glow), var(--card-spec-hover);
  transform: translateY(-4px) scale(1.02)
}

html.light .rec-card {
  background: var(--bg-2);
  box-shadow: var(--shadow-1)
}

html.light .rec-card:hover {
  background: var(--bg-3);
  box-shadow: var(--shadow-2), var(--glow)
}

html.light .rec-card::before {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.9), transparent 30%)
}

.rec-ico {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: var(--accent-indigo-lo);
  border: 1px solid var(--accent-indigo-bd);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-size: 1.4rem;
  position: relative;
  z-index: 1;
  transition: all var(--d-card) var(--ease) !important
}

.rec-card:hover .rec-ico {
  background: var(--accent-indigo-md);
  transform: scale(1.07)
}

.rec-card h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.rec-card p {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
  text-align: left;
  position: relative;
  z-index: 1
}

/* ─── §21 · SPEAKING ──────────────────────────────────────────────────── */
.spk-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 42px
}

.spk-stat {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
  will-change: transform;
  transition: background var(--d-card) var(--ease-std), border-color var(--d-card) var(--ease-std), transform var(--d-hover) var(--ease-in), box-shadow var(--d-card) var(--ease) !important
}

.spk-stat::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-indigo), var(--accent-cyan))
}

.spk-stat::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.08), transparent 30%);
  pointer-events: none
}

.spk-stat:hover {
  background: var(--bg-3);
  border-color: var(--accent-indigo-bd);
  box-shadow: var(--glow), var(--card-spec-hover);
  transform: translateY(-4px) scale(1.02)
}

html.light .spk-stat {
  background: var(--bg-2);
  box-shadow: var(--shadow-1)
}

html.light .spk-stat:hover {
  background: var(--bg-3);
  box-shadow: var(--shadow-2), var(--glow)
}

html.light .spk-stat::after {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.9), transparent 30%)
}

.spk-val {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--accent-indigo-hi);
  line-height: 1;
  text-shadow: 0 0 18px rgba(99, 102, 241, 0.38);
  position: relative;
  z-index: 1
}

html.light .spk-val {
  text-shadow: none
}

.spk-lbl {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 6px;
  letter-spacing: 0.02em;
  position: relative;
  z-index: 1
}

/* ─── §22 · PROJECTS ──────────────────────────────────────────────────── */
.proj-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.proj {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  will-change: transform;
  transition: background var(--d-card) var(--ease-std), border-color var(--d-card) var(--ease-std), transform var(--d-hover) var(--ease-in), box-shadow var(--d-card) var(--ease) !important
}

.proj::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.08), transparent 30%);
  pointer-events: none;
  z-index: 0
}

.proj::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-indigo-hi), transparent);
  opacity: 0;
  transition: opacity var(--d-card) var(--ease) !important;
  z-index: 1
}

.proj:hover {
  background: var(--bg-3);
  border-color: var(--accent-indigo-bd);
  box-shadow: var(--glow), var(--card-spec-hover);
  transform: translateY(-4px) scale(1.02)
}

.proj:hover::after {
  opacity: 1
}

html.light .proj {
  background: var(--bg-2);
  box-shadow: var(--shadow-1)
}

html.light .proj:hover {
  background: var(--bg-3);
  box-shadow: var(--shadow-2), var(--glow)
}

html.light .proj::before {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.9), transparent 30%)
}

.proj-cat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--text-muted);
  margin-bottom: 12px;
  padding: 2px 7px;
  background: var(--bg-3);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  align-self: flex-start;
  position: relative;
  z-index: 1
}

html.light .proj-cat {
  background: var(--bg-3);
  border-color: var(--border)
}

.proj-ico {
  font-size: 1.8rem;
  margin-bottom: 10px;
  filter: drop-shadow(0 0 5px currentColor);
  opacity: 0.82;
  position: relative;
  z-index: 1
}

.proj h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 7px;
  letter-spacing: -0.012em;
  position: relative;
  z-index: 1
}

.proj p {
  font-family: var(--font-body);
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.75;
  flex-grow: 1;
  margin-bottom: 14px;
  position: relative;
  z-index: 1
}

.proj-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 12px;
  position: relative;
  z-index: 1
}

.proj-tech span {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  background: var(--accent-indigo-lo);
  color: var(--accent-indigo-hi);
  padding: 3px 9px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  border: 1px solid var(--accent-indigo-bd);
  transition: all var(--d-micro) var(--ease) !important
}

.proj-tech span:hover {
  background: var(--accent-indigo-md);
  border-color: var(--accent-indigo-bh)
}

.proj-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--accent-indigo-hi);
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: var(--font-body);
  letter-spacing: 0.01em;
  text-transform: none;
  position: relative;
  z-index: 1;
  transition: gap var(--d-micro) !important
}

.proj-link:hover {
  gap: 9px
}

/* Featured project - first bento card */
.proj-featured .proj-ico {
  font-size: 2.2rem
}

.proj-featured h4 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.proj-metrics-strip {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  padding: 10px 12px;
  background: var(--accent-indigo-lo);
  border: 1px solid var(--accent-indigo-bd);
  border-radius: 8px;
  position: relative;
  z-index: 1;
}

.proj-tradeoff {
  color: #42526E !important;
}

.proj-tradeoff strong {
  color: #172B4D !important;
}

.proj-metric-item {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 52px
}

.proj-metric-v {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: var(--accent-indigo-hi);
  line-height: 1
}

.proj-metric-l {
  font-family: var(--font-body);
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted)
}

/* ─── §23 · TESTIMONIALS ──────────────────────────────────────────────── */

.t-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap
}

.t-header-text {
  flex: 1;
  min-width: 0
}

.t-header-text .s-desc {
  margin: 0
}

.t-nav-btns {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0
}

.t-nav-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--bg-2);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  cursor: pointer;
  transition: background var(--d-micro) var(--ease), border-color var(--d-micro) var(--ease), color var(--d-micro) var(--ease), transform var(--d-hover) var(--ease-in)
}

.t-nav-btn:hover {
  background: var(--accent-indigo-lo);
  border-color: var(--accent-indigo-bd);
  color: var(--accent-indigo-hi);
  transform: scale(1.08);
  box-shadow: var(--glow)
}

.t-nav-btn:active {
  transform: scale(0.95)
}

html.light .t-nav-btn {
  background: var(--bg-2);
  box-shadow: var(--shadow-1)
}

/* ── Slider: overflow clips the scrolling strip ── */
.tslider {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding-bottom: 8px
}

.tslider::before,
.tslider::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none
}

.tslider::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-1), transparent)
}

.tslider::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-1), transparent)
}

html.light .tslider::before {
  background: linear-gradient(to right, var(--bg-1), transparent)
}

html.light .tslider::after {
  background: linear-gradient(to left, var(--bg-1), transparent)
}

/* ── Track: no will-change / no translateZ - same reason as ticker-strip ── */
.ttrack {
  display: flex;
  gap: 24px;
  width: max-content;
  /* transform is set directly by JS rAF loop - no CSS animation */
}

/* .ttp is set by JS hover detection - pauses rAF loop */
.ttrack.ttp {
  pointer-events: auto;
  /* pause signal for JS */
}

/* ── Individual cards ── */
.tcrd {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  min-width: 300px;
  max-width: 300px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  white-space: normal;
  transition: background var(--d-card) var(--ease-std),
    border-color var(--d-card) var(--ease-std),
    box-shadow var(--d-card) var(--ease);
  /* NO transform on hover - would break parent animation-play-state */
}

.tcrd::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.09) 1px, transparent 1px) 0 0 / 16px 16px,
    linear-gradient(to bottom, rgba(255, 255, 255, 0.06), transparent 36%);
}

html.light .tcrd::before {
  background:
    radial-gradient(circle, rgba(67, 56, 202, 0.06) 1px, transparent 1px) 0 0 / 16px 16px,
    linear-gradient(to bottom, rgba(255, 255, 255, 0.9), transparent 30%);
}

.tcrd::after {
  content: '\201C';
  position: absolute;
  top: 10px;
  right: 16px;
  font-size: 4rem;
  font-family: var(--font-display);
  color: var(--accent-indigo);
  opacity: 0.07;
  line-height: 1;
  z-index: 0;
  pointer-events: none
}

.tcrd:hover {
  background: var(--bg-3);
  border-color: var(--accent-indigo-bd);
  box-shadow: var(--glow)
}

html.light .tcrd {
  background: var(--bg-2);
  box-shadow: var(--shadow-1)
}

html.light .tcrd:hover {
  background: var(--bg-3);
  box-shadow: var(--shadow-2), var(--glow)
}

.tcrd-bar {
  height: 2px;
  background: linear-gradient(90deg, var(--accent-indigo), var(--accent-cyan));
  border-radius: 2px;
  margin-bottom: 16px;
  width: 32px;
  position: relative;
  z-index: 1;
  transition: width var(--d-card) var(--ease)
}

.tcrd:hover .tcrd-bar {
  width: 56px
}

.t-stars {
  display: flex;
  gap: 2px;
  color: var(--accent-amber);
  margin-bottom: 12px;
  font-size: 0.64rem;
  position: relative;
  z-index: 1
}

.tcrd blockquote {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 16px;
  color: var(--text-secondary);
  position: relative;
  z-index: 1
}

.t-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1
}

.t-auth {
  display: flex;
  align-items: center;
  gap: 10px
}

.t-av {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--accent-indigo-lo);
  border: 1px solid var(--accent-indigo-bd);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-indigo-hi);
  font-weight: 700;
  font-size: 0.70rem;
  font-family: var(--font-mono);
  flex-shrink: 0
}

.t-name {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-primary);
  font-size: 0.9375rem
}

.t-role {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--text-muted)
}

.t-ext {
  color: var(--accent-cyan);
  font-size: 0.80rem;
  opacity: 0.40;
  transition: opacity var(--d-micro)
}

.t-ext:hover {
  opacity: 1
}

@media (max-width:767px) {
  .t-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px
  }

  .t-nav-btns {
    align-self: flex-end
  }

  .t-nav-btn {
    width: 36px;
    height: 36px
  }

  .tcrd {
    min-width: 260px;
    max-width: 260px;
    padding: 18px
  }
}

/* ─── §23b · MEDIUM ARTICLES ─────────────────────────────────────────── */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px
}

.article-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  will-change: transform;
  transition: background var(--d-card) var(--ease-std), border-color var(--d-card) var(--ease-std),
    transform var(--d-hover) var(--ease-in), box-shadow var(--d-card) var(--ease) !important;
  text-decoration: none;
  color: inherit;
}

.article-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.07), transparent 36%);
  pointer-events: none;
  z-index: 0;
}

.article-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-violet), var(--accent-indigo));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.article-card:hover {
  background: var(--bg-3);
  border-color: var(--accent-indigo-bd);
  box-shadow: var(--glow);
  transform: translateY(-4px) scale(1.01)
}

.article-card:hover::after {
  transform: scaleX(1)
}

html.light .article-card {
  background: var(--bg-2);
  box-shadow: var(--shadow-1)
}

html.light .article-card:hover {
  background: var(--bg-3);
  box-shadow: var(--shadow-2), var(--glow)
}

.article-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--accent-violet);
  background: var(--accent-violet-lo);
  border: 1px solid var(--accent-violet-bd);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  align-self: flex-start;
  position: relative;
  z-index: 1;
}

.article-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-desc {
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--text-secondary);
  flex-grow: 1;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
  margin-top: auto;
}

.article-date {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.article-read {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-indigo-hi);
  transition: gap var(--d-micro) !important;
}

.article-card:hover .article-read {
  gap: 8px
}

.article-med-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.88);
  border: 1px solid var(--border-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

html.light .article-med-icon {
  background: #000
}

@media (max-width: 1024px) {
  .articles-grid {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media (max-width: 640px) {
  .articles-grid {
    grid-template-columns: 1fr
  }
}

/* ─── §24 · CTA / CONTACT ─────────────────────────────────────────────── */
.cta {
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg-1) 100%);
  padding: 96px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border);
  z-index: 1
}

html.light .cta {
  background: linear-gradient(180deg, var(--bg-3) 0%, var(--bg-1) 100%)
}

.cta::before {
  content: '';
  position: absolute;
  top: -55%;
  left: -22%;
  width: 660px;
  height: 660px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.038) 0%, transparent 70%)
}

.cta::after {
  content: '';
  position: absolute;
  bottom: -48%;
  right: -16%;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.022) 0%, transparent 70%)
}

html.light .cta::before {
  background: radial-gradient(circle, rgba(67, 56, 202, 0.028) 0%, transparent 70%)
}

.cta h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.7rem);
  font-weight: 800;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
  letter-spacing: -0.035em;
  color: var(--text-primary)
}

.cta p {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto 32px;
  position: relative;
  z-index: 1;
  line-height: 1.75
}

.cta-btns {
  display: flex;
  gap: 9px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
  position: relative;
  z-index: 1
}

.socials {
  display: flex;
  gap: 8px;
  justify-content: center;
  position: relative;
  z-index: 1
}

.soc {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--text-secondary);
  position: relative;
  overflow: hidden;
  will-change: transform;
  transition: background var(--d-card) var(--ease-std), border-color var(--d-card) var(--ease-std), transform var(--d-hover) var(--ease-in), box-shadow var(--d-card) var(--ease) !important
}

.soc::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.08), transparent 30%);
  pointer-events: none
}

html.light .soc {
  background: var(--bg-2);
  box-shadow: var(--shadow-1)
}

.soc:hover {
  background: var(--bg-3);
  border-color: var(--accent-indigo-bd);
  color: var(--accent-indigo-hi);
  transform: translateY(-4px) scale(1.05);
  box-shadow: var(--glow)
}

html.light .soc:hover {
  background: var(--bg-3);
  box-shadow: var(--shadow-2), var(--glow)
}

/* ─── §25 · ENGINEERING IN PUBLIC ────────────────────────────────────── */
.eip {
  background: var(--bg-1);
  padding: 48px 0;
  border-top: 1px solid var(--border)
}

.eip-box {
  max-width: 560px;
  margin: 0 auto;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-2), var(--card-spec)
}

html.light .eip-box {
  background: var(--bg-2);
  box-shadow: var(--shadow-2), var(--card-spec)
}

.eip-bar {
  background: rgba(255, 255, 255, 0.025);
  border-bottom: 1px solid var(--border);
  padding: 8px 13px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  letter-spacing: 3px;
  color: var(--text-ghost)
}

html.light .eip-bar {
  background: rgba(0, 0, 0, 0.02)
}

.eip-prompt {
  padding: 9px 16px 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 7px
}

.eip-out {
  padding: 3px 16px 13px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--text-secondary)
}

.eip-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 16px 16px;
  padding: 11px 22px;
  background: var(--accent-amber-lo);
  border: 1px solid var(--accent-amber-bd);
  border-radius: 8px;
  color: var(--accent-amber);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.9375rem;
  font-family: var(--font-body);
  text-decoration: none;
  transition: all var(--d-card) var(--ease) !important
}

html.light .eip-btn {
  background: rgba(180, 83, 9, 0.07);
  border-color: rgba(180, 83, 9, 0.22)
}

.eip-btn:hover {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.44);
  transform: translateY(-2px);
  box-shadow: var(--glow-amber)
}

.eip-btn:active {
  transform: translateY(0) scale(0.98)
}

.eip-arr {
  transition: transform var(--d-card) var(--ease) !important
}

.eip-btn:hover .eip-arr {
  transform: translateX(5px)
}

/* ─── §26 · FOOTER ────────────────────────────────────────────────────── */
.footer {
  background: var(--bg-1);
  color: var(--text-muted);
  padding: 22px 0;
  text-align: center;
  font-size: 0.875rem;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  letter-spacing: 0.04em
}

html.light .footer {
  border-top-color: var(--border);
  color: var(--text-muted)
}

.footer a {
  color: var(--accent-indigo-hi);
  transition: color var(--d-micro) !important
}

.footer a:hover {
  color: var(--accent-indigo)
}

/* ─── §27 · SCROLL REVEAL ─────────────────────────────────────────────── */
.aos {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--d-reveal) var(--ease), transform var(--d-reveal) var(--ease);
  will-change: opacity, transform
}

.aos.on {
  opacity: 1;
  transform: translateY(0)
}

.aos:nth-child(1) {
  transition-delay: 0ms
}

.aos:nth-child(2) {
  transition-delay: 80ms
}

.aos:nth-child(3) {
  transition-delay: 160ms
}

.aos:nth-child(4) {
  transition-delay: 240ms
}

.aos:nth-child(5) {
  transition-delay: 320ms
}

.aos:nth-child(6) {
  transition-delay: 400ms
}

.aos:nth-child(7) {
  transition-delay: 480ms
}

.tl-item.aos {
  transition: opacity var(--d-reveal) var(--ease-std), transform var(--d-reveal) var(--ease-std)
}

/* ─── §28 · FOCUS & A11Y ──────────────────────────────────────────────── */
.skip {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 99999;
  background: var(--accent-indigo);
  color: #fff;
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 700;
  font-family: var(--font-body);
  transition: top 0.2s
}

.skip:focus {
  top: 0
}

*:focus-visible {
  outline: 2px solid var(--accent-indigo);
  outline-offset: 3px;
  border-radius: 4px;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12)
}

html.light *:focus-visible {
  box-shadow: 0 0 0 4px rgba(67, 56, 202, 0.12)
}

/* ─── §29 · RESPONSIVE ────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .certs-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .rec-grid {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center
  }

  .h-sub {
    margin: 0 auto 24px
  }

  .id-chips {
    justify-content: center
  }

  .h-stats {
    justify-content: center
  }

  .h-actions {
    justify-content: center
  }

  .h-photo {
    order: -1;
    padding: 16px 24px
  }

  .pw img {
    width: clamp(220px, 40vw, 272px);
    height: clamp(220px, 40vw, 272px)
  }

  .about-grid {
    grid-template-columns: 1fr
  }

  .spk-stats {
    grid-template-columns: repeat(2, 1fr)
  }

  .proj-grid {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none
  }

  .mob-btn {
    display: block
  }

  #theme-toggle-mob {
    display: inline-flex
  }

  #theme-toggle {
    display: none
  }

  .hero {
    padding: 106px 0 56px
  }

  .section {
    padding: 64px 0
  }

  .skills-grid,
  .rec-grid,
  .proj-grid,
  .certs-grid {
    grid-template-columns: 1fr
  }

  .spk-stats {
    grid-template-columns: repeat(2, 1fr)
  }

  .about-hl {
    grid-template-columns: repeat(2, 1fr)
  }

  .h-term {
    display: none
  }

  .pb {
    font-size: 0.75rem;
    padding: 6px 10px
  }

  .section-header[data-num]::before {
    font-size: 3rem
  }

  .container {
    padding: 0 20px
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2.4rem
  }

  .h-stats {
    flex-direction: column;
    gap: 8px;
    align-items: center
  }

  .about-hl {
    grid-template-columns: 1fr
  }

  .pb.pb-t {
    top: 10px;
    right: 10px
  }

  .pb.pb-b {
    bottom: 10px;
    left: 10px
  }

  .cta h2 {
    font-size: 1.75rem
  }

  .container {
    padding: 0 16px
  }
}

/* ─── §30 · REDUCED MOTION ────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0ms !important
  }

  .aos {
    opacity: 1;
    transform: none
  }

  body::before,
  body::after {
    animation: none
  }

  .hero-orb-1,
  .hero-orb-2,
  .hero-orb-3 {
    animation: none
  }

  .pw-ring {
    animation: none
  }

  .h-badge::after {
    animation: none
  }

  .sdot {
    animation: none
  }

  .ticker-strip,
  .ticker-strip-r {
    animation: none !important
  }

  .pb {
    animation: none
  }

  .ttrack {
    animation-play-state: paused
  }

  #cursor-dot,
  #cursor-ring {
    display: none
  }

  /* Restore cursor for reduced-motion on mouse devices */
  @media (pointer: fine) {

    body,
    button {
      cursor: auto;
    }
  }
}

/* ─── §31 · CRITICAL FIX BLOCK ──────────────────────────────────────────
   Fixes: navbar breakpoints, mobile gaps, AOS, smooth scroll,
   perf on mobile, light mode, timeline dot, dot-grid on mobile
   ─────────────────────────────────────────────────────────────────────── */

html {
  /* scroll-behavior: smooth; removed */
}

.aos:nth-child(7) {
  transition-delay: 180ms !important
}

/* ── Timeline: DEFINITIVE alignment - overrides everything above ── */
.timeline {
  position: relative !important;
  padding-left: 40px !important;
}

.timeline::before {
  content: '' !important;
  position: absolute !important;
  left: 19px !important;
  /* line X position */
  top: 0 !important;
  bottom: 0 !important;
  width: 1px !important;
}

.tl-item {
  position: relative !important;
  margin-bottom: 24px !important;
}

/* dot: center = left + width/2 = must equal line left (19px)
   left = 19 - (width/2) - padding = 19 - 6 - 40 = -27px from .tl-item */
.tl-dot {
  position: absolute !important;
  left: -27px !important;
  /* (19 - 6) - 40 = -27 … dot center = 19px = line ✓ */
  top: 20px !important;
  width: 12px !important;
  height: 12px !important;
  border-radius: 50% !important;
  background: var(--accent-indigo) !important;
  border: 2.5px solid var(--bg-1) !important;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.30), 0 0 10px rgba(99, 102, 241, 0.20) !important;
  z-index: 3 !important;
}

html.light .tl-dot {
  border-color: var(--bg-2) !important;
}

.tl-dot.dot-amber {
  background: var(--accent-amber) !important;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.30) !important;
}

.tl-dot.dot-cyan {
  background: var(--accent-cyan) !important;
  box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.30) !important;
}

/* Mobile timeline: P=32, L=15, r=5 → dot left = -(32-15+5) = -22px → center=15px ✓ */
@media (max-width: 767px) {
  .timeline {
    padding-left: 32px !important;
  }

  .timeline::before {
    left: 15px !important;
  }

  .tl-dot {
    left: -22px !important;
    top: 20px !important;
    width: 10px !important;
    height: 10px !important;
  }

  .tl-card-head {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
  }

  .tl-meta {
    align-items: flex-start !important;
  }
}

/* ── Navbar: full bar ≥1100px, hamburger below ── */
@media (min-width: 1100px) {
  .nav-links {
    display: flex !important
  }

  .nav-mob-wrapper {
    display: none !important
  }

  .mob-menu {
    display: none !important
  }

  #theme-toggle {
    display: inline-flex !important
  }

  #theme-toggle-mob {
    display: none !important
  }

  .mob-btn {
    display: none !important
  }
}

@media (max-width: 1099px) {
  .nav-links {
    display: none !important
  }

  .nav-mob-wrapper {
    display: flex !important;
    align-items: center;
    gap: 8px
  }

  #theme-toggle {
    display: none !important
  }

  #theme-toggle-mob {
    display: inline-flex !important
  }

  .mob-btn {
    display: block !important
  }
}

/* ── Light mode: ensure body is never plain white ── */
html.light {
  --bg-1: #F0F2FF;
  --bg-2: #FFFFFF;
  --bg-3: #E8ECFF;
  --bg-4: #DDE5FF;
  --bg-5: #D0DAFF;
}

html.light body {
  background-color: #F0F2FF !important;
}

html.light .section {
  background-color: transparent;
}

html.light .s-alt {
  background: linear-gradient(180deg, #E8ECFF 0%, transparent 100%) !important;
}

html.light #vercel-noise {
  opacity: 0.012;
  mix-blend-mode: multiply;
}

/* ── Mobile: reduce canvas work ── */
@media (max-width: 768px) {
  body::before {
    animation: none !important;
    opacity: 0.7
  }

  #dot-grid {
    display: none !important
  }

  #matrix-bg {
    display: none !important
  }

  .scanline {
    display: none
  }

  .hero-orb-1,
  .hero-orb-2,
  .hero-orb-3 {
    animation: none !important;
    opacity: 0.2
  }

  .pw-ring {
    animation: ringSpin 30s linear infinite
  }

  /* Eliminate huge empty gaps between skill/cert/proj cards */
  .skills-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .certs-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .proj-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .rec-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  .spk-stats {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }

  .about-hl {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }

  /* Hero stats 2-col grid, not vertical list */
  .h-stats {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
    flex-direction: unset !important;
  }

  /* Section padding */
  .section {
    padding: 52px 0 !important;
  }

  .s-alt {
    padding: 52px 0 !important;
  }

  .hero {
    padding: 88px 0 44px !important;
  }

  .section-header {
    margin-bottom: 32px !important;
  }

  .about-grid {
    gap: 28px !important;
  }

  .container {
    padding: 0 18px !important;
  }

  /* Testimonial nav buttons - smaller on mobile */
  .t-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
  }

  .t-nav-btns {
    align-self: flex-end;
  }

  .t-nav-btn {
    width: 36px;
    height: 36px;
  }

  .sk:hover,
  .proj:hover,
  .cert:hover,
  .ahl:hover,
  .h-stat:hover,
  .rec-card:hover,
  .spk-stat:hover,
  .ac:hover,
  .soc:hover,
  .tcrd:hover,
  .chip:hover {
    transform: none !important;
  }

  /* Photo frame */
  .pw img {
    width: clamp(180px, 68vw, 250px) !important;
    height: clamp(180px, 68vw, 250px) !important;
  }

  .pb.pb-t {
    top: 6px;
    right: 6px;
    font-size: 0.75rem !important;
    padding: 5px 8px !important;
  }

  .pb.pb-b {
    bottom: 6px;
    left: 6px;
    font-size: 0.75rem !important;
    padding: 5px 8px !important;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: clamp(1.9rem, 8vw, 2.6rem) !important;
    line-height: 1.04 !important;
  }

  .s-title {
    font-size: clamp(1.4rem, 5.5vw, 1.9rem) !important;
  }

  .about-hl {
    grid-template-columns: 1fr !important;
  }

  .rec-grid {
    grid-template-columns: 1fr !important;
  }

  .h-badge {
    font-size: 0.6875rem !important;
    padding: 4px 10px !important;
  }

  .container {
    padding: 0 14px !important;
  }

  #dot-grid {
    background-size: 18px 18px;
  }
}

/* ── Tablet range ── */
@media (min-width: 769px) and (max-width: 1099px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .certs-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .rec-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .proj-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .spk-stats {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .hero-grid {
    grid-template-columns: 1fr !important;
    text-align: center !important;
  }

  .h-sub {
    margin: 0 auto 24px !important;
  }

  .id-chips {
    justify-content: center !important;
  }

  .h-stats {
    justify-content: center !important;
  }

  .h-actions {
    justify-content: center !important;
  }

  .h-photo {
    order: -1 !important;
    padding: 0 24px 24px !important;
  }

  .h-term {
    display: none !important;
  }

  body::before {
    animation-duration: 50s !important;
  }

  body::after {
    animation-duration: 70s !important;
  }
}

/* ── Desktop full layout ── */
@media (min-width: 1100px) {
  .skills-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .certs-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .rec-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .proj-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .spk-stats {
    grid-template-columns: repeat(4, 1fr);
  }

  .hero-grid {
    grid-template-columns: 1fr 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ── Touch / keyboard: restore system cursor on non-fine-pointer devices ── */
@media (hover: none),
(pointer: coarse) {

  #cursor-dot,
  #cursor-ring {
    display: none !important;
  }

  body,
  button,
  .btn,
  .nav-cmd,
  .theme-toggle,
  .mob-btn,
  .cmd-item,
  a {
    cursor: auto !important;
  }

  #spotlight {
    display: none !important;
  }
}

/* Ensure interactive elements show pointer on fine-pointer devices too */
@media (pointer: fine) {

  a,
  .btn,
  .nav-cmd,
  .mob-btn,
  button {
    cursor: pointer;
  }
}

/* ── No horizontal overflow ── */
html,
body {
  overflow-x: hidden !important;
  max-width: 100vw;
}

/* ── GPU footprint: reduce will-change on mobile ── */
@media (max-width: 768px) {

  .pw img,
  .ttrack {
    will-change: auto !important;
  }

  .aos {
    will-change: opacity !important;
  }

  body::before,
  body::after,
  #dot-grid {
    will-change: auto !important;
  }
}

/* ── Dot grid: reduce on small screens ── */
@media (max-width: 480px) {
  #dot-grid {
    opacity: 0.65;
    background-size: 18px 18px;
  }
}

/* theme-transitioning class retired - overlay approach used instead */
/* cursor + blink elements keep running */
html.theme-transitioning #cursor-dot,
html.theme-transitioning #cursor-ring,
html.theme-transitioning .cur {
  animation-play-state: running !important;
}

/* ─── §32 · OBSERVABILITY SECTION ────────────────────────────────────── */
.obs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px
}

.obs-metric {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  position: relative;
  overflow: hidden;
  transition: border-color var(--d-card) var(--ease), transform var(--d-hover) var(--ease-in)
}

.obs-metric::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  transition: background 0.4s
}

.obs-metric.ok::before {
  background: linear-gradient(90deg, var(--accent-green), #34d399)
}

.obs-metric.warn::before {
  background: linear-gradient(90deg, var(--accent-amber), #fbbf24)
}

.obs-metric.crit::before {
  background: linear-gradient(90deg, var(--accent-red), #f87171)
}

.obs-metric:hover {
  border-color: var(--accent-indigo-bd);
  transform: translateY(-3px)
}

html.light .obs-metric {
  background: var(--bg-2);
  box-shadow: var(--shadow-1)
}

.obs-val {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 4px
}

.obs-lbl {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted)
}

.obs-state {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  margin-top: 5px;
  display: flex;
  align-items: center;
  gap: 5px
}

.obs-charts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px
}

.obs-chart-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px
}

html.light .obs-chart-card {
  background: var(--bg-2);
  box-shadow: var(--shadow-1)
}

.obs-chart-title {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center
}

.obs-chart-val {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary)
}

.obs-budget-bar {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 16px
}

html.light .obs-budget-bar {
  background: var(--bg-2);
  box-shadow: var(--shadow-1)
}

.obs-budget-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px
}

.obs-budget-track {
  height: 8px;
  background: var(--bg-3);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 6px
}

.obs-budget-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.6s var(--ease), background 0.4s
}

.obs-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 24px;
  padding: 12px 16px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius)
}

html.light .obs-controls {
  background: var(--bg-2)
}

.obs-slo-group {
  display: flex;
  align-items: center;
  gap: 8px
}

.obs-slo-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--text-secondary)
}

.obs-formula {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px
}

html.light .obs-formula {
  background: var(--bg-3)
}

.obs-formula-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--text-muted)
}

.obs-formula-eq {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-primary)
}

.obs-signal-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  border: 1px solid
}

.obs-signal-badge.ok {
  color: var(--accent-green);
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.25)
}

.obs-signal-badge.warn {
  color: var(--accent-amber);
  background: var(--accent-amber-lo);
  border-color: var(--accent-amber-bd)
}

.obs-signal-badge.crit {
  color: var(--accent-red);
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.25)
}

.obs-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0
}

@media (max-width: 1024px) {
  .obs-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  ;

  .obs-charts {
    grid-template-columns: 1fr
  }
}

@media (max-width: 640px) {
  .obs-grid {
    grid-template-columns: 1fr
  }
}

/* ── EKS Architecture Diagram ── */
.eks-diagram-wrap {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
}

html.light .eks-diagram-wrap {
  background: var(--bg-2);
  box-shadow: var(--shadow-1)
}

.eks-diagram-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.10em;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.15);
}

html.light .eks-diagram-label {
  background: var(--bg-3)
}

.eks-diagram-container {
  padding: 0;
  overflow-x: auto;
  min-height: 180px;
}

.eks-diagram-container svg {
  display: block;
  min-width: 480px;
}

/* SVG text light-mode overrides - SVG can't access CSS vars so we use attribute selectors */
html.light .eks-diagram-container svg text[fill*="241,245,249"],
html.light .eks-diagram-container svg text[fill*="F1F5F9"] {
  fill: rgba(15, 23, 42, 0.9) !important;
}

html.light .eks-diagram-container svg text[fill*="148,163,184"] {
  fill: rgba(51, 65, 85, 0.75) !important;
}

html.light .eks-diagram-container svg text[fill*="255,255,255"] {
  fill: rgba(15, 23, 42, 0.7) !important;
}

html.light .eks-diagram-container svg rect[fill*="16,16,32"] {
  fill: var(--bg-3) !important;
}

html.light .eks-diagram-container svg rect[fill*="0,0,0,0.4"] {
  fill: var(--bg-3) !important;
}

/* ── Bento projects grid ── */
.proj-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 14px;
  margin-bottom: 14px;
}

.proj-bento .proj:first-child {
  grid-column: 1 / 3;
}

.proj-bento .proj:first-child h4 {
  font-size: 1.15rem
}

.proj-bento .proj:first-child .proj-ico {
  font-size: 2.2rem;
  margin-bottom: 14px
}

/* ── Pipeline + Observability mobile responsive ── */
@media (max-width: 900px) {
  .pipeline-stages {
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px;
  }

  .pipe-stage {
    min-width: calc(50% - 8px);
    max-width: calc(50% - 8px);
  }

  .pipe-arrow {
    display: none;
  }

  .obs-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .obs-charts {
    grid-template-columns: 1fr !important;
  }

  .proj-bento {
    grid-template-columns: 1fr 1fr;
  }

  .proj-bento .proj:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .pipeline-stages {
    flex-direction: column;
  }

  .pipe-stage {
    min-width: 100%;
    max-width: 100%;
  }

  .obs-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }

  .obs-controls {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    padding: 12px !important;
  }

  .obs-controls > button {
    width: 100% !important;
    margin: 0 !important;
  }

  .obs-controls > div:last-child {
    grid-column: span 2 !important;
    margin-left: 0 !important;
    justify-content: center !important;
    padding-top: 8px !important;
    border-top: 1px solid var(--border) !important;
    width: 100% !important;
  }

  .feat-proj-head {
    flex-direction: column;
  }

  .eks-diagram-container {
    overflow-x: auto;
  }

  .proj-bento {
    grid-template-columns: 1fr !important;
  }

  .proj-bento .proj:first-child {
    grid-column: 1 !important;
  }
}

@media (max-width: 480px) {
  .pipe-metric-v {
    font-size: 1.5rem !important;
  }

  .obs-val {
    font-size: 1.6rem !important;
  }
}

/* ─── §33 · PIPELINE / CASE STUDY ────────────────────────────────────── */
.pipeline-wrap {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 24px
}

html.light .pipeline-wrap {
  background: var(--bg-2);
  box-shadow: var(--shadow-1)
}

.pipeline-header {
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--border);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px
}

html.light .pipeline-header {
  background: var(--bg-3)
}

.pipeline-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary)
}

.pipeline-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap
}

.pipeline-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  border-radius: var(--radius-sm);
  border: 1px solid
}

.ptag-green {
  color: var(--accent-green);
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.25)
}

.ptag-indigo {
  color: var(--accent-indigo-hi);
  background: var(--accent-indigo-lo);
  border-color: var(--accent-indigo-bd)
}

.ptag-amber {
  color: var(--accent-amber);
  background: var(--accent-amber-lo);
  border-color: var(--accent-amber-bd)
}

.ptag-cyan {
  color: var(--accent-cyan);
  background: var(--accent-cyan-lo);
  border-color: var(--accent-cyan-bd)
}

.pipeline-stages {
  display: flex;
  overflow-x: auto;
  padding: 20px;
  gap: 0;
  align-items: center;
  scrollbar-width: thin
}

.pipeline-stages::-webkit-scrollbar {
  height: 3px
}

.pipeline-stages::-webkit-scrollbar-thumb {
  background: var(--accent-indigo-bd);
  border-radius: 2px
}

.pipe-stage {
  flex-shrink: 0;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  min-width: 148px;
  max-width: 148px;
  position: relative;
  cursor: pointer;
  transition: background var(--d-card) var(--ease), border-color var(--d-card) var(--ease), transform var(--d-hover) var(--ease-in)
}

.pipe-stage:hover {
  background: var(--bg-4);
  border-color: var(--accent-indigo-bd);
  transform: translateY(-3px)
}

html.light .pipe-stage {
  background: var(--bg-3)
}

.pipe-stage.active {
  border-color: var(--accent-indigo-bh);
  background: var(--bg-4);
  box-shadow: var(--glow)
}

.pipe-stage.stage-fail {
  border-color: rgba(239, 68, 68, 0.40);
  background: rgba(239, 68, 68, 0.05)
}

.pipe-stage.stage-pass {
  border-color: rgba(16, 185, 129, 0.35)
}

.pipe-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  margin-bottom: 10px
}

.pipe-name {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px
}

.pipe-sub {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  color: var(--text-muted);
  line-height: 1.7
}

.pipe-status {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%
}

.pipe-arrow {
  flex-shrink: 0;
  width: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-ghost);
  font-size: 0.7rem
}

.pipe-detail {
  padding: 0 20px 20px;
  display: none
}

.pipe-detail.open {
  display: block
}

.pipe-detail-inner {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.75
}

html.light .pipe-detail-inner {
  background: var(--bg-3)
}

.pipe-detail-inner strong {
  color: var(--accent-indigo-hi)
}

.pipe-detail-term {
  background: #000;
  border-radius: 6px;
  padding: 10px 14px;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.8
}

.ptc-g {
  color: #10B981
}

.ptc-y {
  color: #F59E0B
}

.ptc-r {
  color: #EF4444
}

.ptc-b {
  color: #818CF8
}

.ptc-w {
  color: #E2E8F0
}

.ptc-m {
  color: #94A3B8
}

.pipe-metrics {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap
}

.pipe-metric {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  text-align: center;
  flex: 1;
  min-width: 90px
}

html.light .pipe-metric {
  background: var(--bg-2)
}

.pipe-metric-v {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--accent-indigo-hi)
}

.pipe-metric-l {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 2px
}

.feat-proj {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 14px
}

html.light .feat-proj {
  background: var(--bg-2);
  box-shadow: var(--shadow-1)
}

.feat-proj-head {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.06), rgba(34, 211, 238, 0.03));
  border-bottom: 1px solid var(--border);
  padding: 20px 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap
}

.feat-proj-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--accent-indigo-lo);
  border: 1px solid var(--accent-indigo-bd);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0
}

.feat-proj-info {
  flex: 1
}

.feat-proj-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 6px
}

.feat-proj-desc {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7
}

@media (max-width: 768px) {
  .pipeline-stages {
    padding: 14px
  }

  .pipe-stage {
    max-width: 120px;
    padding: 12px
  }
}

/* ── Zero-Gravity Easter Egg ── */
@keyframes zeroGFloat {
  0% {
    transform: translateY(0px) rotate(0deg);
  }

  25% {
    transform: translateY(-14px) rotate(0.8deg);
  }

  75% {
    transform: translateY(-6px) rotate(-0.5deg);
  }

  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

body.zero-g main>section,
body.zero-g .hero,
body.zero-g .eip,
body.zero-g .footer {
  animation: zeroGFloat 6s ease-in-out infinite;
}

body.zero-g main>section:nth-child(2) {
  animation-delay: -1s;
}

body.zero-g main>section:nth-child(3) {
  animation-delay: -2s;
}

body.zero-g main>section:nth-child(4) {
  animation-delay: -3s;
}

body.zero-g main>section:nth-child(5) {
  animation-delay: -1.5s;
}

body.zero-g .footer {
  animation-delay: -4s;
}

body.zero-g {
  overflow-x: hidden;
  background: var(--bg);
}

#zero-g-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(10, 10, 10, 0.9);
  color: var(--g);
  border: 1px solid var(--g);
  backdrop-filter: blur(12px);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 7px 18px;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

#zero-g-banner.active {
  opacity: 1;
}

@keyframes traceFlow {
  to {
    stroke-dashoffset: -20;
  }
}

.eks-diagram-container:hover line,
.eks-diagram-container:hover path {
  stroke-dasharray: 4 6 !important;
  animation: traceFlow 0.6s linear infinite !important;
  stroke: rgba(34, 211, 238, 0.7) !important;
  stroke-width: 1.5 !important;
}

html.light .eks-diagram-container:hover line,
html.light .eks-diagram-container:hover line,
html.light .eks-diagram-container:hover path {
  stroke: rgba(67, 56, 202, 0.7) !important;
}

/* ── Scroll progress ── */
#sp {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-indigo), var(--accent-cyan), var(--accent-violet));
  z-index: 999999;
  box-shadow: 0 0 8px rgba(99, 102, 241, 0.55);
  transition: width 80ms linear;
}

/* ── Chaos Oscillation ── */
@keyframes chaosShake {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }

  10% {
    transform: translate(-1px, -2px) rotate(-0.5deg);
  }

  20% {
    transform: translate(-3px, 0px) rotate(0.5deg);
  }

  30% {
    transform: translate(3px, 2px) rotate(0deg);
  }

  40% {
    transform: translate(1px, -1px) rotate(0.5deg);
  }

  50% {
    transform: translate(-1px, 2px) rotate(-0.5deg);
  }

  60% {
    transform: translate(-3px, 1px) rotate(0deg);
  }

  70% {
    transform: translate(3px, 1px) rotate(-0.5deg);
  }

  80% {
    transform: translate(-1px, -1px) rotate(0.5deg);
  }

  90% {
    transform: translate(1px, 2px) rotate(0deg);
  }

  100% {
    transform: translate(1px, -2px) rotate(-0.5deg);
  }
}

.chaos-oscillation main {
  animation: chaosShake 0.2s linear infinite !important;
}

/* --- EXPERIENCE TIMELINE REDESIGN --- */
.experience-timeline {
    position: relative;
    padding-left: 32px;
    margin-top: 48px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.experience-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 15px;
    width: 2px;
    background: var(--border, rgba(255, 255, 255, 0.1));
}

.timeline-log-event {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    z-index: 2;
}

.log-avatar {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    background: var(--bg-2, #070708);
    border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--text-secondary, #9FADBC);
    font-size: 14px;
    z-index: 2;
}

.log-content {
    background: var(--bg-2, #070708);
    border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
    border-radius: 4px;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.log-text {
    margin: 0;
    font-family: var(--font-body, inter);
    font-size: 14px;
    color: var(--text-primary, #DEE4EA);
}

.log-time {
    font-family: var(--font-body, inter);
    font-size: 12px;
    color: var(--text-muted, #738496);
}

.timeline-event {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 24px;
}

.timeline-node {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-container, #1868db);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    position: absolute;
    left: -48px;
    border: 4px solid var(--bg-1, #030304);
}

.timeline-card {
    background: var(--bg-2, #070708);
    border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
    border-left-width: 4px;
    border-left-style: solid;
    border-radius: 4px;
    padding: 24px;
    flex: 1;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.tl-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.tl-role-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tl-role {
    font-family: var(--font-display, hankenGrotesk);
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary, #DEE4EA);
    margin: 0;
    letter-spacing: -0.01em;
}

.timeline-status-pill {
    font-family: var(--font-mono, jetbrainsMono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 2px 8px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid;
}

.timeline-status-pill.status-active {
    background: rgba(34, 197, 94, 0.1);
    color: #4ade80;
    border-color: rgba(34, 197, 94, 0.2);
}

.timeline-status-pill.status-active .pill-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4ade80;
}

.timeline-status-pill.status-closed {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary, #9FADBC);
    border-color: var(--border, rgba(255, 255, 255, 0.1));
}

.tl-period {
    font-family: var(--font-mono, jetbrainsMono);
    font-size: 12px;
    color: var(--text-muted, #738496);
    font-weight: 500;
}

.tl-company {
    font-family: var(--font-body, inter);
    font-size: 14px;
    color: var(--text-muted, #738496);
    margin-bottom: 16px;
}

.tl-comp-name {
    font-weight: 600;
    color: var(--text-primary, #DEE4EA);
}

.timeline-tech-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border, rgba(255, 255, 255, 0.1));
}

.t-tag {
    font-family: var(--font-mono, jetbrainsMono);
    font-size: 11px;
    font-weight: 500;
    padding: 4px 8px;
    border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
    border-radius: 2px;
    color: var(--text-secondary, #9FADBC);
    background: rgba(255, 255, 255, 0.03);
}

.tl-summary {
    font-family: var(--font-body, inter);
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary, #9FADBC);
    margin-bottom: 24px;
}

.tl-ach-label {
    font-family: var(--font-mono, jetbrainsMono);
    font-size: 12px;
    color: var(--text-muted, #738496);
    letter-spacing: 0.1em;
    margin-bottom: 12px;
    font-weight: 600;
}

.tl-ach-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tl-ach-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-family: var(--font-body, inter);
    font-size: 14px;
    color: var(--text-secondary, #9FADBC);
    line-height: 1.5;
}

.tl-ach-list li i {
    margin-top: 4px;
    font-size: 14px;
}

@media (max-width: 768px) {
    .experience-timeline {
        padding-left: 20px;
    }
    .experience-timeline::before {
        left: 9px;
    }
    .timeline-node {
        left: -32px;
        width: 24px;
        height: 24px;
        font-size: 10px;
        border-width: 3px;
    }
    .timeline-event {
        gap: 16px;
    }
    .tl-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* --- EDUCATION SECTION REDESIGN --- */
.edu.section {
    position: relative;
    padding-top: 80px;
    padding-bottom: 80px;
}

.edu-header-centered {
    position: relative;
    text-align: center;
    margin-bottom: 64px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.edu-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 200px;
    font-weight: 800;
    font-family: var(--font-display, hankenGrotesk);
    color: var(--text-primary, #ffffff);
    opacity: 0.03;
    pointer-events: none;
    z-index: 0;
}

.edu-breadcrumb-pill {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.05); /* Works in dark mode */
    border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
    border-radius: 20px;
    font-family: var(--font-mono, jetbrainsMono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--text-primary, #DEE4EA);
    margin-bottom: 24px;
}

.purple-dot {
    color: #9f7aea;
    font-size: 8px;
}

.purple-check {
    color: #9f7aea;
    font-size: 12px;
}

.edu-title {
    position: relative;
    z-index: 1;
    font-family: var(--font-display, hankenGrotesk);
    font-size: 48px;
    font-weight: 700;
    color: var(--text-primary, #DEE4EA);
    margin: 0 0 12px;
    letter-spacing: -0.02em;
}

.edu-subtitle {
    position: relative;
    z-index: 1;
    font-family: var(--font-body, inter);
    font-size: 16px;
    color: var(--text-secondary, #9FADBC);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

.edu-bar-icon {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 16px;
    margin-top: 24px;
    opacity: 0.5;
}

.edu-bar {
    width: 4px;
    background: var(--text-muted, #738496);
    border-radius: 2px;
}
.edu-bar:nth-child(1) { height: 10px; }
.edu-bar:nth-child(2) { height: 16px; }
.edu-bar:nth-child(3) { height: 8px; }
.edu-bar:nth-child(4) { height: 12px; }

/* Grid Container */
.edu-grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    position: relative;
    z-index: 2;
}

/* Card Styling */
.new-edu-card {
    background: var(--bg-2, #070708);
    border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
    border-radius: 6px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.edu-card-header-icons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.edu-uni-icon {
    width: 40px;
    height: 40px;
    background: rgba(99, 102, 241, 0.15); /* Light Indigo for dark mode */
    color: #818CF8;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.edu-check-icon {
    width: 32px;
    height: 32px;
    background: rgba(34, 197, 94, 0.1);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.edu-card-title {
    font-family: var(--font-display, hankenGrotesk);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary, #DEE4EA);
    margin: 0 0 8px;
    letter-spacing: -0.01em;
}

.edu-card-inst {
    font-family: var(--font-body, inter);
    font-size: 14px;
    color: var(--text-secondary, #9FADBC);
    margin: 0 0 16px;
    line-height: 1.5;
}

.edu-card-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.edu-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono, jetbrainsMono);
    font-size: 12px;
    color: var(--text-muted, #738496);
}

.edu-grade-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
    border-radius: 4px;
    font-family: var(--font-body, inter);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
    align-self: flex-start;
}

.edu-card-desc {
    font-family: var(--font-body, inter);
    font-size: 14px;
    color: var(--text-secondary, #9FADBC);
    line-height: 1.6;
    margin: 0;
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid var(--border, rgba(255, 255, 255, 0.1));
}

@media (max-width: 992px) {
    .edu-grid-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .edu-watermark {
        font-size: 120px;
    }
}

/* --- COMMUNITY DASHBOARD REDESIGN --- */
.comm-header {
    margin-bottom: 48px;
    max-width: 800px;
}

.comm-breadcrumb {
    font-family: var(--font-mono, jetbrainsMono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--text-muted, #738496);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
}

.comm-breadcrumb i {
    font-size: 8px;
    opacity: 0.5;
}

.comm-breadcrumb .active {
    color: var(--accent-primary, #0065FF);
}

.comm-title {
    font-family: var(--font-display, hankenGrotesk);
    font-size: 48px;
    font-weight: 700;
    color: var(--text-primary, #DEE4EA);
    margin: 0 0 16px;
    letter-spacing: -0.02em;
}

.comm-desc {
    font-family: var(--font-body, inter);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-secondary, #9FADBC);
    margin-bottom: 32px;
}

.comm-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.comm-btn {
    padding: 10px 24px;
    font-size: 13px;
    border-radius: 4px;
}

.comm-btn-ghost {
    background: transparent;
    border: 1px solid var(--border, rgba(255,255,255,0.1));
    color: var(--text-primary, #DEE4EA);
    padding: 10px 24px;
    font-size: 13px;
    border-radius: 4px;
    font-weight: 600;
    font-family: var(--font-body, inter);
}

.comm-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 48px;
}

.comm-metric-card {
    background: var(--bg-1, #030304);
    border: 1px solid var(--border, rgba(255,255,255,0.1));
    border-radius: 4px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s ease;
}
.comm-metric-card:hover {
    border-color: var(--accent-primary, #0065FF);
}
.comm-metric-card.highlight-card {
    background: var(--bg-2, #070708);
}

.cm-icon-wrapper {
    position: absolute;
    top: 0;
    right: 0;
    padding: 12px;
    opacity: 0.2;
    transition: opacity 0.3s ease;
}
.comm-metric-card:hover .cm-icon-wrapper {
    opacity: 1;
}

.cm-icon {
    color: var(--accent-primary, #0065FF);
    font-size: 24px;
}

.cm-label {
    font-family: var(--font-mono, jetbrainsMono);
    font-size: 11px;
    line-height: 1.4;
    font-weight: 500;
    color: var(--text-secondary, #9FADBC);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin: 0 0 8px 0;
    max-width: 80%;
}

.cm-value {
    font-family: var(--font-display, hankenGrotesk);
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary, #DEE4EA);
    margin-bottom: 16px;
    line-height: 1;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.cm-value.highlight {
    color: var(--accent-primary, #0065FF);
}

.cm-progress-bar {
    display: flex;
    gap: 4px;
    height: 4px;
    margin-top: auto;
}

.cm-seg {
    flex: 1;
    background: var(--accent-primary, #0065FF);
    border-radius: 0;
}

.cm-progress-bar.solid {
    background: var(--border, rgba(255,255,255,0.1));
    display: block;
    border-radius: 0;
}

.cm-fill {
    height: 100%;
    background: var(--accent-primary, #0065FF);
    border-radius: 0;
}

.cm-bars {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    height: 16px;
    gap: 4px;
    margin-top: auto;
}

.cm-bar {
    flex: 1;
    background: var(--accent-primary, #0065FF);
    border-radius: 0;
}

.cm-status-row {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono, jetbrainsMono);
    font-size: 11px;
    font-weight: 500;
    color: #4ade80;
    letter-spacing: 0.05em;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.cm-status-dot {
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
}
.cm-status-dot.pulse {
    animation: pulse-dot 2s infinite;
}

.comm-window-container {
    margin-top: 40px;
    padding: 8px;
    background: var(--bg-1, #030304);
    border: 1px solid var(--border, rgba(255,255,255,0.1));
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.comm-window {
    background: transparent;
}

.cw-header {
    border-bottom: 1px solid var(--border, rgba(255,255,255,0.1));
    padding: 0 8px 8px 8px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    background: transparent;
}

.cw-traffic-lights {
    display: flex;
    gap: 4px;
}

.cw-traffic-lights span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border, rgba(255,255,255,0.2));
}

.cw-title {
    font-family: var(--font-mono, jetbrainsMono);
    font-size: 11px;
    color: var(--text-muted, #738496);
    letter-spacing: 0.05em;
    margin-left: 8px;
}

.cw-content {
    background: transparent;
    padding: 0;
}

.cw-img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    filter: grayscale(30%);
    border: 1px solid rgba(255,255,255,0.05);
    transition: filter 0.5s ease;
}
.cw-img:hover {
    filter: grayscale(0%);
}

@media (max-width: 992px) {
    .comm-metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .comm-metrics-grid {
        grid-template-columns: 1fr;
    }
    .comm-title {
        font-size: 36px;
    }
    .comm-actions {
        flex-direction: column;
        align-items: flex-start;
    }
}

}