:root {
  --ink: #17211d;
  --muted: #66736c;
  --line: #d9e3dd;
  --paper: #ffffff;
  --soft: #f4f8f5;
  --green: #1f6b4a;
  --green-2: #0f4f3a;
  --blue: #234e70;
  --amber: #b7791f;
  --danger: #7c2d12;
  --shadow: 0 18px 45px rgba(28, 52, 41, 0.12);
}

* {
  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.55;
  background: var(--soft);
  letter-spacing: 0;
}

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

a {
  color: var(--green-2);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(217, 227, 221, 0.86);
  backdrop-filter: blur(14px);
}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  min-width: 220px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--green), var(--blue));
  border-radius: 8px;
}

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

.brand strong {
  font-size: 15px;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.main-nav a {
  color: #34443c;
  text-decoration: none;
  font-size: 14px;
  font-weight: 650;
  padding: 8px 10px;
  border-radius: 8px;
}

.main-nav a:hover,
.main-nav a:focus,
.main-nav a[aria-current="true"] {
  background: #e9f1ec;
  color: var(--green-2);
}

.hero {
  position: relative;
  min-height: 680px;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #10251d;
}

.hero-media,
.hero-media img,
.hero-overlay {
  position: absolute;
  inset: 0;
}

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

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(13, 27, 23, 0.88), rgba(13, 27, 23, 0.58) 48%, rgba(13, 27, 23, 0.2)),
    linear-gradient(180deg, rgba(13, 27, 23, 0.15), rgba(13, 27, 23, 0.8));
}

.hero-content {
  position: relative;
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  padding: 110px 20px 168px;
  color: #fff;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--amber);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hero .eyebrow {
  color: #ffd27b;
}

.hero h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(42px, 6.2vw, 76px);
  line-height: 1.03;
  letter-spacing: 0;
}

.lead {
  max-width: 780px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(18px, 2vw, 22px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.primary-link,
.secondary-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 11px 16px;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}

.primary-link {
  color: #10251d;
  background: #f4c45b;
}

.secondary-link {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.08);
}

.hero-facts {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(1180px, calc(100% - 40px));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
}

.hero-facts div {
  padding: 18px 20px;
  border-right: 1px solid var(--line);
}

.hero-facts div:last-child {
  border-right: 0;
}

.hero-facts strong {
  display: block;
  color: var(--green-2);
  font-size: 26px;
  line-height: 1;
}

.hero-facts span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 86px 20px;
}

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

.band > * {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.intro-strip {
  padding-top: 58px;
}

.section-head {
  max-width: 790px;
  margin-bottom: 28px;
}

.section-head.compact {
  margin-bottom: 18px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.1;
  letter-spacing: 0;
}

.section-head p:not(.eyebrow) {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.focus-grid,
.profile-grid,
.faculty-grid,
.facility-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.focus-grid article,
.profile-grid article,
.faculty-card,
.facility-grid article,
.publication-list article,
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-width: 0;
}

.focus-grid article,
.profile-grid article,
.facility-grid article {
  padding: 20px;
}

.focus-grid h3,
.profile-grid h3,
.faculty-card h3,
.panel h3,
.lab-copy h3,
.facility-grid span {
  margin: 0;
  line-height: 1.25;
}

.focus-grid p,
.profile-grid p,
.faculty-card p,
.facility-grid p,
.panel p,
.lab-copy p {
  color: var(--muted);
}

.split,
.quality-layout,
.curriculum-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 18px;
  align-items: start;
}

.split > *,
.quality-layout > *,
.curriculum-layout > *,
.lab-showcase > * {
  min-width: 0;
}

.panel {
  padding: 24px;
}

.highlight-panel {
  background: #123c2e;
  color: #fff;
  border-color: #123c2e;
}

