/* ==========================================================================
   LRF — Laboratory of Rock and Fluids Analysis
   ========================================================================== */

:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --ink: #0e1a24;
  --ink-soft: #2b4054;
  --muted: #56697a;
  --line: #dfe6ee;
  --brand: #0b5ca8;
  --brand-dark: #083f70;
  --brand-deep: #072f53;
  --brand-soft: #eaf3fb;
  --sand: #f2efe9;
  --dark: #081420;
  --radius: 16px;
  --shadow-sm: 0 1px 2px rgba(12, 30, 48, .05), 0 10px 30px -18px rgba(12, 30, 48, .25);
  --shadow-md: 0 18px 50px -28px rgba(9, 35, 60, .38);
  --shadow-lg: 0 34px 70px -34px rgba(9, 35, 60, .45);
  --font-sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, "Times New Roman", serif;
  --container: 1180px;
  --header-h: 78px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.no-scroll { overflow: hidden; }

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

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.14;
  margin: 0;
}

p { margin: 0; }

a { color: var(--brand); }

button { font: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

section[id] { scroll-margin-top: calc(var(--header-h) + 14px); }

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 200;
  background: var(--brand-dark);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  text-decoration: none;
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 3px solid rgba(11, 92, 168, .55);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============================== header ================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px -20px rgba(8, 30, 50, .35);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 26px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  flex: none;
}
.brand-mark { width: 44px; height: 44px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: var(--font-serif);
  font-size: 25px;
  font-weight: 700;
  letter-spacing: .04em;
}
.brand-sub {
  font-size: 9.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  margin-top: 3px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
}
.nav a {
  position: relative;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 0;
  white-space: nowrap;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.nav a:hover { color: var(--brand); }
.nav a:hover::after,
.nav a.is-active::after { transform: scaleX(1); }
.nav a.is-active { color: var(--brand); }

.header-actions { display: flex; align-items: center; gap: 12px; flex: none; }

.lang-switch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}
.lang-switch button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .08em;
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.lang-switch button:hover { color: var(--brand); }
.lang-switch button[aria-pressed="true"] {
  background: var(--brand);
  color: #fff;
}

.nav-toggle {
  display: none;
  position: relative;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  display: block;
  position: absolute;
  width: 18px;
  height: 2px;
  left: 50%;
  top: 50%;
  margin-left: -9px;
  margin-top: -1px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span:nth-child(1) { transform: translateY(-6px); }
.nav-toggle span:nth-child(3) { transform: translateY(6px); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg); }

/* ============================= preview ================================== */
.preview-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 9px 20px;
  background: #fdf3d8;
  border-bottom: 1px solid #efdfb0;
  color: #6b4d00;
  font-size: 13px;
}
.preview-banner[hidden] { display: none; }
.preview-banner a { color: #6b4d00; font-weight: 700; }

/* ================================ hero ================================== */
.hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(620px, 88vh, 840px);
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  background: #06141f;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(102deg, rgba(5, 20, 34, .95) 0%, rgba(6, 27, 46, .86) 42%, rgba(6, 27, 46, .38) 100%),
    linear-gradient(180deg, rgba(4, 16, 28, .55) 0%, rgba(4, 16, 28, 0) 30%, rgba(4, 16, 28, .55) 100%);
}

.hero-inner {
  padding-top: clamp(64px, 11vh, 120px);
  padding-bottom: clamp(40px, 7vh, 72px);
  max-width: 900px;
  margin-left: 0;
  margin-right: auto;
  width: 100%;
}
.hero-inner.container { padding-left: 28px; padding-right: 28px; }

.hero h1 {
  font-size: clamp(2.15rem, 4.4vw, 3.55rem);
  letter-spacing: -.02em;
  max-width: 700px;
  margin: 18px 0 0;
  text-wrap: balance;
}
.hero-lead {
  max-width: 620px;
  margin-top: 24px;
  color: rgba(255, 255, 255, .87);
  font-size: clamp(1rem, 1.4vw, 1.13rem);
  line-height: 1.7;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin: clamp(40px, 6vh, 64px) 0 0;
  padding: 26px 0 0;
  border-top: 1px solid rgba(255, 255, 255, .18);
}
.stat dt {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 2.6vw, 2.4rem);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -.02em;
}
.stat dd {
  margin: 8px 0 0;
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .62);
  font-weight: 600;
  line-height: 1.5;
}

