:root {
  --navy: #26326e;
  --navy-deep: #19214d;
  --navy-soft: #3a4688;
  --teal: #1eaa93;
  --teal-ink: #11756a;
  --teal-wash: #e6f5f2;
  --ink: #1b2133;
  --muted: #586074;
  --line: #e2e5ee;
  --paper: #f5f6fa;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(25, 33, 77, .06), 0 8px 24px rgba(25, 33, 77, .06);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wide: 1160px;
  --narrow: 760px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--teal-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy); }

:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 { color: var(--navy-deep); line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 .6em; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.4rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.2em; }
li { margin: .3em 0; }

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

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--navy); color: var(--white); padding: .6rem 1rem; border-radius: 8px;
}
.skip-link:focus { top: 1rem; color: var(--white); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: .9rem; text-decoration: none; }
.brand img { width: 150px; }
.brand-since { font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border-left: 1px solid var(--line); padding-left: .9rem; }
.nav { display: flex; align-items: center; gap: .35rem; margin: 0; padding: 0; list-style: none; }
.nav li { margin: 0; }
.nav a {
  display: inline-block; padding: .5rem .85rem; border-radius: 999px;
  font-size: .95rem; font-weight: 600; color: var(--ink); text-decoration: none;
}
.nav a:hover { background: var(--paper); color: var(--navy); }
.nav a[aria-current="page"] { color: var(--navy); background: var(--teal-wash); }
.nav .nav-cta { background: var(--navy); color: var(--white); margin-left: .35rem; }
.nav .nav-cta:hover, .nav .nav-cta[aria-current="page"] { background: var(--navy-deep); color: var(--white); }

