:root {
  --ink: #061731;
  --body: #1f2b3f;
  --muted: #5e6b7d;
  --line: #d7deea;
  --paper: #ffffff;
  --soft: #f5f8fc;
  --blue: #1768c9;
  --blue-dark: #0f4e9e;
  --cyan: #25c8ff;
  --shadow: 0 22px 70px rgba(17, 35, 64, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  min-height: 100%;
  overflow-y: auto;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--body);
  font-family: "Inter", Arial, sans-serif;
  background: #f1f3f7;
  overflow-x: hidden;
  overflow-y: auto;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

button,
input,
select {
  font: inherit;
}

.content-shell {
  width: min(1500px, calc(100% - 80px));
  margin: 0 auto;
}

main section {
  scroll-margin-top: 96px;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: none;
  transition: background 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.site-header.is-scrolled,
.site-header.menu-open {
  background: rgba(255, 255, 255, 0.94);
  border-bottom-color: rgba(215, 222, 234, 0.9);
  box-shadow: 0 12px 34px rgba(17, 35, 64, 0.12);
}

.nav-shell {
  width: min(1500px, calc(100% - 80px));
  min-height: 86px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 34px;
}

.brand,
h1,
h2 {
  color: var(--ink);
  font-family: "Libre Baskerville", Georgia, serif;
  letter-spacing: 0;
}

.brand {
  color: #fff;
  font-size: clamp(1.45rem, 2vw, 2rem);
  font-weight: 700;
  white-space: nowrap;
  transition: color 220ms ease;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.24);
}

.nav-menu {
  min-width: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(10px, 1.2vw, 22px);
  color: rgba(255, 255, 255, 0.94);
  font-weight: 600;
}

.nav-menu > * {
  min-width: 0;
}

.site-header.is-scrolled .brand,
.site-header.menu-open .brand {
  color: var(--ink);
  text-shadow: none;
}

.site-header.is-scrolled .nav-menu,
.site-header.menu-open .nav-menu {
  color: var(--body);
}

.nav-menu a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 86px;
  padding: 0;
  transition: color 180ms ease;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.22);
  white-space: nowrap;
}

.nav-menu a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  content: "";
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 200ms ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  transform: scaleX(1);
}

.nav-menu a:hover,
.nav-menu a.active {
  color: #fff;
}

.site-header.is-scrolled .nav-menu a:hover,
.site-header.is-scrolled .nav-menu a.active,
.site-header.menu-open .nav-menu a:hover,
.site-header.menu-open .nav-menu a.active {
  color: var(--blue-dark);
}

.site-header.is-scrolled .nav-menu a,
.site-header.menu-open .nav-menu a {
  text-shadow: none;
}

.join-button,
.btn,
.contact-form button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.join-button::before,
.btn::before,
.contact-form button::before,
.view-all::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(120deg, transparent 0 35%, rgba(255, 255, 255, 0.48) 50%, transparent 65% 100%);
  transform: translateX(-120%);
  transition: transform 520ms ease;
}

.join-button:hover,
.btn:hover,
.contact-form button:hover,
.view-all:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(23, 104, 201, 0.24);
}

.join-button:hover::before,
.btn:hover::before,
.contact-form button:hover::before,
.view-all:hover::before {
  transform: translateX(120%);
}

.join-button {
  padding: 0 24px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 999px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.site-header.is-scrolled .join-button,
.site-header.menu-open .join-button {
  color: var(--ink);
  background: rgba(23, 104, 201, 0.08);
  border-color: rgba(6, 23, 49, 0.28);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  transition: background 220ms ease, border-color 220ms ease;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #fff;
  transition: background 220ms ease, transform 220ms ease, opacity 220ms ease;
}

.site-header.is-scrolled .nav-toggle,
.site-header.menu-open .nav-toggle {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.92);
}

.site-header.is-scrolled .nav-toggle span,
.site-header.menu-open .nav-toggle span {
  background: var(--ink);
}

.site-header.menu-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header.menu-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.menu-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero-section {
  min-height: 100vh;
  display: grid;
  align-items: center;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(3, 10, 22, 0.72), rgba(3, 10, 22, 0.36), rgba(3, 10, 22, 0.16)),
    linear-gradient(180deg, rgba(3, 10, 22, 0.25), rgba(3, 10, 22, 0.58)),
    url("assets/brain-hero.png") right center / cover no-repeat;
  border-bottom: 1px solid var(--line);
  animation: heroReveal 900ms ease both;
}

.hero-section::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(115deg, transparent 0 44%, rgba(255, 255, 255, 0.34) 50%, transparent 56% 100%);
  transform: translateX(-120%);
  animation: heroLightSweep 5.6s ease-in-out 800ms infinite;
}

.hero-content {
  width: min(1500px, calc(100% - 80px));
  margin: 0 auto;
  padding: clamp(58px, 8vw, 110px) 0;
  position: relative;
  z-index: 2;
  text-align: left;
  animation: contentRise 780ms ease 120ms both;
}

.hero-content h1 {
  max-width: 900px;
  margin: 0;
  color: #fff;
  font-family: "Inter", Arial, sans-serif;
  font-size: clamp(3rem, 5.8vw, 6rem);
  font-weight: 700;
  line-height: 1.04;
}

.subtitle {
  margin: 22px 0 18px;
  color: #fff;
  font-size: clamp(1rem, 1.35vw, 1.22rem);
  font-weight: 600;
}

.hero-content p:not(.subtitle) {
  max-width: 760px;
  margin-right: 0;
  margin-left: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.72;
}

.hero-stars {
  margin-bottom: 28px;
  color: #ffc13d;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 14px;
  margin-top: 28px;
}

.btn {
  padding: 0 26px;
  border: 1px solid rgba(6, 23, 49, 0.16);
  box-shadow: 0 12px 28px rgba(23, 104, 201, 0.18);
}

.btn:focus-visible,
.join-button:focus-visible,
.contact-form button:focus-visible,
.area-item:focus-visible,
.nav-toggle:focus-visible,
.contact-form input:focus-visible,
.contact-form select:focus-visible,
.contact-form textarea:focus-visible {
  outline: 3px solid rgba(37, 200, 255, 0.46);
  outline-offset: 3px;
}

.btn.primary,
.contact-form button {
  color: #fff;
  background: linear-gradient(180deg, #2878df, #1457ad);
}

.btn.secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.84);
}

.hero-section .btn {
  min-width: 190px;
  border-color: rgba(255, 255, 255, 0.32);
}

.intro-section,
.lab-focus-section,
.methods-people,
.quick-sections,
.contact-section {
  background:
    radial-gradient(circle at 94% 12%, rgba(37, 200, 255, 0.12), transparent 28%),
    linear-gradient(180deg, #fff, #f7f9fd);
  border-bottom: 1px solid var(--line);
}

.intro-section {
  padding: clamp(38px, 5vw, 62px) 0;
}

h2 {
  margin: 0 0 22px;
  font-size: clamp(1.55rem, 2.5vw, 2.35rem);
  line-height: 1.18;
}

.intro-section p,
.methods-people p,
.methods-people li,
.quick-sections p,
.contact-section p {
  color: #2b374d;
  font-size: 1.06rem;
  line-height: 1.78;
}

.research-section {
  background: #08182e;
  scroll-margin-top: 96px;
}

.research-section .content-shell {
  padding-top: clamp(30px, 4vw, 46px);
}

.research-section h2 {
  color: #fff;
}

.research-visual {
  position: relative;
  min-height: 860px;
  overflow: hidden;
  padding-bottom: 250px;
}

.research-visual::before {
  position: absolute;
  inset: 0;
  z-index: 2;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 42%, rgba(37, 200, 255, 0.16), transparent 22%),
    linear-gradient(110deg, transparent 0 42%, rgba(255, 255, 255, 0.12) 50%, transparent 58% 100%);
  mix-blend-mode: screen;
  transform: translateX(-130%);
  animation: researchSweep 7s ease-in-out infinite;
}

.research-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: scale(1.01);
  animation: imageBreath 9s ease-in-out infinite;
}

.visual-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 14, 30, 0.3), transparent 24%, transparent 76%, rgba(5, 14, 30, 0.24)),
    linear-gradient(180deg, rgba(8, 24, 46, 0.1), rgba(8, 24, 46, 0.22));
  pointer-events: none;
}

.area-item {
  position: absolute;
  z-index: 3;
  width: min(340px, 28vw);
  min-height: 72px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  color: #fff;
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  transition: transform 180ms ease, filter 180ms ease;
}

.area-item::after {
  position: absolute;
  top: 50%;
  width: clamp(52px, 7vw, 120px);
  height: 2px;
  content: "";
  background: rgba(255, 255, 255, 0.82);
  transform-origin: center;
  transition: background 180ms ease, box-shadow 180ms ease;
}

.area-item.left::after {
  left: calc(100% + 12px);
}

.area-item.right::after {
  right: calc(100% + 12px);
}

.area-item:hover,
.area-item.active {
  transform: translateY(-3px);
  filter: brightness(1.16);
}

.area-item:hover::after,
.area-item.active::after {
  height: 3px;
  background:
    linear-gradient(90deg, rgba(37, 200, 255, 0), var(--cyan), #fff, var(--cyan), rgba(37, 200, 255, 0));
  box-shadow: 0 0 18px rgba(37, 200, 255, 0.85);
  animation: heartbeatLine 900ms ease-in-out infinite;
}

.area-item:hover .area-icon,
.area-item.active .area-icon {
  box-shadow: 0 0 0 5px rgba(37, 200, 255, 0.18), 0 0 22px rgba(37, 200, 255, 0.55);
  animation: iconBeat 900ms ease-in-out infinite;
}

.area-item strong {
  display: block;
  font-size: clamp(0.92rem, 1.2vw, 1.15rem);
  line-height: 1.18;
}

.area-item small {
  display: block;
  grid-column: 2;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.8rem;
  line-height: 1.25;
}

.area-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.82);
  border-radius: 4px;
  font-size: 0.88rem;
  font-weight: 800;
}

.left {
  left: clamp(34px, 6vw, 150px);
}

