/* ============================
   DESIGN TOKENS
   ============================ */
:root {
  --bg: #0a0a0a;
  --bg-raised: #111111;
  --bg-card: #161616;
  --text: #f5f2eb;
  --text-muted: #aaa;
  --accent: #b08d57;
  --accent-hover: #c9a66b;
  --border: #222;
  --font: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "JetBrains Mono", "Fira Code", monospace;
  --max-w: 1200px;
  --transition: 0.3s ease;
}

/* ============================
   RESET & BASE
   ============================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover {
  color: var(--accent-hover);
}
::selection {
  background: var(--accent);
  color: var(--bg);
}

/* Focus-visible: keyboard-only outline for accessibility */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
:focus:not(:focus-visible) {
  outline: none;
}

/* Skip to content link — visible only on keyboard focus */
.skip-link {
  position: fixed;
  top: -100%;
  left: 1rem;
  z-index: 200;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 0.5rem;
  color: var(--bg);
}

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

/* ============================
   NAV
   ============================ */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: transform 0.4s ease;
}
nav.nav-hidden {
  transform: translateY(-100%);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.nav-logo {
  font-family: var(--mono);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.05em;
}
.nav-logo:hover {
  color: var(--accent);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: var(--transition);
}
.lang-switcher {
  display: flex;
  gap: 0.5rem;
  margin-left: 1rem;
  padding-left: 1rem;
  border-left: 1px solid var(--border);
}
.lang-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 0.7rem;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  letter-spacing: 0.05em;
  transition: color var(--transition);
}
.lang-btn:hover {
  color: var(--accent);
}
.lang-btn.active {
  color: var(--accent);
}

/* ============================
   HERO (HOME)
   ============================ */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-video-wrap {
  position: absolute;
  inset: 0;
}
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 10, 0.4) 0%,
    rgba(10, 10, 10, 0.6) 50%,
    rgba(10, 10, 10, 0.95) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}
.hero-content h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}
.hero-tagline {
  font-family: var(--mono);
  font-size: clamp(0.85rem, 1.5vw, 1.1rem);
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

/* ============================
   PROJECTS GRID (HOME)
   ============================ */
.projects-section {
  padding: 2rem 0 8rem;
}
.projects-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.projects-header h2 {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.project-filters {
  display: flex;
  gap: 0.5rem;
}
.filter-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 0.75rem;
  padding: 0.4rem 1rem;
  cursor: pointer;
  border-radius: 2px;
  transition: all var(--transition);
  letter-spacing: 0.04em;
}
.filter-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.filter-btn.active {
  border-color: var(--accent);
  color: var(--accent);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.project-card {
  position: relative;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  aspect-ratio: 16 / 10;
  cursor: pointer;
  transition: border-color var(--transition);
}
.project-card:hover {
  border-color: var(--accent);
}
.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 0.6s ease,
    opacity 0.4s ease;
}
.project-card:hover img {
  transform: scale(1.03);
}
.project-card.card-contain {
  background: var(--bg-raised);
}
.project-card.card-contain img {
  object-fit: contain;
  object-position: center;
  padding: 0.5rem;
  transform: scale(1.1);
}
.project-card.card-contain:hover img {
  transform: scale(1.1);
}
.project-card.no-image {
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 10, 10, 0.85) 0%,
    rgba(10, 10, 10, 0) 60%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  transition: background var(--transition);
}
.card-overlay h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.card-meta {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.project-card.hidden {
  display: none;
}

/* ============================
   PROJECT DETAIL PAGE
   ============================ */
.project-hero {
  position: relative;
  width: 100%;
  height: 70vh;
  overflow: hidden;
}
.project-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.project-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 10, 10, 0.9) 0%,
    rgba(10, 10, 10, 0.2) 50%,
    rgba(10, 10, 10, 0.4) 100%
  );
}
.project-hero-content {
  position: absolute;
  bottom: 3rem;
  left: 0;
  right: 0;
  padding: 0 2rem;
  max-width: var(--max-w);
  margin: 0 auto;
}
.project-meta {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  letter-spacing: 0.04em;
}
.project-hero-content h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.project-hero.no-hero {
  height: auto;
  min-height: 30vh;
  display: flex;
  align-items: flex-end;
  padding-top: 100px;
  background: var(--bg);
}
.project-hero.no-hero .project-hero-content {
  position: relative;
  bottom: auto;
  padding-bottom: 2rem;
}

