/* HAI Lab — site styles (ARK Lab–inspired) */

:root {
  /* Theme entry point:
     - Default blue is active now.
     - To test the red theme, add class="theme-red" to the <body> tag.
     - To make a custom theme, adjust the RGB triples below. */
     /* default theme */
  /* --theme-primary-rgb: 26, 54, 93;
  --theme-primary-light-rgb: 44, 82, 130;
  --theme-accent-rgb: 197, 48, 48;
  --color-primary: #1a365d;
  --color-primary-light: #2c5282;
  --color-accent: #c53030; */

  /* red theme */
  --theme-primary-rgb: 130, 0, 16;
  --theme-primary-light-rgb: 166, 32, 48;
  --theme-accent-rgb: 130, 0, 16;
  --color-primary: rgb(var(--theme-primary-rgb));
  --color-primary-light: rgb(var(--theme-primary-light-rgb));
  --color-accent: rgb(var(--theme-accent-rgb));


  --color-text: #1a202c;
  --color-text-muted: #4a5568;
  --color-bg: #f7fafc;
  --color-card: #ffffff;
  --color-border: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.1);
  --radius: 12px;
  --max-width: 1180px;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* red theme */
body.theme-red {
  --theme-primary-rgb: 130, 0, 16;
  --theme-primary-light-rgb: 166, 32, 48;
  --theme-accent-rgb: 130, 0, 16;
  --color-primary: rgb(var(--theme-primary-rgb));
  --color-primary-light: rgb(var(--theme-primary-light-rgb));
  --color-accent: rgb(var(--theme-accent-rgb));
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.94rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
}

a {
  color: var(--color-primary-light);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

/* —— Header / Nav —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-card);
  box-shadow: var(--shadow-md);
}

.site-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.site-logo {
  font-weight: 700;
  font-size: 1.22rem;
  color: var(--color-primary);
  text-decoration: none;
}

.site-logo:hover {
  text-decoration: none;
  color: var(--color-accent);
}

.site-nav {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: block;
  padding: 0.5rem 1rem;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--color-text);
  border-radius: 8px;
  text-decoration: none;
}

.site-nav a:hover {
  background: var(--color-bg);
  color: var(--color-primary);
  text-decoration: none;
}

.site-nav a.active {
  background: #edf2f7;
  color: var(--color-primary);
  font-weight: 700;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-primary);
  padding: 0.25rem;
}

/* —— Layout —— */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4rem 0;
}

.section--alt {
  background: var(--color-card);
}

.section-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 0 1.5rem;
  line-height: 1.25;
}

.section-intro {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 820px;
  margin-bottom: 2rem;
}

/* —— Hero —— */
.hero {
  padding: 5rem 0 4rem;
  background: linear-gradient(165deg, #edf2f7 0%, #f7fafc 50%, #fff 100%);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 800;
  color: var(--color-primary);
  margin: 0 0 0.75rem;
  line-height: 1.15;
}

.hero__subtitle {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.hero__affiliation {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-block;
  padding: 0.65rem 1.35rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
  background: var(--color-primary-light);
  color: #fff;
}

.btn--outline {
  background: var(--color-card);
  color: var(--color-primary);
  border: 2px solid var(--color-border);
}

.btn--outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.hero__visual {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--color-border);
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.hero__placeholder {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  text-align: center;
  padding: 2rem;
}

/* —— Home landing hero —— */
.hero--cover {
  position: relative;
  min-height: calc(100vh - 64px);
  padding: 0;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #0b1220;
}

.hero__background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.01);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 10, 20, 0.88) 0%, rgba(5, 10, 20, 0.66) 42%, rgba(5, 10, 20, 0.22) 100%),
    linear-gradient(0deg, rgba(5, 10, 20, 0.35), rgba(5, 10, 20, 0.04));
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  padding-top: 5rem;
  padding-bottom: 5rem;
  margin-left: 15vw;
  margin-right: auto;
  margin-top: auto;
  margin-bottom: 12vw;
}

