/* ============================================================================
   DESIGN SYSTEM: TWO DISTINCT VISUAL WORLDS
   1. [data-theme="dark"]  -> CYBER 3D STUDIO (Obsidian, Neon Gold/Violet, HUD Brackets, Glassmorphism, Hologram Aura)
   2. [data-theme="light"] -> EDITORIAL PRINT MAGAZINE (Warm Newsprint Paper, Display Serif, Sharp Ink Rules, Offset Brutalist-Editorial Shadows, Vermilion Stamp & Leica Film Portrait)
   ============================================================================ */

:root,
[data-theme="dark"] {
  --bg-primary: #060911;
  --bg-secondary: #0c1220;
  --bg-card: rgba(14, 21, 36, 0.74);
  --bg-card-solid: #0f1728;
  --bg-card-hover: rgba(20, 30, 52, 0.92);
  --bg-glass: rgba(6, 9, 17, 0.82);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-dashed: rgba(255, 255, 255, 0.14);
  --border-strong: rgba(255, 255, 255, 0.18);
  --border-accent: rgba(218, 179, 78, 0.45);
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --accent: #dab34e;
  --accent-strong: #f5d47a;
  --accent-violet: #a78bfa;
  --accent-soft: rgba(218, 179, 78, 0.13);
  --violet-glow: rgba(139, 92, 246, 0.24);
  --accent-contrast: #060911;
  --emerald: #10b981;
  --emerald-soft: rgba(16, 185, 129, 0.14);
  --shadow-card: 0 24px 55px -20px rgba(0, 0, 0, 0.68);
  --grid-line: rgba(255, 255, 255, 0.028);
  --globe-stroke: rgba(218, 179, 78, 0.24);
  --globe-node: #f5d47a;
  --strap-main: #182238;
  --strap-stripe: #dab34e;
  --card-radius: 20px;
  --btn-radius: 999px;
  --heading-font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;
}

[data-theme="light"] {
  --bg-primary: #f3ede2;
  --bg-secondary: #e7dfd1;
  --bg-card: #fffdf9;
  --bg-card-solid: #fffdf9;
  --bg-card-hover: #ffffff;
  --bg-glass: rgba(243, 237, 226, 0.92);
  --border-subtle: #141413;
  --border-dashed: rgba(20, 20, 19, 0.35);
  --border-strong: #141413;
  --border-accent: #c84630;
  --text-primary: #141413;
  --text-secondary: #2c2b29;
  --text-muted: #5c5852;
  --accent: #c84630;
  --accent-strong: #a3321f;
  --accent-violet: #1f4e5f;
  --accent-soft: rgba(200, 70, 48, 0.1);
  --violet-glow: rgba(200, 70, 48, 0.06);
  --accent-contrast: #fffdf9;
  --emerald: #166534;
  --emerald-soft: rgba(22, 101, 52, 0.1);
  --shadow-card: 5px 5px 0px #141413;
  --grid-line: rgba(20, 20, 19, 0.05);
  --globe-stroke: rgba(20, 20, 19, 0.14);
  --globe-node: #c84630;
  --strap-main: #141413;
  --strap-stripe: #c84630;
  --card-radius: 4px;
  --btn-radius: 4px;
  --heading-font: "Playfair Display", Georgia, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  transition: background-color 0.35s ease, color 0.35s ease;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}

/* Top Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  z-index: 100;
  background: linear-gradient(90deg, var(--accent-violet), var(--accent), var(--emerald));
  box-shadow: 0 0 12px var(--accent);
}

[data-theme="light"] .scroll-progress {
  background: var(--accent);
  box-shadow: none;
}

/* Ambient Desktop Cursor Glow (Cyber Dark Only) */
.cursor-glow {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(
    circle,
    rgba(218, 179, 78, 0.07),
    rgba(167, 139, 250, 0.04) 40%,
    transparent 70%
  );
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

[data-theme="light"] .cursor-glow,
@media (hover: none) {
  .cursor-glow {
    display: none;
  }
}

/* Backdrop: Cyber Grid (Dark) vs Tactile Editorial Newsprint Column Lines (Light) */
.bg-backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    radial-gradient(circle at 14% 12%, var(--accent-soft), transparent 36%),
    radial-gradient(circle at 82% 20%, var(--violet-glow), transparent 38%),
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 52px 52px, 52px 52px;
}

[data-theme="light"] .bg-backdrop {
  background-image:
    radial-gradient(rgba(20, 20, 19, 0.045) 1px, transparent 0),
    linear-gradient(to right, rgba(20, 20, 19, 0.05) 1px, transparent 1px);
  background-size: 20px 20px, 240px 100%;
}

/* Persistent Bottom-Left Monochrome Social Rail */
.side-rail {
  position: fixed;
  left: 20px;
  bottom: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.rail-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--btn-radius);
  border: 1.5px solid var(--border-subtle);
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  color: var(--text-muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.22s ease;
}

