/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #0d0d0d;
  --surface: #161616;
  --surface-2: #1e1e1e;
  --border: #2a2a2a;
  --text: #e8e8e8;
  --text-muted: #888;
  --text-faint: #555;
  --accent: #b8b8b8;
  --accent-hover: #d0d0d0;
  --nav-height: 70px;
  --gap: 10px;
  --transition: 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Crimson Text', Georgia, serif;
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  color: inherit;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4 {
  font-family: 'Crimson Text', Georgia, serif;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }

.label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
  background: rgba(13, 13, 13, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), border-color var(--transition),
              backdrop-filter var(--transition);
}

/* Hero page only: transparent until scrolled */
.nav.nav-hero:not(.scrolled) {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid transparent;
}

/* Black text while transparent on hero */
.nav.nav-hero:not(.scrolled) .nav-logo       { color: #111; }
.nav.nav-hero:not(.scrolled) .nav-logo span  { color: #444; }
.nav.nav-hero:not(.scrolled) .nav-links a    { color: #222; }
.nav.nav-hero:not(.scrolled) .nav-links a:hover,
.nav.nav-hero:not(.scrolled) .nav-links a.active { color: #000; }
.nav.nav-hero:not(.scrolled) .nav-toggle span { background: #111; }

.nav-logo {
  font-family: 'Crimson Text', serif;
  font-size: 1.3rem;
  letter-spacing: 0.05em;
  color: var(--text);
  transition: color var(--transition);
}

.nav-logo span {
  color: var(--accent);
}

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

.nav-links a {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width var(--transition);
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--text);
  transition: transform var(--transition), opacity var(--transition);
}

.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); }

/* Mobile nav */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: rgba(13, 13, 13, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 2rem clamp(1.5rem, 5vw, 4rem);
  z-index: 99;
  transform: translateY(-10px);
  opacity: 0;
  pointer-events: none;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-mobile.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

.nav-mobile a {
  display: block;
  font-size: 1.2rem;
  font-family: 'Crimson Text', serif;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  transition: color var(--transition);
}

.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a:hover { color: var(--text); }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../pictures/2025/banner.jpg');
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  transition: transform 8s ease;
}

.hero.loaded .hero-bg {
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(13,13,13,0.3) 0%,
    rgba(13,13,13,0.1) 40%,
    rgba(13,13,13,0.6) 80%,
    rgba(13,13,13,0.9) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 0 clamp(1.5rem, 5vw, 8rem);
  max-width: 900px;
  opacity: 0;
  transform: translateY(30px);
  animation: heroFadeIn 1.2s ease 0.3s forwards;
}

@keyframes heroFadeIn {
  to { opacity: 1; transform: translateY(0); }
}

.hero-label {
  margin-bottom: 1.2rem;
  color: rgba(255,255,255,0.85);
}

.hero-title {
  color: #fff;
  margin-bottom: 1.2rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.hero-title em {
  font-style: italic;
  color: #fff;
}

.hero-subtitle {
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  max-width: 500px;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 1;
  opacity: 0;
  animation: heroFadeIn 1s ease 1.5s forwards;
}

.hero-scroll span {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.5; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.1); }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--accent);
  color: #0d0d0d;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(184, 184, 184, 0.25);
}

.btn-outline {
  border: 1px solid rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.8);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
  padding: clamp(4rem, 8vw, 8rem) clamp(1.5rem, 5vw, 4rem);
}

.section-header {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-header.centered {
  text-align: center;
}

.section-header .label {
  display: block;
  margin-bottom: 0.8rem;
}

.section-title {
  color: var(--text);
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 600px;
  margin-top: 0.8rem;
}

.section-header.centered .section-subtitle {
  margin: 0.8rem auto 0;
}

/* ============================================
   FEATURED GRID (Homepage)
   ============================================ */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  max-width: 1400px;
  margin: 0 auto;
}

.featured-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  cursor: pointer;
  background: var(--surface);
}

.featured-card:first-child {
  aspect-ratio: 4/5;
}

.featured-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  filter: brightness(0.85);
}

.featured-card:hover img {
  transform: scale(1.05);
  filter: brightness(1);
}

.featured-card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 1.5rem 1.5rem;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
  transform: translateY(10px);
  transition: transform var(--transition);
}

.featured-card:hover .featured-card-info {
  transform: translateY(0);
}

