:root {
  --ucr-blue: #003da5;
  --ucr-blue-deep: #052b68;
  --ucr-blue-ink: #071b3f;
  --ucr-gold: #ffb81c;
  --ucr-gold-soft: #f8d78a;
  --rose: #b8322a;
  --leaf: #3e6f55;
  --paper: #fbf6e9;
  --paper-strong: #f1e7d3;
  --ink: #16243d;
  --muted: #5f6b7d;
  --line: rgba(22, 36, 61, 0.16);
  --white: #fffdfa;
  --shadow: 0 22px 70px rgba(8, 28, 68, 0.16);
  --radius: 8px;
  --font-display: "Newsreader", Georgia, serif;
  --font-body: "Work Sans", "Avenir Next", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(0, 61, 165, 0.045) 1px, transparent 1px) 0 0 / 72px 72px,
    var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

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

button {
  font: inherit;
}

.sr-only,
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  z-index: 1000;
  top: 1rem;
  left: 1rem;
  width: auto;
  height: auto;
  padding: 0.75rem 1rem;
  clip: auto;
  color: var(--white);
  background: var(--ucr-blue);
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  align-items: center;
  min-height: 70px;
  padding: 0.7rem clamp(1rem, 3vw, 2rem);
  border-bottom: 1px solid color-mix(in oklch, var(--ucr-blue) 16%, var(--white));
  background: color-mix(in oklch, var(--white) 90%, var(--paper));
  color: var(--ucr-blue-ink);
  box-shadow: 0 10px 30px rgba(5, 43, 104, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: max-content;
  color: var(--ucr-blue-ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--ucr-blue-deep);
  background: var(--ucr-gold);
  border: 2px solid color-mix(in oklch, var(--ucr-blue) 24%, var(--white));
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 720;
  line-height: 1;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1.02rem;
  line-height: 1.1;
  letter-spacing: 0;
}

.brand small {
  margin-top: 0.1rem;
  color: color-mix(in oklch, var(--ucr-blue) 58%, var(--muted));
  font-size: 0.72rem;
  line-height: 1.15;
}

.site-nav {
  display: flex;
  justify-content: flex-end;
  gap: 0.2rem;
  min-width: 0;
}

.site-nav a {
  padding: 0.58rem 0.62rem;
  color: color-mix(in oklch, var(--ucr-blue-ink) 78%, var(--muted));
  border-radius: 4px;
  font-size: clamp(0.72rem, 0.78vw, 0.88rem);
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.active {
  color: var(--ucr-blue);
  background: color-mix(in oklch, var(--ucr-blue) 8%, transparent);
}

.language-toggle {
  min-height: 44px;
  padding: 0.65rem 0.85rem;
  border: 1px solid color-mix(in oklch, var(--ucr-gold) 82%, var(--white));
  color: var(--ucr-blue-deep);
  background: var(--ucr-gold);
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.language-toggle:hover,
.language-toggle:focus-visible {
  color: var(--white);
  background: var(--rose);
}

.menu-button {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid color-mix(in oklch, var(--ucr-blue) 22%, var(--white));
  background: color-mix(in oklch, var(--ucr-blue) 7%, transparent);
  cursor: pointer;
}

.menu-button span:not(.sr-only) {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--ucr-blue-deep);
}

.hero {
  position: relative;
  min-height: clamp(560px, 70vh, 700px);
  overflow: hidden;
  background: var(--ucr-blue-deep);
  color: var(--white);
}

.hero-bg,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(5, 31, 76, 0.88) 0%, rgba(5, 31, 76, 0.76) 38%, rgba(5, 31, 76, 0.28) 67%, rgba(5, 31, 76, 0.02) 100%),
    linear-gradient(180deg, rgba(5, 31, 76, 0.08), rgba(5, 31, 76, 0.22));
}

.hero-inner {
  position: relative;
  display: grid;
  align-items: center;
  max-width: 1240px;
  min-height: inherit;
  margin: 0 auto;
  padding: clamp(4.2rem, 8vw, 6rem) clamp(1.25rem, 5vw, 3rem) clamp(2.6rem, 5vw, 4rem);
}

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

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--rose);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.hero .eyebrow,
.join-panel .eyebrow,
.contact-card .eyebrow {
  color: var(--ucr-gold);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 650;
  letter-spacing: 0;
  line-height: 0.98;
}

