/* Ocean Dynamics from Space — group site.
 *
 * Tokens and accessibility base load first. This file is identity and layout.
 */

@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=Source+Sans+3:ital,wght@0,400;0,600;0,700;1,400&display=swap");

:root {
  --ink: #071525;
  --ink-soft: #243447;
  --muted: #4a5d73;
  --paper: #eef3f7;
  --surface: #ffffff;
  --foam: #e4ecf3;
  --line: #d3dde8;
  --line-strong: #b7c5d4;
  --accent: #0b6e8a;
  --accent-soft: #d9eef4;
  --accent-line: #9ec9d6;
  --deep: #0a2a3c;
  --deep-mid: #123a52;
  --font-sans: "Source Sans 3", "Segoe UI", sans-serif;
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(7, 21, 37, .06), 0 14px 36px rgba(7, 21, 37, .08);
  --soft-shadow: 0 1px 2px rgba(7, 21, 37, .05);
  --site-max: 1120px;
  --nav-h: 72px;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(90% 60% at 100% 0%, rgba(11, 110, 138, .08), transparent 55%),
    radial-gradient(70% 50% at 0% 20%, rgba(18, 58, 82, .06), transparent 50%),
    var(--paper);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--deep); }

/* —— Chrome —— */
.site-head {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-nav {
  width: min(var(--site-max), 100%);
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 36px);
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}
.brand img {
  height: 36px;
  width: auto;
  display: block;
}
.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -.01em;
  line-height: 1.2;
}
.brand-sub {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
}

