/* ==========================================================================
   Weaver Lab — design option 05 · "The Institute"
   Modern institutional register: luminous white ground, one confident green,
   a refined grotesk at large scale, generous air, hairline detail.
   No theme, no costume — the design is the spacing, type, and restraint.
   ========================================================================== */

:root {
  --ink: #16181a;
  --body: #3b4340;
  --muted: #69716d;
  --green: #1c5420;
  --green-deep: #143f18;
  --green-soft: #e9f1ea;
  --bg: #ffffff;
  --band: #f6f8f6;
  --line: #e6e8e6;
  --line-dark: #d6dcd6;
  --stage: #10151d;
  --radius: 16px;
  --radius-lg: 22px;
  --shadow-hover: 0 14px 40px rgba(22, 24, 26, 0.09);
  --display: "Schibsted Grotesk", "Inter", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --wrap: 1160px;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--ink);
  line-height: 1.12;
  margin: 0 0 1rem;
  font-weight: 600;
}
h1 {
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  letter-spacing: -0.022em;
  max-width: 21ch;
}
h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  letter-spacing: -0.015em;
}
h3 {
  font-size: 1.24rem;
  letter-spacing: -0.008em;
  line-height: 1.3;
}
p {
  margin: 0 0 1.1rem;
}
a {
  color: var(--green);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}