.featured-card-category {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.featured-card-title {
  font-family: 'Crimson Text', serif;
  font-size: 1.1rem;
  color: #fff;
}

/* ============================================
   GALLERY PAGE
   ============================================ */
.page-header {
  padding-top: calc(var(--nav-height) + 4rem);
  padding-bottom: 3rem;
  padding-left: clamp(1.5rem, 5vw, 4rem);
  padding-right: clamp(1.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
}

.page-header .label { margin-bottom: 0.8rem; }

.gallery-filter {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  padding-bottom: 0.5rem;
}

.filter-btn {
  padding: 0.5rem 1.3rem;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border);
  transition: all var(--transition);
  background: transparent;
}

.filter-btn:hover {
  color: var(--text);
  border-color: var(--text-faint);
}

.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #0d0d0d;
}

.gallery-count {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

.gallery-count span {
  color: var(--accent);
  font-weight: 500;
}

/* Masonry Grid */
.gallery-grid {
  columns: 3;
  column-gap: var(--gap);
  padding: 0 clamp(1.5rem, 5vw, 4rem);
  padding-bottom: 6rem;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: var(--gap);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--surface);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.gallery-item.hidden {
  display: none;
}

.gallery-item.fade-out {
  opacity: 0;
  transform: scale(0.97);
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease, filter 0.5s ease;
  filter: brightness(0.9);
}

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

/* Lazy load blur-up */
.gallery-item img.lazy {
  filter: blur(8px) brightness(0.7);
  transform: scale(1.02);
}

.gallery-item img.lazy-loaded {
  filter: brightness(0.9);
  transform: scale(1);
  transition: filter 0.6s ease, transform 0.6s ease;
}

.gallery-item:hover img.lazy-loaded {
  filter: brightness(1);
  transform: scale(1.03);
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.gallery-item:hover .gallery-item-overlay {
  background: rgba(0,0,0,0.25);
}

.gallery-item-overlay svg {
  opacity: 0;
  transform: scale(0.8);
  transition: opacity var(--transition), transform var(--transition);
  color: #fff;
}

.gallery-item:hover .gallery-item-overlay svg {
  opacity: 1;
  transform: scale(1);
}

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(4px);
}

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

.lightbox-inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 5rem;
}

.lightbox-img-wrap {
  position: relative;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#lightbox-img {
  max-width: 100%;
  max-height: calc(100vh - 10rem);
  object-fit: contain;
  box-shadow: 0 30px 80px rgba(0,0,0,0.8);
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#lightbox-img.loaded {
  opacity: 1;
  transform: scale(1);
}

.lightbox-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-spinner {
  width: 32px;
  height: 32px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.lightbox-caption {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  pointer-events: none;
}

.lightbox-title {
  font-family: 'Crimson Text', serif;
  font-size: 1rem;
  color: var(--text);
  display: block;
}

.lightbox-counter {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  margin-top: 0.3rem;
  display: block;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: color var(--transition), transform var(--transition);
  z-index: 10;
}

.lightbox-close:hover {
  color: var(--text);
  transform: rotate(90deg);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.4);
  border: 1px solid rgba(255,255,255,0.1);
  transition: all var(--transition);
  z-index: 10;
}

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

.lightbox-prev:hover,
.lightbox-next:hover {
  color: var(--text);
  border-color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.05);
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

.about-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 7rem);
  align-items: start;
  padding: calc(var(--nav-height) + 5rem) clamp(1.5rem, 5vw, 4rem) 5rem;
}

.about-img-wrap {
  position: sticky;
  top: calc(var(--nav-height) + 2rem);
}

.about-img-wrap img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  filter: brightness(0.9);
}

.about-bio .label {
  display: block;
  margin-bottom: 1rem;
}

.about-bio h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: 1.5rem;
}

.about-bio .lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.about-bio p {
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  font-size: 0.95rem;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2.5rem 0;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat-num {
  display: block;
  font-family: 'Crimson Text', serif;
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 0.2rem;
}

.stat-label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.about-equipment {
  background: var(--surface);
  padding: clamp(3rem, 5vw, 5rem) clamp(1.5rem, 5vw, 4rem);
  border-top: 1px solid var(--border);
}

.equipment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 2.5rem auto 0;
}

.equipment-item {
  padding: 1.5rem;
  border: 1px solid var(--border);
  transition: border-color var(--transition);
}

.equipment-item:hover {
  border-color: var(--accent);
}

.equipment-item .label {
  display: block;
  margin-bottom: 0.5rem;
}

.equipment-item h4 {
  font-family: 'Crimson Text', serif;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text);
}

.equipment-item p {
  font-size: 0.8rem;
  color: var(--text-faint);
  margin-top: 0.3rem;
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-wrapper {
  padding: 0 clamp(1.5rem, 5vw, 4rem) 6rem;
  max-width: 720px;
  margin: 0 auto;
}

.contact-intro {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 56ch;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: clamp(3rem, 6vw, 7rem);
  align-items: start;
  margin-top: 3rem;
}

.contact-info .label {
  display: block;
  margin-bottom: 0.8rem;
}

.contact-info h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-bottom: 1.2rem;
}

