:root {
  --bg: #0a1b43;
  --bg-deep: #061330;
  --surface: #142a5f;
  --surface-alt: #0f234f;
  --line: #4b5f8d;
  --text: #d1d5db;
  --muted: #d1d5db;
  --nav-text: #e5e7eb;
  --accent: #1e3a8a;
  --accent-strong: #1e40af;
  --radius: 14px;
  --shadow: 0 14px 30px rgba(3, 8, 24, 0.35);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  font-family: 'Instrument Sans', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 0%, #244a9b 0%, rgba(36, 74, 155, 0) 36%),
    radial-gradient(circle at 88% 20%, #1a3f8f 0%, rgba(26, 63, 143, 0) 32%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
}

html {
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

.container { width: min(1280px, 96vw); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: transparent;
  border-bottom: 0;
  backdrop-filter: blur(8px);
}

.nav-wrap {
  display: flex;
  gap: 14px;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  margin-top: 8px;
  margin-bottom: 8px;
  padding-left: 14px;
  padding-right: 14px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: linear-gradient(135deg, rgba(10, 27, 67, 0.96), rgba(6, 19, 48, 0.98));
  box-shadow: 0 18px 36px rgba(2, 8, 23, 0.28);
}

.brand {
  text-decoration: none;
  color: var(--text);
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  width: min(255px, 44vw);
  height: auto;
  display: block;
}

.main-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.main-nav a {
  text-decoration: none;
  color: var(--nav-text);
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 9px;
  font-size: 0.9rem;
  text-transform: uppercase;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.03);
}

.main-nav a:hover,
.main-nav a.active {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
}

.page-stack {
  padding: 18px 0 40px;
  display: grid;
  gap: 14px;
}

.card {
  background: linear-gradient(150deg, var(--surface), var(--surface-alt));
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero { padding: clamp(20px, 3vw, 32px); }

.hero-image-card {
  padding: 0;
  overflow: hidden;
}

.hero-image-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 420px;
}

.hero-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 0;
}

.mission-overlay {
  position: absolute;
  top: 50%;
  right: 24px;
  transform: translateY(-50%);
  width: min(360px, calc(100% - 48px));
  padding: 18px;
  border-radius: 14px;
  background: rgba(10, 27, 67, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
}

.mission-overlay h2 {
  margin-top: 6px;
}

.mission-copy {
  margin: 0;
  color: #e5e7eb;
  line-height: 1.55;
}
.section { padding: 18px; }

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text);
  font-size: 0.72rem;
}

h1, h2, h3 {
  margin: 8px 0;
  font-family: 'Sora', sans-serif;
  text-transform: uppercase;
}

.page-title {
  font-size: clamp(1.28rem, 1.98vw, 1.73rem);
  line-height: 1.04;
}

.lead { margin: 0; color: var(--muted); max-width: 760px; }
.subtle-note {
  margin: 12px 0 0;
  color: #bfdbfe;
  max-width: 760px;
}

.subtle-note a {
  color: #dbeafe;
  font-weight: 600;
}

.subtle-note a:hover,
.subtle-note a:focus-visible {
  color: #eff6ff;
}

