/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   ELEBE OBINNA VITALIS — Bespoke Personal Website & Portfolio
   Design: Radiant Day (Pearl Alabaster & Champagne Gold) [DEFAULT]
           Opulent Night (Obsidian Sapphire & Liquid Molten Gold)
           Automated Night Switch at 7:00 PM (19:00 to 07:00)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,500;1,600;1,700&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   1. DESIGN TOKENS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* ── DAY THEME (DEFAULT: Radiant Pearl & Prismatic Gold) ──── */
:root,
:root[data-theme="light"],
body[data-theme="light"] {
  /* Surfaces & Canvas */
  --ink:            #f5f8fc;
  --ink-2:          #ffffff;
  --ink-3:          #eaf0f9;
  --ink-card:       rgba(255, 255, 255, 0.9);
  --ink-card-hover: #ffffff;
  --ink-elevated:   #ffffff;
  
  /* Architectural Lines & Glass */
  --line:           rgba(15, 23, 42, 0.08);
  --line-strong:    rgba(15, 23, 42, 0.16);
  --line-gold:      rgba(217, 119, 6, 0.38);
  --glass-bg:       rgba(255, 255, 255, 0.88);
  --glass-border:   rgba(255, 255, 255, 0.95);
  --glass-frost:    rgba(240, 245, 255, 0.7);
  
  /* Prismatic Champagne Amber & Gold */
  --gold:           #c27803;
  --gold-light:     #d97706;
  --gold-bright:    #f59e0b;
  --gold-dim:       rgba(217, 119, 6, 0.11);
  --gold-glow:      rgba(245, 158, 11, 0.26);
  --gold-gradient:  linear-gradient(135deg, #b45309 0%, #d97706 45%, #f59e0b 80%, #fbbf24 100%);
  --gold-shimmer:   linear-gradient(90deg, #92400e 0%, #f59e0b 40%, #fbbf24 60%, #92400e 100%);
  
  /* Multi-Discipline Accents */
  --sapphire:       #2563eb;
  --sapphire-dim:   rgba(37, 99, 235, 0.1);
  --sapphire-gradient: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 60%, #60a5fa 100%);
  --cyan-dim:       rgba(2, 132, 199, 0.09);
  --emerald:        #059669;
  --emerald-dim:    rgba(5, 150, 105, 0.11);
  
  /* Typography System — Modern Executive Grotesque */
  --font-display:   'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-body:      'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-heading:   'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-subhead:   'Manrope', 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-ui:        'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono:      'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;

  /* Typography Colors */
  --white:          #0b1120;
  --off-white:      #1e293b;
  --text-1:         #0f172a;
  --text-2:         #334155;
  --text-3:         #64748b;
  --text-muted:     #94a3b8;
  
  /* Physics & Spatial Shadows */
  --container:      min(1240px, calc(100% - 48px));
  --r-sm:           8px;
  --r:              14px;
  --r-lg:           22px;
  --r-xl:           30px;
  
  /* Hero Slideshow Scrim Tokens (Day Mode) */
  --scrim-rgb:          245, 248, 252;
  --hero-scrim-left:    #f5f8fc;
  --hero-scrim-mid:     rgba(245, 248, 252, 0.96);
  --hero-scrim-soft:    rgba(245, 248, 252, 0.62);
  --hero-scrim-edge:    rgba(245, 248, 252, 0.22);
  --hero-scrim-base:    #f5f8fc;
  --hero-slide-opacity: 0.94;
  
  --ease:           cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring:    cubic-bezier(0.34, 1.56, 0.64, 1);
  --shadow-sm:      0 2px 8px rgba(15, 23, 42, 0.05);
  --shadow-md:      0 12px 32px -6px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(15, 23, 42, 0.05);
  --shadow-lg:      0 24px 50px -12px rgba(15, 23, 42, 0.12), 0 0 24px -2px rgba(217, 119, 6, 0.14);
  --shadow-glow:    0 0 35px -5px rgba(217, 119, 6, 0.22);
}

/* ── NIGHT THEME (Obsidian Astral & Liquid Molten Gold) ────── */
/* Automatically active from 7:00 PM (19:00) to 07:00, or when toggled */
:root[data-theme="dark"],
body[data-theme="dark"],
:root.dark-theme,
:root:has(#theme-toggle:checked),
body:has(#theme-toggle:checked) {
  /* Surfaces & Canvas */
  --ink:            #06080e;
  --ink-2:          #0c101a;
  --ink-3:          #131826;
  --ink-card:       rgba(14, 18, 29, 0.84);
  --ink-card-hover: rgba(22, 28, 44, 0.96);
  --ink-elevated:   #151b2a;
  
  /* Architectural Lines & Glass */
  --line:           rgba(255, 255, 255, 0.09);
  --line-strong:    rgba(255, 255, 255, 0.18);
  --line-gold:      rgba(245, 180, 80, 0.42);
  --glass-bg:       rgba(8, 11, 18, 0.86);
  --glass-border:   rgba(255, 255, 255, 0.11);
  --glass-frost:    rgba(18, 24, 38, 0.7);
  
  /* Molten Gold & Cyber Amber */
  --gold:           #f5b450;
  --gold-light:     #fcd34d;
  --gold-bright:    #fef08a;
  --gold-dim:       rgba(245, 180, 80, 0.14);
  --gold-glow:      rgba(245, 180, 80, 0.38);
  --gold-gradient:  linear-gradient(135deg, #f5b450 0%, #ffd884 45%, #ecc94b 80%, #f6ad55 100%);
  --gold-shimmer:   linear-gradient(90deg, #ffffff 0%, #ffd884 35%, #f5b450 70%, #ffffff 100%);
  
  /* Multi-Discipline Accents */
  --sapphire:       #60a5fa;
  --sapphire-dim:   rgba(96, 165, 250, 0.14);
  --sapphire-gradient: linear-gradient(135deg, #3b82f6 0%, #6366f1 55%, #8b5cf6 100%);
  --cyan-dim:       rgba(56, 189, 248, 0.14);
  --emerald:        #10b981;
  --emerald-dim:    rgba(16, 185, 129, 0.16);
  
  /* Typography */
  --white:          #ffffff;
  --off-white:      #f1f5f9;
  --text-1:         #f8fafc;
  --text-2:         #94a3b8;
  --text-3:         #64748b;
  --text-muted:     #475569;
  
  /* Hero Slideshow Scrim Tokens (Night Mode) */
  --scrim-rgb:          6, 8, 14;
  --hero-scrim-left:    #06080e;
  --hero-scrim-mid:     rgba(6, 8, 14, 0.92);
  --hero-scrim-soft:    rgba(6, 8, 14, 0.52);
  --hero-scrim-edge:    rgba(6, 8, 14, 0.16);
  --hero-scrim-base:    #06080e;
  --hero-slide-opacity: 0.95;
  
  /* Physics & Spatial Shadows */
  --shadow-sm:      0 2px 8px rgba(0, 0, 0, 0.5);
  --shadow-md:      0 14px 38px -8px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.07);
  --shadow-lg:      0 26px 58px -12px rgba(0, 0, 0, 0.9), 0 0 30px -2px rgba(245, 180, 80, 0.18);
  --shadow-glow:    0 0 40px -4px rgba(245, 180, 80, 0.28);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   2. RESET & GLOBAL FOUNDATION
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--ink);
  overflow-x: hidden;
  transition: background-color 0.4s var(--ease);
}

body {
  background: var(--ink);
  background-image: 
    radial-gradient(ellipse 90% 60% at 50% -20%, rgba(217, 119, 6, 0.08), transparent 70%),
    radial-gradient(ellipse 60% 40% at 85% 15%, rgba(37, 99, 235, 0.06), transparent 60%),
    radial-gradient(circle 800px at 15% 45%, rgba(5, 150, 105, 0.04), transparent 70%);
  color: var(--text-2);
  font-family: var(--font-body);
  line-height: 1.68;
  letter-spacing: -0.011em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}

code, pre, kbd, samp {
  font-family: var(--font-mono);
}

:root[data-theme="dark"] body,
body[data-theme="dark"],
:root.dark-theme body,
body:has(#theme-toggle:checked) {
  background-image: 
    radial-gradient(ellipse 90% 60% at 50% -20%, rgba(245, 180, 80, 0.12), transparent 70%),
    radial-gradient(ellipse 60% 40% at 85% 15%, rgba(96, 165, 250, 0.08), transparent 60%),
    radial-gradient(circle 800px at 15% 45%, rgba(16, 185, 129, 0.05), transparent 70%);
}

.container {
  width: var(--container);
  margin: 0 auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

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

ul {
  list-style: none;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   3. FLOATING GLASS HEADER & NAVIGATION DOCK
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.site-header {
  position: sticky;
  top: 16px;
  z-index: 500;
  width: var(--container);
  margin: 0 auto;
  transition: all 0.3s var(--ease);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  padding: 0 24px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: 9999px;
  box-shadow: var(--shadow-md);
  transition: all 0.35s var(--ease);
}

.logo {
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.035em;
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
  flex-shrink: 0;
  transition: color 0.3s;
}

.logo span {
  color: var(--gold);
  font-size: 28px;
  line-height: 0;
  display: inline-block;
  text-shadow: 0 0 14px var(--gold-glow);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 3px;
  background: rgba(255, 255, 255, 0.04);
  padding: 4px 6px;
  border-radius: 999px;
  border: 1px solid var(--line);
  transition: all 0.3s var(--ease);
}

.header-nav a {
  padding: 7px 14px;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  border-radius: 999px;
  transition: all 0.22s var(--ease);
  white-space: nowrap;
}

.header-nav a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

:root[data-theme="dark"] .header-nav a:hover,
body:has(#theme-toggle:checked) .header-nav a:hover {
  background: rgba(255, 255, 255, 0.08);
}

.header-nav a.is-current {
  color: var(--gold);
  background: var(--gold-dim);
  border: 1px solid var(--line-gold);
  font-weight: 600;
}

.header-actions-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Live Time & Day/Night Mode Telemetry Pill */
.theme-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--ink-card);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: 0.03em;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s var(--ease);
}

.theme-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
  animation: pulseDot 2.2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.theme-clock-text {
  color: var(--gold);
  font-weight: 600;
  border-left: 1px solid var(--line);
  padding-left: 8px;
  margin-left: 2px;
}

/* Pure CSS Theme Toggle Switch */
.theme-toggle-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ink-card);
  border: 1px solid var(--line-strong);
  color: var(--gold);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s var(--ease-spring);
  position: relative;
  flex-shrink: 0;
}

.theme-toggle-btn:hover {
  border-color: var(--gold);
  transform: scale(1.08) rotate(12deg);
  box-shadow: 0 0 16px var(--gold-glow);
}

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

.theme-svg {
  width: 18px;
  height: 18px;
  transition: transform 0.4s var(--ease-spring), opacity 0.3s var(--ease);
}

/* Day theme (default): Moon icon visible */
.sun-icon {
  display: none;
}
.moon-icon {
  display: flex;
}

:root[data-theme="dark"] .sun-icon,
body[data-theme="dark"] .sun-icon,
:root.dark-theme .sun-icon,
body:has(#theme-toggle:checked) .sun-icon {
  display: flex;
  animation: sun-spin 0.5s var(--ease-spring);
}

:root[data-theme="dark"] .moon-icon,
body[data-theme="dark"] .moon-icon,
:root.dark-theme .moon-icon,
body:has(#theme-toggle:checked) .moon-icon {
  display: none;
}

@keyframes sun-spin {
  0% { transform: rotate(-90deg) scale(0.5); opacity: 0; }
  100% { transform: rotate(0deg) scale(1); opacity: 1; }
}

/* Mobile Nav Controls */
.nav-toggle-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.nav-toggle-btn {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: var(--r);
  background: var(--ink-card);
  border: 1px solid var(--line);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  z-index: 502;
}

.nav-toggle-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--white);
  border-radius: 99px;
  transition: transform 0.3s var(--ease), opacity 0.2s, background 0.3s;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   4. SHARED SECTION & TYPOGRAPHY UTILITIES
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.section {
  padding: 120px 0;
  position: relative;
}

.section-alt {
  background: var(--ink-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease);
}

.section-dark {
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink-3) 50%, var(--ink) 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}

