:root {
  --ink: #20231e;
  --muted: #62685c;
  --paper: #fbfaf5;
  --panel: #ffffff;
  --mist: #edf1ea;
  --moss: #516b45;
  --cedar: #8c4f30;
  --river: #406b78;
  --line: #dce1d6;
  --shadow: 0 18px 50px rgba(31, 37, 25, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(251, 250, 245, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0;
  font-size: 1.02rem;
  color: var(--moss);
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav a {
  text-decoration: none;
}

.nav a:hover {
  color: var(--ink);
}

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(15, 22, 16, 0.74), rgba(15, 22, 16, 0.28) 58%, rgba(15, 22, 16, 0.08)),
    url("assets/images/hero-rudranath.jpg") center/cover;
}

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

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 22, 16, 0.76), rgba(15, 22, 16, 0.32) 58%, rgba(15, 22, 16, 0.12));
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 24vh;
  z-index: -1;
  background: linear-gradient(0deg, var(--paper), rgba(251, 250, 245, 0));
}

.hero-copy {
  width: min(760px, calc(100% - 36px));
  margin: 0 clamp(18px, 6vw, 80px) 14vh;
  color: white;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--cedar);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 0.78rem;
}

.hero .eyebrow {
  color: #f0d5b5;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0 0 18px;
  max-width: 780px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.2rem, 9vw, 7.5rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 1.03;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
  line-height: 1.25;
}

h3 a {
  color: inherit;
  text-decoration-color: var(--cedar);
  text-underline-offset: 3px;
}

.hero-copy p:not(.eyebrow) {
  max-width: 660px;
  margin: 0 0 28px;
  font-size: clamp(1.08rem, 2vw, 1.28rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  color: white;
  text-decoration: none;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.08);
}

.button.primary {
  background: var(--cedar);
  border-color: var(--cedar);
}

.button.dark {
  color: var(--ink);
  border-color: var(--line);
  background: var(--panel);
}

.section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(64px, 9vw, 112px) 0;
}

.band {
  width: 100%;
  max-width: none;
  padding-inline: max(18px, calc((100vw - 1180px) / 2));
  background: var(--mist);
}

.intro {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(280px, 1.2fr);
  gap: clamp(28px, 5vw, 72px);
}

.section-heading {
  max-width: 640px;
}

.rich-text {
  color: var(--muted);
  font-size: 1.08rem;
}

.rich-text p:first-child {
  margin-top: 0;
}

.home-feature {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(280px, 1fr);
  min-height: 560px;
  background: #1f2a22;
  color: white;
}

.feature-image {
  min-height: 420px;
  background-size: cover;
  background-position: center;
}

.feature-image.langurs {
  background-image: url("assets/images/langurs-forest.jpeg");
}

.feature-copy {
  align-self: center;
  padding: clamp(34px, 6vw, 84px);
}

.feature-copy .eyebrow {
  color: #f0d5b5;
}

.feature-copy h2 {
  max-width: 780px;
}

.feature-copy p:not(.eyebrow) {
  max-width: 660px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.08rem;
}

.documentary {
  display: grid;
  gap: 30px;
}

.video-feature {
  display: grid;
  grid-template-columns: minmax(320px, 1.15fr) minmax(260px, 0.85fr);
  gap: clamp(22px, 4vw, 48px);
  align-items: center;
}

.secondary-video {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.video-link {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 8px;
  background: #111;
  box-shadow: var(--shadow);
}

.video-link img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  opacity: 0.9;
  transition: transform 180ms ease, opacity 180ms ease;
}

.video-link:hover img {
  transform: scale(1.025);
  opacity: 1;
}

.play-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  background: rgba(140, 79, 48, 0.94);
  color: white;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.86rem;
}

.video-copy p {
  margin-top: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.dark-actions .button {
  border-color: var(--line);
}

.youtube-section {
  margin-top: 46px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.compact-heading {
  max-width: 760px;
}

.compact-heading h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.6rem, 3vw, 2.45rem);
  line-height: 1.08;
}

.youtube-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.youtube-card {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  min-height: 190px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  color: inherit;
  text-decoration: none;
  box-shadow: var(--shadow);
}

