/* =========================================================
   Bidyut K. Bhattacharyya Centre of Excellence — Ornate Solar
   Institutional identity: deep navy + seal gold on warm paper
   ========================================================= */

:root {
  --navy-950: #0b1530;
  --navy-900: #102044;
  --navy-800: #16294f;   /* seal navy */
  --navy-700: #1f3666;
  --gold-500: #f4c430;   /* seal gold */
  --gold-400: #ffd95e;
  --orange-500: #f47b20; /* Ornate Solar orange */
  --paper: #faf7f0;
  --paper-deep: #f2ecdf;
  --ink: #1b2230;
  --ink-soft: #4c5567;
  --line: #d8d0bd;

  --serif: "Newsreader", Georgia, serif;
  --sans: "Archivo", "Helvetica Neue", sans-serif;
  --mono: "IBM Plex Mono", monospace;

  --container: 1180px;
  --ease: cubic-bezier(.22,.61,.2,1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

.container {
  width: min(var(--container), 100% - 48px);
  margin-inline: auto;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

/* ---------- Eyebrow labels ---------- */
.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--navy-800);
  margin-bottom: 18px;
}
.eyebrow__rule { width: 44px; height: 2px; background: var(--gold-500); }
.eyebrow--light { color: var(--gold-400); }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  padding: 13px 28px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease), transform .25s var(--ease);
}
.btn--gold {
  background: var(--gold-500);
  color: var(--navy-950);
}
.btn--gold:hover { background: var(--gold-400); transform: translateY(-2px); }
.btn--line {
  border-color: var(--navy-800);
  color: var(--navy-800);
  background: transparent;
}
.btn--line:hover { background: var(--navy-800); color: var(--paper); }

.textlink {
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--navy-800);
  text-decoration: none;
  border-bottom: 1px solid var(--gold-500);
  padding-bottom: 3px;
  transition: color .2s, border-color .2s;
}
.textlink:hover { color: var(--orange-500); border-color: var(--orange-500); }
.textlink--light { color: var(--gold-400); }
.textlink--light:hover { color: #fff; border-color: #fff; }

/* ---------- Utility bar ---------- */
.utility {
  background: var(--navy-950);
  color: #c8d2e8;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}
.utility__inner {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 8px 0;
}
.utility__right { color: var(--gold-500); }

/* ---------- Masthead ---------- */
.masthead {
  position: sticky; top: 0; z-index: 60;
  background: rgba(250, 247, 240, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s var(--ease);
}
.masthead.is-scrolled { box-shadow: 0 6px 24px rgba(11, 21, 48, 0.10); }

.masthead__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 14px 0;
}

.brand {
  display: flex; align-items: center; gap: 14px;
  text-decoration: none; color: var(--ink);
  min-width: 0;
}
.brand__seal {
  width: 56px; height: 56px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
  border: 1px solid var(--line);
}
.brand__name {
  display: block;
  font-family: var(--serif);
  font-size: 1.06rem;
  font-weight: 600;
  line-height: 1.18;
  color: var(--navy-900);
}
.brand__sub {
  display: block;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 4px;
}

.nav { display: flex; gap: 26px; }
.nav a {
  font-size: 0.9rem; font-weight: 500;
  color: var(--ink); text-decoration: none;
  padding: 6px 0; position: relative;
  white-space: nowrap;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 2px; background: var(--gold-500);
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--ease);
}
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }
.nav a.is-active { color: var(--navy-800); font-weight: 600; }

.navtoggle {
  display: none;
  background: none; border: 0; cursor: pointer;
  width: 40px; height: 36px; padding: 8px;
  flex-direction: column; justify-content: space-between;
}
.navtoggle span {
  display: block; height: 2px; width: 100%;
  background: var(--navy-900);
  transition: transform .25s var(--ease), opacity .2s;
}