.shead {
  margin-bottom: 56px;
  position: relative;
}

.eyebrow-pill,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--gold-dim);
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-gold);
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s var(--ease);
}

.eyebrow-pill::before,
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--gold);
  flex-shrink: 0;
}

.sh {
  color: var(--white);
  font-family: var(--font-display);
  font-size: clamp(34px, 4.2vw, 52px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  transition: color 0.4s var(--ease);
}

.sh em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  color: var(--gold-light);
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sdesc {
  margin-top: 16px;
  max-width: 680px;
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: -0.01em;
  transition: color 0.4s var(--ease);
}

.sdesc .author-gh-link {
  color: var(--gold);
  font-weight: 600;
  border-bottom: 1px dashed var(--line-gold);
  padding-bottom: 1px;
}

.sdesc .author-gh-link:hover {
  border-bottom-style: solid;
}

/* ── Shiny Buttons & Interactive Elements ──────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  font-family: var(--font-ui);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  border-radius: var(--r);
  transition: all 0.28s var(--ease);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.btn:active {
  transform: scale(0.97);
}

.btn-gold {
  background: var(--gold-gradient);
  color: #0c0e12;
  box-shadow: 0 4px 16px var(--gold-glow), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px var(--gold-glow), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  filter: brightness(1.06);
}

.btn-sapphire {
  background: var(--sapphire-gradient);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-sapphire:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.42);
  filter: brightness(1.06);
}

.btn-outline {
  background: var(--glass-bg);
  border: 1px solid var(--line-strong);
  color: var(--text-1);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  background: var(--gold-dim);
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   5. CINEMATIC BACKGROUND SLIDESHOW HERO SECTION
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.hero {
  position: relative;
  width: 100%;
  min-height: calc(100vh - 84px);
  min-height: max(720px, calc(100vh - 84px));
  display: flex;
  align-items: center;
  padding-top: 100px;
  padding-bottom: 74px;
  overflow: hidden;
}

/* Background Slideshow Canvas */
.hero-slideshow {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 62%;
  min-width: 520px;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 1.5s cubic-bezier(0.4, 0, 0.2, 1), transform 7.5s cubic-bezier(0.25, 1, 0.5, 1);
  filter: saturate(1.06) contrast(1.03);
}

.hero-slide:nth-child(1) {
  object-position: center 22%;
}

.hero-slide:nth-child(2) {
  object-position: 65% 18%;
}

.hero-slide:nth-child(3) {
  object-position: 50% 12%;
}

.hero-slide.is-active {
  opacity: var(--hero-slide-opacity, 0.95);
  transform: scale(1);
}

/* Editorial Scrim Overlay — Seamlessly Blends Photos into Theme Canvas */
.hero-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background:
    linear-gradient(90deg, 
      var(--hero-scrim-left) 0%, 
      var(--hero-scrim-left) 36%, 
      var(--hero-scrim-mid) 50%, 
      var(--hero-scrim-soft) 68%, 
      var(--hero-scrim-edge) 88%, 
      var(--hero-scrim-soft) 100%
    ),
    linear-gradient(0deg, var(--hero-scrim-base) 0%, transparent 25%),
    linear-gradient(180deg, var(--hero-scrim-base) 0%, transparent 20%),
    radial-gradient(ellipse 700px 500px at 70% 30%, var(--gold-glow), transparent 70%);
}