.right {
  right: clamp(34px, 6vw, 150px);
}

.item-1,
.item-6 {
  top: 14%;
}

.item-2,
.item-7 {
  top: 29%;
}

.item-3,
.item-8 {
  top: 45%;
}

.item-4,
.item-9 {
  top: 60%;
}

.item-5,
.item-10 {
  top: 75%;
}

.topic-card {
  position: absolute;
  right: 50%;
  bottom: 46px;
  z-index: 4;
  width: min(640px, calc(100% - 80px));
  min-height: 118px;
  padding: 20px 24px;
  color: #fff;
  background: rgba(7, 18, 35, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 4px;
  transform: translateX(50%);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
}

.topic-card.is-changing {
  animation: cardPop 260ms ease both;
}

.topic-card h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.topic-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.55;
}

.view-all {
  position: absolute;
  right: 50%;
  bottom: 196px;
  z-index: 5;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 26px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 4px;
  font-weight: 700;
  transform: translateX(50%);
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.view-all:hover {
  transform: translateX(50%) translateY(-3px);
}

.lab-focus-section {
  padding: clamp(44px, 5vw, 72px) 0;
}

.lab-focus-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 18px;
  align-items: stretch;
}

.lab-focus-card {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(24px, 3vw, 34px);
  background: #fff;
  border: 1px solid rgba(39, 65, 102, 0.12);
  border-radius: 8px;
  box-shadow: 0 16px 38px rgba(17, 35, 64, 0.08);
}

.lab-focus-card h2 {
  margin: 0;
  font-size: clamp(1.55rem, 2.3vw, 2.25rem);
}

.lab-focus-card p {
  margin: 0;
  color: #2b374d;
  font-size: 1.06rem;
  line-height: 1.72;
}

.methods-people {
  padding: clamp(40px, 5vw, 64px) 0;
}

.method-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(28px, 5vw, 64px);
}

.method-grid ul {
  margin: 14px 0 0;
  padding-left: 22px;
}

.people-panel {
  padding-left: 32px;
  border-left: 1px solid var(--line);
}

.people-panel ul {
  margin: 0;
  padding-left: 22px;
}

.people-panel li {
  margin: 7px 0;
  line-height: 1.55;
}

.action-row.small {
  margin-top: 22px;
}

.quick-sections {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding-top: clamp(38px, 5vw, 58px);
  padding-bottom: clamp(38px, 5vw, 58px);
}

.quick-sections article,
.quick-sections .quick-card,
.contact-form {
  padding: 24px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 14px 30px rgba(17, 35, 64, 0.08);
}

.quick-sections article,
.quick-sections .quick-card {
  position: relative;
  min-height: 270px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 30px;
  border-radius: 18px;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.quick-sections article::before,
.quick-sections .quick-card::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 84% 14%, rgba(37, 200, 255, 0.18), transparent 24%),
    linear-gradient(135deg, rgba(23, 104, 201, 0.08), transparent 48%);
  opacity: 0;
  transition: opacity 220ms ease;
}

.quick-sections article::after,
.quick-sections .quick-card::after {
  position: absolute;
  right: 24px;
  bottom: 22px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  content: "->";
  color: var(--blue-dark);
  background: transparent;
  border-radius: 0;
  font-size: 2.35rem;
  font-weight: 800;
  line-height: 1;
  transition: transform 220ms ease, color 220ms ease;
}

.quick-sections article:hover,
.quick-sections .quick-card:hover {
  transform: translateY(-8px);
  border-color: rgba(23, 104, 201, 0.34);
  box-shadow: 0 24px 48px rgba(17, 35, 64, 0.16);
}

.quick-sections article:hover::before,
.quick-sections .quick-card:hover::before {
  opacity: 1;
}

.quick-sections article:hover::after,
.quick-sections .quick-card:hover::after {
  color: var(--blue);
  transform: translate(5px, -5px);
}

.quick-sections article:nth-child(even),
.quick-sections .quick-card:nth-child(even),
.theme-grid .info-card:nth-child(even),
.news-grid .news-card:nth-child(even),
.people-grid-page .profile-card:nth-child(even),
.publication-stack .publication-card:nth-child(even) {
  background: #fff;
}

.quick-sections h2,
.quick-sections p {
  position: relative;
  z-index: 1;
}

.subpage-hero {
  min-height: 68vh;
  display: grid;
  align-items: center;
  text-align: center;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(3, 10, 22, 0.72), rgba(3, 10, 22, 0.36), rgba(3, 10, 22, 0.16)),
    linear-gradient(180deg, rgba(3, 10, 22, 0.18), rgba(3, 10, 22, 0.68)),
    url("assets/brain-hero.png") right center / cover no-repeat;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.subpage-hero::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(115deg, transparent 0 44%, rgba(255, 255, 255, 0.24) 50%, transparent 56% 100%);
  transform: translateX(-120%);
  animation: heroLightSweep 5.6s ease-in-out 800ms infinite;
}

.subpage-hero .content-shell {
  position: relative;
  z-index: 2;
  padding-top: 90px;
  animation: contentRise 780ms ease both;
}

.subpage-hero h1 {
  max-width: 980px;
  margin: 0 auto;
  color: #fff;
  font-family: "Inter", Arial, sans-serif;
  font-size: clamp(3rem, 6.4vw, 6.2rem);
  font-weight: 800;
  line-height: 1;
}

.subpage-hero p:not(.page-kicker) {
  max-width: 850px;
  margin-right: auto;
  margin-left: auto;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.02rem, 1.5vw, 1.22rem);
  line-height: 1.7;
}

.page-kicker {
  margin: 0 0 12px;
  color: #ffc13d;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.research-page-hero,
.facilities-page-hero,
.methods-page-hero,
.people-page-hero,
.publications-page-hero,
.news-page-hero,
.contact-page-hero,
.about-page-hero {
  background:
    linear-gradient(90deg, rgba(3, 10, 22, 0.72), rgba(3, 10, 22, 0.36), rgba(3, 10, 22, 0.16)),
    linear-gradient(180deg, rgba(3, 10, 22, 0.18), rgba(3, 10, 22, 0.68)),
    url("assets/brain-research.jpeg") center / cover no-repeat;
}

.about-page-hero {
  background:
    linear-gradient(90deg, rgba(3, 10, 22, 0.72), rgba(3, 10, 22, 0.36), rgba(3, 10, 22, 0.16)),
    linear-gradient(180deg, rgba(3, 10, 22, 0.18), rgba(3, 10, 22, 0.68)),
    url("assets/brain-hero.png") right center / cover no-repeat;
}

.about-full-hero {
  min-height: 100vh;
}

.about-full-hero .content-shell {
  align-items: flex-start;
  text-align: left;
}

.about-full-hero h1 {
  max-width: 880px;
  margin-right: 0;
  margin-left: 0;
}

.about-full-hero p:not(.page-kicker) {
  max-width: 720px;
  margin-right: 0;
  margin-left: 0;
}

.research-full-hero {
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(3, 10, 22, 0.72), rgba(3, 10, 22, 0.36), rgba(3, 10, 22, 0.16)),
    linear-gradient(180deg, rgba(3, 10, 22, 0.18), rgba(3, 10, 22, 0.68)),
    url("assets/brain-hero.png") right center / cover no-repeat;
}

.research-full-hero .content-shell {
  align-items: flex-start;
  text-align: left;
}

.research-full-hero h1 {
  max-width: 880px;
  margin-right: 0;
  margin-left: 0;
}

.research-full-hero p:not(.page-kicker) {
  max-width: 760px;
  margin-right: 0;
  margin-left: 0;
}

.publications-page-hero .content-shell {
  align-items: flex-start;
  text-align: left;
}

.publications-page-hero h1 {
  max-width: 980px;
  margin-right: 0;
  margin-left: 0;
}

.publications-page-hero p:not(.page-kicker) {
  max-width: 760px;
  margin-right: 0;
  margin-left: 0;
}

.publications-full-hero {
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(3, 10, 22, 0.72), rgba(3, 10, 22, 0.36), rgba(3, 10, 22, 0.16)),
    linear-gradient(180deg, rgba(3, 10, 22, 0.18), rgba(3, 10, 22, 0.68)),
    url("assets/brain-hero.png") right center / cover no-repeat;
}

.facilities-full-hero {
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(3, 10, 22, 0.72), rgba(3, 10, 22, 0.36), rgba(3, 10, 22, 0.16)),
    linear-gradient(180deg, rgba(3, 10, 22, 0.18), rgba(3, 10, 22, 0.68)),
    url("assets/brain-hero.png") right center / cover no-repeat;
}

.facilities-full-hero .content-shell {
  align-items: flex-start;
  text-align: left;
}

.facilities-full-hero h1 {
  max-width: 880px;
  margin-right: 0;
  margin-left: 0;
}

.facilities-full-hero p:not(.page-kicker) {
  max-width: 760px;
  margin-right: 0;
  margin-left: 0;
}

.gallery-full-hero {
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(3, 10, 22, 0.72), rgba(3, 10, 22, 0.36), rgba(3, 10, 22, 0.16)),
    linear-gradient(180deg, rgba(3, 10, 22, 0.18), rgba(3, 10, 22, 0.68)),
    url("assets/brain-hero.png") right center / cover no-repeat;
}

.gallery-full-hero .content-shell {
  align-items: flex-start;
  text-align: left;
}

.gallery-full-hero h1 {
  max-width: 880px;
  margin-right: 0;
  margin-left: 0;
}

.gallery-full-hero p:not(.page-kicker) {
  max-width: 760px;
  margin-right: 0;
  margin-left: 0;
}

.news-full-hero {
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(3, 10, 22, 0.72), rgba(3, 10, 22, 0.36), rgba(3, 10, 22, 0.16)),
    linear-gradient(180deg, rgba(3, 10, 22, 0.18), rgba(3, 10, 22, 0.68)),
    url("assets/brain-hero.png") right center / cover no-repeat;
}

.news-full-hero .content-shell {
  align-items: flex-start;
  text-align: left;
}