/* ---------- Charter (home) ---------- */
.charter {
  position: relative;
  background:
    radial-gradient(ellipse 60% 70% at 50% 0%, rgba(244, 196, 48, 0.13), transparent 70%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-deep) 100%);
  border-bottom: 3px solid var(--gold-500);
  overflow: hidden;
}
.charter__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(22, 41, 79, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(22, 41, 79, 0.05) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse 80% 90% at 50% 50%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 50% 50%, black 30%, transparent 100%);
}
.charter__layout {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
  padding: clamp(48px, 6vw, 92px) 0;
}
.charter__inner {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  text-align: left;
}
.charter__side {
  margin: 0;
  flex: 0 0 42%;
  max-width: 42%;
  min-width: 0;
}
.charter__frame {
  position: relative;
  background: #fff;
  padding: 10px;
  border: 1px solid var(--line);
  box-shadow: 0 26px 56px -28px rgba(11, 21, 48, 0.4);
}
.charter__frame img {
  width: 100%;
  height: auto;
  display: block;
}
.charter__seal {
  width: clamp(64px, 7vw, 84px);
  height: clamp(64px, 7vw, 84px);
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 24px;
  border: 1px solid var(--line);
  box-shadow:
    0 0 0 5px var(--paper),
    0 0 0 6px var(--gold-500),
    0 12px 26px -12px rgba(11, 21, 48, 0.35);
}
.charter__title {
  font-size: clamp(2.1rem, 3.9vw, 3.2rem);
  color: var(--navy-950);
  margin-bottom: 22px;
}
.charter__title em {
  font-style: italic;
  font-weight: 400;
  color: var(--navy-700);
}
.charter__rule {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}
.charter__rule::after {
  content: "";
  width: clamp(64px, 9vw, 120px);
  height: 1px;
  background: var(--line);
}
.charter__rule span {
  width: 9px; height: 9px;
  background: var(--gold-500);
  transform: rotate(45deg);
}
.charter__text {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.55vw, 1.34rem);
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 56ch;
}
.charter__text strong { color: var(--navy-900); font-weight: 600; }

/* ---------- System modules banner (home) ---------- */
.banner {
  position: relative;
  background: var(--navy-950);
  line-height: 0;
}
.banner__media img {
  width: 100%;
  height: auto;
  display: block;
}
.banner::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  box-shadow: inset 0 26px 34px -26px rgba(11, 21, 48, 0.55);
}

