/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0a0a0a;
  --bg-alt: #111111;
  /* --bg-alt: #0a0a0a; */
  --surface: #1a1a1a;
  --border: #222222;
  --text: #f0f0f0;
  --text-muted: #888888;
  --text-subtle: #444444;
  --accent: #ffffff;
  --accent-dim: rgba(255,255,255,0.08);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-w: 1100px;
  --nav-h: 70px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Nav ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  z-index: 100;
  transition: background 0.3s, border-bottom 0.3s;
}

.nav.scrolled {
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text);
}

.nav-signature {
  height: 48px;
  width: auto;
  max-width: 180px;
  display: block;
  opacity: 0.9;
  object-fit: contain;
}

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

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

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

.nav-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-menu-btn span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--text);
  transition: 0.3s;
}

/* ── Mobile Menu ── */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.mobile-menu.open { display: flex; }

.mobile-menu ul {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  text-align: center;
}

.mobile-menu a {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: color 0.2s;
}

.mobile-menu a:hover { color: var(--text); }

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 2.5rem;
  padding-top: var(--nav-h);
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
}

.hero-eyebrow {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.2s forwards;
}

.hero-name {
  font-size: clamp(3.5rem, 9vw, 8rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.4s forwards;
}

.hero-tagline {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 540px;
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.6s forwards;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s 0.8s forwards;
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 2.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text-subtle);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeUp 0.8s 1.2s forwards;
}

.scroll-line {
  width: 40px;
  height: 1px;
  background: var(--text-subtle);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.85rem 2rem;
  border-radius: 2px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
}

.btn-primary:hover {
  background: #d0d0d0;
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(10, 10, 10, 0.129); /* was: var(--text) — now 80% transparent dark */
  color: var(--text);                 /* was: var(--bg) — text should stay white */
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--text-muted);
  transform: translateY(-1px);
}

.btn-large { padding: 1.1rem 2.8rem; font-size: 0.9rem; }

/* ── Comet border animation ── */
.btn-ai-glow {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: none !important;
  background: transparent !important;
}

/* Spinning conic — subtle base border + bright comet head & tail */
.btn-ai-glow::before {
  content: '';
  position: absolute;
  width: 250%;
  height: 250%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(0deg);
  background: conic-gradient(
    from 0deg,
    rgba(255,255,255,0.07) 0deg,
    rgba(255,255,255,0.07) 300deg,
    rgba(167,139,250,0.3)  325deg,
    rgba(79,172,254,0.7)   348deg,
    rgba(255,255,255,1)    358deg,
    rgba(255,255,255,0.07) 360deg
  );
  animation: cometSpin 2.4s linear infinite;
  z-index: -2;
}

/* Dark fill — hollows the inside, leaving the thin border + comet */
.btn-ai-glow::after {
  content: '';
  position: absolute;
  inset: 1.5px;
  background: rgb(34, 34, 34); /* change this line only */
  border-radius: 1px;
  z-index: -1;
}

@keyframes cometSpin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ── Sections ── */
.section { padding: 7rem 0; }
.section-dark { background: var(--bg); }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2.5rem;
}

.section-header {
  margin-bottom: 5rem;
}

.section-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}

.section-title {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text);
}

/* ── Hero Full Screen ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 2.5rem;
  padding-top: var(--nav-h);
  max-width: 100%;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 55%;
  height: 100%;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 5%;
  filter: grayscale(15%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(10,10,10,1) 0%,
    rgba(10,10,10,0.5) 50%,
    rgba(10,10,10,0) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  padding-top: 12rem;
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 2.5rem;
  z-index: 1;
}

/* ── Photography — Location Cards ── */
.location-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.location-card {
  position: relative;
  aspect-ratio: 3 / 2;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
}

.location-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.78) grayscale(10%);
  transition: transform 0.5s ease, filter 0.4s ease;
}

.location-card:hover img {
  transform: scale(1.06);
  filter: brightness(0.65) grayscale(0%);
}

