/* =========================================================
   Alex Chen — Standup Comedy Portfolio
   Theme: dark / nerdy / atoms + electrons + photons
   ========================================================= */

:root {
  --bg: #0a0a12;
  --bg-alt: #131320;
  --bg-card: #171728;
  --border: #2a2a40;
  --purple: #9333ea;
  --purple-dim: #6b21a8;
  --pink: #d946ef;
  --cyan: #22d3ee;
  --text: #ece9f7;
  --text-dim: #a3a1b8;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
  --font-sans: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

body {
  margin: 0;
  width: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(147, 51, 234, 0.18) 1px, transparent 0);
  background-size: 28px 28px;
}

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

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

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
  margin: 0 0 16px;
  overflow-wrap: break-word;
}

p { overflow-wrap: break-word; }

.eyebrow {
  font-family: var(--font-mono);
  color: var(--cyan);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before { content: "//"; color: var(--purple); }

/* ---------- Header / Nav ---------- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 18, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
}

.brand .atom-logo { width: 30px; height: 30px; }

.brand .brand-name span { color: var(--pink); }

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
}

nav.main-nav a {
  color: var(--text-dim);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

nav.main-nav a:hover,
nav.main-nav a.active {
  color: var(--cyan);
  border-color: var(--purple);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 10px;
  border-radius: 6px;
  font-family: var(--font-mono);
  cursor: pointer;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 12px 22px;
  border-radius: 8px;
  border: 1px solid var(--purple);
  background: linear-gradient(135deg, var(--purple), var(--pink));
  color: #fff;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(217, 70, 239, 0.35); }
.btn.btn-outline {
  background: transparent;
  color: var(--cyan);
  border-color: var(--cyan);
}

/* ---------- Photon particles (decorative, floating dots) ---------- */
.photon-field {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.photon {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px 2px var(--cyan);
  animation: drift 12s ease-in-out infinite;
  opacity: 0.7;
}
.photon.pink { background: var(--pink); box-shadow: 0 0 8px 2px var(--pink); }
.photon.purple { background: var(--purple); box-shadow: 0 0 8px 2px var(--purple); }

@keyframes drift {
  0%   { transform: translate(0, 0) scale(1); opacity: 0.2; }
  50%  { transform: translate(20px, -60px) scale(1.4); opacity: 0.9; }
  100% { transform: translate(-10px, -120px) scale(0.8); opacity: 0; }
}

.equation-float {
  position: absolute;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--cyan);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  text-shadow: 0 0 10px rgba(34, 211, 238, 0.65);
  animation: equation-drift 18s ease-in-out infinite;
}
.equation-float.pink { color: var(--pink); text-shadow: 0 0 10px rgba(217, 70, 239, 0.65); }
.equation-float.purple { color: var(--purple); text-shadow: 0 0 10px rgba(147, 51, 234, 0.65); }

@keyframes equation-drift {
  0%   { transform: translate(0, 0) rotate(0deg); opacity: 0; }
  12%  { opacity: 0.55; }
  50%  { transform: translate(14px, -34px) rotate(-2deg); opacity: 0.7; }
  88%  { opacity: 0.35; }
  100% { transform: translate(-10px, -68px) rotate(2deg); opacity: 0; }
}

/* ---------- Atom logo (spinning orbits, react-logo style) ---------- */
.atom-logo .nucleus { fill: var(--pink); }
.atom-logo .orbit {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 4;
  opacity: 0.85;
}
.atom-logo .electron { fill: var(--cyan); }
.atom-logo .spin {
  transform-box: fill-box;
  transform-origin: center;
  animation: spin 4.5s linear infinite;
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 80px 0 60px;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.9fr 1.25fr;
  gap: 48px;
  align-items: center;
}

.hero-photo-wrap {
  position: relative;
  justify-self: center;
}

.hero-photo-frame {
  position: relative;
  z-index: 1;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--pink);
  box-shadow: 0 0 0 8px rgba(147, 51, 234, 0.18), 0 0 40px rgba(217, 70, 239, 0.55),
    0 0 90px rgba(34, 211, 238, 0.35);
}
.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  transform: scale(1.35);
  transform-origin: center 30%;
  filter: contrast(1.3) saturate(1.35) brightness(1.05);
}
.hero-photo-tint {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--purple) 0%, transparent 45%, var(--cyan) 100%);
  mix-blend-mode: overlay;
  opacity: 0.4;
  pointer-events: none;
}

