/* Terminal Theme v2 — Full-width, Liquid Glass, 3D Effects */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  color-scheme: dark;
  --bg: #050505;
  --bg-terminal: rgba(5, 15, 5, 0.6);
  --bg-card: rgba(0, 255, 65, 0.03);
  --glass-bg: rgba(0, 20, 0, 0.25);
  --glass-border: rgba(0, 255, 65, 0.15);
  --glass-highlight: rgba(0, 255, 65, 0.08);
  --border: rgba(0, 255, 65, 0.2);
  --border-bright: rgba(0, 255, 65, 0.5);
  --green: #00ff41;
  --green-dim: #00cc33;
  --green-bright: #39ff14;
  --green-glow: rgba(0, 255, 65, 0.5);
  --text: #00ff41;
  --text-dim: rgba(0, 255, 65, 0.75);
  --text-muted: rgba(0, 255, 65, 0.65);
  --white: #e0ffe0;
  --radius: 16px;
  --radius-sm: 8px;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', 'Consolas', monospace;
}

::selection {
  background: rgba(0, 255, 65, 0.3);
  color: var(--green-bright);
}

html {
  scroll-behavior: smooth;
}

/* ===================== BOOT SCREEN ===================== */
#boot-screen {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#boot-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.boot-container {
  max-width: 700px;
  width: 90%;
  padding: 2rem;
}

.boot-ascii {
  font-family: var(--font-mono);
  font-size: clamp(0.35rem, 1.2vw, 0.7rem);
  color: var(--green);
  text-align: center;
  white-space: pre;
  line-height: 1.2;
  margin-bottom: 2rem;
  text-shadow: 0 0 20px var(--green-glow);
  animation: asciiGlow 2s ease-in-out infinite alternate;
}

@keyframes asciiGlow {
  from { text-shadow: 0 0 10px var(--green-glow), 0 0 20px var(--green-glow); }
  to { text-shadow: 0 0 20px var(--green-glow), 0 0 40px var(--green-glow), 0 0 60px var(--green-glow); }
}

.boot-terminal {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  margin-bottom: 2rem;
  min-height: 220px;
}

.boot-line {
  color: var(--text-dim);
  padding: 0.3rem 0;
  opacity: 0;
  transform: translateX(-10px);
}

.boot-line.visible {
  opacity: 1;
  transform: translateX(0);
  transition: all 0.3s ease;
}

.boot-line .boot-time {
  color: var(--text-muted);
}

.boot-line .success {
  color: var(--green-bright);
  font-weight: 600;
}

.boot-line .highlight {
  color: var(--green);
  font-weight: 600;
}

.boot-progress {
  margin-bottom: 1.5rem;
}

.boot-progress-label {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.boot-percent {
  color: var(--green);
}

.boot-progress-bar {
  height: 4px;
  background: rgba(0, 255, 65, 0.1);
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
}

.boot-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--green-dim), var(--green), var(--green-bright));
  box-shadow: 0 0 10px var(--green-glow);
  transition: width 0.1s ease;
}

.boot-status {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  animation: blink 1s step-end infinite;
}

.boot-scanline {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.3) 2px,
    rgba(0, 0, 0, 0.3) 4px
  );
  pointer-events: none;
  animation: scanlineMove 8s linear infinite;
}

@keyframes scanlineMove {
  0% { background-position: 0 0; }
  100% { background-position: 0 100px; }
}

body.loading {
  overflow: hidden;
}

body.loading .page-shell,
body.loading .bg-container,
body.loading #scroll-progress,
body.loading #sound-toggle {
  opacity: 0;
  visibility: hidden;
}

body:not(.loading) .page-shell,
body:not(.loading) .bg-container,
body:not(.loading) #scroll-progress,
body:not(.loading) #sound-toggle {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.8s ease 0.3s;
}

/* ===================== SCROLL PROGRESS PILL ===================== */
#scroll-progress {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9998;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1.25rem;
  background: linear-gradient(
    135deg,
    rgba(0, 30, 0, 0.85) 0%,
    rgba(0, 15, 0, 0.9) 100%
  );
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(0, 255, 65, 0.1),
    inset 0 1px 0 rgba(0, 255, 65, 0.1);
  transition: all 0.3s ease;
}

#scroll-progress:hover {
  border-color: var(--border-bright);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(0, 255, 65, 0.2),
    inset 0 1px 0 rgba(0, 255, 65, 0.1);
  transform: translateX(-50%) translateY(-2px);
}

.scroll-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: var(--green);
  animation: downloadPulse 2s ease-in-out infinite;
}

@keyframes downloadPulse {
  0%, 100% { opacity: 0.7; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(2px); }
}

.scroll-filename {
  color: var(--green);
  white-space: nowrap;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.scroll-bar-container {
  width: 100px;
  height: 6px;
  background: rgba(0, 255, 65, 0.1);
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid rgba(0, 255, 65, 0.2);
}

.scroll-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--green-dim), var(--green), var(--green-bright));
  box-shadow: 0 0 8px var(--green-glow);
  transition: width 0.15s ease;
  border-radius: 3px;
}

.scroll-percent {
  color: var(--green-bright);
  min-width: 3ch;
  text-align: right;
  font-weight: 600;
  text-shadow: 0 0 10px var(--green-glow);
}

/* ===================== SOUND TOGGLE ===================== */
#sound-toggle {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 9998;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    rgba(0, 30, 0, 0.85) 0%,
    rgba(0, 15, 0, 0.9) 100%
  );
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  color: var(--green);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(0, 255, 65, 0.1);
}

#sound-toggle:hover {
  border-color: var(--green);
  box-shadow: 0 0 20px var(--green-glow);
  transform: scale(1.1);
}

#sound-toggle svg {
  width: 20px;
  height: 20px;
}

#sound-toggle .sound-off {
  display: none;
}

#sound-toggle.muted .sound-on {
  display: none;
}

#sound-toggle.muted .sound-off {
  display: block;
}

#sound-toggle.muted {
  color: var(--text-muted);
}

/* ===================== ANIMATED BACKGROUND ===================== */
.bg-container {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 0%, rgba(0, 40, 0, 0.4) 0%, var(--bg) 70%);
}

#matrix-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.4;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(0, 255, 65, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 65, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(60px, 60px); }
}

.glow-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  /* No filter:blur — the radial gradients are already soft and this repaints far cheaper. */
  opacity: 0.35;
  animation: orbFloat 15s ease-in-out infinite;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 255, 65, 0.3) 0%, transparent 70%);
  top: -200px;
  right: -100px;
  animation-delay: 0s;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 200, 50, 0.25) 0%, transparent 70%);
  bottom: 20%;
  left: -100px;
  animation-delay: -5s;
}

.orb-3 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 255, 100, 0.2) 0%, transparent 70%);
  top: 50%;
  right: -150px;
  animation-delay: -10s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* Subtle scanlines */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.1) 2px,
    rgba(0, 0, 0, 0.1) 4px
  );
  pointer-events: none;
  z-index: 1000;
  opacity: 0.3;
}

