:root {
  --bg: #f4f7fb;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-strong: #ffffff;
  --surface-dark: linear-gradient(135deg, #1a295d 0%, #2f4ca3 100%);
  --text: #162033;
  --muted: #5e6b85;
  --line: rgba(18, 30, 58, 0.1);
  --line-strong: rgba(18, 30, 58, 0.16);
  --primary: #2d4eb0;
  --primary-deep: #182a66;
  --primary-soft: rgba(45, 78, 176, 0.12);
  --shadow: 0 20px 60px rgba(21, 33, 66, 0.08);
  --shadow-soft: 0 14px 35px rgba(21, 33, 66, 0.06);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --max-width: 1380px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(68, 103, 207, 0.12), transparent 28%),
    radial-gradient(circle at top right, rgba(72, 178, 255, 0.1), transparent 25%),
    var(--bg);
  min-height: 100vh;
}

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

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

button {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(20px);
  /* blue header per request */
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-deep) 100%);
  color: #fff;
  border-bottom: 0;
}

.header-shell {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 0.92rem;
}

.brand__logo {
  width: 34px;
  height: auto;
  display: inline-block;
}

.brand-mark {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4279ff 0%, #1b2d77 100%);
  box-shadow: 0 0 0 6px rgba(66, 121, 255, 0.12);
}

.header-links {
  display: inline-flex;
  align-items: center;
  gap: 22px;
}

.header-links a {
  font-size: 0.95rem;
  color: var(--muted);
  transition: color 0.2s ease;
}

.header-links a:hover,
.header-links a:focus-visible {
  color: var(--primary-deep);
}

.nav-toggle,
.mobile-close {
  display: none;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.nav-toggle {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.65);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
}

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(7, 12, 26, 0.45);
  padding: 18px;
}

.mobile-nav-panel {
  max-width: 360px;
  margin-left: auto;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow);
  border-radius: 24px;
  padding: 18px;
  display: grid;
  gap: 6px;
}

.mobile-nav-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
}

.mobile-nav-top p {
  margin: 0;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.mobile-close {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 1.8rem;
}

.mobile-nav-panel a {
  padding: 14px 12px;
  border-radius: 14px;
  color: var(--text);
  transition: background 0.2s ease, transform 0.2s ease;
}

.mobile-nav-panel a:hover,
.mobile-nav-panel a:focus-visible {
  background: var(--primary-soft);
  transform: translateX(4px);
}

.page-shell {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 34px 24px 52px;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 28px;
}

.side-rail {
  position: sticky;
  top: 94px;
  align-self: start;
  display: grid;
  gap: 16px;
}

.back-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 18px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, #2443a0 0%, #16265e 100%);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 16px 28px rgba(29, 50, 116, 0.24);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.back-button:hover,
.back-button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(29, 50, 116, 0.3);
}

.rail-card,
.content-card,
.showcase-card,
.hero-card,
.gallery-card {
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: var(--surface);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-soft);
}

.rail-card {
  padding: 20px;
  border-radius: 24px;
}

.rail-label,
.eyebrow {
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: #4562bb;
}

.section-nav {
  display: grid;
  gap: 8px;
}

.section-link {
  position: relative;
  padding: 12px 14px;
  border-radius: 14px;
  color: var(--muted);
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.section-link:hover,
.section-link:focus-visible {
  background: rgba(45, 78, 176, 0.08);
  color: var(--primary-deep);
  transform: translateX(2px);
}

.section-link.is-active {
  background: linear-gradient(135deg, rgba(47, 88, 201, 0.14), rgba(47, 88, 201, 0.04));
  color: var(--primary-deep);
}

.section-link.is-active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, #4279ff 0%, #1c2f78 100%);
}

.content-shell {
  min-width: 0;
  display: grid;
  gap: 24px;
}

.hero-card {
  padding: 28px;
  border-radius: 34px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 26px;
  overflow: hidden;
}

.hero-copy h1,
.card-heading h2,
.feature-band-copy h2 {
  margin: 0;
  font-family: "Space Grotesk", "Inter", sans-serif;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero-copy h1 {
  font-size: clamp(2.35rem, 5vw, 4.4rem);
  max-width: 12ch;
}

.hero-subtitle {
  margin: 14px 0 0;
  font-size: 1.14rem;
  color: var(--primary-deep);
  font-weight: 600;
  max-width: 52ch;
}

.hero-summary,
.rich-text,
.feature-band-copy > p:not(.eyebrow):not(.light),
.heading-note {
  color: var(--muted);
  line-height: 1.75;
  font-size: 1rem;
}

.hero-summary {
  margin: 18px 0 0;
  max-width: 60ch;
}

.metric-row {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.metric-card,
.stats-panel {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(18, 30, 58, 0.08);
}

.metric-card strong,
.stats-panel strong {
  display: block;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary-deep);
}

.metric-card span,
.stats-panel span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.95rem;
}

.quote-callout {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-top: 24px;
  padding: 18px 0 0;
}

.quote-bar {
  width: 4px;
  min-height: 64px;
  flex: 0 0 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, #4a7fff 0%, #20357d 100%);
}

.quote-callout p {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.7;
  color: #576784;
  font-weight: 600;
}

.hero-media {
  position: relative;
  min-width: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
  border-radius: 28px;
}

.hero-badge {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  border-radius: 20px;
  background: rgba(15, 24, 52, 0.82);
  color: rgba(255, 255, 255, 0.92);
  padding: 16px 18px;
  backdrop-filter: blur(14px);
}

.hero-badge span {
  display: inline-block;
  margin-bottom: 6px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.72);
}

.hero-badge p,
.footer-note,
.footer-meta p {
  margin: 0;
  line-height: 1.6;
}

