:root {
  --navy: #0b1f3a;
  --navy-2: #12345a;
  --teal: #246f68;
  --gold: #d6ad60;
  --gold-dark: #a97b2d;
  --ink: #172033;
  --muted: #5d6a7d;
  --line: #dbe3ec;
  --soft: #f4f7fa;
  --white: #ffffff;
  --shadow: 0 20px 60px rgba(11, 31, 58, 0.12);
  --shadow-soft: 0 12px 34px rgba(11, 31, 58, 0.08);
  --radius: 8px;
  --max: 1180px;
  --header-height: 82px;
  --section-space: 76px;
  --card-space: 20px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 28px);
  overflow-x: hidden;
}

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

body.nav-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }

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

h1, h2, h3 {
  margin: 0;
  color: var(--navy);
  line-height: 1.12;
  letter-spacing: 0;
}

h1 { font-size: clamp(3rem, 8vw, 5.8rem); }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { font-size: 1.05rem; }

.container {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

.section {
  padding: var(--section-space) 0;
  scroll-margin-top: calc(var(--header-height) + 28px);
}
.soft { background: var(--soft); }

.skip-link {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 100;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  background: var(--navy);
  color: var(--white);
  padding: 10px 14px;
  border-radius: var(--radius);
}

.skip-link:focus,
.skip-link:focus-visible {
  position: fixed;
  width: auto;
  height: auto;
  margin: 0;
  padding: 10px 14px;
  border: 0;
  overflow: visible;
  clip: auto;
  clip-path: none;
  white-space: normal;
}

:focus-visible {
  outline: 3px solid rgba(214, 173, 96, 0.9);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(219, 227, 236, 0.75);
  backdrop-filter: blur(18px);
}

.nav {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--navy);
  white-space: nowrap;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--navy);
  color: var(--gold);
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(11, 31, 58, 0.18);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 700;
}

.nav-menu a:not(.btn) {
  color: #2f3a4f;
  padding: 10px 9px;
  border-bottom: 2px solid transparent;
  border-radius: var(--radius);
}

.nav-menu a.active,
.nav-menu a:not(.btn):hover {
  color: var(--teal);
  border-color: var(--gold);
  background: rgba(36, 111, 104, 0.06);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--navy);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  line-height: 1.2;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn:hover { transform: translateY(-2px); }
.btn-small { min-height: 40px; padding: 10px 14px; }
.btn-gold { background: var(--gold); color: #111a2a; box-shadow: 0 12px 24px rgba(214, 173, 96, 0.25); }
.btn-gold:hover { background: #e1bb72; }
.btn-outline { border-color: rgba(255, 255, 255, 0.45); color: var(--white); }
.btn-outline:hover { background: rgba(255, 255, 255, 0.12); }
.btn-plain { color: var(--white); background: rgba(255, 255, 255, 0.1); }

.hero {
  min-height: min(780px, calc(100vh - var(--header-height)));
  padding: 58px 0;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(11, 31, 58, 0.97), rgba(18, 52, 90, 0.94) 58%, rgba(36, 111, 104, 0.9)),
    radial-gradient(circle at 80% 20%, rgba(214, 173, 96, 0.3), transparent 34%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.82fr);
  gap: 48px;
  align-items: center;
}

.eyebrow {
  color: var(--gold-dark);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.hero .eyebrow { color: var(--gold); }
.hero h1, .hero h2 { color: var(--white); }
.hero-role {
  margin-top: 12px;
  color: #dfe8f0;
  font-size: clamp(1.22rem, 3vw, 1.9rem);
  font-weight: 700;
}

.hero-text {
  max-width: 690px;
  margin-top: 22px;
  color: #d7e1ec;
  font-size: 1.12rem;
}

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

.chips span {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: #eef4f8;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.9rem;
  font-weight: 700;
}

.hero-visual {
  position: relative;
  min-height: 480px;
  display: grid;
  place-items: center;
}

.portrait-panel {
  margin: 0;
  justify-self: end;
  width: min(100%, 430px);
}

.portrait-frame {
  width: min(100%, 390px);
  aspect-ratio: 4 / 5;
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.26);
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 50% 18%;
}

.portrait-caption {
  width: min(100%, 360px);
  margin: -38px auto 0;
  position: relative;
  z-index: 2;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  background: rgba(7, 23, 44, 0.82);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(14px);
}

.portrait-caption strong,
.portrait-caption span {
  display: block;
}

.portrait-caption strong {
  color: var(--white);
  font-size: 1.15rem;
}

.portrait-caption span {
  margin-top: 4px;
  color: #d7e1ec;
  font-size: 0.92rem;
}

.portrait-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(14px);
  font-size: 0.9rem;
  font-weight: 800;
}