.link-grid,
.gallery-grid,
.team-grid,
.kpi-grid {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.link-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kpi-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.link-card,
.placeholder,
.team-card,
.kpi {
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(255, 255, 255, 0.04);
  padding: 14px;
}

.link-card { text-decoration: none; color: inherit; }
.link-card p,
.placeholder span,
.team-card p,
.kpi p,
.kpi small,
.message,
.timestamp,
.source-list { color: var(--muted); }

.placeholder {
  min-height: 130px;
  display: grid;
  place-items: center;
  text-align: center;
  border-style: dashed;
}

.avatar {
  height: 84px;
  border-radius: 10px;
  border: 1px dashed rgba(71, 85, 105, 0.4);
  display: grid;
  place-items: center;
  color: var(--text);
  margin-bottom: 10px;
}

.team-list {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.team-list .team-card {
  position: relative;
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 18px 22px;
  width: 100%;
}

.team-list .avatar {
  height: 120px;
  width: 120px;
  margin: 0;
  border: 0;
  border-radius: 999px;
  overflow: hidden;
}

.team-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 999px;
  transform: scale(1);
  transform-origin: center;
}

.team-photo-mia {
  object-position: center 22%;
  transform: scale(1.12);
}

.team-photo-alex {
  transform: scale(1.21) translateY(1%);
}

.team-photo-tiara {
  transform: scale(1.11) translateY(1%);
}

.team-photo-catharine {
  object-position: center 20%;
  transform: scale(1.12);
}

.team-photo-coulter {
  transform: scale(1.29) translateY(1%);
}

.team-photo-carter {
  transform: scale(1.19) translateY(1%);
}

.member-copy h3 {
  margin: 0;
}

.member-copy {
  min-width: 0;
  padding-right: 46px;
}

.member-role {
  margin: 4px 0 8px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.member-subheader {
  margin: -4px 0 10px;
  color: #bfdbfe;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.member-linkedin {
  position: absolute;
  top: 18px;
  right: 22px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(191, 219, 254, 0.18);
  background: rgba(255, 255, 255, 0.05);
  color: #bfdbfe;
  box-shadow: 0 10px 20px rgba(2, 8, 23, 0.18);
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.member-linkedin:hover {
  transform: translateY(-1px);
  background: rgba(30, 64, 175, 0.28);
  border-color: rgba(191, 219, 254, 0.4);
  color: #e0f2fe;
}

.member-linkedin:focus-visible {
  outline: 2px solid #bfdbfe;
  outline-offset: 2px;
}

.member-linkedin svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: currentColor;
}

.newsletter-form {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.newsletter-feature {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 12px;
  align-items: stretch;
  max-width: 1180px;
  margin-inline: auto;
}

.newsletter-image-wrap {
  border-radius: 12px;
  overflow: hidden;
  border: 0;
  background: rgba(255, 255, 255, 0.04);
  min-height: 240px;
}

.newsletter-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.01);
  display: block;
}

.newsletter-copy {
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(255, 255, 255, 0.04);
  padding: 14px;
}

.newsletter-line {
  margin: 0;
  color: var(--text);
  text-transform: uppercase;
}

.newsletter-title {
  margin: 6px 0 10px;
  font-family: 'Sora', sans-serif;
  font-size: 1.2rem;
  color: var(--text);
}

.newsletter-form-spaced {
  margin-top: 14px;
}

.newsletter-consent {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.newsletter-consent a {
  color: #bfdbfe;
}

.message {
  margin: 12px 0 0;
  min-height: 1.5em;
}

.message-success {
  color: #bbf7d0;
}

.message-error {
  color: #fecaca;
}

.message-loading {
  color: #bfdbfe;
}

.message-note {
  color: #c7d2fe;
}

.report-carousel {
  margin-top: 12px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
}

.report-preview-link,
.report-card {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(255, 255, 255, 0.04);
}

.report-preview-image,
.report-preview-pdf {
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 760;
  object-fit: contain;
  display: block;
}

.report-preview-pdf {
  border: 0;
  min-height: 260px;
  background: #ffffff;
}

.report-meta {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.report-carousel-small {
  max-width: 980px;
  margin-inline: auto;
  grid-template-columns: auto minmax(0, 760px) auto;
}

.report-carousel-stack {
  max-width: 1180px;
  margin-inline: auto;
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.report-stage {
  position: relative;
  min-height: 430px;
  touch-action: pan-y;
}

.report-card {
  position: absolute;
  top: 50%;
  width: 32%;
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1), opacity 420ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 420ms cubic-bezier(0.22, 1, 0.36, 1), border-color 320ms ease;
  box-shadow: 0 18px 36px rgba(2, 8, 23, 0.22);
  will-change: transform, opacity;
}

.report-card-left {
  left: 0;
  transform: translateY(-50%) scale(0.82);
  opacity: 0.55;
}

.report-card-center {
  left: 50%;
  width: 52%;
  transform: translate(-50%, -50%) scale(1);
  z-index: 2;
  opacity: 1;
  border-color: rgba(148, 163, 184, 0.45);
  box-shadow: 0 24px 46px rgba(2, 8, 23, 0.34);
}

.report-card-right {
  right: 0;
  transform: translateY(-50%) scale(0.82);
  opacity: 0.55;
}

.report-card:hover {
  border-color: rgba(191, 219, 254, 0.48);
}

.report-carousel-small .report-preview-image {
  max-height: 480px;
}

.report-carousel-small .report-preview-pdf {
  max-height: 480px;
  min-height: 480px;
}

.report-meta-small {
  max-width: 760px;
  margin-inline: auto;
  justify-content: center;
}

.report-card.is-sliding {
  animation: report-slide-soft 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.report-preview-pdf.is-sliding {
  animation: report-slide-soft 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes report-slide-soft {
  0% {
    opacity: 0.62;
    filter: brightness(0.92);
  }
  100% {
    opacity: 1;
    filter: brightness(1);
  }
}

.report-title {
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.report-counter {
  margin: 0;
  color: var(--muted);
}

.report-list {
  margin-top: 12px;
  display: grid;
  gap: 10px;
  max-width: 760px;
}

.report-item {
  display: block;
  text-decoration: none;
  color: var(--text);
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(255, 255, 255, 0.05);
  padding: 14px;
}

.report-item:hover {
  border-color: rgba(148, 163, 184, 0.6);
  background: rgba(255, 255, 255, 0.08);
}

.report-item h3 {
  margin: 0 0 6px;
}

.report-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.newsletter-form input {
  flex: 1;
  min-width: 230px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  padding: 10px 12px;
  color: #111827;
  background: rgba(255, 255, 255, 0.95);
  font: inherit;
  caret-color: #111827;
  -webkit-text-fill-color: #111827;
}

.newsletter-form input::placeholder {
  color: #6b7280;
  opacity: 1;
}

.newsletter-form input:-webkit-autofill,
.newsletter-form input:-webkit-autofill:hover,
.newsletter-form input:-webkit-autofill:focus {
  -webkit-text-fill-color: #111827;
  box-shadow: 0 0 0 1000px rgba(255, 255, 255, 0.95) inset;
}

.newsletter-form input:disabled {
  opacity: 0.72;
}

.btn {
  border: 0;
  border-radius: 10px;
  padding: 10px 14px;
  color: #e5e7eb;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}

.btn-subtle {
  background: rgba(30, 58, 138, 0.08);
  border: 1px solid rgba(30, 58, 138, 0.25);
  color: var(--text);
}

.report-arrow {
  min-width: 44px;
  padding: 10px 0;
  font-size: 1rem;
  line-height: 1;
}

.btn.is-loading { opacity: 0.55; pointer-events: none; }
.btn:disabled { cursor: not-allowed; }

.dash-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.kpi h3 { margin: 6px 0 4px; font-size: 1.45rem; }
.kpi-focus { background: rgba(30, 58, 138, 0.08); }

.chart-box {
  margin-top: 12px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(255, 255, 255, 0.03);
  padding: 12px;
}

.chart-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.segmented {
  display: inline-flex;
  gap: 4px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 9px;
  padding: 4px;
}

.segment {
  border: 0;
  border-radius: 7px;
  padding: 7px 10px;
  color: var(--text);
  background: transparent;
  cursor: pointer;
  font: inherit;
}

.segment.is-active {
  background: rgba(30, 58, 138, 0.9);
  color: #e5e7eb;
}

#rateChart {
  width: 100%;
  height: auto;
  margin-top: 10px;
  display: block;
}

.source-list { margin: 10px 0 0; padding-left: 18px; }
.source-list a { color: #bfdbfe; }
.source-list a:hover,
.source-list a:focus-visible { color: #eff6ff; }
.timestamp { margin: 8px 0 0; font-size: 0.9rem; }

@media (max-width: 980px) {
  .nav-wrap { flex-direction: column; align-items: flex-start; }
  .brand-logo { width: min(235px, 58vw); }
  .link-grid,
  .gallery-grid,
  .team-grid,
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .newsletter-feature { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .brand-logo { width: min(220px, 70vw); }
  .link-grid,
  .gallery-grid,
  .team-grid,
  .kpi-grid { grid-template-columns: 1fr; }

  .team-list .team-card {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .team-list .avatar {
    width: 120px;
    justify-self: start;
  }

  .report-carousel {
    grid-template-columns: 1fr;
  }

  .report-stage {
    min-height: 320px;
  }

  .report-card {
    width: 34%;
  }

  .report-card-center {
    width: 60%;
  }

  .hero-image-wrap {
    min-height: 260px;
  }

  .mission-overlay {
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    width: min(320px, calc(100% - 32px));
    padding: 16px;
  }

  .report-meta-small {
    justify-content: flex-start;
  }
}