/* =============================== typography ============================= */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 11.5px;
  letter-spacing: .17em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--brand);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: .55;
  flex: none;
}
.eyebrow--light { color: rgba(255, 255, 255, .86); }

.section-head { max-width: 740px; margin-bottom: clamp(40px, 5vw, 56px); }
.section-head h2 {
  font-size: clamp(1.85rem, 3.2vw, 2.7rem);
  margin: 14px 0 14px;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.section-head p:not(.eyebrow) {
  color: var(--muted);
  font-size: 16.5px;
  max-width: 65ch;
}

.lead { font-size: 18px; color: var(--ink-soft); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--brand);
  font-weight: 600;
  font-size: 13.5px;
  text-decoration: none;
}
.text-link svg { width: 16px; height: 16px; transition: transform .2s ease; }
.text-link:hover svg { transform: translateX(3px); }

/* ================================ buttons ============================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.btn svg { width: 17px; height: 17px; }
.btn:hover { transform: translateY(-1px); }
.btn-light { background: #fff; color: var(--brand-deep); }
.btn-light:hover { background: #eaf3fb; }
.btn-ghost {
  border-color: rgba(255, 255, 255, .38);
  color: #fff;
  background: rgba(255, 255, 255, .04);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .6); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-outline { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: #b9c9d8; background: #f8fafc; }

/* =============================== sections ============================== */
.section { padding: clamp(70px, 9vw, 112px) 0; }
.section--sand { background: var(--sand); }
.section--dark { background: var(--dark); color: #e9f1f8; }
.section--dark .section-head h2 { color: #fff; }
.section--dark .section-head p:not(.eyebrow) { color: rgba(233, 241, 248, .66); }
.section--dark .eyebrow { color: #79b6e6; }
.section--dark .eyebrow::before { opacity: .5; }

/* ================================ about ================================ */
.about {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(36px, 6vw, 72px);
  align-items: start;
}
.about h2 { font-size: clamp(1.85rem, 3.1vw, 2.55rem); margin: 14px 0 16px; }
.about .lead { color: var(--muted); max-width: 52ch; }
.prose { margin-top: 22px; }
.prose p { color: var(--ink-soft); margin-bottom: 16px; }
.prose p:last-child { margin-bottom: 0; }

.check-list {
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
  display: grid;
  gap: 11px;
}
.check-list li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: 15px;
  color: var(--ink-soft);
}
.check-list svg {
  width: 19px;
  height: 19px;
  flex: none;
  margin-top: 3px;
  color: var(--brand);
  background: var(--brand-soft);
  border-radius: 50%;
  padding: 3px;
}
.check-list--compact { margin-top: 20px; gap: 9px; }
.check-list--compact li { font-size: 14.5px; }

.about-figure { position: relative; margin: 0; }
.about-figure > img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
}
.about-figure figcaption {
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
  padding-right: 12px;
}
/* ============================== memorial =============================== */
.section--memorial {
  position: relative;
  color: #e9f1f8;
  background:
    radial-gradient(900px 520px at 6% 0%, rgba(29, 102, 166, .34), transparent 64%),
    linear-gradient(180deg, #071b2d 0%, #081420 100%);
}
.section--memorial::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(360px, 56%);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(216, 184, 119, .72), transparent);
}
.section--memorial .eyebrow { color: #d8b877; }
.section--memorial .eyebrow::before { opacity: .7; }
.memorial-head { max-width: 820px; }
.memorial-head h2 {
  color: #fff;
  font-size: clamp(2rem, 3.6vw, 3rem);
}
.section--memorial .memorial-years {
  margin-top: 12px;
  color: rgba(216, 184, 119, .94);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.memorial-layout {
  display: grid;
  grid-template-columns: minmax(250px, 350px) minmax(0, 1fr);
  gap: clamp(36px, 5vw, 70px);
  align-items: start;
}
.memorial-media {
  display: grid;
  gap: 26px;
  position: sticky;
  top: calc(var(--header-h) + 26px);
}
.memorial-media figure { margin: 0; }
.memorial-portrait img {
  width: 100%;
  height: auto;
  border: 1px solid rgba(216, 184, 119, .3);
  border-radius: 6px;
  box-shadow: 0 30px 70px -36px #000;
  filter: saturate(.92);
}
.memorial-award img {
  width: 100%;
  height: auto;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 4px;
  box-shadow: 0 20px 44px -30px #000;
}
.memorial-media figcaption {
  margin-top: 10px;
  color: rgba(233, 241, 248, .5);
  font-size: 12px;
  line-height: 1.5;
}

.memorial-paragraphs p {
  margin-bottom: 18px;
  color: rgba(233, 241, 248, .74);
  font-size: 15.5px;
  line-height: 1.75;
}
.memorial-paragraphs p:first-child {
  color: #edf4fa;
  font-size: 18px;
  line-height: 1.65;
}
.memorial-paragraphs p:last-child { margin-bottom: 0; }

.memorial-note {
  margin: 30px 0 42px;
  padding: 22px 24px;
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(216, 184, 119, .18);
  border-left: 2px solid #d8b877;
  border-radius: 2px 12px 12px 2px;
}
.memorial-note h3 {
  margin-bottom: 7px;
  color: #f0dfbc;
  font-family: var(--font-sans);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.4;
}
.memorial-note p {
  color: rgba(233, 241, 248, .66);
  font-size: 14px;
  line-height: 1.7;
}

.memorial-timeline h3 {
  margin-bottom: 20px;
  color: #fff;
  font-size: clamp(1.4rem, 2vw, 1.75rem);
}
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}
.timeline li {
  position: relative;
  padding: 0 0 24px 28px;
  border-left: 1px solid rgba(121, 182, 230, .2);
}
.timeline li:last-child {
  padding-bottom: 0;
  border-left-color: transparent;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: -4.5px;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d8b877;
  box-shadow: 0 0 0 4px rgba(216, 184, 119, .12);
}
.timeline-period {
  color: #d8b877;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.timeline h4 {
  margin: 5px 0 4px;
  color: #edf4fa;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.35;
}
.timeline p {
  color: rgba(233, 241, 248, .64);
  font-size: 14px;
  line-height: 1.65;
}

/* ============================== projects =============================== */
.grid { display: grid; gap: 22px; }
.grid--projects { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }

.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px 28px 26px;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.project-card::before {
  content: "";
  position: absolute;
  top: 22px;
  bottom: 22px;
  left: -1px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--brand);
  opacity: 0;
  transition: opacity .28s ease;
}
.project-card:hover {
  transform: translateY(-4px);
  border-color: #c9d8e6;
  box-shadow: var(--shadow-md);
}
.project-card:hover::before { opacity: 1; }