[data-theme="light"] .rail-btn {
  color: var(--text-primary);
  box-shadow: 3px 3px 0px #141413;
}

.rail-btn:hover {
  color: var(--accent);
  border-color: var(--border-accent);
  transform: translateY(-2px);
}

.rail-line {
  width: 1.5px;
  height: 68px;
  background: linear-gradient(to bottom, var(--border-accent), transparent);
}

@media (max-width: 1320px) {
  .side-rail {
    display: none;
  }
}

/* Corner Brackets (`┌ ┐ └ ┘` active in Cyber Dark, hidden in Editorial Light) */
.corner-frame {
  position: relative;
}

.corner {
  position: absolute;
  width: 10px;
  height: 10px;
  pointer-events: none;
  opacity: 0.55;
  transition: opacity 0.25s ease, width 0.25s ease, height 0.25s ease;
}

[data-theme="light"] .corner {
  display: none;
}

.corner-frame:hover .corner {
  opacity: 1;
  width: 14px;
  height: 14px;
}

.c-tl {
  top: -1px;
  left: -1px;
  border-top: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
  border-top-left-radius: 4px;
}

.c-tr {
  top: -1px;
  right: -1px;
  border-top: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
  border-top-right-radius: 4px;
}

.c-bl {
  bottom: -1px;
  left: -1px;
  border-bottom: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
  border-bottom-left-radius: 4px;
}

.c-br {
  bottom: -1px;
  right: -1px;
  border-bottom: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
  border-bottom-right-radius: 4px;
}

/* Card Surface System: Cyber Glass Spotlight (Dark) vs Brutalist-Editorial Print Card (Light) */
.spotlight-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--card-radius);
  backdrop-filter: blur(14px);
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease, border-radius 0.3s ease;
}

[data-theme="light"] .spotlight-card {
  border: 1.5px solid #141413;
  box-shadow: 5px 5px 0px #141413;
  backdrop-filter: none;
}

.spotlight-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    480px circle at var(--mx, 50%) var(--my, 50%),
    var(--accent-soft),
    transparent 45%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.spotlight-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-card);
}

[data-theme="light"] .spotlight-card:hover {
  border-color: #141413;
  box-shadow: 7px 7px 0px var(--accent);
  transform: translate(-2px, -2px);
}

/* Header & Prominent 2-Mode Style Switcher */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: var(--bg-glass);
  border-bottom: 1px solid var(--border-subtle);
}

[data-theme="light"] .site-header {
  border-bottom: 2px solid #141413;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: var(--btn-radius);
  background: var(--accent-soft);
  border: 1.5px solid var(--border-accent);
  color: var(--accent);
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: 0.92rem;
  display: grid;
  place-items: center;
}

[data-theme="light"] .brand-mark {
  background: #141413;
  border-color: #141413;
  color: #fffdf9;
}

.brand-domain {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.86rem;
  font-weight: 700;
}

.brand-domain span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-links a {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--accent);
}

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

/* Dual-Design Mode Switcher */
.mode-switcher {
  display: inline-flex;
  align-items: center;
  background: var(--bg-secondary);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--btn-radius);
  padding: 3px;
  gap: 2px;
}

.mode-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: var(--btn-radius);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.22s ease;
}

.mode-btn.active {
  background: var(--accent);
  color: var(--accent-contrast);
}

[data-theme="light"] .mode-btn.active {
  background: #141413;
  color: #fffdf9;
}

.mode-icon {
  font-size: 0.8rem;
  line-height: 1;
}

.control-pill {
  display: inline-flex;
  align-items: center;
  background: var(--bg-secondary);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--btn-radius);
  padding: 3px;
}

.lang-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 8px;
  border-radius: var(--btn-radius);
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-btn.active {
  background: var(--accent);
  color: var(--accent-contrast);
}

.cmd-trigger {
  height: 34px;
  padding: 0 9px;
  border-radius: var(--btn-radius);
  border: 1.5px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cmd-trigger:hover {
  border-color: var(--border-accent);
  color: var(--accent);
}

.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: var(--btn-radius);
  border: 1.5px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-secondary);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.mobile-menu-btn {
  display: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--btn-radius);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.22s ease;
  border: 1.5px solid transparent;
  white-space: nowrap;
}

.btn-sm {
  padding: 7px 14px;
  font-size: 0.78rem;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-contrast);
  box-shadow: 0 10px 28px -8px var(--accent-soft);
}

[data-theme="light"] .btn-primary {
  border-color: #141413;
  box-shadow: 4px 4px 0px #141413;
}

.btn-primary:hover {
  background: var(--accent-strong);
  transform: translateY(-2px);
}

.btn-outline {
  background: var(--bg-card);
  border-color: var(--border-strong);
  color: var(--text-primary);
}

[data-theme="light"] .btn-outline {
  box-shadow: 4px 4px 0px #141413;
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border-dashed);
  color: var(--text-secondary);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
}

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