/* PROJECT BODY */
.project-body {
  padding: 4rem 0 6rem;
}
.project-info-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 4rem;
  margin-bottom: 4rem;
}
.project-description {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text);
}

.sidebar-block {
  margin-bottom: 2rem;
}
.sidebar-block h4 {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}
.sidebar-block p {
  font-size: 0.9rem;
  color: var(--text);
}
.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.project-tech span {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  padding: 0.25rem 0.6rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  border-radius: 2px;
}
.project-ext-link {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.04em;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--accent);
  transition: all var(--transition);
}
.project-ext-link:hover {
  color: var(--accent-hover);
  border-color: var(--accent-hover);
}

/* MEDIA SECTIONS */
.media-section {
  margin-bottom: 4rem;
}
.media-section h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 1rem;
}
.video-grid video {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--bg-card);
}
.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.75rem;
}
.image-grid img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid var(--border);
  cursor: pointer;
  transition:
    border-color var(--transition),
    transform 0.4s ease;
}
.image-grid img:hover {
  border-color: var(--accent);
  transform: scale(1.01);
}
.img-contain-wrap {
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-raised);
  aspect-ratio: 16 / 10;
  cursor: pointer;
  transition: border-color var(--transition);
}
.img-contain-wrap:hover {
  border-color: var(--accent);
}
.image-grid img.img-contain {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border: none;
  aspect-ratio: auto;
}

/* MEDIA CREDITS */
.media-credits {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  margin-top: 1rem;
}
.media-credits a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.media-credits a:hover {
  color: var(--accent);
}

/* PROJECT NAV */
.project-nav {
  display: flex;
  justify-content: space-between;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}
.project-nav-link {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  color: var(--text);
  transition: color var(--transition);
}
.project-nav-link:hover {
  color: var(--accent);
}
.project-nav-next {
  align-items: flex-end;
  text-align: right;
}
.project-nav-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.project-nav-name {
  font-size: 1rem;
  font-weight: 500;
}

/* ============================
   ABOUT HERO
   ============================ */
.about-hero,
.lab-hero {
  padding: 10rem 0 3rem;
}
.about-hero h1,
.lab-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* ============================
   ABOUT BIO
   ============================ */
.about-bio {
  padding: 2rem 0 5rem;
}
.bio-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 4rem;
}
.bio-text p {
  margin-bottom: 1.5rem;
  font-size: 1rem;
  line-height: 1.8;
}
.bio-lead {
  font-size: 1.2rem !important;
  font-weight: 500;
  color: var(--text);
}
.bio-photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--border);
  margin-bottom: 0.5rem;
}
.bio-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.bio-detail {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.detail-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.detail-value {
  font-size: 0.9rem;
  color: var(--text);
}
.bio-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.bio-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-size: 0.85rem;
}

/* ============================
   ABOUT SECTIONS (Experience, OSS, Teaching)
   ============================ */