.news-full-hero h1 {
  max-width: 880px;
  margin-right: 0;
  margin-left: 0;
}

.news-full-hero p:not(.page-kicker) {
  max-width: 760px;
  margin-right: 0;
  margin-left: 0;
}

.news-page {
  overflow: visible;
}

.people-hero {
  min-height: 540px;
  background:
    linear-gradient(90deg, rgba(3, 10, 22, 0.88), rgba(5, 21, 45, 0.68), rgba(5, 21, 45, 0.38)),
    linear-gradient(180deg, rgba(3, 10, 22, 0.24), rgba(3, 10, 22, 0.72)),
    url("assets/brain-research.jpeg") center / cover no-repeat;
}

.people-hero .content-shell {
  align-items: flex-start;
  text-align: left;
  padding-top: 148px;
}

.people-hero h1 {
  max-width: 720px;
  margin-right: 0;
  margin-left: 0;
  font-size: clamp(2.8rem, 5.4vw, 5.6rem);
  line-height: 1.04;
}

.people-hero p:not(.page-kicker) {
  max-width: 760px;
  margin-right: 0;
  margin-left: 0;
}

.research-hero-v2 {
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding: 126px 24px 56px;
  background: #f4f8fd;
}

.research-hero-grid {
  min-height: calc(100vh - 182px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  padding: clamp(34px, 5vw, 66px);
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 82% 20%, rgba(37, 200, 255, 0.16), transparent 28%),
    linear-gradient(115deg, rgba(3, 13, 31, 0.98) 0%, rgba(6, 25, 54, 0.96) 48%, rgba(7, 35, 70, 0.92) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  box-shadow: 0 28px 80px rgba(17, 35, 64, 0.22);
}

.research-hero-copy h1 {
  margin: 0 0 18px;
  color: #fff;
  font-family: "Inter", Arial, sans-serif;
  font-size: clamp(2.8rem, 5vw, 5.2rem);
  font-weight: 700;
  line-height: 1.05;
}

.research-hero-copy p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.02rem, 1.35vw, 1.22rem);
  line-height: 1.72;
}

.research-hero-image {
  margin: 0;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
}

.research-hero-image img {
  width: 100%;
  aspect-ratio: 4 / 3.1;
  display: block;
  object-fit: cover;
  object-position: center;
}

.research-themes-section {
  padding: clamp(54px, 6vw, 88px) 0;
  background:
    radial-gradient(circle at 90% 8%, rgba(37, 200, 255, 0.12), transparent 30%),
    linear-gradient(180deg, #f7fbff, #fff);
}

.research-section-heading {
  margin-bottom: 28px;
}

.research-section-heading h2 {
  position: relative;
  margin: 0;
  padding-bottom: 14px;
  font-size: clamp(2rem, 3.5vw, 3.2rem);
}

.research-section-heading h2::after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 72px;
  height: 4px;
  content: "";
  background: var(--cyan);
  border-radius: 999px;
}

.research-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.research-theme-card {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  padding: 26px;
  background: #fff;
  border: 1px solid rgba(39, 65, 102, 0.12);
  border-radius: 12px;
  box-shadow: 0 18px 44px rgba(17, 35, 64, 0.09);
}

.research-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.research-card-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  border-radius: 14px;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(23, 104, 201, 0.22);
}

.research-card-code {
  padding: 7px 10px;
  color: var(--blue-dark);
  background: #eef7ff;
  border: 1px solid rgba(37, 200, 255, 0.24);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
}

.research-theme-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.25rem, 1.7vw, 1.62rem);
  line-height: 1.2;
}

.research-theme-card p {
  margin: 14px 0 24px;
  color: #39465a;
  line-height: 1.68;
}

.research-card-arrow {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-top: auto;
  margin-left: auto;
  color: var(--blue-dark);
  background: #eef7ff;
  border-radius: 999px;
  font-weight: 900;
}

.people-tabs-section {
  background:
    radial-gradient(circle at 90% 8%, rgba(37, 200, 255, 0.12), transparent 30%),
    linear-gradient(180deg, #f7fbff, #fff);
}

.people-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
  padding: 8px;
  background: #fff;
  border: 1px solid rgba(39, 65, 102, 0.12);
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(17, 35, 64, 0.08);
}

.people-tabs button {
  min-height: 46px;
  padding: 0 18px;
  color: #1d3654;
  background: #f4f8fd;
  border: 1px solid rgba(39, 65, 102, 0.1);
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
}

.people-tabs button.active,
.people-tabs button:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  border-color: transparent;
}

.people-tab-panel {
  animation: contentRise 280ms ease both;
}

.team-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}

.principal-grid {
  display: grid;
  gap: 22px;
}

.team-card {
  position: relative;
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  min-height: 250px;
  padding: 32px;
  background: #fff;
  border: 1px solid rgba(39, 65, 102, 0.12);
  border-radius: 12px;
  box-shadow: 0 18px 44px rgba(17, 35, 64, 0.1);
}

.team-card::before {
  position: absolute;
  top: 0;
  right: 22px;
  left: 22px;
  height: 4px;
  content: "";
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  border-radius: 0 0 999px 999px;
}

.team-initials {
  width: 116px;
  height: 116px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  border-radius: 18px;
  font-size: 1.55rem;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(23, 104, 201, 0.24);
}

.team-photo {
  width: 116px;
  height: 116px;
  display: block;
  object-fit: cover;
  object-position: center top;
  border-radius: 18px;
  border: 1px solid rgba(39, 65, 102, 0.14);
  box-shadow: 0 12px 28px rgba(17, 35, 64, 0.16);
}

.team-card h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.55rem, 2.2vw, 2.25rem);
  line-height: 1.12;
}

.team-role {
  margin: 8px 0 0;
  color: var(--blue-dark);
  font-weight: 800;
}

.team-bio {
  margin: 14px 0 0;
  color: #39465a;
  font-size: 1rem;
  line-height: 1.62;
}

.principal-card {
  grid-template-columns: 180px minmax(0, 1fr);
  align-items: start;
  min-height: 340px;
  padding: clamp(28px, 4vw, 42px);
  background:
    radial-gradient(circle at 92% 12%, rgba(37, 200, 255, 0.13), transparent 28%),
    #fff;
}

.principal-card .team-initials {
  width: 112px;
  height: 112px;
  border-radius: 20px;
  font-size: 2rem;
}

.principal-card .team-photo {
  width: 180px;
  height: 220px;
  border-radius: 22px;
}

.principal-card h2 {
  font-size: clamp(2rem, 3vw, 3rem);
}

.principal-card .team-role {
  display: inline-flex;
  margin-top: 10px;
  padding: 8px 12px;
  color: #fff;
  background: var(--blue);
  border-radius: 999px;
}

.page-section {
  padding: clamp(44px, 6vw, 78px) 0;
  background:
    radial-gradient(circle at 92% 8%, rgba(37, 200, 255, 0.12), transparent 30%),
    linear-gradient(180deg, #fff, #f7f9fd);
}

.theme-grid,
.people-grid-page,
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.news-scroll-area {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(360px, 580px);
  gap: 24px;
  overflow-x: auto;
  overflow-y: visible;
  padding: 8px 0 22px;
  scroll-snap-type: x proximity;
  scrollbar-color: var(--blue) #dceaf8;
  scrollbar-width: thin;
}

.news-scroll-area::-webkit-scrollbar {
  height: 12px;
}

.news-scroll-area::-webkit-scrollbar-track {
  background: #dceaf8;
  border-radius: 999px;
}

.news-scroll-area::-webkit-scrollbar-thumb {
  background: var(--blue);
  border-radius: 999px;
}

.news-scroll-area .news-card {
  min-height: 330px;
  display: block;
  color: inherit;
  text-decoration: none;
  scroll-snap-align: start;
}

.news-card-link {
  color: var(--blue-dark) !important;
  font-weight: 800;
}

.news-card-image {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 190px;
  display: block;
  object-fit: cover;
  margin: 0 0 18px;
  border-radius: 8px;
  border: 1px solid rgba(39, 65, 102, 0.12);
}

.compact-grid {
  margin-top: 20px;
}

.info-card,
.wide-card,
.profile-card,
.publication-card,
.news-card,
.method-list span {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 14px 30px rgba(17, 35, 64, 0.08);
}

.info-card,
.wide-card,
.profile-card,
.publication-card,
.news-card {
  position: relative;
  overflow: hidden;
  padding: 30px;
  border-radius: 18px;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.info-card::after,
.profile-card::after,
.publication-card::after,
.news-card::after {
  position: absolute;
  right: 24px;
  bottom: 22px;
  content: "->";
  color: var(--blue-dark);
  font-size: 2.25rem;
  font-weight: 800;
  transition: transform 220ms ease, color 220ms ease;
}

.info-card:hover::after,
.profile-card:hover::after,
.publication-card:hover::after,
.news-card:hover::after {
  color: var(--blue);
  transform: translate(5px, -5px);
}

.info-card::before,
.wide-card::before,
.profile-card::before,
.publication-card::before,
.news-card::before {
  position: absolute;
  inset: 0;
  content: "";
  background: radial-gradient(circle at 86% 12%, rgba(37, 200, 255, 0.16), transparent 26%);
  opacity: 0;
  transition: opacity 220ms ease;
}

.info-card:hover,
.wide-card:hover,
.profile-card:hover,
.publication-card:hover,
.news-card:hover {
  transform: translateY(-7px);
  border-color: rgba(23, 104, 201, 0.32);
  box-shadow: 0 24px 48px rgba(17, 35, 64, 0.15);
}

.info-card:hover::before,
.wide-card:hover::before,
.profile-card:hover::before,
.publication-card:hover::before,
.news-card:hover::before {
  opacity: 1;
}

.info-card h2,
.wide-card h2,
.profile-card h2,
.publication-card h2,
.news-card h2,
.info-card p,
.wide-card p,
.profile-card p,
.publication-card p,
.news-card p {
  position: relative;
  z-index: 1;
}

.info-card h2,
.profile-card h2,
.publication-card h2,
.news-card h2 {
  font-size: clamp(1.22rem, 1.9vw, 1.7rem);
}

.info-card p,
.wide-card p,
.profile-card p,
.publication-card p,
.news-card p {
  color: #2b374d;
  line-height: 1.72;
}

.info-card p:last-child,
.profile-card p:last-child,
.publication-card p:last-child,
.news-card p:last-child {
  padding-bottom: 36px;
}

.wide-card {
  margin-bottom: 20px;
}

.method-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.method-list span {
  position: relative;
  display: block;
  min-height: 120px;
  padding: 22px 58px 22px 22px;
  color: #223149;
  border-radius: 18px;
  font-weight: 700;
  line-height: 1.55;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.method-list span::after {
  position: absolute;
  right: 20px;
  bottom: 16px;
  content: "->";
  color: var(--blue-dark);
  font-size: 1.8rem;
  font-weight: 800;
  transition: transform 180ms ease;
}

.method-list span:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px rgba(17, 35, 64, 0.12);
}

.method-list span:hover::after {
  transform: translate(4px, -4px);
}

.people-grid-page {
  grid-template-columns: repeat(2, 1fr);
}

.lead-profile {
  grid-column: span 2;
}

.profile-avatar {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  border-radius: 50%;
  font-weight: 800;
}

.publication-stack {
  display: grid;
  gap: 18px;
}

.publication-card span,
.news-card span {
  position: relative;
  z-index: 1;
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--blue);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.about-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(26px, 5vw, 64px);
  align-items: center;
}

.about-layout.reverse {
  grid-template-columns: 0.9fr 1.1fr;
}

.about-copy {
  margin-bottom: 0;
}

.about-copy p {
  margin: 0 0 16px;
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.about-image-card {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #061731;
  box-shadow: 0 22px 54px rgba(17, 35, 64, 0.14);
}

.about-image-card::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(circle at 34% 30%, rgba(37, 200, 255, 0.24), transparent 30%),
    linear-gradient(130deg, rgba(255, 255, 255, 0.16), transparent 45%);
}

.about-image-card img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  display: block;
  object-fit: cover;
  object-position: center;
}