body {
  font-family: var(--font-mono);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.7;
  font-size: 15px;
}

a {
  color: var(--green);
  text-decoration: none;
  transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

a:hover {
  color: var(--green-bright);
  text-shadow: 0 0 20px var(--green-glow);
}

h1, h2, h3, h4 {
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.02em;
}

p {
  color: var(--text-dim);
}

.highlight {
  color: var(--green-bright);
  text-shadow: 0 0 10px var(--green-glow);
}

/* ===================== FULL-WIDTH LAYOUT ===================== */
.page-shell {
  width: 100%;
  max-width: 100vw;
  padding: 0 clamp(1.5rem, 5vw, 6rem);
  position: relative;
  z-index: 2;
}

/* ===================== NAVIGATION ===================== */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  margin: 1.5rem auto 0;
  max-width: fit-content;
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  
  /* Pill shape */
  border-radius: 100px;
  
  /* Liquid glass effect */
  background: linear-gradient(
    135deg,
    rgba(0, 255, 65, 0.08) 0%,
    rgba(0, 255, 65, 0.02) 50%,
    rgba(0, 255, 65, 0.05) 100%
  );
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  
  /* Glass border */
  border: 1px solid rgba(0, 255, 65, 0.15);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(0, 255, 65, 0.05) inset,
    0 1px 0 rgba(0, 255, 65, 0.1) inset;
  
  /* Subtle animation */
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 100px;
  background: linear-gradient(
    180deg,
    rgba(0, 255, 65, 0.1) 0%,
    transparent 50%
  );
  pointer-events: none;
}

.nav:hover {
  border-color: rgba(0, 255, 65, 0.25);
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.5),
    0 0 30px rgba(0, 255, 65, 0.1),
    0 0 0 1px rgba(0, 255, 65, 0.1) inset,
    0 1px 0 rgba(0, 255, 65, 0.15) inset;
}

.nav-logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-right: 2.5rem;
  text-shadow: 0 0 20px var(--green-glow);
}

.nav-logo::before {
  content: '>';
  color: var(--green);
  animation: blink 1s step-end infinite;
  text-shadow: 0 0 10px var(--green-glow);
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.nav-links {
  display: flex;
  gap: 0.5rem;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.85rem;
  position: relative;
  padding: 0.6rem 1rem;
  border-radius: 50px;
  transition: all 0.3s ease;
  background: transparent;
}

.nav-links a::after {
  display: none;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--green);
  background: rgba(0, 255, 65, 0.1);
  text-shadow: 0 0 15px var(--green-glow);
  box-shadow: 0 0 20px rgba(0, 255, 65, 0.1) inset;
}

/* ===================== HERO ===================== */
.hero {
  padding: 8rem 0 6rem;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  position: relative;
}

.hero-content {
  max-width: 600px;
  flex: 1;
}

/* ===================== HERO IMAGE ===================== */
.hero-image-container {
  flex-shrink: 0;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards 1s;
  margin-right: 2rem;
}

.hero-image-wrapper {
  position: relative;
  width: 320px;
  height: 320px;
  perspective: 1100px;
  transform-style: preserve-3d;
}

.hero-image-glitch {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(var(--tz, 0px));
  transition: box-shadow 0.5s ease;
  will-change: transform;
}

.hero-image-wrapper.live .hero-image-glitch {
  --tz: 50px;
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.55),
    0 0 60px rgba(0, 255, 120, 0.22);
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.1);
  transition: filter 0.6s ease, transform 0.6s ease;
  position: relative;
  z-index: 1;
}

/* The base photo stays grayscale; colour arrives via the decrypt reveal. */

/* Glitch layers — whole-image ghost copies, magenta/cyan fringe + micro-shake,
   same recipe as the tagline textGlitch. No slice bands. */
.glitch-layer {
  position: absolute;
  inset: 0;
  background: url('../assets/images/vprofile.jpg') center / cover no-repeat;
  opacity: 0;
  pointer-events: none;
  z-index: 3;
  mix-blend-mode: screen;
}

.glitch-r {
  filter: grayscale(1) sepia(1) hue-rotate(70deg) saturate(5) brightness(1.1); /* green flash */
}

.glitch-b {
  filter: grayscale(1) sepia(1) hue-rotate(70deg) saturate(4) brightness(0.95); /* green ghost */
}

.glitch-g {
  display: none;
}

.hero-image-glitch.glitching {
  animation: imgShake 0.3s ease 1;
}

.hero-image-glitch.glitching .glitch-r {
  animation: ghostL 0.3s ease 1;
}

.hero-image-glitch.glitching .glitch-b {
  animation: ghostR 0.3s ease 1;
}

@keyframes imgShake {
  0%, 100% { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(var(--tz, 0px)) translateX(0); }
  20% { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(var(--tz, 0px)) translateX(-1px); }
  40% { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(var(--tz, 0px)) translateX(1px); }
  60% { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(var(--tz, 0px)) translateX(-0.5px); }
  80% { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(var(--tz, 0px)) translateX(0.5px); }
}

@keyframes ghostL {
  0%, 100% { opacity: 0; transform: translateX(0); }
  15% { opacity: 0.85; transform: translateX(-2px); }
  45% { opacity: 0.6; transform: translateX(2px); }
  75% { opacity: 0.25; transform: translateX(-1px); }
}

@keyframes ghostR {
  0%, 100% { opacity: 0; transform: translateX(0); }
  20% { opacity: 0.7; transform: translateX(2px); }
  50% { opacity: 0.4; transform: translateX(-2px); }
  80% { opacity: 0.2; transform: translateX(1px); }
}

/* Dispersion particles effect */
.hero-image-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hero-image-wrapper.live .hero-image-particles {
  opacity: 1;
}

.hero-image-particles::before,
.hero-image-particles::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
}

.hero-image-particles::before {
  background: 
    radial-gradient(circle at 20% 30%, var(--green) 1px, transparent 1px),
    radial-gradient(circle at 80% 20%, var(--green) 1px, transparent 1px),
    radial-gradient(circle at 40% 80%, var(--green) 1px, transparent 1px),
    radial-gradient(circle at 90% 70%, var(--green) 1px, transparent 1px),
    radial-gradient(circle at 10% 60%, var(--green) 1px, transparent 1px),
    radial-gradient(circle at 60% 10%, var(--green) 1px, transparent 1px),
    radial-gradient(circle at 70% 90%, var(--green) 1px, transparent 1px),
    radial-gradient(circle at 30% 50%, var(--green) 1px, transparent 1px);
  background-size: 100% 100%;
  animation: particleFloat 2s ease-in-out infinite;
}

