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

:root {
  --bg:        #2a2824;
  --bg-2:      #333028;
  --bg-3:      #3d3a32;
  --border:    #4a4740;
  --text:      #f2f0eb;
  --muted:     #908a80;
  --accent:    #f5a800;
  --accent-2:  #c8b89a;
  --font:      'Inter', system-ui, -apple-system, sans-serif;
  --mono:      'JetBrains Mono', 'Fira Code', monospace;
  --max:       1200px;
  --nav-h:     64px;
  --ease:      cubic-bezier(0.16, 1, 0.3, 1);
}

html { scroll-behavior: smooth; }

/* ─── Skip Link ─────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 9999;
  padding: 10px 20px;
  background: var(--accent);
  color: #0f0e0c;
  font-size: 13px;
  font-weight: 600;
  border-radius: 4px;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

/* ─── Focus indicators ──────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}
button:focus-visible,
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }

/* ─── Typography ────────────────────────────────────────────── */
.label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

h1 { font-size: clamp(2.8rem, 7vw, 6rem); font-weight: 700; line-height: 1.05; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
h3 { font-size: 1.1rem; font-weight: 600; letter-spacing: -0.01em; }

/* ─── Layout ────────────────────────────────────────────────── */
.container { max-width: var(--max); margin: 0 auto; padding: 0 32px; }
section { padding: 96px 0; }

/* ─── Navigation ────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  background: rgba(42,40,36,0.94);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
nav.scrolled { border-bottom-color: var(--border); }
nav .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text);
}
.nav-logo span { color: var(--accent); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.02em;
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.25s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

/* ─── Hero background carousel ─────────────────────────────── */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.85) 0%,
    rgba(0,0,0,0.72) 50%,
    rgba(0,0,0,0.92) 100%
  );
}

/* ─── Hero ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  opacity: 0.3;
  z-index: 2;
}
.hero-content {
  position: relative;
  z-index: 3;
  padding-top: var(--nav-h);
  max-width: 820px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}
.hero-eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}
.hero h1 { margin-bottom: 28px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 48px;
  line-height: 1.7;
}
.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ─── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s, color 0.2s, box-shadow 0.2s;
  border: none;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--accent);
  color: #111010;
}
.btn-primary:hover { background: #ffc230; box-shadow: 0 0 28px rgba(245,168,0,0.25); }
.btn-ghost {
  background: var(--bg-3);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--accent); background: var(--bg-2); }

/* ─── Section Header ────────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 56px;
  gap: 24px;
}
.section-header .label { margin-bottom: 10px; }
.view-all {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.view-all:hover { color: var(--text); border-color: var(--muted); }
.view-all svg { transition: transform 0.2s var(--ease); }
.view-all:hover svg { transform: translateX(3px); }

/* ─── Work Grid ─────────────────────────────────────────────── */
.work-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2px;
}
.work-card {
  position: relative;
  overflow: hidden;
  background: var(--bg-2);
}
.work-card { grid-column: span 4; }

.work-card-inner {
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

/* Aspect ratio lives on the image area now */
.work-visual { aspect-ratio: 16/9; }

.work-visual {
  position: relative;
  width: 100%;
  overflow: hidden;
  flex-shrink: 0;
  transition: filter 0.4s ease;
}
.work-card:hover .work-visual { filter: brightness(1.08); }

/* Overlay no longer needed — text is below the image */
.work-overlay { display: none; }

/* Text band below the image */
.work-meta {
  padding: 18px 22px 20px;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.work-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
  display: block;
}
.work-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.work-card p {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
  max-width: 320px;
}
.work-arrow {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(42,40,36,0.6);
  border: 1px solid rgba(242,240,235,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translate(4px, -4px);
  transition: opacity 0.25s, transform 0.25s var(--ease), background 0.2s;
  z-index: 4;
  text-decoration: none;
}
.work-card:hover .work-arrow { opacity: 1; transform: translate(0, 0); }
.work-arrow:hover { background: rgba(15,14,12,0.75); }
.work-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* ─── Gallery Page ───────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 260px;
  gap: 3px;
  padding-top: 56px;
  padding-bottom: 96px;
}
.gallery-item {
  overflow: hidden;
  background: var(--bg-2);
  position: relative;
}
.gallery-item img,
.gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease);
}
.gallery-item:hover img,
.gallery-item:hover video { transform: scale(1.04); }