.contact-info p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--border);
  transition: border-color var(--transition);
}

.contact-detail:hover {
  border-color: var(--accent);
}

.contact-detail svg {
  color: var(--accent);
  flex-shrink: 0;
}

.contact-detail-text small {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.contact-detail-text span {
  font-size: 0.9rem;
  color: var(--text);
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.85rem 1rem;
  font-family: 'Crimson Text', serif;
  font-size: 0.9rem;
  font-weight: 300;
  outline: none;
  transition: border-color var(--transition);
  -webkit-appearance: none;
  appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-faint);
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23888' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-group select option {
  background: var(--surface-2);
}

.form-error {
  font-size: 0.75rem;
  color: #e07070;
  display: none;
}

.form-group.error input,
.form-group.error textarea {
  border-color: #e07070;
}

.form-group.error .form-error {
  display: block;
}

.form-success {
  display: none;
  padding: 3rem 2rem;
  text-align: center;
  border: 1px solid var(--border);
  background: var(--surface);
}

.form-success.visible {
  display: block;
}

.form-success-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(200, 169, 110, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
  color: var(--accent);
}

.form-success h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.form-success p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ============================================
   CV PAGE
   ============================================ */
.cv-wrapper {
  max-width: 860px;
  margin: 0 auto;
  padding: calc(var(--nav-height) + 4rem) clamp(1.5rem, 5vw, 4rem) 6rem;
}

.cv-intro {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 3rem;
  align-items: start;
  margin-bottom: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--border);
}

.cv-intro-text .label { display: block; margin-bottom: 0.8rem; }

.cv-intro-text h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 1rem;
}

.cv-intro-text .lead {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.cv-intro-text p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 0.8rem;
}

.cv-contact-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.cv-contact-links a {
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color var(--transition);
}

.cv-contact-links a:hover { color: var(--accent); }

.cv-contact-links svg { color: var(--accent); flex-shrink: 0; }

/* ── Contact form on CV page ──────────────────────────────── */
.cv-contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1.5rem;
  max-width: 460px;
}

.cv-contact-label {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-top: 0.4rem;
}

.cv-contact-form input,
.cv-contact-form textarea {
  font-family: 'Crimson Text', Georgia, serif;
  font-size: 1rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0.65rem 0.8rem;
  width: 100%;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.cv-contact-form textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.5;
}

.cv-contact-form input:focus,
.cv-contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #1b1b1b;
}

.cv-contact-form button {
  align-self: flex-start;
  margin-top: 0.8rem;
  cursor: pointer;
}

.cv-photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  filter: brightness(0.9);
}

.cv-section {
  margin-bottom: 3.5rem;
}

.cv-section-heading {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--border);
}

.cv-section-heading h2 {
  font-size: 1rem;
  font-family: 'Crimson Text', serif;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text);
}

.cv-entry {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 1.5rem 2rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--border);
}

.cv-entry:last-child { border-bottom: none; }

.cv-entry-date {
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  padding-top: 0.15rem;
  line-height: 1.5;
}

.cv-entry-title {
  font-family: 'Crimson Text', serif;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 0.25rem;
  line-height: 1.4;
}

.cv-entry-org {
  font-size: 0.82rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.cv-entry-details {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.cv-entry-details ul { margin-top: 0.4rem; }

.cv-entry-details li {
  list-style: none;
  padding-left: 1rem;
  position: relative;
  margin-bottom: 0.25rem;
}

.cv-entry-details li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--text-faint);
}

.cv-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.8rem 0;
}