.hero-container {
  position: relative;
  z-index: 3;
  width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-copy {
  max-width: 620px;
  padding: 10px 0;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--line-gold);
  border-radius: 999px;
  box-shadow: var(--shadow-sm), 0 0 16px var(--gold-dim);
  margin-bottom: 22px;
  transition: all 0.3s var(--ease);
}

.hero-pill-badge:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-md), 0 0 22px var(--gold-glow);
}

.hero-pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: pulseDot 2s infinite ease-in-out;
}

.hero-pill-text {
  color: var(--text-2);
  font-family: var(--font-ui);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(46px, 5.6vw, 76px);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -0.04em;
  color: var(--white);
  margin-top: 6px;
  text-wrap: balance;
  transition: color 0.4s var(--ease);
}

h1 .name-accent {
  font-style: italic;
  font-weight: 700;
  color: var(--gold-light);
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-right: 0.15em;
  filter: drop-shadow(0 2px 14px var(--gold-dim));
}

h1 .name-last {
  display: inline-block;
  color: var(--white);
}

.hero-role {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding: 9px 20px;
  background: var(--glass-bg);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border: 1px solid var(--line-gold);
  border-radius: 999px;
  color: var(--text-1);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s var(--ease);
}

.hero-role::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
  flex-shrink: 0;
}