.youtube-thumb {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 8px;
  background: #111;
}

.youtube-thumb img {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
  opacity: 0.9;
  transition: transform 180ms ease, opacity 180ms ease;
}

.youtube-card:hover .youtube-thumb img {
  transform: scale(1.035);
  opacity: 1;
}

.youtube-thumb .play-mark {
  width: 62px;
  height: 62px;
  font-size: 0.72rem;
}

.youtube-copy {
  display: grid;
  gap: 8px;
}

.youtube-copy strong {
  color: var(--ink);
  font-size: 1.1rem;
  line-height: 1.2;
}

.youtube-copy span {
  color: var(--muted);
}

.publication-video-grid {
  grid-template-columns: minmax(0, 760px);
}

.leadership-list {
  display: grid;
  gap: 18px;
  margin-top: 34px;
}

.bio-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.bio-card.text-only {
  grid-template-columns: 1fr;
}

.bio-card img,
.person-card img {
  display: block;
  object-fit: cover;
  border-radius: 8px;
  margin: 0 auto 16px;
}

.bio-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  height: 280px;
}

.featured-bio img {
  aspect-ratio: 4 / 3;
  height: 260px;
}

.person-card img {
  width: min(230px, 100%);
  height: 260px;
}

.person-card img.portrait-face-top {
  object-position: center 18%;
}

.bio-card img.focus-low,
.person-card img.focus-low {
  object-position: center 78%;
}

.bio-card img.focus-elizabeth {
  object-position: 70% 44%;
}

.bio-card.featured-bio > img.fit-full-photo {
  object-fit: contain !important;
  object-position: center !important;
  background: #e7ece2;
}

.person-card img.focus-top {
  object-position: center 18%;
}

.bio-card p,
.muted {
  color: var(--muted);
}

.people-subsection {
  margin-top: 42px;
}

.people-subsection > h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  margin-bottom: 18px;
}

.people-grid,
.project-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.person-card,
.project-list article,
.contact-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.person-card img {
  max-height: 280px;
}

.person-card p,
.project-list p,
.site-list p {
  color: var(--muted);
}

.role {
  margin: 0 0 10px;
  color: var(--cedar) !important;
  font-weight: 800;
  font-size: 0.82rem;
  text-transform: uppercase;
}

.names-panel {
  margin-top: 18px;
  padding: 24px;
  border-left: 4px solid var(--moss);
  background: rgba(255, 255, 255, 0.58);
}

.names-panel p {
  max-width: 920px;
  color: var(--muted);
}

.alumni-cloud {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 18px;
  margin-top: 16px;
  padding: 16px 0 4px;
  border-top: 1px solid rgba(81, 107, 69, 0.28);
  border-bottom: 1px solid rgba(81, 107, 69, 0.18);
}

.alumni-cloud span {
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid rgba(81, 107, 69, 0.12);
  color: #4d5548;
  font-size: 0.9rem;
  line-height: 1.25;
}

.advisor-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.advisor-grid article {
  position: relative;
  min-height: 132px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(237, 241, 234, 0.76));
}

.advisor-grid article::before {
  content: "";
  display: block;
  width: 34px;
  height: 4px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: var(--cedar);
}

.advisor-grid h4 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 1.08rem;
}

.advisor-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}

.funding-grid article::before {
  background: var(--moss);
}

.funding-grid article {
  min-height: 150px;
}

.site-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 46px;
  margin-top: 34px;
}

