:root {
  --bg: #ffffff;
  --bg-alt: #f6f5f1;
  --ink: #10201f;
  --text: #1d2a29;
  --text-muted: #4b5857;
  --text-subtle: #5f6b6a;
  --border: #e4e2db;
  --border-strong: #cfccc3;
  --accent: #0b5d57;
  --accent-hover: #084a45;
  --accent-soft: #e8f1ef;
  --band: #0c2f2c;
  --on-band: #ffffff;
  --on-band-muted: rgb(255 255 255 / 0.74);
  --scale-1: #cfe3df;
  --scale-2: #8fc1b9;
  --scale-3: #3e8f86;
  --scale-4: #0b5d57;

  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --container: 1160px;
  --gutter: clamp(20px, 5vw, 40px);
  --header-height: 72px;
  --radius: 12px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
  -webkit-text-size-adjust: 100%;
}

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

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

svg {
  display: block;
}

::selection {
  background: var(--accent-soft);
  color: var(--ink);
}

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

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

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
}

.skip-link:focus {
  top: 12px;
}

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

.eyebrow {
  margin-bottom: 16px;
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  font: 500 0.9375rem/1 var(--font-sans);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s var(--ease);
}

.button-small {
  min-height: 44px;
  padding: 0 18px;
  font-size: 0.875rem;
}

.button-primary {
  background: var(--accent);
  color: var(--bg);
}

.button-primary:hover {
  background: var(--accent-hover);
}

.button-primary:hover svg {
  transform: translateY(2px);
}

.button-secondary {
  border-color: var(--border-strong);
  color: var(--ink);
}

.button-secondary:hover {
  border-color: var(--ink);
}

.button-light {
  background: var(--on-band);
  color: var(--band);
}

.button-light:hover {
  background: var(--accent-soft);
}

.button-light:hover svg {
  transform: translateX(3px);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  background: rgb(255 255 255 / 0.92);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

@supports (backdrop-filter: blur(1px)) {
  .site-header {
    background: rgb(255 255 255 / 0.8);
    backdrop-filter: saturate(180%) blur(12px);
  }
}

.site-header.is-scrolled,
.site-header.is-open {
  border-bottom-color: var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-height);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand-mark {
  width: 30px;
  height: 30px;
}

.brand-mark rect {
  fill: var(--accent);
}

.brand-mark circle {
  fill: none;
  stroke: var(--bg);
  stroke-width: 2;
}

.primary-nav {
  margin-left: auto;
}

.primary-nav ul {
  display: flex;
  gap: 4px;
}

.primary-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  color: var(--text-muted);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.primary-nav a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 8px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.primary-nav a:hover,
.primary-nav a.is-active {
  color: var(--ink);
}

.primary-nav a.is-active::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
}

.hero {
  padding: calc(var(--header-height) + clamp(56px, 8vw, 104px)) 0 clamp(56px, 8vw, 96px);
  background: radial-gradient(ellipse 60% 70% at 90% 0%, var(--accent-soft), transparent 70%);
}

.hero-title {
  max-width: 24ch;
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5.6vw, 4.5rem);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.02em;
}

.hero-lead {
  max-width: 58ch;
  margin-top: 28px;
  color: var(--text-muted);
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}

.focus-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(56px, 7vw, 88px);
  border-top: 1px solid var(--border);
}

.focus-strip li + li {
  border-left: 1px solid var(--border);
}

.focus-strip a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 44px;
  height: 100%;
  padding: 24px 24px 0;
  text-decoration: none;
  transition: color 0.2s ease;
}

.focus-strip li:first-child a {
  padding-left: 0;
}

.focus-index {
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.focus-name {
  color: var(--ink);
  font-weight: 500;
  line-height: 1.4;
  transition: color 0.2s ease;
}

.focus-strip a:hover .focus-name {
  color: var(--accent);
}

.section {
  padding: clamp(80px, 11vw, 136px) 0;
}

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

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

h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.section-intro {
  margin-top: 20px;
  color: var(--text-muted);
  font-size: 1.125rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 7vw, 112px);
  align-items: start;
}

.prose p + p {
  margin-top: 20px;
}

.prose p {
  color: var(--text-muted);
}

.prose .lead {
  color: var(--text);
  font-size: 1.1875rem;
  line-height: 1.6;
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 48px);
  margin-top: clamp(56px, 8vw, 96px);
  padding-top: clamp(40px, 5vw, 56px);
  border-top: 1px solid var(--border);
}

.principle-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
}

.principle-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.principle h3 {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  font-weight: 600;
}

.principle p {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 1rem;
}

.coverage-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.coverage-card {
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 3.5vw, 40px);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.coverage-card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 12px 32px -20px rgb(16 32 31 / 0.25);
}

.card-index {
  margin-bottom: 20px;
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.coverage-card h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.2vw, 1.75rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.coverage-card p {
  margin-top: 12px;
  color: var(--text-muted);
}

.coverage-card .card-subtitle {
  margin-top: 6px;
  color: var(--accent);
  font-size: 0.9375rem;
  font-weight: 500;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 28px;
}

.tags li {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--bg-alt);
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 500;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 40px);
}