.location-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.4rem 1.1rem 1rem;
  background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, transparent 100%);
  pointer-events: none;
}

.loc-name {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.2rem;
}

.loc-count {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.06em;
}

/* ── Gallery Overlay ── */
.gallery-overlay {
  position: fixed;
  inset: 0;
  z-index: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.gallery-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.gallery-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 4, 4, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.gallery-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 780px;
  max-height: 88vh;
  background: rgba(10, 10, 10, 0.97);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  overflow-y: auto;
  padding: 1.8rem;
  transform: scale(0.93) translateY(16px);
  transition: transform 0.4s cubic-bezier(0.34, 1.3, 0.64, 1);
}

.gallery-overlay.open .gallery-panel {
  transform: scale(1) translateY(0);
}

.gallery-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.4rem;
}

.gallery-loc-name {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.2rem;
}

.gallery-photo-count {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.06em;
}

.gallery-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.75);
  cursor: pointer;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s;
}

.gallery-close:hover { background: rgba(255,255,255,0.14); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.gallery-thumb {
  aspect-ratio: 1;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.85);
  transition: transform 0.3s ease, filter 0.3s ease;
}

.gallery-thumb:hover img {
  transform: scale(1.06);
  filter: brightness(1);
}

/* ── Lightbox ── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.96);
}

/* image + caption stacked */
.lightbox-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 88vw;
  transform: scale(0.88);
  opacity: 0;
  transition: transform 0.42s cubic-bezier(0.34, 1.4, 0.64, 1), opacity 0.3s ease;
}

.lightbox.open .lightbox-content {
  transform: scale(1);
  opacity: 1;
}

.lightbox-img {
  max-width: 100%;
  max-height: 62vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.8);
  display: block;
  cursor: default;
  touch-action: pan-y;
}

.lightbox-caption {
  margin-top: 1.1rem;
  text-align: center;
  max-width: 560px;
  padding: 0 0.5rem;
}

.lightbox-caption .location {
  display: block;
  font-size: 0.7rem;
  color: #1D9E75;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.4rem;
}

.lightbox-caption .story {
  font-size: 0.87rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.65;
  margin: 0;
}

/* ← Gallery back button */
.lightbox-close {
  position: absolute;
  top: 1.2rem;
  left: 1.6rem;
  z-index: 2;
  padding: 0.45rem 1rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: background 0.2s;
  font-family: inherit;
}

.lightbox-close:hover { background: rgba(255,255,255,0.14); }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, opacity 0.2s;
}

.lightbox-nav:hover { background: rgba(255,255,255,0.16); }

.lightbox-nav.hidden {
  opacity: 0;
  pointer-events: none;
}

.lightbox-prev { left: 1.6rem; }
.lightbox-next { right: 1.6rem; }

.lightbox-counter {
  position: absolute;
  bottom: 1.2rem;
  right: 1.6rem;
  z-index: 2;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.08em;
}

/* Mobile swipe hint */
.lightbox-swipe-hint {
  position: absolute;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.68rem;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.05em;
  display: none;
}

@media (hover: none) {
  .lightbox-swipe-hint { display: block; }
}

/* ── About ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
  line-height: 1.8;
}

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

.tag-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.tag-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: 0.3rem;
}

.tag {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border);
}

/* ── Work Timeline ── */
.work-disciplines {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-top: 0.8rem;
}

/* Vertical line */
.work-timeline {
  position: relative;
}

.work-timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--border);
}

/* Each entry row */
.work-item {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 0 2.5rem;
  position: relative;
}

/* Left column */
.work-meta {
  padding: 2.2rem 0 2.2rem 1.75rem;
  position: relative;
}

/* Dot on the line */
.work-meta::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 2.75rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #333;
  background: var(--bg-alt);
}

/* First entry: filled green dot */
.work-item:first-child .work-meta::before {
  border-color: #1D9E75;
  background: #1D9E75;
}

