/* style.css */

/* 1. IMPORT FONTS */
@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=Roboto:wght@300;400;500&display=swap");

/* 2. VARIABLE FONTS */
:root {
  --font-heading: "Playfair Display", serif;
  --font-body:    "Roboto", sans-serif;
}

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

/*========================================
  2. VARIABLES
========================================*/
:root {
  /* Brand */
  --brand: #748a35;           /* requested dominant green */
  --brand-700: #5f742e;
  --brand-900: #3d4b1c;

  /* Page background (place your forest photo here) */
  --page-bg-image: url("../images/forest-bg.jpg");
  --page-bg-overlay: rgba(7, 10, 6, 0.45);

  /* Surfaces */
  --surface: rgba(255, 255, 255, 0.88);
  --surface-strong: rgba(255, 255, 255, 0.94);
  --surface-border: rgba(255, 255, 255, 0.18);

  /* Glass (hero text tile) */
  --glass: rgba(14, 18, 12, 0.62);
  --glass-border: rgba(255, 255, 255, 0.14);

  /* Typography + color */
  --color-bg: #0e1409;        /* fallback (behind the forest photo) */
  --color-navbar: var(--brand);
  --color-text: #1a2016;
  --color-text-on-dark: #f3f6ee;
  --color-link: #ffffff;      /* link color in navbar */

  /* Shadows / radius */
  --radius-lg: 14px;
  --shadow-lg: 0 14px 34px rgba(0, 0, 0, 0.22);
  --shadow-md: 0 10px 24px rgba(0, 0, 0, 0.10);

  /* Fonts */
  --font-primary: "Roboto", sans-serif; /* korzystamy z Roboto */
}

/*========================================
  3. FONT-FACE (opcjonalnie, jeśli dodasz własne fonty)
========================================*/


/*========================================
  4. BASE STYLES
========================================*/
html {
  font-size: 16px;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.6;
  padding-top: 0; /* sticky header stays in normal flow, so no global top offset is needed */
  min-height: 100vh;
  position: relative;
}

/* Full-page forest photo + subtle overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: var(--page-bg-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  z-index: -2;
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 8, 5, 0.55) 0%, rgba(6, 8, 5, 0.30) 55%, rgba(6, 8, 5, 0.55) 100%),
    var(--page-bg-overlay);
  z-index: -1;
  pointer-events: none;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--color-text);
  line-height: 1.2;
  margin-bottom: 0.5rem;
  font-family: var(--font-heading);
}

p {
  margin-bottom: 1rem;
}

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

/* główny kontener treści */
main {
  max-width: 1200px;
  margin: 0 auto 3rem;
  padding: 2rem 1rem;
}

.muted {
  opacity: 0.85;
}

/*========================================
  5. NAVBAR / HEADER
========================================*/
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(116, 138, 53, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0.65rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.navbar-logos {
  display: flex;
  align-items: center;
}

.navbar-logos .logo-link img {
  height: 40px;
  margin-right: 0.5rem;
}

.navbar-links {
  list-style: none;
  display: flex;
  gap: 1rem;
}

.navbar-links a {
  color: var(--color-link);
  font-weight: bold;
  padding: 0.25rem 0.5rem;
  transition: opacity 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
  border-bottom: 2px solid transparent;
  border-radius: 10px;
}

.navbar-links a:hover {
  opacity: 1;
  background-color: rgba(255, 255, 255, 0.10);
}

.navbar-links a.active {
  border-bottom-color: #ffffff;
}

/*========================================
  6. TEAM LEADER SECTION
========================================*/
/* Sekcja lidera: ciemne tło, jasny tekst */
.leader-section {
  display: flex;
  flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--color-text-on-dark);
  padding: 1.5rem 1.25rem;
  border-radius: var(--radius-lg);
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto 3rem;
  box-shadow: var(--shadow-lg);
}

/* Zdjęcie po lewej */
.leader-photo img {
  width: 250px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 10px 22px rgba(0,0,0,0.28);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

/* Tekst po prawej */
.leader-info {
  flex: 1;
  font-family: var(--font-body);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.25rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.leader-info h1,
.leader-info h2 {
  color: var(--color-text-on-dark);
}

.leader-info h1 {
  font-size: 2rem;
}

.leader-info h2 {
  font-size: 1.1rem;
  font-family: var(--font-body);
  font-weight: 500;
  opacity: 0.95;
  margin-bottom: 1rem;
}

/* Akapity */
.leader-info p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

/* Linki społecznościowe – przejrzysty flex */
.leader-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.leader-links a img {
  width: 28px;
  height: 28px;
  filter: brightness(1) invert(1); /* jeśli ikonki są ciemne, zamienia je na jasne */
  transition: transform 0.2s;
}

.leader-links a:hover img {
  transform: scale(1.1);
}

/*========================================
  7. HIGHLIGHTS SECTION
========================================*/
.highlights {
  max-width: 1100px;
  margin: 0 auto 3rem;
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
}

.highlights h2 {
  margin-bottom: 1.5rem;
  font-size: 1.75rem;
}





/* dla ewentualnej starej wersji z listą */
.highlights ul {
  list-style: disc inside;
}

.highlights li {
  margin-bottom: 0.5rem;
}

/*========================================
  8. GRAPHICAL ABSTRACTS GALLERY
========================================*/
.abstracts-gallery {
  max-width: 1100px;
  margin: 0 auto 3rem;
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
}

.abstracts-gallery h2 {
  margin-bottom: 1.5rem;
}

.abstracts-gallery .gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.abstracts-gallery .gallery-item img {
  width: 100%;
  aspect-ratio: 16 / 9;  /* dostosowane do formatu 16:9 */
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.18);
}

/*========================================
  8b. TEAM PHOTO (HOME)
========================================*/
.team-photo-section {
  max-width: 1100px;
  margin: 0 auto 3rem;
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
}

.team-photo-section h2 {
  margin-bottom: 1rem;
}

.media-placeholder {
  width: 100%;
  aspect-ratio: 21 / 9;
  border-radius: 12px;
  border: 2px dashed rgba(116, 138, 53, 0.55);
  background: linear-gradient(180deg, rgba(116, 138, 53, 0.10), rgba(116, 138, 53, 0.02));
  box-shadow: 0 8px 18px rgba(0,0,0,0.10);
}

/* If you replace the placeholder with an <img class="team-photo"> */
.team-photo {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 8px 18px rgba(0,0,0,0.14);
}

/*========================================
  8c. VIDEO SECTION (HOME)
========================================*/
.video-section {
  max-width: 1100px;
  margin: 0 auto 3rem;
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
}

.video-section h2 {
  margin-bottom: 1rem;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.video-item {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.10);
  box-shadow: 0 8px 18px rgba(0,0,0,0.10);
  background: rgba(0, 0, 0, 0.08);
}

.video-item iframe {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  display: block;
}

/*========================================
  9. UTILITY CLASSES
========================================*/
.mt-1 { margin-top: 1rem !important; }
.mt-2 { margin-top: 2rem !important; }
.p-1  { padding: 1rem !important; }
.p-2  { padding: 2rem !important; }

/*========================================
 10. RESPONSIVE BREAKPOINTS – globalne
========================================*/
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }

  main {
    padding-top: 1.5rem;
  }

  .leader-section {
    flex-direction: column;
    align-items: center;
    text-align: left;
  }

  .leader-photo img {
    width: 180px;
  }

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