.hero-image-particles::after {
  background: 
    radial-gradient(circle at 15% 45%, var(--green-bright) 1px, transparent 1px),
    radial-gradient(circle at 85% 35%, var(--green-bright) 1px, transparent 1px),
    radial-gradient(circle at 55% 75%, var(--green-bright) 1px, transparent 1px),
    radial-gradient(circle at 25% 15%, var(--green-bright) 1px, transparent 1px),
    radial-gradient(circle at 75% 85%, var(--green-bright) 1px, transparent 1px),
    radial-gradient(circle at 45% 25%, var(--green-bright) 1px, transparent 1px);
  background-size: 100% 100%;
  animation: particleFloat 2.5s ease-in-out infinite reverse;
}

@keyframes particleFloat {
  0%, 100% {
    transform: translateY(0) translateX(0);
    opacity: 0.3;
  }
  25% {
    transform: translateY(-10px) translateX(5px);
    opacity: 0.8;
  }
  50% {
    transform: translateY(-5px) translateX(-5px);
    opacity: 0.5;
  }
  75% {
    transform: translateY(-15px) translateX(10px);
    opacity: 0.9;
  }
}

/* Scanlines overlay */
.hero-image-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.15) 2px,
    rgba(0, 0, 0, 0.15) 4px
  );
  pointer-events: none;
  border-radius: 20px;
  opacity: 0.5;
}

/* ---- Glitch-decrypt: grayscale → colour, whole image at once ---- */
.hero-image-reveal {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: url('../assets/images/vprofile.jpg') center / cover no-repeat;
  filter: contrast(1.06) saturate(1.32) brightness(1.04);
  opacity: 0;
  transition: opacity 0.4s ease 0.22s; /* colour lands as the shake ends */
  will-change: opacity;
  pointer-events: none;
}

.hero-image-wrapper.decrypting .hero-image-reveal {
  opacity: 1;
}

/* Leaving: colour drops instantly back to grayscale, no reverse wipe */
.hero-image-wrapper:not(.decrypting) .hero-image-reveal {
  transition: opacity 0.3s ease;
}

/* ---- Photo-colored depth echo (replaces the boxy green halo) ---- */
.hero-image-depth {
  position: absolute;
  inset: -12%;
  border-radius: 40px;
  background: url('../assets/images/vprofile.jpg') center / cover no-repeat;
  filter: blur(26px) saturate(1.5);
  opacity: 0;
  transition: opacity 0.6s ease;
  z-index: -1;
  pointer-events: none;
}

.hero-image-wrapper.live .hero-image-depth {
  opacity: 0.6;
}

/* ---- Specular sheen that tracks the pointer ---- */
.hero-image-sheen {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  background: radial-gradient(
    220px 220px at var(--mx, 50%) var(--my, 50%),
    rgba(255, 255, 255, 0.22) 0%,
    rgba(0, 255, 120, 0.10) 35%,
    transparent 65%
  );
  mix-blend-mode: screen;
  z-index: 5;
}

.hero-image-wrapper.live .hero-image-sheen {
  opacity: 1;
}

/* Soft vignette so the frame dissolves instead of reading as a hard box */
.hero-image-glitch::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: radial-gradient(
    125% 125% at 50% 45%,
    transparent 55%,
    rgba(5, 5, 5, 0.55) 100%
  );
  pointer-events: none;
  z-index: 6;
}

/* Image label */
.image-label {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--green-dim);
  text-align: center;
  font-family: var(--font-mono);
  opacity: 0.7;
}

.prompt {
  color: var(--green-dim);
  margin-bottom: 1rem;
  font-size: 1rem;
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards 0.2s;
}

.headline {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--green);
  text-shadow: 0 0 40px var(--green-glow);
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards 0.4s;
}

.headline .cursor {
  display: inline-block;
  width: 0.5em;
  height: 1em;
  background: var(--green);
  margin-left: 8px;
  animation: blink 1s step-end infinite;
  vertical-align: text-bottom;
  box-shadow: 0 0 20px var(--green-glow);
}

/* ===================== HERO TAGLINE ===================== */
.hero-tagline {
  font-size: 1.4rem;
  color: var(--text);
  margin-bottom: 1.5rem;
  max-width: 70ch;
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: -0.02em;
  position: relative;
}

.tagline-text {
  display: inline;
  color: var(--text-dim);
  position: relative;
  opacity: 0;
}

.tagline-accent {
  display: inline;
  position: relative;
  color: var(--green);
  font-weight: 500;
  text-shadow: 0 0 30px var(--green-glow);
  opacity: 0;
}

/* Subtle glitch effect on hover */
.hero-tagline:hover .tagline-accent {
  animation: textGlitch 0.3s ease;
}

@keyframes textGlitch {
  0%, 100% {
    text-shadow: 0 0 30px var(--green-glow);
    transform: translateX(0);
  }
  20% {
    text-shadow: -2px 0 var(--green-bright), 2px 0 rgba(255, 0, 128, 0.5);
    transform: translateX(-1px);
  }
  40% {
    text-shadow: 2px 0 var(--green-bright), -2px 0 rgba(0, 200, 255, 0.5);
    transform: translateX(1px);
  }
  60% {
    text-shadow: -1px 0 var(--green-bright), 1px 0 rgba(255, 0, 128, 0.5);
    transform: translateX(-0.5px);
  }
  80% {
    text-shadow: 1px 0 var(--green-bright), -1px 0 rgba(0, 200, 255, 0.5);
    transform: translateX(0.5px);
  }
}

/* Tagline typewriter cursor */
.tagline-cursor {
  display: inline;
  color: var(--green);
  font-weight: 300;
  animation: cursorBlink 0.6s step-end infinite;
  text-shadow: 0 0 10px var(--green-glow);
  margin-left: 2px;
}

.tagline-cursor.fade-out {
  animation: cursorFadeOut 0.5s ease forwards;
}

@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@keyframes cursorFadeOut {
  0% { opacity: 1; }
  100% { opacity: 0; }
}

.lede {
  font-size: 1.15rem;
  color: var(--text-dim);
  margin-bottom: 2.5rem;
  max-width: 65ch;
  line-height: 1.8;
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards 0.6s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===================== BUTTONS ===================== */
.hero-cta {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards 0.8s;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border: 1px solid var(--border);
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  border-radius: var(--radius-sm);
  position: relative;
  overflow: hidden;
}

.button::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 65, 0.1), transparent);
  transform: translateX(-100%);
  transition: transform 500ms ease;
}

.button:hover::before {
  transform: translateX(100%);
}

.button:hover {
  background: rgba(0, 255, 65, 0.15);
  border-color: var(--green);
  box-shadow: 0 0 30px var(--green-glow), inset 0 0 20px rgba(0, 255, 65, 0.1);
  transform: translateY(-2px);
}

.button.primary {
  background: linear-gradient(135deg, rgba(0, 255, 65, 0.2) 0%, rgba(0, 200, 50, 0.1) 100%);
  border-color: var(--green-dim);
}

