/* =============================================================
   ReDiW-Bridge — Stylesheet
   Reusable Digital Workflows for Heritage Bridge Documentation,
   Conservation, and Presentation — University of Bath

   Palette derived directly from the project logo (deep navy /
   digital-scan teal / bridge stone), sampled and refined for
   accessible UI contrast. All values below are custom properties
   so the palette, type scale, and spacing can be retuned later
   without touching component rules.
   ============================================================= */

/* -------------------------------------------------------------
   1. DESIGN TOKENS
   ------------------------------------------------------------- */
:root {

  /* ---- Colour: core brand (sampled from logo) ---- */
  --color-navy-900:      #071F30; /* deepest navy — footer, dark backgrounds */
  --color-navy-700:      #0A2E47; /* primary navy — headings, nav, wordmark  */
  --color-navy-500:      #123A57; /* mid navy — hover states on dark surfaces */

  --color-teal-700:      #0B7C86; /* deep teal — accessible text-on-white accent */
  --color-teal-500:      #0E96A0; /* primary teal — CTAs, links, highlights     */
  --color-teal-300:      #35C3CC; /* bright teal — glow/hover, decorative       */

  --color-mint-400:      #4ED9B0; /* teal-green from orbit rings — secondary accent */

  --color-stone-100:     #F5F1E8; /* warm parchment — alternating section backgrounds */
  --color-stone-200:     #ECE4D3; /* deeper stone — card borders, dividers */

  /* ---- Colour: neutrals & surfaces ---- */
  --color-bg:             #FCFBF8; /* page background, near-white with warmth */
  --color-surface:        #FFFFFF; /* card / raised surfaces */
  --color-border:         #E3DFD3;

  /* ---- Colour: text ---- */
  --color-text-primary:   #12222E;
  --color-text-secondary: #4C5C67;
  --color-text-muted:     #7C8A93;
  --color-text-on-dark:   #F4F7F8;
  --color-text-on-dark-muted: #A9BAC2;

  /* ---- Colour: semantic ---- */
  --color-link:            var(--color-teal-700);
  --color-focus-ring:      var(--color-teal-300);

  /* ---- Typography ---- */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:    'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;

  --fs-h1:   clamp(2.6rem, 5vw + 1rem, 4.5rem);
  --fs-h2:   clamp(1.9rem, 3vw + 1rem, 2.75rem);
  --fs-h3:   clamp(1.25rem, 1.2vw + 1rem, 1.5rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9rem;
  --fs-eyebrow: 0.8rem;

  --lh-tight: 1.15;
  --lh-normal: 1.6;

  /* ---- Spacing scale ---- */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  1.75rem;
  --space-lg:  3rem;
  --space-xl:  5rem;
  --space-2xl: 8rem;

  /* ---- Layout ---- */
  --container-width: 1180px;
  --container-padding: clamp(1.25rem, 4vw, 3rem);
  --header-height: 76px;

  /* ---- Radius & shadow ---- */
  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 3px rgba(10, 46, 71, 0.08);
  --shadow-md: 0 8px 24px rgba(10, 46, 71, 0.10);
  --shadow-lg: 0 20px 48px rgba(10, 46, 71, 0.16);

  /* ---- Motion ---- */
  --transition-fast: 160ms ease;
  --transition-base: 280ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* -------------------------------------------------------------
   2. RESET & BASE
   ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

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

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-navy-700);
  line-height: var(--lh-tight);
  margin: 0 0 var(--space-sm);
  font-weight: 600;
}

p { margin: 0 0 var(--space-sm); color: var(--color-text-secondary); }

a {
  color: var(--color-link);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover { color: var(--color-teal-500); }

ul { list-style: none; margin: 0; padding: 0; }

button { font-family: inherit; cursor: pointer; }

/* Visible keyboard focus everywhere */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--color-focus-ring);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Skip link — hidden until focused */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: var(--color-navy-700);
  color: var(--color-text-on-dark);
  padding: var(--space-xs) var(--space-sm);
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus {
  left: 0;
}