.nav-menu {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  align-items: center;
}
.nav-menu a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav-menu a:hover { color: var(--ink); }
.nav-menu a[aria-current="page"] {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

main { flex: 1; }

.site-foot {
  margin-top: auto;
  padding: clamp(40px, 6vw, 64px) clamp(18px, 4vw, 36px) 28px;
  background: var(--deep);
  color: #c5d4e0;
}
.site-foot-inner {
  width: min(var(--site-max), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto;
  gap: 28px 40px;
  align-items: start;
}
.site-foot p { margin: 0; font-size: 14px; }
.site-foot a { color: #dce7ef; text-decoration: none; }
.site-foot a:hover { color: #fff; }
.foot-name {
  font-family: var(--font-display);
  font-size: 18px !important;
  font-weight: 600;
  color: #f4f8fb;
  margin-bottom: 8px !important;
}
.foot-meta {
  margin-top: 4px !important;
  font-size: 13px !important;
  color: #8fa3b5;
}
.foot-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 20px;
  font-size: 14px;
  font-weight: 600;
}
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.foot-legal {
  width: min(var(--site-max), 100%);
  margin: clamp(28px, 4vw, 40px) auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: 12px !important;
  color: #8fa3b5;
}

/* —— Home hero —— */
.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: grid;
  align-items: end;
  color: #f4f8fb;
  overflow: hidden;
  isolation: isolate;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  display: block;
  animation: hero-rise 1.6s ease-out both;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(105deg, rgba(7, 21, 37, .72) 0%, rgba(7, 21, 37, .42) 42%, rgba(7, 21, 37, .28) 100%),
    linear-gradient(180deg, rgba(7, 21, 37, .35) 0%, transparent 28%, rgba(7, 21, 37, .78) 100%);
}
.hero-copy {
  width: min(var(--site-max), 100%);
  margin: 0 auto;
  padding:
    calc(var(--nav-h) + clamp(48px, 10vw, 96px))
    clamp(18px, 4vw, 36px)
    clamp(64px, 10vw, 96px);
  animation: copy-in 1s .15s ease-out both;
}
.hero-eyebrow {
  margin: 0 0 18px;
  color: rgba(215, 228, 238, .85);
  font-size: clamp(11px, 1.3vw, 13px);
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.hero-brand {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 74px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.025em;
  max-width: 13ch;
  text-wrap: balance;
}
.hero-lede {
  margin: 0;
  max-width: 46ch;
  font-size: clamp(17px, 2.1vw, 21px);
  line-height: 1.5;
  color: #d7e4ee;
}
.hero-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  width: 28px;
  height: 44px;
  border: 1px solid rgba(244, 248, 251, .45);
  border-radius: 999px;
  display: grid;
  place-items: start center;
  padding-top: 8px;
  color: inherit;
  text-decoration: none;
  animation: copy-in 1s .6s ease-out both;
}
.hero-scroll span {
  width: 4px;
  height: 8px;
  border-radius: 999px;
  background: #f4f8fb;
  animation: scroll-dot 1.6s ease-in-out infinite;
}

/* Home: nav floats over the hero so the first viewport is one composition. */
body.is-home .site-head {
  position: absolute;
  inset: 0 0 auto;
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
}
body.is-home .site-head.is-open {
  background: rgba(7, 21, 37, .94);
  border-bottom-color: rgba(255, 255, 255, .08);
}
body.is-home .brand-name,
body.is-home .nav-menu a { color: #f4f8fb; }
body.is-home .brand-sub { color: rgba(215, 228, 238, .75); }
body.is-home .nav-menu a:hover { color: #fff; }
body.is-home .nav-menu a[aria-current="page"] {
  color: #fff;
  border-bottom-color: rgba(244, 248, 251, .7);
}
body.is-home .nav-toggle {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .28);
}
body.is-home .nav-toggle span { background: #f4f8fb; }
body.is-home .site-head.is-open .nav-menu {
  background: #0a2a3c;
  border-bottom-color: rgba(255, 255, 255, .08);
}
body.is-home .site-head.is-open .nav-menu a {
  border-bottom-color: rgba(255, 255, 255, .08);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: #f4f8fb;
  color: var(--deep);
}
.btn-primary:hover { background: #fff; color: var(--deep); }
.btn-ghost {
  background: transparent;
  color: #f4f8fb;
  border-color: rgba(244, 248, 251, .45);
}
.btn-ghost:hover { border-color: #fff; color: #fff; }
.btn-accent {
  background: var(--accent);
  color: #fff;
}
.btn-accent:hover { background: #095a71; color: #fff; }

@keyframes hero-rise {
  from { transform: scale(1.06); opacity: .7; }
  to { transform: scale(1); opacity: 1; }
}
@keyframes copy-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes scroll-dot {
  0%, 100% { transform: translateY(0); opacity: .35; }
  50% { transform: translateY(10px); opacity: 1; }
}

/* —— Home sections —— */
.home-page {
  padding-top: clamp(52px, 8vw, 88px);
}

/* Shared section header with a trailing link */
.home-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.home-section-head .page-kicker { margin-bottom: 8px; }
.home-section-head .section-title { margin: 0; }
.section-link {
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  color: var(--accent);
  white-space: nowrap;
}
.section-link:hover { color: var(--deep); }
.section-link::after { content: " →"; }

/* Lab statement + stats */
.home-statement {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  animation: fade-up .7s ease-out both;
}
.statement-copy .page-kicker { margin-bottom: 12px; }
.statement-copy h2 {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.statement-copy p {
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(16px, 1.8vw, 18px);
  line-height: 1.6;
  max-width: 58ch;
}
.statement-invite {
  margin-top: 18px !important;
  padding: 16px 20px;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 10px 10px 0;
}
.statement-invite strong { color: var(--ink); }

.stat-list {
  margin: 0;
  padding: clamp(20px, 3vw, 28px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--soft-shadow);
  display: grid;
  gap: 4px;
}
.stat {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.stat:first-child { padding-top: 0; }
.stat:last-child { padding-bottom: 0; border-bottom: 0; }
.stat dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.stat dd {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-size: clamp(26px, 3.2vw, 34px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -.02em;
  color: var(--ink);
}
.stat dd span {
  color: var(--accent);
  font-size: .55em;
  font-weight: 700;
  letter-spacing: 0;
}

/* Research cards */
.home-research {
  margin-top: clamp(56px, 9vw, 96px);
  animation: fade-up .8s .06s ease-out both;
}
.research-cards {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.rcard {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--soft-shadow);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.rcard:hover {
  border-color: var(--accent-line);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.rcard a {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}
.rcard-media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--foam);
}
.rcard-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.rcard:hover .rcard-media img { transform: scale(1.05); }
.rcard-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 18px 20px;
}
.rcard-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -.01em;
}
.rcard:hover .rcard-title { color: var(--accent); }
.rcard-text {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.45;
}

/* Featured paper */
.home-feature {
  margin-top: clamp(56px, 9vw, 96px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
  animation: fade-up .8s .1s ease-out both;
}
.feature-media { margin: 0; }
.feature-media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
/* A portrait journal cover: don't stretch it across the column. */
.feature-media.is-cover {
  display: flex;
  justify-content: center;
}
.feature-media.is-cover img {
  width: auto;
  max-width: 100%;
  max-height: 480px;
  border: 1px solid var(--line);
}
.feature-copy .page-kicker { margin-bottom: 12px; }
.feature-copy h2 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(26px, 3.6vw, 38px);
  line-height: 1.15;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.feature-copy > p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.55;
  max-width: 44ch;
}
.feature-cite {
  margin-top: 16px !important;
  font-size: 14px !important;
  color: var(--muted) !important;
  line-height: 1.5;
}
.feature-links {
  margin-top: 16px !important;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  font-size: 15px;
  font-weight: 700;
}
.feature-links a { text-decoration: none; }

/* Latest news strip */
.home-news {
  margin-top: clamp(56px, 9vw, 96px);
  animation: fade-up .8s .14s ease-out both;
}
.news-strip {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 2px solid var(--ink);
}
.news-strip li {
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.news-strip li:last-child { border-right: 0; }
.news-strip a {
  display: block;
  height: 100%;
  padding: 20px 20px 24px 0;
  color: inherit;
  text-decoration: none;
  transition: color .18s ease;
}
.news-strip li:not(:first-child) a { padding-left: 20px; }
.news-strip a:hover .news-strip-title { color: var(--accent); }
.news-strip-label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.news-strip-title {
  display: block;
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -.01em;
}

/* —— Page shell —— */
.page {
  width: min(var(--site-max), 100%);
  margin: 0 auto;
  padding: clamp(36px, 6vw, 64px) clamp(18px, 4vw, 36px) clamp(56px, 8vw, 96px);
}
.page-head {
  margin-bottom: clamp(28px, 5vw, 44px);
  max-width: 46ch;
  animation: fade-up .7s ease-out both;
}
.page-kicker {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.page-head h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(30px, 4.4vw, 44px);
  line-height: 1.12;
  letter-spacing: -.02em;
}
.page-head p {
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: 18px;
}

.section {
  margin-top: clamp(40px, 7vw, 72px);
}
.section-title {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 28px);
  letter-spacing: -.015em;
}
.section-lead {
  margin: -6px 0 22px;
  color: var(--ink-soft);
  max-width: 54ch;
}

.prose { max-width: 68ch; }
.prose p { margin: 0 0 1em; color: var(--ink-soft); }
.prose p:last-child { margin-bottom: 0; }

.invite {
  margin-top: clamp(28px, 5vw, 40px);
  padding: 22px 24px;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  color: var(--ink-soft);
  font-size: 17px;
  animation: fade-up .8s .15s ease-out both;
}
.invite strong { color: var(--ink); }

/* —— Highlights / news —— */
.highlight-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 22px;
}
.highlight {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.highlight:last-child { border-bottom: 0; padding-bottom: 0; }
.highlight h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.25;
}
.highlight p { margin: 0 0 10px; color: var(--ink-soft); }
.highlight .meta { margin: 0; color: var(--muted); font-size: 13px; }
.highlight img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  display: block;
  box-shadow: var(--soft-shadow);
}
.citation {
  margin-top: 10px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
  color: var(--ink-soft);
}
.citation p { margin: 0 0 6px; }
.citation p:last-child { margin: 0; }

/* —— Team —— */
.team-grid {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 22px;
}
.member {
  text-align: left;
}
.member img,
.member-photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius);
  background: var(--foam);
  display: block;
  margin-bottom: 12px;
  box-shadow: var(--soft-shadow);
}
.member-photo {
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 600;
  color: var(--muted);
  background:
    linear-gradient(160deg, var(--accent-soft), var(--foam));
}
.member h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}
.member h3 a { color: inherit; text-decoration: none; }
.member h3 a:hover { color: var(--accent); }
.member .role {
  margin: 4px 0 0;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}
.member .focus {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.alumni {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  color: var(--ink-soft);
}
.alumni li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.alumni li:last-child { border-bottom: 0; }

/* —— Research —— */
.direction + .direction { margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--line); }
.direction-head {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-bottom: 14px;
}
.direction-head img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  background: var(--foam);
  flex-shrink: 0;
}
.direction-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 28px);
}
.selected {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}
.selected li {
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.selected a {
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}
.selected a:hover { color: var(--accent); }
.selected .note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

/* —— Publications / news lists —— */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: end;
  margin-bottom: 22px;
}
.toolbar label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.toolbar select {
  min-width: 180px;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
}