/* ============================================================================
   HERO SECTION: CYBER 3D STUDIO vs EDITORIAL PRINT MONOGRAPH
   ============================================================================ */
.hero {
  padding: 40px 0 54px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 36px;
  align-items: center;
  min-height: 540px;
}

.hero-top-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 13px;
  border-radius: var(--btn-radius);
  background: var(--emerald-soft);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: var(--emerald);
  font-size: 0.78rem;
  font-weight: 700;
}

[data-theme="light"] .status-pill {
  border: 1.5px solid #141413;
  background: #fffdf9;
  color: var(--emerald);
}

.style-persona-tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 6px 10px;
  border-radius: var(--btn-radius);
  border: 1px dashed var(--border-accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  animation: pulseDot 2.2s infinite;
}

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

.hero-greeting {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

[data-theme="light"] .hero-greeting {
  color: var(--accent);
  border-bottom: 1.5px solid #141413;
  display: inline-block;
  padding-bottom: 4px;
  margin-bottom: 12px;
}

.hero-name {
  font-family: var(--heading-font);
  font-size: clamp(2.6rem, 5.4vw, 4.5rem);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

[data-theme="light"] .hero-name {
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: clamp(2.85rem, 5.8vw, 4.8rem);
}

/* Kinetic Slot-Flipper */
.kinetic-role-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.role-prefix {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  color: var(--text-secondary);
}

.role-slot-window {
  display: inline-flex;
  align-items: center;
  height: 2.3rem;
  overflow: hidden;
  padding: 0 12px;
  border-radius: var(--btn-radius);
  background: var(--accent-soft);
  border: 1.5px solid var(--border-accent);
}

[data-theme="light"] .role-slot-window {
  background: #141413;
  border-color: #141413;
}

.role-slot-item {
  font-family: "JetBrains Mono", monospace;
  font-size: clamp(0.96rem, 1.7vw, 1.25rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--accent);
  display: inline-block;
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease, filter 0.28s ease;
}

[data-theme="light"] .role-slot-item {
  color: #fffdf9;
}

.role-slot-item.flip-out {
  transform: translateY(-110%);
  opacity: 0;
  filter: blur(4px);
}

.role-slot-item.flip-in-prep {
  transform: translateY(110%);
  opacity: 0;
  filter: blur(4px);
  transition: none;
}

.hero-summary {
  font-size: 1.02rem;
  color: var(--text-secondary);
  max-width: 590px;
  margin-bottom: 28px;
}

[data-theme="light"] .hero-summary {
  border-left: 3px solid var(--accent);
  padding-left: 16px;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ============================================================================
   DUAL-PERSONA PORTRAIT & LANYARD STAGE
   ============================================================================ */
.hero-stage {
  position: relative;
  height: 568px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  perspective: 1100px;
  user-select: none;
}

.ambient-rim-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 360px;
  height: 360px;
  transform: translate(-50%, -46%);
  border-radius: 50%;
  background: radial-gradient(circle, var(--violet-glow) 0%, var(--accent-soft) 45%, transparent 72%);
  filter: blur(22px);
  pointer-events: none;
}

[data-theme="light"] .ambient-rim-glow {
  display: none;
}

.globe-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.85;
}

.lanyard-anchor-pin {
  position: relative;
  z-index: 4;
  width: 52px;
  height: 16px;
  border-radius: 0 0 10px 10px;
  background: var(--bg-card-solid);
  border: 1.5px solid var(--border-accent);
  border-top: none;
  display: grid;
  place-items: center;
}

[data-theme="light"] .lanyard-anchor-pin {
  border-radius: 0;
  background: #141413;
  border-color: #141413;
}

.lanyard-anchor-pin span {
  width: 20px;
  height: 4px;
  border-radius: 99px;
  background: var(--accent);
}

.lanyard-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
  overflow: visible;
}

.strap-outer {
  fill: none;
  stroke: var(--strap-main);
  stroke-width: 15;
  stroke-linecap: round;
}

.strap-inner {
  fill: none;
  stroke: var(--strap-stripe);
  stroke-width: 2;
  stroke-dasharray: 6 6;
  stroke-linecap: round;
  opacity: 0.85;
}

.lanyard-card-wrapper {
  position: absolute;
  top: 66px;
  left: 50%;
  z-index: 5;
  transform-style: preserve-3d;
  will-change: transform;
}