/* ======== 11. MEMBERS PAGE ======== */

/* separator między sekcjami robi się automatycznie w .section-title */
.section-title {
  position: relative;
  text-align: center;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-navbar);
  margin: 3rem 0 2rem;
  padding: 0 1rem;
}

/*========================================
  14. SIMPLE SCROLL ANIMATIONS (optional)
  Notes:
  - Elements remain visible by default.
  - When JS runs, it adds the 'js' class to <html> and we enable reveal animations.
========================================*/
.animate {
  opacity: 1;
  transform: none;
}

html.js .animate {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 650ms ease, transform 650ms ease;
}

html.js .animate.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html.js .animate {
    transition: none;
    transform: none;
    opacity: 1;
  }
}

.section-title::before,
.section-title::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background-color: var(--color-navbar);
}

.section-title::before {
  left: 0;
}

.section-title::after {
  right: 0;
}

/* wspólny wrapper dla zdjęć członków */
.member-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding: 0 1rem;
}

/* karta jednego członka */
.member-card {
  text-align: center;
}

.member-card img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  transition: transform 0.2s;
}

.member-card img:hover {
  transform: scale(1.05);
}

.member-card p {
  margin-top: 0.5rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
}

/* lista bez zdjęć */




/* responsive */
@media (max-width: 768px) {
  .member-list {
    gap: 1.5rem;
  }
  .member-card img {
    width: 120px;
    height: 120px;
  }
}

/* ===== Publications Page ===== */

/* 2.1 Stats card */
.stats-card {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 2rem;
  margin: 2rem auto;
  max-width: 800px;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 8px;
}

.stat-item {
  text-align: center;
}

.stat-item h3 {
  font-size: 2rem;
  color: var(--color-navbar);
}

.stat-item p {
  font-size: 1rem;
  color: var(--color-text);
}

/* 2.2 Scroll button */




/* 2.3 Tabs */
.list-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 1rem 1rem;
}

.tab-button {
  padding: 0.5rem 1rem;
  border: none;
  background: var(--color-navbar);
  color: var(--color-link);
  cursor: pointer;
  border-radius: 4px;
  transition: opacity 0.2s;
}

.tab-button:not(.active) {
  opacity: 0.6;
}

.tab-button.active {
  opacity: 1;
}

/* 2.4 List content */
.list-content {
  padding: 0 1rem 2rem;
}

.list-content ul {
  list-style: disc inside;
}

.list-content li {
  margin-bottom: 0.5rem;
}

/* 2.5 Responsive */
@media (max-width: 768px) {
  .stats-card {
    gap: 1rem;
  }
  .stat-item h3 {
    font-size: 1.5rem;
  }
  .list-tabs {
    flex-wrap: wrap;
  }
}

/* 3. Animacja pulsowania dla przycisku */
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.85;
  }
}

/* =========================================================
   Equipment page – refresh (match forest background + #748a35)
   ========================================================= */

.equipment-section {
  max-width: 1100px;
  margin: 0 auto 3rem;
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.equipment-section .section-title {
  margin: 0 0 1.5rem;
}

.equipment-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.equipment-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0,0,0,0.10);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.equipment-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.14);
}

.equipment-media {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.equipment-media img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  transform: scale(1);
  transition: transform 0.25s ease;
}

.equipment-card:hover .equipment-media img {
  transform: scale(1.03);
}

.equipment-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  font-weight: 700;
  color: #ffffff;
  background: rgba(116, 138, 53, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.equipment-info {
  padding: 1rem 1rem 1.15rem;
}

.equipment-info h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.08rem;
  line-height: 1.25;
  color: var(--color-text);
}

@media (max-width: 768px) {
  .equipment-section {
    padding: 1.5rem;
  }

  .equipment-media img {
    height: 170px;
  }
}

@media (max-width: 480px) {
  .equipment-media img {
    height: 160px;
  }
}

/* Lightbox (Equipment images) */
.lightbox {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(0, 0, 0, 0.72);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
  z-index: 2000;
}

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

.lightbox-image {
  max-width: min(1100px, 96vw);
  max-height: 86vh;
  width: auto;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(116, 138, 53, 0.92);
  color: #ffffff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.20);
}

.lightbox-close:hover {
  filter: brightness(1.05);
}

/*========================================
  13. CONTACT PAGE
========================================*/
.contact-page {
  padding: 3rem 1rem;
}

.contact-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
  gap: 2rem;
}

.contact-card,
.contact-map-card {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}

.contact-card h1 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.contact-card h2 {
  font-size: 1.4rem;
  margin-bottom: 0.25rem;
}

.contact-role {
  font-style: italic;
  margin-bottom: 1.5rem;
}

.contact-details p {
  margin-bottom: 1rem;
}

.contact-details a {
  color: var(--color-navbar);
  text-decoration: underline;
}

