:root {
  --navy: #0b2c3a;
  --navy-2: #123847;
  --ink: #14202a;
  --teal: #1d6f78;
  --teal-2: #2a8a93;
  --gold: #c6a15b;
  --gold-2: #e0c48a;
  --cream: #f6f1e6;
  --ivory: #fbf8f2;
  --paper: #ffffff;
  --muted: #5d6b74;
  --line: rgba(11, 44, 58, 0.1);
  --shadow: 0 18px 50px rgba(11, 44, 58, 0.12);
  --radius: 18px;
  --sans: "Source Sans 3", "Segoe UI", sans-serif;
  --serif: "Cormorant Garamond", Georgia, serif;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--ivory);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 0.6rem;
  color: var(--navy);
}

p { margin: 0 0 1rem; }

.container {
  width: min(1160px, calc(100% - 2rem));
  margin-left: auto;
  margin-right: auto;
}

.container-wide {
  width: min(1280px, calc(100% - 2rem));
  margin-left: auto;
  margin-right: auto;
}

.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }
.gap-10 { gap: var(--space-10); }
.grid { display: grid; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-6); }
.hidden { display: none; }
.w-full { width: 100%; }
.min-w-0 { min-width: 0; }
.relative { position: relative; }
.overflow-hidden { overflow: hidden; }

.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.py-8 { padding-top: var(--space-8); padding-bottom: var(--space-8); }
.py-12 { padding-top: var(--space-12); padding-bottom: var(--space-12); }
.py-16 { padding-top: var(--space-16); padding-bottom: var(--space-16); }
.py-20 { padding-top: var(--space-20); padding-bottom: var(--space-20); }
.px-4 { padding-left: var(--space-4); padding-right: var(--space-4); }
.px-6 { padding-left: var(--space-6); padding-right: var(--space-6); }
.p-4 { padding: var(--space-4); }
.p-6 { padding: var(--space-6); }
.p-8 { padding: var(--space-8); }

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-sm { font-size: 0.9rem; }
.text-xs { font-size: 0.78rem; letter-spacing: 0.04em; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.35rem; }
.text-muted { color: var(--muted); }
.text-gold { color: var(--gold); }
.text-teal { color: var(--teal); }
.text-white { color: #fff; }
.font-semibold { font-weight: 600; }
.uppercase { text-transform: uppercase; }
.tracking { letter-spacing: 0.16em; }
.serif { font-family: var(--serif); }
.max-prose { max-width: 42rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

.bg-navy { background: var(--navy); color: #fff; }
.bg-cream { background: var(--cream); }
.bg-ivory { background: var(--ivory); }
.bg-paper { background: var(--paper); }
.bg-teal { background: var(--teal); color: #fff; }

.rounded { border-radius: var(--radius); }
.rounded-full { border-radius: 999px; }
.shadow { box-shadow: var(--shadow); }
.border { border: 1px solid var(--line); }
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(11, 44, 58, 0.06);
  overflow: hidden;
}

.kicker {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.lead {
  font-size: 1.15rem;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 0.85rem 1.35rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

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

.btn-gold {
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  color: var(--navy);
  box-shadow: 0 8px 20px rgba(198, 161, 91, 0.35);
}

.btn-navy {
  background: var(--navy);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--line);
}

.btn-sm { padding: 0.5rem 0.95rem; font-size: 0.9rem; }
.btn-danger { background: #8b2e2e; color: #fff; }

.topbar {
  background: var(--navy);
  color: rgba(255,255,255,0.82);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.topbar a:hover { color: var(--gold-2); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(251, 248, 242, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--navy), var(--teal));
  color: var(--gold-2);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 700;
  border: 1px solid rgba(198, 161, 91, 0.45);
}

.brand-name {
  display: block;
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.1;
  color: var(--navy);
}

.brand-sub {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.nav a {
  font-size: 0.95rem;
  color: var(--navy-2);
  position: relative;
}

.nav a:hover,
.nav a.is-active {
  color: var(--teal);
}

.nav a.btn {
  color: #fff;
}

.nav a.btn::after {
  display: none;
}

.nav a.btn:hover {
  color: #fff;
}

.nav a.is-active::after,
.nav a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  background: var(--gold);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.45rem 0.6rem;
}

.hero {
  position: relative;
  min-height: 88vh;
  color: #fff;
  display: grid;
  align-items: end;
  overflow: hidden;
}

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

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 22, 30, 0.88) 0%, rgba(7, 22, 30, 0.55) 48%, rgba(7, 22, 30, 0.28) 100%),
    linear-gradient(180deg, rgba(7, 22, 30, 0.15), rgba(7, 22, 30, 0.72));
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 8rem 0 5.5rem;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.6rem, 6vw, 4.7rem);
  max-width: 14ch;
}

.hero .lead {
  color: rgba(255,255,255,0.82);
  max-width: 38rem;
}

.hero-frame {
  position: absolute;
  inset: 1.25rem;
  border: 1px solid rgba(224, 196, 138, 0.28);
  pointer-events: none;
  z-index: 1;
}

.chip-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chip {
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  font-size: 0.82rem;
}

.stats {
  margin-top: -3.2rem;
  position: relative;
  z-index: 2;
}

.stat-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.stat-card strong {
  display: block;
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--navy);
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.photo-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.person-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--cream);
}

