:root {
  --paper: #f3f0e8;
  --paper-raised: #faf8f3;
  --paper-deep: #e7e1d4;
  --ink: #14202b;
  --ink-soft: #3e4c59;
  --muted: #5c6b78;
  --line: rgba(20, 32, 43, 0.14);
  --navy: #0c1824;
  --navy-raise: #14283a;
  --cream: #f6f3ec;
  --teal: #1a5f5a;
  --teal-deep: #124743;
  --header: 4.5rem;
  --max: 1120px;
  --gutter: clamp(1.25rem, 4vw, 2rem);
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Instrument Sans", "Avenir Next", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --shadow: 0 30px 70px rgba(0, 0, 0, 0.28);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

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

h1,
h2,
h3,
p,
ul,
ol,
dl,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration: none;
}

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

::selection {
  background: var(--teal);
  color: var(--cream);
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -3rem;
  z-index: 20;
  background: var(--cream);
  color: var(--ink);
  padding: 0.6rem 0.9rem;
}

.skip:focus {
  top: 0.75rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(var(--max), calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  height: var(--header);
  color: var(--ink);
  background: rgba(246, 243, 236, 0.96);
  box-shadow: 0 1px 0 var(--line);
  backdrop-filter: blur(14px);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  min-width: 0;
}

.brand img {
  display: block;
  height: 58px;
  width: auto;
}

.nav-panel {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-links {
  display: flex;
  gap: 1.35rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
}

.nav-links a[aria-current="true"] {
  text-decoration: underline;
  text-underline-offset: 0.35em;
}

.nav-cta {
  text-decoration: none;
  border: 1px solid currentColor;
  padding: 0.45rem 0.75rem;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-cta:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--cream);
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  padding: 0;
  cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 1rem;
  height: 1px;
  background: currentColor;
  position: relative;
}

.nav-toggle-bars {
  margin: 0 auto;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before {
  top: -5px;
}

.nav-toggle-bars::after {
  top: 5px;
}

.hero {
  background-color: var(--navy);
  background-image:
    linear-gradient(rgba(246, 243, 236, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(246, 243, 236, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  color: var(--cream);
  padding: 4.75rem 0 5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #b7d4d1;
  margin-bottom: 1.1rem;
}

.eyebrow-light {
  color: #b7d4d1;
}

h1,
h2,
.pull,
.cert-name {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.7rem, 5.4vw, 4.55rem);
  line-height: 0.96;
  max-width: 10.2em;
}

.lede,
.cta-lede {
  margin-top: 1.35rem;
  max-width: 38rem;
  font-size: 1.15rem;
  line-height: 1.5;
  color: #d5ddd8;
}

.cred {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0;
  list-style: none;
  margin-top: 1.75rem;
  max-width: 40rem;
}

.cred li {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: #e7eee9;
}

.cred li:not(:last-child)::after {
  content: "·";
  margin: 0 0.55rem;
  color: #7f9c98;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.7rem 1.05rem;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.button-primary {
  background: var(--cream);
  color: var(--navy);
}

.button-primary:hover {
  background: #fff;
}

.button-ghost {
  border: 1px solid rgba(246, 243, 236, 0.45);
  color: var(--cream);
}

.button-ghost:hover {
  border-color: var(--cream);
  background: rgba(246, 243, 236, 0.06);
}

.drawing {
  position: relative;
  margin: 0;
}

.drawing::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: 2%;
  right: 2%;
  top: 8%;
  bottom: 4%;
  background: radial-gradient(
    ellipse at 50% 44%,
    rgba(214, 228, 226, 0.5) 0%,
    rgba(26, 95, 90, 0.34) 36%,
    rgba(20, 40, 58, 0.08) 64%,
    transparent 76%
  );
  filter: blur(26px);
  pointer-events: none;
}

.drawing img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.35));
}

section[id] {
  scroll-margin-top: calc(var(--header) + 0.75rem);
}

.section {
  padding: clamp(4.5rem, 8vw, 6.5rem) 0;
}

.section-alt {
  background: var(--paper-raised);
  border-block: 1px solid var(--line);
}

.section-why {
  background: var(--paper-deep);
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

.section-index {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.8rem;
}

.section-index span {
  color: var(--ink);
}

h2 {
  font-size: clamp(2.1rem, 4vw, 3.15rem);
  line-height: 1.02;
}

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

.service {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  padding: 1.4rem 1.3rem 1.5rem;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.section-alt .service,
.service {
  background: var(--paper-raised);
}

#services .service {
  background: #faf8f3;
}

.service-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--teal);
  margin-bottom: 1.25rem;
}