.contact-details a:hover {
  opacity: 0.8;
}

.contact-map-card h2 {
  margin-bottom: 0.5rem;
}

.contact-map-card p {
  margin-bottom: 1rem;
}

.map-embed iframe {
  width: 100%;
  min-height: 280px;
  border-radius: 8px;
  border: 0;
}

/* responsywność kontaktu */
@media (max-width: 900px) {
  .contact-container {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   Publications page – refresh (match forest background + #748a35)
   ========================================================= */

.page-header-card {
  max-width: 1000px;
  margin: 0 auto 1.25rem;
  padding: 1.6rem 1.8rem;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.page-header-card h1 {
  margin: 0 0 0.35rem;
}

/* Unify stats tile to the same surface language */
.stats-card {
  max-width: 1000px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.stat-item h3 {
  color: var(--brand);
}

/* Wrap lists in a readable, elegant surface */
.lists-section {
  max-width: 1000px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
}

.list-tabs {
  margin: 0;
  padding: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.tab-button {
  background: rgba(116, 138, 53, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 0.55rem 1rem;
}

.tab-button:not(.active) {
  opacity: 0.72;
}

.tab-button.active {
  opacity: 1;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
}

.list-content {
  padding: 0.25rem 1.25rem 1.25rem;
}

.pub-list {
  margin: 0;
  padding-left: 1.25rem;
}

.pub-list li {
  margin: 0.75rem 0;
  line-height: 1.55;
}

.pub-citation {
  color: var(--color-text);
}





@media (max-width: 768px) {
  .page-header-card,
  .stats-card,
  .lists-section {
    border-radius: 12px;
  }

  .list-tabs {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .tab-button {
    width: 100%;
    justify-content: center;
  }
}

/* ======== PROJECTS PAGE (spojne z forest + #748a35) ======== */

.projects-page {
  padding-bottom: 2.5rem;
}

/* Generic modern surface card (glass-like but readable) */
.surface-card {
  max-width: 1100px;
  margin: 0 auto 2rem;
  padding: 1.5rem 1.25rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
}

/* Page header card */
.page-hero {
  max-width: 1100px;
  margin: 0 auto 1.75rem;
}

.hero-card {
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.35rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-lg);
  color: var(--color-text-on-dark);
}

.hero-card h1 {
  color: var(--color-text-on-dark);
  margin-bottom: 0.35rem;
}

.hero-card .muted {
  color: rgba(243, 246, 238, 0.88);
}

/* Partner logos: uniform tiles with centered marks (consistent sizing + subtle "random" feel) */
.logo-mosaic {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
  margin-top: 1.25rem;
}

.logo-tile {
  grid-column: span 3; /* 4 tiles per row on wide screens */
  aspect-ratio: 3 / 2;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.22);
  overflow: hidden;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.14);
  transition: transform 180ms ease, box-shadow 180ms ease;

  /* Each tile can have a subtle offset/tilt without changing its size */
  --tilt: 0deg;
  --lift: 0px;
  transform: translateY(var(--lift)) rotate(var(--tilt));
}

.logo-tile:hover {
  transform: translateY(calc(var(--lift) - 2px)) rotate(var(--tilt));
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

.logo-tile img {
  display: block;
  width: auto;
  height: auto;
  max-width: 82%;
  max-height: 72%;
  object-fit: contain;
  filter: saturate(0.95) contrast(1.05);
}

/* Subtle "random" feel without changing the tile sizes */
.logo-tile:nth-child(1) { --tilt: -0.6deg; --lift: 2px; }
.logo-tile:nth-child(2) { --tilt:  0.8deg; --lift: -1px; }
.logo-tile:nth-child(3) { --tilt: -0.2deg; --lift: 1px; }
.logo-tile:nth-child(4) { --tilt:  0.4deg; --lift: -2px; }
.logo-tile:nth-child(5) { --tilt:  0.2deg; --lift: 2px; }
.logo-tile:nth-child(6) { --tilt: -0.7deg; --lift: -1px; }
.logo-tile:nth-child(7) { --tilt: -0.3deg; --lift: 1px; }
.logo-tile:nth-child(8) { --tilt:  0.6deg; --lift: -2px; }

@media (max-width: 980px) {
  .logo-tile { grid-column: span 4; } /* 3 tiles per row */
}

@media (max-width: 680px) {
  .logo-tile { grid-column: span 6; } /* 2 tiles per row */
}

@media (max-width: 420px) {
  .logo-tile { grid-column: span 12; } /* 1 tile per row */
}

/* Projects grid */
.project-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
  margin-top: 1.25rem;
}

.project-card {
  grid-column: span 4;
  border-radius: 16px;
  padding: 1.15rem 1.1rem;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.20);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
}

.project-card h3 {
  margin-bottom: 0.35rem;
}

.project-meta {
  font-size: 0.95rem;
  opacity: 0.82;
  margin-bottom: 0.65rem;
}

.project-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 0.85rem;
  padding-left: 0;
}

.project-tags li {
  font-size: 0.85rem;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(116, 138, 53, 0.14);
  border: 1px solid rgba(116, 138, 53, 0.28);
}

/* Responsive */
@media (max-width: 980px) {
  .project-card { grid-column: span 6; }
}

@media (max-width: 720px) {
  .logo-mosaic {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 86px;
  }
  .logo-tile { grid-column: auto !important; grid-row: auto !important; transform: none !important; }
  .project-card { grid-column: span 12; }
}

/* ===== HOME PAGE / NAVBAR IMPROVEMENTS ===== */
.navbar {
  gap: 1rem 2rem;
  flex-wrap: wrap;
  padding: 0.8rem 1.1rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.navbar-logos {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  flex-wrap: wrap;
}

.navbar-logos .logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.navbar-logos .logo-link img {
  height: 42px;
  margin-right: 0.35rem;
}

.navbar-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
}

.navbar-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.85rem;
  font-size: 0.95rem;
  line-height: 1.2;
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.04);
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.navbar-links a:hover {
  opacity: 1;
  background-color: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.navbar-links a.active {
  background-color: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.22);
}

/* ===== HOME PAGE / MODERN HIGHLIGHTS ===== */
.highlights-modern {
  padding: 2.35rem;
}

.highlights-header {
  max-width: 760px;
  margin-bottom: 1.75rem;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.85rem;
  margin-bottom: 0.9rem;
  border-radius: 999px;
  background: rgba(116, 138, 53, 0.12);
  color: var(--brand-900);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.highlights-modern h2 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.9rem, 3vw, 2.5rem);
}

.highlights-header p {
  margin-bottom: 0;
  max-width: 62ch;
  color: rgba(26, 32, 22, 0.82);
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
}

.highlight-card {
  grid-column: span 6;
  position: relative;
  padding: 1.4rem 1.25rem 1.25rem;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 247, 238, 0.94) 100%);
  border: 1px solid rgba(116, 138, 53, 0.16);
  box-shadow: 0 12px 28px rgba(17, 24, 10, 0.08);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.highlight-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--brand), rgba(116, 138, 53, 0.2));
}