.step {
  padding-top: 24px;
  border-top: 2px solid var(--border);
}

.step:first-child {
  border-top-color: var(--accent);
}

.step-number {
  display: block;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.step h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
}

.step p {
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 1rem;
}

.severity {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  margin-top: clamp(56px, 8vw, 88px);
  padding: clamp(28px, 4vw, 48px);
  background: var(--bg-alt);
  border-radius: var(--radius);
}

.severity-copy h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.2vw, 1.75rem);
  font-weight: 600;
}

.severity-copy p {
  margin-top: 12px;
  color: var(--text-muted);
}

.severity-scale {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.severity-bar {
  display: block;
  height: 10px;
  border-radius: 999px;
}

.severity-level:nth-child(1) .severity-bar {
  background: var(--scale-1);
}

.severity-level:nth-child(2) .severity-bar {
  background: var(--scale-2);
}

.severity-level:nth-child(3) .severity-bar {
  background: var(--scale-3);
}

.severity-level:nth-child(4) .severity-bar {
  background: var(--scale-4);
}

.severity-label {
  display: block;
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
}

.contact {
  padding: clamp(72px, 10vw, 120px) 0;
  background: var(--band);
  color: var(--on-band);
}

.contact-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px 48px;
}

.contact-copy {
  max-width: 560px;
}

.contact h2 {
  color: var(--on-band);
}

.contact-copy p {
  margin-top: 16px;
  color: var(--on-band-muted);
  font-size: 1.125rem;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--on-band);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--on-band-muted);
  text-underline-offset: 5px;
  transition: text-decoration-color 0.2s ease;
}

.contact-email:hover {
  text-decoration-color: var(--on-band);
}

.contact :focus-visible {
  outline-color: var(--on-band);
}

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

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}

.site-footer .brand {
  font-size: 1.125rem;
}

.site-footer .brand-mark {
  width: 24px;
  height: 24px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-muted);
  font-size: 0.9375rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--ink);
}

.footer-meta {
  color: var(--text-subtle);
  font-size: 0.875rem;
}

.not-found {
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding: 64px 0;
  background: radial-gradient(ellipse 60% 70% at 90% 0%, var(--accent-soft), transparent 70%);
}

.not-found .brand {
  margin-bottom: clamp(48px, 8vw, 96px);
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

.js .principles > :nth-child(2),
.js .coverage-grid > :nth-child(2),
.js .steps > :nth-child(2) {
  transition-delay: 80ms;
}

.js .principles > :nth-child(3),
.js .coverage-grid > :nth-child(3),
.js .steps > :nth-child(3) {
  transition-delay: 160ms;
}

.js .coverage-grid > :nth-child(4),
.js .steps > :nth-child(4) {
  transition-delay: 240ms;
}

@media (max-width: 960px) {
  .split,
  .severity {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 48px;
  }

  .focus-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .focus-strip li:nth-child(3) {
    border-left: 0;
  }

  .focus-strip li:nth-child(3) a {
    padding-left: 0;
  }

  .focus-strip li:nth-child(n + 3) {
    border-top: 1px solid var(--border);
  }

  .focus-strip a {
    padding-bottom: 24px;
  }
}

@media (max-width: 760px) {
  .menu-toggle {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg);
    color: var(--ink);
    cursor: pointer;
  }

  .menu-toggle-bar {
    display: block;
    width: 18px;
    height: 1.5px;
    background: currentColor;
    transition: transform 0.25s var(--ease);
  }

  .site-header.is-open .menu-toggle-bar:first-of-type {
    transform: translateY(3.75px) rotate(45deg);
  }

  .site-header.is-open .menu-toggle-bar:last-of-type {
    transform: translateY(-3.75px) rotate(-45deg);
  }

  .header-inner {
    gap: 12px;
  }

  .header-cta {
    margin-left: auto;
  }

  .primary-nav {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    display: none;
    margin: 0;
    padding: 8px var(--gutter) 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
  }

  .site-header.is-open .primary-nav {
    display: block;
  }

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

  .primary-nav a {
    width: 100%;
    min-height: 52px;
    padding: 0;
    border-bottom: 1px solid var(--border);
    font-size: 1.0625rem;
  }

  .primary-nav li:last-child a {
    border-bottom: 0;
  }

  .primary-nav a::after {
    display: none;
  }

  .coverage-grid,
  .principles {
    grid-template-columns: 1fr;
  }

  .principles {
    gap: 40px;
  }

  .contact-inner {
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .steps {
    grid-template-columns: 1fr;
    row-gap: 40px;
  }

  .focus-strip {
    grid-template-columns: 1fr;
  }

  .focus-strip li + li {
    border-left: 0;
    border-top: 1px solid var(--border);
  }

  .focus-strip a,
  .focus-strip li:first-child a {
    flex-direction: row;
    align-items: baseline;
    gap: 16px;
    padding: 18px 0;
  }

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

  .severity-scale {
    gap: 4px;
  }

  .severity-label {
    font-size: 0.8125rem;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