.lab-placeholder {
  min-height: 430px;
  display: grid;
  place-items: center;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(6, 23, 49, 0.16), rgba(6, 23, 49, 0.82)),
    url("assets/brain-hero.png") center / cover no-repeat;
}

.lab-placeholder span {
  position: relative;
  z-index: 1;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 4px;
  background: rgba(6, 23, 49, 0.58);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-weight: 800;
}

.about-brain-section {
  background:
    radial-gradient(circle at 12% 0%, rgba(37, 200, 255, 0.14), transparent 30%),
    linear-gradient(180deg, #f7f9fd, #fff);
}

.about-feature-block {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: center;
  gap: 0;
}

.about-feature-block.reverse {
  grid-template-columns: 1.05fr 0.95fr;
}

.feature-copy {
  position: relative;
  z-index: 2;
  padding: clamp(34px, 5vw, 70px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 28px 70px rgba(17, 35, 64, 0.13);
}

.about-feature-block:not(.reverse) .feature-copy {
  margin-right: -72px;
}

.about-feature-block.reverse .feature-copy {
  margin-left: -72px;
}

.feature-number {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
  color: var(--blue-dark);
  font-weight: 800;
}

.feature-number::after {
  width: 72px;
  height: 1px;
  content: "";
  background: #8390a3;
}

.feature-copy h2 {
  font-family: "Inter", Arial, sans-serif;
  font-size: clamp(2.2rem, 4.4vw, 4.7rem);
  font-weight: 800;
  color: #5e636b;
}

.feature-copy p {
  margin: 0 0 16px;
  color: #39465a;
  font-size: 1.02rem;
  line-height: 1.78;
}

.feature-copy p:last-child {
  margin-bottom: 0;
}

.feature-image {
  min-height: 620px;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 28px 70px rgba(17, 35, 64, 0.16);
}

.feature-image img,
.feature-image .lab-placeholder {
  width: 100%;
  height: 100%;
  min-height: 620px;
}

.feature-image img {
  display: block;
  object-fit: cover;
  object-position: center;
}

.about-story-hero {
  min-height: 760px;
  padding: 160px 0 80px;
  background:
    linear-gradient(90deg, rgba(247, 249, 253, 0.96), rgba(247, 249, 253, 0.78)),
    linear-gradient(90deg, rgba(6, 23, 49, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(6, 23, 49, 0.06) 1px, transparent 1px);
  background-size: auto, 25% 100%, 100% 25%;
  overflow: hidden;
}

.about-story-hero .content-shell {
  position: relative;
  min-height: 610px;
}

.about-story-image {
  position: absolute;
  top: 0;
  right: 0;
  width: min(60vw, 1080px);
  height: 520px;
  overflow: hidden;
  border-top-left-radius: 70px;
  border-bottom-left-radius: 70px;
  box-shadow: 0 28px 70px rgba(17, 35, 64, 0.16);
}

.about-story-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: right center;
}

.about-story-card {
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(720px, 58%);
  min-height: 430px;
  display: grid;
  align-content: center;
  padding: clamp(34px, 6vw, 78px);
  background: #fff;
  border-top-right-radius: 70px;
  box-shadow: 0 28px 70px rgba(17, 35, 64, 0.13);
}

.story-label {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 34px;
  color: #5c6370;
  font-weight: 800;
  text-transform: uppercase;
}

.story-label i {
  width: 78px;
  height: 1px;
  background: #6b7280;
}

.about-story-card h1 {
  margin: 0 0 22px;
  color: #5e636b;
  font-family: "Inter", Arial, sans-serif;
  font-size: clamp(2.7rem, 5vw, 5.4rem);
  font-weight: 800;
  line-height: 1.08;
}

.about-story-card p {
  margin: 0;
  color: #39465a;
  font-size: 1.08rem;
  line-height: 1.75;
}

.about-hero-v2 {
  min-height: 800px;
  display: grid;
  align-items: center;
  padding: 126px 24px 56px;
  position: relative;
  overflow: hidden;
  color: #fff;
  background: #f4f8fd;
}

.about-hero-v2::after {
  position: absolute;
  inset: auto -8% -32% auto;
  width: 54vw;
  height: 54vw;
  content: "";
  background: radial-gradient(circle, rgba(37, 200, 255, 0.18), transparent 62%);
  pointer-events: none;
}

.about-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.82fr);
  gap: clamp(34px, 5vw, 76px);
  align-items: center;
  min-height: 630px;
  padding: clamp(34px, 5vw, 66px);
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 22%, rgba(37, 200, 255, 0.16), transparent 28%),
    linear-gradient(115deg, rgba(3, 13, 31, 0.98) 0%, rgba(6, 25, 54, 0.96) 48%, rgba(7, 35, 70, 0.92) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  box-shadow: 0 28px 80px rgba(17, 35, 64, 0.22);
}

.about-hero-copy {
  max-width: 820px;
}

.about-hero-copy h1 {
  margin: 0 0 22px;
  color: #fff;
  font-family: "Inter", Arial, sans-serif;
  font-size: clamp(3rem, 5.7vw, 6rem);
  font-weight: 700;
  line-height: 1.03;
}

.about-hero-copy p {
  margin: 0 0 14px;
  max-width: 780px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(0.98rem, 1.16vw, 1.12rem);
  line-height: 1.7;
}

.about-hero-copy p:last-of-type {
  margin-bottom: 0;
}

.about-highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
  max-width: 760px;
}

.about-highlights span {
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.16);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-weight: 700;
  line-height: 1.35;
}

.about-highlights strong {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  color: #061731;
  background: #25c8ff;
  border-radius: 8px;
  font-size: 0.82rem;
}

.about-hero-image {
  margin: 0;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
}

.about-hero-image img {
  width: 100%;
  aspect-ratio: 4 / 3.15;
  display: block;
  object-fit: cover;
  object-position: center;
}

.about-intro-section {
  padding: clamp(54px, 6vw, 88px) 0;
  background:
    radial-gradient(circle at 88% 12%, rgba(37, 200, 255, 0.12), transparent 28%),
    linear-gradient(180deg, #f7faff, #fff);
}

.about-info-card {
  background: #fff;
  border: 1px solid rgba(39, 65, 102, 0.12);
  border-radius: 18px;
  box-shadow: 0 22px 58px rgba(17, 35, 64, 0.12);
}

.about-intro-card {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.85fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding: clamp(24px, 4vw, 46px);
}

.about-intro-copy h2 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 3.6vw, 3.4rem);
}

.about-intro-copy p {
  margin: 0 0 16px;
  color: #2b374d;
  font-size: 1.07rem;
  line-height: 1.76;
}

.about-intro-copy p:last-child {
  margin-bottom: 0;
}

.about-intro-image {
  margin: 0;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 18px 42px rgba(17, 35, 64, 0.14);
}

.about-intro-image img {
  width: 100%;
  min-height: 420px;
  display: block;
  object-fit: cover;
}

.about-mission-card {
  margin-top: 24px;
  padding: clamp(24px, 4vw, 42px);
}

.about-mission-card h2 {
  margin: 0 0 18px;
}

.about-mission-card ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.about-mission-card li {
  position: relative;
  padding: 16px 16px 16px 44px;
  color: #2b374d;
  background: #f6faff;
  border: 1px solid rgba(37, 200, 255, 0.18);
  border-radius: 10px;
  font-weight: 700;
}

.about-mission-card li::before {
  position: absolute;
  top: 17px;
  left: 16px;
  width: 14px;
  height: 14px;
  content: "";
  background: #25c8ff;
  border-radius: 999px;
  box-shadow: 0 0 0 5px rgba(37, 200, 255, 0.14);
}

.about-detail-section {
  padding-top: 72px;
}

.quick-sections h2 {
  font-size: 1.45rem;
}

.contact-section {
  padding: clamp(42px, 5vw, 64px) 0;
}

.contact-form {
  display: grid;
  gap: 14px;
}

