:root {
  /* Premium Dark Theme Palette */
  --bg-void: #050505;
  --bg-panel: rgba(24, 24, 27, 0.4);
  --bg-panel-hi: rgba(39, 39, 42, 0.6);
  --hairline: rgba(255, 255, 255, 0.08);
  --hairline-hi: rgba(255, 255, 255, 0.15);

  --text-primary: #FAFAFA;
  --text-muted: #A1A1AA;
  --text-dim: #71717A;

  --signal: #10B981; /* Emerald */
  --signal-glow: rgba(16, 185, 129, 0.2);
  --warn: #F59E0B;
  --warn-glow: rgba(245, 158, 11, 0.2);
  --planned: #71717A;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Expanded maximum width for modern large desktop monitors */
  --max-w: 1400px; 
  --edge: clamp(24px, 5vw, 64px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* Prevent global horizontal scrolling */
html, body {
  overflow-x: clip; 
  width: 100%;
}

body {
  background: var(--bg-void);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* Ultra-fine, premium grid background */
body::before {
  content: "";
  position: fixed; inset: 0;
  background-image:
      linear-gradient(var(--hairline) 1px, transparent 1px),
      linear-gradient(90deg, var(--hairline) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.5;
  pointer-events: none;
  z-index: -1;
}

/* Global Ambient Cursor Glow */
body::after {
  content: "";
  position: fixed; 
  top: 0; left: 0; 
  width: 100%; 
  height: 100vh;
  background: radial-gradient(
    circle at var(--cursor-x, 50vw) var(--cursor-y, 50vh), 
    rgba(16, 185, 129, 0.15) 0%, 
    transparent 420px
  );
  pointer-events: none;
  z-index: -1;
}

/* Interactive Infrastructure Canvas */
#node-network {
  position: fixed;
  top: 0; left: 0;
  width: 100%; 
  height: 100vh;
  z-index: -2; 
  pointer-events: none;
  opacity: 0.6; 
}

a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
::selection { background: var(--signal-glow); color: var(--text-primary); }

.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--edge); }

.eyebrow {
  font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted);
  display: flex; align-items: center; gap: 10px; margin-bottom: 16px;
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px;
  background: var(--signal); border-radius: 50%;
  box-shadow: 0 0 10px var(--signal);
}

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

/* ============ NAV ============ */
header.nav {
  position: sticky; top: 0; z-index: 50;
  height: 57px; /* Locked height for mobile menu alignment */
  background: rgba(5, 5, 5, 0.7);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 16px var(--edge);
  display: flex; align-items: center; justify-content: space-between;
}
.nav-brand { font-family: var(--font-mono); font-size: 0.9rem; font-weight: 600; }
.nav-brand span { color: var(--signal); }
.nav-links { display: flex; gap: 32px; font-family: var(--font-mono); font-size: 0.8rem; list-style: none; }
.nav-links a { color: var(--text-muted); }
.nav-links a:hover { color: var(--text-primary); }
.nav-toggle { display: none; }

section { position: relative; z-index: 1; padding: 112px 0; }
section + section { border-top: 1px solid var(--hairline); }

.section-head { margin-bottom: 56px; }
.section-head h2 { font-size: clamp(2rem, 4vw, 2.5rem); }
.section-head p { color: var(--text-muted); margin-top: 12px; max-width: 60ch; font-size: 1.05rem; }

/* ============ HERO ============ */
.hero { padding-top: 88px; }
.hero-grid { 
  display: grid; 
  /* Uses flexible fractions instead of rigid pixel locks */
  grid-template-columns: 1.2fr 0.9fr; 
  justify-content: space-between; 
  gap: 64px; 
  align-items: center; 
}