.hero--cover h1 {
  max-width: 800px;
  margin: 0 0 1.2rem;
  color: #fff;
  font-size: clamp(2.05rem, 4.8vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.hero--cover .hero__subtitle {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(0.92rem, 1.25vw, 1.05rem);
  line-height: 1.65;
}

.hero--cover .hero__affiliation {
  color: rgba(255, 255, 255, 0.74);
}

.hero__kicker {
  display: inline-flex;
  margin-bottom: 1.15rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.btn--glass {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

.btn--glass:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.72);
}

.research-overview {
  background:
    radial-gradient(circle at 12% 10%, rgba(var(--theme-primary-light-rgb), 0.11), transparent 28rem),
    linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.research-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.05rem;
}

.research-card {
  position: relative;
  min-height: 215px;
  padding: 1.25rem;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(226, 232, 240, 0.88);
  box-shadow: 0 18px 45px rgba(var(--theme-primary-rgb), 0.09);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.research-card:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--theme-primary-light-rgb), 0.28);
  box-shadow: 0 26px 56px rgba(var(--theme-primary-rgb), 0.14);
}

.research-card__index {
  display: inline-flex;
  width: 2.25rem;
  height: 2.25rem;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  border-radius: 50%;
  color: #fff;
  background: var(--color-primary);
  font-size: 0.78rem;
  font-weight: 800;
}