/* ---------- Hardware showcase (home) ---------- */
.showcase {
  background:
    radial-gradient(ellipse 60% 60% at 50% 0%, rgba(244, 196, 48, 0.10), transparent 70%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-deep) 100%);
  padding: clamp(48px, 6vw, 88px) 0 clamp(56px, 7vw, 100px);
}
.showcase__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
  max-width: 1040px;
  margin-inline: auto;
}
.showcase__item { margin: 0; }
.showcase__frame {
  position: relative;
  background: var(--navy-950);
  padding: clamp(8px, 1vw, 13px);
  box-shadow:
    0 32px 64px -28px rgba(11, 21, 48, 0.5),
    0 8px 20px rgba(11, 21, 48, 0.16);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.showcase__frame::before {
  content: "";
  position: absolute; inset: 0;
  border: 1px solid var(--gold-500);
  transform: translate(11px, 11px);
  pointer-events: none;
  z-index: -1;
}
.showcase__item:hover .showcase__frame {
  transform: translateY(-5px);
  box-shadow:
    0 44px 80px -28px rgba(11, 21, 48, 0.6),
    0 10px 24px rgba(11, 21, 48, 0.2);
}
.showcase__frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 6;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ---------- System Integrated Modules showcase ---------- */
.modules {
  position: relative;
  background:
    radial-gradient(ellipse 70% 60% at 50% -10%, rgba(31, 54, 102, 0.55), transparent 70%),
    var(--navy-950);
  padding: clamp(56px, 7vw, 104px) 0 clamp(64px, 8vw, 120px);
  overflow: hidden;
}
.modules__glow {
  position: absolute;
  top: -20%; left: 50%;
  width: 70vw; height: 60vh;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(244, 196, 48, 0.10), transparent 65%);
  pointer-events: none;
}
.modules__head {
  position: relative;
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(36px, 4.5vw, 56px);
}
.modules__head .eyebrow { justify-content: center; }
.modules__head h2 { color: #fff; margin-bottom: 16px; }
.modules__lede { color: #9aa8c6; }

.modules__figure {
  position: relative;
  margin: 0 auto;
  max-width: 1080px;
  padding: clamp(8px, 1vw, 14px);
  background: linear-gradient(160deg, rgba(244, 196, 48, 0.35), rgba(31, 54, 102, 0.25));
  border-radius: 4px;
  box-shadow:
    0 40px 80px -32px rgba(0, 0, 0, 0.7),
    0 10px 30px rgba(0, 0, 0, 0.35);
}
.modules__figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2px;
}
.modules__figure::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: 4px;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    linear-gradient(180deg, var(--paper) 0%, var(--paper-deep) 100%);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(22, 41, 79, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(22, 41, 79, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(115deg, transparent 38%, black 78%);
  -webkit-mask-image: linear-gradient(115deg, transparent 38%, black 78%);
}
.hero__layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
  padding: clamp(56px, 8vw, 110px) 0 clamp(56px, 7vw, 96px);
}

.hero__title {
  font-size: clamp(2.3rem, 4.6vw, 3.7rem);
  color: var(--navy-950);
  margin-bottom: 26px;
}
.hero__title em {
  font-style: italic;
  font-weight: 400;
  color: var(--navy-700);
}

.hero__charter {
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--ink-soft);
  max-width: 56ch;
  padding-left: 22px;
  border-left: 3px solid var(--gold-500);
  margin-bottom: 34px;
}
.hero__charter strong { color: var(--navy-900); }

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; }

.hero__facts {
  display: flex; flex-wrap: wrap; gap: clamp(24px, 4vw, 56px);
  border-top: 1px solid var(--line);
  padding-top: 26px;
}
.hero__facts dt {
  font-family: var(--mono);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--navy-800);
}
.hero__facts dd {
  font-size: 0.82rem;
  color: var(--ink-soft);
  max-width: 17ch;
  margin-top: 2px;
}

.hero__figure { position: relative; }
.hero__frame {
  position: relative;
  background: var(--navy-950);
  padding: 14px;
  box-shadow:
    0 32px 64px -24px rgba(11, 21, 48, 0.45),
    0 8px 20px rgba(11, 21, 48, 0.18);
}
.hero__frame::before {
  content: "";
  position: absolute; inset: 0;
  border: 1px solid var(--gold-500);
  transform: translate(14px, 14px);
  pointer-events: none;
  z-index: -1;
}
.hero__frame img { width: 100%; height: auto; }

.hero__figure figcaption {
  margin-top: 18px;
  font-size: 0.84rem;
  color: var(--ink-soft);
  line-height: 1.55;
}
.figcaption__id {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--orange-500);
  margin-right: 10px;
}

/* ---------- Intro ---------- */
.intro { padding: clamp(64px, 8vw, 110px) 0; }
.intro__layout {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(36px, 5vw, 72px);
}
.intro__heading h2 { color: var(--navy-950); max-width: 20ch; }
.intro__heading h2 em {
  font-style: italic;
  font-weight: 500;
  color: var(--orange-500);
  position: relative;
  white-space: nowrap;
}
.intro__heading h2 em::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.04em;
  height: 2px;
  background: var(--gold-500);
}
.intro__body p {
  font-size: 1.04rem;
  color: var(--ink-soft);
  margin-bottom: 22px;
  max-width: 62ch;
}
.intro__body p:first-child::first-letter {
  font-family: var(--serif);
  font-size: 3.2em;
  font-weight: 500;
  float: left;
  line-height: 0.82;
  padding: 6px 10px 0 0;
  color: var(--navy-800);
}