/* ---------- Retro terminal (hero decoration) ---------- */
.retro-monitor {
  position: absolute;
  top: 50%;
  right: -150px;
  transform: translateY(-50%);
  width: 210px;
  z-index: 2;
}
.retro-bezel {
  background: linear-gradient(160deg, #3a3a4d, #16161f);
  border-radius: 14px;
  padding: 12px 12px 22px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.55), 0 0 0 1px var(--border);
}
.retro-screen {
  position: relative;
  background: #04140b;
  border-radius: 6px;
  padding: 10px 12px;
  height: 160px;
  overflow: hidden;
  box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.85), inset 0 0 2px rgba(77, 255, 136, 0.4);
}
.retro-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.3) 0px,
    rgba(0, 0, 0, 0.3) 1px,
    transparent 1px,
    transparent 3px
  );
  pointer-events: none;
}
.retro-output {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  line-height: 1.55;
  color: #4dff88;
  text-shadow: 0 0 4px rgba(77, 255, 136, 0.65);
  white-space: pre-wrap;
  word-break: break-word;
}
.retro-cursor {
  color: #4dff88;
  font-size: 0.58rem;
  text-shadow: 0 0 4px rgba(77, 255, 136, 0.65);
  animation: retro-blink 1s step-start infinite;
}
@keyframes retro-blink { 50% { opacity: 0; } }
.retro-stand {
  width: 60px;
  height: 14px;
  margin: 0 auto;
  background: linear-gradient(160deg, #3a3a4d, #16161f);
  border-radius: 0 0 4px 4px;
}
.contact-monitor {
  max-width: 420px;
  margin: 0 auto 32px;
}
.contact-monitor .retro-bezel {
  padding: 16px 16px 26px;
}
.retro-screen.contact-screen {
  height: auto;
  padding: 22px 24px;
}
.contact-screen .contact-detail {
  font-size: 0.85rem;
  color: #bdf5cf;
  margin-bottom: 12px;
}
.contact-screen .contact-detail:last-child { margin-bottom: 0; }
.contact-screen .contact-detail .icon {
  color: #4dff88;
  text-shadow: 0 0 6px rgba(77, 255, 136, 0.7);
}
.contact-screen .contact-detail a { color: #bdf5cf; }
.contact-screen .contact-detail a:hover { color: #4dff88; }
.contact-monitor .retro-stand {
  width: 70px;
  height: 16px;
}
.contact-monitor .retro-base {
  width: 120px;
  height: 9px;
}

.retro-base {
  width: 100px;
  height: 8px;
  margin: 0 auto;
  background: #1c1c28;
  border-radius: 3px;
}

.hero-text h1 {
  font-size: 2.4rem;
  line-height: 1.25;
  margin: 14px 0 18px;
}
.hero-text h1 .highlight {
  background: linear-gradient(135deg, var(--pink), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-text p.tagline {
  color: var(--text-dim);
  font-size: 1.05rem;
  max-width: 46ch;
  margin-bottom: 26px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Section shells ---------- */
section {
  padding: 70px 0;
  position: relative;
}
section.alt { background: var(--bg-alt); }
section .section-head {
  margin-bottom: 40px;
  text-align: center;
}
section .section-head h2 { font-size: 1.8rem; }

/* ---------- Comedy portfolio / shows band ---------- */
.portfolio-band {
  background: linear-gradient(120deg, var(--purple-dim), #2c0a4a 60%, var(--bg));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.portfolio-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
}
.video-grid {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  gap: 16px;
}
.video-card {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-card);
}
.video-card iframe {
  height: 100%;
  width: auto;
  max-width: 100%;
  aspect-ratio: 16/9;
  border: 0;
}
.video-thumb {
  position: relative;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  cursor: pointer;
}
.video-thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 18, 0.15) 0%, rgba(10, 10, 18, 0.85) 100%);
}
.video-scan {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(34, 211, 238, 0.1) 0px,
    rgba(34, 211, 238, 0.1) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: overlay;
  pointer-events: none;
}
.play-glyph {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.7rem;
  box-shadow: 0 0 0 4px rgba(217, 70, 239, 0.15), 0 0 18px rgba(217, 70, 239, 0.45);
  pointer-events: none;
  transition: transform 0.15s ease;
}
.video-thumb:hover .play-glyph,
.video-thumb:focus-visible .play-glyph {
  transform: translate(-50%, -50%) scale(1.1);
}
.video-thumb:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: -2px;
}
.video-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.video-tag {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  color: var(--cyan);
  text-transform: uppercase;
}
.video-name {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.show-list { list-style: none; margin: 0; padding: 0; }
.show-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--border);
  font-family: var(--font-mono);
  font-size: 0.9rem;
}
.show-list li .city { color: var(--text); font-weight: 600; }
.show-list li .date { color: var(--cyan); }
.show-list li .venue { color: var(--text-dim); }

.gallery-frame {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 4/5;
  background-color: var(--bg-card);
  background-image: radial-gradient(circle at 1px 1px, rgba(236, 233, 247, 0.08) 1px, transparent 0);
  background-size: 18px 18px;
}
.gallery-note {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 6px 8px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
  transform: rotate(var(--rot, 0deg));
  transition: transform 0.2s ease, box-shadow 0.2s ease, z-index 0.2s ease;
}
.gallery-note:hover {
  transform: rotate(0deg) scale(1.08);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.55);
  z-index: 10 !important;
}
.gallery-note::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 10px rgba(217, 70, 239, 0.6);
}
.gallery-note.tape::before {
  width: 40px;
  height: 15px;
  border-radius: 2px;
  background: rgba(236, 233, 247, 0.28);
  box-shadow: none;
  transform: translateX(-50%) rotate(-6deg);
}
.gallery-note::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 6px;
  right: 6px;
  bottom: 8px;
  border-radius: 3px;
  pointer-events: none;
  mix-blend-mode: overlay;
  opacity: 0.4;
}
.gallery-note.tint-purple::after { background: linear-gradient(135deg, var(--purple), transparent 70%); }
.gallery-note.tint-cyan::after { background: linear-gradient(135deg, var(--cyan), transparent 70%); }
.gallery-note img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 3px;
  cursor: zoom-in;
  filter: contrast(1.1) saturate(1.2);
}