h1 {
  max-width: 740px;
  font-size: clamp(4.2rem, 9vw, 8.4rem);
}

h2 {
  max-width: 860px;
  font-size: clamp(2rem, 3.55vw, 3.85rem);
  line-height: 1.02;
}

h3 {
  font-size: clamp(1.45rem, 2.3vw, 2.15rem);
}

.hero-deck {
  margin: 0.2rem 0 0;
  color: var(--ucr-gold);
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 2.65rem);
  font-weight: 650;
  line-height: 1.06;
}

.hero-copy p:not(.eyebrow):not(.hero-deck) {
  max-width: 590px;
  margin: 1.1rem 0 0;
  color: color-mix(in oklch, var(--white) 86%, var(--ucr-gold));
  font-size: clamp(1.02rem, 1.25vw, 1.18rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.6rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.35rem;
  color: color-mix(in oklch, var(--white) 82%, var(--ucr-gold));
  font-size: 0.82rem;
  font-weight: 800;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0.35rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.05rem;
  border: 1px solid currentColor;
  border-radius: 4px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}

.button-primary {
  color: var(--ucr-blue-deep);
  background: var(--ucr-gold);
  border-color: var(--ucr-gold);
}

.button-primary:hover,
.button-primary:focus-visible {
  color: var(--white);
  background: var(--rose);
  border-color: var(--rose);
}

.button-secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.18);
}

.section {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 6.25rem) clamp(1.25rem, 5vw, 3rem);
}

.about-band {
  max-width: none;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.about-band > * {
  max-width: 1240px;
  margin-inline: auto;
}

.section-grid,
.split-heading {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(280px, 1fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}

.section-heading {
  margin-bottom: clamp(2rem, 5vw, 4rem);
}

.split-heading p {
  max-width: 540px;
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.rich-copy p {
  max-width: 700px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
}

.rich-copy p + p {
  margin-top: 1rem;
}

.profile-panel {
  display: grid;
  grid-template-columns: minmax(210px, 310px) minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
  margin-top: clamp(3rem, 6vw, 5rem);
  padding: clamp(1rem, 2vw, 1.5rem);
  border: 1px solid var(--line);
  background: color-mix(in oklch, var(--paper) 72%, var(--white));
}

.profile-panel img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 6px solid var(--white);
  box-shadow: var(--shadow);
}

.profile-panel p:not(.eyebrow) {
  margin: 1rem 0 0;
  color: var(--muted);
}

.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.inline-links a,
.resource-link {
  color: var(--ucr-blue);
  font-weight: 800;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.area-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}

.area-card {
  grid-column: span 2;
  min-height: 255px;
  padding: 1.15rem;
  border: 1px solid var(--line);
  background: var(--white);
}

.area-card:nth-child(1),
.area-card:nth-child(4) {
  grid-column: span 3;
}

.area-card span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 1.1rem;
  color: var(--ucr-blue-deep);
  background: var(--ucr-gold);
  font-weight: 900;
}

.area-card h3 {
  font-size: clamp(1.45rem, 2vw, 2rem);
}

.area-card p {
  margin: 0.8rem 0 0;
  color: var(--muted);
}

.members-section {
  max-width: none;
  background: color-mix(in oklch, var(--ucr-blue-deep) 93%, black);
  color: var(--white);
}

.members-section > * {
  max-width: 1240px;
  margin-inline: auto;
}

.members-section .split-heading p,
.members-section .member-card p,
.members-section .member-meta,
.members-section .member-interest {
  color: color-mix(in oklch, var(--white) 76%, var(--ucr-gold));
}

.member-group + .member-group {
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.group-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  padding-bottom: 0.7rem;
}

.group-title h3 {
  color: var(--white);
}

.group-title span {
  color: var(--ucr-gold);
  font-weight: 800;
}

.member-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.member-card {
  grid-column: span 4;
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.17);
  background: rgba(255, 255, 255, 0.055);
}

.member-card.pi-card {
  grid-column: span 12;
  grid-template-columns: minmax(210px, 320px) minmax(0, 1fr);
  grid-template-rows: none;
}