/* Glowing Pulse Animation for Resume Button */
.button.glow-pulse {
  position: relative;
  animation: glowPulse 2s ease-in-out infinite;
  box-shadow: 
    0 0 10px var(--green-glow),
    0 0 20px rgba(0, 255, 65, 0.3),
    0 0 30px rgba(0, 255, 65, 0.2);
}

.button.glow-pulse::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  background: linear-gradient(45deg, transparent, var(--green), transparent);
  opacity: 0;
  animation: borderGlow 3s linear infinite;
  z-index: -1;
  filter: blur(8px);
}

@keyframes glowPulse {
  0%, 100% {
    box-shadow: 
      0 0 10px var(--green-glow),
      0 0 20px rgba(0, 255, 65, 0.3),
      0 0 30px rgba(0, 255, 65, 0.2);
    transform: scale(1);
  }
  50% {
    box-shadow: 
      0 0 20px var(--green-glow),
      0 0 40px rgba(0, 255, 65, 0.5),
      0 0 60px rgba(0, 255, 65, 0.3),
      0 0 80px rgba(0, 255, 65, 0.1);
    transform: scale(1.02);
  }
}

@keyframes borderGlow {
  0% {
    opacity: 0;
    transform: rotate(0deg);
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 0;
    transform: rotate(360deg);
  }
}

.button.glow-pulse:hover {
  animation: none;
  box-shadow: 
    0 0 30px var(--green-glow),
    0 0 60px rgba(0, 255, 65, 0.5),
    0 0 90px rgba(0, 255, 65, 0.3);
  transform: translateY(-3px) scale(1.05);
}

/* ===================== STATS ===================== */
.hero-meta {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards 1s;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat strong {
  font-size: 2rem;
  color: var(--green);
  text-shadow: 0 0 20px var(--green-glow);
}

.stat p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ===================== SECTIONS ===================== */
.section {
  padding: 6rem 0;
  position: relative;
}

.section-heading {
  margin-bottom: 3rem;
}

.section-title {
  font-size: 1.6rem;
  color: var(--green);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-shadow: 0 0 20px var(--green-glow);
}

.section-title .prompt-symbol {
  color: var(--text-muted);
  font-weight: 400;
}



/* ===================== GIT LOG / EXPERIENCE ===================== */
.git-log {
  display: grid;
  gap: 0;
}

.commit {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 1.25rem;
  padding-bottom: 2.75rem;
  position: relative;
}

.commit:last-child {
  padding-bottom: 0;
}

.commit-rail {
  position: relative;
}

.commit-rail::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 26px;
  bottom: -30px;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(to bottom, var(--border-bright), rgba(0, 255, 65, 0.1));
}

.commit:last-child .commit-rail::before {
  display: none;
}

.commit-node {
  position: absolute;
  left: 50%;
  top: 6px;
  width: 14px;
  height: 14px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--green);
  box-shadow: 0 0 12px var(--green-glow), inset 0 0 6px rgba(0, 255, 65, 0.5);
}

.commit:first-child .commit-node {
  background: var(--green);
  box-shadow: 0 0 18px var(--green-glow);
}

.commit-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: baseline;
  margin-bottom: 0.4rem;
}

.commit-hash {
  color: var(--green-bright);
  font-weight: 600;
  text-shadow: 0 0 12px var(--green-glow);
}

.commit-ref {
  color: var(--white);
  opacity: 0.75;
}

.timeframe {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.commit-subject {
  font-size: 1.25rem;
  color: var(--green);
  margin-bottom: 0.15rem;
}

.commit .org {
  color: var(--text-dim);
  font-size: 0.95rem;
  margin-bottom: 0.6rem;
}

.commit-toggle {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.6rem;
  margin-left: -0.6rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 250ms ease;
}

.commit-toggle:hover {
  color: var(--green);
  background: rgba(0, 255, 65, 0.07);
  border-color: var(--glass-border);
  text-shadow: 0 0 12px var(--green-glow);
}

.ct-icon {
  display: inline-block;
  width: 1ch;
  color: var(--green);
}

.commit-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 450ms cubic-bezier(0.4, 0, 0.2, 1);
}

.commit-body.open {
  grid-template-rows: 1fr;
}

.commit-body-wrap {
  overflow: hidden;
  min-height: 0;
}

.commit-body-inner {
  margin-top: 1rem;
  padding: 1.75rem 2rem;
  background: linear-gradient(
    135deg,
    rgba(0, 40, 0, 0.4) 0%,
    rgba(0, 20, 0, 0.2) 50%,
    rgba(0, 40, 0, 0.3) 100%
  );
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 var(--glass-highlight);
}

.commit-body .body-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

.commit-body .body-text ul {
  list-style: none;
  padding: 0;
}

.commit-body .body-text li {
  margin-bottom: 8px;
}

.commit-body .body-text li:last-child {
  margin-bottom: 0;
}

.tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tag {
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  font-size: 0.75rem;
  color: var(--text-dim);
  background: rgba(0, 255, 65, 0.05);
  transition: all 200ms ease;
}

.tag:hover {
  border-color: var(--green);
  color: var(--green);
  background: rgba(0, 255, 65, 0.1);
}

/* ===================== PROJECT SHOWCASES ===================== */
.project-showcases {
  display: flex;
  flex-direction: column;
}

.project-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3.5rem;
  align-items: center;
  padding: 3.5rem 0;
  border-top: 1px solid rgba(0, 255, 65, 0.08);
  position: relative;
}

.project-showcase:first-child {
  border-top: none;
  padding-top: 0.5rem;
}

.project-showcase:nth-child(even) .ps-demo {
  order: -1;
}

.ps-head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.ps-num {
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1;
  color: rgba(0, 255, 65, 0.14);
  text-shadow: 0 0 24px rgba(0, 255, 65, 0.12);
  user-select: none;
}