.project-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.project-index {
  font-family: var(--font-serif);
  font-size: 15px;
  color: #9aacbc;
  font-variant-numeric: tabular-nums;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10.5px;
  letter-spacing: .09em;
  text-transform: uppercase;
  font-weight: 700;
}
.pill--ongoing { background: #e6f4ec; color: #146c43; }
.pill--ongoing::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #1a8a55;
}
.pill--completed { background: #eef2f6; color: #566a7d; }

.project-card h3 { font-size: 1.32rem; line-height: 1.25; }
.project-summary { font-size: 14.8px; color: var(--muted); line-height: 1.65; }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
}
.project-card .tags { margin-top: auto; padding-top: 8px; }
.tags li {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .01em;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: #0a4d8c;
}
.tags--soft li { background: #f1f5f9; color: #4c6072; font-weight: 500; }

/* ============================= facilities ============================== */
.feature {
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  gap: clamp(28px, 5.5vw, 68px);
  align-items: center;
  margin-bottom: clamp(52px, 7vw, 88px);
}
.feature--reverse .feature-media { order: 2; }
.feature-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
}
.feature-media img.fit-contain {
  object-fit: contain;
  background: #f8fafc;
  padding: 26px;
}
.feature-body .eyebrow { font-size: 10.5px; letter-spacing: .12em; color: var(--brand); }
.feature-body h3 { font-size: clamp(1.55rem, 2.4vw, 2.05rem); margin: 12px 0 14px; }
.feature-body > p:not(.eyebrow) { color: var(--muted); font-size: 15.5px; }

