:root {
  --red: #cc0000;
  --red-dark: #8f0d14;
  --ink: #18202a;
  --muted: #586273;
  --line: #d9dee6;
  --paper: #ffffff;
  --wash: #f5f7f4;
  --teal: #2f6f73;
  --gold: #c3912e;
  --max: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

a { color: var(--red-dark); text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }
a:hover { color: var(--red); }

img { display: block; max-width: 100%; height: auto; }
body.lightbox-open { overflow: hidden; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 0.7rem 1rem;
  border-radius: 6px;
}

.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.8rem clamp(1rem, 4vw, 3rem);
  border-bottom: 1px solid rgba(24, 32, 42, 0.1);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(24, 32, 42, 0.16);
  border-radius: 50%;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(24, 32, 42, 0.1);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  padding: 0.12rem;
  object-fit: contain;
}

.brand-text { display: grid; line-height: 1.15; }
.brand-text small { color: var(--muted); }

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(0.6rem, 1.8vw, 1.25rem);
  font-size: 0.95rem;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}

.site-nav a.active,
.site-nav a:hover {
  color: var(--red-dark);
  border-color: var(--red);
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  place-items: center;
  padding: 0.6rem;
}

.nav-toggle span {
  display: block;
  width: 1.2rem;
  height: 2px;
  background: var(--ink);
  margin: 3px auto;
}

.hero {
  position: relative;
  min-height: min(78vh, 760px);
  display: grid;
  align-items: end;
  padding: clamp(6rem, 12vw, 11rem) clamp(1rem, 5vw, 4rem) clamp(3rem, 7vw, 6rem);
  isolation: isolate;
  overflow: hidden;
  background: var(--ink);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  filter: saturate(0.95);
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(10, 14, 20, 0.88), rgba(10, 14, 20, 0.54), rgba(10, 14, 20, 0.2));
}

.hero-content {
  width: min(760px, 100%);
  max-width: 100%;
  color: #fff;
}

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

.hero h1,
.page-hero h1,
.section-heading h2 {
  margin: 0;
  line-height: 1.08;
}

.hero h1 {
  font-size: clamp(3.2rem, 9vw, 6.8rem);
  max-width: 11ch;
}

.hero p:not(.eyebrow) {
  max-width: 720px;
  margin: 1.4rem 0 0;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.7rem 1.05rem;
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
}

.button.primary { color: white; background: var(--red); }
.button.secondary { color: white; border: 1px solid rgba(255, 255, 255, 0.55); }

.overview-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.metric {
  background: var(--wash);
  padding: clamp(1.2rem, 3vw, 2rem);
  text-align: center;
}

.metric strong {
  display: block;
  color: var(--red-dark);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1;
}

.metric span { color: var(--muted); font-weight: 700; }

.content-section,
.page-shell {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1rem, 4vw, 2rem);
}

.content-section.muted {
  max-width: none;
  background: var(--wash);
}

.content-section.muted > * {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.section-heading h2 {
  max-width: 690px;
  font-size: clamp(2rem, 4vw, 3.1rem);
}

.section-heading a {
  flex: 0 0 auto;
  font-weight: 800;
}

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

.topic-card,
.news-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.topic-card {
  padding: 1.25rem;
  border-top: 4px solid var(--teal);
}

.topic-card h3,
.news-card h3 {
  margin: 0 0 0.55rem;
  line-height: 1.22;
}

.topic-card p,
.news-card p { margin: 0; color: var(--muted); }

.news-card {
  display: grid;
  grid-template-rows: auto 1fr;
}

.news-card > div { padding: 1rem; }

.news-card time,
.post-head time {
  display: inline-block;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
  margin-bottom: 0.45rem;
}

.news-thumb {
  display: block;
  aspect-ratio: 4 / 3;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  overflow: hidden;
}

.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
}

.news-card:hover .news-thumb img { transform: scale(1.03); }

.news-thumb-fallback {
  display: grid;
  place-items: center;
  background: var(--teal);
}

.news-thumb-fallback span { font-size: 3rem; font-weight: 900; }

.page-hero {
  background: var(--ink);
  color: #fff;
  padding: clamp(4rem, 10vw, 7rem) clamp(1rem, 5vw, 4rem) clamp(2.5rem, 6vw, 4rem);
}

.page-hero.compact h1 {
  max-width: 900px;
  font-size: clamp(2.45rem, 6vw, 5rem);
}

.page-hero.compact p:not(.eyebrow) {
  max-width: 780px;
  margin: 1rem 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.08rem;
}

.wordpress-content {
  max-width: 880px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.wordpress-content h2,
.wordpress-content h3 {
  clear: both;
  margin: 2.2rem 0 0.7rem;
  line-height: 1.2;
}

.wordpress-content h2 {
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  font-size: clamp(1.7rem, 3vw, 2.25rem);
}

.wordpress-content h3 { font-size: 1.35rem; }
.wordpress-content p { margin: 0 0 1rem; }
.wordpress-content ul,
.wordpress-content ol { padding-left: 1.25rem; }
.wordpress-content li + li { margin-top: 0.4rem; }

.wordpress-content figure {
  margin: 1.5rem 0;
}

.wordpress-content figure img {
  border-radius: 8px;
  border: 1px solid var(--line);
}

.team-layout {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 4vw, 2rem) clamp(4rem, 7vw, 6rem);
}

.team-group-photo {
  margin: 0 0 clamp(2rem, 5vw, 3.5rem);
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--wash);
}