.hero h1 { font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.1; margin-bottom: 24px; }
.hero h1 .accent {
  background: linear-gradient(135deg, #34D399 0%, #059669 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lede { color: var(--text-muted); font-size: 1.1rem; max-width: 52ch; margin-bottom: 40px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  font-family: var(--font-mono); font-size: 0.85rem; font-weight: 500;
  padding: 12px 24px; border-radius: 8px;
  display: inline-flex; align-items: center; gap: 8px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent; cursor: pointer;
}
.btn-primary { 
  background: var(--text-primary); color: var(--bg-void); 
  box-shadow: 0 0 0 1px rgba(255,255,255,0.1);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(255,255,255,0.15); }
.btn-ghost { color: var(--text-primary); border-color: var(--hairline); background: var(--bg-panel); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: var(--text-muted); background: var(--bg-panel-hi); transform: translateY(-2px); }

/* ============ STATUS PANEL ============ */
.status-panel {
  background: var(--bg-panel);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255,255,255,0.02);
  position: relative;
}
.status-panel::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--signal), transparent);
  opacity: 0.5;
}
.status-panel-head {
  padding: 16px 20px; border-bottom: 1px solid var(--hairline);
  font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-dim);
  display: flex; justify-content: space-between; align-items: center;
  text-transform: uppercase; letter-spacing: 0.05em; background: rgba(0,0,0,0.2);
}
.status-row {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 16px 20px; border-bottom: 1px solid var(--hairline);
  transition: background 0.2s ease;
}
.status-row:hover { background: rgba(255,255,255,0.02); }
.status-row:last-child { border-bottom: none; }

.dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; flex-shrink: 0; }
.dot.on { background: var(--signal); box-shadow: 0 0 12px var(--signal-glow); animation: pulse 2s infinite; }
.dot.building { background: var(--warn); box-shadow: 0 0 12px var(--warn-glow); }
.dot.planned { background: var(--planned); }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

.status-name { font-family: var(--font-mono); font-size: 0.85rem; font-weight: 500; color: var(--text-primary); }
.status-desc { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }
.status-tag {
  margin-left: auto; font-family: var(--font-mono); font-size: 0.65rem;
  padding: 4px 10px; border-radius: 99px; text-transform: uppercase; letter-spacing: 0.05em;
  white-space: nowrap; font-weight: 600;
}
.status-tag.on { color: var(--signal); background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.2); }
.status-tag.building { color: var(--warn); background: rgba(245, 158, 11, 0.1); border: 1px solid rgba(245, 158, 11, 0.2); }

.uptime { display: flex; gap: 3px; margin-top: 10px; }
.uptime i { display: block; width: 4px; height: 16px; border-radius: 2px; background: var(--hairline-hi); }
.uptime i.up { background: var(--signal); opacity: 0.9; }
.uptime i.warn { background: var(--warn); opacity: 0.9; }

/* ============ ABOUT ============ */
.about-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 64px; align-items: start; }
.about-body p { color: var(--text-muted); margin-bottom: 20px; font-size: 1.05rem; }
.about-body strong { color: var(--text-primary); font-weight: 500; }

.facts { display: flex; flex-direction: column; border: 1px solid var(--hairline); border-radius: 12px; background: var(--bg-panel); overflow: hidden; backdrop-filter: blur(10px); margin: 0; }
.fact { display: flex; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--hairline); }
.fact:last-child { border-bottom: none; }
.fact dt { font-family: var(--font-mono); color: var(--text-dim); font-size: 0.75rem; text-transform: uppercase; margin:0; }
.fact dd { color: var(--text-primary); font-weight: 500; font-size: 0.95rem; margin:0; text-align: right; }

/* ============ EXPERIENCE ============ */
.timeline { list-style: none; margin: 0; padding-left: 28px; border-left: 1px solid var(--hairline-hi); }
.tl-item { position: relative; padding-bottom: 48px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: -33px; top: 6px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--bg-void); border: 2px solid var(--signal);
  box-shadow: 0 0 10px var(--signal-glow);
}
.tl-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; margin-bottom: 4px; }
.tl-role { font-family: var(--font-display); font-size: 1.25rem; margin: 0; }
.tl-date { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-muted); }
.tl-org { color: var(--signal); font-size: 0.95rem; margin: 0 0 16px 0; font-weight: 500; }
.tl-list { list-style: none; display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; }
.tl-list li { color: var(--text-muted); font-size: 0.95rem; padding-left: 20px; position: relative; }
.tl-list li::before { content: "→"; position: absolute; left: 0; color: var(--text-dim); font-family: var(--font-mono); }