/* Visually-hidden utility (external-link affordance for screen readers) */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* -------------------------------------------------------------
   3. LAYOUT HELPERS
   ------------------------------------------------------------- */
.section {
  padding: var(--space-2xl) 0;
}

.section__container,
.hero__container,
.site-footer__container,
.navbar {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-teal-700);
  margin-bottom: var(--space-xs);
}

.section__title {
  font-size: var(--fs-h2);
  margin-bottom: var(--space-lg);
  max-width: 42ch;
}

/* Alternate warm-stone background on every other section for rhythm */
.about, .news, .contact {
  background: var(--color-stone-100);
}

/* -------------------------------------------------------------
   4. BUTTONS
   ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.75rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
}

.btn--primary {
  background: var(--color-teal-500);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover {
  background: var(--color-teal-700);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--color-text-on-dark);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-text-on-dark);
  border-color: rgba(255, 255, 255, 0.7);
}

/* -------------------------------------------------------------
   5. HEADER / NAVIGATION
   ------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background: rgba(252, 251, 248, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition-base), background var(--transition-base);
}

.site-header.is-scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.navbar__brand { display: flex; align-items: center; }
.navbar__logo { height: 44px; width: auto; }

.navbar__menu {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.navbar__link {
  position: relative;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  padding: 0.35rem 0;
}
.navbar__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--color-teal-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-fast);
}
.navbar__link:hover,
.navbar__link.is-active {
  color: var(--color-navy-700);
}
.navbar__link:hover::after,
.navbar__link.is-active::after {
  transform: scaleX(1);
}

.navbar__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  padding: 0;
}
.navbar__toggle-bar {
  width: 100%;
  height: 2px;
  background: var(--color-navy-700);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-base);
}
.navbar__toggle[aria-expanded="true"] .navbar__toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.navbar__toggle[aria-expanded="true"] .navbar__toggle-bar:nth-child(2) {
  opacity: 0;
}
.navbar__toggle[aria-expanded="true"] .navbar__toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* -------------------------------------------------------------
   6. HERO
   ------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  overflow: hidden;
  background: radial-gradient(ellipse at 75% 20%, var(--color-navy-500) 0%, var(--color-navy-700) 45%, var(--color-navy-900) 100%);
  color: var(--color-text-on-dark);
}

/* Decorative orbit rings echoing the logo's scan-arc motif */
.hero__orbit {
  position: absolute;
  top: 50%;
  right: -10%;
  width: min(70vw, 820px);
  height: min(70vw, 820px);
  transform: translateY(-50%);
  border-radius: 50%;
  border: 1px solid rgba(53, 195, 204, 0.25);
  pointer-events: none;
}
.hero__orbit::before,
.hero__orbit::after {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  border: 1px solid rgba(78, 217, 176, 0.18);
}
.hero__orbit::after {
  inset: 18%;
  border-color: rgba(53, 195, 204, 0.14);
}

.hero__container {
  position: relative;
  z-index: 1;
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-2xl);
  max-width: 760px;
}

.hero__emblem {
  width: min(220px, 90vw); /* fallback before JS syncs it to the title width */
  max-width: 100%;
  height: auto;
  margin-bottom: var(--space-sm);
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.35));
}

.hero__title {
  font-size: var(--fs-h1);
  color: #fff;
  margin-bottom: var(--space-sm);
  letter-spacing: -0.01em;
}

.hero__subtitle {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.1rem, 1.4vw + 0.8rem, 1.5rem);
  color: var(--color-text-on-dark);
  max-width: 34ch;
  margin-bottom: var(--space-sm);
}

.hero__lede {
  color: var(--color-text-on-dark-muted);
  max-width: 46ch;
  margin-bottom: var(--space-lg);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.funding-badge {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--color-text-on-dark-muted);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-pill);
  padding: 0.6rem 1.1rem;
  background: rgba(255, 255, 255, 0.04);
}
.funding-badge__label { color: var(--color-mint-400); }
.funding-badge__name { color: var(--color-text-on-dark); }
.funding-badge__divider { opacity: 0.4; }