/* DARK MODE CARD: Holographic Cyber Pass */
.lanyard-card {
  width: 308px;
  background: linear-gradient(160deg, #10192d 0%, rgba(16, 24, 44, 0.96) 100%);
  border: 1px solid var(--border-accent);
  border-radius: 22px;
  padding: 15px 22px 18px;
  box-shadow:
    0 30px 60px -15px rgba(0, 0, 0, 0.72),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  cursor: grab;
  position: relative;
  overflow: hidden;
  touch-action: none;
  transition: border-radius 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

/* LIGHT MODE CARD: Editorial Polaroid / Press Monograph Card */
[data-theme="light"] .lanyard-card {
  background: #fffdf9;
  border: 2px solid #141413;
  border-radius: 4px;
  box-shadow: 9px 9px 0px #141413;
}

.lanyard-card:active {
  cursor: grabbing;
}

/* Editorial Rotated Vermilion Rubber Stamp (Light Mode Only) */
.editorial-stamp {
  display: none;
}

[data-theme="light"] .editorial-stamp {
  display: block;
  position: absolute;
  top: 236px;
  right: 16px;
  z-index: 8;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #c84630;
  border: 2px solid #c84630;
  padding: 3px 7px;
  border-radius: 3px;
  background: rgba(255, 253, 249, 0.94);
  transform: rotate(-7deg);
  pointer-events: none;
  text-transform: uppercase;
  box-shadow: 2px 2px 0px rgba(20, 20, 19, 0.12);
}

.card-glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    260px circle at var(--gx, 50%) var(--gy, 25%),
    rgba(255, 255, 255, 0.18),
    transparent 60%
  );
  mix-blend-mode: overlay;
}

[data-theme="light"] .card-glare {
  display: none;
}

.lanyard-clasp {
  width: 54px;
  height: 13px;
  margin: 0 auto 12px;
  border-radius: 99px;
  background: var(--bg-primary);
  border: 1.5px solid var(--border-strong);
  display: grid;
  place-items: center;
}

.clasp-hole {
  width: 26px;
  height: 4px;
  border-radius: 99px;
  background: var(--accent);
}

.pass-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.65rem;
  font-weight: 700;
  margin-bottom: 14px;
}

[data-theme="light"] .pass-top-row {
  border-bottom: 1px solid #141413;
  padding-bottom: 8px;
}

.pass-verified {
  color: var(--emerald);
}

.pass-id {
  color: var(--text-muted);
}

/* ============================================================================
   CREATIVE DUAL-MODE AVATAR ART DIRECTION
   - Dark Mode: Rotating Conic Neon Aura + Hologram Scanlines + Studio Contrast
   - Light Mode: Gallery Polaroid Mat + Leica Film Monochrome-Sepia (Blooms to Color on Hover!)
   ============================================================================ */
.pass-avatar-wrap {
  width: 154px;
  height: 184px;
  padding: 3px;
  margin: 0 auto 14px;
  border-radius: 20px;
  border: 1.5px solid var(--border-accent);
  background: radial-gradient(circle at 30% 25%, rgba(218, 179, 78, 0.25), rgba(167, 139, 250, 0.18));
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
  transition: all 0.35s ease;
}

/* Dark Mode Rotating Conic Neon Rim-Light */
.cyber-aura-ring {
  position: absolute;
  inset: -35%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(218, 179, 78, 0.65) 90deg,
    transparent 180deg,
    rgba(167, 139, 250, 0.7) 270deg,
    transparent 360deg
  );
  animation: spinAura 6s linear infinite;
  pointer-events: none;
  z-index: 0;
}

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

/* Light Mode Vertical Polaroid / Magazine Portrait Mat */
[data-theme="light"] .pass-avatar-wrap {
  width: 168px;
  height: 192px;
  border-radius: 3px;
  padding: 6px;
  background: #f3ede2;
  border: 1.5px solid #141413;
  box-shadow: inset 0 0 0 1px rgba(20, 20, 19, 0.15);
}

[data-theme="light"] .cyber-aura-ring,
[data-theme="light"] .scanline-overlay {
  display: none;
}

/* Avatar Image — Original True Colors Preserved Across Both Modes */
.pass-avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
  display: none;
  position: relative;
  z-index: 4;
  border-radius: 17px;
  filter: none;
  transition: transform 0.35s ease;
}

[data-theme="light"] .pass-avatar-wrap img {
  border-radius: 1px;
  filter: none;
}

.lanyard-card:hover .pass-avatar-wrap img {
  transform: scale(1.025);
}

.pass-avatar-wrap.has-image .scanline-overlay {
  display: none;
}

.scanline-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 3px,
    rgba(6, 9, 17, 0.22) 3px,
    rgba(6, 9, 17, 0.22) 4px
  );
}

.pass-avatar-wrap.has-image img {
  display: block;
}

.pass-avatar-wrap.has-image .pass-fallback-art {
  display: none;
}