.cv-skill {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.cv-skill:hover {
  border-color: var(--accent);
  color: var(--accent);
}

@media (max-width: 768px) {
  .cv-intro { grid-template-columns: 1fr; }
  .cv-intro-text { order: 1; }
  .cv-photo-wrap { order: 0; max-width: 200px; }
  .cv-entry { grid-template-columns: 1fr; gap: 0.3rem; }
  .cv-entry-date { color: var(--text-faint); font-size: 0.72rem; }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 2.5rem clamp(1.5rem, 5vw, 4rem);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  font-family: 'Crimson Text', serif;
  font-size: 1rem;
  color: var(--text-muted);
}

.footer-logo span { color: var(--accent); }

.footer-copy {
  font-size: 0.75rem;
  color: var(--text-faint);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.footer-claude-badge {
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  border: 1px solid var(--border);
  padding: 0.15rem 0.45rem;
  border-radius: 3px;
  text-decoration: none;
  transition: color var(--transition), border-color var(--transition);
}

.footer-claude-badge:hover {
  color: var(--text-muted);
  border-color: var(--text-faint);
}

.footer-social {
  display: flex;
  gap: 1.2rem;
}

.footer-social a {
  color: var(--text-faint);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color var(--transition);
}

.footer-social a:hover {
  color: var(--accent);
}

/* ============================================
   SCIENCE PAGE
   ============================================ */
.science-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}

.science-stat {
  padding: 1.5rem;
  border: 1px solid var(--border);
  text-align: center;
}

.science-stat .stat-num {
  display: block;
  font-family: 'Crimson Text', serif;
  font-size: 2.2rem;
  color: var(--accent);
  margin-bottom: 0.2rem;
}

.science-stat .stat-label {
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.pub-list {
  padding: 0 clamp(1.5rem, 5vw, 4rem) 6rem;
  max-width: 1200px;
  margin: 0 auto;
}

.pub-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 2rem;
  border: 1px solid var(--border);
  margin-bottom: 1.2rem;
  transition: border-color var(--transition), background var(--transition);
}

.pub-card.has-cover {
  grid-template-columns: 1fr 220px;
}

.pub-card:hover {
  border-color: var(--text-faint);
  background: var(--surface);
}

/* Graphical abstract sits above the title inside .pub-card-content */
.pub-card-abstract {
  margin-bottom: 0.5rem;
}

.pub-card-abstract img {
  width: 67%;
  height: auto;
  display: block;
}

/* Cover art sidebar */
.pub-card-cover {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  align-self: start;
  position: sticky;
  top: 5rem;           /* stays visible while scrolling through a long card */
}

.pub-cover-label {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  text-align: center;
}

.pub-card-cover img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.pub-card-content {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.pub-card-title {
  font-family: 'Crimson Text', serif;
  font-size: 1.15rem;
  color: var(--text);
  line-height: 1.4;
}

.pub-card-title a {
  transition: color var(--transition);
}

.pub-card-title a:hover {
  color: var(--accent);
}

.pub-card-authors {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.pub-card-authors strong {
  color: var(--text);
  font-weight: 500;
}

.pub-card-journal {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}

.pub-card-journal span {
  font-style: normal;
  color: var(--text-faint);
}

.pub-card-meta {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-top: 0.3rem;
}

.citation-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.8rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.03em;
}

.citation-badge svg {
  color: var(--accent);
}

.pub-doi {
  font-size: 0.78rem;
  color: var(--text-faint);
  transition: color var(--transition);
}

.pub-doi:hover {
  color: var(--accent);
}

.pub-card-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: 0.2rem;
}

.pub-tag {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.pub-card:hover .pub-tag {
  border-color: var(--text-faint);
}

.pub-year-group {
  margin-bottom: 3rem;
}

.pub-year-heading {
  font-family: 'Crimson Text', serif;
  font-size: 1.6rem;
  color: var(--text);
  padding-bottom: 0.8rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

/* A small italic callout for notes like "Highlighted in …" */
.pub-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
  padding: 0.35rem 0.75rem;
  border-left: 2px solid var(--accent);
  margin: 0.3rem 0;
}

/* Cover-art badge: same shape as a normal tag, but tinted with the accent */
.pub-tag.cover-art {
  color: var(--accent);
  border-color: var(--accent);
}

/* ============================================
   SCROLL REVEAL
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ============================================
   CTA SECTION (Homepage)
   ============================================ */
.cta-section {
  text-align: center;
  padding: clamp(5rem, 8vw, 9rem) clamp(1.5rem, 5vw, 4rem);
  border-top: 1px solid var(--border);
}

.cta-section .label { margin-bottom: 1rem; }
.cta-section h2 { margin-bottom: 0.8rem; }
.cta-section p {
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 2.5rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .gallery-grid { columns: 2; }
  .featured-grid { grid-template-columns: 1fr 1fr; }
  .featured-grid .featured-card:last-child { grid-column: span 2; }
  .about-hero { grid-template-columns: 1fr; }
  .about-img-wrap { position: static; max-width: 500px; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --nav-height: 60px; }

  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-mobile { display: block; }

  .gallery-grid { columns: 1; }
  .featured-grid {
    grid-template-columns: 1fr;
  }

  .about-stats { grid-template-columns: repeat(3, 1fr); }

  .pub-card,
  .pub-card.has-cover { grid-template-columns: 1fr; }
  .pub-card-cover { flex-direction: row; align-items: flex-start; position: static; }
  .pub-card-cover img { max-width: 100px; }
  .science-summary { grid-template-columns: repeat(2, 1fr); }

  .form-row { grid-template-columns: 1fr; }

  .lightbox-inner { padding: 4rem 1rem; }
  .lightbox-prev { left: 0.5rem; }
  .lightbox-next { right: 0.5rem; }

  .footer { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { text-align: center; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .gallery-filter { gap: 0.4rem; }
}