.scroll-indicator {
  position: absolute;
  bottom: var(--space-lg);
  left: var(--container-padding);
  z-index: 1;
}
.scroll-indicator__mouse {
  display: block;
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-pill);
  position: relative;
}
.scroll-indicator__wheel {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  background: var(--color-mint-400);
  border-radius: var(--radius-pill);
  transform: translateX(-50%);
  animation: scroll-wheel 1.8s ease infinite;
}
@keyframes scroll-wheel {
  0% { opacity: 1; transform: translate(-50%, 0); }
  70% { opacity: 0; transform: translate(-50%, 14px); }
  100% { opacity: 0; }
}

/* -------------------------------------------------------------
   7. ABOUT
   ------------------------------------------------------------- */
.about__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-xl);
  align-items: start;
}

.about__copy h3 {
  font-size: 1.1rem;
  margin-top: var(--space-md);
}
.about__copy h3:first-child { margin-top: 0; }

.about__objectives {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.objective-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  position: relative;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.objective-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.objective-card__number {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-teal-500);
  display: block;
  margin-bottom: var(--space-xs);
}
.objective-card__title {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}
.objective-card__text {
  font-size: var(--fs-small);
  margin-bottom: 0;
}

/* -------------------------------------------------------------
   8. PARTICIPANTS
   ------------------------------------------------------------- */
.participants__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-md);
}

.participant-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.participant-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.participant-card--partner {
  border-style: dashed;
  background: var(--color-stone-100);
}

.participant-card__photo {
  position: relative;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: var(--space-sm);
  background: linear-gradient(135deg, var(--color-navy-500), var(--color-teal-500));
  flex-shrink: 0;
}

.participant-card__photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Hidden unless the JS error handler flags a failed image load */
.participant-card__photo-fallback {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
}

.participant-card__photo.has-photo-error .participant-card__photo-img {
  display: none;
}
.participant-card__photo.has-photo-error .participant-card__photo-fallback {
  display: flex;
}

.participant-card__name {
  font-size: 1.05rem;
  margin-bottom: 0.15rem;
}
.participant-card__role {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--color-teal-700);
  margin-bottom: 0.15rem;
}
.participant-card__affiliation {
  font-size: var(--fs-small);
  color: var(--color-text-muted);
  margin-bottom: var(--space-xs);
}
.participant-card__bio {
  font-size: var(--fs-small);
  margin-bottom: var(--space-sm);
}
.participant-card__links {
  display: flex;
  gap: var(--space-sm);
}
.participant-card__link {
  font-size: var(--fs-small);
  font-weight: 600;
}

/* -------------------------------------------------------------
   9. NEWS
   ------------------------------------------------------------- */
.news__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
}

.news-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.news-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.news-card__image {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--color-navy-500), var(--color-teal-700));
}
.news-card__image--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-card__image-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* On load failure, hide the broken image and let the gradient behind it show through */
.news-card__image.has-image-error .news-card__image-img {
  display: none;
}

.news-card__body { padding: var(--space-md); }
.news-card__date {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--color-teal-700);
  margin-bottom: 0.35rem;
}
.news-card__title {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}
.news-card__summary {
  font-size: var(--fs-small);
  margin-bottom: 0;
}

/* -------------------------------------------------------------
   10. PUBLICATIONS
   ------------------------------------------------------------- */
.publications__intro {
  max-width: 68ch;
  margin-bottom: var(--space-lg);
}

.publications__intro a { 
  font-weight: 600; 
}

.publications__categories {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.publication-category__title {
  font-size: 1.15rem;
  padding-bottom: var(--space-xs);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-sm);
}

.publications__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.publication-card {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-teal-500);
  border-radius: var(--radius-sm);
  padding: var(--space-md);
}

