:root {
  --paper: #f6f5f1;
  --surface: #ffffff;
  --ink: #18201f;
  --muted: #5a6663;
  --line: #d8dedb;
  --accent: #176b65;
  --accent-dark: #0e4d49;
  --tint: #eaf2ef;
  --shadow: 0 12px 32px rgba(29, 48, 45, 0.08);
  --radius: 14px;
  --mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 1rem; line-height: 1.65; }
a { color: var(--accent-dark); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--accent); }
img, svg { max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.025em; }
h1 { max-width: 800px; margin-bottom: 1.5rem; font-size: clamp(2.65rem, 7vw, 5.7rem); font-weight: 680; }
h2 { margin-bottom: 1.25rem; font-size: clamp(2rem, 4vw, 3.1rem); font-weight: 650; }
h3 { margin-bottom: 0.65rem; font-size: 1.15rem; }

.shell { width: min(1160px, calc(100% - 2.5rem)); margin-inline: auto; }
.content-shell { max-width: 780px; }
.section { padding: clamp(4.5rem, 9vw, 8rem) 0; }
.ruled { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tinted { background: var(--tint); }
.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: fixed; z-index: 100; top: 0.75rem; left: 0.75rem; padding: 0.7rem 1rem; transform: translateY(-160%); border-radius: 8px; background: var(--ink); color: #fff; }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid #1c8179; outline-offset: 4px; border-radius: 4px; }

.site-header { position: relative; z-index: 20; border-bottom: 1px solid var(--line); background: rgba(246, 245, 241, 0.96); }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: 0.65rem; color: var(--ink); font-weight: 750; letter-spacing: 0.06em; text-decoration: none; }
.brand-mark { width: 2rem; height: 2rem; display: grid; place-items: center; border-radius: 7px; background: var(--accent); color: #fff; font-family: var(--mono); font-size: 0.9rem; }
.site-nav { display: flex; align-items: center; gap: clamp(0.8rem, 2vw, 1.7rem); }
.site-nav a { color: var(--muted); font-size: 0.88rem; font-weight: 600; text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.nav-toggle { display: none; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); padding: 0.55rem 0.75rem; font: 600 0.85rem var(--sans); }

.hero { position: relative; overflow: hidden; padding-top: clamp(5rem, 10vw, 9rem); }
.hero::before { position: absolute; inset: 0; z-index: -1; content: ""; opacity: 0.4; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 56px 56px; mask-image: linear-gradient(to bottom, black, transparent 75%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(260px, 0.7fr); align-items: end; gap: clamp(3rem, 8vw, 7rem); }
.eyebrow { margin-bottom: 1rem; color: var(--accent-dark); font: 700 0.76rem/1.4 var(--mono); letter-spacing: 0.11em; text-transform: uppercase; }
.lead { max-width: 760px; color: var(--muted); font-size: clamp(1.1rem, 2vw, 1.3rem); }
.actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }
.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; padding: 0.72rem 1.1rem; border: 1px solid var(--accent); border-radius: 8px; font-size: 0.9rem; font-weight: 700; text-decoration: none; }
.button.primary { background: var(--accent); color: #fff; }
.button.primary:hover { background: var(--accent-dark); }
.button.secondary { background: var(--surface); color: var(--accent-dark); }
.context-card { padding: 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.status { display: inline-flex; align-items: center; gap: 0.55rem; margin-bottom: 1.5rem; color: var(--accent-dark); font: 700 0.7rem/1.3 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; }
.status span { width: 8px; height: 8px; border-radius: 50%; background: #2f857d; box-shadow: 0 0 0 4px #d9eeea; }
.context-card dl { margin: 0; }
.context-card dl div { padding: 0.85rem 0; border-top: 1px solid var(--line); }
.context-card dt { margin-bottom: 0.15rem; color: var(--muted); font: 600 0.7rem var(--mono); text-transform: uppercase; }
.context-card dd { margin: 0; font-weight: 620; }

.section-heading { max-width: 830px; margin-bottom: 3rem; }
.section-heading.narrow { max-width: 650px; }
.card-grid { display: grid; gap: 1rem; }
.four-up { grid-template-columns: repeat(4, 1fr); }
.card { min-height: 230px; padding: 1.35rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 5px 20px rgba(29, 48, 45, 0.035); }
.card-index { display: block; margin-bottom: 3.3rem; color: var(--accent); font: 700 0.75rem var(--mono); }
.card p, .principle-list p { margin-bottom: 0; color: var(--muted); font-size: 0.95rem; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: stage; }
.steps li { position: relative; padding: 0 1.4rem 0 0; }
.steps li:not(:last-child)::after { position: absolute; top: 17px; right: 0; left: 45px; height: 1px; content: ""; background: var(--line); }
.steps li > span { position: relative; z-index: 1; width: 34px; height: 34px; display: grid; place-items: center; margin-bottom: 1.4rem; border: 1px solid var(--accent); border-radius: 50%; background: var(--paper); color: var(--accent-dark); font: 700 0.75rem var(--mono); }
.steps p { color: var(--muted); font-size: 0.95rem; }
.split { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(3rem, 10vw, 8rem); }
.principle-list { border-top: 1px solid #c4d5d1; }
.principle-list article { display: grid; grid-template-columns: 0.65fr 1fr; gap: 1rem; padding: 1.35rem 0; border-bottom: 1px solid #c4d5d1; }
.principle-list h3 { margin: 0; }
.callout { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 3rem; padding-block: 2.6rem; padding-inline: clamp(1.5rem, 4vw, 3rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.callout p:not(.eyebrow) { max-width: 720px; margin-bottom: 0; color: var(--muted); }
.status-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: end; }
.status-panel p:last-child { color: var(--muted); }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { padding: 1.3rem 2.5rem 1.3rem 0; cursor: pointer; font-weight: 680; }
.faq-list details p { max-width: 800px; color: var(--muted); }

.page-hero { padding: clamp(5rem, 9vw, 8rem) 0 3rem; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.7rem, 6vw, 4.7rem); }
.meta-note { margin: 1.8rem 0 0; color: var(--muted); font: 0.77rem var(--mono); }
.page-content { padding-top: 3.5rem; }
.page-content h2 { margin-top: 3.5rem; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.page-content h2:first-child { margin-top: 0; }
.page-content p, .page-content li { color: #44514f; }
.fact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.5rem 0; }
.fact-grid > div { padding: 1.2rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.fact-grid span { display: block; margin-bottom: 0.4rem; color: var(--muted); font: 0.7rem var(--mono); text-transform: uppercase; }
.fact-grid strong { overflow-wrap: anywhere; }
.check-list { padding-left: 1.25rem; }
.check-list li { margin: 0.45rem 0; }
.contact-card { padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.contact-card dl, .contact-card dd { margin: 0; }
.contact-card dl div { display: grid; grid-template-columns: 130px 1fr; gap: 1rem; padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
.contact-card dl div:last-child { border-bottom: 0; }
.contact-card dt { color: var(--muted); font: 700 0.75rem var(--mono); text-transform: uppercase; }
.contact-card dd { overflow-wrap: anywhere; font-weight: 650; }
.not-found { min-height: 65vh; display: grid; place-items: center; padding: 5rem 0; text-align: center; }
.not-found h1 { margin-inline: auto; font-size: clamp(2.5rem, 6vw, 4.5rem); }
.not-found .lead { margin-inline: auto; }
.error-code { margin-bottom: 0.5rem; color: var(--accent); font: 700 0.85rem var(--mono); letter-spacing: 0.12em; }

.site-footer { padding: 4rem 0 1.5rem; border-top: 1px solid var(--line); background: #e9e9e4; }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 3rem; padding-bottom: 3rem; }
.footer-grid > div p { max-width: 520px; margin: 1rem 0 0; color: var(--muted); }
.footer-grid nav { display: flex; align-items: start; gap: 1.5rem; }
.footer-grid nav a { font-size: 0.9rem; font-weight: 650; }
.legal { display: flex; justify-content: space-between; gap: 2rem; padding-top: 1.5rem; border-top: 1px solid #cdd1ce; color: var(--muted); font-size: 0.76rem; }
.legal p:first-child { max-width: 790px; }

@media (max-width: 820px) {
  .header-inner { flex-wrap: wrap; gap: 0; padding: 0.9rem 0; }
  .nav-toggle { display: block; }
  .site-nav { width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding-top: 0.8rem; }
  .js .site-nav:not(.simple-nav) { display: none; }
  .js .site-nav.is-open { display: flex; }
  .site-nav a { padding: 0.7rem 0; border-top: 1px solid var(--line); }
  .simple-nav { width: auto; flex-direction: row; padding-top: 0; }
  .simple-nav a { border-top: 0; padding-inline: 0.5rem; }
  .hero-grid, .split, .callout, .status-panel { grid-template-columns: 1fr; }
  .four-up { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; gap: 2rem 1rem; }
  .steps li:not(:last-child)::after { display: none; }
  .principle-list article { grid-template-columns: 1fr; }
  .callout { align-items: start; }
  .callout .button { justify-self: start; }
}

@media (max-width: 540px) {
  .shell { width: min(100% - 1.5rem, 1160px); }
  .four-up, .steps, .fact-grid, .footer-grid { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .card-index { margin-bottom: 2rem; }
  .contact-card dl div { grid-template-columns: 1fr; gap: 0.2rem; }
  .footer-grid nav { flex-direction: column; gap: 0.7rem; }
  .legal { flex-direction: column; gap: 0.5rem; }
  .simple-nav a:not(:first-child) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