/* ============ PROJECTS ============ */
/* Fluid grid that naturally scales down without spilling over mobile screens */
.proj-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 24px; }
.proj-card {
  background: var(--bg-panel); backdrop-filter: blur(10px);
  border: 1px solid var(--hairline); border-radius: 12px; padding: 32px;
  display: flex; flex-direction: column;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden; 
}

.proj-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(
    circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
    rgba(16, 185, 129, 0.35) 0%, 
    transparent 50%
  );
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.proj-card:hover::before { opacity: 1; }
.proj-card:hover { 
  border-color: var(--hairline-hi); 
  transform: translateY(-4px); 
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.5), 0 0 20px rgba(16, 185, 129, 0.05);
}
.proj-card > * { position: relative; z-index: 1; }

.proj-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.proj-name { font-family: var(--font-display); font-size: 1.25rem; margin: 0; }
.proj-desc { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 24px; flex-grow: 1; }
.proj-stack { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px 0; padding: 0; }

.chip {
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 500;
  padding: 6px 12px; border-radius: 6px;
  background: rgba(255,255,255,0.03); color: var(--text-muted);
  border: 1px solid var(--hairline);
  transition: all 0.3s ease;
  cursor: default;
}
.chip:hover {
  transform: translateY(-3px);
  color: var(--signal);
  border-color: var(--signal);
  background: rgba(16, 185, 129, 0.1);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

/* ============ STACK ============ */
.stack-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.stack-group { background: var(--bg-panel); border: 1px solid var(--hairline); border-radius: 12px; padding: 24px; backdrop-filter: blur(10px); }
.stack-group-title { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-dim); margin: 0 0 16px 0; text-transform: uppercase; }
.stack-list { list-style: none; margin: 0; padding: 0; }
.stack-list li { font-size: 0.95rem; color: var(--text-primary); margin-bottom: 8px; }
.stack-list li span { color: var(--text-dim); font-family: var(--font-mono); font-size: 0.75rem; margin-left: 6px; }

/* ============ LISTS (CERTS) ============ */
.learn-list { display: flex; flex-direction: column; border: 1px solid var(--hairline); border-radius: 12px; background: var(--bg-panel); backdrop-filter: blur(10px); margin: 0; padding: 0; list-style: none; overflow: hidden;}
.learn-row { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-bottom: 1px solid var(--hairline); }
.learn-row:last-child { border-bottom: none; }
.learn-name { margin: 0; font-weight: 500; color: var(--text-primary); font-size: 0.95rem; }
.learn-desc { margin: 4px 0 0 0; color: var(--text-muted); font-size: 0.85rem; }

.verify-link {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.verify-link:hover { color: var(--signal); border-color: var(--hairline-hi); background: rgba(255, 255, 255, 0.02); }
.verify-link svg { width: 14px; height: 14px; transition: transform 0.2s ease; }
.verify-link:hover svg { transform: translateX(2px) translateY(-2px); }

/* ============ CONTACT ============ */
.contact-box {
  background: var(--bg-panel); border: 1px solid var(--hairline); border-radius: 16px;
  padding: 64px var(--edge); text-align: center; backdrop-filter: blur(10px);
}
.contact-box h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 16px; }
.contact-box p { color: var(--text-muted); margin-bottom: 32px; max-width: 48ch; margin-inline: auto; font-size: 1.05rem; }
.contact-links { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ============ FOOTER ============ */
footer { padding: 40px var(--edge); border-top: 1px solid var(--hairline); text-align: center; }
.footer-inner { max-width: var(--max-w); margin: 0 auto; font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-dim); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;}
.footer-status { display: flex; align-items: center; gap: 8px; }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