.service h3,
.split-label {
  font-size: 1.2rem;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.service p {
  margin-top: 0.8rem;
  margin-bottom: 1.2rem;
  color: var(--ink-soft);
}

.service ul,
.plain-list,
.qual-list {
  list-style: none;
}

.service ul {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.service li,
.qual-list li,
.plain-list li {
  position: relative;
  padding-left: 0.95rem;
  color: var(--ink);
}

.service li + li,
.qual-list li + li,
.plain-list li + li {
  margin-top: 0.55rem;
}

.service li::before,
.qual-list li::before,
.plain-list li::before {
  content: "";
  width: 0.35rem;
  height: 1px;
  background: var(--teal);
  position: absolute;
  left: 0;
  top: 0.72em;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 4rem;
}

.split-label {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.98rem;
  max-width: 22rem;
  margin-bottom: 1.1rem;
}

.plain-list li {
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.plain-list li + li {
  margin-top: 0.85rem;
}

.pull {
  margin-top: 2.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  line-height: 1.3;
  max-width: 40rem;
}

.qual-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(240px, 0.7fr);
  gap: 1rem;
  align-items: stretch;
}

.qual-list {
  border: 1px solid var(--line);
  background: var(--paper-raised);
  padding: 1.5rem 1.4rem;
}

.qual-list li {
  font-size: 1.12rem;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
  padding-left: 0;
  border-bottom: 1px solid var(--line);
}

.qual-list li::before {
  display: none;
}

.qual-list li:first-child {
  padding-top: 0;
}

.qual-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.cert {
  background: var(--navy);
  color: var(--cream);
  padding: 1.5rem 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 16rem;
}

.cert-kicker {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #b7d4d1;
  margin-bottom: auto;
}

.cert-name {
  font-size: clamp(2rem, 3vw, 2.6rem);
  line-height: 1.02;
  max-width: 10ch;
}

.cert-abbr {
  margin-top: 1rem;
  font-family: var(--mono);
  letter-spacing: 0.18em;
  color: #d5ddd8;
}

.why-list {
  list-style: none;
  border-top: 1px solid rgba(20, 32, 43, 0.18);
}

.why-list li {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1rem;
  align-items: baseline;
  padding: 1.15rem 0;
  border-bottom: 1px solid rgba(20, 32, 43, 0.18);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.why-list li::before {
  content: counter(why, decimal-leading-zero);
  counter-increment: why;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--teal-deep);
}

.why-list {
  counter-reset: why;
}

.cta {
  background: var(--navy);
  color: var(--cream);
  padding: clamp(4.5rem, 8vw, 6.5rem) 0;
}

.cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(240px, 0.7fr);
  gap: 2.5rem;
  align-items: end;
}

.cta h2 {
  max-width: 14ch;
}

.contact-card {
  border: 1px solid rgba(246, 243, 236, 0.22);
  padding: 0.3rem 1.2rem;
}

.contact-card div {
  padding: 1rem 0;
}

.contact-card div + div {
  border-top: 1px solid rgba(246, 243, 236, 0.16);
}

.contact-card dt {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #b7d4d1;
}

.contact-card dd {
  margin: 0.3rem 0 0;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.contact-card a {
  color: var(--cream);
  text-decoration: none;
}

.contact-card a:hover {
  text-decoration: underline;
}

.site-footer {
  background: #08131c;
  color: #c5d0cb;
  padding: 1.6rem 0 1.8rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: end;
}

.footer-legal {
  color: var(--cream);
  font-weight: 300;
  font-size: 10px
}

.footer-desc {
  margin-top: 0.25rem;
  font-size: 0.92rem;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-panel {
    display: none;
    position: absolute;
    top: var(--header);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 0.75rem var(--gutter) 1.1rem;
    background: var(--paper-raised);
    color: var(--ink);
    border-bottom: 1px solid var(--line);
  }

  .nav-panel.is-open {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    gap: 0;
  }

  .nav-links a,
  .nav-cta {
    display: flex;
    align-items: center;
    min-height: 2.75rem;
  }

  .nav-cta {
    margin-top: 0.4rem;
    justify-content: center;
  }

  .hero-grid,
  .service-grid,
  .split,
  .qual-layout,
  .cta-inner,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    display: grid;
  }

  h1 {
    max-width: 14ch;
  }

  .drawing {
    max-width: 420px;
  }

  .cert {
    min-height: 0;
    gap: 1.5rem;
  }

  .cert-name {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .brand img {
    height: 52px;
  }

  .hero {
    padding-bottom: 3.5rem;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .why-list li {
    grid-template-columns: 2.4rem 1fr;
  }
}

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

}