/* Video indicator badge */
.gallery-item:has(video)::after {
  content: '';
  position: absolute;
  bottom: 10px;
  left: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.15);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px;
  z-index: 2;
  pointer-events: none;
}

@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 220px; }
}
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 200px; }
}

/* ─── Lightbox ───────────────────────────────────────────────── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(42,40,36,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox-inner {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-inner img,
.lightbox-inner video {
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  display: block;
  border-radius: 2px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6);
}
.lightbox-close {
  position: fixed;
  top: 20px;
  right: 24px;
  width: 40px;
  height: 40px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
  transition: background 0.2s;
  z-index: 1001;
}
.lightbox-close:hover { background: var(--accent); color: #111010; }
.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
  transition: background 0.2s;
  z-index: 1001;
}
.lightbox-nav:hover { background: var(--accent); color: #111010; }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* Placeholder visuals */
.vis-1 { background: linear-gradient(135deg, #1a1612 0%, #0f1a1e 50%, #16121a 100%); }
.vis-2 { background: linear-gradient(135deg, #1e1a10 0%, #2a1e0e 100%); }
.vis-3 { background: linear-gradient(135deg, #0e1620 0%, #0e1e1e 100%); }
.vis-4 { background: linear-gradient(135deg, #1e0e14 0%, #140e1e 100%); }
.vis-5 { background: linear-gradient(135deg, #0e1a0e 0%, #0e1a16 100%); }
.vis-6 { background: linear-gradient(135deg, #0e1420 0%, #1a1430 100%); }

.vis-noise {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
  background-size: 256px;
  opacity: 0.5;
}

/* ─── Work Card Slideshow ───────────────────────────────────── */
.work-slide {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.9s ease;
  z-index: 1;
}
.work-slide.active { opacity: 1; }
.slide-dots {
  position: absolute;
  bottom: 12px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 3;
}
.slide-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  transition: background 0.3s;
}
.slide-dot.active { background: rgba(255,255,255,0.9); }

/* ─── About Strip ───────────────────────────────────────────── */
.about-strip {
  padding: 72px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.about-strip .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-positioning {
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  line-height: 1.65;
  font-weight: 400;
  color: var(--text);
}
.about-positioning strong { font-weight: 600; color: var(--accent-2); }
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.stat-item {}
.stat-num {
  font-family: var(--mono);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-num span { color: var(--accent); }
.stat-label {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* ─── Focus Areas ───────────────────────────────────────────── */
.focus-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}
.focus-card {
  background: var(--bg-2);
  padding: 40px 36px;
  transition: background 0.2s;
}
.focus-card:hover { background: var(--bg-3); }
.focus-icon {
  width: 44px; height: 44px;
  border-radius: 8px;
  background: rgba(201,169,110,0.08);
  border: 1px solid rgba(201,169,110,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.focus-icon svg { stroke: var(--accent); }
.focus-card h3 { margin-bottom: 12px; font-size: 1rem; }
.focus-card p { font-size: 0.875rem; color: var(--muted); line-height: 1.7; }
.focus-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.focus-card:hover .tag { color: var(--text); border-color: #554f44; }

/* ─── Lab Page ──────────────────────────────────────────────── */
.page-hero {
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--nav-h) + 72px);
  padding-bottom: 72px;
}
.page-hero .container {
  position: relative;
  z-index: 3;
}
.page-hero .label { margin-bottom: 16px; }
.page-hero p {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 480px;
  margin-top: 16px;
  line-height: 1.7;
}

.lab-filters {
  display: flex;
  gap: 4px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}
.filter-btn {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 2px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
}
.filter-btn:hover { color: var(--text); border-color: #554f44; }
.filter-btn.active {
  background: var(--accent);
  color: #111010;
  border-color: var(--accent);
}

.lab-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.lab-card {
  background: var(--bg-2);
  overflow: hidden;
  transition: background 0.2s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.lab-card:hover { background: var(--bg-3); }
.lab-card.hidden { display: none; }
.lab-thumb {
  aspect-ratio: 16/10;
  overflow: hidden;
  position: relative;
}
.lab-thumb-inner {
  width: 100%; height: 100%;
  transition: transform 0.5s var(--ease);
}
.lab-card:hover .lab-thumb-inner { transform: scale(1.04); }
.lab-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.lab-card .work-tag { margin-bottom: 6px; }
.lab-card h3 { font-size: 0.95rem; margin-bottom: 8px; }
.lab-card p { font-size: 0.82rem; color: var(--muted); line-height: 1.6; flex: 1; }
.lab-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.lab-date {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.06em;
}
.lab-link {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: gap 0.2s;
}
.lab-card:hover .lab-link { gap: 8px; }

/* Lab visual backgrounds */
.lv-1 { background: linear-gradient(160deg, #0e1820 0%, #0a1c16 100%); }
.lv-2 { background: linear-gradient(160deg, #201a0e 0%, #1a100e 100%); }
.lv-3 { background: linear-gradient(160deg, #0e1020 0%, #160e20 100%); }
.lv-4 { background: linear-gradient(160deg, #101e0a 0%, #0a1e12 100%); }
.lv-5 { background: linear-gradient(160deg, #200a0a 0%, #180a18 100%); }
.lv-6 { background: linear-gradient(160deg, #0a1e1e 0%, #0e1420 100%); }
.lv-7 { background: linear-gradient(160deg, #1c1a0e 0%, #201a0e 100%); }
.lv-8 { background: linear-gradient(160deg, #100e20 0%, #200a14 100%); }
.lv-9 { background: linear-gradient(160deg, #0a1e0a 0%, #0a1e1e 100%); }

/* ─── Contact Page ──────────────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
  padding-top: calc(var(--nav-h) + 72px);
  padding-bottom: 120px;
}
.contact-info {}
.contact-info .label { margin-bottom: 20px; }
.contact-info h2 { margin-bottom: 20px; }
.contact-info > p {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 40px;
}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.contact-item .label { color: var(--muted); }
.contact-item a {
  font-size: 0.95rem;
  color: var(--text);
  transition: color 0.2s;
}
.contact-item a:hover { color: var(--accent); }

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-group label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 13px 16px;
  color: var(--text);
  font-size: 14px;
  transition: border-color 0.2s, background 0.2s;
  outline: none;
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #554f44;
  background: var(--bg-3);
}
.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23666' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
}
.form-group select option { background: var(--bg-2); }
.form-group textarea {
  resize: vertical;
  min-height: 140px;
  font-family: inherit;
  line-height: 1.6;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #3a3630; }
.form-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 8px;
}
.form-note {
  font-size: 12px;
  color: var(--muted);
}
.form-success {
  display: none;
  padding: 16px 20px;
  background: rgba(201,169,110,0.06);
  border: 1px solid rgba(201,169,110,0.2);
  border-radius: 4px;
  font-size: 14px;
  color: var(--accent);
}

/* ─── Footer ────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 36px 0;
}
footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-left {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}
.footer-left span { color: var(--text); }
.footer-links {
  display: flex;
  gap: 28px;
  list-style: none;
}
.footer-links a {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }

/* ─── Divider ───────────────────────────────────────────────── */
.divider { border: none; border-top: 1px solid var(--border); margin: 0; }

/* ─── Scroll reveal ─────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }

/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .work-card { grid-column: span 6; }
  .lab-grid { grid-template-columns: repeat(2, 1fr); }
  .focus-grid { grid-template-columns: repeat(2, 1fr); }
  .about-strip .container { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 768px) {
  :root { --nav-h: 56px; }
  section { padding: 64px 0; }
  .container { padding: 0 20px; }
  h1 { font-size: 2.6rem; }
  .work-card { grid-column: span 12; }
  .focus-grid { grid-template-columns: 1fr; }
  .lab-grid { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; padding-top: calc(var(--nav-h) + 48px); }
  .form-row { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .nav-links { gap: 20px; }
  .section-header { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  h1 { font-size: 2.1rem; }
}

/* ─── Hamburger / mobile nav ─────────────────────────────────── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 200;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s;
  transform-origin: center;
}
/* X state */
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(26,24,22,0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 16px 0 24px;
    border-bottom: 1px solid var(--border);
    z-index: 150;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 14px 24px;
    font-size: 15px;
  }
  .nav-links a::after { display: none; }
}
