:root {
  --navy: #0a1f3f;
  --navy-deep: #071730;
  --navy-line: #24395c;
  --white: #ffffff;
  --tint: #f6f7fa;
  --line: #e6e9ef;
  --line-strong: #c9d0dc;
  --placeholder: #e9edf4;
  --text-body: #3b4a63;
  --text-muted: #5a6780;
  --on-navy: #c6d2e6;
  --on-navy-muted: #b4c2d9;
  --accent: #6b21c8;
  --halo-gradient: linear-gradient(90deg, #7a8b4e, #8fd0ff, #8b2be2);
  --font-heading: Montserrat, ui-sans-serif, system-ui, sans-serif;
  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--navy);
  font-family: var(--font-body);
  line-height: 1.6;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 600;
  text-wrap: balance;
}

h1 {
  font-size: clamp(40px, 5.2vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

a {
  color: var(--navy);
}

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

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Layout helpers */
.container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 24px;
}

.section {
  padding-block: clamp(64px, 8vw, 104px);
}

.section-compact {
  padding-block: 80px;
}

.section-tint {
  background: var(--tint);
}

.section-navy {
  background: var(--navy);
  color: var(--white);
}

.stack-lg {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.stack-sm {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 680px;
}

.split-heading {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 40px;
  align-items: end;
}

.lead {
  color: var(--text-body);
  font-size: 18px;
  line-height: 1.65;
}

.section-navy .lead {
  color: var(--on-navy);
}

.eyebrow {
  color: var(--accent);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.eyebrow-muted {
  color: var(--text-muted);
}

.halo-bar {
  width: 64px;
  height: 4px;
  border-radius: 4px;
  background: var(--halo-gradient);
}

/* Buttons */
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-block;
  padding: 15px 28px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.button-primary {
  background: var(--navy);
  color: var(--white);
}

.button-primary:hover {
  background: var(--accent);
  color: var(--white);
}

.button-outline {
  border-color: var(--line-strong);
  color: var(--navy);
}

.button-outline:hover {
  border-color: var(--accent);
}

.button-white {
  background: var(--white);
  color: var(--navy);
}

.button-white:hover {
  background: var(--placeholder);
  color: var(--navy);
}

.button-ghost {
  border-color: #4a5f82;
  color: var(--white);
}

.button-ghost:hover {
  border-color: var(--white);
  color: var(--white);
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 16px;
}

.brand {
  color: var(--navy);
  text-decoration: none;
}

.brand:hover {
  color: var(--navy);
}

.brand img {
  display: block;
  width: auto;
  height: 64px;
}

.wordmark {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  font-family: var(--font-heading);
}

.wordmark-halo {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.1;
}

.wordmark-collective {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.5em;
  line-height: 1.4;
}

.halo-bar-wordmark {
  width: 100%;
  height: 3px;
  margin-top: 4px;
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 32px;
  font-size: 15px;
  font-weight: 500;
}

.site-header nav a {
  text-decoration: none;
}

.site-header nav a[aria-current="page"] {
  padding-bottom: 4px;
  border-bottom: 2px solid var(--accent);
  font-weight: 600;
}

.site-header nav .nav-cta {
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
  transition: background-color 150ms ease;
}

.site-header nav .nav-cta:hover {
  background: var(--accent);
  color: var(--white);
}

/* Home hero */
.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
  gap: 56px;
  align-items: center;
  padding-block: clamp(56px, 8vw, 96px) clamp(64px, 9vw, 112px);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.hero-text {
  max-width: 540px;
  color: var(--text-body);
  font-size: 19px;
}

.hero-copy .button-row {
  padding-top: 8px;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
}

.hero-visual svg {
  width: 100%;
  max-width: 460px;
}

.hero-note {
  position: absolute;
  bottom: 8px;
  left: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 250px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 12px 32px rgba(10, 31, 63, 0.1);
}

.hero-note-label {
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-note-text {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
}

/* HALO letters */
.letter-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--navy-line);
  border-radius: 20px;
  background: var(--navy-line);
}

.letter-cell {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 36px 30px;
  background: var(--navy);
}

.letter-cell h3 {
  font-size: 18px;
}

.letter-cell p {
  color: var(--on-navy-muted);
  font-size: 15px;
}

.letter {
  font-family: var(--font-heading);
  font-size: 56px;
  font-weight: 600;
  line-height: 1;
}

.letter-blue {
  color: #8fd0ff;
}

.letter-purple {
  color: #c79bf5;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 24px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 36px 32px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
}

.card h3 {
  font-size: 22px;
}

.card p,
.card ul {
  color: var(--text-body);
}

.card ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  font-size: 15px;
  line-height: 1.5;
}

.icon-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
}

.icon-blue {
  background: #eaf5ff;
  color: #1f6fb2;
}

.icon-olive {
  background: #eef1e6;
  color: #56653a;
}

.icon-purple {
  background: #f3eafd;
  color: var(--accent);
}

/* Approach */
.step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 24px;
  border-top: 2px solid var(--navy);
}

.step:last-child {
  border-top-color: var(--accent);
}

.step h3 {
  font-size: 22px;
}

.step p {
  color: var(--text-body);
}