.work-date {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 5px;
  display: block;
}

.work-location {
  font-size: 0.75rem;
  color: var(--text-subtle);
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 5px;
}

.work-location svg {
  fill: var(--text-subtle);
  flex-shrink: 0;
}

/* Right column */
.work-body {
  padding: 2.2rem 0;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* No top border on first entry */
.work-item:first-child .work-body {
  border-top: none;
}

/* Category badges */
.work-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 13px;
  border-radius: 20px;
  margin-bottom: 0.85rem;
  border: 1px solid;
  background: transparent;
}

.badge-current  { color: #1D9E75; border-color: #1D9E75; }
.badge-startup  { color: #6b9ee8; border-color: #6b9ee8; }
.badge-industry { color: #6b9ee8; border-color: #6b9ee8; }
.badge-research { color: #9b8ee8; border-color: #9b8ee8; }
.badge-ms       { color: #9b8ee8; border-color: #9b8ee8; }

/* Job title */
.work-title {
  font-family: var(--font);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 600;
  color: var(--text);
  margin: 0 0 5px;
  line-height: 1.25;
}

/* Company */
.work-company {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: 1.1rem;
}

/* Description — full width, no constraint */
.work-desc {
  font-size: 0.94rem;
  line-height: 1.8;
  color: var(--text-muted);
  font-weight: 300;
  margin: 0 0 1.2rem;
  width: 100%;
}

/* Skill pills */
.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.work-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--text-subtle);
  background: transparent;
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 20px;
  transition: border-color 0.2s, color 0.2s;
}

.work-tag:hover {
  border-color: var(--text-subtle);
  color: var(--text-muted);
}

/* ── Research ── */
.research-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.research-vision p {
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
  line-height: 1.8;
}

.research-vision strong { color: var(--text); font-weight: 600; }

.research-timeline-note {
  font-size: 0.82rem !important;
  color: var(--text-subtle) !important;
  margin-top: 1.5rem;
  font-style: italic;
}

.research-focus {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.focus-card {
  padding: 1.8rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
  transition: border-color 0.2s, transform 0.2s;
  position: relative;
}

.focus-card:hover {
  border-color: var(--text-subtle);
  transform: translateY(-2px);
}

/* Clickable PDF card */
a.focus-card-link {
  display: block;
  text-decoration: none;
  cursor: pointer;
}

a.focus-card-link:hover {
  border-color: #1D9E75;
}

.focus-card-hint {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1D9E75;
  opacity: 0.55;
  transition: opacity 0.2s;
}

a.focus-card-link:hover .focus-card-hint {
  opacity: 1;
}

.focus-icon {
  display: block;
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
}

.focus-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.focus-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── Projects ── */
.projects-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.project-card {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2.5rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
  cursor: default;
}

.project-card:first-child { border-top: 1px solid var(--border); }

.project-card:hover { background: var(--accent-dim); padding-left: 1rem; padding-right: 1rem; margin: 0 -1rem; }

.project-number {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-subtle);
  letter-spacing: 0.05em;
  padding-top: 0.3rem;
}

.project-info h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.project-info p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.project-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-subtle);
  border: 1px solid var(--border);
  padding: 0.25rem 0.65rem;
  border-radius: 2px;
  margin-right: 0.5rem;
}

/* ── Contact ── */
.contact-wrap {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  padding: 4rem 0;
}

.contact-title {
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--text);
  margin: 1rem 0;
}

.contact-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.social-links {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-top: 2rem;
}

.social-links a {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.social-links a:hover {
  color: var(--text);
  border-color: var(--text-muted);
}

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
}

.footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer span {
  font-size: 0.8rem;
  color: var(--text-subtle);
}

/* ── Rocket Scene ── */
.rocket-scene {
  position: absolute;
  left: 2.5rem;
  bottom: 3rem;
  z-index: 1;
  opacity: 0.75;
  pointer-events: none;
}

