:root {
  --background: #f5f7f6;
  --surface: #ffffff;
  --surface-soft: #edf2f0;
  --ink: #0a1722;
  --ink-soft: #42525b;
  --ink-section: #0b1622;
  --teal: #087468;
  --teal-dark: #055c53;
  --teal-soft: #d9eeea;
  --fluorescent: #5ef0b3;
  --line: #d8e1de;
  --line-dark: rgba(255, 255, 255, 0.18);
  --shadow: 0 16px 40px rgba(10, 23, 34, 0.08);
  --radius: 12px;
  --radius-small: 8px;
  --page-shell: min(100% - 48px, 1280px);
  --header-height: 76px;
  --font-sans: "Inter", "IBM Plex Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  background: var(--background);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.62;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body:has(dialog[open]) {
  overflow: hidden;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: var(--teal-dark);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-color: currentColor;
}

:focus-visible {
  outline: 3px solid #10a78f;
  outline-offset: 4px;
}

::selection {
  color: var(--ink);
  background: #9af4d2;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

figure {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

.page-shell {
  width: var(--page-shell);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 14px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  font-size: 0.875rem;
  font-weight: 700;
  box-shadow: var(--shadow);
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.header-shell {
  width: var(--page-shell);
  min-height: var(--header-height);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: var(--ink);
  text-decoration: none;
}

.brand img {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
}

.brand-copy {
  min-width: 0;
  display: grid;
  line-height: 1.18;
}

.brand-copy strong {
  overflow: hidden;
  font-size: 0.9375rem;
  font-weight: 750;
  letter-spacing: -0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-copy span {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 0.875rem;
}

.primary-nav {
  margin-left: auto;
}

.nav-menu {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.3vw, 34px);
  list-style: none;
}

.nav-menu a {
  position: relative;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--ink-soft);
  font-size: 0.875rem;
  font-weight: 650;
  text-decoration: none;
}

.nav-menu a:not(.nav-contact)::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 6px;
  left: 0;
  height: 2px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
}

.nav-menu a:hover,
.nav-menu a[aria-current="location"] {
  color: var(--ink);
}

.nav-menu a:hover::after,
.nav-menu a[aria-current="location"]::after {
  transform: scaleX(1);
}

.nav-contact {
  padding: 0 17px;
  color: var(--surface) !important;
  background: var(--teal-dark);
  border-radius: var(--radius-small);
}

.nav-contact:hover {
  background: var(--ink);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--surface);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 160ms ease, opacity 160ms ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.hero {
  padding: clamp(64px, 7vw, 104px) 0 clamp(72px, 8vw, 112px);
  background: var(--background);
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(380px, 0.88fr);
  gap: clamp(48px, 7vw, 104px);
  align-items: center;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow,
.section-label {
  margin-bottom: 20px;
  color: var(--teal-dark);
  font-size: 0.875rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  line-height: 1.45;
  text-transform: uppercase;
}

.eyebrow span {
  margin-inline: 0.32em;
  color: #6c807b;
}

.hero h1 {
  max-width: 760px;
  margin-bottom: 28px;
  font-size: clamp(2.75rem, 5vw, 4.65rem);
  font-weight: 720;
  letter-spacing: -0.052em;
  line-height: 0.99;
}

.hero-lede {
  max-width: 700px;
  margin-bottom: 34px;
  color: var(--ink-soft);
  font-size: clamp(1.0625rem, 1.45vw, 1.25rem);
  line-height: 1.58;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 48px;
  padding: 11px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius-small);
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.button-primary {
  color: var(--surface);
  background: var(--teal-dark);
}

.button-primary:hover {
  background: var(--ink);
}

.button-secondary {
  color: var(--ink);
  background: transparent;
  border-color: #a9b8b4;
}

.button-secondary:hover {
  color: var(--teal-dark);
  background: var(--surface);
  border-color: var(--teal);
}

.hero-media {
  margin: 0;
}

.hero-image-frame {
  overflow: hidden;
  background: var(--ink-section);
  border: 1px solid #b8c5c1;
  border-top: 4px solid var(--teal);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-media img {
  width: 100%;
  height: auto;
}

.hero-media figcaption {
  max-width: 520px;
  margin: 13px 0 0;
  color: #53645f;
  font-size: 0.875rem;
  line-height: 1.5;
}

.section {
  padding: clamp(84px, 8vw, 128px) 0;
}

.section-intro {
  margin-bottom: clamp(46px, 6vw, 76px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 470px);
  gap: clamp(32px, 7vw, 104px);
  align-items: end;
}

.section-label {
  margin-bottom: 18px;
}

.section-label span {
  margin-left: 10px;
}

.section-intro h2 {
  max-width: 790px;
  margin-bottom: 0;
  font-size: clamp(2.35rem, 4vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.04;
}

.section-intro > p {
  margin-bottom: 2px;
  color: var(--ink-soft);
  font-size: 1.0625rem;
}

.research {
  color: var(--surface);
  background: var(--ink-section);
}

.section-intro-light .section-label {
  color: var(--fluorescent);
}

.section-intro-light > p {
  color: #b9c6cc;
}

.research-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.research-direction {
  min-height: 280px;
  padding: 34px clamp(24px, 3vw, 44px) 40px;
}

.research-direction + .research-direction {
  border-left: 1px solid var(--line-dark);
}

.research-index {
  margin-bottom: 54px;
  color: var(--fluorescent);
  font-size: 0.875rem;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.research-direction h3 {
  margin-bottom: 16px;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  line-height: 1.16;
}

.research-direction p:last-child {
  margin-bottom: 0;
  color: #b9c6cc;
  font-size: 1rem;
  line-height: 1.58;
}

.current-activity {
  margin-top: clamp(48px, 6vw, 76px);
  padding-top: clamp(40px, 5vw, 64px);
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(420px, 1.18fr);
  gap: clamp(44px, 7vw, 96px);
  border-top: 1px solid var(--line-dark);
}

.current-activity-label {
  margin-bottom: 17px;
  color: var(--fluorescent);
  font-size: 0.875rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  line-height: 1.4;
  text-transform: uppercase;
}

.current-activity-intro h3 {
  max-width: 560px;
  margin-bottom: 20px;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.current-activity-intro > p:last-child {
  max-width: 560px;
  margin-bottom: 0;
  color: #b9c6cc;
  font-size: 1rem;
}

.activity-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-dark);
}

.activity-list li {
  padding: 23px 0;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 18px;
  border-bottom: 1px solid var(--line-dark);
}

.activity-index {
  color: var(--fluorescent);
  font-size: 0.875rem;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.activity-list h4 {
  margin-bottom: 7px;
  font-size: 1.125rem;
  line-height: 1.3;
}

.activity-list p {
  margin-bottom: 0;
  color: #b9c6cc;
  font-size: 1rem;
  line-height: 1.58;
}

.laboratory {
  background: var(--surface);
}

.capability-grid,
.team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.capability-card {
  min-width: 0;
  flex: 0 1 calc((100% - 48px) / 3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.media-button {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #dfe6e4;
  cursor: zoom-in;
}

.media-button picture,
.media-button img {
  width: 100%;
  height: 100%;
}

.media-button img {
  object-fit: cover;
  transition: transform 220ms ease;
}

.media-button:hover img,
.media-button:focus-visible img {
  transform: scale(1.025);
}

.image-action {
  position: absolute;
  right: 12px;
  bottom: 12px;
  min-height: 34px;
  padding: 6px 10px;
  display: inline-flex;
  align-items: center;
  color: var(--surface);
  background: rgba(10, 23, 34, 0.9);
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 700;
}

.capability-content {
  padding: 24px;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.capability-type,
.person-role,
.publication-kicker,
.contact-label {
  margin-bottom: 10px;
  color: var(--teal-dark);
  font-size: 0.875rem;
  font-weight: 750;
  letter-spacing: 0.055em;
  line-height: 1.4;
  text-transform: uppercase;
}

.capability-card h3 {
  margin-bottom: 10px;
  font-size: 1.35rem;
  line-height: 1.2;
}

.capability-card p:not(.capability-type) {
  margin-bottom: 18px;
  color: var(--ink-soft);
  font-size: 1rem;
}

.instrument-maker {
  font-weight: 650;
}

.capability-card details {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.capability-card summary {
  color: var(--teal-dark);
  font-size: 0.875rem;
  font-weight: 750;
  cursor: pointer;
}

.capability-card details p {
  margin: 13px 0 0 !important;
  font-size: 0.9375rem !important;
  line-height: 1.55;
}

.team {
  background: var(--surface-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.person-card {
  min-width: 0;
  flex: 0 1 calc((100% - 48px) / 3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.person-card picture {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #dfe6e4;
  border-bottom: 1px solid var(--line);
}

.person-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.person-content {
  padding: 25px;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.person-content h3 {
  margin-bottom: 10px;
  font-size: 1.35rem;
  line-height: 1.2;
}

.person-role {
  margin-bottom: 4px;
  letter-spacing: 0.04em;
}

.person-institution {
  margin-bottom: 18px;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  font-weight: 650;
}

.person-bio {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.58;
}

.person-links {
  margin-top: auto;
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
}

.person-links::before {
  content: "";
  width: 100%;
  margin-bottom: 8px;
  border-top: 1px solid var(--line);
}

.person-links a {
  color: var(--teal-dark);
  font-size: 0.875rem;
  font-weight: 750;
  text-decoration-color: currentColor;
}

.publications {
  background: var(--surface);
}

.publication-years {
  border-top: 1px solid var(--ink);
}

.publication-year {
  padding: 42px 0 56px;
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
}

.publication-year h3 {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  align-self: start;
  margin-bottom: 0;
  color: var(--teal-dark);
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  letter-spacing: -0.045em;
  line-height: 1;
}

.publication-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.publication-item {
  padding: 0 0 31px;
}

.publication-item + .publication-item {
  padding-top: 31px;
  border-top: 1px solid var(--line);
}

.publication-item:last-child {
  padding-bottom: 0;
}

.publication-kicker {
  margin-bottom: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px 12px;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
  text-transform: none;
}

.publication-type {
  padding: 4px 7px;
  color: var(--teal-dark);
  background: var(--teal-soft);
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
}

.publication-item h4 {
  max-width: 940px;
  margin-bottom: 13px;
  font-size: clamp(1.28rem, 2vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.28;
}

.publication-item h4 a {
  color: var(--ink);
  text-decoration-color: transparent;
}

.publication-item h4 a:hover,
.publication-item h4 a:focus-visible {
  color: var(--teal-dark);
  text-decoration-color: currentColor;
}

.publication-authors,
.publication-citation {
  margin-bottom: 6px;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.publication-citation {
  margin-bottom: 0;
  color: #263740;
  font-weight: 650;
}

.contact {
  background: var(--background);
}

.contact-intro {
  margin-bottom: 48px;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(340px, 0.82fr) minmax(480px, 1.18fr);
  gap: 24px;
}

.contact-details,
.map-card {
  min-height: 390px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.contact-details {
  padding: clamp(28px, 4vw, 48px);
}

.contact-details address {
  margin: 0;
  font-style: normal;
}

.contact-row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 20px;
}

.contact-row + .contact-row {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.contact-row p {
  margin-bottom: 0;
}

.contact-label {
  color: var(--ink-soft);
}

.contact-row a {
  font-weight: 700;
  overflow-wrap: anywhere;
}

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

.site-footer {
  padding: 0 0 38px;
  color: #bdc9ce;
  background: var(--ink-section);
  font-size: 0.875rem;
}

.footer-institutions {
  margin-bottom: 38px;
  padding: 22px 0;
  color: var(--ink);
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.institution-row {
  display: grid;
  grid-template-columns: minmax(160px, 0.55fr) minmax(0, 1.45fr);
  gap: 32px;
  align-items: center;
}

.institution-row > p {
  color: var(--ink-soft);
  font-size: 0.875rem;
  font-weight: 750;
  letter-spacing: 0.055em;
  line-height: 1.4;
  text-transform: uppercase;
}

.institution-logos {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 18px 28px;
}

.institution-logos img {
  width: auto;
  height: auto;
  max-height: 54px;
  object-fit: contain;
}

.institution-logos img[src*="materials-physics-center"] {
  max-width: 224px;
}

.institution-logos img[src*="upv-ehu"] {
  max-height: 58px;
}

.institution-logos img[src*="dipc"] {
  max-width: 232px;
}

.footer-grid {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

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

.footer-name {
  margin-bottom: 4px !important;
  color: var(--surface);
  font-size: 1rem;
  font-weight: 750;
}

.footer-meta {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-footer a {
  color: var(--fluorescent);
  font-weight: 700;
}

.lightbox {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  padding: 0;
  color: var(--surface);
  background: transparent;
  border: 0;
}

.lightbox::backdrop {
  background: rgba(4, 10, 15, 0.92);
}

.lightbox-shell {
  position: relative;
  width: 100%;
  min-height: 100%;
  padding: 72px 24px 30px;
  display: grid;
  place-items: center;
}

.lightbox figure {
  width: min(1180px, 100%);
  margin: 0;
}

.lightbox img {
  width: auto;
  max-width: 100%;
  max-height: 76vh;
  margin-inline: auto;
  object-fit: contain;
  border-radius: var(--radius-small);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

.lightbox figcaption {
  max-width: 860px;
  margin: 16px auto 0;
  color: #e8eff2;
  font-size: 0.9375rem;
  line-height: 1.55;
  text-align: center;
}

.lightbox-close {
  position: fixed;
  top: 18px;
  right: 22px;
  z-index: 2;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--ink);
  background: var(--surface);
  border: 0;
  border-radius: var(--radius-small);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 1100px) {
  .brand-copy span {
    display: none;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.8fr);
    gap: 48px;
  }

  .capability-card,
  .person-card {
    flex-basis: calc((100% - 24px) / 2);
  }

  .contact-grid {
    grid-template-columns: minmax(320px, 0.9fr) minmax(400px, 1.1fr);
  }
}

@media (max-width: 900px) {
  :root {
    --header-height: 68px;
  }

  .header-shell {
    position: relative;
  }

  .js .nav-toggle {
    display: block;
  }

  .js .primary-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    display: none;
    padding: 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-top: 0;
    box-shadow: var(--shadow);
  }

  .js .primary-nav.is-open {
    display: block;
  }

  .nav-menu {
    width: 100%;
    display: grid;
    gap: 2px;
  }

  .nav-menu a {
    width: 100%;
    min-height: 46px;
    padding: 8px 12px;
    font-size: 1rem;
  }

  .nav-menu a:not(.nav-contact)::after {
    display: none;
  }

  .nav-contact {
    margin-top: 6px;
    justify-content: center;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .hero-copy {
    max-width: 800px;
  }

  .hero-media {
    width: min(100%, 760px);
  }

  .section-intro {
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: start;
  }

  .section-intro > p {
    max-width: 680px;
  }

  .current-activity {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .research-direction {
    min-height: 260px;
  }

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

  .contact-details,
  .map-card,
  .map-card iframe {
    min-height: 340px;
  }
}

@media (max-width: 720px) {
  :root {
    --page-shell: min(100% - 32px, 640px);
  }

  body {
    font-size: 1rem;
  }

  .hero {
    padding: 54px 0 72px;
  }

  .hero h1 {
    font-size: clamp(2.35rem, 11vw, 3.55rem);
  }

  .hero-lede {
    font-size: 1.0625rem;
  }

  .section {
    padding: 72px 0;
  }

  .section-intro {
    margin-bottom: 42px;
  }

  .section-intro h2 {
    font-size: clamp(2.15rem, 9vw, 3rem);
  }

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

  .research-direction {
    min-height: 0;
    padding: 30px 0 34px;
  }

  .research-direction + .research-direction {
    border-top: 1px solid var(--line-dark);
    border-left: 0;
  }

  .research-index {
    margin-bottom: 28px;
  }

  .capability-card,
  .person-card {
    flex-basis: 100%;
  }

  .publication-year {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .publication-year h3 {
    position: static;
  }

  .contact-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .footer-grid,
  .footer-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .institution-row {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .institution-logos {
    justify-content: flex-start;
  }

  .footer-grid {
    gap: 24px;
  }

  .footer-meta {
    gap: 8px;
  }
}

@media (max-width: 440px) {
  .brand {
    gap: 9px;
  }

  .brand img {
    width: 40px;
    height: 40px;
  }

  .brand-copy strong {
    max-width: 210px;
    font-size: 0.875rem;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .capability-content,
  .person-content {
    padding: 21px;
  }

  .contact-details {
    padding: 25px 21px;
  }

  .lightbox-shell {
    padding: 70px 16px 24px;
  }

  .lightbox-close {
    top: 12px;
    right: 12px;
  }
}

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

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