.hero-lead {
  margin-top: 22px;
  max-width: 580px;
  color: var(--text-2);
  font-size: 16.5px;
  line-height: 1.8;
  letter-spacing: -0.01em;
  transition: color 0.4s var(--ease);
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.hero-actions .btn-outline {
  background: var(--glass-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: var(--line-gold);
}

.hero-actions .btn-outline:hover {
  background: var(--gold-dim);
  border-color: var(--gold);
  color: var(--gold);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 42px;
  padding-top: 28px;
  border-top: 1px solid var(--line-gold);
}

.hero-stat {
  padding-right: 10px;
  position: relative;
}

.hero-stat + .hero-stat::before {
  content: '';
  position: absolute;
  left: -9px;
  top: 10%;
  height: 80%;
  width: 1px;
  background: var(--line);
}

.hero-stat strong {
  display: block;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  transition: color 0.4s var(--ease);
}

.hero-stat span {
  color: var(--text-3);
  font-family: var(--font-ui);
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 8px;
  display: block;
  transition: color 0.4s var(--ease);
}

/* Floating Status Capsule on Hero Canvas */
.hero-floating-badge {
  position: absolute;
  bottom: 32px;
  right: calc((100% - var(--container)) / 2 + 16px);
  z-index: 3;
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--line-gold);
  border-radius: var(--r);
  padding: 13px 22px;
  box-shadow: var(--shadow-md), 0 0 24px var(--gold-dim);
  transition: all 0.3s var(--ease);
}

.hero-floating-badge:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  box-shadow: var(--shadow-lg), 0 0 30px var(--gold-glow);
}

.hero-floating-badge p {
  font-size: 12.5px;
  color: var(--text-2);
  margin: 0;
  font-family: var(--font-ui);
}

.hero-floating-badge p.dot {
  font-weight: 700;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.hero-floating-badge p.dot::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulseDot 2s infinite ease-in-out;
}

/* Slideshow Pill Indicators */
.hero-slideshow-nav {
  position: absolute;
  bottom: 38px;
  right: calc((100% - var(--container)) / 2 + 236px);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--line-gold);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

.hero-indicator-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: var(--text-muted);
  cursor: pointer;
  transition: all 0.35s var(--ease);
}

.hero-indicator-dot:hover {
  background: var(--gold-light);
}

.hero-indicator-dot.is-active {
  width: 24px;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold-glow);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   6. ABOUT & DUAL DISCIPLINE BENTO
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: center;
}

.about-photo-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}

.about-photo {
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-md);
  background: var(--ink-card);
  max-width: 440px;
  width: 100%;
}

.about-photo img {
  width: 100%;
  height: auto;
  object-fit: cover;
  filter: contrast(1.04);
}

.about-tag {
  position: absolute;
  bottom: -14px;
  right: -14px;
  background: var(--glass-bg);
  border: 1px solid var(--line-gold);
  border-radius: var(--r);
  padding: 10px 18px;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--gold);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(12px);
}

.about-body p {
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.8;
  margin-top: 18px;
  transition: color 0.4s var(--ease);
}

.about-body strong {
  color: var(--white);
  font-weight: 600;
}