.about-section {
  padding: 4rem 0;
  border-top: 1px solid var(--border);
}
.about-section h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.section-note {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* EXPERIENCE LIST */
.experience-list {
  margin-top: 2rem;
}
.exp-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 2rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}
.exp-period {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  padding-top: 0.2rem;
}
.exp-body h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.exp-company {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.exp-desc {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.7;
}
.exp-early {
  opacity: 0.7;
}

/* OPEN SOURCE GRID */
.oss-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.oss-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 1.5rem;
  transition: border-color var(--transition);
}
.oss-card:hover {
  border-color: var(--accent);
}
.oss-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.oss-card h3 a,
.teach-item a,
.talk-item a {
  color: var(--text);
}
.oss-card h3 a:hover,
.teach-item a:hover,
.talk-item a:hover {
  color: var(--accent);
}
.oss-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}
.oss-meta {
  display: flex;
  gap: 1rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}
.contrib-section {
  margin-top: 0;
}
.contrib-label {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}
.contrib-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.contrib-list a {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  padding: 0.3rem 0.75rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  border-radius: 2px;
  transition: all var(--transition);
}
.contrib-list a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* TEACHING GRID */
.teaching-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}
.teaching-grid h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.teach-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-bottom: 1rem;
}
.teach-item a {
  font-size: 0.9rem;
}
.teach-item span {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}
.community-role {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.6;
}
.talk-item {
  margin-bottom: 0.5rem;
}
.talk-item a {
  font-size: 0.85rem;
}

/* ============================
   CONTACT CTA
   ============================ */
.contact-cta {
  padding: 6rem 0;
  text-align: center;
  border-top: 1px solid var(--border);
}
.contact-cta h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
}
.contact-cta p {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}
.cta-email {
  display: inline-block;
  font-family: var(--mono);
  font-size: 1rem;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 0.75rem 2rem;
  transition: all var(--transition);
}
.cta-email:hover {
  background: var(--accent);
  color: var(--bg);
}

/* ============================
   LAB PAGE
   ============================ */
.lab-hero {
  padding-bottom: 1rem;
}
.lab-intro {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.7;
  margin-top: 1rem;
}
.lab-section {
  padding: 2rem 0 8rem;
}
.lab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 2rem;
}
.lab-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color var(--transition);
}
.lab-card:hover {
  border-color: var(--accent);
}
.lab-card video,
.lab-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 1px solid var(--border);
}
.lab-card-body {
  padding: 1.25rem;
}
.lab-card-body h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.lab-card-body p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}
.lab-card-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.lab-card-tech span {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  padding: 0.15rem 0.5rem;
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  border-radius: 2px;
}

/* ============================
   FOOTER
   ============================ */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-left p {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}
.footer-links {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}
.footer-links a {
  display: inline-flex;
  color: var(--text-muted);
}
.footer-links a:hover {
  color: var(--accent);
}
.footer-links svg,
.bio-links svg {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

/* ============================
   LIGHTBOX
   ============================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}
.lightbox.active {
  opacity: 1;
  visibility: visible;
}
.lightbox img {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text);
  font-size: 1.5rem;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  line-height: 1;
}
.lightbox-nav:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.lightbox-prev {
  left: 1rem;
}
.lightbox-next {
  right: 1rem;
}
.lightbox-counter {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text);
  font-size: 1.25rem;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  line-height: 1;
}
.lightbox-close:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ============================
   ANIMATIONS
   ============================ */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================
   REDUCED MOTION
   ============================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .fade-in {
    opacity: 1;
    transform: none;
  }
}

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 900px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .project-info-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .bio-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .teaching-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .exp-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .video-grid {
    grid-template-columns: 1fr;
  }
  .lab-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .nav-toggle {
    display: flex;
  }
  .nav-links {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    transform: translateX(100%);
    transition: transform 0.4s ease;
  }
  .nav-links.open {
    transform: translateX(0);
  }
  .lang-switcher {
    border-left: none;
    margin-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--border);
    padding-top: 1rem;
  }
  .hero-content h1 {
    font-size: 2.5rem;
  }
  .projects-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .project-hero {
    height: 50vh;
  }
  .project-hero-content h1 {
    font-size: 1.8rem;
  }
  .about-hero,
  .lab-hero {
    padding: 7rem 0 2rem;
  }
  .footer-inner {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}