.research-card h3 {
  margin: 0 0 0.65rem;
  color: var(--color-primary);
  font-size: 1.08rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.research-card p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* Scroll reveal: JS adds .reveal-enabled, so content stays visible if JS fails. */
.reveal-enabled .reveal {
  opacity: 0;
  transform: translate3d(0, 34px, 0);
  transition:
    opacity 760ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 760ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.reveal-enabled .reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.reveal-enabled .research-card.reveal.is-visible:hover {
  transform: translateY(-4px);
}

.reveal-enabled .project-card.reveal.is-visible:hover {
  transform: translateY(-3px);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-enabled .reveal,
  .reveal-enabled .reveal.is-visible,
  .reveal-enabled .research-card.reveal.is-visible:hover,
  .reveal-enabled .project-card.reveal.is-visible:hover {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* —— Standalone content pages —— */
.page-hero {
  padding: 5rem 0 3.5rem;
  background:
    linear-gradient(135deg, rgba(var(--theme-primary-rgb), 0.94), rgba(var(--theme-primary-light-rgb), 0.82)),
    url("../../figs/home/home1.png") center / cover;
  color: #fff;
}

.page-hero h1 {
  max-width: 760px;
  margin: 0 0 1rem;
  color: #fff;
  font-size: clamp(1.8rem, 4.3vw, 2.85rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1rem;
}

.page-hero .section-label {
  color: #fed7d7;
}

.team-section h2 {
  color: var(--color-primary);
  margin: 0 0 1.6rem;
}

.member-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.3rem;
}

.member-card {
  display: block;
  color: var(--color-text);
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.member-card:hover {
  transform: translateY(-2px);
  color: var(--color-text);
  text-decoration: none;
  opacity: 0.92;
}

.member-card__photo {
  display: block;
  width: 100%;
  margin: 0 0 0.95rem;
  aspect-ratio: 1 / 1;
  border-radius: 0;
  object-fit: cover;
  object-position: center 30%;
  box-shadow: 0 10px 28px rgba(var(--theme-primary-rgb), 0.08);
}

.member-card__body {
  width: 100%;
  text-align: left;
}

.member-card h3 {
  margin: 0;
  color: #0f172a;
  font-size: 1.08rem;
  line-height: 1.25;
}

.member-card__role {
  margin: 0 0 0.35rem;
  color: #475569;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.member-card__bio {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

/* —— Member profile pages —— */
.member-profile-page {
  background: #fff;
}

.member-profile-hero {
  padding: 3.6rem 0;
  background:
    linear-gradient(135deg, rgba(var(--theme-primary-rgb), 0.96), rgba(15, 23, 42, 0.92)),
    url("../../figs/home/home1.png") center / cover;
  color: #fff;
}

.member-profile-panel {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 1.9rem;
  align-items: center;
  max-width: 980px;
  margin: 0 auto;
}

.member-profile-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 30%;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.28);
}

.member-profile-role {
  display: inline-block;
  margin: 0 0 0.5rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.member-profile-panel h1 {
  margin: 0 0 0.8rem;
  color: #fff;
  font-size: clamp(1.8rem, 3.3vw, 2.45rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.member-profile-bio {
  max-width: 700px;
  margin: 0 0 0.8rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.9rem;
  line-height: 1.68;
}

.member-profile-meta {
  display: grid;
  gap: 0.28rem;
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.86rem;
}

.member-profile-meta a {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.member-profile-meta a:hover {
  color: #fed7d7;
}

/* —— Cards —— */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}

.card-grid--topics {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.topic-card {
  background: var(--color-card);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.topic-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.topic-card h3 {
  font-size: 1.1rem;
  color: var(--color-primary);
  margin: 0 0 0.75rem;
}

.topic-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

/* —— Project cards —— */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.project-card {
  background: var(--color-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  text-decoration: none;
  color: inherit;
}

.project-card__image {
  aspect-ratio: 16 / 9;
  background: #edf2f7;
  overflow: hidden;
}

.project-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card__body {
  padding: 1rem 1.15rem 1.1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-card__title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 0 0.5rem;
  line-height: 1.35;
}

.project-card__venue {
  font-size: 0.85rem;
  color: var(--color-accent);
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.project-card__authors {
  font-size: 0.94rem;
  color: var(--color-text);
  font-weight: 600;
  line-height: 1.45;
  margin: 0 0 0.45rem;
}

.project-card__publication {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.45;
  margin: 0;
}

/* Projects page: use a readable one-project-per-row layout. */
.projects-page .project-grid {
  max-width: 1060px;
  margin: 0 auto;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}

.projects-page .project-card {
  display: grid;
  grid-template-columns: minmax(220px, 32%) minmax(0, 1fr);
  height: 220px;
}

.projects-page .project-card__image {
  aspect-ratio: auto;
  height: 100%;
}

.projects-page .project-card__body {
  justify-content: center;
  padding: 1.05rem 1.35rem;
}

.projects-page .project-card__title {
  font-size: clamp(0.92rem, 1.35vw, 1.05rem);
  color: #0f172a;
}

.projects-page .project-card__authors {
  max-width: 820px;
}

.projects-page .project-card__publication {
  max-width: 820px;
}

/* —— Teaching —— */
.teaching-layout {
  display: grid;
  gap: 1.35rem;
  max-width: 1040px;
  margin: 0 auto;
}

.teaching-block {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 1.55rem;
}

.teaching-block__header {
  margin-bottom: 1rem;
}

.teaching-block__header h2 {
  margin: 0;
  color: var(--color-primary);
  font-size: clamp(1.2rem, 2.2vw, 1.65rem);
  line-height: 1.2;
}

.course-card {
  position: relative;
  padding: 1.2rem;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(var(--theme-primary-rgb), 0.055), rgba(var(--theme-primary-light-rgb), 0.035)),
    #fff;
  border: 1px solid rgba(var(--theme-primary-rgb), 0.14);
}

.course-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 0.8rem;
}

.course-card__tag,
.course-card__code {
  display: inline-flex;
  align-items: center;
  min-height: 1.8rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.course-card__tag {
  color: #fff;
  background: var(--color-primary);
}

.course-card__code {
  color: var(--color-primary);
  background: rgba(var(--theme-primary-rgb), 0.09);
}

.course-card h3 {
  margin: 0 0 0.75rem;
  color: #0f172a;
  font-size: clamp(1.03rem, 1.85vw, 1.32rem);
  line-height: 1.25;
}

.course-card p {
  max-width: 780px;
  margin: 0;
  color: var(--color-text-muted);
}

.course-card__footer {
  margin-top: 1.15rem;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.empty-teaching-card {
  padding: 1.1rem 1.2rem;
  border: 1px dashed rgba(var(--theme-primary-rgb), 0.3);
  border-radius: 16px;
  color: var(--color-text-muted);
  background: #f8fafc;
}

/* —— People —— */
.people-grid {
  display: grid;
  gap: 2rem;
}

.person-card {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 1.45rem;
  align-items: center;
  background: var(--color-card);
  border-radius: var(--radius);
  padding: 1.55rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}

.person-card__photo {
  width: 170px;
  height: 170px;
  display: block;
  justify-self: center;
  align-self: center;
  border-radius: 50%;
  object-fit: cover;
  object-position: center center;
  box-shadow: var(--shadow-sm);
}

.person-card__photo--placeholder {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e2e8f0, #cbd5e0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-align: center;
  padding: 1rem;
}

.person-card h2,
.person-card h3 {
  margin: 0 0 0.25rem;
  font-size: 1.28rem;
  color: var(--color-primary);
  line-height: 1.2;
}

.person-card__role {
  font-weight: 600;
  color: var(--color-accent);
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
}

.person-card__bio {
  margin: 0 0 1rem;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.person-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.9rem;
}

.member-placeholder {
  background: var(--color-card);
  border: 2px dashed var(--color-border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* —— Prospective students —— */
.prose-block {
  background: var(--color-card);
  border-radius: var(--radius);
  padding: 1.55rem 1.75rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  margin-bottom: 1.5rem;
}

.prose-block h3 {
  color: var(--color-primary);
  margin: 1.5rem 0 0.75rem;
  font-size: 1.15rem;
}

.prose-block h3:first-child {
  margin-top: 0;
}

.prose-block p,
.prose-block ul {
  color: var(--color-text-muted);
  margin: 0 0 1rem;
}

.prose-block ul {
  padding-left: 1.25rem;
}

.prose-block li {
  margin-bottom: 0.35rem;
}

.highlight-box {
  background: #fff5f5;
  border-left: 4px solid var(--color-accent);
  padding: 0.85rem 1rem;
  margin: 1.15rem 0;
  border-radius: 0 8px 8px 0;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 1rem 0 0;
}

.benefits-block {
  margin-top: 1.5rem;
}

.benefit-card {
  background: #f8fafc;
  padding: 1rem;
  border-radius: var(--radius);
  box-shadow: none;
  border: 1px solid var(--color-border);
}

.benefit-card h3,
.benefit-card h4 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: var(--color-primary);
}

.benefit-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* —— Footer —— */
.site-footer {
  background: var(--color-primary);
  color: #e2e8f0;
  padding: 3rem 0 2rem;
  margin-top: 2rem;
}

.site-footer a {
  color: #bee3f8;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.site-footer h4 {
  color: #fff;
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.site-footer p,
.site-footer ul {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
}

.site-footer ul {
  list-style: none;
  padding: 0;
}

.site-footer li {
  margin-bottom: 0.35rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.5rem;
  font-size: 0.85rem;
  color: #a0aec0;
  text-align: center;
}

/* —— Responsive —— */
@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }

  .projects-page .project-card {
    grid-template-columns: minmax(210px, 40%) minmax(0, 1fr);
    height: 210px;
  }

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

  .person-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .person-card__photo,
  .person-card__photo--placeholder {
    margin: 0 auto;
  }

  .person-card__links {
    justify-content: center;
  }

  .member-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .member-profile-panel {
    grid-template-columns: 220px minmax(0, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--color-card);
    box-shadow: var(--shadow-md);
    padding: 0.5rem 1rem 1rem;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-header__inner {
    position: relative;
    flex-wrap: wrap;
  }

  .section {
    padding: 3rem 0;
  }

  .hero--cover {
    min-height: 760px;
  }

  .hero__overlay {
    background: linear-gradient(90deg, rgba(5, 10, 20, 0.9) 0%, rgba(5, 10, 20, 0.68) 100%);
  }

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

  .research-card {
    min-height: auto;
  }

  .member-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

  .member-profile-hero {
    padding: 2.6rem 0;
  }

  .member-profile-panel {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .member-profile-photo {
    max-width: 220px;
  }

  .benefits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .projects-page .project-grid {
    max-width: 680px;
  }

  .projects-page .project-card {
    grid-template-columns: 1fr;
    height: auto;
    min-height: auto;
  }

  .projects-page .project-card__image {
    aspect-ratio: 16 / 9;
    height: auto;
  }

  .projects-page .project-card__body {
    padding: 1rem 1.15rem 1.15rem;
  }
}

@media (max-width: 520px) {
  .site-logo {
    font-size: 1rem;
  }

  .hero--cover {
    min-height: 720px;
  }

  .hero__content {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .hero--cover h1 {
    font-size: clamp(1.9rem, 11.5vw, 3rem);
  }

  .hero__kicker {
    font-size: 0.72rem;
    letter-spacing: 0.04em;
  }

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

  .btn {
    width: 100%;
    max-width: 260px;
    text-align: center;
  }

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