.publication-card--placeholder {
  border-left-style: dashed;
  border-left-color: var(--color-text-muted);
}

.publication-card__image {
  width: 84px;
  height: 84px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}

.publication-card__image--placeholder {
  background: linear-gradient(135deg, var(--color-navy-500), var(--color-teal-700));
}

.publication-card__image-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.publication-card__body { 
  flex: 1; min-width: 0; 
}

.publication-card__title {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.publication-card__meta {
  font-size: var(--fs-small);
  color: var(--color-text-muted);
  margin-bottom: 0;
}

.publication-card__status, .publication-card__doi {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.publication-card__status {
  color: var(--color-text-muted);
  background: rgba(124, 138, 147, 0.12);
}

.publication-card__doi {
  color: var(--color-teal-700);
  background: rgba(14, 150, 160, 0.1);
  font-weight: 600;
}

/* -------------------------------------------------------------
   11. CONTACT
   ------------------------------------------------------------- */
.contact__grid {
  display: grid;
  place-items: start center;
  text-align: center;
  gap: var(--space-xl);
}

.contact__email {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  margin: var(--space-sm) 0;
}


/* -------------------------------------------------------------
   12. FOOTER
   ------------------------------------------------------------- */
.site-footer {
  background: var(--color-navy-900);
  color: var(--color-text-on-dark-muted);
  padding: var(--space-xl) 0 var(--space-lg);
}

.site-footer__funding-band {
  background: #fff;
  padding: var(--space-lg) var(--container-padding);
  text-align: center;
}

.site-footer__funding-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-teal-700);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-sm);
}

.site-footer__funder-logo {
  display: inline-block;
  width: 100%;
  max-width: 420px;
  height: auto;
  object-fit: contain;
}

.site-footer__riches-stripe {
  display: block;
  width: 100%;
  height: auto;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.site-footer__nav a {
  color: var(--color-text-on-dark-muted);
  font-size: var(--fs-small);
}

.site-footer__nav a:hover { 
  color: #fff; 
}

.site-footer__copyright {
  font-size: 0.8rem;
  color: var(--color-text-on-dark-muted);
  margin-bottom: 0;
  text-align: center;
}

/* -------------------------------------------------------------
   13. BACK TO TOP
   ------------------------------------------------------------- */
.back-to-top {
  position: fixed;
  right: var(--space-md);
  bottom: var(--space-md);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--color-navy-700);
  color: #fff;
  font-size: 1.1rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--transition-base), transform var(--transition-base), background var(--transition-fast);
  z-index: 400;
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover { background: var(--color-teal-500); }

/* -------------------------------------------------------------
   14. SCROLL-REVEAL ANIMATION HOOKS (driven by IntersectionObserver in JS)
   ------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}
.reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* -------------------------------------------------------------
   15. RESPONSIVE BREAKPOINTS
   ------------------------------------------------------------- */

/* Tablet */
@media (max-width: 900px) {
  .about__grid {
    grid-template-columns: 1fr;
  }
  .about__objectives { order: -1; }
}

/* Mobile navigation */
@media (max-width: 768px) {
  .navbar__toggle { display: flex; }

  .navbar__menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    transition: max-height var(--transition-base), visibility var(--transition-base);
  }
  .navbar__menu.is-open {
    max-height: 400px;
    visibility: visible;
  }
  .navbar__menu li { width: 100%; }
  .navbar__link {
    display: block;
    width: 100%;
    padding: var(--space-sm) var(--container-padding);
  }
  .navbar__link::after { display: none; }

  .hero__orbit { opacity: 0.6; }

  .publication-card { flex-direction: column; align-items: flex-start; }

  .publication-card__image { width: 100%; height: 140px; }
}

/* Small mobile */
@media (max-width: 480px) {
  :root {
    --space-2xl: 5rem;
    --space-xl: 3rem;
  }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .funding-badge { font-size: 0.7rem; }
}
