:root {
  --gold: #635BFF;
  --gold-hover: #4F46E5;
  --gold-pale: #E6EAF0;
  --gold-deep: #4338CA;
  --ink: #0A2540;
  --slate: #0A2540;
  --body: #425466;
  --mute: #5B6B7C;
  --canvas: #F6F9FC;
  --stone: #E8EEF6;
  --sand: #E7EEFE;
  --mist: #E8F4F8;
  --sage: #E4E7EB;
  --clay: #ECEEEF;
  --line: #E3E8EE;
  --radius: 24px;
  --shadow: 0 18px 40px rgba(10, 37, 64, 0.08);
  --max: 1120px;
  --font: Inter, system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--canvas);
  font-size: 16px;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: var(--gold-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 900; letter-spacing: -0.03em; line-height: 0.98; color: var(--ink); }
.wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 16px;
}
.lead { font-size: 20px; line-height: 1.5; color: var(--body); max-width: 40rem; }
.muted { color: var(--mute); }

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(246, 249, 252, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  box-shadow: inset 0 -2px 0 #5b6b7c;
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 84px;
}
.brand { display: flex; align-items: center; text-decoration: none; color: var(--ink); }
.brand img { height: 30px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav-links > a, .drop > button {
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 10px 14px;
  background: transparent;
  border: 0;
  border-radius: 999px;
  font-family: inherit;
  cursor: pointer;
}
.nav-links > a:hover, .drop > button:hover { background: var(--sand); color: var(--ink); }
.nav-links > a.is-active, .drop > button.is-active {
  background: transparent;
  color: var(--ink);
  box-shadow: none;
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
.nav-links > a.is-active:hover, .drop > button.is-active:hover {
  background: transparent;
  color: var(--ink);
  text-decoration: underline;
}
.drop { position: static; }
.drop > button { position: relative; }
.drop > button::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 52px;
  z-index: 45;
}
.mega {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  min-height: calc(100vh - 84px);
  background: #F6F9FC;
  padding: 36px 0 48px;
  border-top: 1px solid var(--line);
}
.drop:hover .mega, .drop:focus-within .mega { display: block; }
.mega-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mega-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 168px;
  padding: 24px;
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
}
.mega-item strong { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.mega-item span { color: var(--body); font-weight: 400; font-size: 15px; line-height: 1.45; }
.mega-item.sand { background: var(--sand); }
.mega-item.mist { background: var(--mist); }
.mega-item.sage { background: var(--sage); }
.mega-item.clay { background: var(--clay); }
.mega-item.is-active { box-shadow: inset 0 0 0 2px var(--gold); }
.mega-item:hover { transform: translateY(-2px); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius);
  padding: 12px 22px;
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}
.btn-primary { background: var(--gold); color: #fff; }
.btn-primary:hover { background: var(--gold-hover); color: #fff; }
.btn-ghost { background: var(--canvas); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--canvas); }
.btn-soft { background: var(--stone); color: var(--ink); }
.btn-soft:hover { background: var(--gold-pale); color: var(--ink); }
.nav-links a.nav-cta {
  background: var(--gold);
  color: #fff;
  border-radius: var(--radius);
  padding: 10px 18px;
}
.nav-links a.nav-cta:hover { background: var(--gold-hover); color: #fff; }
.nav-links a.nav-cta.is-active {
  background: var(--gold);
  color: #fff;
  box-shadow: none;
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-underline-offset: 4px;
}
.menu-btn {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--canvas);
  cursor: pointer;
}
.menu-btn span, .menu-btn span:before, .menu-btn span:after {
  display: block; height: 2px; width: 18px; background: var(--ink); position: relative; margin: 0 auto;
}
.menu-btn span:before, .menu-btn span:after { content: ""; position: absolute; left: 0; }
.menu-btn span:before { top: -6px; }
.menu-btn span:after { top: 6px; }

.hero { background: var(--stone); padding: 72px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; }
h1 { font-size: clamp(44px, 6vw, 72px); }
.hero p.lead { margin: 20px 0 28px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.panel {
  background: var(--mist);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.panel h2 { font-size: 28px; margin-bottom: 8px; }
.panel .row {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 14px 0; border-top: 1px solid var(--line); font-weight: 600;
}
.panel .row span { color: var(--mute); font-weight: 500; }
.panel .row strong { color: var(--ink); }
.panel.snapshot {
  background: #0A2540;
  color: #E6EDF5;
}
.panel.snapshot h2 { color: #fff; font-weight: 700; letter-spacing: -0.01em; }
.panel.snapshot .eyebrow { color: #f2d06c; }
.panel.snapshot .muted,
.panel.snapshot .row span { color: #C9D4E3; }
.panel.snapshot .row { border-top-color: rgba(255,255,255,0.16); }
.panel.snapshot .row strong { color: #f2d06c; font-weight: 500; }

.band { padding: 72px 0; }
.band-stone { background: var(--stone); }
.band-ink { background: var(--ink); color: var(--canvas); }
.band-ink h2, .band-ink h3 { color: #fff; }
.band-ink p { color: var(--stone); }
.section-head { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(32px, 4vw, 48px); max-width: 16ch; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.card {
  background: var(--sand);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 24px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 180px;
}
.card h3 { font-size: 24px; color: var(--ink); }
.card p { color: var(--body); font-weight: 400; letter-spacing: 0; line-height: 1.5; }
.card.sand { background: var(--sand); }
.card.sand h3, .card.sand p { color: var(--ink); }
.card.mist { background: var(--mist); }
.card.mist h3, .card.mist p { color: var(--ink); }
.card.sage { background: var(--sage); }
.card.sage h3, .card.sage p { color: var(--ink); }
.card.clay { background: var(--clay); }
.card.clay h3, .card.clay p { color: var(--ink); }
.card.slate { background: var(--slate); }
.card.slate h3 { color: #fff; }
.card.slate p { color: #E6EDF5; }
.card .more { margin-top: auto; font-weight: 600; color: var(--gold-deep); }
.card.slate .more { color: #A5B4FC; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { background: var(--sand); border-radius: var(--radius); padding: 24px; }
.stat:nth-child(2) { background: var(--mist); }
.stat:nth-child(3) { background: var(--sage); }
.stat:nth-child(4) { background: var(--clay); }
.stat-icon { display: flex; width: 32px; height: 32px; margin-bottom: 18px; color: var(--gold); }
.stat-icon svg { width: 32px; height: 32px; display: block; }
.stat b { display: block; font-size: 40px; font-weight: 900; letter-spacing: -0.04em; color: var(--ink); }
.stat span { color: var(--body); }

.team { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.person { background: var(--sand); border-radius: var(--radius); overflow: hidden; }
.person:nth-child(4n+2) { background: var(--mist); }
.person:nth-child(4n+3) { background: var(--sage); }
.person:nth-child(4n+4) { background: var(--clay); }
.person img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 18%;
  background: var(--stone);
}
.team.team-home .person,
.team.team-home .person:nth-child(4n+2),
.team.team-home .person:nth-child(4n+3),
.team.team-home .person:nth-child(4n+4) {
  background: #E8F4F8;
}
.person div { padding: 10px 12px 14px; }
.person h3 { font-size: 15px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.person p { color: var(--mute); margin-top: 4px; font-size: 13px; }

.logos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: center; }
.logo-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 140px;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
}
.logos img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
  border-radius: 0;
  padding: 0;
  transform: scale(1.26);
}

.news-card { background: var(--mist); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.news-card:nth-child(3n+2) { background: var(--sand); }
.news-card:nth-child(3n+3) { background: var(--sage); }
.news-card img {
  width: 100%;
  height: 210px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  flex: none;
}
.news-card div { padding: 18px 20px 22px; }
.news-card h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.news-card p { color: var(--body); }
.news-card time { color: var(--mute); font-size: 13px; }

.prose { max-width: 760px; }
.prose h2 { font-size: 32px; margin: 28px 0 10px; }
.prose h3 { font-size: 22px; font-weight: 700; margin: 22px 0 8px; letter-spacing: -0.02em; }
.prose p, .prose li { color: var(--body); font-size: 17px; line-height: 1.6; }
.prose p + p, .prose ul { margin-top: 12px; }
.prose ul { padding-left: 18px; }
.quote {
  background: var(--gold-pale);
  border-radius: var(--radius);
  padding: 24px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.45;
}
.page-hero { background: var(--stone); padding: 56px 0 40px; }
.page-hero h1 { font-size: clamp(40px, 5vw, 64px); max-width: 16ch; }

.form { display: grid; gap: 14px; }
.contact-form { padding: 32px; background: var(--canvas); }
.contact-form h2 { font-size: 32px; margin-bottom: 4px; }
.contact-facts { display: grid; gap: 12px; }
.contact-facts .card { min-height: 0; }
.contact-facts .card p { color: var(--ink); }
.field { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.field-error { color: #d03238; font-size: 14px; font-weight: 600; line-height: 1.4; }
.field-error:empty { display: none; }
.phone-row { display: grid; grid-template-columns: minmax(150px, 46%) 1fr; gap: 8px; }
.phone-row select, .form select {
  width: 100%;
  border: 1.5px solid var(--ink);
  border-radius: 12px;
  padding: 12px 10px;
  font: inherit;
  font-weight: 500;
  color: var(--ink);
  background: var(--canvas);
}
input.is-invalid, textarea.is-invalid, select.is-invalid { border-color: #d03238; }
label { font-size: 14px; font-weight: 600; display: grid; gap: 6px; }
input, textarea {
  width: 100%;
  border: 1.5px solid var(--ink);
  border-radius: 12px;
  padding: 12px 16px;
  font: inherit;
  color: var(--ink);
  background: var(--canvas);
}
textarea { min-height: 140px; resize: vertical; }
.note {
  background: var(--gold-pale);
  color: var(--ink);
  border-radius: 16px;
  padding: 14px 16px;
  display: none;
}
.note.show { display: block; }
.note.is-error { color: #b42318; background: #fef3f2; }
.contact-form button:disabled { cursor: wait; opacity: .65; }
.contact-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 24px; align-items: start; }
.contact-card { background: var(--slate); color: var(--stone); border-radius: var(--radius); padding: 28px; }
.contact-card h2, .contact-card a { color: var(--gold); }
.contact-card p { margin-top: 10px; color: var(--stone); }

footer { background: var(--slate); color: var(--stone); padding: 56px 0 28px; }
footer a { color: var(--stone); text-decoration: none; }
footer a:hover { color: var(--gold); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 28px; }
footer h3 { color: #fff; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 12px; }
footer li { list-style: none; margin: 8px 0; }
footer ul { margin: 0; padding: 0; }
.legal { margin-top: 32px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.12); color: var(--stone); font-size: 13px; line-height: 1.6; }
.legal p { margin: 0 0 6px; }

@media (max-width: 980px) {
  .hero-grid, .grid-3, .contact-grid, .foot-grid { grid-template-columns: 1fr 1fr; }
  .grid-2, .stats { grid-template-columns: 1fr 1fr; }
  .team { grid-template-columns: repeat(3, 1fr); }
  .logos, .mega-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  .nav-links {
    display: none;
    position: absolute;
    left: 16px; right: 16px; top: 76px;
    background: var(--canvas);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 12px;
    flex-direction: column;
    align-items: stretch;
    max-height: calc(100vh - 96px);
    overflow: auto;
  }
  .nav-links.open { display: flex; }
  .mega {
    position: static;
    display: none;
    min-height: 0;
    background: transparent;
    padding: 4px 0 8px;
    border: 0;
  }
  .drop:hover .mega { display: none; }
  .drop.is-open .mega { display: block; }
  .drop > button::after { display: none; }
  .mega-grid { grid-template-columns: 1fr; }
  .mega-item { min-height: 0; padding: 14px 16px; }
  .nav-links { top: calc(100% - 8px); }
  .nav-links a.nav-cta { margin: 8px 0 0; width: auto; align-self: flex-start; }
  .hero-grid, .grid-3, .grid-2, .contact-grid, .foot-grid, .section-head, .mega-grid {
    grid-template-columns: 1fr;
    display: grid;
  }
  .team, .logos, .stats { grid-template-columns: 1fr 1fr; }
  .section-head { align-items: start; }
  .hero { padding: 40px 0; }
  .logo-tile { height: 110px; }
  .logos img { height: 100%; transform: scale(1.26); }
  .phone-row { grid-template-columns: 1fr; }
  .contact-form { padding: 20px; }
  .panel .row { align-items: start; }
  .panel .row strong { text-align: right; max-width: 62%; }
  .prose, .lead, .legal, .contact-facts p { overflow-wrap: anywhere; }
}