.highlight-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(17, 24, 10, 0.12);
  border-color: rgba(116, 138, 53, 0.3);
}

.highlight-card-wide {
  grid-column: span 12;
}

.highlight-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 0.95rem;
  border-radius: 14px;
  background: rgba(116, 138, 53, 0.12);
  color: var(--brand-900);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.highlight-card h3 {
  margin-bottom: 0.7rem;
  font-size: 1.28rem;
}

.highlight-card p {
  margin-bottom: 0;
  color: rgba(26, 32, 22, 0.82);
}

@media (max-width: 900px) {
  .highlight-card,
  .highlight-card-wide {
    grid-column: span 12;
  }
}

@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .navbar-links {
    justify-content: flex-start;
  }

  .highlights-modern {
    padding: 1.5rem;
  }

  .highlight-card h3 {
    font-size: 1.14rem;
  }
}

/* ===== MEMBERS PAGE / ELEGANT REFRESH ===== */
:root {
  --members-accent: #2f3b52;
  --members-accent-soft: rgba(47, 59, 82, 0.10);
  --members-border: rgba(47, 59, 82, 0.10);
  --members-shadow: 0 14px 32px rgba(15, 22, 16, 0.10);
}

.members-page {
  max-width: 1120px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.members-page .members-section {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 20px;
  padding: 2rem 1.5rem 2.2rem;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.members-page .section-title {
  margin: 0 0 1.65rem;
  color: var(--members-accent);
  font-size: clamp(1.55rem, 2.8vw, 2rem);
}

.members-page .section-title::before,
.members-page .section-title::after {
  width: 34%;
  background: linear-gradient(90deg, rgba(47, 59, 82, 0), rgba(47, 59, 82, 0.65), rgba(47, 59, 82, 0));
}

.members-page .section-title::before {
  left: 0;
}

.members-page .section-title::after {
  right: 0;
}

.members-page .member-list {
  gap: 1.4rem;
  padding: 0;
}

.members-page .member-card {
  width: min(210px, 100%);
  padding: 1.2rem 1rem 1rem;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(244, 246, 250, 0.90) 100%);
  border: 1px solid var(--members-border);
  box-shadow: 0 10px 24px rgba(15, 22, 16, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.members-page .member-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--members-shadow);
  border-color: rgba(47, 59, 82, 0.18);
}

.members-page .member-card--leader {
  width: min(250px, 100%);
}

.members-page .member-card img,
.members-page .member-photo-placeholder {
  width: 148px;
  height: 148px;
  display: grid;
  place-items: center;
  margin: 0 auto;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.members-page .member-photo-placeholder {
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.92), rgba(255,255,255,0.62) 35%, rgba(214,221,232,0.9) 100%),
    linear-gradient(135deg, rgba(116,138,53,0.18), rgba(47,59,82,0.16));
  color: var(--members-accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.members-page .member-name {
  margin: 0.9rem 0 0;
  text-align: center;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--color-text);
}

.members-page .member-name strong {
  color: var(--members-accent);
  font-weight: 700;
}

.members-page .member-role {
  display: block;
  margin-top: 0.18rem;
  color: rgba(47, 59, 82, 0.76);
  font-size: 0.88rem;
}

.members-page .member-records {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
  gap: 0.95rem;
  padding: 0;
  margin: 0;
  counter-reset: dissertation;
}

.members-page .member-records li {
  counter-increment: dissertation;
}

.members-page .record-card {
  position: relative;
  min-height: 100%;
  padding: 1.05rem 1rem 1rem 1.15rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.80);
  border: 1px solid rgba(47, 59, 82, 0.10);
  box-shadow: 0 8px 18px rgba(15, 22, 16, 0.06);
}

.members-page .record-card::before {
  content: counter(dissertation, decimal-leading-zero);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  margin-bottom: 0.8rem;
  border-radius: 12px;
  background: var(--members-accent-soft);
  color: var(--members-accent);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.members-page .record-card strong {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 1.02rem;
  line-height: 1.4;
  color: var(--members-accent);
  font-family: var(--font-body);
  font-weight: 700;
}

.members-page .record-card .record-year {
  color: rgba(47, 59, 82, 0.72);
  font-size: 0.92rem;
}

.members-page .students-note,
.members-page .records-note {
  max-width: 60ch;
  margin: -0.45rem auto 1.2rem;
  text-align: center;
  color: rgba(26, 32, 22, 0.76);
}

@media (max-width: 900px) {
  .members-page .section-title::before,
  .members-page .section-title::after {
    width: 27%;
  }
}

@media (max-width: 768px) {
  .members-page {
    gap: 1.2rem;
  }

  .members-page .members-section {
    padding: 1.5rem 1rem 1.75rem;
  }

  .members-page .section-title::before,
  .members-page .section-title::after {
    width: 20%;
  }

  .members-page .member-card {
    width: min(100%, 220px);
  }

  .members-page .member-card img,
  .members-page .member-photo-placeholder {
    width: 128px;
    height: 128px;
  }
}

@media (max-width: 520px) {
  .members-page .section-title::before,
  .members-page .section-title::after {
    display: none;
  }
}


/* ===== PROJECTS PAGE / REFINEMENT V2 ===== */
.projects-page {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  padding-bottom: 2.5rem;
}

.projects-page .page-hero {
  margin-bottom: 0;
}

.projects-page .hero-card {
  padding: 1.55rem 1.5rem;
}

.projects-page .hero-card h1 {
  font-size: clamp(2.1rem, 3.5vw, 2.95rem);
  margin-bottom: 0.45rem;
}

.projects-page .hero-card .muted {
  max-width: 64ch;
  color: rgba(243, 246, 238, 0.88);
}

.projects-page .surface-card {
  padding: 1.65rem;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.projects-page .section-head {
  max-width: 760px;
  margin-bottom: 1.25rem;
}

.projects-page .section-head h2 {
  color: var(--color-text-on-dark);
  margin-bottom: 0.55rem;
  font-size: clamp(1.7rem, 2.8vw, 2.25rem);
}

.projects-page .section-head p {
  color: rgba(243, 246, 238, 0.86);
  margin-bottom: 0;
}

.projects-page .section-kicker {
  background: rgba(255, 255, 255, 0.14);
  color: var(--color-text-on-dark);
}

.projects-page .surface-card--logos {
  overflow: hidden;
}

.projects-page .logo-stage {
  position: relative;
  padding: 1.15rem;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 249, 245, 0.96) 100%);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.10);
}