.current-card {
  margin-top: 32px;
  padding: 24px 28px;
  background: var(--ink-card);
  border: 1px solid var(--line-gold);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
}

.current-card .label {
  display: block;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.current-card h4 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-top: 8px;
}

.current-card p {
  font-size: 13.5px;
  color: var(--text-3);
  margin-top: 6px;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   7. SKILLS BENTO & DOMAIN CAPABILITIES
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.skill-col {
  background: var(--ink-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 38px 32px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(14px);
  transition: all 0.35s var(--ease);
  position: relative;
  overflow: hidden;
}

.skill-col::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

.skill-col:hover {
  background: var(--ink-card-hover);
  border-color: var(--line-gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.skill-col:hover::before {
  opacity: 1;
}

.skill-col-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r);
  background: var(--gold-dim);
  border: 1px solid var(--line-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  margin-bottom: 22px;
  transition: transform 0.3s var(--ease-spring);
}

.skill-col:hover .skill-col-icon {
  transform: scale(1.1) rotate(6deg);
}

.skill-col-icon svg {
  width: 24px;
  height: 24px;
}

.skill-col h3 {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

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

.skill-tags li {
  padding: 6px 13px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-2);
  font-size: 12.5px;
  font-weight: 500;
  transition: all 0.22s var(--ease);
}

:root[data-theme="light"] .skill-tags li {
  background: rgba(15, 23, 42, 0.03);
}

.skill-col:hover .skill-tags li:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-dim);
  transform: translateY(-2px);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   8. EXPERIENCE & EDUCATION TIMELINE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.exp-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}

.exp-col-title {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gold);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 32px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.exp-icon {
  width: 18px;
  height: 18px;
  color: var(--gold);
}

.tl {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.tl-item {
  display: flex;
  gap: 20px;
  position: relative;
}

.tl-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.tl-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
  margin-top: 6px;
}

.tl-line {
  flex: 1;
  width: 2px;
  background: var(--line);
  margin-top: 8px;
}

.tl-strong {
  display: block;
  color: var(--white);
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.35;
  transition: color 0.4s var(--ease);
}

.tl-meta {
  display: block;
  color: var(--text-3);
  font-family: var(--font-ui);
  font-size: 12.5px;
  font-weight: 500;
  margin-top: 4px;
  letter-spacing: 0.01em;
}

.badge-now {
  display: inline-block;
  margin-top: 6px;
  padding: 3px 9px;
  background: var(--gold-dim);
  border: 1px solid var(--line-gold);
  color: var(--gold);
  font-family: var(--font-ui);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 4px;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   9. SELECTED PROJECTS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.proj-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
  align-items: center;
}

.proj-filter-btn {
  padding: 8px 18px;
  background: var(--ink-card);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-2);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  box-shadow: var(--shadow-sm);
}

.proj-filter-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-1px);
}

.proj-filter-btn.is-active {
  background: var(--gold-gradient);
  color: #0c0e12;
  border-color: transparent;
  box-shadow: 0 4px 14px var(--gold-glow);
}

.proj-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 28px;
}

.proj-card {
  background: var(--ink-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(14px);
  position: relative;
  overflow: hidden;
  transition: all 0.35s var(--ease);
}

.proj-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--sapphire), var(--emerald));
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

.proj-card:hover {
  background: var(--ink-card-hover);
  border-color: var(--line-gold);
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.proj-card:hover::before {
  opacity: 1;
}

/* Architecturally Stacked Card Top to guarantee clean visual hierarchy */
.proj-card-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
}

.proj-category-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: var(--gold-dim);
  border: 1px solid var(--line-gold);
  border-radius: 999px;
  color: var(--gold);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.proj-repo-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-3);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.proj-repo-indicator svg {
  color: var(--gold);
  flex-shrink: 0;
}

.proj-card h3 {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  transition: color 0.3s var(--ease);
}

.proj-card:hover h3 {
  color: var(--gold);
}

.proj-card p {
  color: var(--text-2);
  font-size: 14.5px;
  line-height: 1.7;
  margin-bottom: 22px;
  flex: 1;
  transition: color 0.4s var(--ease);
}

.proj-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 24px;
}

.proj-tech-tags span {
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text-3);
  font-family: var(--font-ui);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

:root[data-theme="light"] .proj-tech-tags span {
  background: rgba(15, 23, 42, 0.03);
}

.proj-card-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.btn-repo-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  color: var(--text-1);
  font-size: 12.5px;
  font-weight: 600;
  transition: all 0.22s var(--ease);
}

.btn-repo-link:hover {
  background: var(--gold-dim);
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-1px);
}

.btn-live-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  background: var(--gold-gradient);
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  color: #0c0e12;
  font-size: 12.5px;
  font-weight: 600;
  box-shadow: 0 2px 10px var(--gold-glow);
  transition: all 0.22s var(--ease);
}

.btn-live-link:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.btn-internal-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-3);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 7px 0;
}