.skip-link {
  position: absolute; left: 16px; top: -60px;
  background: var(--text-primary); color: var(--bg-void);
  font-family: var(--font-mono); font-size: 0.8rem; font-weight: 600;
  padding: 10px 16px; border-radius: 6px; z-index: 100;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 16px; }

/* ============ PROJECT HEADER & GITHUB LINK ============ */
.github-link { color: #888; transition: color 0.2s ease, transform 0.2s ease; display: flex; padding: 4px; }
.github-link:hover { color: var(--signal); transform: translateY(-2px) scale(1.1); }
.github-link svg { width: 22px; height: 22px; fill: currentColor; }

/* ============ FILMSTRIP GALLERY & SCROLL BUTTONS ============ */
.filmstrip-wrapper { position: relative; }
.scroll-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 10;
  background: rgba(10, 10, 10, 0.7); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  color: #fff; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 50%;
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; opacity: 0; transition: opacity 0.3s ease, background-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}
.filmstrip-wrapper:hover .scroll-btn { opacity: 1; }
.scroll-btn:hover { background: var(--signal); color: #050505; transform: translateY(-50%) scale(1.1); }
.scroll-btn.prev { left: 4px; }
.scroll-btn.next { right: 4px; }

@media (hover: none) and (pointer: coarse) { .scroll-btn { display: none; } }

.filmstrip-container {
  margin: 16px 0; width: 100%;
  -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
  mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}
.filmstrip {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; padding: 4px 0;
}
.filmstrip::-webkit-scrollbar { display: none; }
.filmstrip img {
  height: 140px; width: 240px; object-fit: cover; border-radius: 6px;
  scroll-snap-align: center; flex-shrink: 0; border: 1px solid rgba(255,255,255,0.1);
  background: #111; transition: transform 0.3s ease, border-color 0.3s ease; cursor: zoom-in;
}
.filmstrip img:hover { transform: scale(1.02); border-color: rgba(255,255,255,0.3); }

/* ============ LIGHTBOX ============ */
.lightbox {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(5, 5, 5, 0.95); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.lightbox.active { opacity: 1; pointer-events: auto; }
.lightbox img {
  max-width: 90vw; max-height: 85vh; border-radius: 8px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transform: scale(0.95); transition: transform 0.3s ease; object-fit: contain;
}
.lightbox.active img { transform: scale(1); }
.lightbox-close {
  position: absolute; top: 24px; right: 24px;
  background: rgba(255, 255, 255, 0.1); border: 1px solid var(--hairline);
  color: var(--text-primary); width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.2s ease;
}
.lightbox-close:hover { background: var(--signal); color: #000; transform: scale(1.1); }

/* ============ TERMINAL EFFECTS ============ */
.typing-effect {
  font-family: var(--font-mono); text-transform: none; letter-spacing: normal;
  color: var(--signal); display: flex; align-items: center;
}
.typing-effect::before { display: none; }
.prompt { color: var(--text-dim); margin-right: 8px; }
.cursor {
  display: inline-block; width: 8px; height: 16px;
  background: var(--signal); margin-left: 4px;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.hacker-text { cursor: crosshair; }

/* --- Terminal Logs Footer --- */
.terminal-footer { justify-content: space-between; align-items: center; }
.log-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.log-timestamp { color: var(--text-muted); }
.log-level { color: var(--signal); font-weight: 600; }
.log-msg { color: var(--text-primary); }

/* --- Live Latency Ping --- */
.latency {
  font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-dim);
  margin-left: 12px; margin-right: auto; min-width: 40px;
}

/* --- CLI Contact Block --- */
.cli-box {
  background: #0a0a0a; border: 1px solid var(--hairline-hi); border-radius: 8px;
  padding: 16px 20px; margin: 24px auto 32px auto; max-width: fit-content;
  display: flex; align-items: center; gap: 16px; cursor: pointer;
  transition: all 0.2s ease; font-family: var(--font-mono); font-size: 0.9rem;
  box-shadow: inset 0 2px 10px rgba(0,0,0,0.5);
}
.cli-box:hover { border-color: var(--signal); background: #111; }
.cli-prompt { color: var(--warn); margin-right: 8px; user-select: none; }
.cli-command { color: var(--text-primary); }
.cli-copy-btn {
  background: rgba(255,255,255,0.1); border: none; color: var(--text-muted);
  border-radius: 4px; padding: 4px 8px; font-size: 0.75rem; cursor: pointer;
  transition: all 0.2s ease;
}
.cli-box:hover .cli-copy-btn { background: var(--signal); color: #000; }

/* --- Neon Scroll Progress Bar --- */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px;
  background: var(--signal); box-shadow: 0 0 10px var(--signal-glow);
  transform-origin: 0%; transform: scaleX(0); z-index: 9999; pointer-events: none;
}


/* ========================================================================= */
/*                              MEDIA QUERIES                                */
/* ========================================================================= */

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

@media (max-width: 800px) { 
  .about-grid { grid-template-columns: 1fr; } 
}

@media (max-width: 768px) {
  /* Status Panel Swipe Fix */
  .status-panel { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .status-panel::-webkit-scrollbar { display: none; }
  .status-panel-head, .status-row { min-width: 520px; }

  /* CLI Wrapping Fix */
  .cli-box {
    max-width: 100%; flex-direction: column; align-items: flex-start; gap: 12px;
  }
  .cli-box > div { display: flex; flex-wrap: wrap; word-break: break-all; }
  .cli-copy-btn { width: 100%; padding: 8px; }
}

@media (max-width: 720px) {
  section { padding: 80px 0; }
  
  /* Mobile Nav Menu Fixes */
  .nav-links {
    position: fixed; top: 57px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--bg-panel); backdrop-filter: blur(16px);
    border-bottom: none; /* Removes the double border */
    max-height: 0; overflow: hidden;
    transition: max-height .25s ease;
  }
  .nav-links.open {
    max-height: 320px;
    border-bottom: 1px solid var(--hairline); /* Adds border only when open */
  }
  .nav-links a { display: block; padding: 16px var(--edge); border-top: 1px solid var(--hairline); }
  .nav-toggle {
    display: block; background: none; border: 1px solid var(--hairline);
    color: var(--text-primary); font-family: var(--font-mono); font-size: 0.95rem;
    padding: 6px 10px; border-radius: 5px; cursor: pointer; margin-left: auto;
  }
}

@media (max-width: 480px) {
  /* Project Card Spilling Fix */
  .proj-card { padding: 20px; }
  .filmstrip img { width: 200px; height: 116px; }
  
  /* About Facts Stack Fix */
  .fact { flex-direction: column; align-items: flex-start; gap: 4px; padding: 16px; }
  .fact dd { text-align: left; }
  
  /* Status Panel Vertical Stack on very small screens */
  .status-panel-head, .status-row { padding: 16px; min-width: 100%; }
  .status-row { flex-wrap: wrap; gap: 8px; }
  .status-row > div:nth-child(2) { flex-basis: 100%; order: 3; margin-top: 8px; }
  .status-row .latency { margin-left: auto; }
}

/* ========================================================================= */
/*                        LARGE DESKTOP ENHANCEMENTS                         */
/* ========================================================================= */

@media (min-width: 1200px) {
  /* Wider project cards so they don't look tiny on ultra-wide screens */
  .proj-grid { 
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); 
    gap: 32px; 
  }
  
  /* Scale up typography to match the larger 1400px canvas */
  .hero h1 { font-size: 4.5rem; }
  .hero-lede { font-size: 1.2rem; max-width: 58ch; }
  .section-head h2 { font-size: 3rem; }
  
  /* Add more cinematic vertical breathing room between sections */
  section { padding: 140px 0; }
  
  /* Expand the ambient mouse glow radius so it isn't swallowed by big screens */
  body::after {
    background: radial-gradient(
      circle at var(--cursor-x, 50vw) var(--cursor-y, 50vh), 
      rgba(16, 185, 129, 0.12) 0%, 
      transparent 650px
    );
  }
}