.highlight-panel p {
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.mission-list,
.check-list {
  margin: 12px 0 0;
  padding-left: 21px;
  color: var(--muted);
}

.mission-list li,
.check-list li {
  margin: 0 0 10px;
}

.profile-grid {
  grid-template-columns: repeat(4, 1fr);
  margin-top: 18px;
}

.profile-grid span {
  display: block;
  color: var(--amber);
  font-weight: 900;
  margin-bottom: 14px;
}

.semester-list {
  display: grid;
  gap: 14px;
}

.semester-list article {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 80px;
  gap: 18px;
  align-items: start;
  padding: 18px;
  background: #f8fbf9;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.semester-list h3,
.semester-list ul {
  margin: 0;
}

.semester-list ul {
  padding-left: 18px;
  color: var(--muted);
}

.semester-list strong {
  justify-self: end;
  color: var(--blue);
}

.outcomes-panel {
  position: sticky;
  top: 86px;
}

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

.faculty-card {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 16px;
  padding: 14px;
  align-items: center;
}

.faculty-card img {
  width: 116px;
  height: 116px;
  object-fit: cover;
  border-radius: 8px;
  background: #e9f1ec;
}

.faculty-card p {
  margin: 8px 0 9px;
}

.faculty-card small {
  color: var(--blue);
  font-weight: 800;
}

.publication-list {
  display: grid;
  gap: 12px;
}

.publication-list article {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) 90px;
  gap: 16px;
  padding: 16px 18px;
  align-items: center;
}

.publication-list span {
  color: var(--amber);
  font-weight: 900;
}

.publication-list p {
  margin: 0;
}

.publication-list strong {
  color: var(--green-2);
}

.lab-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.lab-tab {
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #34443c;
  background: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.lab-tab.is-active {
  color: #fff;
  background: var(--green-2);
  border-color: var(--green-2);
}

.lab-showcase {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
  align-items: stretch;
}

.lab-showcase.is-hidden {
  display: none;
}

.lab-copy {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.lab-copy ul {
  margin: 14px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.lab-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
  min-height: 420px;
}

.lab-photos img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.lab-photos img:first-child {
  grid-row: 1 / 3;
}

.facility-grid {
  grid-template-columns: repeat(4, 1fr);
}

.facility-grid strong {
  display: block;
  color: var(--green-2);
  font-size: 28px;
  line-height: 1;
}

.facility-grid span {
  display: block;
  margin-top: 8px;
  font-weight: 850;
}

.contact-panel {
  background: #f8fbf9;
}

.panel,
.panel *,
.faculty-card,
.faculty-card *,
.publication-list article,
.publication-list article *,
.lab-copy,
.lab-copy * {
  overflow-wrap: anywhere;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 26px;
  padding: 32px 20px;
  color: rgba(255, 255, 255, 0.74);
  background: #10251d;
}

.site-footer > * {
  max-width: 560px;
}

.site-footer strong {
  color: #fff;
}

.site-footer p {
  margin: 5px 0 0;
}

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

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

  .hero {
    min-height: 720px;
  }

  .hero-content {
    padding-bottom: 210px;
  }

  .hero-facts {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-facts div:nth-child(2) {
    border-right: 0;
  }

  .focus-grid,
  .profile-grid,
  .faculty-grid,
  .facility-grid,
  .split,
  .quality-layout,
  .curriculum-layout,
  .lab-showcase {
    grid-template-columns: 1fr;
  }

  .outcomes-panel {
    position: static;
  }

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

@media (max-width: 640px) {
  .header-inner {
    padding: 10px 14px;
  }

  .main-nav {
    gap: 2px;
  }

  .main-nav a {
    font-size: 13px;
    padding: 7px 8px;
  }

  .hero {
    min-height: 760px;
  }

  .hero-content {
    padding: 88px 16px 246px;
  }

  .hero h1 {
    font-size: 39px;
  }

  .lead {
    font-size: 17px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-link,
  .secondary-link {
    justify-content: center;
  }

  .hero-facts {
    width: calc(100% - 24px);
  }

  .hero-facts div {
    padding: 14px;
  }

  .hero-facts strong {
    font-size: 22px;
  }

  .section {
    padding: 62px 16px;
  }

  .semester-list article,
  .publication-list article,
  .faculty-card {
    grid-template-columns: 1fr;
  }

  .semester-list strong,
  .publication-list strong {
    justify-self: start;
  }

  .faculty-card img {
    width: 100%;
    height: 260px;
  }

  .lab-photos {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, 220px);
    min-height: auto;
  }

  .lab-photos img:first-child {
    grid-row: auto;
  }

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

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