.projects-page .logo-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(116, 138, 53, 0.05), transparent 42%),
    linear-gradient(225deg, rgba(47, 59, 82, 0.05), transparent 38%);
  pointer-events: none;
}

.projects-page .logo-mosaic {
  position: relative;
  margin-top: 0;
  gap: 1rem;
}

.projects-page .logo-tile {
  aspect-ratio: 16 / 10;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(47, 59, 82, 0.08);
  box-shadow: 0 12px 25px rgba(18, 24, 12, 0.07);
  animation: partnerFloat 6s ease-in-out infinite;
}

.projects-page .logo-tile:hover {
  animation-play-state: paused;
  transform: translateY(-4px) rotate(var(--tilt)) scale(1.02);
  box-shadow: 0 18px 32px rgba(18, 24, 12, 0.12);
}

.projects-page .logo-tile img {
  max-width: 84%;
  max-height: 72%;
  object-fit: contain;
  filter: saturate(0.98) contrast(1.02);
}

@keyframes partnerFloat {
  0%, 100% {
    transform: translateY(var(--lift)) rotate(var(--tilt));
  }
  50% {
    transform: translateY(calc(var(--lift) - 6px)) rotate(var(--tilt));
  }
}

.projects-page .featured-projects {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.projects-page .project-grid-label {
  margin: 0 0 0.95rem;
  padding-top: 0.2rem;
  font-weight: 700;
  color: var(--color-text-on-dark);
  letter-spacing: 0.02em;
}

.projects-page .project-grid {
  margin-top: 0;
}

.projects-page .project-card {
  border-radius: 18px;
  padding: 1.2rem 1.15rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.10);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.projects-page .project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.14);
}

.projects-page .project-card h3 {
  margin-bottom: 0.45rem;
  font-size: 1.08rem;
  line-height: 1.35;
}

.projects-page .project-meta {
  color: rgba(26, 32, 22, 0.72);
  margin-bottom: 0;
}

.projects-page .project-card--featured {
  grid-column: span 6;
  position: relative;
  overflow: hidden;
  padding: 1.35rem 1.25rem 1.25rem 1.45rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 247, 238, 0.96) 65%, rgba(233, 239, 221, 0.98) 100%);
  border: 1px solid rgba(116, 138, 53, 0.24);
  box-shadow: 0 18px 36px rgba(12, 18, 9, 0.14);
}

.projects-page .project-card--featured::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--brand), var(--brand-900));
}

.projects-page .project-card--featured::after {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(116, 138, 53, 0.20) 0%, rgba(116, 138, 53, 0) 70%);
  pointer-events: none;
}

.projects-page .project-card--featured h3 {
  font-size: 1.26rem;
  line-height: 1.28;
}

.projects-page .project-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0.35rem 0.78rem;
  margin-bottom: 0.8rem;
  border-radius: 999px;
  background: rgba(116, 138, 53, 0.16);
  color: var(--brand-900);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.projects-page .project-description {
  margin: 0.75rem 0 0;
  color: rgba(26, 32, 22, 0.84);
}

.projects-page .project-tags {
  gap: 0.5rem;
  margin-top: 0.95rem;
}

.projects-page .project-tags li {
  background: rgba(116, 138, 53, 0.14);
  border: 1px solid rgba(116, 138, 53, 0.24);
}

@media (max-width: 980px) {
  .projects-page .project-card--featured {
    grid-column: span 12;
  }
}

@media (max-width: 768px) {
  .projects-page {
    gap: 1.4rem;
  }

  .projects-page .surface-card {
    padding: 1.35rem;
  }

  .projects-page .logo-stage {
    padding: 0.9rem;
  }

  .projects-page .logo-mosaic {
    gap: 0.8rem;
  }

  .projects-page .logo-tile {
    border-radius: 16px;
  }

  .projects-page .project-card--featured {
    padding: 1.2rem 1rem 1.1rem 1.2rem;
  }

  .projects-page .project-card--featured h3 {
    font-size: 1.16rem;
  }
}

@media (max-width: 720px) {
  .projects-page .project-grid-label {
    margin-bottom: 0.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .projects-page .logo-tile {
    animation: none !important;
    transform: none !important;
  }

  .projects-page .project-card,
  .projects-page .logo-tile {
    transition: none !important;
  }
}


/* ===== GLOBAL HEADER FIX ===== */
.site-header {
  margin-top: 0;
}

/* The header is sticky, not fixed. A body top padding pushed the entire layout down,
   creating the dark strip above the menu on every page. */
body {
  padding-top: 0;
}

/* ===== PROJECTS PAGE / CONSISTENT SECTION WIDTHS ===== */
.projects-page > .page-hero,
.projects-page > .surface-card {
  width: min(100%, 1100px);
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}

/* =========================================================
   Global navbar refresh – cumulative update
   ========================================================= */
















/* =========================================================
   Equipment page – modern refresh with modal descriptions
   ========================================================= */
.equipment-page .page-header-card {
  max-width: 1100px;
  background: linear-gradient(135deg, rgba(14, 18, 12, 0.72) 0%, rgba(20, 29, 13, 0.68) 55%, rgba(13, 18, 11, 0.74) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--color-text-on-dark);
  box-shadow: var(--shadow-lg);
}

.equipment-page .page-header-card h1 {
  color: var(--color-text-on-dark);
  font-size: clamp(2rem, 3.5vw, 2.85rem);
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.86rem;
  margin-bottom: 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #eef5df;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.equipment-page .page-header-card .muted {
  color: rgba(243, 246, 238, 0.88);
  opacity: 1;
  max-width: 62ch;
  margin-bottom: 0;
}

.equipment-section {
  max-width: 1100px;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.9);
}