.team-group-photo img {
  width: 100%;
  max-height: 620px;
  object-fit: cover;
}

.team-photo-link {
  display: block;
  cursor: zoom-in;
}

.team-photo-link img {
  transition: transform 180ms ease;
}

.team-photo-link:hover img,
.team-photo-link:focus-visible img {
  transform: scale(1.03);
}

.team-photo-link:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

.team-section {
  padding-top: clamp(1.5rem, 4vw, 2.5rem);
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
  border-top: 1px solid var(--line);
}

.team-section h2 {
  margin: 0 0 1.25rem;
  color: var(--red-dark);
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.15;
}

.pi-card {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(1.25rem, 4vw, 2.5rem);
  align-items: center;
  max-width: 820px;
  padding: clamp(1rem, 3vw, 1.5rem);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--wash);
}

.pi-card img {
  width: 240px;
  height: 240px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
}

.pi-photo-link {
  width: 240px;
  height: 240px;
}

.pi-photo-link img {
  width: 100%;
  height: 100%;
}

.pi-card h3,
.member-card h3 {
  margin: 0;
  line-height: 1.18;
}

.pi-title {
  margin: 0.35rem 0 0.9rem;
  color: var(--muted);
  font-weight: 800;
}

.member-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 1.5rem);
}

.member-card {
  min-height: 100%;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.member-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--wash);
  margin-bottom: 0.9rem;
}

.member-photo-link {
  margin-bottom: 0.9rem;
}

.member-photo-link img {
  margin-bottom: 0;
}

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

.member-card .member-email {
  display: inline-block;
  margin-top: 0.35rem;
  overflow-wrap: anywhere;
  font-weight: 700;
}

.member-note a { font-weight: 700; }

.empty-team-row {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.alumni-list {
  display: grid;
  gap: 1rem;
}

.alumni-year {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--wash);
}

.alumni-year h3 {
  margin: 0;
  color: var(--red-dark);
  font-size: 1.4rem;
}

.alumni-year ul {
  display: grid;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.alumni-year li {
  display: grid;
  gap: 0.1rem;
}

.alumni-year span {
  color: var(--muted);
}

.photo-gallery {
  max-width: var(--max);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.photo-gallery figure {
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--wash);
}

.photo-gallery a {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  cursor: zoom-in;
}

.photo-gallery a::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.36));
  transition: opacity 160ms ease;
}

.photo-gallery a:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

.photo-gallery a:hover::after,
.photo-gallery a:focus-visible::after {
  opacity: 1;
}

.photo-gallery figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
  border-radius: 0;
  transition: transform 180ms ease;
}

.photo-gallery a:hover img,
.photo-gallery a:focus-visible img {
  transform: scale(1.035);
}

.photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(10, 16, 26, 0.9);
}

.photo-lightbox.open {
  display: flex;
}

.photo-lightbox img {
  width: auto;
  max-width: 100%;
  max-height: 86vh;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

.photo-lightbox-close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  min-height: 2.75rem;
  padding: 0 1rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
}

.photo-lightbox-close:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.news-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.news-list .news-card {
  grid-template-columns: minmax(160px, 0.45fr) 1fr;
  grid-template-rows: none;
}

.post-content {
  font-size: 1.09rem;
}

.post-content figure img {
  margin-inline: auto;
}

.back-link {
  max-width: 880px;
  margin: 2rem auto 0;
  font-weight: 800;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem clamp(1rem, 4vw, 3rem);
  background: #111820;
  color: rgba(255, 255, 255, 0.82);
}

.site-footer p { margin: 0.35rem 0 0; }
.site-footer a { color: #fff; margin-left: 1rem; font-weight: 700; }
.site-footer .visitor-tracker {
  flex: 0 0 180px;
  align-self: center;
  width: 180px;
  min-height: 114px;
  margin-left: 0;
}
.site-footer .visitor-tracker a {
  margin-left: 0;
}

@media (max-width: 980px) {
  .nav-toggle { display: grid; }
  .site-nav {
    position: absolute;
    inset: 100% 1rem auto 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(24, 32, 42, 0.16);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 0.7rem 0.8rem; }
  .topic-grid,
  .news-grid,
  .news-list,
  .photo-gallery,
  .member-grid { grid-template-columns: 1fr 1fr; }
  .news-list .news-card { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .brand-text small { display: none; }
  .hero { min-height: 680px; align-items: end; }
  .hero-shade { background: rgba(10, 14, 20, 0.72); }
  .hero h1 {
    font-size: 3.35rem;
    max-width: 100%;
  }
  .hero p:not(.eyebrow) {
    max-width: 100%;
    font-size: 1rem;
  }
  .overview-band,
  .topic-grid,
  .news-grid,
  .news-list,
  .photo-gallery,
  .member-grid { grid-template-columns: 1fr; }
  .section-heading { display: block; }
  .section-heading a { display: inline-block; margin-top: 0.8rem; }
  .pi-card { grid-template-columns: 1fr; }
  .pi-photo-link { width: 100%; height: auto; aspect-ratio: 1 / 1; }
  .pi-card img { width: 100%; height: auto; aspect-ratio: 1 / 1; }
  .alumni-year { grid-template-columns: 1fr; }
  .site-footer { display: block; }
  .site-footer a { display: block; margin: 0.65rem 0 0; }
  .site-footer .visitor-tracker { margin-top: 1rem; }
}