img, svg {
  max-width: 100%;
  display: block;
}
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}
.narrow {
  max-width: 820px;
}
.muted {
  color: var(--muted);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--green);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 0 0 8px 0;
  z-index: 50;
}
.skip-link:focus {
  left: 0;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ------------------------------ header ------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px) saturate(160%);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 2rem;
  min-height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.14rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand:hover {
  text-decoration: none;
}
.brand .mark {
  width: 11px;
  height: 11px;
  border-radius: 3.5px;
  background: var(--green);
  flex: none;
}
.nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  margin-left: auto;
}
.nav a {
  color: var(--body);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover {
  color: var(--ink);
  text-decoration: none;
}
.nav a.active {
  color: var(--ink);
  border-bottom-color: var(--green);
}
.nav a.nav-cta {
  background: var(--green);
  color: #fff;
  padding: 0.52rem 1.1rem;
  border-radius: 999px;
  border-bottom: 0;
  font-weight: 600;
  transition: background 0.15s ease;
}
.nav a.nav-cta:hover {
  background: var(--green-deep);
  text-decoration: none;
}
.nav-toggle {
  display: none;
  margin-left: auto;
  appearance: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 1.15rem;
  line-height: 1;
  padding: 0.45rem 0.6rem;
  color: var(--ink);
  cursor: pointer;
}

/* ------------------------------ hero ------------------------------ */
.hero {
  padding: clamp(4.5rem, 9vw, 7.5rem) 0 clamp(2.5rem, 5vw, 4rem);
}
.kicker {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  margin: 0 0 1.1rem;
}
.lede {
  font-size: clamp(1.08rem, 1.6vw, 1.2rem);
  line-height: 1.6;
  color: var(--muted);
  max-width: 62ch;
  margin-bottom: 0;
}
.hero .lede {
  margin-top: 1.4rem;
}
.btn-row {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 2.2rem;
}
.btn {
  display: inline-block;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.78rem 1.5rem;
  border-radius: 999px;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}
.btn--primary {
  background: var(--green);
  color: #fff;
}
.btn--primary:hover {
  background: var(--green-deep);
}
.btn--ghost {
  color: var(--ink);
  border: 1px solid var(--line-dark);
  background: #fff;
}
.btn--ghost:hover {
  border-color: var(--ink);
}
.hero-meta {
  margin-top: 2.4rem;
  font-size: 0.92rem;
  color: var(--muted);
}
.hero-meta strong {
  color: var(--ink);
  font-weight: 600;
}

/* hero media: soft gradient field + generated cell dot-field */
.hero-media {
  position: relative;
  margin: clamp(2rem, 5vw, 3.5rem) auto 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 12% 0%, #eef4ee 0%, rgba(238, 244, 238, 0) 55%),
    radial-gradient(110% 100% at 88% 12%, #e7efe9 0%, rgba(231, 239, 233, 0) 60%),
    radial-gradient(130% 110% at 55% 100%, #f0f5f0 0%, rgba(240, 245, 240, 0) 65%),
    linear-gradient(150deg, #fbfdfb 0%, #f2f6f2 100%);
  border: 1px solid var(--line);
}
.hero-media img {
  width: 100%;
  height: clamp(300px, 42vw, 460px);
  object-fit: cover;
}
.hero-media .media-tag {
  position: absolute;
  left: 1.1rem;
  bottom: 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink);
}
.hero-media .media-tag:hover {
  text-decoration: none;
  border-color: var(--green);
}
.hero-media .media-tag .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

/* ------------------------------ sections ------------------------------ */
.section {
  padding: clamp(4rem, 8vw, 6.5rem) 0;
}
.section--band {
  background: var(--band);
}
.section-head {
  max-width: 720px;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.section-head .lede {
  margin-top: 0.9rem;
}

.grid {
  display: grid;
  gap: 1.4rem;
}
.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.9rem 1.8rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: var(--line-dark);
}
.card .kicker {
  margin-bottom: 0.7rem;
}
.card p:last-child {
  margin-bottom: 0;
}
.card-link {
  display: inline-block;
  margin-top: 0.9rem;
  font-weight: 600;
  font-size: 0.94rem;
}

.more-link {
  display: inline-block;
  margin-top: 2rem;
  font-weight: 600;
}

/* ------------------------- research feature rows ------------------------- */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding: clamp(3rem, 6vw, 5rem) 0;
}
.feature + .feature {
  border-top: 1px solid var(--line);
}
.feature:first-of-type {
  padding-top: 1.5rem;
}
.feature-media {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  aspect-ratio: 5 / 4;
  overflow: hidden;
}
.feature:nth-of-type(even) .feature-media {
  order: 2;
}
.feature-media.m1 {
  background:
    url("../img/hero-cells.svg") no-repeat -10% 20% / 220%,
    radial-gradient(90% 80% at 20% 15%, #dceade 0%, transparent 60%),
    radial-gradient(85% 75% at 78% 30%, #cfe0d3 0%, transparent 55%),
    linear-gradient(160deg, #f4f8f4, #e3ede5);
}
.feature-media.m2 {
  background:
    url("../img/hero-cells.svg") no-repeat 80% 70% / 240%,
    radial-gradient(80% 70% at 75% 20%, #d5e4dc 0%, transparent 58%),
    radial-gradient(90% 85% at 15% 70%, #dfeae9 0%, transparent 60%),
    linear-gradient(200deg, #f5f9f6, #e6efe9);
}
.feature-media.m3 {
  background:
    url("../img/hero-cells.svg") no-repeat 40% 100% / 200%,
    radial-gradient(85% 75% at 30% 80%, #d9e6d9 0%, transparent 60%),
    radial-gradient(75% 70% at 80% 15%, #e4ecee 0%, transparent 55%),
    linear-gradient(140deg, #f6faf6, #e7efe8);
}
.feature-body h2 {
  margin-bottom: 0.9rem;
}
.feature-body p:last-of-type {
  margin-bottom: 0;
}

/* ------------------------------ news ------------------------------ */
.news-list {
  border-top: 1px solid var(--line);
}
.news-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.5rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line);
}
.news-item time {
  color: var(--muted);
  font-size: 0.9rem;
  padding-top: 0.15rem;
  white-space: nowrap;
}
.news-item h3 {
  font-size: 1.08rem;
  margin-bottom: 0.35rem;
}
.news-item p {
  margin: 0;
  font-size: 0.96rem;
  color: var(--muted);
}

/* --------------------------- publications --------------------------- */
.pub-tools {
  margin: 0 0 2rem;
}
.pub-search {
  width: 100%;
  max-width: 440px;
  font: inherit;
  font-size: 0.98rem;
  padding: 0.7rem 1.1rem;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  color: var(--ink);
  background: #fff;
}
.pub-search::placeholder {
  color: var(--muted);
}
.pub-search:focus {
  outline: 2px solid var(--green);
  outline-offset: 1px;
  border-color: transparent;
}
.pub-year {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--ink);
  margin: 2.6rem 0 0.4rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
}
.pub-year:first-of-type {
  margin-top: 0;
}
.pub {
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}
.pub-title {
  font-weight: 600;
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.45;
  margin: 0 0 0.3rem;
}
.pub-title a {
  color: inherit;
}
.pub-title a:hover {
  color: var(--green);
  text-decoration: none;
}
.pub-meta {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}
.pub-meta em {
  font-style: normal;
  color: var(--body);
}
.pub-meta strong {
  font-weight: 600;
  color: var(--body);
}
.pub-count {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.6rem;
}
.pub--featured {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  margin-bottom: 1rem;
  background: #fff;
}

/* ------------------------------ people ------------------------------ */
.pi-feature {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.portrait {
  aspect-ratio: 4 / 4.6;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    radial-gradient(100% 85% at 25% 20%, #e6efe8 0%, transparent 60%),
    linear-gradient(165deg, #f5f9f5, #dfeae2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: 3.4rem;
  font-weight: 600;
  color: var(--green);
}
.pi-links {
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
  margin-top: 1.4rem;
  font-weight: 600;
  font-size: 0.95rem;
}
.people-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.person {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.5rem 1.7rem;
  text-align: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.person:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}
.person .avatar {
  width: 76px;
  height: 76px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--green-soft), #d8e6db);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.35rem;
}
.person h3 {
  font-size: 1.06rem;
  margin-bottom: 0.2rem;
}
.person .role {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}
.person .links {
  margin-top: 0.7rem;
  font-size: 0.88rem;
  font-weight: 600;
}
.alumni-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.alumni-list li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}
.alumni-list strong {
  color: var(--ink);
  font-weight: 600;
}

/* ------------------------------ contact ------------------------------ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
}
.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  margin: 0;
}
.contact-card dt {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  margin-top: 1.1rem;
}
.contact-card dt:first-child {
  margin-top: 0;
}
.contact-card dd {
  margin: 0.25rem 0 0;
  color: var(--body);
}

/* ------------------------------ footer ------------------------------ */
.site-footer {
  background: var(--band);
  border-top: 1px solid var(--line);
  padding: 3.5rem 0 2.5rem;
  margin-top: clamp(3rem, 7vw, 5rem);
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  align-items: start;
  margin-bottom: 2.5rem;
}
.foot-grid p {
  font-size: 0.92rem;
  color: var(--muted);
}
.foot-links {
  display: grid;
  gap: 0.55rem;
}
.foot-links a {
  color: var(--body);
  font-size: 0.94rem;
}
.foot-links a:hover {
  color: var(--green);
}
.foot-head {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.9rem;
}
.site-footer small {
  display: block;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.84rem;
}

/* ------------------------- reveal-on-scroll ------------------------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
html.js .reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  html.js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  * {
    transition-duration: 0.01ms !important;
  }
}

/* ======================= interactive atlas exhibit =======================
   Structure preserved from option_01 (atlas.js expects these hooks); the
   chrome is re-skinned to this system: frosted pills on the dark stage,
   white active states, rounded stage. Categorical palette is CVD-validated
   on the dark surface #10151d — the stage stays dark by design. */

.exhibit {
  margin: 2rem 0 0;
}
.exhibit-stage {
  position: relative;
  background: var(--stage);
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  min-height: 420px;
}
.exhibit-stage canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
}
.exhibit-stage canvas.dragging {
  cursor: grabbing;
}

.exhibit-controls {
  position: absolute;
  left: 1rem;
  right: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  pointer-events: none;
  z-index: 3;
}
.exhibit-controls--top {
  top: 1rem;
}
.exhibit-controls--bottom {
  bottom: 1rem;
}
.chipgroup {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.chipgroup-label {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
}
.chips {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  padding: 2px;
  backdrop-filter: blur(10px) saturate(140%);
}
.chip {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1;
  padding: 0.42rem 0.75rem;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.12s ease, color 0.12s ease;
}
.chip:hover {
  color: #fff;
}
.chip.is-on {
  background: #fff;
  color: var(--green);
  font-weight: 600;
}
.chip:focus-visible {
  outline: 2px solid #9fcbaa;
  outline-offset: 1px;
}
.chip .gene {
  font-style: italic;
}

.exhibit-legend {
  position: absolute;
  top: 3.5rem;
  right: 1rem;
  z-index: 2;
  background: rgba(16, 21, 29, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 0.6rem 0.75rem;
  backdrop-filter: blur(8px) saturate(140%);
  max-width: 240px;
}
.exhibit-legend .lg-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.78);
  padding: 0.14rem 0.1rem;
  border: 0;
  background: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  border-radius: 6px;
}
.exhibit-legend .lg-item:hover {
  background: rgba(255, 255, 255, 0.06);
}
.exhibit-legend .lg-item.off {
  opacity: 0.35;
}
.exhibit-legend .lg-item.off .lg-name {
  text-decoration: line-through;
}
.exhibit-legend .lg-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: none;
}
.exhibit-legend .lg-count {
  margin-left: auto;
  color: rgba(255, 255, 255, 0.4);
  font-variant-numeric: tabular-nums;
  font-size: 0.7rem;
}
.exhibit-legend .lg-ramp {
  width: 170px;
  height: 10px;
  border-radius: 5px;
  margin: 0.35rem 0 0.3rem;
}
.exhibit-legend .lg-ramp-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.55);
}
.exhibit-legend .lg-note {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 0.3rem;
}

.exhibit-labels {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
.exhibit-labels .glabel {
  position: absolute;
  transform: translate(-50%, -50%);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 0 5px rgba(6, 9, 14, 0.95), 0 0 12px rgba(6, 9, 14, 0.9);
  white-space: nowrap;
}

.exhibit-zoom {
  position: absolute;
  right: 1rem;
  bottom: 3.5rem;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.exhibit-zoom button {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(8px);
}
.exhibit-zoom button:hover {
  background: rgba(255, 255, 255, 0.16);
}
.exhibit-zoom button.is-on {
  background: #fff;
  border-color: #fff;
  color: var(--green);
}
.exhibit-readout {
  position: absolute;
  left: 1rem;
  bottom: 3.3rem;
  z-index: 2;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(16, 21, 29, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0.3rem 0.6rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  max-width: 60%;
}
.exhibit-readout.show {
  opacity: 1;
}
.exhibit-hint {
  position: absolute;
  left: 50%;
  bottom: 3.3rem;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.55);
  background: rgba(16, 21, 29, 0.7);
  border-radius: 999px;
  padding: 0.28rem 0.8rem;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.exhibit-hint.hide {
  opacity: 0;
}

.exhibit figcaption {
  margin-top: 1.2rem;
  font-size: 0.94rem;
  color: var(--muted);
  max-width: 76ch;
}
.exhibit-status {
  display: block;
  font-variant-numeric: tabular-nums;
  color: var(--body);
  font-weight: 500;
  margin-bottom: 0.35rem;
}

/* ---------------------------- image gallery ---------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-top: 2rem;
}
.gallery-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  margin: 0;
}
.gallery-item .ph {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(90% 80% at 30% 25%, #eaf2eb 0%, transparent 60%),
    linear-gradient(150deg, #f7faf7, #e8efe9);
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
}
.gallery-item figcaption {
  padding: 0.9rem 1.1rem 1rem;
  font-size: 0.88rem;
  color: var(--muted);
}
.gallery-item figcaption strong {
  display: block;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.98rem;
  margin-bottom: 0.15rem;
}

/* ------------------------------ responsive ------------------------------ */
@media (max-width: 980px) {
  .grid--3,
  .people-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .feature {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }
  .feature:nth-of-type(even) .feature-media {
    order: 0;
  }
  .pi-feature {
    grid-template-columns: 1fr;
  }
  .portrait {
    max-width: 320px;
  }
  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 720px) {
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1.25rem 1rem;
    display: none;
  }
  .nav.open {
    display: flex;
  }
  .nav a {
    padding: 0.7rem 0;
    border-bottom: 0;
    font-size: 1.02rem;
  }
  .nav a.nav-cta {
    text-align: center;
    margin-top: 0.6rem;
  }
  .nav-toggle {
    display: block;
  }
  .grid--2,
  .grid--3,
  .people-grid,
  .gallery-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .news-item {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
  .foot-grid {
    grid-template-columns: 1fr;
  }
  .exhibit-stage {
    aspect-ratio: auto;
    height: 78vh;
  }
  .exhibit-legend {
    max-width: 46%;
  }
}
