﻿/* Base theme */
:root {
  color-scheme: dark;
  --navy-950: #07111f;
  --navy-900: #0b1628;
  --navy-850: #0f1d33;
  --slate-800: #1f2937;
  --slate-700: #334155;
  --slate-500: #64748b;
  --slate-300: #cbd5e1;
  --slate-100: #f1f5f9;
  --cyan: #38bdf8;
  --link-blue: #bae6fd;
  --link-blue-hover: #e0f2fe;
  --green: #22c55e;
  --amber: #f59e0b;
  --violet: #a78bfa;
  --orange: #f97316;
  --line: rgba(203, 213, 225, .18);
  --surface: rgba(15, 29, 51, .78);
  --surface-strong: rgba(15, 29, 51, .95);
  --shadow: 0 24px 80px rgba(0, 0, 0, .34);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--slate-100);
  background: var(--navy-950);
  line-height: 1.55;
}
a { color: inherit; }
img { max-width: 100%; display: block; }

/* Accessibility */
.skip-link {
  position: fixed;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  padding: .75rem 1rem;
  color: var(--navy-950);
  background: var(--cyan);
  border-radius: 8px;
  font-weight: 900;
}
.skip-link:focus { top: 1rem; }

/* Layout */
.section-shell {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}
.section-band { position: relative; overflow: hidden; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem clamp(1rem, 4vw, 3rem);
  background: rgba(7, 17, 31, .9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  color: var(--slate-100);
  text-decoration: none;
  font-weight: 900;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 8px;
  color: var(--navy-950);
  background: linear-gradient(135deg, var(--cyan), var(--green));
}
.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .25rem;
}
.nav a {
  padding: .55rem .75rem;
  color: var(--slate-300);
  text-decoration: none;
  font-weight: 800;
  border-radius: 8px;
}
.nav a:hover,
.nav a:focus-visible {
  color: #fff;
  background: rgba(56, 189, 248, .13);
  outline: none;
}

/* Typography */
.eyebrow {
  margin: 0 0 .85rem;
  color: var(--link-blue);
  font-size: .82rem;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}
h1, h2, h3, p { overflow-wrap: anywhere; }
h1, h2, h3 { color: #fff; letter-spacing: 0; }
h1 {
  max-width: 980px;
  margin: 0;
  font-size: clamp(3rem, 8vw, 7.2rem);
  line-height: .92;
}
h1 span { display: block; white-space: nowrap; }
h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.6rem);
  line-height: 1;
}
h3 { margin: 0; font-size: 1.08rem; }
p { color: var(--slate-300); }

/* Hero */
.hero {
  min-height: 88svh;
  display: grid;
  align-items: center;
  padding: 6rem 0 5rem;
  background:
    linear-gradient(110deg, rgba(7, 17, 31, .98) 0%, rgba(7, 17, 31, .86) 44%, rgba(15, 29, 51, .68) 100%),
    url("assets/research-pathways.svg") center / cover no-repeat;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 18%, rgba(56, 189, 248, .18), transparent 26rem),
    radial-gradient(circle at 22% 80%, rgba(34, 197, 94, .12), transparent 24rem);
  pointer-events: none;
}
.hero-content {
  position: relative;
  display: grid;
  grid-template-columns: minmax(12rem, 18rem) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.4rem, 4vw, 3rem);
}
.hero-figure { margin: 0; }
.hero-portrait {
  width: min(100%, 17rem);
  height: min(62vh, 34rem);
  object-fit: cover;
  object-position: 50% 18%;
  border: 1px solid rgba(203, 213, 225, .2);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.hero-text { min-width: 0; }
.hero-copy {
  max-width: 790px;
  margin: 1.3rem 0 0;
  color: var(--slate-300);
  font-size: clamp(1.15rem, 2vw, 1.55rem);
}
.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.6rem;
}

/* Controls */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.65rem;
  padding: .72rem 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--slate-100);
  background: rgba(15, 29, 51, .82);
  text-decoration: none;
  font-weight: 900;
}
.button.primary {
  color: var(--navy-950);
  border-color: transparent;
  background: linear-gradient(135deg, var(--cyan), var(--green));
}
.button.ghost:hover,
.button.ghost:focus-visible {
  border-color: var(--cyan);
  color: #fff;
}

