@charset "UTF-8";
@import url("https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@400;500;600;700&display=swap");
:root {
  --bg: #ffffff;
  --bg-soft: #f9fafe;
  --ink: #111419;
  --muted: #5b6474;
  --brand: #f0be5b;
  --blue: #025278;
  --blue-dark: #01405f;
  --border: #e1e6ee;
  --green: #1f7659;
  --cream: #fffaf0;
  --max: 1232px;
  --shadow: 0 18px 50px rgba(17, 20, 25, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Instrument Sans", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

p {
  color: var(--muted);
  margin: 0 0 1rem;
}

h1,
h2,
h3,
h4 {
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.6rem, 5vw, 4.75rem);
}

h2 {
  font-size: clamp(2rem, 3.4vw, 3.25rem);
}

h3 {
  font-size: clamp(1.2rem, 1.7vw, 1.55rem);
}

.container {
  width: min(calc(100% - 4rem), var(--max));
  margin-inline: auto;
}

.section {
  padding: 6.5rem 0;
  border-top: 1px solid var(--border);
}

.section.cream,
.cream {
  background: var(--bg-soft);
}

.green-light {
  background: #f1f8f5;
}

.section-heading,
.section-intro {
  max-width: 760px;
  margin: 0 auto 3.25rem;
  text-align: center;
}

.section-heading h2,
.section-intro h2 {
  margin: 0.7rem 0 1rem;
}

.eyebrow {
  display: inline-block;
  color: #2c3847;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.gold-text {
  color: var(--brand) !important;
}

.green-text {
  color: var(--green);
}

.lead {
  font-size: 1.12rem;
  color: #303846;
}

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

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 9999;
  background: white;
  padding: 0.75rem 1rem;
  border-radius: 4px;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  color: #fff;
  background: transparent;
  transition: 0.3s ease;
}

.site-header.scrolled,
body:not(:has(.home-hero)) .site-header {
  background: #ffffff;
  color: var(--ink);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(17, 20, 25, 0.06);
}

.nav-wrap {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: var(--ink);
  font-weight: 700;
  border-radius: 3px;
}

.brand strong {
  display: block;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.brand small {
  display: block;
  margin-top: 1px;
  font-size: 0.55rem;
  letter-spacing: 0.17em;
  opacity: 0.72;
}

#primary-nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

#primary-nav > a,
.dropdown-toggle {
  border: 0;
  background: none;
  color: inherit;
  font-size: 0.9rem;
  font-weight: 500;
}

#primary-nav > a:hover,
#primary-nav > a[aria-current="page"],
.dropdown-toggle:hover {
  color: var(--brand);
}

.dropdown {
  position: relative;
}

.dropdown-toggle {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
  padding: 1.5rem 0;
}

.dropdown-toggle span {
  font-weight: 700;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% - 0.4rem);
  left: 50%;
  width: 330px;
  padding: 0.65rem;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 10px);
  transition: 0.2s ease;
}

.dropdown:hover .dropdown-menu,
.dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.dropdown-menu a {
  display: block;
  padding: 0.72rem 0.8rem;
  font-size: 0.88rem;
  border-radius: 3px;
}