.ps-eyebrow {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.ps-title {
  font-size: 1.8rem;
  color: var(--green);
  text-shadow: 0 0 24px var(--green-glow);
  margin-bottom: 0.9rem;
  letter-spacing: -0.01em;
}

.ps-title:hover {
  animation: textGlitch 0.3s ease;
}

.ps-desc {
  font-size: 0.95rem;
  color: var(--text-dim);
  line-height: 1.75;
  margin-bottom: 1.1rem;
  max-width: 52ch;
}

.ps-syn {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

/* "$ man <project>" read-more button */
/* Honeypot — visually gone, still in the form for bots to trip on */
.cf-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.ps-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.ps-link {
  display: inline-flex;
  align-items: center;
  font-size: 0.82rem;
  color: var(--green-dim);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.75rem;
  transition: all 0.25s ease;
}

.ps-link:hover {
  color: var(--green-bright);
  border-color: var(--glass-border);
  background: rgba(0, 255, 65, 0.06);
  text-shadow: 0 0 12px var(--green-glow);
}

.ps-man-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--green);
  background: rgba(0, 255, 65, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 0.6rem 1rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.ps-man-btn::after {
  content: '↵';
  color: var(--text-muted);
  transition: color 0.25s ease;
}

.ps-man-btn:hover {
  border-color: var(--green);
  background: rgba(0, 255, 65, 0.1);
  text-shadow: 0 0 12px var(--green-glow);
  box-shadow: 0 0 20px rgba(0, 255, 65, 0.12);
}

.ps-man-btn:hover::after {
  color: var(--green);
}

.ps-meters {
  margin-bottom: 1.25rem;
  max-width: 420px;
}
/* Mini demo terminal */
.ps-demo .terminal-window {
  transition: box-shadow 0.6s ease, border-color 0.6s ease;
}

.project-showcase.in-view .ps-demo .terminal-window {
  border-color: var(--border-bright);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.45),
    0 0 40px rgba(0, 255, 65, 0.08),
    inset 0 1px 0 var(--glass-highlight);
}

.ps-term-body {
  height: 300px;
  padding: 1.1rem 1.3rem;
  font-size: 0.8rem;
  line-height: 1.7;
  overflow: hidden;
  position: relative;
}

.ps-term-body .tl {
  color: var(--text-dim);
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
}

.ps-term-body .tl.cmd { color: var(--green); text-shadow: 0 0 10px var(--green-glow); }
.ps-term-body .tl.ok { color: var(--green-bright); }
.ps-term-body .tl.muted { color: var(--text-muted); }
.ps-term-body .tl.err { color: var(--white); }

.ps-cursor {
  display: inline-block;
  width: 0.55em;
  height: 1em;
  background: var(--green);
  vertical-align: text-bottom;
  margin-left: 2px;
  animation: psBlink 1.1s steps(2) infinite;
  box-shadow: 0 0 8px var(--green-glow);
}

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

/* The hidden attribute must beat component display rules (display:flex on an
   overlay otherwise keeps it live and swallowing clicks while invisible). */
[hidden] {
  display: none !important;
}

/* ===================== MAN-PAGE OVERLAY ===================== */
#man-overlay {
  position: fixed;
  inset: 0;
  z-index: 10002;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(2, 8, 2, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.25s ease;
}

#man-overlay.visible {
  opacity: 1;
}

.man-window {
  width: min(860px, 100%);
  max-height: min(86vh, 780px);
  display: flex;
  flex-direction: column;
  background: rgba(2, 12, 2, 0.96);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius);
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.65),
    0 0 50px rgba(0, 255, 65, 0.12);
  transform: translateY(14px) scale(0.98);
  transition: transform 0.25s ease;
}

#man-overlay.visible .man-window {
  transform: translateY(0) scale(1);
}

.man-body {
  overflow-y: auto;
  padding: 1.75rem 2rem 2rem;
}

/* Staggered section reveal while the overlay opens */
.man-sec {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s ease var(--d, 0ms), transform 0.45s ease var(--d, 0ms);
}

#man-overlay.visible .man-sec {
  opacity: 1;
  transform: none;
}

/* Classic troff triple header: NAME(1)  User Commands  NAME(1) */
.man-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  padding-bottom: 0.9rem;
  margin-bottom: 1.4rem;
  border-bottom: 1px solid rgba(0, 255, 65, 0.1);
}

.man-body .man-h {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  color: var(--text-muted);
  margin: 1.5rem 0 0.45rem;
}

.man-body .man-sec:first-child .man-h,
.man-body .man-sec:nth-child(2) .man-h {
  margin-top: 0;
}

.man-body .man-name {
  font-size: 1.35rem;
  color: var(--green);
  text-shadow: 0 0 20px var(--green-glow);
}

.man-name-cat {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-shadow: none;
}

.man-code {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--green-bright);
  background: rgba(0, 255, 65, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  overflow-x: auto;
  white-space: pre;
}

.man-meters {
  display: grid;
  gap: 0.6rem;
  max-width: 480px;
}

#man-overlay.visible .man-meters .meter-fill {
  width: var(--w);
}

.man-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.man-chips .chip-static {
  cursor: default;
}

.man-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.man-link {
  padding: 0.5rem 1rem;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  background: rgba(0, 255, 65, 0.05);
  transition: all 250ms ease;
}

.man-link:hover {
  border-color: var(--green);
  background: rgba(0, 255, 65, 0.12);
  box-shadow: 0 0 16px rgba(0, 255, 65, 0.2);
}

.man-seealso .man-see {
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--green-dim);
  cursor: pointer;
  transition: color 200ms ease;
}

.man-seealso .man-see:hover {
  color: var(--green-bright);
  text-decoration: underline;
  text-shadow: 0 0 12px var(--green-glow);
}

.man-sep {
  color: var(--text-muted);
}

/* less-style status line pinned under the scroll area */
.man-status {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 2rem;
  font-size: 0.72rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(0, 255, 65, 0.12);
  background: rgba(0, 255, 65, 0.04);
  border-radius: 0 0 var(--radius) var(--radius);
}

.man-body .man-p {
  font-size: 0.92rem;
  color: var(--text-dim);
  line-height: 1.8;
}

.man-body .man-syn {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.man-body .man-footer {
  margin-top: 1.75rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 255, 65, 0.1);
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  #man-overlay {
    padding: 0.75rem;
  }
  
  .man-body {
    padding: 1.25rem 1.25rem 1.5rem;
  }
}

.terminal-window {
  background: linear-gradient(
    160deg,
    rgba(0, 50, 0, 0.35) 0%,
    rgba(0, 20, 0, 0.25) 40%,
    rgba(0, 40, 0, 0.3) 100%
  );
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 var(--glass-highlight);
  overflow: hidden;
}

.term-titlebar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1.1rem;
  border-bottom: 1px solid var(--glass-border);
  background: rgba(0, 15, 0, 0.45);
}

.term-dots {
  display: flex;
  gap: 6px;
}

.term-dots i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(0, 255, 65, 0.15);
  border: 1px solid var(--glass-border);
}

.term-dots i:first-child {
  background: rgba(0, 255, 65, 0.55);
}

.term-title {
  flex: 1;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.meter {
  display: grid;
  grid-template-columns: 10ch 1fr auto;
  gap: 1rem;
  align-items: center;
  margin: 0.35rem 0;
}

.meter-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.meter-track {
  height: 6px;
  background: rgba(0, 255, 65, 0.1);
  border: 1px solid rgba(0, 255, 65, 0.2);
  border-radius: 3px;
  overflow: hidden;
}

.meter-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--green-dim), var(--green), var(--green-bright));
  box-shadow: 0 0 8px var(--green-glow);
  transition: width 900ms cubic-bezier(0.22, 1, 0.36, 1) 200ms;
}

.project-showcase.in-view .meter-fill {
  width: var(--w, 0%);
}

.meter-val {
  font-size: 0.8rem;
  color: var(--green-bright);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green-glow);
  animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
  50% { opacity: 0.4; }
}

/* ===================== TECH STACK ===================== */
.stack-bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
}