.contact-form label,
.contact-form span {
  display: grid;
  gap: 7px;
  font-weight: 700;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  min-height: 46px;
  width: 100%;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.contact-form textarea {
  min-height: 120px;
  padding: 12px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: rgba(23, 104, 201, 0.62);
  box-shadow: 0 0 0 4px rgba(23, 104, 201, 0.1);
}

.contact-form button {
  border: 0;
}

.site-footer {
  background: rgba(255, 255, 255, 0.96);
}

.footer-row {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #36445a;
}

.logo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.logo-row span {
  padding: 8px 10px;
  color: var(--blue-dark);
  background: #e9f2ff;
  border-radius: 4px;
  font-weight: 800;
  transition: transform 180ms ease, background 180ms ease;
}

.logo-row span:hover {
  transform: translateY(-3px);
  background: #dcecff;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 620ms ease, transform 620ms ease;
}

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

/* Unified professional research cards */
.quick-sections article,
.quick-sections .quick-card,
.info-card,
.profile-card,
.publication-card,
.news-card,
.method-list span {
  background: #fff;
  border-color: rgba(215, 222, 234, 0.95);
}

.quick-sections article:nth-child(odd),
.quick-sections .quick-card:nth-child(odd),
.theme-grid .info-card:nth-child(odd),
.news-grid .news-card:nth-child(odd),
.people-grid-page .profile-card:nth-child(odd),
.publication-stack .publication-card:nth-child(odd),
.method-list span:nth-child(odd) {
  background: #fff;
  border-color: rgba(215, 222, 234, 0.95);
}

.quick-sections article::before,
.quick-sections .quick-card::before,
.info-card::before,
.wide-card::before,
.profile-card::before,
.publication-card::before,
.news-card::before {
  inset: auto;
  top: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  content: "UB";
  color: var(--blue-dark);
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.95), transparent 22%),
    linear-gradient(135deg, rgba(37, 200, 255, 0.22), rgba(23, 104, 201, 0.09));
  border: 1px solid rgba(23, 104, 201, 0.18);
  border-radius: 18px;
  font-size: 0.8rem;
  font-weight: 800;
  opacity: 1;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.quick-sections .quick-card:nth-child(1)::before { content: "PUB"; }
.quick-sections .quick-card:nth-child(2)::before { content: "MRI"; }
.quick-sections .quick-card:nth-child(3)::before { content: "LAB"; }
.quick-sections .quick-card:nth-child(4)::before { content: "NEW"; }
.theme-grid .info-card:nth-child(1)::before { content: "DC"; }
.theme-grid .info-card:nth-child(2)::before { content: "SP"; }
.theme-grid .info-card:nth-child(3)::before { content: "LC"; }
.theme-grid .info-card:nth-child(4)::before { content: "BB"; }
.theme-grid .info-card:nth-child(5)::before { content: "VA"; }
.theme-grid .info-card:nth-child(6)::before { content: "TN"; }
.compact-grid .info-card:nth-child(1)::before { content: "FM"; }
.compact-grid .info-card:nth-child(2)::before { content: "EP"; }
.compact-grid .info-card:nth-child(3)::before { content: "VR"; }
.compact-grid .info-card:nth-child(4)::before { content: "TD"; }
.compact-grid .info-card:nth-child(5)::before { content: "HC"; }
.publication-card:nth-child(1)::before { content: "CN"; }
.publication-card:nth-child(2)::before { content: "SP"; }
.publication-card:nth-child(3)::before { content: "CM"; }
.news-card:nth-child(1)::before { content: "RS"; }
.news-card:nth-child(2)::before { content: "FC"; }
.news-card:nth-child(3)::before { content: "OP"; }
.people-grid-page .profile-card:nth-child(1)::before { content: "PI"; }
.people-grid-page .profile-card:nth-child(2)::before { content: "RS"; }
.people-grid-page .profile-card:nth-child(3)::before { content: "AL"; }
.people-grid-page .profile-card:nth-child(4)::before { content: "AL"; }

.quick-sections h2,
.info-card h2,
.wide-card h2,
.profile-card h2,
.publication-card h2,
.news-card h2,
.feature-copy h2 {
  padding-right: 78px;
}

.quick-sections article:hover,
.quick-sections .quick-card:hover,
.info-card:hover,
.wide-card:hover,
.profile-card:hover,
.publication-card:hover,
.news-card:hover,
.method-list span:hover {
  background:
    radial-gradient(circle at 82% 18%, rgba(37, 200, 255, 0.2) 0 4px, transparent 5px),
    radial-gradient(circle at 63% 31%, rgba(23, 104, 201, 0.18) 0 3px, transparent 4px),
    radial-gradient(circle at 76% 54%, rgba(37, 200, 255, 0.16) 0 4px, transparent 5px),
    linear-gradient(35deg, transparent 0 68%, rgba(23, 104, 201, 0.18) 68.2% 68.8%, transparent 69%),
    linear-gradient(150deg, transparent 0 60%, rgba(37, 200, 255, 0.18) 60.2% 60.8%, transparent 61%),
    #fff;
}

.quick-sections article:hover::before,
.quick-sections .quick-card:hover::before,
.info-card:hover::before,
.wide-card:hover::before,
.profile-card:hover::before,
.publication-card:hover::before,
.news-card:hover::before {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 0 0 8px rgba(37, 200, 255, 0.12), 0 0 28px rgba(37, 200, 255, 0.35);
  animation: signalPulse 1.1s ease-in-out infinite;
}

.feature-copy::before {
  position: absolute;
  top: 28px;
  right: 28px;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  content: "BR";
  color: var(--blue-dark);
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.95), transparent 22%),
    linear-gradient(135deg, rgba(37, 200, 255, 0.22), rgba(23, 104, 201, 0.09));
  border: 1px solid rgba(23, 104, 201, 0.18);
  border-radius: 20px;
  font-size: 0.84rem;
  font-weight: 800;
}

.about-feature-block:not(.reverse) .feature-copy::before {
  content: "LAB";
}

@keyframes signalPulse {
  0%, 100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.14);
  }
}

@keyframes heroReveal {
  from {
    filter: saturate(0.88) contrast(0.96);
  }
  to {
    filter: saturate(1) contrast(1);
  }
}