.member-photo,
.member-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: color-mix(in oklch, var(--ucr-blue) 66%, var(--ucr-blue-deep));
}

.pi-card .member-photo {
  height: 100%;
  aspect-ratio: auto;
}

.member-placeholder {
  display: grid;
  place-items: center;
  color: var(--ucr-blue-deep);
  background:
    linear-gradient(135deg, var(--ucr-gold), var(--paper-strong));
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 4.8rem);
  font-weight: 720;
}

.member-body {
  padding: 1rem;
}

.member-role {
  color: var(--ucr-gold);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.member-card h4 {
  margin: 0.35rem 0 0.5rem;
  color: var(--white);
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2vw, 1.95rem);
  font-weight: 650;
  line-height: 1;
}

.member-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.8rem;
  margin: 0.55rem 0 0;
  font-size: 0.84rem;
}

.member-meta a {
  color: var(--ucr-gold);
}

.member-card p {
  margin: 0.8rem 0 0;
}

.member-interest {
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.9rem;
}

.research-section {
  max-width: none;
  background: var(--white);
}

.research-section > * {
  max-width: 1240px;
  margin-inline: auto;
}

.research-tabs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.research-tabs button {
  min-height: 44px;
  min-width: max-content;
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--line);
  color: var(--ucr-blue-deep);
  background: var(--paper);
  border-radius: 4px;
  font-weight: 800;
  cursor: pointer;
}

.research-tabs button.active {
  color: var(--white);
  background: var(--ucr-blue);
  border-color: var(--ucr-blue);
}

.research-content {
  margin-top: 1.35rem;
}

.publication-list,
.presentation-list {
  display: grid;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.publication-list li,
.presentation-list li,
.project-card,
.poster-card,
.resource-card {
  border: 1px solid var(--line);
  background: var(--paper);
}

.publication-list li,
.presentation-list li {
  padding: 1rem;
}

.publication-list strong,
.presentation-list strong {
  display: block;
  color: var(--ink);
  font-weight: 800;
}

.publication-list span,
.presentation-list span {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
}

.poster-grid,
.project-grid,
.resource-grid,
.life-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.poster-card {
  grid-column: span 6;
  overflow: hidden;
}

.poster-card img,
.life-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.poster-card div,
.project-card,
.resource-card {
  padding: 1rem;
}

.poster-card h3,
.project-card h3,
.resource-card h3,
.life-card h3 {
  font-size: clamp(1.35rem, 2vw, 1.8rem);
}

.poster-card p,
.project-card p,
.resource-card p,
.life-card p {
  margin: 0.55rem 0 0;
  color: var(--muted);
}

.project-card {
  grid-column: span 4;
  min-height: 230px;
}

.project-card strong,
.resource-card strong {
  display: inline-block;
  margin-bottom: 0.7rem;
  color: var(--rose);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.life-card {
  grid-column: span 4;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
}

.life-card.feature {
  grid-column: span 8;
}

.life-card div {
  padding: 1rem;
}

.memorial {
  margin-top: clamp(2rem, 5vw, 4rem);
}

.memorial-card {
  display: grid;
  grid-template-columns: minmax(170px, 260px) minmax(0, 1fr);
  gap: clamp(1.2rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(1rem, 3vw, 2rem);
  border: 1px solid color-mix(in oklch, var(--rose) 42%, var(--line));
  background:
    linear-gradient(135deg, rgba(184, 50, 42, 0.08), rgba(255, 184, 28, 0.16)),
    var(--white);
}

.memorial-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 6px solid var(--white);
}

.memorial-card p {
  margin: 0.8rem 0 0;
  color: var(--muted);
}

.resources-section {
  max-width: none;
  background: color-mix(in oklch, var(--paper) 82%, var(--ucr-gold-soft));
}

.resources-section > * {
  max-width: 1240px;
  margin-inline: auto;
}

.resource-card {
  grid-column: span 4;
  min-height: 100%;
}

.resource-card ul {
  display: grid;
  gap: 0.55rem;
  margin: 0.8rem 0 0;
  padding: 0;
  list-style: none;
}

.resource-card li {
  padding-left: 0.95rem;
  border-left: 3px solid var(--ucr-gold);
}

.resource-card a {
  color: var(--ucr-blue);
  font-weight: 800;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.join-section {
  max-width: none;
  background: var(--ucr-blue-deep);
  color: var(--white);
}

.join-panel {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(280px, 0.68fr);
  gap: clamp(2rem, 6vw, 6rem);
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5rem) clamp(1.25rem, 5vw, 3rem);
}

.join-panel p:not(.eyebrow) {
  max-width: 680px;
  color: color-mix(in oklch, var(--white) 78%, var(--ucr-gold));
}

.join-steps {
  display: grid;
  gap: 0.85rem;
}

.join-step {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 0.8rem;
  align-items: start;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.07);
}

.join-step span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--ucr-blue-deep);
  background: var(--ucr-gold);
  font-weight: 900;
}