/* ---------- Vision & Mission ---------- */
.vm { padding-bottom: clamp(64px, 8vw, 110px); }
.vm__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--navy-900);
}
.vm__card {
  padding: clamp(36px, 4.5vw, 60px);
  background: var(--navy-900);
  color: #dde4f2;
}
.vm__card--gold {
  background: var(--gold-500);
  color: var(--navy-950);
}
.vm__label {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.vm__card .vm__label { color: var(--gold-400); }
.vm__card--gold .vm__label { color: var(--navy-800); }
.vm__text {
  font-family: var(--serif);
  font-size: clamp(1.12rem, 1.7vw, 1.34rem);
  line-height: 1.55;
}

/* ---------- Research domains ---------- */
.domains {
  padding: clamp(64px, 8vw, 110px) 0;
  background: var(--paper-deep);
  border-block: 1px solid var(--line);
}
.domains__head { max-width: 640px; margin-bottom: clamp(36px, 5vw, 56px); }
.domains__head h2 { color: var(--navy-950); margin-bottom: 14px; }
.domains__lede { color: var(--ink-soft); }

.domains__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.domain {
  background: var(--paper);
  padding: 30px 28px 34px;
  position: relative;
  transition: background .25s var(--ease);
}
.domain:hover { background: #fff; }
.domain__num {
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--orange-500);
}
.domain h3 {
  font-size: 1.28rem;
  color: var(--navy-950);
  margin: 12px 0 10px;
}
.domain p { font-size: 0.92rem; color: var(--ink-soft); }

.domain--cta {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 12px;
  background: var(--navy-900);
  color: var(--gold-400);
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.22rem;
  line-height: 1.3;
  transition: background .25s var(--ease);
}
.domain--cta:hover { background: var(--navy-800); }
.domain__arrow { font-size: 1.5rem; transition: transform .25s var(--ease); }
.domain--cta:hover .domain__arrow { transform: translateX(6px); }

/* ---------- What we do in the lab (marquee) ---------- */
.marquee-sec {
  padding: clamp(56px, 7vw, 100px) 0 clamp(64px, 8vw, 110px);
  background: var(--navy-950);
  color: #dde4f2;
  overflow: hidden;
}
.marquee-sec__head { text-align: center; max-width: 680px; margin: 0 auto clamp(34px, 4.5vw, 54px); }
.marquee-sec__head .eyebrow { justify-content: center; color: var(--gold-400); }
.marquee-sec__head h2 { color: #fff; margin-bottom: 14px; }
.marquee-sec__lede { color: #9aa8c6; }

.marquee {
  display: flex;
  overflow: hidden;
  user-select: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee + .marquee { margin-top: 16px; }
.marquee__track {
  display: flex;
  flex-shrink: 0;
  gap: 16px;
  padding-right: 16px;
  width: max-content;
  animation: marquee-scroll 60s linear infinite;
  will-change: transform;
}
.marquee--reverse .marquee__track { animation-direction: reverse; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track img {
  height: clamp(150px, 18vw, 230px);
  width: auto;
  border-radius: 6px;
  object-fit: cover;
  display: block;
  box-shadow: 0 16px 32px -18px rgba(0, 0, 0, 0.7);
  transition: transform .4s var(--ease);
}
.marquee__track img:hover { transform: scale(1.04); }

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
  .marquee { overflow-x: auto; }
}

/* ---------- Equipment cards ---------- */
.equipment {
  padding: clamp(64px, 8vw, 110px) 0;
  background: var(--paper-deep);
  border-block: 1px solid var(--line);
}
.equip__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: clamp(32px, 4vw, 52px);
}
.equip {
  background: #fff;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.equip:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -28px rgba(11, 21, 48, 0.4);
}
.equip__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.equip__media img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 14px;
  transition: transform .5s var(--ease);
}
.equip:hover .equip__media img { transform: scale(1.04); }
.equip__media--photo { background: var(--navy-950); }
.equip__media--photo img { object-fit: cover; padding: 0; }
.equip__body { padding: 20px 24px 26px; }
.equip__tag {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange-500);
  margin-bottom: 8px;
}
.equip__body h3 {
  font-size: 1.18rem;
  color: var(--navy-950);
  margin-bottom: 10px;
}
.equip__body p {
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* ---------- Research in action ---------- */
.ractions {
  padding: clamp(64px, 8vw, 110px) 0;
  background:
    radial-gradient(ellipse 60% 60% at 50% 0%, rgba(244, 196, 48, 0.08), transparent 70%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-deep) 100%);
  border-top: 1px solid var(--line);
}
.ractions__head { max-width: 640px; margin: 0 auto clamp(34px, 4.5vw, 54px); text-align: center; }
.ractions__head .eyebrow { justify-content: center; }
.ractions__head h2 { color: var(--navy-950); margin-bottom: 14px; }
.ractions__lede { color: var(--ink-soft); }
.ractions__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.ractions__item {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  aspect-ratio: 4 / 3;
  background: var(--navy-950);
  box-shadow: 0 18px 38px -22px rgba(11, 21, 48, 0.5);
}
.ractions__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s var(--ease), filter .4s var(--ease);
  filter: saturate(0.96);
}
.ractions__item::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 6px;
  box-shadow: inset 0 0 0 0 var(--gold-500);
  transition: box-shadow .3s var(--ease);
  pointer-events: none;
}
.ractions__item:hover img { transform: scale(1.07); filter: saturate(1.08); }
.ractions__item:hover::after { box-shadow: inset 0 0 0 3px var(--gold-500); }