@keyframes contentRise {
  from {
    transform: translateY(18px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes heroLightSweep {
  0%, 45% {
    transform: translateX(-120%);
  }
  70%, 100% {
    transform: translateX(120%);
  }
}

@keyframes researchSweep {
  0%, 55% {
    transform: translateX(-130%);
    opacity: 0;
  }
  72% {
    opacity: 0.9;
  }
  100% {
    transform: translateX(130%);
    opacity: 0;
  }
}

@keyframes imageBreath {
  0%, 100% {
    transform: scale(1.01);
  }
  50% {
    transform: scale(1.035);
  }
}

@keyframes cardPop {
  from {
    transform: translateX(50%) translateY(8px) scale(0.98);
    opacity: 0.6;
  }
  to {
    transform: translateX(50%) translateY(0) scale(1);
    opacity: 1;
  }
}

@keyframes heartbeatLine {
  0%, 100% {
    transform: scaleX(1);
    opacity: 0.78;
  }
  14% {
    transform: scaleX(1.08);
    opacity: 1;
  }
  28% {
    transform: scaleX(0.92);
  }
  42% {
    transform: scaleX(1.12);
    opacity: 1;
  }
  70% {
    transform: scaleX(1);
    opacity: 0.86;
  }
}

@keyframes iconBeat {
  0%, 100% {
    transform: scale(1);
  }
  18% {
    transform: scale(1.08);
  }
  34% {
    transform: scale(0.96);
  }
  50% {
    transform: scale(1.1);
  }
}

@keyframes mobileGlow {
  0%, 100% {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  }
  50% {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18), 0 0 26px rgba(37, 200, 255, 0.42);
  }
}

@media (max-width: 1200px) {
  .content-shell,
  .nav-shell,
  .hero-content {
    width: min(100% - 48px, 1500px);
  }

  .nav-shell {
    gap: 22px;
  }

  .nav-menu {
    gap: 14px;
    font-size: 0.95rem;
  }

  .join-button {
    padding: 0 18px;
  }

  .left {
    left: 34px;
  }

  .right {
    right: 34px;
  }
}

@media (max-width: 980px) {
  .nav-shell {
    grid-template-columns: 1fr auto;
  }

  .nav-toggle {
    display: block;
    justify-self: end;
  }

  .nav-menu {
    position: absolute;
    top: 86px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 18px;
    color: var(--ink);
    background:
      radial-gradient(circle at 18% 8%, rgba(37, 200, 255, 0.16), transparent 34%),
      rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(215, 222, 234, 0.9);
    border-radius: 0 0 18px 18px;
    box-shadow: 0 28px 70px rgba(17, 35, 64, 0.22);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
  }

  .nav-menu.open {
    display: flex;
    animation: mobileMenuDrop 220ms ease both;
  }

  .nav-menu a {
    padding: 14px 16px;
    min-height: 48px;
    border-radius: 12px;
    background: rgba(23, 104, 201, 0.06);
    text-shadow: none;
    white-space: normal;
  }

  .nav-menu a:hover,
  .nav-menu a.active {
    color: #fff;
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  }

  .nav-menu a::after,
  .join-button {
    display: none;
  }

  .hero-section {
    min-height: 100vh;
    align-items: start;
    background:
      linear-gradient(180deg, rgba(3, 10, 22, 0.62) 0%, rgba(3, 10, 22, 0.4) 48%, rgba(3, 10, 22, 0.66) 100%),
      url("assets/brain-hero.png") 64% bottom / 1050px auto no-repeat;
  }

  .subpage-hero {
    min-height: 620px;
    background:
      linear-gradient(180deg, rgba(3, 10, 22, 0.62) 0%, rgba(3, 10, 22, 0.4) 48%, rgba(3, 10, 22, 0.66) 100%),
      url("assets/brain-research.jpeg") center bottom / cover no-repeat;
  }

  .about-page-hero {
    background:
      linear-gradient(180deg, rgba(3, 10, 22, 0.62) 0%, rgba(3, 10, 22, 0.4) 48%, rgba(3, 10, 22, 0.66) 100%),
      url("assets/brain-hero.png") 64% bottom / 1050px auto no-repeat;
  }

  .hero-content {
    padding-top: 150px;
  }

  .subpage-hero .content-shell {
    padding-top: 130px;
  }

  .about-story-hero {
    min-height: auto;
    padding: 120px 0 50px;
  }

  .about-story-hero .content-shell {
    min-height: auto;
    display: grid;
  }

  .about-story-image,
  .about-story-card {
    position: relative;
    width: 100%;
  }

  .about-story-image {
    height: 360px;
    border-radius: 32px 32px 0 0;
  }

  .about-story-card {
    min-height: auto;
    border-radius: 0 0 32px 32px;
  }

  .research-visual {
    min-height: auto;
    display: grid;
    gap: 10px;
    padding: 320px 24px 34px;
  }

  .research-visual img,
  .visual-shade {
    height: 300px;
    bottom: auto;
  }

  .research-visual img {
    animation-duration: 11s;
  }

  .area-item,
  .topic-card,
  .view-all {
    position: relative;
    inset: auto;
    width: 100%;
    transform: none;
  }

  .area-item {
    min-height: 66px;
    background: rgba(16, 31, 55, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    animation: mobileGlow 3.4s ease-in-out infinite;
  }

  .area-item::after {
    display: none;
  }

  .topic-card {
    order: 20;
    min-height: auto;
  }

  .topic-card.is-changing {
    animation-name: mobileCardPop;
  }

  .view-all {
    order: 21;
    justify-content: center;
  }

  .area-item.active {
    background:
      linear-gradient(135deg, rgba(23, 104, 201, 0.96), rgba(9, 29, 55, 0.94));
    border-color: rgba(37, 200, 255, 0.7);
  }

  .method-grid,
  .contact-grid,
  .quick-sections,
  .lab-focus-grid,
  .about-hero-grid,
  .about-intro-card,
  .research-hero-grid,
  .research-card-grid,
  .team-card-grid,
  .about-layout,
  .about-layout.reverse,
  .about-feature-block,
  .about-feature-block.reverse,
  .theme-grid,
  .people-grid-page,
  .news-grid,
  .method-list {
    grid-template-columns: 1fr 1fr;
  }

  .people-panel {
    padding-left: 0;
    border-left: 0;
  }

  .people-hero {
    min-height: 480px;
  }

  .about-hero-v2 {
    min-height: auto;
    padding-top: 122px;
  }

  .about-hero-image img {
    max-height: 420px;
  }

  .about-intro-image img {
    min-height: 320px;
  }

  .about-mission-card ul {
    grid-template-columns: 1fr;
  }

  .research-hero-v2 {
    padding-top: 122px;
  }
}

@keyframes mobileMenuDrop {
  from {
    transform: translateY(-12px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes mobileCardPop {
  from {
    transform: translateY(8px) scale(0.98);
    opacity: 0.6;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

@media (max-width: 640px) {
  .content-shell,
  .nav-shell,
  .hero-content {
    width: min(100% - 32px, 1500px);
  }

  .brand {
    font-size: 1.2rem;
  }

  .hero-section {
    min-height: 100vh;
    background:
      linear-gradient(180deg, rgba(3, 10, 22, 0.68) 0%, rgba(3, 10, 22, 0.42) 45%, rgba(3, 10, 22, 0.68) 100%),
      url("assets/brain-hero.png") 63% bottom / 840px auto no-repeat;
  }

  .subpage-hero {
    min-height: 560px;
  }

  .subpage-hero h1 {
    font-size: clamp(2.7rem, 13vw, 5rem);
  }

  .about-page-hero {
    background:
      linear-gradient(180deg, rgba(3, 10, 22, 0.66) 0%, rgba(3, 10, 22, 0.42) 45%, rgba(3, 10, 22, 0.68) 100%),
      url("assets/brain-hero.png") 63% bottom / 840px auto no-repeat;
  }

  .hero-content {
    padding-top: 136px;
  }

  .hero-content h1 {
    font-size: clamp(2.7rem, 13vw, 4.6rem);
  }

  .action-row,
  .btn {
    width: 100%;
  }

  .intro-section,
  .methods-people,
  .contact-section {
    padding-top: 34px;
    padding-bottom: 34px;
  }

  .research-section .content-shell {
    padding-top: 28px;
  }

  .research-visual {
    padding: 240px 16px 28px;
  }

  .research-visual img,
  .visual-shade {
    height: 220px;
  }

  .lab-focus-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .lab-focus-card {
    padding: 22px;
  }

  .about-hero-v2 {
    padding: 112px 16px 46px;
  }

  .about-hero-grid {
    padding: 24px;
    border-radius: 18px;
  }

  .about-hero-copy h1 {
    font-size: clamp(2.55rem, 12vw, 4rem);
  }

  .about-highlights {
    grid-template-columns: 1fr;
  }

  .about-hero-image img {
    aspect-ratio: 1 / 0.76;
  }

  .about-intro-card {
    padding: 22px;
    border-radius: 14px;
  }

  .about-intro-copy h2 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .about-intro-image img {
    min-height: 240px;
  }

  .method-grid,
  .contact-grid,
  .quick-sections,
  .research-hero-grid,
  .research-card-grid,
  .team-card-grid,
  .about-layout,
  .about-layout.reverse,
  .theme-grid,
  .people-grid-page,
  .news-grid,
  .method-list {
    grid-template-columns: 1fr;
  }

  .lead-profile {
    grid-column: auto;
  }

  .people-tabs {
    display: grid;
  }

  .people-tabs button {
    width: 100%;
  }

  .principal-card {
    grid-template-columns: 1fr;
  }

  .principal-card .team-initials {
    width: 82px;
    height: 82px;
    font-size: 1.45rem;
  }

  .news-scroll-area {
    grid-auto-flow: row;
    grid-auto-columns: auto;
    grid-template-columns: 1fr;
    overflow-x: visible;
    padding-bottom: 0;
  }

  .research-hero-v2 {
    padding: 112px 16px 46px;
  }

  .research-hero-grid {
    padding: 24px;
    border-radius: 18px;
  }

  .research-hero-copy h1 {
    font-size: clamp(2.45rem, 11vw, 4rem);
  }

  .about-image-card,
  .about-image-card img,
  .lab-placeholder {
    min-height: 300px;
  }

  .about-story-image {
    height: 280px;
  }

  .about-story-card {
    padding: 30px 22px;
  }

  .story-label {
    gap: 12px;
    margin-bottom: 24px;
  }

  .story-label i {
    width: 44px;
  }

  .quick-sections article,
  .quick-sections .quick-card {
    min-height: 180px;
  }

  .about-feature-block:not(.reverse) .feature-copy,
  .about-feature-block.reverse .feature-copy {
    margin: 0;
  }

  .feature-image,
  .feature-image img,
  .feature-image .lab-placeholder {
    min-height: 360px;
  }

  .about-feature-block.reverse .feature-image {
    order: 2;
  }

  .footer-row {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 22px;
    padding-bottom: 22px;
  }
}

/* About page editorial alignment */
.about-detail-section,
.about-brain-section {
  padding: clamp(72px, 8vw, 120px) 0;
}

.about-editorial-card {
  position: relative;
  overflow: hidden;
  padding: clamp(34px, 5vw, 76px);
  background:
    radial-gradient(circle at 90% 8%, rgba(37, 200, 255, 0.12), transparent 26%),
    #fff;
  border: 1px solid rgba(215, 222, 234, 0.95);
  border-radius: 30px;
  box-shadow: 0 28px 70px rgba(17, 35, 64, 0.12);
}

.about-editorial-card::before {
  position: absolute;
  top: 30px;
  right: 30px;
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  content: "LAB";
  color: var(--blue-dark);
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.95), transparent 22%),
    linear-gradient(135deg, rgba(37, 200, 255, 0.22), rgba(23, 104, 201, 0.09));
  border: 1px solid rgba(23, 104, 201, 0.18);
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 800;
}

.about-brain-section .about-editorial-card::before {
  content: "BR";
}

.editorial-visual {
  position: relative;
  width: min(48%, 640px);
  margin: 0;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 22px 54px rgba(17, 35, 64, 0.16);
  shape-margin: 28px;
}

.visual-right {
  float: right;
  margin: 0 0 28px clamp(26px, 4vw, 54px);
}

.visual-left {
  float: left;
  margin: 0 clamp(26px, 4vw, 54px) 28px 0;
}

.editorial-visual img {
  width: 100%;
  aspect-ratio: 1.08;
  display: block;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
}

.visual-right img {
  object-position: right center;
}

.editorial-visual figcaption {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 10px 14px;
  color: #fff;
  background: rgba(6, 23, 49, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 10px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-weight: 800;
}

.about-editorial-card .feature-number {
  margin-bottom: 24px;
}

.about-editorial-card h2 {
  max-width: 760px;
  margin-bottom: 26px;
  padding-right: 82px;
  color: #4f5662;
  font-family: "Inter", Arial, sans-serif;
  font-size: clamp(2.4rem, 4.2vw, 4.8rem);
  font-weight: 800;
  line-height: 1.04;
}

.about-editorial-card p {
  max-width: none;
  margin: 0 0 18px;
  color: #39465a;
  font-size: clamp(1rem, 1.05vw, 1.09rem);
  line-height: 1.78;
}

.about-editorial-card p:last-child {
  margin-bottom: 0;
}

.about-feature-block,
.about-feature-block.reverse {
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(26px, 4vw, 56px);
  align-items: stretch;
}

.about-feature-block.reverse {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
}

.about-feature-block:not(.reverse) .feature-copy,
.about-feature-block.reverse .feature-copy {
  margin: 0;
}

.feature-copy {
  min-height: 560px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(38px, 4.6vw, 66px);
  border-radius: 28px;
}

.feature-copy h2 {
  max-width: 680px;
  margin-bottom: 26px;
  padding-right: 82px;
  font-size: clamp(2.4rem, 4.1vw, 4.4rem);
  line-height: 1.03;
}

.feature-copy p {
  max-width: 760px;
  font-size: clamp(1rem, 1.05vw, 1.08rem);
  line-height: 1.72;
}

.feature-number {
  margin-bottom: 28px;
}

.feature-image {
  min-height: 560px;
  height: 100%;
  border-radius: 28px;
}

.feature-image img,
.feature-image .lab-placeholder {
  min-height: 560px;
}

.feature-image img {
  object-fit: cover;
}

.about-feature-block:not(.reverse) .feature-image img,
.about-feature-block:not(.reverse) .lab-placeholder {
  object-position: center right;
}

.about-feature-block.reverse .feature-image img {
  object-position: center;
}

.feature-copy::before {
  top: 34px;
  right: 34px;
}

@media (max-width: 1100px) {
  .about-editorial-card {
    display: grid;
    padding: 0;
  }

  .editorial-visual,
  .visual-right,
  .visual-left {
    float: none;
    width: 100%;
    margin: 0;
    border-radius: 28px 28px 0 0;
  }

  .editorial-visual img {
    aspect-ratio: 1.75;
  }

  .about-editorial-card .feature-number,
  .about-editorial-card h2,
  .about-editorial-card p {
    margin-right: clamp(24px, 5vw, 46px);
    margin-left: clamp(24px, 5vw, 46px);
  }

  .about-editorial-card .feature-number {
    margin-top: clamp(30px, 5vw, 46px);
  }

  .about-editorial-card p:last-child {
    margin-bottom: clamp(30px, 5vw, 46px);
  }

  .about-editorial-card::before {
    top: auto;
    right: 28px;
    bottom: 28px;
  }

  .about-feature-block,
  .about-feature-block.reverse {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .feature-copy {
    min-height: auto;
    border-radius: 28px 28px 0 0;
  }

  .feature-image {
    min-height: 420px;
    border-radius: 0 0 28px 28px;
  }

  .feature-image img,
  .feature-image .lab-placeholder {
    min-height: 420px;
  }

  .about-feature-block.reverse .feature-copy {
    order: 1;
  }

  .about-feature-block.reverse .feature-image {
    order: 2;
  }
}

@media (max-width: 640px) {
  .about-detail-section,
  .about-brain-section {
    padding: 42px 0;
  }

  .about-editorial-card {
    border-radius: 22px;
  }

  .editorial-visual,
  .visual-right,
  .visual-left {
    border-radius: 22px 22px 0 0;
  }

  .editorial-visual img {
    aspect-ratio: 1.15;
  }

  .editorial-visual figcaption {
    right: 12px;
    bottom: 12px;
    font-size: 0.82rem;
  }

  .about-editorial-card::before {
    width: 52px;
    height: 52px;
    right: 20px;
    bottom: 20px;
    border-radius: 16px;
    font-size: 0.74rem;
  }

  .about-editorial-card h2 {
    padding-right: 64px;
    font-size: clamp(2rem, 12vw, 3.1rem);
  }

  .about-editorial-card p {
    font-size: 0.98rem;
    line-height: 1.68;
  }

  .feature-copy {
    padding: 28px 20px;
    border-radius: 20px 20px 0 0;
  }

  .feature-copy::before {
    top: 20px;
    right: 20px;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    font-size: 0.76rem;
  }

  .feature-copy h2 {
    padding-right: 64px;
    font-size: clamp(2rem, 12vw, 3.1rem);
  }

  .feature-copy p {
    font-size: 0.98rem;
    line-height: 1.68;
  }

  .feature-number {
    margin-bottom: 18px;
  }

  .feature-number::after {
    width: 44px;
  }

  .feature-image {
    min-height: 300px;
    border-radius: 0 0 20px 20px;
  }

  .feature-image img,
  .feature-image .lab-placeholder {
    min-height: 300px;
  }
}

.profile-photo {
  position: relative;
  z-index: 1;
  width: 74px;
  height: 74px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 18px;
  box-shadow: 0 18px 30px rgba(64, 74, 112, 0.22);
}

.section-heading {
  margin: 0 0 22px;
}

.section-heading + .people-grid-page {
  margin-bottom: 54px;
}

.admin-body {
  background: #f5f7fb;
}

.admin-section {
  padding-top: 42px;
}

.admin-login,
.admin-dashboard,
.admin-panel,
.admin-item {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(39, 65, 102, 0.12);
  border-radius: 8px;
  box-shadow: 0 22px 48px rgba(31, 46, 74, 0.1);
}

.admin-login {
  max-width: 520px;
  margin: 0 auto;
  padding: 28px;
}

.admin-login label,
.admin-editor label {
  display: grid;
  gap: 8px;
  font-weight: 700;
  color: #1d3654;
}

.admin-login span,
.admin-editor span {
  font-size: 0.83rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.admin-login input,
.admin-editor input,
.admin-editor select,
.admin-editor textarea {
  width: 100%;
  border: 1px solid rgba(39, 65, 102, 0.2);
  border-radius: 8px;
  padding: 12px 14px;
  font: inherit;
  color: #1f2f46;
  background: #fff;
}

.admin-editor textarea {
  min-height: 110px;
  resize: vertical;
}

.admin-login button,
.admin-actions button,
.admin-button,
.admin-panel-heading button,
.admin-item-heading button,
.admin-savebar button {
  border: 0;
  border-radius: 8px;
  padding: 11px 16px;
  font-weight: 800;
  color: #fff;
  background: #1f5f8b;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.admin-login button {
  margin-top: 16px;
}

.admin-dashboard {
  padding: 26px;
}

.admin-topbar,
.admin-panel-heading,
.admin-item-heading,
.admin-savebar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-panel {
  margin-top: 22px;
  padding: 22px;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.admin-wide {
  grid-column: 1 / -1;
}

.admin-item {
  margin-top: 18px;
  padding: 18px;
  box-shadow: none;
}

.admin-item-heading {
  margin-bottom: 16px;
}

.admin-item-heading button,
.admin-actions button:nth-child(2),
.admin-actions button:nth-child(3) {
  background: #6e3b4a;
}

.admin-savebar {
  position: sticky;
  bottom: 18px;
  margin-top: 24px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(39, 65, 102, 0.12);
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(31, 46, 74, 0.14);
}

.admin-auth {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.admin-alert,
.admin-success {
  border-radius: 8px;
  padding: 12px 14px;
  font-weight: 700;
}

.admin-alert {
  color: #7b1d2b;
  background: #fff1f3;
  border: 1px solid rgba(123, 29, 43, 0.18);
}

.admin-success {
  color: #1d5b3c;
  background: #effaf3;
  border: 1px solid rgba(29, 91, 60, 0.18);
}

.admin-stat-grid,
.admin-quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.admin-stat,
.admin-quick-grid a {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 8px;
  background: #f7faff;
  border: 1px solid rgba(39, 65, 102, 0.12);
  text-decoration: none;
  color: #1d3654;
}

.admin-stat span {
  font-size: 2rem;
  font-weight: 800;
  color: #1f5f8b;
}

.admin-topbar.compact {
  margin-bottom: 8px;
}

.admin-live-summary {
  display: grid;
  gap: 10px;
}

.admin-live-summary p,
.live-data-table p {
  margin: 0;
}

.admin-muted {
  color: #64758c;
}

.admin-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin-top: 22px;
}

.admin-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}

.admin-table th,
.admin-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(39, 65, 102, 0.12);
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: #1d3654;
  background: #eef4fb;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.admin-table td:last-child {
  display: flex;
  gap: 10px;
  align-items: center;
}

.admin-table form {
  margin: 0;
}

.admin-table button {
  border: 0;
  border-radius: 6px;
  padding: 8px 10px;
  color: #fff;
  background: #6e3b4a;
  cursor: pointer;
}

.danger-button {
  border: 0;
  border-radius: 8px;
  padding: 10px 14px;
  color: #fff;
  background: #7b1d2b;
  cursor: pointer;
}

.admin-thumb {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(39, 65, 102, 0.14);
}

.card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 18px;
}

.map-section {
  padding-top: 0;
}

.map-frame {
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(39, 65, 102, 0.12);
  box-shadow: 0 24px 54px rgba(31, 46, 74, 0.12);
  background: #fff;
}

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

.developer-credit,
.admin-credit {
  background: linear-gradient(135deg, #101d2e, #182f4c);
  color: rgba(255, 255, 255, 0.86);
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.developer-credit .content-shell {
  padding: 18px 20px;
}

.developer-credit p,
.admin-credit p {
  margin: 4px 0;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
}

.developer-credit a,
.admin-credit a {
  color: #9fd7ff;
  font-weight: 800;
  text-decoration: none;
}

.developer-credit a:hover,
.admin-credit a:hover {
  text-decoration: underline;
}

.admin-credit {
  position: sticky;
  bottom: 0;
  z-index: 20;
  padding: 11px 16px;
}

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.gallery-filters button {
  border: 1px solid rgba(31, 95, 139, 0.22);
  border-radius: 999px;
  padding: 10px 15px;
  color: #1d3654;
  background: #fff;
  font-weight: 800;
  cursor: pointer;
}

.gallery-filters button.active,
.gallery-filters button:hover {
  color: #fff;
  background: #1f5f8b;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 300px));
  gap: 18px;
  justify-content: start;
  align-items: start;
}

.gallery-card {
  min-width: 0;
  width: 100%;
}

.gallery-card button {
  width: 100%;
  display: block;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  padding: 0;
  text-align: left;
  color: #1d3654;
  background: #fff;
  box-shadow: 0 18px 42px rgba(31, 46, 74, 0.13);
  cursor: pointer;
}

.gallery-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-card:hover img {
  transform: scale(1.045);
}

.gallery-card span,
.gallery-card h2 {
  display: block;
  padding: 0 18px;
}

.gallery-card span {
  margin-top: 16px;
  color: #1f5f8b;
  font-weight: 800;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.gallery-card h2 {
  margin: 8px 0 18px;
  font-size: 1.08rem;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(7, 16, 28, 0.88);
}

body.gallery-open {
  overflow-x: hidden;
  overflow-y: auto;
}

.gallery-lightbox figure {
  max-width: min(980px, 92vw);
  max-height: 88vh;
  margin: 0;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.35);
}

.gallery-lightbox img {
  width: 100%;
  max-height: 68vh;
  object-fit: contain;
  display: block;
  background: #07101c;
}

.gallery-lightbox figcaption {
  padding: 18px 22px 22px;
}

.gallery-lightbox figcaption span {
  color: #1f5f8b;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

.gallery-close,
.gallery-nav {
  position: fixed;
  z-index: 1000;
  border: 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  cursor: pointer;
}

.gallery-close {
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 2rem;
}

.gallery-nav {
  top: 50%;
  width: 48px;
  height: 64px;
  border-radius: 8px;
  font-size: 2.5rem;
}

.gallery-nav.prev {
  left: 18px;
}

.gallery-nav.next {
  right: 18px;
}

.gallery-upload-box {
  min-height: 130px;
  padding: 16px;
  border: 1px dashed rgba(31, 95, 139, 0.38);
  border-radius: 8px;
  background: #f7faff;
}

.gallery-preview-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.gallery-preview-strip img,
.admin-gallery-item > img {
  width: 120px;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(39, 65, 102, 0.12);
}

.admin-gallery-list {
  display: grid;
  gap: 18px;
}

.admin-gallery-item {
  display: grid;
  grid-template-columns: 130px 1fr auto;
  gap: 16px;
  align-items: start;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid rgba(39, 65, 102, 0.12);
  background: #fff;
}

.inquiry-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.inquiry-filters a {
  border-radius: 999px;
  padding: 9px 14px;
  color: #1d3654;
  background: #f7faff;
  border: 1px solid rgba(39, 65, 102, 0.12);
  font-weight: 800;
  text-decoration: none;
}

.inquiry-filters a.active,
.inquiry-filters a:hover {
  color: #fff;
  background: #1f5f8b;
}

.inquiry-list {
  display: grid;
  gap: 14px;
}

.inquiry-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 16px;
  padding: 18px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(39, 65, 102, 0.12);
}

.inquiry-card span {
  color: #1f5f8b;
  font-weight: 800;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.inquiry-card form {
  display: grid;
  gap: 10px;
}

.inquiry-card button {
  border: 0;
  border-radius: 8px;
  padding: 10px 14px;
  color: #fff;
  background: #1f5f8b;
  font-weight: 800;
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

/* Final gallery/admin layout overrides for hosted installs. */
.gallery-section .gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 300px));
  justify-content: start;
  align-items: start;
  gap: 20px;
}

.gallery-section .gallery-card {
  width: 100%;
  max-width: 300px;
}

.gallery-section .gallery-card button {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.gallery-section .gallery-card img {
  width: 100%;
  height: 190px;
  max-height: 190px;
  aspect-ratio: auto;
  object-fit: cover;
}

.admin-gallery-item {
  grid-template-columns: 140px minmax(0, 1fr) auto;
  align-items: start;
}

.admin-gallery-item > img {
  width: 140px;
  height: 105px;
}

.admin-gallery-edit {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.admin-gallery-edit .admin-grid {
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap: 12px;
}

.admin-gallery-edit label {
  display: grid;
  gap: 6px;
}

.admin-gallery-edit input,
.admin-gallery-edit select,
.admin-gallery-edit textarea {
  width: 100%;
  min-width: 0;
}

.admin-gallery-edit textarea {
  min-height: 76px;
  resize: vertical;
}

.admin-gallery-delete {
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 760px) {
  .admin-topbar,
  .admin-panel-heading,
  .admin-savebar {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-grid {
    grid-template-columns: 1fr;
  }

  .admin-stat-grid,
  .admin-quick-grid {
    grid-template-columns: 1fr;
  }

  .admin-dashboard,
  .admin-panel,
  .admin-login {
    padding: 18px;
  }

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

  .gallery-section .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }

  .gallery-section .gallery-card {
    max-width: none;
  }

  .gallery-section .gallery-card img {
    height: 150px;
    max-height: 150px;
  }

  .gallery-lightbox {
    padding: 14px;
  }

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

  .gallery-nav {
    top: auto;
    bottom: 16px;
  }

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

  .admin-gallery-item > img {
    width: 100%;
    height: 180px;
  }

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

  .admin-gallery-delete {
    justify-content: stretch;
  }

  .admin-gallery-delete button {
    width: 100%;
  }

  .people-tabs {
    display: grid;
    grid-template-columns: 1fr;
  }

  .team-card,
  .principal-card {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 24px;
  }

  .team-photo,
  .team-initials,
  .principal-card .team-photo,
  .principal-card .team-initials {
    width: 100%;
    max-width: 240px;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .principal-card .team-photo {
    aspect-ratio: 4 / 5;
  }

  .team-card h2 {
    font-size: clamp(1.65rem, 8vw, 2.2rem);
  }

  .inquiry-card {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 761px) and (max-width: 1100px) {
  .team-card,
  .principal-card {
    grid-template-columns: 140px minmax(0, 1fr);
  }

  .team-photo,
  .team-initials {
    width: 140px;
    height: 140px;
  }

  .principal-card .team-photo {
    width: 140px;
    height: 176px;
  }
}

@media (max-width: 980px) {
  .site-header .nav-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 16px;
    left: 16px;
    max-height: calc(100vh - 112px);
    overflow-y: auto;
    display: none;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 18px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(215, 222, 234, 0.92);
    border-radius: 8px;
    box-shadow: 0 28px 70px rgba(17, 35, 64, 0.24);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
  }

  .site-header .nav-menu.open {
    display: grid;
  }

  .site-header .nav-menu > *,
  .site-header .nav-menu a,
  .site-header .nav-menu button {
    width: 100%;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin: 0;
    padding: 12px 16px;
    color: var(--ink);
    font: 700 1rem/1.25 "Inter", Arial, sans-serif;
    text-align: left;
    text-shadow: none;
    background: rgba(23, 104, 201, 0.06);
    border: 0;
    border-radius: 8px;
    box-shadow: none;
  }

  .site-header .nav-menu a.active,
  .site-header .nav-menu a:hover,
  .site-header .nav-menu button[aria-expanded="true"],
  .site-header .nav-menu button:hover {
    color: #fff;
    background: var(--blue);
  }

  .site-header .nav-menu a::after {
    display: none;
  }
}

.primary-nav .nav-group {
  position: relative;
  min-height: 86px;
  display: inline-flex;
  align-items: center;
}

.primary-nav .nav-top {
  min-height: 86px;
  display: inline-flex;
  align-items: center;
  padding: 0;
  color: inherit;
  font: inherit;
  font-weight: 700;
  white-space: nowrap;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.22);
  background: transparent;
  border: 0;
  cursor: pointer;
}

.site-header.is-scrolled .primary-nav .nav-top,
.site-header.menu-open .primary-nav .nav-top {
  text-shadow: none;
}

.primary-nav .nav-group > .nav-top::after,
.primary-nav > .nav-top::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  content: "";
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 200ms ease;
}

.primary-nav .nav-group.active > .nav-top::after,
.primary-nav .nav-group:hover > .nav-top::after,
.primary-nav .nav-group:focus-within > .nav-top::after,
.primary-nav > .nav-top.active::after,
.primary-nav > .nav-top:hover::after {
  transform: scaleX(1);
}

.primary-nav .nav-dropdown {
  position: absolute;
  top: calc(100% - 8px);
  left: 50%;
  min-width: 220px;
  display: none;
  transform: translateX(-50%);
  padding: 8px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(215, 222, 234, 0.92);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(17, 35, 64, 0.18);
}

.primary-nav .nav-group:hover .nav-dropdown,
.primary-nav .nav-group:focus-within .nav-dropdown {
  display: grid;
  gap: 4px;
}

.primary-nav .nav-dropdown a {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 10px 12px;
  color: var(--body);
  font-weight: 700;
  text-shadow: none;
  white-space: nowrap;
  border-radius: 6px;
}

.primary-nav .nav-dropdown a:hover,
.primary-nav .nav-dropdown a.active {
  color: #fff;
  background: var(--blue);
}

.primary-nav .nav-dropdown a::after {
  display: none;
}

@media (max-width: 980px) {
  .site-header .primary-nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 16px;
    left: 16px;
    max-height: calc(100vh - 112px);
    overflow-y: auto;
    display: none;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 16px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(215, 222, 234, 0.92);
    border-radius: 8px;
    box-shadow: 0 28px 70px rgba(17, 35, 64, 0.24);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
  }

  .site-header .primary-nav.open {
    display: grid;
  }

  .site-header .primary-nav > .nav-top,
  .site-header .primary-nav .nav-group {
    width: 100%;
    min-height: 0;
    display: grid;
    gap: 6px;
    padding: 0;
    background: transparent;
    border-radius: 0;
  }

  .site-header .primary-nav .nav-top,
  .site-header .primary-nav .nav-dropdown a {
    width: 100%;
    min-height: 46px;
    justify-content: flex-start;
    padding: 12px 14px;
    color: var(--ink);
    font: 700 1rem/1.25 "Inter", Arial, sans-serif;
    text-align: left;
    text-shadow: none;
    white-space: normal;
    background: rgba(23, 104, 201, 0.06);
    border-radius: 8px;
  }

  .site-header .primary-nav .nav-group.active > .nav-top,
  .site-header .primary-nav > .nav-top.active {
    color: #fff;
    background: var(--blue);
  }

  .site-header .primary-nav .nav-dropdown {
    position: static;
    min-width: 0;
    display: grid;
    gap: 6px;
    transform: none;
    padding: 0 0 0 12px;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .site-header .primary-nav .nav-dropdown a {
    min-height: 42px;
    font-weight: 600;
    background: rgba(23, 104, 201, 0.035);
  }

  .site-header .primary-nav .nav-dropdown a.active,
  .site-header .primary-nav .nav-dropdown a:hover,
  .site-header .primary-nav .nav-top:hover {
    color: #fff;
    background: var(--blue);
  }

  .primary-nav .nav-top::after,
  .primary-nav .nav-group > .nav-top::after {
    display: none;
  }
}