.rocket-group {
  animation: rocketFly 7s cubic-bezier(0.3, 0, 0.6, 1) infinite;
}

@keyframes rocketFly {
  0%   { transform: translateY(340px); opacity: 0; }
  6%   { opacity: 1; }
  88%  { opacity: 1; }
  100% { transform: translateY(0px);   opacity: 0; }
}

.star { animation: starTwinkle 2.5s ease-in-out infinite alternate; }
.s1 { animation-delay: 0s; }
.s2 { animation-delay: 0.5s; }
.s3 { animation-delay: 1s; }
.s4 { animation-delay: 1.5s; }
.s5 { animation-delay: 0.3s; }
.s6 { animation-delay: 0.9s; }

@keyframes starTwinkle {
  from { opacity: 0.15; }
  to   { opacity: 0.7; }
}

.flame { transform-origin: center top; }
.fl1 { animation: flicker 0.12s ease-in-out infinite alternate; }
.fl2 { animation: flicker 0.18s ease-in-out infinite alternate-reverse; }
.fl3 { animation: flicker 0.14s ease-in-out infinite alternate; }

@keyframes flicker {
  from { opacity: 0.7; transform: scaleY(1);   }
  to   { opacity: 0.3; transform: scaleY(0.85); }
}

.sm1 { animation: smokeFade 0.4s ease-in-out infinite alternate; }
.sm2 { animation: smokeFade 0.5s ease-in-out infinite alternate-reverse; }
.sm3 { animation: smokeFade 0.35s ease-in-out infinite alternate; }

@keyframes smokeFade {
  from { opacity: 0.25; }
  to   { opacity: 0.05; }
}

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ── Responsive ── */
@media (max-width: 900px) {
  .about-grid,
  .research-grid { grid-template-columns: 1fr; gap: 3rem; }

  .work-item { grid-template-columns: 1fr; }
  .work-timeline::before { display: none; }
  .work-meta { padding: 1.5rem 0 0 0; }
  .work-meta::before { display: none; }
  .work-body { padding: 0.75rem 0 2rem; border-top: 1px solid var(--border); }
  .work-item:first-child .work-body { border-top: 1px solid var(--border); }

  .hero-overlay {
    background: linear-gradient(
      to bottom,
      rgba(10,10,10,0.85) 0%,
      rgba(10,10,10,0.6) 100%
    );
  }

  .location-grid { grid-template-columns: repeat(2, 1fr); gap: 0.9rem; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-menu-btn { display: flex; }

  .nav-signature { height: 38px; max-width: 140px; }

  .hero { padding: 0 1.5rem; padding-top: var(--nav-h); }
  .hero-scroll { display: none; }
  .rocket-scene { display: none; }

  /* Image covers full width — face shifted to right half, gradient blends left */
  .hero-bg { width: 100%; left: 0; }
  .hero-bg img { object-position: 40% 5%; }

  .container { padding: 0 1.5rem; }
  .section { padding: 5rem 0; }
  .section-header { margin-bottom: 3rem; }

  .footer .container { flex-direction: column; gap: 0.5rem; text-align: center; }

  .project-card:hover { padding-left: 0; padding-right: 0; margin: 0; }

  .project-card {
    grid-template-columns: 32px 1fr;
    gap: 0.9rem;
    padding: 2rem 0;
  }

  .project-number {
    font-size: 0.72rem;
    padding-top: 0.2rem;
  }

  .project-info h3 {
    font-size: 1.15rem;
  }

  .project-info p {
    font-size: 0.88rem;
  }

  .location-grid { grid-template-columns: 1fr; gap: 0.9rem; }
  .gallery-panel { padding: 1.2rem; border-radius: 14px 14px 0 0; max-height: 90vh; }
  .gallery-overlay { padding: 0; align-items: flex-end; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 0.4rem; }
  .lightbox-prev { left: 0.6rem; }
  .lightbox-next { right: 0.6rem; }
}