.grid--equipment { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

.equip-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.equip-card:hover {
  transform: translateY(-4px);
  border-color: #c9d8e6;
  box-shadow: var(--shadow-md);
}
.equip-media {
  aspect-ratio: 4 / 3;
  background: #f8fafc;
  overflow: hidden;
}
.equip-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.2, .7, .3, 1);
}
.equip-media img.fit-contain {
  object-fit: contain;
  padding: 22px;
  background: transparent;
  mix-blend-mode: multiply;
}
.equip-card:hover .equip-media img { transform: scale(1.035); }
.media-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #f1f5f9;
  border-radius: 18px;
  color: var(--brand);
  font-family: var(--font-serif);
  font-size: 1.9rem;
  letter-spacing: .08em;
}
.equip-media .media-fallback {
  height: 100%;
  aspect-ratio: auto;
  border-radius: 0;
  font-size: 1.5rem;
}

.equip-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; }
.equip-model {
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--brand);
  line-height: 1.5;
}
.equip-body h3 { font-size: 1.2rem; line-height: 1.28; }
.equip-desc { font-size: 14.2px; color: var(--muted); line-height: 1.62; }
.specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
}
.specs li {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 6px;
  background: #f1f5f9;
  color: #46596b;
}

/* =============================== gallery =============================== */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.gallery-item {
  position: relative;
  display: block;
  padding: 0;
  border: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #0f1f2e;
  cursor: zoom-in;
  aspect-ratio: 4 / 3;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.2, .7, .3, 1), opacity .3s ease;
}
.gallery-item--contain img { object-fit: contain; padding: 10px; }
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(4, 14, 24, .86) 100%);
  opacity: .9;
  transition: opacity .3s ease;
}
.gallery-item:hover img { transform: scale(1.045); }
.gallery-item:hover::after { opacity: 1; }
.gallery-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 16px;
  text-align: left;
  font-size: 12.5px;
  line-height: 1.45;
  color: rgba(255, 255, 255, .92);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .3s ease, transform .3s ease;
}
.gallery-item:hover .gallery-cap,
.gallery-item:focus-visible .gallery-cap { opacity: 1; transform: none; }

/* ============================ lightbox ================================= */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 76px;
  background: rgba(4, 11, 19, .94);
  backdrop-filter: blur(6px);
  color: #fff;
}
.lightbox[hidden] { display: none; }
.lightbox-figure {
  margin: 0;
  max-width: min(1200px, 92vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.lightbox-figure img {
  max-width: 100%;
  max-height: 74vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .9);
}
.lightbox-figure figcaption {
  font-size: 14px;
  color: rgba(255, 255, 255, .78);
  text-align: center;
  max-width: 70ch;
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(255, 255, 255, .08);
  color: #fff;
  cursor: pointer;
  transition: background .2s ease;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255, 255, 255, .2); }
.lightbox-close { top: 20px; right: 22px; font-size: 26px; line-height: 1; }
.lightbox-prev { left: 18px; top: 50%; margin-top: -23px; font-size: 30px; line-height: 1; }
.lightbox-next { right: 18px; top: 50%; margin-top: -23px; font-size: 30px; line-height: 1; }

/* ================================ team ================================= */
.team-group { margin-bottom: clamp(38px, 5vw, 56px); }
.team-group:last-of-type { margin-bottom: 0; }
.group-head {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-sans);
  font-size: 11.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
  margin: 0 0 20px;
}
.group-head::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.group-count {
  font-size: 11px;
  color: #93a4b5;
  background: #eef2f6;
  border-radius: 999px;
  padding: 2px 8px;
  letter-spacing: 0;
}
.grid--team { grid-template-columns: repeat(auto-fill, minmax(248px, 1fr)); }
.team-group--coordination .grid--team { grid-template-columns: minmax(260px, 330px); }