.pass-fallback-art {
  position: relative;
  z-index: 2;
  width: calc(100% - 6px);
  height: calc(100% - 6px);
  border-radius: 20px;
  background: #0d1526;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

[data-theme="light"] .pass-fallback-art {
  width: 100%;
  height: 100%;
  border-radius: 1px;
  background: #eae2d3;
  color: #141413;
}

.exec-silhouette {
  width: 72px;
  height: 72px;
  opacity: 0.9;
}

.pass-monogram {
  position: absolute;
  bottom: 6px;
  right: 10px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  opacity: 0.85;
}

.pass-identity {
  text-align: center;
  margin-bottom: 12px;
}

.pass-name {
  font-family: var(--heading-font);
  font-size: 1.24rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin-bottom: 3px;
}

.pass-role {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.035em;
  white-space: nowrap;
  margin-bottom: 4px;
}

.pass-org {
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: var(--text-muted);
}

.pass-divider {
  border-top: 1px dashed var(--border-dashed);
  margin: 10px 0;
}

[data-theme="light"] .pass-divider {
  border-top: 1.5px solid #141413;
}

.pass-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.pass-barcode {
  width: 100%;
  height: 20px;
  opacity: 0.58;
  background-image: repeating-linear-gradient(
    to right,
    var(--text-primary) 0px,
    var(--text-primary) 2px,
    transparent 2px,
    transparent 5px,
    var(--text-primary) 5px,
    var(--text-primary) 6px,
    transparent 6px,
    transparent 10px,
    var(--text-primary) 10px,
    var(--text-primary) 13px,
    transparent 13px,
    transparent 16px
  );
}

.pass-domain {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
}

.lanyard-hint {
  position: absolute;
  bottom: 4px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px dashed var(--border-dashed);
  padding: 4px 12px;
  border-radius: var(--btn-radius);
  z-index: 4;
}

[data-theme="light"] .lanyard-hint {
  border: 1px solid #141413;
  color: #141413;
}

/* ============================================================================
   INFINITE MARQUEE: DARK TERMINAL vs EDITORIAL INVERTED PRESS RIBBON
   ============================================================================ */
.marquee-band {
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
  padding: 13px 0;
  overflow: hidden;
  white-space: nowrap;
}

[data-theme="light"] .marquee-band {
  background: #141413;
  border-top: 2px solid #c84630;
  border-bottom: 2px solid #141413;
}

.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 32px;
  animation: scrollMarquee 32s linear infinite;
}

.marquee-band:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 32px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
}

[data-theme="light"] .marquee-item {
  color: #f3ede2;
}

.marquee-star {
  color: var(--accent);
}

@keyframes scrollMarquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ============================================================================
   SECTIONS, CONTRASTING SURFACE TIERS & ILLUSTRATIONS
   ============================================================================ */
.section {
  padding: 88px 0;
  position: relative;
  border-bottom: 1px solid var(--border-subtle);
}

[data-theme="light"] .section {
  border-bottom: 2px solid #141413;
}

/* SECTION 01 (BENTO): Elevated Midnight Indigo (Dark) vs Pure Crisp Gallery White (Light) */
.section-bento {
  background-color: #0d162b;
  background-image: repeating-linear-gradient(
    135deg,
    rgba(218, 179, 78, 0.028) 0px,
    rgba(218, 179, 78, 0.028) 1px,
    transparent 1px,
    transparent 22px
  );
}

.section-bento .spotlight-card {
  background: rgba(7, 11, 21, 0.84);
}

[data-theme="light"] .section-bento {
  background-color: #ffffff;
  background-image: radial-gradient(rgba(20, 20, 19, 0.055) 1px, transparent 0);
  background-size: 24px 24px;
}

[data-theme="light"] .section-bento .spotlight-card {
  background: #faf6ee;
}

