:root {
  --navy: #0B3555;
  --teal: #087E8B;
  --teal-bright: #86D8E0;
  --paper: #F7F8F6;
  --surface: #FFFFFF;
  --muted: #525D69;
  --line: #DCDEDA;
  --line-strong: #C4CAC4;
  --maxw: 1160px;
  --gutter: clamp(20px, 4vw, 40px);
  --sans: "Helvetica Neue", Helvetica, Arial, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

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

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

body {
  margin: 0;
  background-color: var(--paper);
  color: var(--navy);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.68;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3 {
  color: var(--navy);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0 0 1em;
  text-wrap: pretty;
}

a {
  color: var(--teal);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

::selection {
  background: rgba(8, 126, 139, 0.16);
  color: var(--navy);
}

img {
  max-width: 100%;
}

[id] {
  scroll-margin-top: 104px;
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 100;
  background: var(--navy);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 2px;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(247, 248, 246, 0.86);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
}

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

.site-nav {
  display: flex;
  gap: clamp(18px, 2.4vw, 34px);
}

.site-nav a {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 6px 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.site-nav a:hover {
  color: var(--navy);
  border-bottom-color: var(--teal);
  text-decoration: none;
}

/* Hero */
.hero {
  padding: clamp(56px, 8vw, 120px) 0 clamp(52px, 7vw, 96px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: clamp(40px, 5.5vw, 88px);
  align-items: center;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 1.6rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--teal);
}

.hero h1 {
  max-width: 15ch;
  margin: 0 0 0.6rem;
  font-size: clamp(2.15rem, 5.6vw, 3.9rem);
  letter-spacing: -0.03em;
  line-height: 1.03;
}

.lede {
  max-width: 46ch;
  margin: 1.15rem 0 0;
  color: var(--muted);
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  line-height: 1.62;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 2.25rem;
}

.button {
  display: inline-block;
  padding: 0.85rem 1.45rem;
  border: 1px solid var(--navy);
  border-radius: 2px;
  background: var(--navy);
  color: var(--paper);
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.button:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
  text-decoration: none;
}

.button-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--line-strong);
}

.button-ghost:hover {
  background: transparent;
  color: var(--teal);
  border-color: var(--teal);
}

/* Hero figure */
.hero-figure {
  margin: 0;
}

.figure-panel {
  position: relative;
  padding: 22px 22px 14px;
  background: var(--navy);
  border-radius: 3px;
  overflow: hidden;
}

.figure-panel::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 80px;
  height: 3px;
  background: var(--teal);
}

.figure-svg {
  display: block;
  width: 100%;
  height: auto;
}

.hero-figure figcaption {
  max-width: 56ch;
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 0.74rem;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: var(--muted);
}

/* Sections */
.section {
  padding: clamp(64px, 9vw, 128px) 0;
  border-top: 1px solid var(--line);
}

.section-alt {
  background: var(--surface);
}

.section-head {
  max-width: 64ch;
  margin-bottom: clamp(40px, 5vw, 64px);
}

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

.section-index::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--teal);
}

.section-title {
  margin: 0 0 0.6rem;
  font-size: clamp(1.6rem, 2.9vw, 2.3rem);
  letter-spacing: -0.02em;
}

.section-intro {
  max-width: 58ch;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.5vw, 1.12rem);
  line-height: 1.65;
}

/* Focus cards */
.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(30px, 3.4vw, 52px);
}

.card {
  padding-top: 24px;
  border-top: 2px solid var(--navy);
  transition: border-color 0.2s ease;
}

.card:hover {
  border-top-color: var(--teal);
}

.card-num {
  display: block;
  margin-bottom: 1.2rem;
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  color: var(--teal);
}

.card h3 {
  margin: 0 0 0.6rem;
  font-size: 1.18rem;
  text-wrap: balance;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

/* Method */
.principles {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(20px, 2.6vw, 36px);
}

.principles::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  height: 1px;
  background: var(--line-strong);
}

.principle {
  position: relative;
  padding-top: 54px;
}

.principle .step-num {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 33px;
  height: 33px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--navy);
}

.principle h3 {
  margin: 0 0 0.45rem;
  font-size: 1.08rem;
  text-wrap: balance;
}

.principle p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.62;
}

/* Contact */
.contact {
  max-width: 70ch;
}

.contact .section-intro {
  margin-bottom: 2rem;
}

.contact a {
  color: var(--teal);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.contact a:hover {
  color: var(--navy);
}

/* Footer */
.site-footer {
  padding: 40px 0 46px;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 26px;
}

.footer-brand {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--navy);
}

.footer-note {
  margin: 0;
  font-size: 0.84rem;
  color: var(--muted);
}

.footer-copy {
  margin: 0 0 0 auto;
  font-size: 0.8rem;
  color: var(--muted);
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-figure {
    max-width: 640px;
  }

  .cards {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .card {
    padding-top: 20px;
  }

  .principles {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .principles::before {
    top: 0;
    bottom: 0;
    left: 16px;
    right: auto;
    width: 1px;
    height: auto;
  }

  .principle {
    min-height: 48px;
    padding: 0 0 30px 56px;
  }

  .principle:last-child {
    padding-bottom: 0;
  }

  .principle .step-num {
    top: 0;
  }
}

@media (max-width: 720px) {
  .header-inner {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .brand img {
    height: 56px;
  }

  .site-nav a {
    font-size: 0.74rem;
  }

  .figure-panel {
    padding: 16px 16px 10px;
  }

  .hero h1 {
    max-width: none;
  }

  .footer-copy {
    margin-left: 0;
  }
}

@media (max-width: 420px) {
  .site-nav a:first-child {
    display: none;
  }
}

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

  * {
    transition: none !important;
  }
}