.join-step strong {
  display: block;
  color: var(--white);
}

.join-step p {
  margin: 0.3rem 0 0;
}

.contact-section {
  max-width: none;
  background: var(--ucr-blue-ink);
  color: var(--white);
}

.contact-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(260px, 0.55fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5rem) clamp(1.25rem, 5vw, 3rem);
}

.contact-card p {
  max-width: 650px;
  color: color-mix(in oklch, var(--white) 76%, var(--ucr-gold));
}

.contact-actions {
  display: grid;
  gap: 0.7rem;
  justify-items: start;
}

.contact-email {
  display: inline-flex;
  padding: 0.85rem 1rem;
  color: var(--ucr-blue-deep);
  background: var(--ucr-gold);
  border-radius: 4px;
  font-size: clamp(1.1rem, 2vw, 1.55rem);
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
}

.contact-actions span {
  color: color-mix(in oklch, var(--white) 72%, var(--ucr-gold));
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  justify-content: space-between;
  padding: 1rem clamp(1.25rem, 5vw, 3rem);
  color: color-mix(in oklch, var(--white) 72%, var(--ucr-gold));
  background: #041836;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 1160px) {
  .site-header {
    grid-template-columns: auto auto auto;
  }

  .menu-button {
    display: block;
    order: 2;
  }

  .language-toggle {
    order: 3;
  }

  .site-nav {
    position: fixed;
    inset: 70px 0 auto 0;
    display: none;
    flex-direction: column;
    max-height: calc(100vh - 70px);
    padding: 1rem;
    overflow: auto;
    background: var(--ucr-blue-deep);
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  }

  body.menu-open .site-nav {
    display: flex;
  }

  .site-nav a {
    color: color-mix(in oklch, var(--white) 88%, var(--ucr-gold));
    padding: 0.9rem 1rem;
    font-size: 1rem;
  }

  .site-nav a:hover,
  .site-nav a:focus-visible,
  .site-nav a.active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.12);
  }
}

@media (max-width: 900px) {
  .hero-inner,
  .section-grid,
  .split-heading,
  .profile-panel,
  .join-panel,
  .contact-card,
  .memorial-card,
  .member-card.pi-card {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    padding-top: 7rem;
  }

  .area-card,
  .area-card:nth-child(1),
  .area-card:nth-child(4),
  .member-card,
  .project-card,
  .poster-card,
  .life-card,
  .life-card.feature,
  .resource-card {
    grid-column: span 12;
  }

  .pi-card .member-photo {
    height: auto;
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 600px) {
  .site-header {
    min-height: 68px;
    gap: 0.55rem;
    padding-inline: 0.75rem;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    font-size: 1.35rem;
  }

  .brand strong {
    font-size: 0.92rem;
  }

  .brand small {
    display: none;
  }

  .language-toggle {
    min-height: 40px;
    max-width: 104px;
    padding-inline: 0.55rem;
    font-size: 0.72rem;
  }

  .menu-button {
    width: 42px;
    height: 42px;
  }

  .site-nav {
    inset-block-start: 68px;
  }

  h1 {
    font-size: clamp(3.05rem, 16vw, 4.2rem);
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(5, 31, 76, 0.98) 0%, rgba(5, 31, 76, 0.85) 58%, rgba(5, 31, 76, 0.35) 100%);
  }

  .hero-inner {
    padding-inline: 1rem;
  }

  .section,
  .join-panel,
  .contact-card {
    padding-inline: 1rem;
  }

  .group-title {
    align-items: start;
    flex-direction: column;
  }
}

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

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