.equipment-section-head {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1.5rem;
}

.equipment-section .section-title {
  margin: 0;
  color: #2f3b52;
}

.equipment-intro {
  max-width: 66ch;
  margin-bottom: 0;
  color: rgba(26, 32, 22, 0.76);
}

.equipment-grid {
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 1.35rem;
}

.equipment-card {
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(244, 247, 238, 0.95) 100%);
  border: 1px solid rgba(116, 138, 53, 0.14);
  box-shadow: 0 12px 28px rgba(12, 18, 9, 0.10);
}

.equipment-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 34px rgba(12, 18, 9, 0.14);
}

.equipment-trigger {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  padding: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.equipment-media {
  border-bottom: 1px solid rgba(116, 138, 53, 0.08);
}

.equipment-media img {
  height: 220px;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.equipment-card:hover .equipment-media img,
.equipment-trigger:focus-visible .equipment-media img {
  transform: scale(1.04);
  filter: saturate(1.02);
}

.equipment-overlay {
  position: absolute;
  inset: auto 12px 12px 12px;
  display: inline-flex;
  justify-content: center;
  pointer-events: none;
}

.equipment-overlay span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0.38rem 0.85rem;
  border-radius: 999px;
  background: rgba(14, 18, 12, 0.64);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  backdrop-filter: blur(10px);
}

.equipment-info {
  padding: 1rem 1rem 1.1rem;
}

.equipment-info h3 {
  margin-bottom: 0.55rem;
  font-size: 1.08rem;
  color: var(--color-text);
}

.equipment-teaser {
  margin-bottom: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(26, 32, 22, 0.78);
}

.equipment-trigger:focus-visible {
  outline: 3px solid rgba(116, 138, 53, 0.35);
  outline-offset: 3px;
  border-radius: 18px;
}

.lightbox {
  padding: 1.5rem;
  background: rgba(4, 7, 4, 0.82);
  backdrop-filter: blur(6px);
}

.lightbox-dialog {
  position: relative;
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 0;
  background: rgba(255, 255, 255, 0.97);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.35);
}

.lightbox-media-panel {
  min-height: 540px;
  background: linear-gradient(180deg, rgba(240, 244, 234, 0.98) 0%, rgba(226, 233, 217, 0.92) 100%);
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.lightbox-image {
  max-width: 100%;
  max-height: 72vh;
  border-radius: 18px;
  border: 1px solid rgba(116, 138, 53, 0.12);
  background: #ffffff;
}

.lightbox-copy {
  padding: 2rem 1.8rem 1.8rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(245, 247, 241, 0.96) 100%);
}

.lightbox-title {
  margin-bottom: 0.9rem;
  color: #1a2016;
  font-size: clamp(1.5rem, 2vw, 2rem);
}

.lightbox-description {
  margin-bottom: 0;
  color: rgba(26, 32, 22, 0.82);
  line-height: 1.72;
}

.lightbox-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  height: 46px;
  margin-bottom: 1rem;
  border-radius: 14px;
  background: rgba(116, 138, 53, 0.14);
  color: var(--brand-900);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.lightbox-close {
  top: 16px;
  right: 16px;
  z-index: 3;
}

@media (max-width: 980px) {
  .lightbox-dialog {
    grid-template-columns: 1fr;
    max-height: min(92vh, 980px);
    overflow: auto;
  }

  .lightbox-media-panel {
    min-height: 320px;
  }
}

@media (max-width: 768px) {
  .navbar {
    align-items: flex-start;
  }

  .equipment-section {
    padding: 1.5rem;
  }

  .equipment-media img {
    height: 190px;
  }

  .lightbox {
    padding: 0.8rem;
  }

  .lightbox-copy {
    padding: 1.35rem 1.2rem 1.25rem;
  }
}

@media (max-width: 520px) {
  .equipment-grid {
    grid-template-columns: 1fr;
  }

  .equipment-overlay span {
    width: 100%;
  }

  .lightbox-media-panel {
    min-height: 240px;
    padding: 0.9rem;
  }
}

/* =========================================================
   Publications page – v2 refresh
   ========================================================= */

.publications-page .page-header-card {
  max-width: 1100px;
  margin: 0 auto 1.35rem;
  padding: 1.85rem 1.9rem;
  background:
    linear-gradient(135deg, rgba(14, 18, 12, 0.74) 0%, rgba(20, 29, 13, 0.68) 55%, rgba(13, 18, 11, 0.76) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--color-text-on-dark);
  box-shadow: var(--shadow-lg);
}

.publications-page .page-header-card h1 {
  color: var(--color-text-on-dark);
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  margin-bottom: 0.45rem;
}

.publications-page .page-header-card .muted {
  color: rgba(243, 246, 238, 0.88);
  max-width: 64ch;
  opacity: 1;
  margin-bottom: 0;
}

.publications-page .page-header-card .section-kicker,
.publications-page .panel-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0.42rem 0.9rem;
  margin-bottom: 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #eef5df;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.publications-page .stats-card,
.publications-page .lists-section {
  max-width: 1100px;
  border-radius: 18px;
  overflow: hidden;
}

.publications-page .stats-card {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding: 1.15rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.publications-page .stat-item {
  padding: 1.15rem 1rem 1rem;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(244,247,238,0.95) 100%);
  border: 1px solid rgba(116, 138, 53, 0.14);
  box-shadow: 0 10px 24px rgba(12, 18, 9, 0.08);
  text-align: center;
}