.step-number {
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

/* Who we serve */
.sectors {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  text-align: center;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.pill-row-start {
  justify-content: flex-start;
}

.pill {
  padding: 12px 22px;
  border: 1px solid #e0e4eb;
  border-radius: 999px;
  background: var(--white);
  font-size: 15px;
  font-weight: 500;
}

/* Insights */
.insights-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.text-link {
  padding-bottom: 4px;
  border-bottom: 1.5px solid currentColor;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 32px;
}

.post-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.category-filter a {
  padding: 9px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.category-filter a:hover {
  border-color: var(--accent);
}

.category-filter a[aria-current="page"] {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--white);
}

.empty-note {
  color: var(--text-muted);
}

.post-meta {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.post-card h3 {
  font-size: 20px;
  line-height: 1.35;
}

.post-card h3 a {
  text-decoration: none;
}

.image-placeholder,
.photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--placeholder);
  color: var(--text-muted);
  font-size: 14px;
}

.image-placeholder {
  aspect-ratio: 16 / 10;
  border-radius: 16px;
}

/* Interior page hero */
.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
}

.page-hero-art {
  position: absolute;
  top: -140px;
  right: -120px;
  width: 600px;
  height: 600px;
  opacity: 0.9;
}

.page-hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding-block: 88px 96px;
}

.page-hero h1 {
  max-width: 760px;
  font-size: clamp(38px, 4.6vw, 58px);
  line-height: 1.08;
}

.page-hero-text {
  max-width: 640px;
  color: var(--on-navy);
  font-size: 19px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--on-navy-muted);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--on-navy-muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--white);
}

.breadcrumb [aria-current="page"] {
  color: var(--white);
}

/* Long-form page text */
.prose {
  color: var(--text-body);
  font-size: 17px;
  line-height: 1.75;
}

.prose > * {
  max-width: 720px;
}

.prose h2 {
  margin-bottom: 18px;
  color: var(--navy);
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: 0;
}

.prose * + h2 {
  margin-top: 48px;
}

.prose p + p {
  margin-top: 18px;
}

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

/* About: partners */
.partner-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.partner {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 48px;
  align-items: center;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
}

.partner:nth-child(even) {
  grid-template-columns: 1fr 320px;
}

.partner:nth-child(even) .photo-placeholder {
  order: 2;
}

.photo-placeholder {
  aspect-ratio: 4 / 5;
  border-radius: 16px;
}

.partner-copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.partner-copy h3 {
  font-size: 30px;
  line-height: 1.2;
}

.partner-role {
  color: var(--accent);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
}

.partner-bio {
  max-width: 620px;
  color: var(--text-body);
  font-size: 17px;
  line-height: 1.7;
}

.partner .pill {
  padding: 8px 16px;
  background: var(--tint);
  font-size: 14px;
}

/* About: associates */
.associate-card {
  gap: 10px;
}

.associate-card .avatar-placeholder {
  width: 72px;
  height: 72px;
  margin-bottom: 8px;
  border: 5px solid var(--navy);
  border-top-color: #8fd0ff;
  border-right-color: #8b2be2;
  border-radius: 50%;
  background: var(--placeholder);
}

/* Services */
.card-link {
  margin-top: auto;
  padding-top: 8px;
  color: var(--accent);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.service-detail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 40px 56px;
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
}

.service-summary {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.service-summary h3 {
  font-size: 30px;
  line-height: 1.2;
}

.service-body {
  color: var(--text-body);
  font-size: 16px;
}

.service-body h4 {
  margin: 24px 0 10px;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.service-body ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
}

/* Clients */
.client-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.client-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
}

.client-card h3 {
  font-size: 18px;
}

.client-card p {
  color: var(--text-muted);
  font-size: 15px;
}

.client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  margin-bottom: 8px;
  border-radius: 12px;
  background: var(--placeholder);
  color: var(--text-muted);
  font-size: 14px;
}

/* Call to action */
.cta {
  padding: 0 24px clamp(64px, 8vw, 104px);
}

.cta-after-navy .cta {
  padding-top: clamp(64px, 8vw, 104px);
}

.cta-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: 40px;
  align-items: center;
  max-width: 1152px;
  margin-inline: auto;
  padding: clamp(40px, 6vw, 80px);
  border-radius: 28px;
  background: var(--navy);
  color: var(--white);
}

.cta-copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.cta-copy p {
  color: var(--on-navy);
  font-size: 18px;
}

/* Footer */
.site-footer {
  padding-block: 72px 32px;
  background: var(--navy-deep);
  color: var(--on-navy-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 40px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 14px;
}

.footer-brand .wordmark {
  align-self: flex-start;
  color: var(--white);
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 15px;
}

.footer-column a {
  color: var(--on-navy-muted);
  text-decoration: none;
}

.footer-column a:hover {
  color: var(--white);
}

.footer-label {
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid #1e3355;
  font-size: 13px;
}

/* Narrower screens */
@media (max-width: 900px) {
  .letter-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .partner,
  .partner:nth-child(even) {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 24px;
  }

  .partner:nth-child(even) .photo-placeholder {
    order: 0;
  }

  .photo-placeholder {
    aspect-ratio: 16 / 10;
  }

  .page-hero-art {
    opacity: 0.35;
  }
}

@media (max-width: 520px) {
  .letter-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    flex-direction: column;
    gap: 24px;
    min-height: 0;
  }

  .hero-note {
    position: static;
    max-width: none;
    width: 100%;
  }

  .site-header nav {
    gap: 8px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button,
  .site-header nav .nav-cta {
    transition: none;
  }
}
