:root {
  --ink: #0a1520;
  --ink-soft: #1c2a39;
  --muted: #3f4d5d;
  --line: #d7dee7;
  --paper: #f7f9fb;
  --surface: #ffffff;
  --sky: #dceaf3;
  --sky-deep: #c5dbeb;
  --accent: #185978;
  --accent-hover: #0f4058;
  --focus: #2a7aa3;
  --radius: 12px;
  --shadow: 0 18px 50px rgba(10, 21, 32, 0.12);
  --max: 1120px;
  --prose: 720px;
  --font-sans: "Manrope", "Segoe UI", sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.65;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(197, 219, 235, 0.85), transparent 60%),
    radial-gradient(900px 500px at 0% 0%, rgba(220, 234, 243, 0.9), transparent 55%),
    linear-gradient(180deg, #eef3f7 0%, var(--paper) 38%, #f3f6f9 100%);
  min-height: 100vh;
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 0.2s var(--ease);
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0.75rem;
  background: var(--ink);
  color: white;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  z-index: 1000;
}

.skip-link:focus {
  left: 0.75rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(247, 249, 251, 0.9);
  border-bottom: 1px solid rgba(215, 222, 231, 0.95);
}

.nav-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

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

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(10, 21, 32, 0.1);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}

.brand-text span {
  font-size: 0.72rem;
  color: var(--muted);
  max-width: 18rem;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 10px;
  padding: 0.55rem 0.8rem;
  font: inherit;
  color: var(--ink);
  cursor: pointer;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.35rem;
  align-items: center;
  justify-content: flex-end;
}

.site-nav > a,
.nav-group > button {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 650;
  padding: 0.45rem 0.65rem;
  position: relative;
  white-space: nowrap;
  background: none;
  border: 0;
  font-family: inherit;
  cursor: pointer;
  border-radius: 8px;
}

.site-nav > a:hover,
.nav-group > button:hover,
.site-nav > a[aria-current="page"],
.nav-group.is-active > button {
  color: var(--ink);
  background: rgba(24, 89, 120, 0.07);
}

.nav-group {
  position: relative;
}

.nav-group > button {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-group > button::after {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  opacity: 0.7;
}

.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  min-width: 13.5rem;
  padding: 0.45rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  z-index: 60;
}

.nav-group.is-open > .nav-dropdown {
  display: grid;
  gap: 0.15rem;
}

.nav-dropdown a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
}

.nav-dropdown a:hover,
.nav-dropdown a[aria-current="page"] {
  color: var(--ink);
  background: rgba(24, 89, 120, 0.08);
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
}

.hero {
  padding: 4.5rem 0 3.25rem;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.25rem;
  align-items: center;
  min-height: min(78vh, 720px);
}

.hero-copy {
  max-width: 36rem;
  animation: rise 0.8s var(--ease) both;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 560;
  font-size: clamp(2.8rem, 6vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.hero-lead {
  margin: 1.25rem 0 0;
  color: var(--ink-soft);
  font-size: 1.14rem;
  max-width: 34rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 10px;
  padding: 0.78rem 1.15rem;
  font: inherit;
  font-weight: 650;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
}

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

.btn-primary {
  background: var(--ink);
  color: white;
}

.btn-primary:hover {
  background: #142333;
  color: white;
}

.btn-secondary {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}

.btn-secondary:hover {
  border-color: #b8c3d0;
  color: var(--ink);
}

.hero-visual {
  position: relative;
  animation: rise 0.9s var(--ease) 0.1s both;
}

.hero-panel {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  min-height: 420px;
  box-shadow: var(--shadow);
  background: #0e2433;
}

.hero-panel .hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  filter: saturate(0.92) contrast(1.05);
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(115deg, rgba(10, 21, 32, 0.55) 8%, rgba(10, 21, 32, 0.18) 48%, rgba(24, 89, 120, 0.28) 100%),
    linear-gradient(180deg, transparent 45%, rgba(10, 21, 32, 0.55) 100%);
}

.hero-panel .logo-mark {
  position: absolute;
  left: 8%;
  bottom: 10%;
  z-index: 2;
  width: min(42%, 190px);
  border-radius: 50%;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35), 0 0 0 4px rgba(255, 255, 255, 0.18);
  animation: float 5.5s ease-in-out infinite;
}