/* Scattered placement within the frame — percentages keep it responsive */
.gallery-note.main-note { width: 58%; top: 6%; left: 21%; aspect-ratio: 4/5; z-index: 4; }
.gallery-note.note-a { width: 40%; top: 1%; left: -6%; aspect-ratio: 4/3; z-index: 2; }
.gallery-note.note-b { width: 38%; top: -2%; right: -7%; aspect-ratio: 4/3; z-index: 2; }
.gallery-note.note-c { width: 42%; bottom: 3%; left: -5%; aspect-ratio: 4/3; z-index: 3; }
.gallery-note.note-d { width: 42%; bottom: -2%; right: -6%; aspect-ratio: 4/3; z-index: 3; }
.gallery-note.note-e { width: 36%; bottom: 16%; left: 34%; aspect-ratio: 4/3; z-index: 5; }

/* ---------- Gallery lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: rgba(5, 5, 12, 0.92);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img {
  max-width: min(90vw, 700px);
  max-height: 85vh;
  border-radius: 10px;
  border: 2px solid var(--border);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  filter: contrast(1.1) saturate(1.2);
  cursor: zoom-out;
}

/* ---------- Corporate fusion ---------- */
.fusion-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  align-items: center;
}
.fusion-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-card);
}
.fusion-card img { width: 100%; display: block; }
.fusion-list {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.fusion-list li {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-dim);
  padding-left: 22px;
  position: relative;
}
.fusion-list li::before {
  content: "e⁻";
  position: absolute;
  left: 0;
  color: var(--cyan);
  font-weight: 700;
}

