:root {
  --navy: #172638;
  --lime: #c7e85b;
  --ivory: #f5f3ea;
  --cobalt: #4267d5;
  --lavender: #c8bdeb;
  --graphite: #333b43;
  --white: #ffffff;
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;
  --radius: 1.25rem;
  --max: 72rem;
  --text: 1.0625rem;
  --leading: 1.7;
  --font: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --display: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--text);
  line-height: var(--leading);
  color: var(--graphite);
  background: var(--ivory);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

a {
  color: var(--cobalt);
}

a:hover,
a:focus-visible {
  color: var(--navy);
}

:focus-visible {
  outline: 3px solid var(--cobalt);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  background: var(--navy);
  color: var(--white);
  padding: 0.75rem 1rem;
  z-index: 20;
}

.skip-link:focus {
  top: 0.75rem;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.site-header {
  background: var(--white);
  border-bottom: 1px solid #e4e0d4;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  min-height: 4.75rem;
  padding-block: 0.75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--navy);
  min-width: 0;
}

.brand img {
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
}

.brand-name {
  font-weight: 750;
  letter-spacing: 0.04em;
  font-size: 1.2rem;
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 2px solid var(--navy);
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
  padding: 0;
}

.nav-toggle-bars,
.nav-toggle-close {
  display: none;
  font-size: 1.35rem;
  line-height: 1;
}

.nav-toggle[aria-expanded="false"] .nav-toggle-bars,
.nav-toggle[aria-expanded="true"] .nav-toggle-close {
  display: block;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  text-decoration: none;
  color: var(--graphite);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.35rem 0;
  border-bottom: 3px solid transparent;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--navy);
}

.site-nav a[aria-current="page"] {
  color: var(--navy);
  border-bottom-color: var(--lime);
}

.hero {
  background: var(--navy);
  color: var(--white);
  padding: var(--space-5) 0;
  position: relative;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  background: var(--lime);
  pointer-events: none;
}

.hero::before {
  width: 9rem;
  height: 9rem;
  right: -3rem;
  top: -3rem;
  transform: rotate(18deg);
  opacity: 0.85;
}

.hero::after {
  width: 4.5rem;
  height: 4.5rem;
  left: 8%;
  bottom: 1.5rem;
  background: var(--lavender);
  border-radius: 50%;
  opacity: 0.7;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-4);
  align-items: center;
  position: relative;
  z-index: 1;
}

.kicker {
  display: inline-block;
  color: var(--navy);
  background: var(--lime);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
  padding: 0.35rem 0.7rem;
  margin-bottom: var(--space-2);
}