.bento-tile {
  grid-column: span var(--span, 3);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: 1.5rem 1.6rem 1.6rem;
  background: linear-gradient(
    150deg,
    rgba(0, 42, 0, 0.38) 0%,
    rgba(0, 18, 0, 0.22) 100%
  );
  backdrop-filter: blur(16px) saturate(130%);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 var(--glass-highlight);
  transition: border-color 350ms ease, box-shadow 350ms ease;
}

.bento-tile:hover {
  border-color: var(--border-bright);
  box-shadow:
    0 18px 50px rgba(0, 255, 65, 0.08),
    0 4px 20px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 var(--glass-highlight);
}

.bt-head {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(0, 255, 65, 0.1);
}

.bt-num {
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(0, 255, 65, 0.3);
  transition: color 350ms ease;
  user-select: none;
}

.bento-tile:hover .bt-num {
  color: var(--green);
}

.bt-name {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--green);
}

.bt-count {
  margin-left: auto;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.bt-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Technology chip: brand mark + name, click to pin its usage trace */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.75rem;
  background: rgba(0, 255, 65, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
  cursor: pointer;
  transition: color 220ms ease, border-color 220ms ease, background 220ms ease, transform 220ms ease;
}

.chip:hover {
  color: var(--green);
  border-color: var(--border-bright);
  background: rgba(0, 255, 65, 0.09);
  transform: translateY(-2px);
}

.chip.pinned {
  color: var(--green-bright);
  border-color: var(--green);
  background: rgba(0, 255, 65, 0.13);
  box-shadow: 0 0 18px rgba(0, 255, 65, 0.15);
}

/* Chips for tech that appears in a listed project/role get a lit left edge */
.chip-shipped {
  border-left: 2px solid var(--green-dim);
}

.chip-logo {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.75;
  transition: opacity 220ms ease;
}

.chip:hover .chip-logo,
.chip.pinned .chip-logo {
  opacity: 1;
}

.chip-mono {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--text-muted);
  border: 1px solid var(--glass-border);
  border-radius: 3px;
  transition: color 220ms ease, border-color 220ms ease;
}

.chip:hover .chip-mono,
.chip.pinned .chip-mono {
  color: var(--green);
  border-color: var(--border-bright);
}

.chip-name {
  white-space: nowrap;
}

/* Usage trace line under the grid */
.stack-trace {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  min-height: 2.75rem;
  margin-top: 1.25rem;
  padding: 0.7rem 1.1rem;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  background: rgba(0, 15, 0, 0.3);
  font-size: 0.8rem;
}

.tr-hint {
  color: var(--text-muted);
}

.tr-tech {
  color: var(--green-bright);
  font-weight: 600;
  text-shadow: 0 0 12px var(--green-glow);
}