.site-overview {
  max-width: 920px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.site-overview h3 {
  font-size: 1.25rem;
}

.site-overview p {
  color: var(--muted);
  font-size: 1.06rem;
}

.site-list article {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.site-photo-panel {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  grid-template-rows: repeat(2, minmax(140px, 190px));
  gap: 10px;
  margin-top: 24px;
}

.site-photo-panel img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 8px;
}

.site-photo-panel img:first-child {
  grid-row: span 2;
}

.research-intro {
  max-width: 860px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 1.12rem;
}

.research-groups {
  display: grid;
  gap: 18px;
  margin-top: 34px;
}

.research-group {
  display: grid;
  grid-template-columns: minmax(220px, 0.6fr) minmax(0, 1fr);
  gap: 24px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.research-group-header {
  padding-top: 4px;
}

.research-group-header h3 {
  margin: 0 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  line-height: 1.12;
}

.research-group-header p {
  margin: 0;
  color: var(--cedar);
  font-weight: 800;
  font-size: 0.9rem;
}

.research-projects {
  display: grid;
  gap: 14px;
}

.research-projects div {
  padding-top: 14px;
  border-top: 1px solid rgba(81, 107, 69, 0.2);
}

.research-projects div:first-child {
  padding-top: 0;
  border-top: 0;
}

.research-projects h4 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 1.02rem;
}

.research-projects p {
  margin: 0;
  color: var(--muted);
}

.research-projects strong {
  color: var(--cedar);
}

.publication-cards {
  display: grid;
  gap: 18px;
  margin-top: 34px;
}

.publication-card {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(300px, 0.72fr);
  gap: 24px;
  align-items: start;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.publication-card.text-only {
  grid-template-columns: 1fr;
}

.publication-copy h3 {
  margin-bottom: 10px;
}

.publication-copy p:not(.role) {
  margin: 0;
  color: var(--muted);
}

.pdf-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.pdf-actions a,
.pdf-preview summary {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--mist);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.pdf-actions a:first-child {
  background: var(--cedar);
  border-color: var(--cedar);
  color: #fff;
}

.pdf-preview {
  width: 100%;
}

.pdf-preview summary {
  width: fit-content;
  margin-bottom: 12px;
}

.pdf-preview iframe {
  width: 100%;
  height: 360px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.gallery {
  display: grid;
  gap: 24px;
  padding: clamp(64px, 9vw, 112px) clamp(18px, 4vw, 56px);
  background: #1f2a22;
  color: white;
}

.gallery .eyebrow {
  color: #f0d5b5;
}

.gallery-copy {
  max-width: 820px;
}

.gallery-copy p:not(.eyebrow) {
  max-width: 620px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1rem;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: minmax(96px, 8vw);
  grid-auto-flow: dense;
  gap: 12px;
}

.gallery-item {
  position: relative;
  min-height: 180px;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #111811;
  box-shadow: 0 18px 40px rgba(10, 15, 10, 0.24);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 220ms ease, filter 220ms ease;
}

.gallery-item:hover img {
  transform: scale(1.035);
  filter: saturate(1.04);
}

.tile-large {
  grid-column: span 3;
  grid-row: span 3;
}

.tile-wide {
  grid-column: span 3;
  grid-row: span 2;
}

.tile-tall {
  grid-column: span 2;
  grid-row: span 3;
}

.tile-standard {
  grid-column: span 2;
  grid-row: span 2;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(260px, 420px);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.contact-section p {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.08rem;
}

.contact-card {
  display: grid;
  gap: 14px;
}

.contact-card a {
  color: var(--river);
  font-weight: 800;
  text-decoration: none;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

@media (max-width: 880px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: 760px;
  }

  .intro,
  .home-feature,
  .video-feature,
  .youtube-card,
  .bio-card,
  .people-grid,
  .site-list,
  .project-list,
  .research-group,
  .publication-card,
  .gallery,
  .contact-section {
    grid-template-columns: 1fr;
  }

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

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

  .site-photo-panel {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, minmax(180px, 30vh));
  }

  .site-photo-panel img:first-child {
    grid-row: auto;
  }

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

  .featured-bio img {
    aspect-ratio: 16 / 10;
    height: min(320px, 46vw);
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .gallery-item,
  .tile-large,
  .tile-wide,
  .tile-tall,
  .tile-standard {
    grid-column: auto;
    grid-row: auto;
    min-height: min(320px, 58vw);
  }
}

@media (max-width: 560px) {
  .hero-copy {
    margin-bottom: 80px;
  }

  .site-footer {
    flex-direction: column;
  }

  .people-grid,
  .project-list {
    gap: 12px;
  }

  .research-group {
    padding: 20px;
  }
}

.bio-card.featured-bio > img {
  height: 260px !important;
  object-fit: cover !important;
}

@media (max-width: 880px) {
  .bio-card.featured-bio > img {
    height: min(300px, 44vw) !important;
  }
}
