:root {
  --background: #f5f7fa;
  --surface: #ffffff;
  --surface-muted: #eaf0f6;
  --ink: #162033;
  --ink-muted: #526071;
  --border: #d7e0e9;
  --accent: #235d91;
  --accent-dark: #17466f;
  --accent-light: #dceafa;
  --navy: #142b42;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(20, 43, 66, 0.09);
  --radius-small: 0.65rem;
  --radius-large: 1.5rem;
  --container: 70rem;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  min-width: 18rem;
  background: var(--background);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

a:focus-visible {
  outline: 3px solid #f4b942;
  outline-offset: 4px;
}

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

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-small);
  background: var(--ink);
  color: var(--white);
  transform: translateY(-150%);
  transition: transform 150ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(215, 224, 233, 0.85);
  background: rgba(245, 247, 250, 0.94);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  min-height: 4.75rem;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  font-size: 0.93rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 0.5rem;
  background: var(--accent);
  color: var(--white);
  font-size: 0.9rem;
  letter-spacing: 0;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 4vw, 2rem);
}

nav a {
  color: var(--ink-muted);
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: none;
}

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

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(5rem, 10vw, 8.5rem) 0 clamp(4.5rem, 9vw, 7rem);
}

.hero::before {
  position: absolute;
  top: -14rem;
  right: -12rem;
  width: 34rem;
  height: 34rem;
  border: 1px solid rgba(35, 93, 145, 0.12);
  border-radius: 50%;
  box-shadow:
    0 0 0 5rem rgba(35, 93, 145, 0.035),
    0 0 0 10rem rgba(35, 93, 145, 0.025);
  content: "";
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(17rem, 0.75fr);
  gap: clamp(3rem, 8vw, 7rem);
  align-items: center;
}

.hero-copy,
.hero-panel {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 780;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.08;
  text-wrap: balance;
}

h1 {
  max-width: 13ch;
  margin-bottom: 1.5rem;
  font-size: clamp(2.9rem, 7vw, 5.5rem);
  letter-spacing: -0.055em;
}

h2 {
  margin-bottom: 1.25rem;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  letter-spacing: -0.04em;
}

h3 {
  margin-bottom: 0.8rem;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}

.hero-summary {
  max-width: 38rem;
  margin: 0 0 2rem;
  color: var(--ink-muted);
  font-size: clamp(1.08rem, 2vw, 1.3rem);
}

.button {
  display: inline-flex;
  min-height: 3.15rem;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.25rem;
  border-radius: var(--radius-small);
  background: var(--accent);
  box-shadow: 0 10px 26px rgba(35, 93, 145, 0.2);
  color: var(--white);
  font-weight: 720;
  text-decoration: none;
  transition:
    background 150ms ease,
    transform 150ms ease;
}

.button:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
}

.hero-panel {
  padding: clamp(1.6rem, 4vw, 2.2rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-large);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.panel-label {
  margin: 0 0 1.5rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.panel-statement {
  margin: 0 0 2.5rem;
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  font-weight: 680;
  line-height: 1.35;
}

.panel-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.panel-meta span {
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--ink-muted);
  font-size: 0.78rem;
  font-weight: 650;
}

.section {
  padding: clamp(4.5rem, 9vw, 7.5rem) 0;
}

.services {
  border-block: 1px solid var(--border);
  background: var(--surface);
}

.section-heading {
  display: grid;
  grid-template-columns: 0.55fr 1.45fr;
  gap: 2rem;
  align-items: start;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-heading h2 {
  max-width: 20ch;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.service-card {
  min-height: 18rem;
  padding: clamp(1.4rem, 3vw, 2rem);
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--surface);
}

.service-card p:last-child {
  margin-bottom: 0;
  color: var(--ink-muted);
}

.service-number {
  margin: 0 0 4rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 780;
  letter-spacing: 0.1em;
}

.about {
  background: var(--surface-muted);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2.5rem, 8vw, 7rem);
}

.about-copy {
  color: var(--ink-muted);
  font-size: clamp(1.08rem, 2vw, 1.25rem);
}

.about-copy p {
  margin-top: 0;
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.contact {
  background: var(--surface);
}

.contact-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: end;
  padding: clamp(2rem, 6vw, 4.5rem);
  border-radius: var(--radius-large);
  background: var(--navy);
  box-shadow: var(--shadow);
  color: var(--white);
}

.contact-card h2 {
  margin-bottom: 1rem;
}

.contact-card p:not(.eyebrow) {
  max-width: 40rem;
  margin-bottom: 0;
  color: #c8d6e4;
}

.eyebrow-light {
  color: #8ec5f4;
}

.contact-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  font-weight: 700;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.contact-link:hover {
  border-color: var(--white);
}

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

.footer-inner {
  display: flex;
  min-height: 6rem;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  color: var(--ink-muted);
  font-size: 0.88rem;
}

.footer-inner p {
  margin: 0;
}

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

@media (max-width: 48rem) {
  .hero-grid,
  .section-heading,
  .about-grid,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 3rem;
  }

  .section-heading {
    gap: 0;
  }

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

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

  .service-number {
    margin-bottom: 2.5rem;
  }
}

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

  .header-inner {
    min-height: 4.25rem;
    gap: 1rem;
  }

  .brand {
    font-size: 0.82rem;
  }

  .brand-mark {
    width: 1.8rem;
    height: 1.8rem;
  }

  nav {
    gap: 0.8rem;
  }

  nav a:not(:last-child) {
    display: none;
  }

  nav a {
    font-size: 0.78rem;
  }

  .hero {
    padding-top: 4rem;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(2.4rem, 12.5vw, 3.2rem);
    text-wrap: wrap;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding-block: 1.5rem;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