/* Pathways */
.pathways {
  padding: 4rem 0;
  background: linear-gradient(180deg, var(--navy-900), var(--navy-950));
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.section-heading.compact {
  display: block;
  max-width: 780px;
}
.section-intro {
  max-width: 690px;
  color: var(--slate-300);
}
.pathway-map {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .85rem;
  margin-top: 1.8rem;
}
.accent-cyan { --accent: #38BDF8; }
.accent-green { --accent: #22C55E; }
.accent-amber { --accent: #F59E0B; }
.accent-purple { --accent: #A78BFA; }
.accent-orange { --accent: #F97316; }
#about { --accent: #38BDF8; }
#publications { --accent: #22C55E; }
#grants { --accent: #38BDF8; }
#research { --accent: #22C55E; }
#team { --accent: #A78BFA; }
#teaching { --accent: #F59E0B; }
#services { --accent: #38BDF8; }
#media { --accent: #22C55E; }
#contact { --accent: #A78BFA; }
.pathway-map article,
.featured-card,
.list-card {
  border: 1px solid var(--line);
  border-top: 5px solid var(--accent, var(--cyan));
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.pathway-map article {
  min-height: 14rem;
  padding: 1rem;
}
.pathway-map span,
.card-meta { color: var(--accent); font-weight: 950; }
.pathway-date {
  margin: .55rem 0 .35rem;
  color: var(--link-blue);
  font-size: .82rem;
  font-weight: 950;
  letter-spacing: .04em;
}
.trusted { background: rgba(30, 41, 59, .9); }

/* Content sections */
.content-section { padding: 4rem 0; }
.content-section:nth-child(even) { background: var(--navy-950); }
.content-section:nth-child(odd) { background: var(--navy-900); }
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.featured-card {
  display: flex;
  flex-direction: column;
  min-height: 14rem;
  padding: 1rem;
}
.card-meta {
  margin: 0 0 .65rem;
  font-size: .78rem;
  text-transform: uppercase;
}
.card-link,
.list-card a {
  color: var(--link-blue);
  font-weight: 900;
  text-decoration: none;
}
.card-link { margin-top: auto; }
.link-group {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem .75rem;
  margin-top: .75rem;
}
.inline-link {
  color: var(--link-blue);
  font-weight: 850;
  text-decoration: none;
}
.inline-link:hover { text-decoration: underline; }
.card-link:hover,
.list-card a:hover { text-decoration: underline; }

@media (min-width: 981px) {
  #about .featured-card:first-child {
    grid-column: span 2;
  }
}

/* Publication category selector */
.category-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: .65rem .75rem;
  width: 100%;
  margin: -.25rem 0 1.45rem;
}
.category-nav a {
  flex: 1 1 clamp(10.5rem, 28%, 14.5rem);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.55rem;
  padding: .58rem .82rem;
  border: 1px solid rgba(186, 230, 253, .28);
  border-radius: 8px;
  color: var(--link-blue);
  background: rgba(7, 17, 31, .46);
  text-align: center;
  text-decoration: none;
  font-size: .92rem;
  font-weight: 900;
  line-height: 1.18;
  white-space: normal;
  overflow-wrap: anywhere;
}
.category-nav a:hover,
.category-nav a:focus-visible {
  border-color: var(--cyan);
  color: var(--link-blue-hover);
  background: rgba(56, 189, 248, .12);
  outline: none;
}
.category-nav-complete {
  margin-top: .55rem;
  margin-bottom: 1.25rem;
}
.publication-subsection { padding-top: 1.1rem; }
.subsection-heading h4 {
  margin: 0;
  color: #fff;
  font-size: 1.25rem;
}

/* Ticker */
.ticker {
  margin-top: 1.3rem;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: rgba(15, 29, 51, .62);
}
.ticker-track {
  display: flex;
  align-items: stretch;
  width: max-content;
  transform: translateX(0);
}
.ticker-item {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  width: clamp(18rem, 34vw, 34rem);
  min-height: 3.4rem;
  padding: .85rem 1.2rem;
  color: var(--slate-300);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
  border-right: 1px solid rgba(203, 213, 225, .12);
}
.ticker-item-md {
  width: clamp(22rem, 42vw, 42rem);
  font-size: .94rem;
}
.ticker-item-lg {
  width: clamp(26rem, 52vw, 52rem);
  font-size: .86rem;
}
.ticker-item-xl {
  width: clamp(30rem, 62vw, 64rem);
  font-size: .78rem;
  line-height: 1.35;
}
.ticker a { color: var(--link-blue); font-weight: 850; }
.ticker a:hover { color: var(--link-blue-hover); text-decoration: underline; }

/* Complete lists */
.complete-page { background: var(--navy-950); }
.complete-hero {
  padding: 4rem 0;
  background:
    linear-gradient(115deg, rgba(7, 17, 31, .96), rgba(15, 29, 51, .74)),
    url("assets/research-pathways.svg") center / cover no-repeat;
}
.complete-list { display: grid; gap: .75rem; }
.subsection { margin-top: 2rem; }
.subsection-heading {
  display: grid;
  gap: .25rem;
  margin: 0 0 .85rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--line);
}
.subsection-heading h3 { font-size: 1.45rem; }
.subsection-heading p { margin: 0; }
.list-card {
  padding: .95rem 1rem;
  box-shadow: none;
}
.list-card p { margin-bottom: 0; }

/* Footer */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem clamp(1rem, 4vw, 3rem);
  background: #050b14;
  border-top: 1px solid var(--line);
}
.site-footer p { margin: .25rem 0 0; }

/* Responsive */
@media (max-width: 980px) {
  .site-header { align-items: flex-start; flex-direction: column; }
  .nav { justify-content: flex-start; }
  .hero-content { grid-template-columns: minmax(8rem, 12rem) minmax(0, 1fr); }
  h1 { font-size: clamp(2.5rem, 7vw, 4.7rem); }
  .pathway-map,
  .featured-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .hero { min-height: 78svh; padding: 3.8rem 0 4rem; }
  .hero-content { grid-template-columns: 1fr; align-items: start; }
  .hero-portrait { width: 8.8rem; height: 12.5rem; }
  h1 { font-size: clamp(2.05rem, 9.5vw, 2.85rem); }
  h1 span { white-space: nowrap; }
  .section-heading { display: block; }
  .pathway-map,
  .featured-grid { grid-template-columns: 1fr; }
  .ticker-item { width: clamp(16rem, 80vw, 28rem); }
  .ticker-item-md,
  .ticker-item-lg,
  .ticker-item-xl { width: clamp(18rem, 86vw, 34rem); }
  .site-footer { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 380px) {
  h1 { font-size: 2rem; }
  .nav a { padding-inline: .55rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { flex-wrap: wrap; width: auto; }
  .ticker-item { white-space: normal; width: auto; }
}