.tr-sep {
  color: var(--text-muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.tr-ref {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-dim);
  border: 1px solid var(--glass-border);
  border-radius: 4px;
  padding: 0.2rem 0.55rem;
}

.tr-ref em {
  font-style: normal;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

/* ===================== ABOUT ===================== */
.section.about {
  padding: 6rem 0;
}

.about-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: start;
}

.about-prose {
  grid-column: span 2;
}

@media (max-width: 900px) {
  .about-layout {
    grid-template-columns: 1fr;
  }
  
  .about-prose {
    grid-column: auto;
  }
}

.panel {
  padding: 2rem;
  /* Liquid glass */
  background: linear-gradient(
    150deg,
    rgba(0, 45, 0, 0.4) 0%,
    rgba(0, 20, 0, 0.25) 50%,
    rgba(0, 35, 0, 0.35) 100%
  );
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 var(--glass-highlight);
  transition: all 400ms cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.panel:hover {
  border-color: var(--border-bright);
  transform: translateY(-4px) rotateX(2deg);
  box-shadow: 
    0 20px 50px rgba(0, 255, 65, 0.1),
    0 8px 32px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 var(--glass-highlight);
}

.panel h3 {
  font-size: 1.1rem;
  color: var(--green);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.panel h3::before {
  content: '//';
  color: var(--text-muted);
}

.panel .body-text {
  font-size: 0.95rem;
  color: var(--text-dim);
  margin-bottom: 1rem;
  line-height: 1.7;
}

/* Lead paragraph carries the About section's opening claim.
   Specificity must beat `.panel .body-text` (0,2,0). */
.about-prose .lead-text {
  font-size: 1.05rem;
  color: var(--green);
  line-height: 1.75;
  text-wrap: pretty;
}

/* ---- status.log terminal ---- */
.log-window {
  display: flex;
  flex-direction: column;
}

.log-window .status-dot {
  flex-shrink: 0;
}

.log-body {
  padding: 1.1rem 1.25rem 1.25rem;
  font-size: 0.8rem;
}

.log-cmd {
  color: var(--green);
  margin-bottom: 0.85rem;
  text-shadow: 0 0 10px var(--green-glow);
  word-break: break-word;
}

.log-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.log-list li {
  display: grid;
  grid-template-columns: 5.5ch 1fr;
  gap: 0.85rem;
  align-items: baseline;
  line-height: 1.65;
  transition: color 200ms ease;
}

.log-level {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.lvl-focus { color: var(--green); }
.lvl-learn { color: var(--green-dim); }
.lvl-open {
  color: var(--green-bright);
  text-shadow: 0 0 12px var(--green-glow);
}

.log-msg {
  color: var(--text-dim);
  transition: color 200ms ease;
}

.log-list li:hover .log-msg {
  color: var(--green);
}

.log-tail {
  margin-top: 0.9rem;
}

.fact-list {
  list-style: none;
}

.fact-list li {
  font-size: 0.9rem;
  color: var(--text-dim);
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(0, 255, 65, 0.08);
  transition: all 200ms ease;
}

.fact-list li:last-child {
  border-bottom: none;
}

.fact-list li::before {
  content: '> ';
  color: var(--green-dim);
}

.fact-list li:hover {
  color: var(--green);
  padding-left: 0.5rem;
}

/* ===================== CONTACT ===================== */
.contact-card {
  padding: 3rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
  /* Liquid glass */
  background: linear-gradient(
    135deg,
    rgba(0, 50, 0, 0.4) 0%,
    rgba(0, 25, 0, 0.25) 50%,
    rgba(0, 45, 0, 0.35) 100%
  );
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: 
    0 8px 40px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 var(--glass-highlight);
}

.contact-card .prompt {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.contact-card h2 {
  font-size: 1.8rem;
  color: var(--green);
  margin-bottom: 0.5rem;
  text-shadow: 0 0 30px var(--green-glow);
}

.contact-card .body-text {
  color: var(--text-dim);
  font-size: 1rem;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-links a {
  padding: 0.85rem 1.5rem;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  text-align: center;
  background: rgba(0, 255, 65, 0.05);
  transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-links a:hover {
  border-color: var(--green);
  background: rgba(0, 255, 65, 0.15);
  transform: translateX(4px);
  box-shadow: 0 0 20px var(--green-glow);
}

/* ===================== FOOTER ===================== */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2.5rem 0;
  margin-top: 2rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-top: 1px solid var(--glass-border);
}

.status-ok {
  color: var(--green-dim);
}

.footer-links {
  display: flex;
  gap: 2rem;
}

/* ===================== CUSTOM CURSOR ===================== */
body.cursor-hidden {
  cursor: none;
}

body.cursor-hidden a,
body.cursor-hidden button {
  cursor: none;
}

#cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  border: 2px solid var(--green);
  border-radius: 50%;
  background: transparent;
  pointer-events: none;
  transform: translate(-50%, -50%);
  opacity: 0;
  z-index: 10010; /* above the terminal (10001) and man overlay (10002) */
  transition: opacity 200ms ease, transform 200ms ease, width 200ms ease, height 200ms ease, background 200ms ease;
  box-shadow: 0 0 15px var(--green-glow);
}

#cursor.cursor-hover {
  width: 40px;
  height: 40px;
  background: rgba(0, 255, 65, 0.1);
  border-color: var(--green-bright);
}

/* JS tilt writes CSS vars; GSAP and :hover keep ownership of transform */
.panel {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
}

.panel.tilting {
  transform: perspective(1000px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateY(-8px) scale(1.02);
}

.button {
  --mag-x: 0px;
  --mag-y: 0px;
}

.button.magnetic {
  transform: translate(var(--mag-x), var(--mag-y));
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 768px) {
  .page-shell {
    padding: 0 1.25rem;
  }
  
  /* Navigation - compact pill */
  .nav {
    padding: 0.45rem 0.75rem;
    margin: 0.75rem auto 0;
    max-width: calc(100vw - 1rem);
    gap: 0.3rem;
  }
  
  .nav-logo {
    font-size: 0.95rem;
    margin-right: 0.75rem;
  }
  
  .nav-links {
    gap: 0.15rem;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  
  .nav-links::-webkit-scrollbar {
    display: none;
  }
  
  /* ≥44px tap targets */
  .nav-links a {
    font-size: 0.75rem;
    padding: 0.75rem 0.85rem;
    flex: 0 0 auto;
  }
  
  /* Hero Section */
  .hero {
    padding: 5rem 0 3rem;
    min-height: auto;
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
  
  .hero-content {
    max-width: 100%;
  }
  
  .hero-image-container {
    order: -1;
    margin-bottom: 1rem;
    margin-right: 0;
  }
  
  .hero-image-wrapper {
    width: 180px;
    height: 180px;
    margin: 0 auto;
  }
  
  .prompt {
    font-size: 0.85rem;
  }
  
  .headline {
    font-size: 2.2rem;
    margin-bottom: 1rem;
  }
  
  .hero-tagline {
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: 1rem;
  }
  
  .lede {
    font-size: 1rem;
    margin-bottom: 2rem;
  }
  
  .hero-cta {
    justify-content: center;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
  }
  
  .hero-cta .button {
    width: 100%;
    max-width: 250px;
    justify-content: center;
  }
  
  .hero-meta {
    flex-direction: row;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
  }
  
  .stat {
    text-align: center;
  }
  
  /* Sections */
  .section {
    padding: 3rem 0;
  }
  
  .section-title {
    font-size: 1.3rem;
  }
  
  /* Timeline + projects mobile rules live with their components at end of file */
  
  /* Stack bento */
  .stack-bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }
  
  .bento-tile {
    grid-column: span 2;
    padding: 1.25rem;
    gap: 0.9rem;
  }
  
  .chip {
    padding: 0.5rem 0.7rem;
    font-size: 0.75rem;
  }
  
  .stack-trace {
    font-size: 0.75rem;
  }
  
  /* About Section */
  .about-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .log-body {
    padding: 1rem;
    font-size: 0.76rem;
  }
  
  .panel {
    padding: 1.5rem;
  }
  
  /* Contact */
  .contact-card {
    grid-template-columns: 1fr;
    padding: 1.5rem;
    text-align: center;
  }
  
  .contact-card h2 {
    font-size: 1.5rem;
  }
  
  #contact-links {
    justify-content: center;
  }
  
  /* Footer */
  .footer {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    padding: 2rem 0;
  }
  
  /* Scroll Progress Pill */
  #scroll-progress {
    padding: 0.5rem 1rem;
    gap: 0.5rem;
    bottom: 1rem;
  }
  
  #scroll-progress .scroll-bar-container {
    width: 56px;
  }
  
  .scroll-filename {
    font-size: 0.65rem;
    max-width: 110px;
  }
  
  .scroll-percent {
    font-size: 0.65rem;
  }
  
  /* Sound Toggle — keep the 44px minimum tap target */
  #sound-toggle {
    width: 44px;
    height: 44px;
    bottom: 1rem;
    left: 1rem;
  }
  
  /* Matrix rain - lighter on mobile for performance */
  #matrix-bg {
    opacity: 0.4;
  }
}

/* Extra small screens */
@media (max-width: 480px) {
  .nav {
    padding: 0.5rem 0.75rem;
  }
  
  .nav-logo {
    font-size: 0.85rem;
    margin-right: 0.5rem;
  }
  
  .nav-links a {
    font-size: 0.7rem;
    padding: 0.7rem 0.65rem;
  }
  
  .headline {
    font-size: 1.8rem;
  }
  
  .hero-tagline {
    font-size: 1rem;
  }
  
  .hero-image-wrapper {
    width: 150px;
    height: 150px;
  }
  
  .stack-bento {
    grid-template-columns: 1fr;
  }
  
  .hero-meta {
    gap: 1.5rem;
  }
  
  .stat strong {
    font-size: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  
  body::before,
  .grid-overlay,
  .glow-orbs {
    display: none;
  }
}

/* ===================== KEYBOARD FOCUS ===================== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}

.ls-row:focus-visible {
  outline-offset: -2px;
}

/* ===================== THEMED SCROLLBAR ===================== */
html {
  scrollbar-color: rgba(0, 255, 65, 0.35) #050505;
  scrollbar-width: thin;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #050505;
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 255, 65, 0.25);
  border-radius: 5px;
  border: 2px solid #050505;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 255, 65, 0.45);
}

/* Hold the hero entrance stagger until the boot screen lifts */
body.loading .prompt,
body.loading .headline,
body.loading .lede,
body.loading .hero-cta,
body.loading .hero-meta,
body.loading .hero-image-container {
  animation-play-state: paused;
}

/* Tagline: hidden sizer reserves the exact final height; typed text overlays it (no layout shift) */
.tagline-sizer {
  visibility: hidden;
}

.tagline-live {
  position: absolute;
  inset: 0;
}

/* ===================== TERMINAL LAUNCHER ===================== */
#term-launch {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9998;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  padding: 0.7rem 1rem;
  border-radius: 50px;
  background: linear-gradient(
    135deg,
    rgba(0, 30, 0, 0.85) 0%,
    rgba(0, 15, 0, 0.9) 100%
  );
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  color: var(--green);
  font-family: var(--font-mono);
  cursor: pointer;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(0, 255, 65, 0.1);
  transition: all 0.3s ease;
}