.hero h1,
.page-hero h1 {
  font-family: var(--display);
  font-size: clamp(2.1rem, 5vw, 4.1rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  font-weight: 800;
}

.lede {
  font-size: 1.15rem;
  max-width: 40rem;
  color: #dce4ee;
  margin: 0 0 1.5rem;
}

.page-hero .lede {
  color: var(--graphite);
}

.hero-visual {
  position: relative;
}

.hero-visual img,
.frame img,
.editorial img,
.split img,
.mosaic img,
.team-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-visual img {
  aspect-ratio: 16 / 11;
  border-radius: var(--radius);
}

.hero-visual .accent-block {
  position: absolute;
  left: -0.75rem;
  bottom: -0.75rem;
  width: 42%;
  height: 38%;
  background: var(--cobalt);
  z-index: -1;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.25rem;
  text-decoration: none;
  font-weight: 700;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
}

.btn-lime {
  background: var(--lime);
  color: var(--navy);
}

.btn-lime:hover,
.btn-lime:focus-visible {
  background: var(--white);
  color: var(--navy);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
}

.btn-navy:hover,
.btn-navy:focus-visible {
  background: var(--cobalt);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: var(--white);
  color: var(--navy);
}

.btn-ghost-dark {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-ghost-dark:hover,
.btn-ghost-dark:focus-visible {
  background: var(--navy);
  color: var(--white);
}

button.btn:disabled {
  background: #d7d3c6;
  color: #6b7178;
  cursor: not-allowed;
}

section {
  padding: var(--space-5) 0;
}

.section-navy {
  background: var(--navy);
  color: var(--white);
}

.section-white {
  background: var(--white);
}

.section-lavender {
  background: #ece8f8;
}

.section-cobalt {
  background: var(--cobalt);
  color: var(--white);
}

.eyebrow {
  color: var(--cobalt);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin: 0 0 0.6rem;
}

.section-navy .eyebrow,
.section-cobalt .eyebrow {
  color: var(--lime);
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  color: var(--navy);
}

.section-navy h2,
.section-cobalt h2 {
  color: var(--white);
}

h3 {
  font-size: 1.25rem;
  margin: 0 0 0.6rem;
  color: var(--navy);
}

p {
  margin: 0 0 1rem;
}

.measure {
  max-width: 42rem;
}

.grid-2,
.grid-3,
.cards {
  display: grid;
  gap: var(--space-3);
}

.grid-2 {
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.grid-3,
.cards {
  grid-template-columns: repeat(3, 1fr);
}

.card,
.stat,
.team-card {
  background: var(--white);
  padding: var(--space-3);
  border: 1px solid #e8e3d6;
}

.section-navy .card {
  background: #1e3146;
  border-color: #2a425b;
  color: var(--white);
}

.section-navy .card h3 {
  color: var(--lime);
}

.geo-bar {
  width: 3.5rem;
  height: 0.4rem;
  background: var(--lime);
  margin-bottom: 1rem;
}

.frame {
  position: relative;
}

.frame img {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
}

.frame-shift {
  box-shadow: 1.1rem 1.1rem 0 var(--lavender);
}

.frame-lime {
  box-shadow: -1.1rem 1.1rem 0 var(--lime);
}

.mosaic {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1rem;
}

.mosaic img:first-child {
  aspect-ratio: 16 / 10;
  grid-row: span 2;
  border-radius: var(--radius);
}

.mosaic img {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  height: 100%;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 28rem;
}

.split img {
  width: 100%;
  height: 100%;
  min-height: 18rem;
  object-fit: cover;
}

.split-copy {
  padding: var(--space-5) var(--space-4);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-hero {
  padding: var(--space-5) 0 var(--space-4);
  background:
    linear-gradient(135deg, var(--ivory) 58%, #ece8f8 58.1%);
}

.page-hero.compact {
  background: var(--ivory);
  padding-bottom: var(--space-3);
}

.legal-page {
  background: var(--white);
}

.legal-page .page-hero {
  background: var(--white);
}

.legal-content {
  max-width: 46rem;
  padding-bottom: var(--space-6);
}

.legal-content h2 {
  margin-top: 2rem;
  font-size: 1.4rem;
}

.team-card img {
  aspect-ratio: 3 / 4;
  margin: -1.5rem -1.5rem 1rem;
  width: calc(100% + 3rem);
  max-width: none;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--space-4);
  align-items: start;
}

.contact-panel {
  background: var(--navy);
  color: var(--white);
  padding: var(--space-4);
}

.contact-panel h2,
.contact-panel a {
  color: var(--white);
}

.contact-panel a:hover,
.contact-panel a:focus-visible {
  color: var(--lime);
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-list li {
  margin-bottom: 1rem;
}

.contact-list span {
  display: block;
  color: var(--lime);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
}

.form {
  background: var(--white);
  padding: var(--space-4);
  border: 1px solid #e4e0d4;
}

.field {
  margin-bottom: 1.1rem;
}

.field-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

label {
  font-weight: 700;
  color: var(--navy);
}

.req {
  color: var(--cobalt);
}

input,
textarea {
  width: 100%;
  margin-top: 0.4rem;
  padding: 0.8rem 0.9rem;
  border: 2px solid #cfc9b8;
  background: var(--ivory);
  font: inherit;
  color: var(--graphite);
}

input.is-invalid,
textarea.is-invalid {
  border-color: #9a2e2e;
  background: #fff4f2;
}

input.is-valid,
textarea.is-valid {
  border-color: #3f7a3a;
}

.field-error {
  color: #9a2e2e;
  font-size: 0.9rem;
  min-height: 1.2em;
  flex: 1;
  text-align: right;
}

.form-success {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  background: #e8f6d8;
  color: #24501f;
  border: 2px solid #3f7a3a;
  font-weight: 600;
}

.form-success[hidden] {
  display: none;
}

.site-footer {
  background: var(--navy);
  color: #d5dde6;
  padding: var(--space-5) 0 var(--space-3);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: var(--space-4);
}

.site-footer h2 {
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 0.8rem;
}

.site-footer a {
  color: var(--lime);
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--white);
}

.footer-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav li {
  margin-bottom: 0.4rem;
}

.copyright {
  margin-top: var(--space-4);
  border-top: 1px solid #2c4258;
  padding-top: 1rem;
  font-size: 0.92rem;
}

.list-plain {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

.band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--navy);
  color: var(--white);
}

.band div {
  padding: 1.4rem 1.2rem;
  border-right: 1px solid #2c4258;
}

.band div:last-child {
  border-right: 0;
}

.band strong {
  display: block;
  color: var(--lime);
  font-size: 1.05rem;
}

@media (max-width: 980px) {
  .hero-grid,
  .grid-2,
  .split,
  .contact-grid,
  .footer-grid,
  .mosaic {
    grid-template-columns: 1fr;
  }

  .grid-3,
  .cards,
  .band {
    grid-template-columns: 1fr 1fr;
  }

  .mosaic img:first-child {
    grid-row: auto;
  }

  .split-copy {
    padding: var(--space-4) var(--space-3);
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid #e4e0d4;
    padding: 0.75rem 1rem 1.25rem;
    z-index: 10;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-header {
    position: relative;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .site-nav a {
    display: block;
    padding: 0.8rem 0.2rem;
    border-bottom: 1px solid #eee8db;
  }

  .grid-3,
  .cards,
  .band,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .band div {
    border-right: 0;
    border-bottom: 1px solid #2c4258;
  }

  .hero::before,
  .hero::after,
  .hero-visual .accent-block,
  .frame-shift,
  .frame-lime {
    display: none;
  }

  .wrap {
    width: min(100% - 1.25rem, var(--max));
  }

  h1 {
    word-break: break-word;
  }

  .field-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
  }

  .field-error {
    text-align: left;
  }
}

@media (max-width: 360px) {
  .brand-name {
    font-size: 1.05rem;
  }

  .btn {
    width: 100%;
  }
}