@media (max-width: 860px) { .ractions__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .ractions__grid { grid-template-columns: 1fr; max-width: 380px; margin-inline: auto; } }

/* ---------- Lab gallery ---------- */
.lab {
  padding: clamp(64px, 8vw, 110px) 0;
  background: var(--navy-950);
  color: #dde4f2;
}
.lab__head { max-width: 640px; margin-bottom: clamp(36px, 5vw, 52px); }
.lab__head h2 { color: #fff; margin-bottom: 14px; }
.lab__lede { color: #9aa8c6; }

.lab__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 14px;
}
.lab__item {
  position: relative; overflow: hidden;
  background: var(--navy-900);
}
.lab__item--tall { grid-row: span 2; grid-column: span 2; }
.lab__item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s var(--ease), filter .4s;
  filter: saturate(0.92);
}
.lab__item:hover img { transform: scale(1.045); filter: saturate(1.05); }
.lab__item figcaption {
  position: absolute; inset: auto 0 0 0;
  padding: 28px 16px 12px;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #e8ecf6;
  background: linear-gradient(180deg, transparent, rgba(11, 21, 48, 0.88));
}
.lab__more { margin-top: 32px; }

/* ---------- Leadership ---------- */
.leaders { padding: clamp(64px, 8vw, 110px) 0; }
.leaders__head { margin-bottom: clamp(36px, 5vw, 52px); }
.leaders__head h2 { color: var(--navy-950); }

.leaders__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
}
.leader {
  display: grid;
  grid-template-columns: 120px 1fr;
  grid-template-rows: auto auto auto auto;
  column-gap: 26px;
}
.leader__media {
  grid-row: 1 / 5;
  width: 120px; height: 150px;
  overflow: hidden;
  border-bottom: 3px solid var(--gold-500);
}
.leader__media img { width: 100%; height: 100%; object-fit: cover; }
.leader blockquote {
  font-family: var(--serif);
  font-size: 1.12rem;
  font-style: italic;
  line-height: 1.55;
  color: var(--navy-900);
  margin-bottom: 16px;
}
.leader__name { font-weight: 700; font-size: 0.95rem; color: var(--navy-950); }
.leader__role { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 12px; }