.pub-list,
.news-feed {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}
.pub-item,
.news-item {
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.pub-item .authors,
.news-item .meta {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 13px;
}
.pub-item .title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}
.pub-item .title a { color: inherit; text-decoration: none; }
.pub-item .title a:hover { color: var(--accent); }
.pub-item .venue {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
}
.abstract-toggle {
  margin-top: 10px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.abstract-toggle:hover { color: var(--deep); }
.abstract {
  margin-top: 10px;
  padding: 12px 14px;
  background: var(--foam);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.55;
}
.news-item h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.35;
}
.news-item h3 a { color: inherit; text-decoration: none; }
.news-item h3 a:hover { color: var(--accent); }
.news-item .body {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 15px;
}

.ext-links {
  margin: 0 0 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-size: 15px;
  font-weight: 600;
}

/* —— Tools —— */
.tool-grid {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.tool {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 100%;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.tool:hover {
  border-color: var(--accent-line);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.tool h3 { margin: 0; font-size: 17px; }
.tool h3 a { color: inherit; text-decoration: none; }
.tool h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
}
.tool { position: relative; }
.tool p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  flex: 1;
}
.tool-status {
  margin: 0 0 6px !important;
  color: var(--muted);
  font-size: 11px !important;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.tool.is-inactive {
  opacity: .55;
  background: var(--foam);
  box-shadow: none;
  pointer-events: none;
}
.tool.is-inactive:hover {
  transform: none;
  border-color: var(--line);
  box-shadow: none;
}

/* —— Contact —— */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 28px;
  align-items: start;
}
.contact-panel {
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.contact-panel h2 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 24px;
}
.contact-panel p { margin: 0 0 12px; color: var(--ink-soft); }
.contact-panel p:last-child { margin-bottom: 0; }
.map {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--foam);
  min-height: 320px;
}
.map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.empty-note {
  color: var(--muted);
  font-size: 15px;
}

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 18px 16px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .site-head.is-open .nav-menu { display: flex; }
  .nav-menu a {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }
  .nav-menu a[aria-current="page"] { border-bottom-color: var(--line); }
  .highlight { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }

  .home-statement { grid-template-columns: 1fr; }
  .research-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .home-feature {
    grid-template-columns: 1fr;
  }
  .feature-media { order: -1; }

  .news-strip {
    grid-template-columns: 1fr;
    border-top: 2px solid var(--ink);
  }
  .news-strip li { border-right: 0; }
  .news-strip a,
  .news-strip li:not(:first-child) a {
    padding: 16px 0;
  }

  .site-foot-inner { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .brand img { height: 30px; }
  .brand-sub { display: none; }
  .research-cards { grid-template-columns: 1fr; }
  .home-section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .site-foot-inner { grid-template-columns: 1fr; }
  .foot-nav { grid-template-columns: 1fr 1fr; }
  .hero-brand { max-width: 14ch; }
}