#term-launch:hover {
  border-color: var(--green);
  box-shadow: 0 0 25px var(--green-glow);
  transform: translateY(-2px);
}

.term-launch-glyph {
  font-weight: 700;
  font-size: 0.95rem;
  text-shadow: 0 0 12px var(--green-glow);
}

#term-launch kbd {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  border: 1px solid var(--glass-border);
  border-radius: 4px;
  padding: 0.15rem 0.4rem;
  background: rgba(0, 255, 65, 0.05);
}

body.loading #term-launch {
  opacity: 0;
  visibility: hidden;
}

body:not(.loading) #term-launch {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.8s ease 0.3s;
}

/* ===================== INTERACTIVE TERMINAL OVERLAY ===================== */
#terminal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10001;
  pointer-events: none;
}

#terminal-overlay .term-window {
  position: absolute;
  right: 2rem;
  bottom: 2rem;
  width: min(560px, calc(100vw - 2rem));
  height: min(420px, 70vh);
  display: flex;
  flex-direction: column;
  pointer-events: auto;
  background: rgba(2, 10, 2, 0.92);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius);
  box-shadow: 
    0 30px 80px rgba(0, 0, 0, 0.6),
    0 0 40px rgba(0, 255, 65, 0.15);
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

#terminal-overlay.visible .term-window {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.term-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  transition: color 0.2s ease;
}

.term-close:hover {
  color: var(--green-bright);
}

.term-out {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.1rem;
  font-size: 0.82rem;
  line-height: 1.65;
}

.term-out .tl {
  color: var(--text-dim);
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
}

.term-out .tl.cmd { color: var(--green); }
.term-out .tl.ok { color: var(--green-bright); }
.term-out .tl.muted { color: var(--text-muted); }
.term-out .tl.err { color: var(--white); }

.term-input-line {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.1rem;
  border-top: 1px solid var(--glass-border);
}

.term-prompt {
  font-size: 0.8rem;
  color: var(--green);
  white-space: nowrap;
  text-shadow: 0 0 10px var(--green-glow);
}

#term-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--green-bright);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  caret-color: var(--green);
}

/* ===================== NEOFETCH PANEL ===================== */
.neofetch-panel {
  grid-column: 1 / -1;
}

.nf-layout {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.nf-ascii {
  font-family: var(--font-mono);
  font-size: 8px;
  line-height: 1.05;
  color: var(--green);
  text-shadow: 0 0 6px rgba(0, 255, 65, 0.35);
  user-select: none;
  margin: 0;
}

.nf-info {
  flex: 1;
  min-width: 260px;
  font-size: 0.85rem;
}

.nf-user {
  color: var(--green-bright);
  font-weight: 700;
  font-size: 1rem;
  text-shadow: 0 0 14px var(--green-glow);
}

.nf-at {
  color: var(--text-muted);
  font-weight: 400;
}

.nf-sep {
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.nf-row {
  color: var(--text-dim);
  padding: 0.12rem 0;
}

.nf-key {
  display: inline-block;
  min-width: 12ch;
  color: var(--green);
  font-weight: 600;
}

.nf-palette {
  display: flex;
  gap: 4px;
  margin-top: 0.9rem;
}

.nf-palette span {
  width: 22px;
  height: 12px;
  border-radius: 2px;
  background: var(--green);
}

/* ===================== CONTRIBUTION GRAPH ===================== */
.contrib-panel {
  grid-column: 1 / -1;
}

.contrib-scroll {
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.contrib-grid {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(7, 10px);
  gap: 3px;
  width: max-content;
}

.cl {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: rgba(0, 255, 65, 0.07);
}

.cl[data-l="1"] { background: rgba(0, 255, 65, 0.25); }
.cl[data-l="2"] { background: rgba(0, 255, 65, 0.45); }
.cl[data-l="3"] { background: rgba(0, 255, 65, 0.7); }
.cl[data-l="4"] { background: var(--green-bright); box-shadow: 0 0 5px var(--green-glow); }

.contrib-legend {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

.contrib-legend .cl {
  display: inline-block;
}

/* ===================== CONTACT COMMAND FORM ===================== */
.contact-card {
  align-items: start;
}

.contact-links {
  align-self: center;
}

.cmd-form {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.9rem;
  max-width: 560px;
}

.cmd-field {
  display: grid;
  grid-template-columns: 7ch 1fr;
  gap: 1rem;
  align-items: start;
}

.cmd-field label {
  font-size: 0.85rem;
  color: var(--green-dim);
  padding-top: 0.7rem;
}

.cmd-field input,
.cmd-field textarea {
  width: 100%;
  background: rgba(0, 15, 0, 0.35);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--green-bright);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  padding: 0.7rem 0.9rem;
  caret-color: var(--green);
  resize: vertical;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.cmd-field input::placeholder,
.cmd-field textarea::placeholder {
  color: rgba(0, 255, 65, 0.35);
}

.cmd-field input:focus,
.cmd-field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 18px rgba(0, 255, 65, 0.15);
}

.cmd-exec-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.cmd-note {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.cmd-note.cmd-error {
  color: var(--white);
}

/* ===================== NEW COMPONENTS — MOBILE ===================== */
@media (max-width: 768px) {
  .commit {
    grid-template-columns: 18px 1fr;
    gap: 0.85rem;
    padding-bottom: 2rem;
  }
  
  .commit-subject {
    font-size: 1.1rem;
  }
  
  .commit-body-inner {
    padding: 1.25rem;
  }
  
  .project-showcase {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 2.5rem 0;
  }
  
  .project-showcase:nth-child(even) .ps-demo {
    order: 0; /* demo always below info on mobile */
  }
  
  .ps-num {
    font-size: 2.4rem;
  }
  
  .ps-title {
    font-size: 1.4rem;
  }
  
  .ps-term-body {
    height: 240px;
    padding: 0.9rem 1rem;
    font-size: 0.72rem;
  }
  
  .meter {
    grid-template-columns: 9ch 1fr auto;
    gap: 0.6rem;
  }
  
  .nf-layout {
    gap: 1.5rem;
  }
  
  .nf-ascii {
    font-size: 6px;
  }
  
  .cmd-form {
    text-align: left;
    margin-left: auto;
    margin-right: auto;
  }
  
  .cmd-field {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }
  
  .cmd-field label {
    padding-top: 0;
  }
  
  #term-launch {
    bottom: 4.25rem;
    right: 1rem;
    padding: 0.6rem 0.8rem;
  }
  
  #term-launch kbd {
    display: none;
  }
  
  #terminal-overlay .term-window {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
    width: auto;
    height: min(420px, 62vh);
  }
  
  /* Perf: lighter glass on small screens */
  .commit-body-inner,
  .terminal-window,
  .bento-tile,
  .panel,
  .contact-card {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
}