/* ---------- Newsletter ---------- */
.newsletter {
  background: var(--navy-900);
  border-top: 4px solid var(--gold-500);
  padding: clamp(56px, 7vw, 90px) 0;
  color: #dde4f2;
}
.newsletter__inner {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.newsletter h2 { color: #fff; margin-bottom: 14px; }
.newsletter p { color: #9aa8c6; max-width: 52ch; }

.newsletter__form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}
.newsletter__form input {
  font-family: var(--mono);
  font-size: 0.9rem;
  padding: 13px 16px;
  background: var(--navy-950);
  border: 1px solid var(--navy-700);
  color: #fff;
  outline: none;
  transition: border-color .2s;
}
.newsletter__form input:focus { border-color: var(--gold-500); }
.newsletter__form input::placeholder { color: #5d6b8c; }
.newsletter__note {
  grid-column: 1 / -1;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--gold-400);
  min-height: 1.2em;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--navy-950);
  color: #9aa8c6;
  padding-top: clamp(48px, 6vw, 72px);
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr);
  gap: clamp(32px, 5vw, 64px);
  padding-bottom: 48px;
  border-bottom: 1px solid var(--navy-800);
}
.footer__seal {
  width: 64px; height: 64px; border-radius: 50%;
  object-fit: cover; margin-bottom: 18px;
  border: 1px solid var(--navy-700);
}
.footer__name {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
}
.footer__tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 8px;
  color: var(--gold-500);
}
.footer__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; align-content: start; }
.footer__nav a, .footer__contact a {
  color: #c8d2e8; text-decoration: none; font-size: 0.9rem;
  transition: color .2s;
}
.footer__nav a:hover, .footer__contact a:hover { color: var(--gold-400); }
.footer__contact p { font-size: 0.9rem; margin-bottom: 12px; }
.footer__base {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  padding: 22px 0 28px;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
}

/* ---------- Page head (inner pages) ---------- */
.pagehead {
  background:
    linear-gradient(180deg, var(--paper) 0%, var(--paper-deep) 100%);
  border-bottom: 1px solid var(--line);
  padding: clamp(48px, 6vw, 80px) 0;
}
.pagehead h1 {
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  color: var(--navy-950);
}
.pagehead__lede {
  margin-top: 12px;
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 60ch;
}

/* ---------- People ---------- */
.people { padding: clamp(56px, 7vw, 96px) 0; }
.people__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.person {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold-500);
  padding: 28px;
  display: flex;
  flex-direction: column;
}
.person__photo {
  width: 116px; height: 116px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  margin-bottom: 18px;
  border: 1px solid var(--line);
}
.person__name {
  font-size: 1.22rem;
  color: var(--navy-950);
}
.person__role {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange-500);
  margin: 6px 0 12px;
}
.person__line {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin-bottom: 18px;
  flex: 1;
}
.person__contact {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  font-size: 0.82rem;
  line-height: 1.5;
}
.person__contact a {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--navy-800);
  text-decoration: none;
  display: block;
  margin-bottom: 4px;
}
.person__contact a:hover { color: var(--orange-500); }
.person__contact span { color: var(--ink-soft); display: block; }

/* ---------- News empty state ---------- */
.newsempty {
  max-width: 560px;
  margin-inline: auto;
  text-align: center;
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold-500);
  background: #fff;
  padding: clamp(40px, 6vw, 72px) clamp(28px, 5vw, 56px);
}
.newsempty__mark {
  color: var(--gold-500);
  font-size: 1.4rem;
  margin-bottom: 18px;
}
.newsempty h2 { color: var(--navy-950); margin-bottom: 14px; }
.newsempty p { color: var(--ink-soft); margin-bottom: 26px; }