/* Buttons */
.button {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 1.4rem; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: 1rem; text-decoration: none; line-height: 1.2;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--teal); color: var(--navy-deep); }
.button-primary:hover { background: #24c2a8; color: var(--navy-deep); }
.button-ghost { border-color: rgba(255, 255, 255, .45); color: var(--white); }
.button-ghost:hover { border-color: var(--white); color: var(--white); background: rgba(255, 255, 255, .08); }
.button-navy { background: var(--navy); color: var(--white); }
.button-navy:hover { background: var(--navy-deep); color: var(--white); }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* Hero */
.hero, .page-hero {
  position: relative; overflow: hidden; color: #dfe4f7;
  background:
    radial-gradient(60rem 30rem at 85% -10%, rgba(30, 170, 147, .28), transparent 60%),
    radial-gradient(40rem 26rem at -10% 110%, rgba(58, 70, 136, .9), transparent 70%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
}
.hero::before, .page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .13) 1.2px, transparent 1.3px);
  background-size: 22px 22px;
  mask-image: linear-gradient(115deg, transparent 30%, #000 75%);
  -webkit-mask-image: linear-gradient(115deg, transparent 30%, #000 75%);
}
.hero .container, .page-hero .container { position: relative; }
.hero { padding: clamp(5rem, 12vw, 9rem) 0 clamp(4.5rem, 10vw, 7.5rem); }
.hero {
  background-color: var(--navy-deep);
  background-image:
    linear-gradient(90deg, rgba(25, 33, 77, .94) 0%, rgba(25, 33, 77, .78) 42%, rgba(25, 33, 77, .3) 100%),
    url("hero-world-1200.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero::before { display: none; }
@media (min-width: 900px) {
  .hero {
    background-image:
      linear-gradient(90deg, rgba(25, 33, 77, .94) 0%, rgba(25, 33, 77, .7) 40%, rgba(25, 33, 77, .15) 100%),
      url("hero-world-2400.webp");
  }
}
.hero h1, .page-hero h1 { color: var(--white); }
.hero h1 { max-width: 14ch; }
.hero-lead { font-size: clamp(1.15rem, 2vw, 1.4rem); max-width: 40ch; margin-bottom: 2rem; color: #dfe4f7; }
.eyebrow {
  display: inline-block; margin-bottom: 1.1rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-ink);
}
.hero .eyebrow, .page-hero .eyebrow { color: #7fe0cf; }
.page-hero { padding: clamp(3.5rem, 8vw, 5.5rem) 0 clamp(3rem, 6vw, 4.5rem); }
.page-hero p { font-size: 1.2rem; max-width: 46ch; margin: 0; }

/* Outcomes */
.outcomes { background: var(--navy-deep); color: #dfe4f7; border-top: 1px solid rgba(255, 255, 255, .08); }
.outcomes ul { list-style: none; margin: 0; padding: 1.1rem 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 1.5rem; }
.outcomes li { margin: 0; font-weight: 650; font-size: .98rem; display: flex; align-items: center; gap: .55rem; }
.outcomes li::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--teal); flex: none; }
@media (max-width: 760px) { .outcomes ul { justify-content: flex-start; } }

/* Where to start */
.fit dl { margin: 0; display: grid; gap: .75rem; }
.fit dl > div {
  display: grid; gap: .25rem 2rem; grid-template-columns: minmax(0, 1fr);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.25rem;
}
@media (min-width: 760px) { .fit dl > div { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: center; } }
.fit dt { font-weight: 650; color: var(--navy-deep); }
.fit dd { margin: 0; color: var(--teal-ink); font-weight: 650; }

/* Sections */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-paper { background: var(--paper); }
.section-head { max-width: 46rem; margin-bottom: 2.5rem; }
.section-head p { color: var(--muted); font-size: 1.1rem; }

.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.grid-pair { grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); align-content: start; }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.75rem; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card .eyebrow { margin-bottom: .6rem; }
.card-link { margin-top: auto; padding-top: .8rem; font-weight: 700; text-decoration: none; }
.card-link::after { content: " \2192"; }
.card-quiet { box-shadow: none; background: transparent; padding: 1.25rem 0 0; border: 0; border-top: 2px solid var(--teal); border-radius: 0; }
.card-quiet p { color: var(--muted); }

.subhead { margin-top: 3rem; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }

/* Service detail */
.service { display: grid; gap: 2rem 3rem; grid-template-columns: minmax(0, 1fr); padding: clamp(2.5rem, 6vw, 4rem) 0; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.service:first-child { border-top: 0; padding-top: 0; }
@media (min-width: 900px) { .service { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.service-intro p { color: var(--muted); }
.service-body h3 { margin-top: 0; }
.list-columns { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: 1.5rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .62em; width: .55rem; height: .55rem; border-radius: 2px; background: var(--teal); }
.note { border-left: 3px solid var(--teal); padding: .2rem 0 .2rem 1rem; color: var(--muted); }

/* Prose */
.prose h2 { margin-top: 2.2rem; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: #343b4e; }
.legal h2 { font-size: 1.35rem; margin-top: 2rem; }
.updated { color: var(--muted); font-size: .95rem; }

/* Contact */
.contact-card { background: var(--navy); color: #dfe4f7; border: 0; }
.contact-card h2, .contact-card h3 { color: var(--white); }
.contact-card a:not(.button) { color: #7fe0cf; }
.contact-email { font-size: clamp(1.3rem, 2.6vw, 1.75rem); font-weight: 750; word-break: break-word; }
.facts { display: grid; gap: .3rem 1.25rem; grid-template-columns: max-content 1fr; margin: 1.5rem 0 0; }
.facts dt { font-weight: 700; color: var(--white); }
.facts dd { margin: 0; }
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li { counter-increment: step; position: relative; padding-left: 3.2rem; margin-bottom: 1.4rem; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 2.2rem; height: 2.2rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--teal-wash); color: var(--teal-ink); font-weight: 800;
}
.steps h3 { margin-bottom: .2rem; }
.steps p { color: var(--muted); margin: 0; }

/* Call to action */
.cta { text-align: left; }
.cta .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; }
.cta h2 { color: var(--white); margin-bottom: .3rem; }
.cta p { margin: 0; max-width: 46ch; }

/* Footer */
.site-footer { background: var(--navy-deep); color: #aeb5d3; padding: 3.5rem 0 2rem; font-size: .95rem; }
.site-footer a { color: #dfe4f7; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.footer-brand img { width: 150px; margin-bottom: .9rem; }
.footer-brand p { margin: 0; max-width: 30ch; }
.footer-nav { display: flex; gap: 3rem; flex-wrap: wrap; }
.footer-nav h2 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: #7fe0cf; margin-bottom: .8rem; }
.footer-nav ul { list-style: none; padding: 0; margin: 0; }
.footer-bottom { padding-top: 1.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.footer-bottom p { margin: 0; }

/* Error page */
.error { text-align: center; padding: clamp(5rem, 14vw, 9rem) 0; }
.error .code { font-size: clamp(4rem, 12vw, 7rem); font-weight: 800; color: var(--teal); line-height: 1; margin-bottom: .5rem; }
.error .actions { justify-content: center; }

/* Small screens */
@media (max-width: 760px) {
  .site-header { position: static; }
  .site-header .container { flex-direction: column; align-items: flex-start; gap: .5rem; padding: .9rem 0; }
  .brand-since { display: none; }
  .nav { width: 100%; flex-wrap: wrap; gap: .2rem; }
  .nav a { padding: .45rem .7rem; font-size: .92rem; }
  .nav .nav-cta { margin-left: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

@media print {
  .site-header, .site-footer, .cta, .skip-link { display: none; }
  .hero, .page-hero { background: none; color: var(--ink); padding: 1rem 0; }
  .hero h1, .page-hero h1 { color: var(--navy-deep); }
  .card { box-shadow: none; }
}