.badge-one { top: 42px; left: 0; }
.badge-two { right: 0; bottom: 150px; }

.center-card,
.orbit {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(16px);
}

.center-card {
  width: min(310px, 80vw);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 34px;
  border-radius: 50%;
}

.center-card strong { color: var(--white); font-size: 1.35rem; }
.center-card small { color: #d7e1ec; }

.orbit {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: var(--radius);
  color: var(--white);
  font-weight: 800;
}

.orbit-one { top: 40px; left: 38px; }
.orbit-two { right: 12px; top: 160px; }
.orbit-three { bottom: 42px; left: 70px; }

.icon {
  width: 26px;
  height: 26px;
  display: inline-flex;
  color: var(--teal);
  flex: 0 0 auto;
}

.hero .icon, .orbit .icon, .center-card .icon { color: var(--gold); }
.center-card .icon { width: 54px; height: 54px; }
.icon svg { width: 100%; height: 100%; stroke: currentColor; }

.section-heading {
  max-width: 760px;
  margin: 0 auto 32px;
  text-align: center;
}

.section-heading.left { margin-left: 0; text-align: left; }
.section-heading h2 { margin-top: 8px; }
.section-heading p:not(.eyebrow) { margin-top: 14px; font-size: 1.05rem; }
.note { padding-top: 12px; color: var(--teal); font-weight: 800; }

.feature-grid,
.project-grid,
.teaching-grid,
.pill-grid {
  display: grid;
  gap: var(--card-space);
  align-items: stretch;
  grid-auto-rows: 1fr;
}

.four { grid-template-columns: repeat(4, 1fr); }
.three { grid-template-columns: repeat(3, 1fr); }
.project-grid { grid-template-columns: repeat(3, 1fr); }
.project-grid { align-items: stretch; grid-auto-rows: 1fr; }
.teaching-grid { grid-template-columns: repeat(4, 1fr); }
.pill-grid { grid-template-columns: repeat(2, 1fr); }

.feature-card,
.project-card,
.teaching-grid article,
.pill-grid article,
.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  min-width: 0;
}

.feature-card,
.teaching-grid article,
.pill-grid article {
  height: 100%;
  padding: 20px;
}

.feature-card,
.teaching-grid article {
  display: flex;
  flex-direction: column;
}

.feature-card h3,
.teaching-grid h3,
.pill-grid h3 { margin-top: 12px; }

.feature-card p,
.teaching-grid p { margin-top: 10px; }

.project-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 340px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--teal));
  opacity: 0.86;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(214, 173, 96, 0.75);
  box-shadow: var(--shadow);
}

.project-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.project-card .icon {
  width: 44px;
  height: 44px;
  padding: 9px;
  border-radius: var(--radius);
  background: #eef7f6;
  color: var(--teal);
}

.status {
  flex: 0 0 auto;
  max-width: 48%;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eff8ef;
  color: #246236;
  font-size: 0.74rem;
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
}

.status.planned { background: #fff6e6; color: #805711; }
.project-card h3 { margin-top: 22px; }
.category { margin-top: 6px; color: var(--gold-dark); font-weight: 900; font-size: 0.9rem; }
.project-card p { margin-top: 12px; }
.project-card > p:not(.category):not(.future-url) { flex: 1 1 auto; }
.future-url { margin-top: 12px; font-size: 0.88rem; color: var(--teal); }
.project-card .btn { align-self: flex-start; }
.project-card .project-action {
  width: 100%;
  margin-top: 24px;
}
.project-action .icon {
  width: 18px;
  height: 18px;
  padding: 0;
  margin-left: 8px;
  background: transparent;
  color: currentColor;
}

.split {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: 40px;
  align-items: start;
}

.mission {
  background: var(--navy);
  padding: 68px 0;
}
.mission h2, .mission h3 { color: var(--white); }
.mission p { color: #d7e1ec; }
.mission-panel { color: var(--white); }
.mission .feature-card { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.18); }

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-card {
  padding: 28px;
  display: grid;
  gap: 18px;
}

.contact-line {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 800;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 6px;
}

.social-links a {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--teal);
  font-weight: 800;
}

.site-footer {
  background: #07172c;
  color: var(--white);
  padding: 58px 0 24px;
}

.site-footer p,
.site-footer a { color: #cbd7e4; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.75fr 1fr 0.75fr;
  gap: 34px;
}

.footer-grid h2 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 14px;
}