/* ---------- About / messages ---------- */
.message { padding: clamp(56px, 7vw, 96px) 0; }
.message + .message { padding-top: 0; }
.message__layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.message__media { position: sticky; top: 120px; }
.message__media img {
  width: 100%;
  border-bottom: 3px solid var(--gold-500);
}
.message__media figcaption { margin-top: 14px; }
.message__who { font-weight: 700; color: var(--navy-950); }
.message__role { font-size: 0.84rem; color: var(--ink-soft); }
.message__body h2 { color: var(--navy-950); margin-bottom: 22px; }
.message__body p {
  font-size: 1.02rem;
  color: var(--ink-soft);
  margin-bottom: 18px;
  max-width: 68ch;
}
.message__sign {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--navy-900);
  margin-top: 26px;
}
.message__sign small {
  display: block;
  font-family: var(--sans);
  font-size: 0.84rem;
  color: var(--ink-soft);
  margin-top: 4px;
}

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
.d-1 { transition-delay: .1s; }
.d-2 { transition-delay: .2s; }
.d-3 { transition-delay: .3s; }
.d-4 { transition-delay: .4s; }
.d-5 { transition-delay: .5s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hero__layout { grid-template-columns: 1fr; }
  .hero__figure { max-width: 560px; }
  .domains__grid { grid-template-columns: 1fr 1fr; }
  .equip__grid { grid-template-columns: 1fr 1fr; }
  .lab__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .intro__layout { grid-template-columns: 1fr; }
  .intro__heading h2 { max-width: none; }
}

@media (max-width: 860px) {
  .nav {
    position: fixed; inset: 0 0 0 auto;
    width: min(320px, 80vw);
    background: var(--navy-950);
    flex-direction: column;
    gap: 8px;
    padding: 96px 36px;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .35s var(--ease), visibility 0s .35s;
    z-index: 50;
  }
  .nav.is-open { transform: none; visibility: visible; transition: transform .35s var(--ease); }
  .nav a { color: #dde4f2; font-size: 1.1rem; padding: 10px 0; }
  .nav a.is-active { color: var(--gold-400); }
  .navtoggle { display: flex; position: relative; z-index: 70; }
  .navtoggle.is-open span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
  .navtoggle.is-open span:nth-child(2) { opacity: 0; }
  .navtoggle.is-open span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }
  .navtoggle.is-open span { background: #fff; }

  .vm__grid { grid-template-columns: 1fr; }
  .leaders__grid { grid-template-columns: 1fr; }
  .newsletter__inner { grid-template-columns: 1fr; }
  .brand__name { font-size: 0.95rem; }
  .people__grid { grid-template-columns: 1fr 1fr; }
  .message__layout { grid-template-columns: 1fr; }
  .message__media { position: static; max-width: 260px; }
  .showcase__grid { grid-template-columns: 1fr; max-width: 520px; gap: 32px; }
  .charter__layout {
    flex-direction: column;
    align-items: stretch;
    gap: 32px;
  }
  .charter__inner { text-align: center; order: 2; width: 100%; min-width: 0; }
  .charter__side { flex: none; width: 100%; max-width: 460px; order: 1; align-self: center; }
  .charter__seal { margin-inline: auto; }
  .charter__rule { justify-content: center; }
  .charter__rule::before {
    content: "";
    width: clamp(64px, 9vw, 120px);
    height: 1px;
    background: var(--line);
  }
  .charter__text { max-width: 60ch; margin-inline: auto; }
}

@media (max-width: 600px) {
  .domains__grid { grid-template-columns: 1fr; }
  .equip__grid { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
  .people__grid { grid-template-columns: 1fr; }
  .charter__layout { padding-left: 24px; padding-right: 24px; }
  .charter__title { font-size: clamp(1.5rem, 6.5vw, 2rem); }
  .lab__grid { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .lab__item--tall { grid-column: span 1; }
  .leader { grid-template-columns: 1fr; row-gap: 16px; }
  .leader__media { grid-row: auto; }
  .newsletter__form { grid-template-columns: 1fr; }
  .utility__inner { justify-content: center; }
  .utility__right { display: none; }
  .brand__sub { display: none; }
}