.section-chips {
  display: none;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.section-chips::-webkit-scrollbar {
  display: none;
}

.section-chips a {
  flex: 0 0 auto;
  padding: 11px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(18, 30, 58, 0.08);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
}

.content-card,
.showcase-card,
.feature-band,
.gallery-card {
  border-radius: 30px;
}

.content-card,
.feature-band {
  padding: 28px;
}

.card-heading {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.split-heading {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 18px;
}

.heading-note {
  max-width: 24ch;
  font-weight: 600;
}

.card-heading h2,
.feature-band-copy h2 {
  font-size: clamp(1.8rem, 3.3vw, 3rem);
}

.card-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: 22px;
  align-items: center;
}

.card-grid.single {
  grid-template-columns: minmax(0, 1fr);
}

.rich-text p,
.feature-band-copy > p:not(.eyebrow):not(.light) {
  margin: 0 0 12px;
}

.rich-text p:last-child,
.feature-band-copy > p:last-child {
  margin-bottom: 0;
}

.feature-list {
  margin: 14px 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.8;
}

.feature-list li + li {
  margin-top: 6px;
}

.media-panel {
  min-width: 0;
}

.media-panel img,
.feature-band-media img,
.showcase-card img,
.gallery-card img {
  width: 100%;
  object-fit: cover;
  border-radius: 24px;
}

.tall-panel img {
  min-height: 480px;
}

.showcase-card {
  padding: 14px;
}

.showcase-card img {
  min-height: 500px;
}

.feature-band {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: 24px;
  background: var(--surface-dark);
  color: #fff;
  overflow: hidden;
}

.feature-band .light,
.feature-band-copy > p,
.feature-band .quote-callout p {
  color: rgba(255, 255, 255, 0.8);
}

.feature-band-copy {
  align-self: center;
}

.feature-band-media {
  min-width: 0;
}

.feature-band-media img {
  min-height: 100%;
  height: 100%;
}

.quote-callout.inverse {
  padding-top: 10px;
}

.gallery-row {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 22px;
}

.gallery-card {
  padding: 14px;
}

.gallery-card.wide img {
  min-height: 320px;
}

.gallery-card.tall img {
  min-height: 320px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.outcome-card .quote-callout.large {
  margin-top: 6px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.cta-button {
  min-height: 54px;
  padding: 0 20px;
  border-radius: 16px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.cta-button.primary {
  background: linear-gradient(135deg, #2d4eb0 0%, #16265e 100%);
  color: #fff;
  box-shadow: 0 18px 34px rgba(29, 50, 116, 0.22);
}

.cta-button.secondary {
  background: rgba(255, 255, 255, 0.92);
  color: var(--primary-deep);
  border-color: rgba(29, 50, 116, 0.14);
}

.cta-button:hover,
.cta-button:focus-visible {
  transform: translateY(-1px);
}

.site-footer {
  padding: 0 24px 34px;
}

.footer-shell {
  max-width: var(--max-width);
  margin: 0 auto;
  border-radius: 28px;
  padding: 26px 28px;
  background: linear-gradient(135deg, #182657 0%, #263d89 100%);
  color: rgba(255, 255, 255, 0.92);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  box-shadow: 0 22px 50px rgba(24, 38, 87, 0.22);
}

.footer-brand {
  margin: 0 0 8px;
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.08em;
}

.footer-note {
  max-width: 44ch;
  color: rgba(255, 255, 255, 0.7);
}

.footer-meta {
  display: grid;
  justify-items: end;
  gap: 6px;
  text-align: right;
}

.footer-meta a {
  color: #fff;
  font-weight: 700;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1180px) {
  .page-shell {
    grid-template-columns: 1fr;
  }

  /* allow the side-rail to scroll away with the page on smaller screens */
  .side-rail {
    display: block;
    position: static;
    align-self: stretch;
    gap: 12px;
  }

  /* hide the full section nav to save space */
  .side-rail .section-nav {
    display: none;
  }

  .section-chips {
    display: flex;
  }

  .hero-card {
    grid-template-columns: 1fr;
  }

  .hero-media img {
    min-height: 430px;
  }

  .split-heading {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .header-links {
    display: none;
  }

  /* remove the highlighted mobile nav toggle */
  .nav-toggle {
    display: none;
  }

  .page-shell,
  .site-footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .header-shell {
    padding-left: 18px;
    padding-right: 18px;
  }

  .metric-row,
  .stats-grid,
  .gallery-row,
  .card-grid,
  .feature-band {
    grid-template-columns: 1fr;
  }

  .showcase-card img,
  .tall-panel img,
  .gallery-card img {
    min-height: 280px;
  }

  .footer-shell {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-meta {
    justify-items: start;
    text-align: left;
  }
}

@media (max-width: 640px) {
  .hero-card,
  .content-card,
  .feature-band,
  .showcase-card,
  .gallery-card,
  .footer-shell {
    border-radius: 22px;
  }

  .hero-card,
  .content-card,
  .feature-band {
    padding: 20px;
  }

  .hero-copy h1 {
    font-size: 2.3rem;
  }

  .hero-subtitle,
  .quote-callout p {
    font-size: 1rem;
  }

  .hero-media img {
    min-height: 320px;
  }

  .metric-row,
  .stats-grid {
    gap: 10px;
  }

  .metric-card,
  .stats-panel {

  /* Let the Go Back button scroll with the page on very small screens */
  .back-button {
    position: static;
    left: auto;
    top: auto;
    z-index: auto;
    min-height: 54px;
    padding: 0 18px;
  }
    padding: 14px;
  }

  .cta-row {
    flex-direction: column;
  }

  .cta-button,
  .cta-button.as-link {
    width: 100%;
  }
}