.dropdown-menu a:hover {
  background: var(--bg-soft);
  color: var(--blue);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 0;
  background: var(--blue);
  border-radius: 4px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #fff;
  transition: 0.25s ease;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.7rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-gold {
  background: var(--brand);
  color: var(--ink);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.btn-gold:hover {
  background: #f5c86d;
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
}

.btn-outline-dark {
  border-color: #cbd3df;
  color: var(--ink);
}

.btn-small {
  min-height: 38px;
  padding: 0.55rem 0.85rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.text-link {
  color: var(--blue);
  font-weight: 600;
}

.hero {
  position: relative;
  overflow: hidden;
}

.home-hero {
  min-height: 690px;
  padding: 9.5rem 0 5.5rem;
  color: #fff;
  background: var(--blue);
}

.home-hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -48% 45%;
  width: 650px;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transform: rotate(35deg);
}

.home-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 4rem;
}

.home-hero h1 {
  max-width: 680px;
  margin: 1rem 0 1.4rem;
  font-size: clamp(2.5rem, 4.15vw, 4rem);
}

.home-hero h1 em {
  color: var(--brand);
  font-style: normal;
}

.home-hero p {
  color: rgba(255, 255, 255, 0.78);
  max-width: 650px;
}

.hero-lead {
  font-size: 1.08rem;
}

.hero-visual {
  position: relative;
  min-height: 420px;
  display: grid;
  place-items: center;
}

.hero-visual img {
  width: min(100%, 600px);
  filter: drop-shadow(0 24px 35px rgba(0, 0, 0, 0.14));
}

.hero-orbit {
  position: absolute;
  right: -90px;
  top: 110px;
  width: 480px;
  height: 480px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.inner-hero {
  padding: 10rem 0 5.5rem;
  color: #fff;
  background: var(--blue);
}

.hero-inner {
  max-width: 830px;
}

.inner-hero h1 {
  margin: 0.85rem 0 1.2rem;
}

.inner-hero p {
  max-width: 700px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.08rem;
}

.cred-strip {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}

.cred-items {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.cred-items span {
  padding: 1.15rem 0.75rem;
  text-align: center;
  color: #3d4757;
  font-size: 0.8rem;
  border-inline-end: 1px solid var(--border);
}

.cred-items span:first-child {
  border-inline-start: 1px solid var(--border);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.split h2 {
  margin: 0.8rem 0 1.5rem;
}

.feature-img {
  width: 100%;
  min-height: 430px;
  object-fit: cover;
  background: var(--bg-soft);
  border: 1px solid var(--border);
}

.quote {
  margin-top: 1.5rem;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--brand);
  background: var(--bg-soft);
  color: #313a48;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.service-card {
  position: relative;
  min-height: 320px;
  padding: 2rem;
  background: #fff;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: 0.25s ease;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  z-index: 2;
}

.service-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 2.6rem;
  background: #f3f7fb;
  color: var(--blue);
  border: 1px solid var(--border);
  font-weight: 700;
}

.service-index {
  position: absolute;
  top: 2rem;
  right: 2rem;
  color: #a7afbb;
  font-size: 0.75rem;
}

.service-card h3 {
  margin-bottom: 0.8rem;
}

.service-card p {
  font-size: 0.93rem;
}

.service-list {
  display: grid;
  gap: 0;
  margin-top: 2.5rem;
  border-top: 1px solid var(--border);
}

.service-row {
  display: grid;
  grid-template-columns: 48px 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.service-row .service-index {
  position: static;
  align-self: start;
  padding-top: 0.35rem;
}

.service-row .service-icon {
  margin: 0;
  align-self: start;
}

.service-row h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.service-row p {
  max-width: 760px;
  margin: 0;
}

.service-row .btn {
  white-space: nowrap;
}

.service-list li {
  color: var(--muted);
  padding-left: 1.5rem;
  position: relative;
}

.service-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--border);
  background: #fff;
}

.step {
  padding: 2rem 1.5rem;
  border-right: 1px solid var(--border);
}

.step:last-child {
  border-right: 0;
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 2.5rem;
  border: 1px solid var(--border);
  color: var(--blue);
  font-size: 0.75rem;
}

.step h3 {
  font-size: 1.05rem;
  margin-bottom: 0.7rem;
}

.step p {
  font-size: 0.9rem;
}

.process-note {
  margin-top: 1.25rem;
  text-align: center;
  color: var(--muted);
}

.industry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.industry-card {
  padding: 1.4rem;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: #fff;
}

.industry-dot {
  width: 8px;
  height: 8px;
  margin-bottom: 1rem;
  background: var(--brand);
  border-radius: 50%;
}

.industry-card h3 {
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.capture-band {
  padding: 6rem 0;
  color: #fff;
  background: #0d1d33;
}

.capture-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: end;
  margin-bottom: 3rem;
}

.capture-top h2 {
  margin: 0.75rem 0 0;
}

.capture-top p {
  color: rgba(255, 255, 255, 0.7);
}

.capture-flow,
.capture-stages {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.capture-flow > *,
.capture-stages > * {
  padding: 1.25rem 0.8rem;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
}

.capture-flow > *:last-child,
.capture-stages > *:last-child {
  border-right: 0;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.why-card {
  min-height: 220px;
  padding: 2rem;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: #fff;
}

.why-card h3 {
  margin: 0.8rem 0;
}

.cta {
  position: relative;
  overflow: hidden;
  padding: 6rem 0;
  text-align: center;
  background: #e1e6ee;
}

.cta::before,
.cta::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  border: 2px solid rgba(2, 82, 120, 0.08);
  transform: rotate(35deg);
}

.cta::before {
  left: -50px;
  bottom: -60px;
}

.cta::after {
  right: -50px;
  top: -60px;
}

.cta h2 {
  max-width: 760px;
  margin: 0 auto 1rem;
}

.cta p {
  max-width: 650px;
  margin: 0 auto 1.75rem;
}

.pill-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.pill,
.pill-group {
  padding: 1rem 1.2rem;
  border: 1px solid var(--border);
  background: #fff;
}

.four-stages {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.four-stages > * {
  padding: 1.5rem;
  border: 1px solid var(--border);
  background: #fff;
}

.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.compare > * {
  padding: 2rem;
  border: 1px solid var(--border);
  background: #fff;
}

.check {
  color: var(--green);
  font-weight: 700;
}

.disclaimer {
  padding: 1.2rem;
  background: #fff8e8;
  border: 1px solid #f1dfb9;
  color: #65552f;
}

.leader-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.leader-card {
  padding: 2rem;
  border: 1px solid var(--border);
  background: #fff;
}

.avatar {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  margin-bottom: 1.5rem;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  border-radius: 50%;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  border: 1px solid var(--border);
  background: #fff;
}

.contact-detail {
  padding: 3rem;
  background: var(--blue);
  color: #fff;
}

.contact-detail p,
.contact-detail a {
  color: rgba(255, 255, 255, 0.78);
}

.contact-form {
  padding: 3rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.form-grid .full {
  grid-column: 1/-1;
}

.contact-form label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: #fff;
  color: var(--ink);
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(2, 82, 120, 0.18);
  border-color: var(--blue);
}

.radio {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.legal-intro {
  max-width: 760px;
}

.legal-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 4rem;
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: 105px;
  padding: 1.25rem;
  border: 1px solid var(--border);
  background: var(--bg-soft);
}

.legal-toc a {
  display: block;
  padding: 0.4rem 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.legal-section {
  padding-bottom: 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.legal-section h2 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.footer {
  background: #fff;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
}

.footer-grid > div {
  min-height: 220px;
  padding: 2rem;
  border-right: 1px solid var(--border);
}

.footer-grid > div:first-child {
  border-left: 1px solid var(--border);
}

.footer h3,
.footer h4 {
  margin-bottom: 1rem;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.footer p,
.footer a {
  font-size: 0.88rem;
  color: var(--muted);
}

.footer a {
  display: block;
  margin: 0.5rem 0;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 0;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  margin: 0;
  font-size: 0.78rem;
}

@media (max-width: 980px) {
  .container {
    width: min(calc(100% - 2rem), var(--max));
  }

  .nav-cta {
    display: none;
  }

  .menu-toggle {
    display: block;
    z-index: 1002;
  }

  #primary-nav {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.25rem;
    background: var(--ink);
    color: #fff;
    transform: translateY(-105%);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
  }

  #primary-nav.active,
  #primary-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  #primary-nav > a,
  .dropdown-toggle {
    font-size: 1.25rem;
  }

  .dropdown-toggle {
    padding: 0.4rem;
  }

  .dropdown-menu {
    position: static;
    width: min(90vw, 420px);
    max-height: 0;
    overflow: hidden;
    padding: 0;
    border: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: transparent;
    color: #fff;
    transition: 0.25s ease;
  }

  .dropdown.open .dropdown-menu {
    max-height: 420px;
    padding: 0.5rem;
    transform: none;
  }

  .dropdown-menu a {
    text-align: center;
    font-size: 0.85rem;
  }

  .home-hero-grid,
  .split,
  .capture-top,
  .contact-layout,
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .home-hero {
    padding-top: 8.5rem;
  }

  .hero-visual {
    min-height: 320px;
  }

  .cred-items {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .step {
    border-bottom: 1px solid var(--border);
  }

  .industry-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .capture-flow,
  .capture-stages {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .legal-toc {
    position: static;
  }
}

@media (max-width: 820px) {
  .service-row {
    grid-template-columns: 42px 46px minmax(0, 1fr);
    gap: 1rem;
  }

  .service-row .btn {
    grid-column: 3;
    justify-self: start;
    margin-top: 0.25rem;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 4.5rem 0;
  }

  .nav-wrap {
    min-height: 68px;
  }

  .brand small {
    display: none;
  }

  .home-hero {
    min-height: auto;
    padding: 7.5rem 0 4rem;
  }

  .home-hero-grid {
    gap: 2rem;
  }

  .hero-visual {
    min-height: 240px;
  }

  .inner-hero {
    padding: 7.5rem 0 4rem;
  }

  .cred-items,
  .service-grid,
  .industry-grid,
  .why-grid,
  .leader-grid,
  .pill-grid,
  .four-stages,
  .compare,
  .form-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .service-row {
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: start;
    gap: 0.85rem 1rem;
    padding: 1.5rem 0;
  }

  .service-row .service-index {
    grid-column: 1;
    grid-row: 1;
  }

  .service-row .service-icon {
    grid-column: 1;
    grid-row: 2;
    width: 38px;
    height: 38px;
  }

  .service-row > div {
    grid-column: 2;
    grid-row: 1 / span 2;
    min-width: 0;
  }

  .service-row .btn {
    grid-column: 2;
    grid-row: 3;
    justify-self: start;
    white-space: normal;
  }

  .cred-items span {
    border-left: 1px solid var(--border);
  }

  .service-card {
    min-height: auto;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .step {
    border-right: 0;
  }

  .capture-flow,
  .capture-stages {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-detail,
  .contact-form {
    padding: 1.5rem;
  }

  .footer-grid > div {
    min-height: auto;
    border-left: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }

  .footer-bottom {
    flex-direction: column;
  }

  .actions .btn {
    width: 100%;
  }
}

/* ========================================
   Reference design refinements
   ======================================== */ /* Keep text readable on dark and colored surfaces. */
.home-hero .eyebrow,
.inner-hero .eyebrow,
.capture-band .eyebrow,
.contact-detail .eyebrow {
  color: #ffffff;
}

.home-hero p,
.inner-hero p {
  color: rgba(255, 255, 255, 0.88);
}

.capture-band p,
.contact-detail p,
.contact-detail a {
  color: rgba(255, 255, 255, 0.82);
}

/* Match the reference more closely: crisp white nav after scroll. */
.site-header.scrolled {
  background: #ffffff;
  color: var(--ink);
}

.site-header.scrolled .brand small {
  opacity: 0.78;
}

/* Stronger visual separation without making the site feel heavy. */
.section.cream,
.cream,
.cred-strip {
  background: #f9fafe;
}

.service-card,
.industry-card,
.why-card,
.leader-card,
.pill,
.pill-group,
.four-stages > *,
.compare > * {
  color: var(--ink);
  background: #ffffff;
}

.cta {
  color: var(--ink);
  background: #e7ebf1;
}

.cta p {
  color: #4e5868;
}

.footer {
  color: var(--ink);
  background: #ffffff;
}

@media (max-width: 640px) {
  .home-hero h1 {
    font-size: clamp(2.25rem, 10vw, 3.1rem);
  }
}

/* ========================================
   Contact page refinements
   ======================================== */
.contact-hero {
  padding: 8.25rem 0 3.75rem;
}

.contact-hero .hero-inner {
  max-width: 720px;
}

.contact-hero h1 {
  max-width: 680px;
  margin: 0.75rem 0 1rem;
  font-size: clamp(2.35rem, 4vw, 3.65rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.contact-hero p {
  max-width: 620px;
}

#consultation.section {
  padding: 4.75rem 0;
}

.contact-layout {
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
  align-items: stretch;
  overflow: hidden;
  border-color: var(--border);
  background: #ffffff;
}

.contact-layout > div:first-child {
  display: flex;
  flex-direction: column;
  padding: 2.5rem;
  background: #f9fafe;
  border-right: 1px solid var(--border);
}

.contact-layout > div:first-child h2 {
  margin: 0.75rem 0 1rem;
  font-size: clamp(1.75rem, 2.8vw, 2.5rem);
}

.contact-layout > div:first-child > p {
  max-width: 34rem;
}

.contact-detail {
  margin-top: 1.75rem;
  padding: 1.25rem 1.35rem;
  background: var(--blue);
  border-radius: 4px;
}

.contact-detail strong,
.contact-detail a {
  display: block;
}

.contact-detail strong {
  margin-bottom: 0.25rem;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-illustration {
  width: 100%;
  margin-top: auto;
  padding-top: 2rem;
}

.contact-form {
  display: grid;
  gap: 1.35rem;
  padding: 2.5rem;
  background: #ffffff;
}

.contact-form .form-grid {
  gap: 1.15rem;
}

.contact-form label {
  margin: 0;
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.35;
}

.contact-form label > span,
.contact-form legend > span {
  color: #a04d2d;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  display: block;
  width: 100%;
  margin-top: 0.45rem;
  padding: 0.82rem 0.9rem;
  border: 1px solid #d9dee7;
  border-radius: 4px;
  background: #fbfcfe;
  color: var(--ink);
  font: inherit;
  line-height: 1.4;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.contact-form input:hover,
.contact-form select:hover,
.contact-form textarea:hover {
  border-color: #bdc6d3;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(2, 82, 120, 0.12);
}

.contact-form textarea {
  min-height: 140px;
}

.contact-form fieldset {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #f9fafe;
}

.contact-form legend {
  width: 100%;
  padding: 0 0.35rem;
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 600;
}

.contact-form .radio {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #ffffff;
  cursor: pointer;
}

.contact-form .radio input {
  width: auto;
  margin: 0;
  accent-color: var(--blue);
}

.contact-form input[type="file"] {
  padding: 0.65rem;
  background: #ffffff;
}

.contact-form small,
.contact-form .muted {
  color: #667085;
  font-size: 0.76rem;
  line-height: 1.5;
}

.contact-form small {
  display: block;
  margin-top: 0.45rem;
}

.contact-form button[type="submit"] {
  justify-self: start;
  min-width: 180px;
  border: 0;
  cursor: pointer;
}

#form-message:not(:empty) {
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  background: #f9fafe;
}

@media (max-width: 900px) {
  .contact-hero {
    padding: 7.5rem 0 3.5rem;
  }

  #consultation.section {
    padding: 4rem 0;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-layout > div:first-child {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .contact-illustration {
    max-width: 560px;
    margin-inline: auto;
  }
}

@media (max-width: 640px) {
  .contact-hero {
    padding: 6.75rem 0 3rem;
  }

  .contact-hero h1 {
    font-size: clamp(2rem, 10vw, 2.75rem);
  }

  .contact-hero .actions {
    margin-top: 1.5rem;
  }

  #consultation.section {
    padding: 3rem 0;
  }

  .contact-layout > div:first-child,
  .contact-form {
    padding: 1.35rem;
  }

  .contact-form {
    gap: 1.1rem;
  }

  .contact-form .form-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .contact-form button[type="submit"] {
    width: 100%;
    justify-content: center;
  }
}