/* SECTION 02 (EXPERIENCE): Deep Carbon Studio (Dark) vs Warm Travertine Sand (Light) */
.section-experience {
  background: linear-gradient(180deg, #060912 0%, #0b1424 100%);
}

[data-theme="light"] .section-experience {
  background: #e4dbca;
}

[data-theme="light"] .section-experience .spotlight-card {
  background: #fffdf9;
}

/* SECTION 03 (HONORS & CASE STUDIES):
   - Dark: Luminous Royal Amethyst-Navy Showcase Stage
   - Light: DRAMATIC INVERTED ESPRESSO-INK MAGAZINE CENTERFOLD (#161614)! */
.section-honors {
  background:
    radial-gradient(circle at 80% 15%, rgba(167, 139, 250, 0.16), transparent 42%),
    radial-gradient(circle at 15% 85%, rgba(218, 179, 78, 0.12), transparent 42%),
    linear-gradient(135deg, #131e3a 0%, #1b1538 52%, #0f2036 100%);
  border-top: 1px solid rgba(218, 179, 78, 0.28);
  border-bottom: 1px solid rgba(218, 179, 78, 0.28);
}

.section-honors .spotlight-card {
  background: rgba(8, 12, 24, 0.88);
}

[data-theme="light"] .section-honors {
  background: #161614;
  color: #f6f1e7;
  border-top: 3px solid #c84630;
  border-bottom: 3px solid #141413;
}

[data-theme="light"] .section-honors .section-tag {
  color: #f06449;
}

[data-theme="light"] .section-honors .section-title {
  color: #f6f1e7;
}

[data-theme="light"] .section-honors .section-desc {
  color: #d4cdc0;
}

[data-theme="light"] .section-honors .honor-card {
  background: #22211e;
  border: 1.5px solid #4a4842;
  box-shadow: 6px 6px 0px #c84630;
}

[data-theme="light"] .section-honors .honor-card:hover {
  border-color: #f6f1e7;
  box-shadow: 8px 8px 0px #f06449;
}

[data-theme="light"] .section-honors .honor-title {
  color: #fffdf9;
}

[data-theme="light"] .section-honors .honor-issuer,
[data-theme="light"] .section-honors .honor-date {
  color: #a8a298;
  border-bottom-color: rgba(246, 241, 231, 0.18);
}

[data-theme="light"] .section-honors .case-label {
  color: #f06449;
}

[data-theme="light"] .section-honors .case-text {
  color: #dfd9cd;
}

[data-theme="light"] .section-honors .honor-rank {
  background: rgba(240, 100, 73, 0.16);
  color: #ff7b61;
  border-color: #f06449;
}

[data-theme="light"] .section-honors .honor-metric-footer {
  color: #6ee7b7;
  border-top-color: rgba(246, 241, 231, 0.18);
}

/* SECTION 04 (EDUCATION & TOOLKIT): Blueprint Grid Slate (Dark) vs Bright Alabaster Ivory (Light) */
.section-education {
  background-color: #08101e;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 32px 32px;
}

[data-theme="light"] .section-education {
  background-color: #faf8f4;
  background-image:
    linear-gradient(to right, rgba(20, 20, 19, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(20, 20, 19, 0.04) 1px, transparent 1px);
  background-size: 36px 36px;
}

[data-theme="light"] .section-education .spotlight-card {
  background: #ffffff;
}

/* SECTION 05 (CONTACT) & MASTHEAD FOOTER */
.section-contact {
  background: linear-gradient(180deg, #111d35 0%, #070b14 100%);
  border-top: 1px solid rgba(218, 179, 78, 0.25);
}

[data-theme="light"] .section-contact {
  background: #eae0ce;
}

[data-theme="light"] .site-footer {
  background: #141413;
  color: #d6cfc2;
}

/* ============================================================================
   ILLUSTRATION PLATES & EDITORIAL CAPTIONS
   ============================================================================ */
.exp-header-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 32px;
  align-items: center;
  margin-bottom: 44px;
}

.exp-header-copy {
  margin-bottom: 0;
}

.section-visual-plate {
  padding: 12px;
}

.visual-img-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: calc(var(--card-radius) - 8px);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.visual-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s ease;
}

.section-visual-plate:hover .visual-img-wrap img {
  transform: scale(1.04);
}

.visual-caption {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  padding: 10px 4px 2px;
}

.section-header {
  max-width: 700px;
  margin-bottom: 44px;
}

.section-tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--heading-font);
  font-size: clamp(1.9rem, 3.4vw, 2.65rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.16;
  margin-bottom: 12px;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-secondary);
}

/* ============================================================================
   01 / BENTO / EDITORIAL GRID
   ============================================================================ */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.bento-cell {
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.span-5 {
  grid-column: span 5;
}

.span-4 {
  grid-column: span 4;
}

.span-3 {
  grid-column: span 3;
}

.bento-eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  text-transform: uppercase;
}

.bento-metric {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 2.65rem;
  font-weight: 800;
  line-height: 1.05;
  color: var(--text-primary);
}

.bento-metric span {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  margin-left: 8px;
}

.bento-card-title {
  font-family: var(--heading-font);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.bento-card-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.workflow-bars {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 6px;
}

.wf-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.wf-track {
  height: 8px;
  border-radius: var(--btn-radius);
  background: var(--bg-secondary);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.wf-fill-old {
  width: 100%;
  height: 100%;
  background: rgba(148, 163, 184, 0.45);
}

.wf-fill-new {
  width: 70%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--emerald));
}

.bento-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-chip {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.73rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--btn-radius);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.live-clock-display {
  font-family: "JetBrains Mono", monospace;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--emerald);
  letter-spacing: 0.04em;
}

/* ============================================================================
   02 / EXPERIENCE TIMELINE
   ============================================================================ */
.timeline-wrap {
  position: relative;
  padding-left: 38px;
}

.timeline-rail {
  position: absolute;
  left: 11px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border-dashed);
}

.timeline-beam {
  width: 100%;
  height: 25%;
  background: linear-gradient(to bottom, var(--accent), var(--accent-violet), var(--emerald));
  box-shadow: 0 0 12px var(--accent);
  transition: height 0.15s linear;
}

[data-theme="light"] .timeline-beam {
  background: var(--accent);
  box-shadow: none;
}

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

.exp-card {
  padding: 30px;
  position: relative;
}

.exp-node {
  position: absolute;
  left: -34px;
  top: 34px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 2.5px solid var(--accent);
}

[data-theme="light"] .exp-node {
  border-radius: 0;
  transform: rotate(45deg);
  border-color: #141413;
  background: var(--accent);
}

.exp-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.exp-role {
  font-family: var(--heading-font);
  font-size: 1.32rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.exp-org {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--accent);
}