/* ---------- Git Commit Jokes (TV) ---------- */
.joke-tv {
  max-width: 720px;
  margin: 0 auto;
}
.tv-bezel {
  position: relative;
  background: linear-gradient(160deg, #3a3a4d, #16161f);
  border-radius: 24px;
  padding: 22px 22px 28px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.55), 0 0 0 1px var(--border);
}
.tv-antenna {
  position: absolute;
  top: -32px;
  width: 3px;
  height: 38px;
  background: linear-gradient(180deg, var(--cyan), transparent);
}
.tv-antenna.left { left: 32%; transform: rotate(-25deg); transform-origin: bottom center; }
.tv-antenna.right { right: 32%; transform: rotate(25deg); transform-origin: bottom center; }
.tv-antenna::after {
  content: "";
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 8px rgba(217, 70, 239, 0.7);
}
.tv-screen {
  position: relative;
  background: #04140b;
  border-radius: 12px;
  padding: 24px 28px;
  height: 380px;
  overflow-y: auto;
  overflow-x: hidden;
  box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.85), inset 0 0 2px rgba(77, 255, 136, 0.4);
  scrollbar-width: none;
}
.tv-screen::-webkit-scrollbar { display: none; }
.tv-output {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.65;
  color: #4dff88;
  text-shadow: 0 0 4px rgba(77, 255, 136, 0.65);
  white-space: pre-wrap;
  word-break: break-word;
}
.tv-stand {
  width: 90px;
  height: 18px;
  margin: 10px auto 0;
  background: linear-gradient(160deg, #3a3a4d, #16161f);
  border-radius: 0 0 6px 6px;
}

/* ---------- Testimonials ---------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.testimonial {
  border-left: 3px solid var(--purple);
  padding-left: 20px;
}
.testimonial p.quote { font-style: italic; color: var(--text); margin-bottom: 10px; }
.testimonial .who { font-family: var(--font-mono); font-size: 0.85rem; color: var(--cyan); }
.testimonial .who span { display: block; color: var(--text-dim); font-size: 0.8rem; }

.logo-strip {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  color: var(--text-dim);
  font-size: 0.85rem;
}
.logo-strip span { border: 1px solid var(--border); padding: 8px 16px; border-radius: 8px; }

/* ---------- Contact info ---------- */
.contact-grid {
  display: flex;
  justify-content: center;
}
.contact-grid > div {
  width: 100%;
  max-width: 480px;
}

.contact-detail {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.contact-detail .icon { color: var(--cyan); }
.contact-detail a { color: var(--text); transition: color 0.15s ease; }
.contact-detail a:hover { color: var(--cyan); text-decoration: underline; }

.calc-anim {
  margin-top: 32px;
}
.calc-anim svg {
  width: 100%;
  max-width: 320px;
  height: auto;
  display: block;
  margin-bottom: 10px;
}
.calc-curve { filter: drop-shadow(0 0 4px rgba(34, 211, 238, 0.5)); }
.sweep-rect {
  animation: calc-sweep 4s ease-in-out infinite;
}
@keyframes calc-sweep {
  0% { width: 0; }
  50% { width: 240px; }
  100% { width: 0; }
}
.calc-tracer {
  fill: var(--pink);
  filter: drop-shadow(0 0 5px rgba(217, 70, 239, 0.8));
  offset-path: path('M0,70 Q30,10 60,50 T120,50 T180,25 T240,60');
  animation: calc-trace 4s ease-in-out infinite;
}
@keyframes calc-trace {
  0% { offset-distance: 0%; }
  50% { offset-distance: 100%; }
  100% { offset-distance: 0%; }
}

.form-note {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  opacity: 0.7;
}

/* ---------- About page ---------- */
.about-hero {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 48px;
  align-items: start;
}
.about-photo {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.terminal {
  background: #060609;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 20px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--cyan);
  margin-top: 24px;
}
.terminal .prompt { color: var(--pink); }
.terminal .comment { color: var(--text-dim); }

.timeline {
  border-left: 2px solid var(--border);
  margin-left: 6px;
  padding-left: 28px;
  display: grid;
  gap: 28px;
}
.timeline .item { position: relative; }
.timeline .item::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 0 4px rgba(217, 70, 239, 0.2);
}
.timeline .year { font-family: var(--font-mono); color: var(--cyan); font-size: 0.85rem; }

/* ---------- Footer ---------- */
footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  background: var(--bg-alt);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-inner p {
  margin: 0;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}
.social-icons { display: flex; gap: 16px; }
.social-icons a {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-dim);
  transition: color 0.2s, border-color 0.2s;
}
.social-icons a:hover { color: var(--cyan); border-color: var(--cyan); }
.social-icons svg { width: 16px; height: 16px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner, .fusion-grid, .about-hero, .portfolio-inner {
    grid-template-columns: 1fr;
  }
  .hero-text { order: 2; }
  .hero-photo-wrap { order: 1; }
  .testimonial-grid { grid-template-columns: 1fr; }

  /* Stacked layout: videos no longer need to stretch to match the photo's
     height, and only one video is fetched/shown at this width (see script.js). */
  .video-grid { grid-template-rows: none; margin-bottom: 28px; }
  .video-card { height: auto; aspect-ratio: 16/9; }
}

/* Grid/flex items default to a content-based min-width, which can force
   horizontal page overflow on narrow screens when text is long; this resets
   that so items shrink and wrap within their track instead of blowing out. */
.hero-inner > *,
.fusion-grid > *,
.about-hero > *,
.portfolio-inner > *,
.testimonial,
.hero-cta > * {
  min-width: 0;
}

@media (max-width: 640px) {
  nav.main-nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--bg-alt); border-bottom: 1px solid var(--border); display: none; }
  nav.main-nav.open { display: block; }
  nav.main-nav ul { flex-direction: column; padding: 16px 24px; gap: 16px; }
  .nav-toggle { display: block; }
  .hero-photo-frame { width: 280px; height: 280px; }
  .retro-monitor { display: none; }
}