.hero-caption {
  position: absolute;
  right: 8%;
  top: 10%;
  z-index: 2;
  max-width: 12rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: right;
}

.section {
  padding: 2.75rem 0;
  animation: rise 0.7s var(--ease) both;
}

.section-header {
  max-width: 40rem;
  margin-bottom: 1.5rem;
}

.section-header h2,
.page-hero h1,
.doc h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 560;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
}

.section-header h2 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
}

.section-header p,
.page-hero p {
  margin: 0.75rem 0 0;
  color: var(--ink-soft);
}

.mission {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 2.5rem 0;
}

.mission p {
  max-width: 46rem;
  margin: 0;
  font-size: 1.18rem;
  color: var(--ink-soft);
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 1.5rem;
}

.link-row a {
  font-weight: 650;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.event-block {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: start;
}

.event-copy h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  color: var(--ink);
}

.event-copy p {
  margin: 0.55rem 0;
  color: var(--ink-soft);
}

.photo-stack {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0.75rem;
}

.photo-stack img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(10, 21, 32, 0.1);
}

.photo-stack img:first-child {
  grid-row: span 2;
  height: 100%;
  min-height: 250px;
}

.page-hero {
  padding: 3.25rem 0 1.5rem;
  max-width: 960px;
  animation: rise 0.7s var(--ease) both;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.doc-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, var(--prose));
  gap: 2rem;
  align-items: start;
}

.doc-toc {
  position: sticky;
  top: 5.5rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
}

.doc-toc h2 {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-family: var(--font-sans);
  font-weight: 700;
}

.doc-toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.2rem;
}

.doc-toc a {
  display: block;
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.35rem 0.45rem;
  border-radius: 7px;
}

.doc-toc a:hover,
.doc-toc a.is-active {
  color: var(--ink);
  background: rgba(24, 89, 120, 0.08);
}

.doc {
  max-width: var(--prose);
  padding-bottom: 2rem;
  animation: rise 0.75s var(--ease) 0.05s both;
}

.doc h2 {
  margin: 2.25rem 0 0.75rem;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  scroll-margin-top: 5.5rem;
}

.doc h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.05rem;
  color: var(--ink);
}

.doc p,
.doc li {
  color: var(--ink-soft);
}

.doc ul,
.doc ol {
  padding-left: 1.2rem;
}

.doc li + li {
  margin-top: 0.35rem;
}

.doc ol ol {
  list-style-type: lower-alpha;
  margin-top: 0.35rem;
}

.doc .article-label {
  margin: 2.5rem 0 0.25rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.doc .article-label + h2 {
  margin-top: 0.35rem;
}

.note {
  margin: 1.25rem 0;
  padding: 0.95rem 1.1rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  background: rgba(220, 234, 243, 0.55);
  border-radius: 10px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.note strong {
  color: var(--ink);
}

.leader-grid,
.award-list,
.doc-list {
  display: grid;
  gap: 0.85rem;
}

.leader-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.person,
.doc-item,
.award-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.person strong,
.award-item strong,
.doc-item a {
  display: block;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}

.person span,
.award-item span,
.doc-item span {
  color: var(--muted);
  font-size: 0.92rem;
}

.doc-item a:hover {
  color: var(--accent);
}

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 2rem;
  background: rgba(255, 255, 255, 0.65);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.25rem 2.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-inner a {
  color: var(--ink-soft);
  text-decoration: none;
}

.footer-inner a:hover {
  color: var(--accent);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@media (max-width: 980px) {
  .doc-layout {
    grid-template-columns: 1fr;
  }

  .doc-toc {
    position: static;
  }
}

@media (max-width: 900px) {
  .hero,
  .event-block {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 2.75rem;
  }

  .hero-panel {
    min-height: 300px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 0.5rem 0 0.25rem;
  }

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

  .nav-group > button,
  .site-nav > a {
    width: 100%;
    justify-content: space-between;
    text-align: left;
  }

  .nav-dropdown {
    position: static;
    display: none;
    box-shadow: none;
    border: 0;
    background: transparent;
    padding: 0.15rem 0 0.35rem 0.75rem;
    min-width: 0;
  }

  .nav-group.is-open > .nav-dropdown {
    display: grid;
  }

  .nav-wrap {
    flex-wrap: wrap;
  }
}

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