.exp-org span {
  color: var(--text-muted);
  font-weight: 400;
}

.exp-meta-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.exp-period {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  color: var(--text-secondary);
  padding: 4px 12px;
  border-radius: var(--btn-radius);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
}

.exp-highlight {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--border-accent);
  padding: 4px 12px;
  border-radius: var(--btn-radius);
}

.exp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.exp-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.exp-bullets li {
  position: relative;
  padding-left: 20px;
  font-size: 0.94rem;
  color: var(--text-secondary);
}

.exp-bullets li::before {
  content: "▹";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ============================================================================
   03 / CASE STUDY CARDS
   ============================================================================ */
.honors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  perspective: 1000px;
}

.honor-card {
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform-style: preserve-3d;
  will-change: transform;
}

.honor-visual-cover {
  position: relative;
  width: 100%;
  height: 248px;
  padding: 14px 16px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
  background: radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.08), rgba(7, 11, 20, 0.96));
}

[data-theme="light"] .honor-visual-cover {
  background: radial-gradient(circle at 50% 42%, #2c2b27 0%, #151513 100%);
  border-bottom: 1.5px solid #4a4842;
}

.honor-visual-cover img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 4px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.55);
  transition: transform 0.45s ease;
}

.honor-card:hover .honor-visual-cover img {
  transform: scale(1.045);
}

.fig-badge {
  position: absolute;
  bottom: 10px;
  left: 12px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  padding: 3px 8px;
  border-radius: var(--btn-radius);
  background: rgba(8, 12, 22, 0.84);
  color: #f5d47a;
  border: 1px solid rgba(218, 179, 78, 0.4);
  backdrop-filter: blur(6px);
}

[data-theme="light"] .fig-badge {
  background: #141413;
  color: #fffdf9;
  border-color: #c84630;
}

.honor-body {
  padding: 24px 26px 8px;
}

.honor-metric-footer {
  margin: 6px 26px 24px;
  padding-top: 14px;
  border-top: 1px dashed var(--border-dashed);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--emerald);
}

.honor-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.honor-rank {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--border-accent);
  padding: 4px 10px;
  border-radius: var(--btn-radius);
}

.honor-date {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.76rem;
  color: var(--text-muted);
}

.honor-title {
  font-family: var(--heading-font);
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.32;
  margin-bottom: 6px;
}

.honor-issuer {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-muted);
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px dashed var(--border-dashed);
}

.case-block {
  margin-bottom: 12px;
}

.case-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-violet);
  margin-bottom: 3px;
}

.case-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* ============================================================================
   04 / EDUCATION & TOOLKIT
   ============================================================================ */
.edu-card {
  padding: 28px 30px;
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 30px;
  align-items: center;
}

.edu-coursework-block {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px dashed var(--border-dashed);
}

.edu-visual-plate {
  margin: 0;
}

.edu-img-frame {
  width: 100%;
  aspect-ratio: 16 / 9.5;
  border-radius: calc(var(--card-radius) - 6px);
  overflow: hidden;
  border: 1.5px solid var(--border-subtle);
}

.edu-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.edu-card:hover .edu-img-frame img {
  transform: scale(1.04);
}

.edu-school {
  font-family: var(--heading-font);
  font-size: 1.38rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.edu-degree {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
}

.edu-program {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.edu-period {
  display: inline-block;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  color: var(--text-muted);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  padding: 4px 12px;
  border-radius: var(--btn-radius);
}

.coursework-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.coursework-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.skill-card {
  padding: 26px;
}

.skill-card h3 {
  font-family: var(--heading-font);
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.skill-card > p {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.skill-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.skill-row-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.skill-tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 2px 7px;
  border-radius: var(--btn-radius);
}

.skill-bar-track {
  height: 6px;
  border-radius: var(--btn-radius);
  background: var(--bg-secondary);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.skill-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-violet));
}

[data-theme="light"] .skill-bar-fill {
  background: #141413;
}

/* ============================================================================
   05 / CONTACT & FOOTER
   ============================================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.contact-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.contact-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--btn-radius);
  background: var(--accent-soft);
  border: 1.5px solid var(--border-accent);
  color: var(--accent);
  display: grid;
  place-items: center;
}

.contact-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.contact-value {
  font-size: 0.87rem;
  font-weight: 700;
  word-break: break-word;
}

.site-footer {
  padding: 30px 0 44px;
  color: var(--text-muted);
  font-size: 0.86rem;
}

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

/* ============================================================================
   ⌘K COMMAND PALETTE MODAL
   ============================================================================ */
.cmd-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(4, 7, 15, 0.72);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: start center;
  padding-top: 13vh;
}

.cmd-backdrop[hidden] {
  display: none;
}

.cmd-modal {
  width: min(560px, 92vw);
  background: var(--bg-card-solid);
  border: 2px solid var(--border-accent);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.cmd-search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1.5px solid var(--border-subtle);
  color: var(--text-muted);
}

.cmd-search-bar input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
}