.publications-page .stat-item h3 {
  margin-bottom: 0.4rem;
  color: var(--brand-900);
  font-size: clamp(1.85rem, 3vw, 2.5rem);
}

.publications-page .stat-label {
  display: block;
  color: rgba(26, 32, 22, 0.76);
  font-weight: 500;
}

.publications-page .lists-section {
  padding: 1.35rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.publications-page .publications-panel-head {
  max-width: 760px;
  margin-bottom: 1.25rem;
}

.publications-page .publications-panel-head h2 {
  color: #2f3b52;
  margin-bottom: 0.55rem;
  font-size: clamp(1.55rem, 2.8vw, 2.15rem);
}

.publications-page .publications-panel-head p {
  margin-bottom: 0;
  color: rgba(26, 32, 22, 0.78);
}

.publications-page .panel-kicker {
  background: rgba(116, 138, 53, 0.12);
  color: var(--brand-900);
}

.publications-page .list-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  padding: 0;
  margin-bottom: 1rem;
  border-bottom: 0;
}

.publications-page .tab-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.62rem 1rem;
  background: rgba(116, 138, 53, 0.10);
  color: var(--brand-900);
  border: 1px solid rgba(116, 138, 53, 0.16);
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.publications-page .tab-button:hover,
.publications-page .tab-button:focus-visible {
  transform: translateY(-1px);
  background: rgba(116, 138, 53, 0.16);
  border-color: rgba(116, 138, 53, 0.28);
  box-shadow: 0 10px 20px rgba(12, 18, 9, 0.10);
  outline: none;
}

.publications-page .tab-button:not(.active) {
  opacity: 1;
}

.publications-page .tab-button.active {
  background: rgba(116, 138, 53, 0.92);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 24px rgba(12, 18, 9, 0.12);
}

.publications-page .list-content {
  padding: 0;
}

.publications-page .list-content[hidden] {
  display: none !important;
}

.publications-page .list-meta {
  margin-bottom: 0.9rem;
}

.publications-page .list-count-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.4rem 0.82rem;
  border-radius: 999px;
  background: rgba(47, 59, 82, 0.08);
  border: 1px solid rgba(47, 59, 82, 0.10);
  color: #2f3b52;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.publications-page .pub-list {
  margin: 0;
  padding-left: 1.4rem;
}

.publications-page .pub-list li {
  margin: 0 0 0.95rem;
  padding: 1rem 1.05rem;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(245,247,241,0.96) 100%);
  border: 1px solid rgba(116, 138, 53, 0.10);
  box-shadow: 0 8px 18px rgba(12, 18, 9, 0.06);
}

.publications-page .pub-citation {
  color: var(--color-text);
  display: inline;
}

.publications-page .placeholder-panel {
  padding: 1.4rem 1.25rem;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(245,247,241,0.96) 100%);
  border: 1px solid rgba(116, 138, 53, 0.12);
  box-shadow: 0 10px 22px rgba(12, 18, 9, 0.06);
}

.publications-page .placeholder-panel h3 {
  margin-bottom: 0.55rem;
  color: #2f3b52;
}

.publications-page .placeholder-panel p {
  margin-bottom: 0;
  color: rgba(26, 32, 22, 0.76);
}