.footer-grid a:not(.brand) {
  display: block;
  margin-top: 10px;
}

.footer-brand { color: var(--white); margin-bottom: 14px; }
.footer-bottom { margin-top: 34px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.12); }

@media (max-width: 980px) {
  :root {
    --header-height: 76px;
    --section-space: 66px;
  }
  .nav { gap: 16px; }
  .brand span:last-child { max-width: 210px; overflow: hidden; text-overflow: ellipsis; }
  .hero-grid,
  .split,
  .contact-grid { grid-template-columns: 1fr; }
  .four,
  .three,
  .project-grid,
  .teaching-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-visual {
    min-height: auto;
    justify-self: center;
  }
  .portrait-panel { justify-self: center; margin-top: 8px; }
  .badge-one { left: 8px; }
  .badge-two { right: 8px; }
}

@media (max-width: 760px) {
  :root {
    --header-height: 72px;
    --section-space: 56px;
    --card-space: 14px;
  }
  html { scroll-padding-top: calc(var(--header-height) + 18px); }
  .container { width: min(100% - 28px, var(--max)); }
  .section {
    padding: var(--section-space) 0;
    scroll-margin-top: calc(var(--header-height) + 18px);
  }
  h1 { font-size: clamp(2.6rem, 14vw, 4rem); }
  h2 { font-size: clamp(1.8rem, 10vw, 2.5rem); }
  .brand { font-size: 0.98rem; }
  .brand-mark { width: 38px; height: 38px; }
  .nav-toggle { display: block; }
  .nav-menu {
    position: fixed;
    inset: calc(var(--header-height) + 8px) 14px auto 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
  }
  .nav-menu.open { display: flex; }
  .nav-menu a {
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .nav-menu a:not(.btn) { padding: 11px 12px; border-bottom: 0; }
  .nav-menu .btn { margin-top: 8px; }
  .hero { min-height: auto; padding: 44px 0 54px; }
  .hero-grid { gap: 30px; }
  .hero-text { font-size: 1rem; }
  .hero-actions .btn { width: 100%; }
  .chips { gap: 8px; }
  .chips span { font-size: 0.82rem; }
  .portrait-panel { width: min(100%, 360px); }
  .portrait-frame { width: min(100%, 320px); }
  .portrait-caption {
    width: min(100%, 300px);
    margin-top: -28px;
    padding: 14px;
  }
  .portrait-badge {
    position: static;
    width: min(100%, 300px);
    margin: 10px auto 0;
    justify-content: center;
  }
  .pill-grid,
  .four,
  .three,
  .project-grid,
  .teaching-grid,
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid { gap: 24px; }
  .project-card { min-height: auto; padding: 24px; }
  .project-top { align-items: center; }
  .status { max-width: 56%; }
  .contact-card { padding: 22px; }
  .contact-line { align-items: flex-start; overflow-wrap: anywhere; }
  .site-footer { padding-top: 44px; }
  .section-heading { margin-bottom: 24px; }
  .mission { padding: 54px 0; }
}

@media (max-width: 420px) {
  .hero-actions,
  .chips { margin-top: 22px; }
  .feature-card,
  .teaching-grid article,
  .pill-grid article,
  .project-card,
  .contact-card { padding: 20px; }
  .social-links a { width: 100%; text-align: center; }
}

@media print {
  html { scroll-padding-top: 0; }
  body { color: #111; background: #fff; }
  .site-header,
  .skip-link,
  .nav-toggle,
  .hero-actions,
  .social-links { display: none !important; }
  .section,
  .hero,
  .mission,
  .site-footer {
    padding: 24px 0 !important;
    min-height: 0 !important;
    background: #fff !important;
    color: #111 !important;
  }
  .container,
  .hero-grid,
  .split,
  .contact-grid,
  .feature-grid,
  .project-grid,
  .teaching-grid,
  .pill-grid,
  .footer-grid {
    display: block !important;
    width: 100% !important;
  }
  .feature-card,
  .project-card,
  .teaching-grid article,
  .pill-grid article,
  .contact-card {
    break-inside: avoid;
    page-break-inside: avoid;
    margin: 0 0 12px;
    box-shadow: none;
  }
  h1, h2, h3,
  .hero h1,
  .hero h2,
  .mission h2,
  .mission h3,
  .portrait-caption strong {
    color: #111 !important;
  }
  p,
  .hero-text,
  .hero-role,
  .mission p,
  .portrait-caption span {
    color: #333 !important;
  }
  .portrait-frame {
    width: 220px;
    box-shadow: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