.esc-kbd {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: var(--btn-radius);
  border: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
  cursor: pointer;
}

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

.cmd-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 14px;
  border-radius: var(--btn-radius);
  font-size: 0.9rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.cmd-item:hover {
  background: var(--accent-soft);
  color: var(--text-primary);
}

.cmd-shortcut {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: var(--btn-radius);
  background: var(--bg-secondary);
  color: var(--accent);
  border: 1px solid var(--border-subtle);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--accent);
  color: var(--accent-contrast);
  font-weight: 700;
  font-size: 0.86rem;
  padding: 12px 20px;
  border-radius: var(--btn-radius);
  box-shadow: var(--shadow-card);
  transform: translateY(80px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.28s ease;
  z-index: 150;
}

.toast.visible {
  transform: translateY(0);
  opacity: 1;
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================================
   EXPERIENCE PROOF-OF-WORK GALLERY & FULLSCREEN LIGHTBOX
   ============================================================================ */
.exp-highlight-btn {
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.2s ease, background 0.2s ease;
}

.exp-highlight-btn:hover {
  transform: translateY(-1px);
  background: var(--accent);
  color: var(--accent-contrast);
}

.exp-gallery-section {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px dashed var(--border-dashed);
}

.exp-gallery-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.exp-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.exp-proof-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: calc(var(--card-radius) - 4px);
  overflow: hidden;
  cursor: pointer;
  color: inherit;
  font-family: inherit;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

[data-theme="light"] .exp-proof-card {
  background: #faf6ee;
  border: 1.5px solid #141413;
  box-shadow: 4px 4px 0px #141413;
}

.exp-proof-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-accent);
}

[data-theme="light"] .exp-proof-card:hover {
  border-color: #141413;
  box-shadow: 6px 6px 0px var(--accent);
}

.exp-proof-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
  background: #0d1322;
}

.exp-proof-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.exp-proof-card:hover .exp-proof-thumb img {
  transform: scale(1.05);
}

.honor-visual-cover.lightbox-trigger {
  cursor: pointer;
}

.proof-zoom-pill {
  position: absolute;
  top: 10px;
  right: 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--btn-radius);
  background: rgba(8, 12, 22, 0.82);
  color: #fffdf9;
  border: 1px solid rgba(255, 255, 255, 0.22);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.exp-proof-card:hover .proof-zoom-pill,
.honor-visual-cover:hover .proof-zoom-pill {
  opacity: 1;
  transform: translateY(0);
}

.exp-proof-info {
  padding: 14px 15px 16px;
}

.exp-proof-tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  color: var(--accent);
  margin-bottom: 5px;
}

.exp-proof-title {
  font-family: var(--heading-font);
  font-size: 0.96rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.exp-proof-desc {
  font-size: 0.8rem;
  line-height: 1.48;
  color: var(--text-secondary);
}

/* Lightbox Modal */
.lightbox-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(5, 8, 16, 0.86);
  backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  padding: 24px;
}

.lightbox-backdrop[hidden] {
  display: none;
}

.lightbox-dialog {
  width: min(980px, 95vw);
  background: var(--bg-card-solid);
  border: 2px solid var(--border-accent);
  border-radius: var(--card-radius);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.75);
  overflow: hidden;
  position: relative;
}

[data-theme="light"] .lightbox-dialog {
  border-color: #141413;
  box-shadow: 10px 10px 0px #c84630;
}

.lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--btn-radius);
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  background: rgba(10, 14, 24, 0.85);
  color: #ffffff;
  cursor: pointer;
}

.lightbox-close:hover {
  background: var(--accent);
  color: var(--accent-contrast);
}

.lightbox-img-stage {
  width: 100%;
  max-height: 74vh;
  background: #070a12;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.lightbox-img-stage img {
  width: 100%;
  max-height: 74vh;
  object-fit: contain;
  display: block;
}

.lightbox-meta {
  padding: 16px 22px 18px;
  border-top: 1px solid var(--border-subtle);
}

.lightbox-title {
  font-family: var(--heading-font);
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.lightbox-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* ============================================================================
   RESPONSIVE BREAKPOINTS
   ============================================================================ */
@media (max-width: 1140px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 28px;
    background: var(--bg-card-solid);
    border-bottom: 1.5px solid var(--border-subtle);
    gap: 16px;
  }

  .nav-links.open {
    display: flex;
  }

  .mobile-menu-btn {
    display: grid;
  }

  .header-cv-btn {
    display: none;
  }
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-stage {
    height: 510px;
  }

  .span-5,
  .span-4,
  .span-3 {
    grid-column: span 6;
  }

  .honors-grid,
  .skills-grid,
  .edu-card,
  .exp-header-split,
  .exp-gallery-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 600px) {
  .container {
    padding: 0 18px;
  }

  .span-5,
  .span-4,
  .span-3 {
    grid-column: span 12;
  }

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

  .exp-meta-right {
    align-items: flex-start;
  }
}