.badge {
  display: inline-block;
  background: rgba(29, 111, 120, 0.1);
  color: var(--teal);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
}

.table-wrap { overflow-x: auto; }
table.data {
  width: 100%;
  border-collapse: collapse;
}

table.data th,
table.data td {
  text-align: left;
  padding: 0.85rem 0.75rem;
  border-bottom: 1px solid var(--line);
}

table.data th {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

table.data td.num { text-align: right; font-variant-numeric: tabular-nums; }
table.data th.num { text-align: right; }

.progress {
  height: 8px;
  background: rgba(11, 44, 58, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.progress > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--gold));
}

.page-hero {
  background:
    linear-gradient(120deg, rgba(11,44,58,0.92), rgba(29,111,120,0.78)),
    url("/img/hero.svg") center/cover;
  color: #fff;
  padding: 5.5rem 0 4rem;
}

.page-hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.4rem); }
.page-hero p { color: rgba(255,255,255,0.82); max-width: 40rem; }

.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.78);
  padding: 3.5rem 0 1.5rem;
}

.site-footer h3 { color: #fff; }
.site-footer a:hover { color: var(--gold-2); }

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-chip {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  cursor: pointer;
  color: var(--navy);
}

.filter-chip.is-active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-grid .span-2 { grid-column: span 2; }

label.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
}

input, select, textarea {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
  background: #fff;
  color: var(--ink);
}

textarea { min-height: 110px; resize: vertical; }

.admin-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

.admin-side {
  background: var(--navy);
  color: rgba(255,255,255,0.82);
  padding: 1.5rem 1rem;
}

.admin-side a,
.admin-side button.linkish {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: inherit;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  cursor: pointer;
}

.admin-side a.is-active,
.admin-side button.linkish.is-active,
.admin-side a:hover,
.admin-side button.linkish:hover {
  background: rgba(255,255,255,0.08);
  color: var(--gold-2);
}

.admin-main { padding: 1.5rem; }

.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 20% 20%, rgba(198,161,91,0.18), transparent 40%),
    var(--navy);
}

.login-card {
  width: min(420px, calc(100% - 2rem));
  background: var(--ivory);
  border-radius: 24px;
  padding: 2rem;
}

.alert {
  background: #f6e4e4;
  color: #7a2424;
  border-radius: 12px;
  padding: 0.7rem 0.9rem;
  margin-bottom: 1rem;
}

@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .admin-shell { grid-template-columns: 1fr; }
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--ivory);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    border-bottom: 1px solid var(--line);
    gap: 0.4rem;
  }
  .nav.open { display: flex; }
  .nav a.is-active::after, .nav a:hover::after { display: none; }
  .hero { min-height: 78vh; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: auto; }
}
