@font-face {
  font-family: "Source Serif 4";
  src: url("assets/fonts/source-serif-4-latin-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-latin-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root {
  color-scheme: light;
  --navy: #152a45;
  --slate: #526173;
  --surface: #f1f4f8;
  --line: #c6cfda;
  --white: #fff;
  --teal: #176b6d;
  --teal-soft: #e9f3f2;
  --font-heading: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-family: var(--font-body);
  font-optical-sizing: auto;
  color: var(--navy);
  background: var(--white);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
body { margin: 0; }
main, .services, .approach { scroll-margin-top: 120px; }
[hidden] { display: none !important; }
button { font: inherit; }
button:focus-visible { outline: 3px solid #477db4; outline-offset: 5px; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid #477db4; outline-offset: 5px; }
.container { width: min(calc(100% - max(clamp(40px, 10vw, 144px), calc(40px + env(safe-area-inset-left, 0px) + env(safe-area-inset-right, 0px)))), 1280px); margin-inline: auto; }
.skip-link { position: absolute; top: -100px; left: 16px; padding: 14px 20px; background: var(--navy); color: white; z-index: 20; }
.skip-link:focus { top: 12px; }
.site-header { position: sticky; top: 0; z-index: 10; background: var(--white); transition: transform 220ms ease, box-shadow 180ms ease; }
.site-header.header-hidden { transform: translateY(-100%); }
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.header-inner { min-height: 110px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; column-gap: 24px; row-gap: 12px; }
.nav-toggle { min-width: 90px; min-height: 44px; padding: 10px 12px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid var(--line); border-radius: 5px; color: var(--navy); background: var(--white); cursor: pointer; font-size: 14px; }
.nav-toggle svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.nav-toggle path { transform-origin: 12px 12px; transition: transform 180ms ease, opacity 180ms ease; }
.nav-toggle .menu-line-top { transform-origin: 12px 7px; }
.nav-toggle .menu-line-bottom { transform-origin: 12px 17px; }
.menu-open .menu-line-top { transform: translateY(5px) rotate(45deg); }
.menu-open .menu-line-middle { opacity: 0; }
.menu-open .menu-line-bottom { transform: translateY(-5px) rotate(-45deg); }
.wordmark { display: block; width: clamp(240px, 25vw, 320px); max-width: 100%; line-height: 0; flex-shrink: 0; }
.wordmark img { display: block; width: 100%; height: auto; }
nav { display: flex; align-items: center; gap: clamp(18px, 2.5vw, 36px); font-size: 15px; }
nav > a:not(.button) { display: inline-flex; align-items: center; min-height: 44px; }
nav > a:not(.button):hover { text-decoration: underline; text-underline-offset: 5px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 20px; min-height: 48px; padding: 14px 24px; border: 1px solid var(--navy); border-radius: 5px; font-size: 15px; font-weight: 500; line-height: 1.2; }
.button-outline { white-space: nowrap; }
.button-outline:hover { background: var(--surface); }
.button-primary { color: var(--white); background: var(--navy); min-height: 56px; }
.button-primary:hover { background: #243f60; }
.button svg { width: 21px; height: 21px; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 90px); padding-block: clamp(40px, 5vw, 72px) clamp(64px, 7vw, 96px); align-items: center; }
h1, h2, h3 { font-family: var(--font-heading); font-weight: 500; }
h1 { font-size: clamp(42px, 5.7vw, 82px); line-height: 1.05; letter-spacing: -.055em; margin: 0; }
.hero-description { font-size: 20px; line-height: 1.55; color: var(--slate); margin: 32px 0 36px; max-width: 500px; }
.hero-media { margin: 0; position: relative; isolation: isolate; padding: 0 0 24px 24px; }
.hero-media::before { content: ""; position: absolute; inset: 28px 24px 0 0; background: var(--teal-soft); border-radius: 4px 4px 72px 4px; z-index: -1; }
.hero-media img { display: block; width: 100%; height: auto; aspect-ratio: 1.08; object-fit: cover; object-position: center 68%; border-radius: 4px 4px 64px 4px; }
.hero-media figcaption { margin-top: 18px; color: var(--teal); font-family: var(--font-heading); font-size: clamp(23px, 2.3vw, 32px); line-height: 1.2; letter-spacing: -.025em; }
.services { background: var(--surface); padding-block: 76px 82px; }
h2 { font-size: clamp(32px, 4.2vw, 60px); line-height: 1.12; letter-spacing: -.05em; margin: 0; }
.section-description { color: var(--slate); font-size: 22px; line-height: 1.5; margin: 18px 0 56px; max-width: 60ch; }
.service-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.service-list article { padding-inline: 36px; border-left: 1px solid var(--line); }
.service-list article:first-child { padding-left: 0; border: 0; }
.service-list article:last-child { padding-right: 0; }
h3 { margin: 0 0 20px; font-size: clamp(28px, 2.6vw, 36px); letter-spacing: -.035em; line-height: 1.2; }
.service-list h3::before { content: ""; display: block; width: 30px; height: 3px; margin-bottom: 20px; background: var(--teal); }
.service-list p, .approach-copy p { margin: 0; font-size: 19px; line-height: 1.6; color: var(--slate); }
.service-copy ul { margin: 24px 0 0; padding-left: 20px; color: var(--slate); font-size: 16px; line-height: 1.6; }
.service-copy li + li { margin-top: 10px; }
.approach { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 8vw, 120px); padding-block: 95px; align-items: center; }
.approach h2 { font-size: clamp(32px, 3.5vw, 50px); }
.approach-media { margin: 32px 0 0; }
.approach-media img { width: 100%; height: auto; display: block; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 35%; border-radius: 4px 40px 4px 4px; }
.approach-copy p + p { margin-top: 20px; }
.site-footer { border-top: 1px solid var(--line); padding-block: 26px 36px; }
.footer-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px 24px; }
.footer-row p, .copyright { font-size: 13px; color: var(--slate); line-height: 1.6; }
.footer-row p { margin: 0; }
.footer-row span { margin-inline: 14px; }
.copyright { margin: 0; }
.photo-credit { margin: 20px 0 0; color: var(--slate); font-size: 12px; line-height: 1.6; }
.photo-credit a { text-decoration: underline; text-underline-offset: 3px; }
.chameleon-trail { position: fixed; top: 150px; bottom: 48px; left: max(9px, calc((100vw - 1440px) / 2)); width: 48px; z-index: 5; pointer-events: none; --chameleon-angle: 90deg; --chameleon-facing: 1; }
.chameleon-walker { position: absolute; top: 0; width: 48px; height: 48px; }
.chameleon-walker img { display: block; width: 100%; height: 100%; transform: rotate(var(--chameleon-angle)) scaleX(var(--chameleon-facing)); }
.chameleon-walker.is-walking img { animation: chameleon-step 380ms ease-in-out infinite alternate; }
@keyframes chameleon-step { from { transform: rotate(calc(var(--chameleon-angle) - 5deg)) scaleX(var(--chameleon-facing)) translateY(-2px); } to { transform: rotate(calc(var(--chameleon-angle) + 5deg)) scaleX(var(--chameleon-facing)) translateY(2px); } }
@media (max-width: 1100px) {
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
  .chameleon-trail { top: auto; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); left: calc(20px + env(safe-area-inset-left, 0px)); right: calc(20px + env(safe-area-inset-right, 0px)); width: auto; height: 40px; --chameleon-angle: 0deg; --fade-extension: max(96px, env(safe-area-inset-bottom, 0px)); }
  /* Keep the fill independent of the masked blur, and extend both under browser chrome. */
  .chameleon-trail::before, .chameleon-trail::after {
    content: ""; position: fixed; left: 0; right: 0;
    bottom: calc(0px - var(--fade-extension)); height: calc(88px + env(safe-area-inset-bottom, 0px) + var(--fade-extension));
  }
  .chameleon-trail::before {
    z-index: -1;
    background: linear-gradient(to bottom, transparent, rgb(255 255 255 / 45%) 40px, rgb(255 255 255 / 90%) 88px);
  }
  .chameleon-trail::after {
    z-index: -2;
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 62px); mask-image: linear-gradient(to bottom, transparent, black 62px);
  }
  @supports (height: 100lvh) and (height: 100svh) {
    .chameleon-trail { --fade-extension: max(96px, env(safe-area-inset-bottom, 0px), calc(100lvh - 100svh)); }
  }
  .chameleon-walker { width: 40px; height: 40px; }
}
@media (max-width: 1000px) {
  .header-inner { min-height: 96px; }
  .wordmark { width: 250px; }
  nav { gap: 20px; font-size: 14px; }
  .button { padding: 12px 18px; font-size: 14px; }
  .hero-description { font-size: 18px; }
  .service-list article { padding-inline: 24px; }
  .service-list p, .approach-copy p { font-size: 17px; }
}
@media (max-width: 820px) {
  .service-list { grid-template-columns: 1fr; gap: 28px; }
  .service-list article, .service-list article:first-child, .service-list article:last-child { display: grid; grid-template-columns: minmax(180px, .65fr) minmax(0, 1.35fr); gap: 16px 28px; padding: 28px 0 0; border: 0; border-top: 1px solid var(--line); }
  .service-list article:first-child { padding-top: 0; border: 0; }
  .service-list h3 { margin-bottom: 0; }
  .approach { grid-template-columns: 1fr; gap: 28px; padding-block: 64px; }
  .approach-copy { max-width: 60ch; }
}
@media (max-width: 760px) {
  .header-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; min-height: 88px; column-gap: 16px; row-gap: 0; padding-block: 8px; }
  .header-inner .wordmark { width: min(260px, 100%); }
  nav { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: stretch; gap: 4px; width: 100%; max-height: calc(100svh - 96px); overflow-y: auto; overscroll-behavior: contain; padding-block: 16px; margin-top: 8px; border-top: 1px solid var(--line); }
  nav > a:not(.button) { min-height: 48px; padding: 10px 12px; border-radius: 4px; }
  nav > a:not(.button):hover { background: var(--surface); }
  nav .button { min-height: 48px; margin-top: 8px; }
  .hero { grid-template-columns: 1fr; gap: 36px; padding-block: 48px 56px; }
  h1 { font-size: clamp(40px, 9vw, 64px); }
  .hero-description { max-width: 42ch; margin-block: 24px 28px; }
  .hero-media { padding: 0 0 18px 18px; }
  .hero-media img { aspect-ratio: 4 / 3; border-bottom-right-radius: 48px; }
  .services { padding-block: 52px; }
  .section-description { font-size: 18px; margin-block: 16px 36px; }
  .approach { padding-block: 56px; }
  .footer-row { align-items: flex-start; flex-direction: column; gap: 14px; }
  .footer-row span { margin-inline: 10px; }
}
@media (max-width: 640px) {
  .service-list article, .service-list article:first-child, .service-list article:last-child { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 480px) {
  .header-inner { min-height: 80px; column-gap: 10px; }
  .nav-toggle { min-width: 80px; padding-inline: 10px; font-size: 13px; gap: 6px; }
  .hero { padding-top: 36px; }
  h1 { font-size: clamp(38px, 10vw, 48px); }
  .hero-description { font-size: 17px; }
  .button-primary { width: 100%; }
  h3 { font-size: 29px; }
  .site-footer { padding-block: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .site-header, .nav-toggle path { transition: none; }
  .chameleon-trail { display: none; }
  .chameleon-walker.is-walking img { animation: none; }
}