.person {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px 22px 24px;
  text-align: center;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.person:hover {
  transform: translateY(-3px);
  border-color: #c9d8e6;
  box-shadow: var(--shadow-md);
}
.person-photo {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  margin: 0 auto 18px;
  background: #eef3f8;
  overflow: hidden;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 5px #fff, 0 0 0 6px #e3ebf3;
}
.person-photo img { width: 100%; height: 100%; object-fit: cover; }
.person-initials {
  font-family: var(--font-serif);
  font-size: 30px;
  color: var(--brand);
  font-weight: 700;
}
.person h4 {
  font-family: var(--font-sans);
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 5px;
  letter-spacing: -.01em;
}
.person-role {
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 700;
}
.person .tags { justify-content: center; margin-top: 14px; }
.person-mail {
  display: inline-block;
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  word-break: break-word;
}
.person-mail:hover { color: var(--brand); border-color: var(--brand); }

.join-card {
  margin-top: clamp(36px, 5vw, 52px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding: clamp(26px, 4vw, 40px);
  border-radius: 20px;
  background:
    radial-gradient(120% 160% at 100% 0%, rgba(68, 150, 214, .55) 0%, rgba(68, 150, 214, 0) 55%),
    linear-gradient(115deg, var(--brand-dark) 0%, var(--brand-deep) 100%);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.join-card h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); color: #fff; margin-bottom: 8px; }
.join-card p { color: rgba(255, 255, 255, .78); font-size: 14.8px; max-width: 58ch; }
.join-card .btn { background: #fff; color: var(--brand-deep); flex: none; }
.join-card .btn:hover { background: #eaf3fb; }

/* ============================ publications ============================= */
.pubs-columns {
  display: grid;
  grid-template-columns: 1.24fr .76fr;
  gap: clamp(32px, 5vw, 60px);
  align-items: start;
}
.subhead {
  font-family: var(--font-sans);
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  margin: 0 0 4px;
}
.pub-list { list-style: none; margin: 0; padding: 0; }
.pub {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.pub-year {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
  padding-top: 2px;
}
.pub-title { font-weight: 600; line-height: 1.45; font-size: 15px; }
.pub-authors { font-size: 13.2px; color: var(--muted); margin-top: 4px; }
.pub-venue { font-size: 13.2px; color: #3f5568; font-style: italic; margin-top: 2px; }

.note { font-size: 12.5px; color: var(--muted); margin: 8px 0 0; }
.thesis-list { list-style: none; margin: 10px 0 0; padding: 0; }
.thesis { padding: 14px 0; border-bottom: 1px solid var(--line); }
.thesis-head {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 5px;
}
.thesis-level {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 1px 8px;
  font-weight: 600;
  color: #3f5568;
}
.thesis-title { font-weight: 600; font-size: 14.5px; line-height: 1.5; }
.thesis-author { font-size: 13px; color: var(--muted); margin-top: 3px; }

/* ============================ collaborators ============================ */
.grid--collaborators { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.collab-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
}
.collab-mark {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: .01em;
  margin-bottom: 6px;
}
.collab-mark--image {
  width: 64px;
  height: 64px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 7px;
  overflow: hidden;
}
.collab-mark--image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.collab-type {
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--brand);
}
.collab-card h3 { font-size: 1.2rem; }
.collab-card p { font-size: 14.3px; color: var(--muted); }
.collab-card .text-link { margin-top: auto; padding-top: 8px; }
.collab-card--cta {
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(58, 140, 205, .45) 0%, rgba(58, 140, 205, 0) 60%),
    #0d2233;
  border-color: transparent;
  color: #fff;
}
.collab-card--cta h3 { color: #fff; }
.collab-card--cta p { color: rgba(255, 255, 255, .72); }
.collab-card--cta .btn { margin-top: 12px; align-self: flex-start; background: #fff; color: var(--brand-deep); }
.collab-card--cta .btn:hover { background: #eaf3fb; }

/* =============================== contact =============================== */
.section--contact {
  background: linear-gradient(180deg, var(--bg) 0%, #edf3f8 100%);
}
.contact-grid {
  display: grid;
  grid-template-columns: .94fr 1.06fr;
  gap: 24px;
  align-items: stretch;
}
.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(24px, 3.4vw, 38px);
  box-shadow: var(--shadow-sm);
}
.contact-card h3 {
  font-family: var(--font-sans);
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 18px;
}
.contact-person { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.contact-person img {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  object-fit: cover;
  background: #eef3f8;
  flex: none;
}
.contact-person strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 17.5px;
  font-weight: 600;
  letter-spacing: -.01em;
}
.contact-person span { display: block; font-size: 12.5px; color: var(--muted); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 15px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; }
.contact-list svg { width: 20px; height: 20px; color: var(--brand); flex: none; margin-top: 2px; }
.contact-list span {
  display: block;
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #8394a5;
  font-weight: 700;
}
.contact-list p { font-size: 14.3px; color: var(--ink-soft); margin-top: 1px; line-height: 1.5; }
.contact-list a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--line); }
.contact-list a:hover { color: var(--brand); border-color: var(--brand); }
.contact-visiting {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--muted);
}

.map-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #e6edf4;
  min-height: 430px;
}
.map-wrap iframe {
  width: 100%;
  height: 100%;
  min-height: 430px;
  border: 0;
  display: block;
  filter: saturate(.92) contrast(1.02);
}
.map-cta {
  position: absolute;
  left: 18px;
  bottom: 18px;
  box-shadow: 0 10px 26px -14px rgba(8, 30, 50, .5);
}

/* =============================== footer ================================ */
.site-footer {
  background: #06121d;
  color: rgba(255, 255, 255, .7);
  padding: clamp(48px, 6vw, 72px) 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr .7fr 1.05fr .85fr;
  gap: 40px;
  padding-bottom: clamp(36px, 5vw, 52px);
}
.footer-brand img { width: 52px; height: 52px; opacity: .96; }
.footer-name {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  letter-spacing: .04em;
  margin-top: 12px;
  line-height: 1;
}
.footer-desc { font-size: 13.5px; margin-top: 8px; max-width: 250px; line-height: 1.55; }
.footer-aff {
  margin-top: 14px;
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 700;
  color: #7ea6c6;
}
.footer-col h4 {
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff;
  font-weight: 700;
  margin: 4px 0 14px;
}
.footer-col a,
.footer-col p {
  display: block;
  font-size: 13.5px;
  color: rgba(255, 255, 255, .66);
  text-decoration: none;
  margin-bottom: 8px;
  line-height: 1.55;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: rgba(255, 255, 255, .5);
}
.footer-bottom p { margin: 0; }

/* =============================== reveal ================================ */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .3, 1);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================== responsive ============================= */
@media (max-width: 1120px) {
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 8px 28px 22px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -28px rgba(8, 30, 50, .5);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 13px 0; border-bottom: 1px solid #f0f3f7; font-size: 15.5px; }
  .nav a::after { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-actions { margin-left: auto; }
}

@media (max-width: 1040px) {
  .about,
  .contact-grid,
  .pubs-columns,
  .memorial-layout { grid-template-columns: 1fr; }
  .about-figure figcaption { margin-bottom: 8px; }
  .memorial-media {
    position: static;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 22px;
  }
  .memorial-media figcaption { margin-top: 8px; }
  .feature { grid-template-columns: 1fr; gap: 26px; }
  .feature--reverse .feature-media { order: 0; }
  .feature-media img { aspect-ratio: 16 / 10; }
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .map-wrap, .map-wrap iframe { min-height: 380px; }
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1.2fr 1fr; row-gap: 32px; }
  .hero-stats { gap: 18px; }
}

@media (max-width: 760px) {
  :root { --header-h: 68px; }
  .container { padding: 0 20px; }
  .brand-mark { width: 38px; height: 38px; }
  .brand-name { font-size: 22px; }
  .brand-sub { font-size: 8.5px; }
  .hero { min-height: auto; }
  .hero-inner { padding-top: 76px; padding-bottom: 52px; }
  .hero h1 { max-width: none; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 20px 18px; }
  .equip-media { aspect-ratio: 16 / 10; }
  .equip-body { padding: 18px 20px 22px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-cap { opacity: 1; transform: none; font-size: 11px; padding: 12px; }
  .gallery-item::after { opacity: .95; }
  .about-figure figcaption { margin-bottom: 0; }
  .memorial-media { grid-template-columns: 1fr; max-width: 430px; }
  .memorial-paragraphs p:first-child { font-size: 17px; }
  .memorial-note { margin-bottom: 34px; }
  .contact-actions .btn { width: 100%; }
  .join-card { align-items: flex-start; flex-direction: column; }
  .join-card .btn { width: 100%; }
  .lightbox { padding: 56px 12px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-figure img { max-height: 68vh; }
}

@media (max-width: 520px) {
  .grid--projects { grid-template-columns: 1fr; }
  .pub { grid-template-columns: 46px 1fr; gap: 12px; }
  .footer-grid { grid-template-columns: 1fr; }
  .brand-sub { display: none; }
  .header-inner { gap: 14px; }
  .lang-switch button { padding: 5px 8px; }
  .hero-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