/* Ecosystem Links Strip */
.more-bar {
  margin-top: 48px;
  padding: 24px 32px;
  background: var(--ink-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s var(--ease);
}

.more-bar-label {
  color: var(--gold);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-right: 8px;
}

.more-bar a {
  padding: 7px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s var(--ease);
}

:root[data-theme="light"] .more-bar a {
  background: rgba(15, 23, 42, 0.03);
}

.more-bar a:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-dim);
  transform: translateY(-1px);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   13. CONTACT & COLLABORATION
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}

.contact-desc {
  color: var(--text-2);
  font-size: 16.5px;
  line-height: 1.8;
  margin-top: 18px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.clink {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: var(--ink-card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
  transition: all 0.28s var(--ease);
}

.clink:hover {
  background: var(--ink-card-hover);
  border-color: var(--line-gold);
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

.clink-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.clink-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--r-sm);
  background: var(--gold-dim);
  border: 1px solid var(--line-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}

.clink-icon svg {
  width: 20px;
  height: 20px;
}

.clink-label {
  display: block;
  font-size: 11px;
  color: var(--text-3);
  font-family: var(--font-ui);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.clink-val {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--white);
  margin-top: 3px;
}

.clink-arrow {
  color: var(--gold);
  font-size: 18px;
  transition: transform 0.2s var(--ease);
}

.clink:hover .clink-arrow {
  transform: translateX(4px);
}

.location-box {
  background: var(--ink-card);
  border: 1px solid var(--line-gold);
  border-radius: var(--r-lg);
  padding: 40px 34px;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(14px);
}

.loc-map {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-family: var(--font-ui);
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 18px;
}

.loc-map svg {
  width: 18px;
  height: 18px;
}

.location-box h4 {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.location-box p {
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.7;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   14. FOOTER
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
footer {
  padding: 60px 0;
  background: var(--ink-2);
  border-top: 1px solid var(--line);
  transition: background-color 0.4s var(--ease);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.footer-logo p {
  color: var(--text-3);
  font-size: 13px;
  margin-top: 4px;
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: var(--text-2);
  font-size: 13.5px;
  font-weight: 500;
  transition: color 0.2s var(--ease);
}

.footer-nav a:hover {
  color: var(--gold);
}

.footer-copy {
  color: var(--text-3);
  font-size: 13px;
  font-family: var(--font-ui);
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   15. SHARED UTILITIES & COMPONENT EXTENSIONS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.nav-toggle-input:focus-visible ~ .header-actions-wrap .nav-toggle-btn,
.theme-toggle-input:focus-visible + .theme-toggle-btn { outline: 3px solid var(--gold); outline-offset: 3px; }
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 1000; padding: 12px; background: var(--ink-2); color: var(--white); }
.skip-link:focus { top: 12px; }

.project-categories { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 42px; }
.project-categories a { padding: 12px 18px; border: 1px solid var(--line-strong); border-radius: 24px; text-decoration: none; font-size: 14px; color: var(--text-1); }
.project-categories a:hover { background: var(--gold-dim); border-color: var(--gold); }
.project-filter-panel { margin: 24px 0 42px; }
.project-filters { display: flex; flex-wrap: wrap; gap: 10px; }
.project-filters button {
  appearance: none;
  padding: 11px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--text-1);
  font: 600 14px/1.3 var(--font-ui);
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease, color .2s ease;
  white-space: nowrap;
}
.project-filters button span { margin-left: 5px; color: var(--text-3); font-size: 12px; }
.project-filters button:hover { border-color: var(--gold); background: var(--gold-dim); }
.project-filters button[aria-pressed="true"] { border-color: var(--gold); background: var(--gold); color: var(--ink); }
.project-filters button[aria-pressed="true"] span { color: inherit; }
.project-filter-status { margin: 13px 0 0; color: var(--text-3); font-size: 13px; }
.project-group { margin-top: 52px; scroll-margin-top: 120px; }
.project-group > h2 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.03em; font-size: 30px; margin-bottom: 22px; }
.project-group .proj-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.project-group .proj-card { padding: 28px; gap: 16px; }
.project-group .proj-card h3 { margin: 0; font-size: 25px; }
.project-group .proj-card p { font-size: 16px; line-height: 1.7; margin: 0; }
.project-group .btn-live-link { margin-top: auto; padding-top: 16px; font-size: 15px; }
.live-ecosystem { padding: 32px; margin-top: 64px; border-radius: var(--r-lg); background: var(--ink-3); }
.live-ecosystem h2 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.03em; font-size: 32px; margin: 18px 0; }
.live-ecosystem .project-categories { margin-bottom: 0; }
.portfolio-page main > .section { padding-top: 142px; }

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   16. RESPONSIVE DESIGN (TABLET & DESKTOP COLLAPSE)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 1080px) {
  .hero-slideshow {
    width: 65%;
    opacity: 0.85;
  }
  .hero-container {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-floating-badge {
    position: static;
    margin-top: 24px;
    display: inline-flex;
    width: fit-content;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .about-photo-wrap {
    max-width: 420px;
    margin: 0 auto;
  }
  .skills-grid {
    grid-template-columns: 1fr;
  }
  .exp-cols {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .proj-grid {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .header-nav {
    gap: 2px;
  }
  .header-nav a {
    padding-inline: 10px;
  }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   17. MOBILE VIEWPORT POLISH (SMARTPHONES & PHABLETS)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 860px) {
  :root {
    --container: calc(100% - 28px);
  }

  /* Floating Pill Header on Mobile */
  .site-header {
    top: 10px;
    width: calc(100% - 20px);
    max-width: 100%;
  }

  .header-inner {
    height: 56px;
    padding: 0 12px 0 16px;
    border-radius: 999px;
    box-shadow: var(--shadow-sm);
  }

  .logo {
    font-size: 21px;
    position: relative;
    z-index: 501;
  }

  .logo span {
    font-size: 24px;
  }

  .theme-status-pill {
    display: none;
  }

  .header-actions-wrap {
    gap: 8px;
    position: relative;
    z-index: 501;
  }

  .theme-toggle-btn {
    width: 38px;
    height: 38px;
  }

  /* Refined Circular Morphing Hamburger Button */
  .nav-toggle-btn {
    display: flex;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--ink-card);
    border: 1px solid var(--line-strong);
    box-shadow: var(--shadow-sm);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    transition: all 0.25s var(--ease-spring);
    position: relative;
    z-index: 502;
  }

  .nav-toggle-btn:hover {
    border-color: var(--gold);
    transform: scale(1.05);
  }

  .nav-toggle-btn span {
    display: block;
    width: 17px;
    height: 2px;
    background: var(--white);
    border-radius: 99px;
    transition: transform 0.3s var(--ease-spring), opacity 0.2s, background 0.2s;
  }

  .nav-toggle-input:checked ~ .header-actions-wrap .nav-toggle-btn {
    border-color: var(--gold);
    background: var(--gold-dim);
    box-shadow: 0 0 14px var(--gold-glow);
  }

  .nav-toggle-input:checked ~ .header-actions-wrap .nav-toggle-btn span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
    background: var(--gold);
  }
  .nav-toggle-input:checked ~ .header-actions-wrap .nav-toggle-btn span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }
  .nav-toggle-input:checked ~ .header-actions-wrap .nav-toggle-btn span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
    background: var(--gold);
  }

  /* Full-Screen Glassmorphism Mobile Navigation Drawer */
  .header-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100dvh;
    background: var(--ink);
    background: radial-gradient(circle at 50% 12%, var(--ink-2) 0%, var(--ink) 100%);
    backdrop-filter: blur(32px) saturate(190%);
    -webkit-backdrop-filter: blur(32px) saturate(190%);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: calc(84px + env(safe-area-inset-top, 0px)) 16px calc(32px + env(safe-area-inset-bottom, 0px));
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-12px) scale(0.98);
    transition: opacity 0.3s var(--ease), visibility 0.3s, transform 0.3s var(--ease-spring);
    z-index: 490;
    overflow-y: auto;
    box-sizing: border-box;
    border: none;
    border-radius: 0;
    box-shadow: none;
  }

  .nav-toggle-input:checked ~ .header-nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  .header-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 18px;
    min-height: 50px;
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--white);
    background: var(--ink-card);
    border: 1px solid var(--line);
    border-radius: var(--r);
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: all 0.22s var(--ease);
  }

  .header-nav a::after {
    content: '→';
    font-size: 15px;
    font-weight: 500;
    color: var(--text-3);
    transition: transform 0.2s var(--ease), color 0.2s var(--ease);
  }

  .header-nav a:hover,
  .header-nav a:active {
    background: var(--glass-frost);
    border-color: var(--line-gold);
    color: var(--gold);
    transform: translateX(3px);
  }

  .header-nav a:hover::after {
    color: var(--gold);
    transform: translateX(4px);
  }

  .header-nav a.is-current {
    background: var(--gold-dim);
    border-color: var(--gold);
    color: var(--gold);
    box-shadow: 0 0 20px var(--gold-glow);
  }

  .header-nav a.is-current::after {
    content: '•';
    color: var(--gold);
    font-size: 22px;
    line-height: 0;
  }

  /* Hero Section Mobile Framing */
  .hero {
    min-height: auto;
    padding-top: calc(86px + env(safe-area-inset-top, 0px));
    padding-bottom: 54px;
    position: relative;
    overflow: hidden;
  }

  /* Slideshow on Mobile — Clearly Visible & Warmly Framed */
  .hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    min-width: 0;
    opacity: 0.64;
    z-index: 1;
    pointer-events: none;
  }

  :root[data-theme="light"] .hero-slideshow,
  body[data-theme="light"] .hero-slideshow {
    opacity: 0.54;
  }

  .hero-slide:nth-child(1) {
    object-position: 74% 12%;
  }
  .hero-slide:nth-child(2) {
    object-position: 68% 10%;
  }
  .hero-slide:nth-child(3) {
    object-position: 54% 8%;
  }

  /* Mobile Scrim — Soft Gradient Allowing Portrait Face to Warm the Header */
  .hero-scrim {
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
      linear-gradient(180deg,
        rgba(var(--scrim-rgb), 0.35) 0%,
        rgba(var(--scrim-rgb), 0.72) 26%,
        var(--hero-scrim-base) 54%,
        var(--hero-scrim-base) 100%
      ),
      radial-gradient(ellipse 380px 280px at 70% 14%, var(--gold-glow), transparent 75%);
  }

  .hero-container {
    flex-direction: column;
    align-items: flex-start;
    width: var(--container);
    position: relative;
    z-index: 3;
    padding: 0;
  }

  .hero-copy {
    max-width: 100%;
    padding: 0;
  }

  .hero-pill-badge {
    padding: 5px 12px;
    max-width: 100%;
    line-height: 1.4;
  }

  .hero-pill-text {
    font-size: 11px;
    letter-spacing: 0.01em;
    white-space: normal;
  }

  h1 {
    font-size: clamp(34px, 8.8vw, 44px);
    line-height: 1.08;
    letter-spacing: -0.035em;
    margin-top: 14px;
    word-break: break-word;
  }

  .hero-role {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding: 7px 14px;
    font-size: 12.5px;
    line-height: 1.4;
    white-space: normal;
    max-width: 100%;
  }

  .hero-lead {
    font-size: 15px;
    line-height: 1.65;
    margin-top: 14px;
    max-width: 100%;
    color: var(--text-2);
  }

  /* Smart Mobile CTA Buttons */
  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
    margin-top: 20px;
  }

  .hero-actions .btn-gold {
    grid-column: 1 / -1;
    text-align: center;
    justify-content: center;
    padding: 13px 20px;
    font-size: 15px;
  }

  .hero-actions .btn-outline {
    text-align: center;
    justify-content: center;
    padding: 11px 10px;
    font-size: 13px;
    white-space: nowrap;
  }

  /* Tactile Metric Glass Cards */
  .hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    width: 100%;
    margin-top: 22px;
    padding-top: 0;
    border-top: none;
  }

  .hero-stat {
    background: var(--glass-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .hero-stat + .hero-stat::before {
    display: none;
  }

  .hero-stat strong {
    font-size: 26px;
    line-height: 1.1;
    font-family: var(--font-display);
    font-weight: 800;
    color: var(--white);
  }

  .hero-stat span {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-3);
  }

  /* Single-Line Floating Status Pill */
  .hero-floating-badge {
    position: static;
    margin-top: 18px;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--glass-bg);
    border: 1px solid var(--line-gold);
    border-radius: 999px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--shadow-sm);
    width: fit-content;
    max-width: 100%;
  }

  .hero-floating-badge p {
    margin: 0;
    font-size: 12px;
  }

  .hero-floating-badge p.dot {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: var(--white);
  }

  .hero-floating-badge p.dot::before {
    margin-right: 0;
  }

  .hero-floating-badge p:not(.dot)::before {
    content: '·';
    margin-right: 8px;
    color: var(--text-3);
  }

  /* Centered Bottom Slideshow Navigation Pill */
  .hero-slideshow-nav {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    padding: 5px 12px;
    gap: 8px;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--line-gold);
    border-radius: 999px;
    z-index: 10;
    box-shadow: var(--shadow-sm);
  }

  .hero-indicator-dot {
    width: 6px;
    height: 6px;
  }

  .hero-indicator-dot.is-active {
    width: 20px;
  }

  /* General Page Styles on Mobile */
  .section {
    padding: 60px 0;
  }

  .portfolio-page main > .section {
    padding-top: 96px;
  }

  .sh {
    font-size: clamp(30px, 8vw, 42px);
    overflow-wrap: anywhere;
  }

  .sdesc {
    font-size: 15px;
  }

  .project-group {
    margin-top: 34px;
  }

  .project-group .proj-grid {
    grid-template-columns: 1fr;
  }

  .project-group .proj-card {
    padding: 20px;
  }

  .project-categories {
    gap: 8px;
    margin-bottom: 24px;
  }

  .project-categories a {
    padding: 10px 14px;
    font-size: 13px;
  }

  .project-filter-panel {
    margin: 20px 0 28px;
  }

  .project-filters {
    flex-wrap: nowrap;
    max-width: 100%;
    padding: 2px 0 10px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
  }

  .project-filters::-webkit-scrollbar {
    display: none;
  }

  .project-filters button {
    min-height: 42px;
    font-size: 13px;
    padding: 9px 14px;
  }

  .live-ecosystem {
    padding: 20px;
    margin-top: 36px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
  }

  .footer-nav a {
    padding-block: 6px;
    font-size: 13.5px;
  }

  .clink {
    min-width: 0;
  }

  .clink-val {
    overflow-wrap: anywhere;
    font-size: 14.5px;
  }
}

@media (max-width: 400px) {
  h1 {
    font-size: 32px;
  }
  .hero-actions .btn-outline {
    font-size: 12px;
    padding: 10px 6px;
  }
  .hero-stat strong {
    font-size: 22px;
  }
  .hero-stat span {
    font-size: 10px;
  }
}