@media (max-width: 900px) {
  .publications-page .stats-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .publications-page .page-header-card,
  .publications-page .stats-card,
  .publications-page .lists-section {
    border-radius: 16px;
  }

  .publications-page .lists-section {
    padding: 1rem;
  }

  .publications-page .list-tabs {
    display: grid;
    grid-template-columns: 1fr;
  }

  .publications-page .tab-button {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .publications-page .stats-card {
    grid-template-columns: 1fr;
  }

  .publications-page .page-header-card {
    padding: 1.45rem 1.15rem;
  }
}


/* =========================================================
   Contact page – refreshed layout
   ========================================================= */

.contact-page-modern {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
}

.contact-hero {
  max-width: 1100px;
}

.section-kicker--light {
  background: rgba(116, 138, 53, 0.14);
  color: var(--brand-900);
}

.contact-layout {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 1.5rem;
  align-items: start;
}

.contact-primary-card,
.contact-map-panel,
.contact-note-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.contact-primary-card {
  padding: 1.8rem;
}

.contact-person-header {
  display: flex;
  justify-content: space-between;
  gap: 1.25rem;
  align-items: flex-start;
  margin-bottom: 1.35rem;
}

.contact-eyebrow {
  display: inline-block;
  margin-bottom: 0.45rem;
  color: var(--brand-900);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-primary-card h2 {
  margin-bottom: 0.25rem;
  color: #2f3b52;
  font-size: clamp(1.65rem, 2.5vw, 2.15rem);
}

.contact-role {
  margin-bottom: 0;
  color: rgba(26, 32, 22, 0.74);
  font-style: normal;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: flex-end;
}

.contact-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  background: rgba(116, 138, 53, 0.14);
  border: 1px solid rgba(116, 138, 53, 0.24);
  color: var(--brand-900);
  font-weight: 700;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.contact-action:hover {
  transform: translateY(-1px);
  background: rgba(116, 138, 53, 0.20);
  border-color: rgba(116, 138, 53, 0.36);
}

.contact-action--secondary {
  background: rgba(47, 59, 82, 0.10);
  border-color: rgba(47, 59, 82, 0.18);
  color: #2f3b52;
}















.contact-side-column {
  display: grid;
  gap: 1.5rem;
}

.contact-map-panel {
  padding: 1.4rem;
}

.contact-panel-header {
  margin-bottom: 1rem;
}

.contact-panel-header h2 {
  color: #2f3b52;
  margin-bottom: 0.35rem;
}

.contact-panel-header p {
  margin-bottom: 0;
  color: rgba(26, 32, 22, 0.78);
}

.map-frame {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(116, 138, 53, 0.12);
  box-shadow: 0 10px 22px rgba(12, 18, 9, 0.08);
  background: #ffffff;
}

.map-frame iframe {
  display: block;
  width: 100%;
  min-height: 420px;
  border: 0;
}







@media (max-width: 920px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-person-header {
    flex-direction: column;
  }

  .contact-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .contact-page-modern {
    padding: 1.5rem 1rem 2.5rem;
  }

  .contact-primary-card,
  .contact-map-panel,
  .contact-note-card {
    padding-left: 1.1rem;
    padding-right: 1.1rem;
  }

  

  .map-frame iframe {
    min-height: 320px;
  }
}


/* =========================================================
   Contact page – compact revision
   ========================================================= */

.contact-layout--compact {
  align-items: stretch;
}

.contact-primary-card--stacked {
  padding: 1.8rem;
}

.contact-person-header--stacked {
  display: block;
  margin-bottom: 1.35rem;
}

.contact-title-main {
  margin-bottom: 0.3rem;
  color: #2f3b52;
  font-size: clamp(1.55rem, 2.2vw, 1.95rem);
}

.contact-details-stack {
  display: grid;
  gap: 0.9rem;
}

.contact-detail-row {
  padding: 1rem 1.05rem;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(244, 247, 238, 0.94) 100%);
  border: 1px solid rgba(116, 138, 53, 0.14);
  box-shadow: 0 10px 22px rgba(12, 18, 9, 0.08);
}

.contact-detail-row h2 {
  margin-bottom: 0.4rem;
  color: #2f3b52;
  font-size: 1.02rem;
  font-family: var(--font-body);
  font-weight: 700;
  line-height: 1.35;
}

.contact-detail-row p {
  margin-bottom: 0;
  color: rgba(26, 32, 22, 0.82);
}

.contact-detail-row a {
  color: var(--brand-900);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.contact-actions--stacked {
  justify-content: flex-start;
  margin-top: 1rem;
}

@media (max-width: 920px) {
  .contact-layout--compact {
    grid-template-columns: 1fr;
  }
}


/*========================================
  26. RESEARCH ACTIVITIES PAGE
========================================*/
.activities-page {
  position: relative;
}

.activities-page .page-header-card,
.activities-page .activities-hero {
  max-width: 1100px;
  margin: 0 auto 1.35rem;
  padding: 1.85rem 1.9rem;
  background: linear-gradient(135deg, rgba(14, 18, 12, 0.74) 0%, rgba(20, 29, 13, 0.68) 55%, rgba(13, 18, 11, 0.76) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--color-text-on-dark);
  box-shadow: var(--shadow-lg);
}

.activities-page .page-header-card h1,
.activities-page .activities-hero h1 {
  color: var(--color-text-on-dark);
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  margin-bottom: 0.45rem;
}

.activities-page .page-header-card .muted,
.activities-page .activities-hero .muted {
  color: rgba(243, 246, 238, 0.88);
  max-width: 64ch;
  opacity: 1;
  margin-bottom: 0;
}

.activities-layout {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
}

.activities-surface {

  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
}

















.activities-gallery-section,
.activities-links-section {
  padding: 1.8rem;
}

.activities-gallery-head,
.activities-links-head {
  max-width: 760px;
  margin-bottom: 1.35rem;
}



.activities-gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
}

.activity-figure {
  grid-column: span 6;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(244, 247, 238, 0.95) 100%);
  border: 1px solid rgba(116, 138, 53, 0.14);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 24px rgba(12, 18, 9, 0.08);
}

.activity-figure-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(116, 138, 53, 0.18), rgba(47, 59, 82, 0.12)),
    linear-gradient(180deg, rgba(250, 251, 247, 0.95), rgba(235, 239, 227, 0.94));
}

.activity-figure-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.activity-figure-badge {
  position: absolute;
  left: 1rem;
  top: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 36px;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(14, 18, 12, 0.68);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.06em;
  border: 1px solid rgba(255, 255, 255, 0.14);
}









.activities-links-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
}

.activity-link-card {
  grid-column: span 4;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 100%;
  padding: 1.2rem 1.15rem 1.2rem;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(244,247,238,0.95) 100%);
  border: 1px solid rgba(116, 138, 53, 0.14);
  box-shadow: 0 12px 24px rgba(12, 18, 9, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.activity-link-card:hover,
.activity-link-card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(12, 18, 9, 0.12);
  border-color: rgba(116, 138, 53, 0.28);
}

.activity-link-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--brand), var(--brand-900));
}

.activity-link-topline {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(47, 59, 82, 0.76);
  font-weight: 700;
}

.activity-link-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0;
  color: #1f2818;
}

.activity-link-card p {
  margin-bottom: 0;
  color: rgba(26, 32, 22, 0.78);
}

.activity-link-action {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--brand-900);
  font-weight: 700;
}

.activity-link-action::after {
  content: "↗";
  font-size: 1rem;
}

@media (max-width: 980px) {
  

  .activity-link-card {
    grid-column: span 6;
  }
}

@media (max-width: 760px) {
  .activities-gallery-section,
  .activities-links-section,
  .activities-intro {
    padding: 1.4rem;
  }

  .activity-figure,
  .activity-link-card {
    grid-column: span 12;
  }
}

/* =========================================================
   Final cleanup utilities
   ========================================================= */
img {
  max-width: 100%;
}

a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.contact-person-copy {
  min-width: 0;
}

.equipment-hero {
  width: min(100%, 1100px);
}

.equipment-description[hidden] {
  display: none !important;
}

.projects-page .section-head--light {
  color: var(--color-text-on-dark);
}

.projects-page .surface-card--projects {
  width: min(100%, 1100px);
}

/*========================================
  FOOTER
========================================*/
.site-footer {
  max-width: 1200px;
  margin: 0 auto 1.5rem;
  padding: 0 1rem;
}

.site-footer-inner {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 1rem 1.25rem;
  text-align: center;
  color: rgba(26, 32, 22, 0.82);
  font-size: 0.95rem;
  line-height: 1.5;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.site-footer-inner p {
  margin: 0;
}

@media (max-width: 768px) {
  .site-footer {
    margin-bottom: 1rem;
  }

  .site-footer-inner {
    padding: 0.9rem 1rem;
    font-size: 0.9rem;
  }
}
